Search
lxdream.org :: lxdream/test/lib/newlib-1.8.2-dc.patch :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/lib/newlib-1.8.2-dc.patch
changeset 185:6755a04c447f
author nkeynes
date Thu Feb 14 13:54:11 2008 +0000 (16 years ago)
branchlxdream-render
permissions -rw-r--r--
last change Commit render work in progress. Main changes:
* Preliminary OSMesa support
* Move the generic gl code out to pvr2/
* Implement scene data structure + reader
* Remove the 1/z adjustments
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/lib/newlib-1.8.2-dc.patch Thu Feb 14 13:54:11 2008 +0000
1.3 @@ -0,0 +1,6701 @@
1.4 +diff -urN newlib-1.8.2/config.sub newlib-1.8.2-dc/config.sub
1.5 +--- newlib-1.8.2/config.sub 1999-11-21 07:42:37.000000000 +1000
1.6 ++++ newlib-1.8.2-dc/config.sub 2006-07-06 18:28:31.000000000 +1000
1.7 +@@ -231,7 +231,8 @@
1.8 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
1.9 + | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
1.10 + | clipper-* | orion-* \
1.11 +- | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
1.12 ++ | sparclite-* | pdp11-* | sh-* | sh[1234]-* | sh[1234]eb-* \
1.13 ++ | powerpc-* | powerpcle-* \
1.14 + | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
1.15 + | mips64el-* | mips64orion-* | mips64orionel-* \
1.16 + | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
1.17 +@@ -348,6 +349,10 @@
1.18 + da30 | da30-*)
1.19 + basic_machine=m68k-da30
1.20 + ;;
1.21 ++ dc | dreamcast)
1.22 ++ basic_machine=sh-sega
1.23 ++ os=-dreamcast
1.24 ++ ;;
1.25 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
1.26 + basic_machine=mips-dec
1.27 + ;;
1.28 +@@ -950,7 +955,8 @@
1.29 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1.30 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1.31 + | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
1.32 +- | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*)
1.33 ++ | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit* \
1.34 ++ | -dreamcast* )
1.35 + # Remember, each alternative MUST END IN *, to match a version number.
1.36 + ;;
1.37 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1.38 +@@ -1097,6 +1103,9 @@
1.39 + sparc-* | *-sun)
1.40 + os=-sunos4.1.1
1.41 + ;;
1.42 ++ sh-sega)
1.43 ++ os=-dreamcast
1.44 ++ ;;
1.45 + *-be)
1.46 + os=-beos
1.47 + ;;
1.48 +diff -urN newlib-1.8.2/configure.in newlib-1.8.2-dc/configure.in
1.49 +--- newlib-1.8.2/configure.in 1999-11-21 07:57:50.000000000 +1000
1.50 ++++ newlib-1.8.2-dc/configure.in 2006-07-06 18:28:31.000000000 +1000
1.51 +@@ -831,6 +831,15 @@
1.52 + romp-*-*)
1.53 + noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss"
1.54 + ;;
1.55 ++ sh*-*-dreamcast*)
1.56 ++ case "${host}" in
1.57 ++ i[3456]86-*-vsta) ;; # don't add gprof back in
1.58 ++ i[3456]86-*-go32*) ;; # don't add gprof back in
1.59 ++ i[3456]86-*-msdosdjgpp*) ;; # don't add gprof back in
1.60 ++ *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
1.61 ++ esac
1.62 ++ noconfigdirs="$noconfigdirs target-libgloss"
1.63 ++ ;;
1.64 + sh-*-*)
1.65 + case "${host}" in
1.66 + i[3456]86-*-vsta) ;; # don't add gprof back in
1.67 +diff -urN newlib-1.8.2/newlib/configure.host newlib-1.8.2-dc/newlib/configure.host
1.68 +--- newlib-1.8.2/newlib/configure.host 1999-11-21 07:47:53.000000000 +1000
1.69 ++++ newlib-1.8.2-dc/newlib/configure.host 2006-07-06 18:31:57.000000000 +1000
1.70 +@@ -129,7 +129,7 @@
1.71 + powerpc*)
1.72 + machine_dir=powerpc
1.73 + ;;
1.74 +- sh)
1.75 ++ sh*)
1.76 + machine_dir=sh
1.77 + ;;
1.78 + sparc*)
1.79 +@@ -191,6 +191,9 @@
1.80 + sys_dir=cygwin
1.81 + posix_dir=posix
1.82 + ;;
1.83 ++ *-*-dc* | *-*-dreamcast*)
1.84 ++ sys_dir=dreamcast
1.85 ++ ;;
1.86 + *-*-netware*)
1.87 + signal_dir=
1.88 + sys_dir=netware
1.89 +@@ -245,7 +248,7 @@
1.90 + posix_dir=posix
1.91 + ;;
1.92 + sh*-*)
1.93 +- sys_dir=sh
1.94 ++ sys_dir=dreamcast
1.95 + ;;
1.96 + sparc-sun-sunos*)
1.97 + sys_dir=sun4
1.98 +@@ -296,6 +299,10 @@
1.99 + newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DSIGNAL_PROVIDED -DWANT_PRINTF_LONG_LONG -D_COMPILING_NEWLIB"
1.100 + syscall_dir=syscalls
1.101 + ;;
1.102 ++ *-*-dc* | *-*-dreamcast*)
1.103 ++ newlib_cflags="${newlib_cflags} -DNO_EXEC -DHAVE_GETTIMEOFDAY"
1.104 ++ syscall_dir=syscalls
1.105 ++ ;;
1.106 + # RTEMS supplies its own versions of some routines:
1.107 + # malloc() (reentrant version)
1.108 + # exit() RTEMS has a "global" reent to flush
1.109 +diff -urN newlib-1.8.2/newlib/libc/ctype/Makefile.in newlib-1.8.2-dc/newlib/libc/ctype/Makefile.in
1.110 +--- newlib-1.8.2/newlib/libc/ctype/Makefile.in 1998-12-01 08:03:43.000000000 +1000
1.111 ++++ newlib-1.8.2-dc/newlib/libc/ctype/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.112 +@@ -1,6 +1,6 @@
1.113 +-# Makefile.in generated automatically by automake 1.3b from Makefile.am
1.114 ++# Makefile.in generated automatically by automake 1.4 from Makefile.am
1.115 +
1.116 +-# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
1.117 ++# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.118 + # This Makefile.in is free software; the Free Software Foundation
1.119 + # gives unlimited permission to copy and/or distribute it,
1.120 + # with or without modifications, as long as this notice is preserved.
1.121 +@@ -46,7 +46,7 @@
1.122 + AUTOHEADER = @AUTOHEADER@
1.123 +
1.124 + INSTALL = @INSTALL@
1.125 +-INSTALL_PROGRAM = @INSTALL_PROGRAM@
1.126 ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
1.127 + INSTALL_DATA = @INSTALL_DATA@
1.128 + INSTALL_SCRIPT = @INSTALL_SCRIPT@
1.129 + transform = @program_transform_name@
1.130 +@@ -78,7 +78,6 @@
1.131 + PACKAGE = @PACKAGE@
1.132 + RANLIB = @RANLIB@
1.133 + VERSION = @VERSION@
1.134 +-mach_add_objs = @mach_add_objs@
1.135 + machine_dir = @machine_dir@
1.136 + newlib_basedir = @newlib_basedir@
1.137 + sys_dir = @sys_dir@
1.138 +@@ -89,40 +88,11 @@
1.139 +
1.140 + noinst_LIBRARIES = lib.a
1.141 +
1.142 +-lib_a_SOURCES = \
1.143 +- ctype_.c \
1.144 +- isalnum.c \
1.145 +- isalpha.c \
1.146 +- isascii.c \
1.147 +- iscntrl.c \
1.148 +- isdigit.c \
1.149 +- islower.c \
1.150 +- isupper.c \
1.151 +- isprint.c \
1.152 +- ispunct.c \
1.153 +- isspace.c \
1.154 +- isxdigit.c \
1.155 +- toascii.c \
1.156 +- tolower.c \
1.157 +- toupper.c \
1.158 +- _tolower.c \
1.159 +- _toupper.c
1.160 +-
1.161 +-CHEWOUT_FILES= \
1.162 +- isalnum.def \
1.163 +- isalpha.def \
1.164 +- isascii.def \
1.165 +- iscntrl.def \
1.166 +- isdigit.def \
1.167 +- islower.def \
1.168 +- isprint.def \
1.169 +- ispunct.def \
1.170 +- isspace.def \
1.171 +- isupper.def \
1.172 +- isxdigit.def \
1.173 +- toascii.def \
1.174 +- tolower.def \
1.175 +- toupper.def
1.176 ++lib_a_SOURCES = ctype_.c isalnum.c isalpha.c isascii.c iscntrl.c isdigit.c islower.c isupper.c isprint.c ispunct.c isspace.c isxdigit.c toascii.c tolower.c toupper.c _tolower.c _toupper.c
1.177 ++
1.178 ++
1.179 ++CHEWOUT_FILES = isalnum.def isalpha.def isascii.def iscntrl.def isdigit.def islower.def isprint.def ispunct.def isspace.def isupper.def isxdigit.def toascii.def tolower.def toupper.def
1.180 ++
1.181 +
1.182 + SUFFIXES = .def
1.183 +
1.184 +@@ -146,22 +116,22 @@
1.185 + toascii.o tolower.o toupper.o _tolower.o _toupper.o
1.186 + CFLAGS = @CFLAGS@
1.187 + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1.188 +-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.189 ++CCLD = $(CC)
1.190 ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.191 + DIST_COMMON = Makefile.am Makefile.in
1.192 +
1.193 +
1.194 + DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
1.195 +
1.196 + TAR = tar
1.197 +-GZIP = --best
1.198 ++GZIP_ENV = --best
1.199 + SOURCES = $(lib_a_SOURCES)
1.200 + OBJECTS = $(lib_a_OBJECTS)
1.201 +
1.202 +-all: Makefile $(LIBRARIES)
1.203 +-
1.204 ++all: all-redirect
1.205 + .SUFFIXES:
1.206 + .SUFFIXES: .S .c .def .o .s
1.207 +-$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.208 ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.209 + cd $(top_srcdir) && $(AUTOMAKE) --cygnus ctype/Makefile
1.210 +
1.211 + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1.212 +@@ -205,8 +175,12 @@
1.213 + tags: TAGS
1.214 +
1.215 + ID: $(HEADERS) $(SOURCES) $(LISP)
1.216 ++ list='$(SOURCES) $(HEADERS)'; \
1.217 ++ unique=`for i in $$list; do echo $$i; done | \
1.218 ++ awk ' { files[$$0] = 1; } \
1.219 ++ END { for (i in files) print i; }'`; \
1.220 + here=`pwd` && cd $(srcdir) \
1.221 +- && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
1.222 ++ && mkid -f$$here/ID $$unique $(LISP)
1.223 +
1.224 + TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
1.225 + tags=; \
1.226 +@@ -234,28 +208,39 @@
1.227 + distdir: $(DISTFILES)
1.228 + @for file in $(DISTFILES); do \
1.229 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.230 +- test -f $(distdir)/$$file \
1.231 +- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.232 +- || cp -p $$d/$$file $(distdir)/$$file; \
1.233 ++ if test -d $$d/$$file; then \
1.234 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.235 ++ else \
1.236 ++ test -f $(distdir)/$$file \
1.237 ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.238 ++ || cp -p $$d/$$file $(distdir)/$$file || :; \
1.239 ++ fi; \
1.240 + done
1.241 +-info:
1.242 +-dvi:
1.243 +-check:
1.244 +-installcheck:
1.245 +-install-info:
1.246 +-install-exec:
1.247 +- @$(NORMAL_INSTALL)
1.248 +-
1.249 +-install-data:
1.250 +- @$(NORMAL_INSTALL)
1.251 +-
1.252 +-install: install-exec install-data all
1.253 +- @:
1.254 +-
1.255 +-uninstall:
1.256 +-
1.257 ++info-am:
1.258 ++info: info-am
1.259 ++dvi-am:
1.260 ++dvi: dvi-am
1.261 ++check-am:
1.262 ++check: check-am
1.263 ++installcheck-am:
1.264 ++installcheck: installcheck-am
1.265 ++install-info-am:
1.266 ++install-info: install-info-am
1.267 ++install-exec-am:
1.268 ++install-exec: install-exec-am
1.269 ++
1.270 ++install-data-am:
1.271 ++install-data: install-data-am
1.272 ++
1.273 ++install-am: all-am
1.274 ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1.275 ++install: install-am
1.276 ++uninstall-am:
1.277 ++uninstall: uninstall-am
1.278 ++all-am: Makefile $(LIBRARIES)
1.279 ++all-redirect: all-am
1.280 + install-strip:
1.281 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
1.282 ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1.283 + installdirs:
1.284 +
1.285 +
1.286 +@@ -269,29 +254,38 @@
1.287 + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1.288 +
1.289 + maintainer-clean-generic:
1.290 +-mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.291 ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.292 + mostlyclean-tags mostlyclean-generic
1.293 +
1.294 +-clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.295 +- mostlyclean
1.296 ++mostlyclean: mostlyclean-am
1.297 +
1.298 +-distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \
1.299 +- distclean-generic clean
1.300 +- -rm -f config.status
1.301 ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.302 ++ mostlyclean-am
1.303 +
1.304 +-maintainer-clean: maintainer-clean-noinstLIBRARIES \
1.305 ++clean: clean-am
1.306 ++
1.307 ++distclean-am: distclean-noinstLIBRARIES distclean-compile \
1.308 ++ distclean-tags distclean-generic clean-am
1.309 ++
1.310 ++distclean: distclean-am
1.311 ++
1.312 ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
1.313 + maintainer-clean-compile maintainer-clean-tags \
1.314 +- maintainer-clean-generic distclean
1.315 ++ maintainer-clean-generic distclean-am
1.316 + @echo "This command is intended for maintainers to use;"
1.317 + @echo "it deletes files that may require special tools to rebuild."
1.318 +
1.319 ++maintainer-clean: maintainer-clean-am
1.320 ++
1.321 + .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
1.322 + clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
1.323 + mostlyclean-compile distclean-compile clean-compile \
1.324 + maintainer-clean-compile tags mostlyclean-tags distclean-tags \
1.325 +-clean-tags maintainer-clean-tags distdir info dvi installcheck \
1.326 +-install-info install-exec install-data install uninstall all \
1.327 +-installdirs mostlyclean-generic distclean-generic clean-generic \
1.328 ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
1.329 ++check-am installcheck-am installcheck install-info-am install-info \
1.330 ++install-exec-am install-exec install-data-am install-data install-am \
1.331 ++install uninstall-am uninstall all-redirect all-am all installdirs \
1.332 ++mostlyclean-generic distclean-generic clean-generic \
1.333 + maintainer-clean-generic clean mostlyclean distclean maintainer-clean
1.334 +
1.335 +
1.336 +diff -urN newlib-1.8.2/newlib/libc/errno/Makefile.in newlib-1.8.2-dc/newlib/libc/errno/Makefile.in
1.337 +--- newlib-1.8.2/newlib/libc/errno/Makefile.in 1998-12-01 08:03:43.000000000 +1000
1.338 ++++ newlib-1.8.2-dc/newlib/libc/errno/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.339 +@@ -1,6 +1,6 @@
1.340 +-# Makefile.in generated automatically by automake 1.3b from Makefile.am
1.341 ++# Makefile.in generated automatically by automake 1.4 from Makefile.am
1.342 +
1.343 +-# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
1.344 ++# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.345 + # This Makefile.in is free software; the Free Software Foundation
1.346 + # gives unlimited permission to copy and/or distribute it,
1.347 + # with or without modifications, as long as this notice is preserved.
1.348 +@@ -46,7 +46,7 @@
1.349 + AUTOHEADER = @AUTOHEADER@
1.350 +
1.351 + INSTALL = @INSTALL@
1.352 +-INSTALL_PROGRAM = @INSTALL_PROGRAM@
1.353 ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
1.354 + INSTALL_DATA = @INSTALL_DATA@
1.355 + INSTALL_SCRIPT = @INSTALL_SCRIPT@
1.356 + transform = @program_transform_name@
1.357 +@@ -78,7 +78,6 @@
1.358 + PACKAGE = @PACKAGE@
1.359 + RANLIB = @RANLIB@
1.360 + VERSION = @VERSION@
1.361 +-mach_add_objs = @mach_add_objs@
1.362 + machine_dir = @machine_dir@
1.363 + newlib_basedir = @newlib_basedir@
1.364 + sys_dir = @sys_dir@
1.365 +@@ -91,7 +90,7 @@
1.366 +
1.367 + lib_a_SOURCES = errno.c
1.368 +
1.369 +-CHEWOUT_FILES =
1.370 ++CHEWOUT_FILES =
1.371 +
1.372 + SUFFIXES = .def
1.373 +
1.374 +@@ -113,22 +112,22 @@
1.375 + lib_a_OBJECTS = errno.o
1.376 + CFLAGS = @CFLAGS@
1.377 + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1.378 +-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.379 ++CCLD = $(CC)
1.380 ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.381 + DIST_COMMON = Makefile.am Makefile.in
1.382 +
1.383 +
1.384 + DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
1.385 +
1.386 + TAR = tar
1.387 +-GZIP = --best
1.388 ++GZIP_ENV = --best
1.389 + SOURCES = $(lib_a_SOURCES)
1.390 + OBJECTS = $(lib_a_OBJECTS)
1.391 +
1.392 +-all: Makefile $(LIBRARIES)
1.393 +-
1.394 ++all: all-redirect
1.395 + .SUFFIXES:
1.396 + .SUFFIXES: .S .c .def .o .s
1.397 +-$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.398 ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.399 + cd $(top_srcdir) && $(AUTOMAKE) --cygnus errno/Makefile
1.400 +
1.401 + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1.402 +@@ -172,8 +171,12 @@
1.403 + tags: TAGS
1.404 +
1.405 + ID: $(HEADERS) $(SOURCES) $(LISP)
1.406 ++ list='$(SOURCES) $(HEADERS)'; \
1.407 ++ unique=`for i in $$list; do echo $$i; done | \
1.408 ++ awk ' { files[$$0] = 1; } \
1.409 ++ END { for (i in files) print i; }'`; \
1.410 + here=`pwd` && cd $(srcdir) \
1.411 +- && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
1.412 ++ && mkid -f$$here/ID $$unique $(LISP)
1.413 +
1.414 + TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
1.415 + tags=; \
1.416 +@@ -201,28 +204,39 @@
1.417 + distdir: $(DISTFILES)
1.418 + @for file in $(DISTFILES); do \
1.419 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.420 +- test -f $(distdir)/$$file \
1.421 +- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.422 +- || cp -p $$d/$$file $(distdir)/$$file; \
1.423 ++ if test -d $$d/$$file; then \
1.424 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.425 ++ else \
1.426 ++ test -f $(distdir)/$$file \
1.427 ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.428 ++ || cp -p $$d/$$file $(distdir)/$$file || :; \
1.429 ++ fi; \
1.430 + done
1.431 +-info:
1.432 +-dvi:
1.433 +-check:
1.434 +-installcheck:
1.435 +-install-info:
1.436 +-install-exec:
1.437 +- @$(NORMAL_INSTALL)
1.438 +-
1.439 +-install-data:
1.440 +- @$(NORMAL_INSTALL)
1.441 +-
1.442 +-install: install-exec install-data all
1.443 +- @:
1.444 +-
1.445 +-uninstall:
1.446 +-
1.447 ++info-am:
1.448 ++info: info-am
1.449 ++dvi-am:
1.450 ++dvi: dvi-am
1.451 ++check-am:
1.452 ++check: check-am
1.453 ++installcheck-am:
1.454 ++installcheck: installcheck-am
1.455 ++install-info-am:
1.456 ++install-info: install-info-am
1.457 ++install-exec-am:
1.458 ++install-exec: install-exec-am
1.459 ++
1.460 ++install-data-am:
1.461 ++install-data: install-data-am
1.462 ++
1.463 ++install-am: all-am
1.464 ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1.465 ++install: install-am
1.466 ++uninstall-am:
1.467 ++uninstall: uninstall-am
1.468 ++all-am: Makefile $(LIBRARIES)
1.469 ++all-redirect: all-am
1.470 + install-strip:
1.471 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
1.472 ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1.473 + installdirs:
1.474 +
1.475 +
1.476 +@@ -236,29 +250,38 @@
1.477 + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1.478 +
1.479 + maintainer-clean-generic:
1.480 +-mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.481 ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.482 + mostlyclean-tags mostlyclean-generic
1.483 +
1.484 +-clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.485 +- mostlyclean
1.486 ++mostlyclean: mostlyclean-am
1.487 ++
1.488 ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.489 ++ mostlyclean-am
1.490 +
1.491 +-distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \
1.492 +- distclean-generic clean
1.493 +- -rm -f config.status
1.494 ++clean: clean-am
1.495 +
1.496 +-maintainer-clean: maintainer-clean-noinstLIBRARIES \
1.497 ++distclean-am: distclean-noinstLIBRARIES distclean-compile \
1.498 ++ distclean-tags distclean-generic clean-am
1.499 ++
1.500 ++distclean: distclean-am
1.501 ++
1.502 ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
1.503 + maintainer-clean-compile maintainer-clean-tags \
1.504 +- maintainer-clean-generic distclean
1.505 ++ maintainer-clean-generic distclean-am
1.506 + @echo "This command is intended for maintainers to use;"
1.507 + @echo "it deletes files that may require special tools to rebuild."
1.508 +
1.509 ++maintainer-clean: maintainer-clean-am
1.510 ++
1.511 + .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
1.512 + clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
1.513 + mostlyclean-compile distclean-compile clean-compile \
1.514 + maintainer-clean-compile tags mostlyclean-tags distclean-tags \
1.515 +-clean-tags maintainer-clean-tags distdir info dvi installcheck \
1.516 +-install-info install-exec install-data install uninstall all \
1.517 +-installdirs mostlyclean-generic distclean-generic clean-generic \
1.518 ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
1.519 ++check-am installcheck-am installcheck install-info-am install-info \
1.520 ++install-exec-am install-exec install-data-am install-data install-am \
1.521 ++install uninstall-am uninstall all-redirect all-am all installdirs \
1.522 ++mostlyclean-generic distclean-generic clean-generic \
1.523 + maintainer-clean-generic clean mostlyclean distclean maintainer-clean
1.524 +
1.525 +
1.526 +diff -urN newlib-1.8.2/newlib/libc/locale/Makefile.in newlib-1.8.2-dc/newlib/libc/locale/Makefile.in
1.527 +--- newlib-1.8.2/newlib/libc/locale/Makefile.in 1998-12-01 08:03:44.000000000 +1000
1.528 ++++ newlib-1.8.2-dc/newlib/libc/locale/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.529 +@@ -1,6 +1,6 @@
1.530 +-# Makefile.in generated automatically by automake 1.3b from Makefile.am
1.531 ++# Makefile.in generated automatically by automake 1.4 from Makefile.am
1.532 +
1.533 +-# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
1.534 ++# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.535 + # This Makefile.in is free software; the Free Software Foundation
1.536 + # gives unlimited permission to copy and/or distribute it,
1.537 + # with or without modifications, as long as this notice is preserved.
1.538 +@@ -46,7 +46,7 @@
1.539 + AUTOHEADER = @AUTOHEADER@
1.540 +
1.541 + INSTALL = @INSTALL@
1.542 +-INSTALL_PROGRAM = @INSTALL_PROGRAM@
1.543 ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
1.544 + INSTALL_DATA = @INSTALL_DATA@
1.545 + INSTALL_SCRIPT = @INSTALL_SCRIPT@
1.546 + transform = @program_transform_name@
1.547 +@@ -78,7 +78,6 @@
1.548 + PACKAGE = @PACKAGE@
1.549 + RANLIB = @RANLIB@
1.550 + VERSION = @VERSION@
1.551 +-mach_add_objs = @mach_add_objs@
1.552 + machine_dir = @machine_dir@
1.553 + newlib_basedir = @newlib_basedir@
1.554 + sys_dir = @sys_dir@
1.555 +@@ -113,22 +112,22 @@
1.556 + lib_a_OBJECTS = locale.o
1.557 + CFLAGS = @CFLAGS@
1.558 + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1.559 +-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.560 ++CCLD = $(CC)
1.561 ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.562 + DIST_COMMON = Makefile.am Makefile.in
1.563 +
1.564 +
1.565 + DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
1.566 +
1.567 + TAR = tar
1.568 +-GZIP = --best
1.569 ++GZIP_ENV = --best
1.570 + SOURCES = $(lib_a_SOURCES)
1.571 + OBJECTS = $(lib_a_OBJECTS)
1.572 +
1.573 +-all: Makefile $(LIBRARIES)
1.574 +-
1.575 ++all: all-redirect
1.576 + .SUFFIXES:
1.577 + .SUFFIXES: .S .c .def .o .s
1.578 +-$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.579 ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.580 + cd $(top_srcdir) && $(AUTOMAKE) --cygnus locale/Makefile
1.581 +
1.582 + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1.583 +@@ -172,8 +171,12 @@
1.584 + tags: TAGS
1.585 +
1.586 + ID: $(HEADERS) $(SOURCES) $(LISP)
1.587 ++ list='$(SOURCES) $(HEADERS)'; \
1.588 ++ unique=`for i in $$list; do echo $$i; done | \
1.589 ++ awk ' { files[$$0] = 1; } \
1.590 ++ END { for (i in files) print i; }'`; \
1.591 + here=`pwd` && cd $(srcdir) \
1.592 +- && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
1.593 ++ && mkid -f$$here/ID $$unique $(LISP)
1.594 +
1.595 + TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
1.596 + tags=; \
1.597 +@@ -201,28 +204,39 @@
1.598 + distdir: $(DISTFILES)
1.599 + @for file in $(DISTFILES); do \
1.600 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.601 +- test -f $(distdir)/$$file \
1.602 +- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.603 +- || cp -p $$d/$$file $(distdir)/$$file; \
1.604 ++ if test -d $$d/$$file; then \
1.605 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.606 ++ else \
1.607 ++ test -f $(distdir)/$$file \
1.608 ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.609 ++ || cp -p $$d/$$file $(distdir)/$$file || :; \
1.610 ++ fi; \
1.611 + done
1.612 +-info:
1.613 +-dvi:
1.614 +-check:
1.615 +-installcheck:
1.616 +-install-info:
1.617 +-install-exec:
1.618 +- @$(NORMAL_INSTALL)
1.619 +-
1.620 +-install-data:
1.621 +- @$(NORMAL_INSTALL)
1.622 +-
1.623 +-install: install-exec install-data all
1.624 +- @:
1.625 +-
1.626 +-uninstall:
1.627 +-
1.628 ++info-am:
1.629 ++info: info-am
1.630 ++dvi-am:
1.631 ++dvi: dvi-am
1.632 ++check-am:
1.633 ++check: check-am
1.634 ++installcheck-am:
1.635 ++installcheck: installcheck-am
1.636 ++install-info-am:
1.637 ++install-info: install-info-am
1.638 ++install-exec-am:
1.639 ++install-exec: install-exec-am
1.640 ++
1.641 ++install-data-am:
1.642 ++install-data: install-data-am
1.643 ++
1.644 ++install-am: all-am
1.645 ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1.646 ++install: install-am
1.647 ++uninstall-am:
1.648 ++uninstall: uninstall-am
1.649 ++all-am: Makefile $(LIBRARIES)
1.650 ++all-redirect: all-am
1.651 + install-strip:
1.652 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
1.653 ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1.654 + installdirs:
1.655 +
1.656 +
1.657 +@@ -236,29 +250,38 @@
1.658 + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1.659 +
1.660 + maintainer-clean-generic:
1.661 +-mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.662 ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.663 + mostlyclean-tags mostlyclean-generic
1.664 +
1.665 +-clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.666 +- mostlyclean
1.667 ++mostlyclean: mostlyclean-am
1.668 ++
1.669 ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.670 ++ mostlyclean-am
1.671 +
1.672 +-distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \
1.673 +- distclean-generic clean
1.674 +- -rm -f config.status
1.675 ++clean: clean-am
1.676 +
1.677 +-maintainer-clean: maintainer-clean-noinstLIBRARIES \
1.678 ++distclean-am: distclean-noinstLIBRARIES distclean-compile \
1.679 ++ distclean-tags distclean-generic clean-am
1.680 ++
1.681 ++distclean: distclean-am
1.682 ++
1.683 ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
1.684 + maintainer-clean-compile maintainer-clean-tags \
1.685 +- maintainer-clean-generic distclean
1.686 ++ maintainer-clean-generic distclean-am
1.687 + @echo "This command is intended for maintainers to use;"
1.688 + @echo "it deletes files that may require special tools to rebuild."
1.689 +
1.690 ++maintainer-clean: maintainer-clean-am
1.691 ++
1.692 + .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
1.693 + clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
1.694 + mostlyclean-compile distclean-compile clean-compile \
1.695 + maintainer-clean-compile tags mostlyclean-tags distclean-tags \
1.696 +-clean-tags maintainer-clean-tags distdir info dvi installcheck \
1.697 +-install-info install-exec install-data install uninstall all \
1.698 +-installdirs mostlyclean-generic distclean-generic clean-generic \
1.699 ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
1.700 ++check-am installcheck-am installcheck install-info-am install-info \
1.701 ++install-exec-am install-exec install-data-am install-data install-am \
1.702 ++install uninstall-am uninstall all-redirect all-am all installdirs \
1.703 ++mostlyclean-generic distclean-generic clean-generic \
1.704 + maintainer-clean-generic clean mostlyclean distclean maintainer-clean
1.705 +
1.706 +
1.707 +diff -urN newlib-1.8.2/newlib/libc/Makefile.in newlib-1.8.2-dc/newlib/libc/Makefile.in
1.708 +--- newlib-1.8.2/newlib/libc/Makefile.in 1999-11-21 07:55:49.000000000 +1000
1.709 ++++ newlib-1.8.2-dc/newlib/libc/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.710 +@@ -77,50 +77,30 @@
1.711 + NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
1.712 + PACKAGE = @PACKAGE@
1.713 + RANLIB = @RANLIB@
1.714 +-VERSION = 1.8.2
1.715 ++VERSION = @VERSION@
1.716 + machine_dir = @machine_dir@
1.717 + newlib_basedir = @newlib_basedir@
1.718 + sys_dir = @sys_dir@
1.719 +
1.720 + AUTOMAKE_OPTIONS = cygnus
1.721 +
1.722 +-@HAVE_POSIX_DIR_TRUE@POSIX_SUBDIR = \
1.723 +-@HAVE_POSIX_DIR_TRUE@posix
1.724 ++@HAVE_POSIX_DIR_TRUE@POSIX_SUBDIR = posix
1.725 +
1.726 +-@HAVE_SIGNAL_DIR_TRUE@SIGNAL_SUBDIR = \
1.727 +-@HAVE_SIGNAL_DIR_TRUE@signal
1.728 ++@HAVE_SIGNAL_DIR_TRUE@SIGNAL_SUBDIR = signal
1.729 +
1.730 +-@HAVE_SYSCALL_DIR_TRUE@SYSCALLS_SUBDIR = \
1.731 +-@HAVE_SYSCALL_DIR_TRUE@syscalls
1.732 ++@HAVE_SYSCALL_DIR_TRUE@SYSCALLS_SUBDIR = syscalls
1.733 +
1.734 +-@HAVE_UNIX_DIR_TRUE@UNIX_SUBDIR = \
1.735 +-@HAVE_UNIX_DIR_TRUE@unix
1.736 ++@HAVE_UNIX_DIR_TRUE@UNIX_SUBDIR = unix
1.737 +
1.738 + # The order of SUBDIRS is important for the integrated documentation.
1.739 + # Do not change the order without considering the doc impact.
1.740 +-SUBDIRS = stdlib ctype stdio string $(SIGNAL_SUBDIR) time locale sys reent \
1.741 +- errno misc machine $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) .
1.742 ++SUBDIRS = stdlib ctype stdio string $(SIGNAL_SUBDIR) time locale sys reent errno misc machine $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) .
1.743 +
1.744 +
1.745 + noinst_LIBRARIES = libc.a
1.746 + noinst_DATA = $(CRT0)
1.747 +
1.748 +-SUBLIBS = \
1.749 +- stdlib/lib.a \
1.750 +- ctype/lib.a \
1.751 +- stdio/lib.a \
1.752 +- string/lib.a \
1.753 +- $(LIBC_SIGNAL_LIB) \
1.754 +- time/lib.a \
1.755 +- locale/lib.a \
1.756 +- $(LIBC_SYS_LIB) \
1.757 +- reent/lib.a \
1.758 +- errno/lib.a \
1.759 +- misc/lib.a \
1.760 +- $(LIBC_MACHINE_LIB) \
1.761 +- $(LIBC_UNIX_LIB) \
1.762 +- $(LIBC_POSIX_LIB) \
1.763 +- $(LIBC_SYSCALL_LIB)
1.764 ++SUBLIBS = stdlib/lib.a ctype/lib.a stdio/lib.a string/lib.a $(LIBC_SIGNAL_LIB) time/lib.a locale/lib.a $(LIBC_SYS_LIB) reent/lib.a errno/lib.a misc/lib.a $(LIBC_MACHINE_LIB) $(LIBC_UNIX_LIB) $(LIBC_POSIX_LIB) $(LIBC_SYSCALL_LIB)
1.765 +
1.766 +
1.767 + info_TEXINFOS = libc.texinfo
1.768 +@@ -129,20 +109,10 @@
1.769 + # builds .def files. We don't list subdirectories which don't build
1.770 + # .def files; if the list of subdirectories changes, we must change
1.771 + # this as well.
1.772 +-SUBDEFS = \
1.773 +- stdlib/stmp-def \
1.774 +- ctype/stmp-def \
1.775 +- stdio/stmp-def \
1.776 +- string/stmp-def \
1.777 +- $(LIBC_SIGNAL_DEF) \
1.778 +- time/stmp-def \
1.779 +- locale/stmp-def \
1.780 +- reent/stmp-def \
1.781 +- misc/stmp-def
1.782 ++SUBDEFS = stdlib/stmp-def ctype/stmp-def stdio/stmp-def string/stmp-def $(LIBC_SIGNAL_DEF) time/stmp-def locale/stmp-def reent/stmp-def misc/stmp-def
1.783 +
1.784 +
1.785 +-CLEANFILES = crt0.o \
1.786 +- sigset.texi stmp-sigset tmp.texi targetdep.tex stmp-targetdep
1.787 ++CLEANFILES = crt0.o sigset.texi stmp-sigset tmp.texi targetdep.tex stmp-targetdep
1.788 +
1.789 +
1.790 + ACLOCAL_AMFLAGS = -I ..
1.791 +@@ -471,7 +441,7 @@
1.792 + @for file in $(DISTFILES); do \
1.793 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.794 + if test -d $$d/$$file; then \
1.795 +- cp -pr $$/$$file $(distdir)/$$file; \
1.796 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.797 + else \
1.798 + test -f $(distdir)/$$file \
1.799 + || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.800 +diff -urN newlib-1.8.2/newlib/libc/misc/Makefile.in newlib-1.8.2-dc/newlib/libc/misc/Makefile.in
1.801 +--- newlib-1.8.2/newlib/libc/misc/Makefile.in 1998-12-01 08:03:46.000000000 +1000
1.802 ++++ newlib-1.8.2-dc/newlib/libc/misc/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.803 +@@ -1,6 +1,6 @@
1.804 +-# Makefile.in generated automatically by automake 1.3b from Makefile.am
1.805 ++# Makefile.in generated automatically by automake 1.4 from Makefile.am
1.806 +
1.807 +-# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
1.808 ++# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.809 + # This Makefile.in is free software; the Free Software Foundation
1.810 + # gives unlimited permission to copy and/or distribute it,
1.811 + # with or without modifications, as long as this notice is preserved.
1.812 +@@ -46,7 +46,7 @@
1.813 + AUTOHEADER = @AUTOHEADER@
1.814 +
1.815 + INSTALL = @INSTALL@
1.816 +-INSTALL_PROGRAM = @INSTALL_PROGRAM@
1.817 ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
1.818 + INSTALL_DATA = @INSTALL_DATA@
1.819 + INSTALL_SCRIPT = @INSTALL_SCRIPT@
1.820 + transform = @program_transform_name@
1.821 +@@ -78,7 +78,6 @@
1.822 + PACKAGE = @PACKAGE@
1.823 + RANLIB = @RANLIB@
1.824 + VERSION = @VERSION@
1.825 +-mach_add_objs = @mach_add_objs@
1.826 + machine_dir = @machine_dir@
1.827 + newlib_basedir = @newlib_basedir@
1.828 + sys_dir = @sys_dir@
1.829 +@@ -113,22 +112,22 @@
1.830 + lib_a_OBJECTS = dprintf.o unctrl.o ffs.o
1.831 + CFLAGS = @CFLAGS@
1.832 + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1.833 +-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.834 ++CCLD = $(CC)
1.835 ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.836 + DIST_COMMON = Makefile.am Makefile.in
1.837 +
1.838 +
1.839 + DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
1.840 +
1.841 + TAR = tar
1.842 +-GZIP = --best
1.843 ++GZIP_ENV = --best
1.844 + SOURCES = $(lib_a_SOURCES)
1.845 + OBJECTS = $(lib_a_OBJECTS)
1.846 +
1.847 +-all: Makefile $(LIBRARIES)
1.848 +-
1.849 ++all: all-redirect
1.850 + .SUFFIXES:
1.851 + .SUFFIXES: .S .c .def .o .s
1.852 +-$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.853 ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.854 + cd $(top_srcdir) && $(AUTOMAKE) --cygnus misc/Makefile
1.855 +
1.856 + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1.857 +@@ -172,8 +171,12 @@
1.858 + tags: TAGS
1.859 +
1.860 + ID: $(HEADERS) $(SOURCES) $(LISP)
1.861 ++ list='$(SOURCES) $(HEADERS)'; \
1.862 ++ unique=`for i in $$list; do echo $$i; done | \
1.863 ++ awk ' { files[$$0] = 1; } \
1.864 ++ END { for (i in files) print i; }'`; \
1.865 + here=`pwd` && cd $(srcdir) \
1.866 +- && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
1.867 ++ && mkid -f$$here/ID $$unique $(LISP)
1.868 +
1.869 + TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
1.870 + tags=; \
1.871 +@@ -201,28 +204,39 @@
1.872 + distdir: $(DISTFILES)
1.873 + @for file in $(DISTFILES); do \
1.874 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.875 +- test -f $(distdir)/$$file \
1.876 +- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.877 +- || cp -p $$d/$$file $(distdir)/$$file; \
1.878 ++ if test -d $$d/$$file; then \
1.879 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.880 ++ else \
1.881 ++ test -f $(distdir)/$$file \
1.882 ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.883 ++ || cp -p $$d/$$file $(distdir)/$$file || :; \
1.884 ++ fi; \
1.885 + done
1.886 +-info:
1.887 +-dvi:
1.888 +-check:
1.889 +-installcheck:
1.890 +-install-info:
1.891 +-install-exec:
1.892 +- @$(NORMAL_INSTALL)
1.893 +-
1.894 +-install-data:
1.895 +- @$(NORMAL_INSTALL)
1.896 +-
1.897 +-install: install-exec install-data all
1.898 +- @:
1.899 +-
1.900 +-uninstall:
1.901 +-
1.902 ++info-am:
1.903 ++info: info-am
1.904 ++dvi-am:
1.905 ++dvi: dvi-am
1.906 ++check-am:
1.907 ++check: check-am
1.908 ++installcheck-am:
1.909 ++installcheck: installcheck-am
1.910 ++install-info-am:
1.911 ++install-info: install-info-am
1.912 ++install-exec-am:
1.913 ++install-exec: install-exec-am
1.914 ++
1.915 ++install-data-am:
1.916 ++install-data: install-data-am
1.917 ++
1.918 ++install-am: all-am
1.919 ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1.920 ++install: install-am
1.921 ++uninstall-am:
1.922 ++uninstall: uninstall-am
1.923 ++all-am: Makefile $(LIBRARIES)
1.924 ++all-redirect: all-am
1.925 + install-strip:
1.926 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
1.927 ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1.928 + installdirs:
1.929 +
1.930 +
1.931 +@@ -236,29 +250,38 @@
1.932 + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1.933 +
1.934 + maintainer-clean-generic:
1.935 +-mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.936 ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.937 + mostlyclean-tags mostlyclean-generic
1.938 +
1.939 +-clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.940 +- mostlyclean
1.941 ++mostlyclean: mostlyclean-am
1.942 ++
1.943 ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.944 ++ mostlyclean-am
1.945 +
1.946 +-distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \
1.947 +- distclean-generic clean
1.948 +- -rm -f config.status
1.949 ++clean: clean-am
1.950 +
1.951 +-maintainer-clean: maintainer-clean-noinstLIBRARIES \
1.952 ++distclean-am: distclean-noinstLIBRARIES distclean-compile \
1.953 ++ distclean-tags distclean-generic clean-am
1.954 ++
1.955 ++distclean: distclean-am
1.956 ++
1.957 ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
1.958 + maintainer-clean-compile maintainer-clean-tags \
1.959 +- maintainer-clean-generic distclean
1.960 ++ maintainer-clean-generic distclean-am
1.961 + @echo "This command is intended for maintainers to use;"
1.962 + @echo "it deletes files that may require special tools to rebuild."
1.963 +
1.964 ++maintainer-clean: maintainer-clean-am
1.965 ++
1.966 + .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
1.967 + clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
1.968 + mostlyclean-compile distclean-compile clean-compile \
1.969 + maintainer-clean-compile tags mostlyclean-tags distclean-tags \
1.970 +-clean-tags maintainer-clean-tags distdir info dvi installcheck \
1.971 +-install-info install-exec install-data install uninstall all \
1.972 +-installdirs mostlyclean-generic distclean-generic clean-generic \
1.973 ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
1.974 ++check-am installcheck-am installcheck install-info-am install-info \
1.975 ++install-exec-am install-exec install-data-am install-data install-am \
1.976 ++install uninstall-am uninstall all-redirect all-am all installdirs \
1.977 ++mostlyclean-generic distclean-generic clean-generic \
1.978 + maintainer-clean-generic clean mostlyclean distclean maintainer-clean
1.979 +
1.980 +
1.981 +diff -urN newlib-1.8.2/newlib/libc/posix/Makefile.in newlib-1.8.2-dc/newlib/libc/posix/Makefile.in
1.982 +--- newlib-1.8.2/newlib/libc/posix/Makefile.in 1998-12-01 08:03:46.000000000 +1000
1.983 ++++ newlib-1.8.2-dc/newlib/libc/posix/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.984 +@@ -1,6 +1,6 @@
1.985 +-# Makefile.in generated automatically by automake 1.3b from Makefile.am
1.986 ++# Makefile.in generated automatically by automake 1.4 from Makefile.am
1.987 +
1.988 +-# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
1.989 ++# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.990 + # This Makefile.in is free software; the Free Software Foundation
1.991 + # gives unlimited permission to copy and/or distribute it,
1.992 + # with or without modifications, as long as this notice is preserved.
1.993 +@@ -46,7 +46,7 @@
1.994 + AUTOHEADER = @AUTOHEADER@
1.995 +
1.996 + INSTALL = @INSTALL@
1.997 +-INSTALL_PROGRAM = @INSTALL_PROGRAM@
1.998 ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
1.999 + INSTALL_DATA = @INSTALL_DATA@
1.1000 + INSTALL_SCRIPT = @INSTALL_SCRIPT@
1.1001 + transform = @program_transform_name@
1.1002 +@@ -78,7 +78,6 @@
1.1003 + PACKAGE = @PACKAGE@
1.1004 + RANLIB = @RANLIB@
1.1005 + VERSION = @VERSION@
1.1006 +-mach_add_objs = @mach_add_objs@
1.1007 + machine_dir = @machine_dir@
1.1008 + newlib_basedir = @newlib_basedir@
1.1009 + sys_dir = @sys_dir@
1.1010 +@@ -89,12 +88,10 @@
1.1011 +
1.1012 + noinst_LIBRARIES = lib.a
1.1013 +
1.1014 +-lib_a_SOURCES = \
1.1015 +- closedir.c opendir.c readdir.c rewinddir.c scandir.c seekdir.c \
1.1016 +- telldir.c execl.c execle.c execlp.c execv.c execve.c execvp.c \
1.1017 +- popen.c creat.c isatty.c
1.1018 ++lib_a_SOURCES = closedir.c opendir.c readdir.c rewinddir.c scandir.c seekdir.c telldir.c execl.c execle.c execlp.c execv.c execve.c execvp.c popen.c creat.c isatty.c
1.1019 +
1.1020 +-CHEWOUT_FILES =
1.1021 ++
1.1022 ++CHEWOUT_FILES =
1.1023 +
1.1024 + SUFFIXES = .def
1.1025 +
1.1026 +@@ -118,22 +115,22 @@
1.1027 + popen.o creat.o isatty.o
1.1028 + CFLAGS = @CFLAGS@
1.1029 + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1.1030 +-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.1031 ++CCLD = $(CC)
1.1032 ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.1033 + DIST_COMMON = Makefile.am Makefile.in
1.1034 +
1.1035 +
1.1036 + DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
1.1037 +
1.1038 + TAR = tar
1.1039 +-GZIP = --best
1.1040 ++GZIP_ENV = --best
1.1041 + SOURCES = $(lib_a_SOURCES)
1.1042 + OBJECTS = $(lib_a_OBJECTS)
1.1043 +
1.1044 +-all: Makefile $(LIBRARIES)
1.1045 +-
1.1046 ++all: all-redirect
1.1047 + .SUFFIXES:
1.1048 + .SUFFIXES: .S .c .def .o .s
1.1049 +-$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.1050 ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.1051 + cd $(top_srcdir) && $(AUTOMAKE) --cygnus posix/Makefile
1.1052 +
1.1053 + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1.1054 +@@ -177,8 +174,12 @@
1.1055 + tags: TAGS
1.1056 +
1.1057 + ID: $(HEADERS) $(SOURCES) $(LISP)
1.1058 ++ list='$(SOURCES) $(HEADERS)'; \
1.1059 ++ unique=`for i in $$list; do echo $$i; done | \
1.1060 ++ awk ' { files[$$0] = 1; } \
1.1061 ++ END { for (i in files) print i; }'`; \
1.1062 + here=`pwd` && cd $(srcdir) \
1.1063 +- && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
1.1064 ++ && mkid -f$$here/ID $$unique $(LISP)
1.1065 +
1.1066 + TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
1.1067 + tags=; \
1.1068 +@@ -206,28 +207,39 @@
1.1069 + distdir: $(DISTFILES)
1.1070 + @for file in $(DISTFILES); do \
1.1071 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.1072 +- test -f $(distdir)/$$file \
1.1073 +- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.1074 +- || cp -p $$d/$$file $(distdir)/$$file; \
1.1075 ++ if test -d $$d/$$file; then \
1.1076 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.1077 ++ else \
1.1078 ++ test -f $(distdir)/$$file \
1.1079 ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.1080 ++ || cp -p $$d/$$file $(distdir)/$$file || :; \
1.1081 ++ fi; \
1.1082 + done
1.1083 +-info:
1.1084 +-dvi:
1.1085 +-check:
1.1086 +-installcheck:
1.1087 +-install-info:
1.1088 +-install-exec:
1.1089 +- @$(NORMAL_INSTALL)
1.1090 +-
1.1091 +-install-data:
1.1092 +- @$(NORMAL_INSTALL)
1.1093 +-
1.1094 +-install: install-exec install-data all
1.1095 +- @:
1.1096 +-
1.1097 +-uninstall:
1.1098 +-
1.1099 ++info-am:
1.1100 ++info: info-am
1.1101 ++dvi-am:
1.1102 ++dvi: dvi-am
1.1103 ++check-am:
1.1104 ++check: check-am
1.1105 ++installcheck-am:
1.1106 ++installcheck: installcheck-am
1.1107 ++install-info-am:
1.1108 ++install-info: install-info-am
1.1109 ++install-exec-am:
1.1110 ++install-exec: install-exec-am
1.1111 ++
1.1112 ++install-data-am:
1.1113 ++install-data: install-data-am
1.1114 ++
1.1115 ++install-am: all-am
1.1116 ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1.1117 ++install: install-am
1.1118 ++uninstall-am:
1.1119 ++uninstall: uninstall-am
1.1120 ++all-am: Makefile $(LIBRARIES)
1.1121 ++all-redirect: all-am
1.1122 + install-strip:
1.1123 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
1.1124 ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1.1125 + installdirs:
1.1126 +
1.1127 +
1.1128 +@@ -241,29 +253,38 @@
1.1129 + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1.1130 +
1.1131 + maintainer-clean-generic:
1.1132 +-mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.1133 ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.1134 + mostlyclean-tags mostlyclean-generic
1.1135 +
1.1136 +-clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.1137 +- mostlyclean
1.1138 ++mostlyclean: mostlyclean-am
1.1139 ++
1.1140 ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.1141 ++ mostlyclean-am
1.1142 +
1.1143 +-distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \
1.1144 +- distclean-generic clean
1.1145 +- -rm -f config.status
1.1146 ++clean: clean-am
1.1147 +
1.1148 +-maintainer-clean: maintainer-clean-noinstLIBRARIES \
1.1149 ++distclean-am: distclean-noinstLIBRARIES distclean-compile \
1.1150 ++ distclean-tags distclean-generic clean-am
1.1151 ++
1.1152 ++distclean: distclean-am
1.1153 ++
1.1154 ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
1.1155 + maintainer-clean-compile maintainer-clean-tags \
1.1156 +- maintainer-clean-generic distclean
1.1157 ++ maintainer-clean-generic distclean-am
1.1158 + @echo "This command is intended for maintainers to use;"
1.1159 + @echo "it deletes files that may require special tools to rebuild."
1.1160 +
1.1161 ++maintainer-clean: maintainer-clean-am
1.1162 ++
1.1163 + .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
1.1164 + clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
1.1165 + mostlyclean-compile distclean-compile clean-compile \
1.1166 + maintainer-clean-compile tags mostlyclean-tags distclean-tags \
1.1167 +-clean-tags maintainer-clean-tags distdir info dvi installcheck \
1.1168 +-install-info install-exec install-data install uninstall all \
1.1169 +-installdirs mostlyclean-generic distclean-generic clean-generic \
1.1170 ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
1.1171 ++check-am installcheck-am installcheck install-info-am install-info \
1.1172 ++install-exec-am install-exec install-data-am install-data install-am \
1.1173 ++install uninstall-am uninstall all-redirect all-am all installdirs \
1.1174 ++mostlyclean-generic distclean-generic clean-generic \
1.1175 + maintainer-clean-generic clean mostlyclean distclean maintainer-clean
1.1176 +
1.1177 +
1.1178 +diff -urN newlib-1.8.2/newlib/libc/reent/Makefile.in newlib-1.8.2-dc/newlib/libc/reent/Makefile.in
1.1179 +--- newlib-1.8.2/newlib/libc/reent/Makefile.in 1998-12-01 08:03:46.000000000 +1000
1.1180 ++++ newlib-1.8.2-dc/newlib/libc/reent/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.1181 +@@ -1,6 +1,6 @@
1.1182 +-# Makefile.in generated automatically by automake 1.3b from Makefile.am
1.1183 ++# Makefile.in generated automatically by automake 1.4 from Makefile.am
1.1184 +
1.1185 +-# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
1.1186 ++# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.1187 + # This Makefile.in is free software; the Free Software Foundation
1.1188 + # gives unlimited permission to copy and/or distribute it,
1.1189 + # with or without modifications, as long as this notice is preserved.
1.1190 +@@ -46,7 +46,7 @@
1.1191 + AUTOHEADER = @AUTOHEADER@
1.1192 +
1.1193 + INSTALL = @INSTALL@
1.1194 +-INSTALL_PROGRAM = @INSTALL_PROGRAM@
1.1195 ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
1.1196 + INSTALL_DATA = @INSTALL_DATA@
1.1197 + INSTALL_SCRIPT = @INSTALL_SCRIPT@
1.1198 + transform = @program_transform_name@
1.1199 +@@ -78,7 +78,6 @@
1.1200 + PACKAGE = @PACKAGE@
1.1201 + RANLIB = @RANLIB@
1.1202 + VERSION = @VERSION@
1.1203 +-mach_add_objs = @mach_add_objs@
1.1204 + machine_dir = @machine_dir@
1.1205 + newlib_basedir = @newlib_basedir@
1.1206 + sys_dir = @sys_dir@
1.1207 +@@ -89,36 +88,11 @@
1.1208 +
1.1209 + noinst_LIBRARIES = lib.a
1.1210 +
1.1211 +-lib_a_SOURCES = \
1.1212 +- closer.c \
1.1213 +- reent.c \
1.1214 +- impure.c \
1.1215 +- execr.c \
1.1216 +- fstatr.c \
1.1217 +- linkr.c \
1.1218 +- lseekr.c \
1.1219 +- openr.c \
1.1220 +- readr.c \
1.1221 +- signalr.c \
1.1222 +- sbrkr.c \
1.1223 +- statr.c \
1.1224 +- timer.c \
1.1225 +- writer.c
1.1226 +-
1.1227 +-CHEWOUT_FILES = \
1.1228 +- closer.def \
1.1229 +- reent.def \
1.1230 +- execr.def \
1.1231 +- fstatr.def \
1.1232 +- linkr.def \
1.1233 +- lseekr.def \
1.1234 +- openr.def \
1.1235 +- readr.def \
1.1236 +- signalr.def \
1.1237 +- sbrkr.def \
1.1238 +- statr.def \
1.1239 +- timer.def \
1.1240 +- writer.def
1.1241 ++lib_a_SOURCES = closer.c reent.c impure.c execr.c fstatr.c linkr.c lseekr.c openr.c readr.c signalr.c sbrkr.c statr.c timer.c writer.c
1.1242 ++
1.1243 ++
1.1244 ++CHEWOUT_FILES = closer.def reent.def execr.def fstatr.def linkr.def lseekr.def openr.def readr.def signalr.def sbrkr.def statr.def timer.def writer.def
1.1245 ++
1.1246 +
1.1247 + SUFFIXES = .def .h
1.1248 +
1.1249 +@@ -141,22 +115,22 @@
1.1250 + lseekr.o openr.o readr.o signalr.o sbrkr.o statr.o timer.o writer.o
1.1251 + CFLAGS = @CFLAGS@
1.1252 + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1.1253 +-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.1254 ++CCLD = $(CC)
1.1255 ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.1256 + DIST_COMMON = Makefile.am Makefile.in
1.1257 +
1.1258 +
1.1259 + DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
1.1260 +
1.1261 + TAR = tar
1.1262 +-GZIP = --best
1.1263 ++GZIP_ENV = --best
1.1264 + SOURCES = $(lib_a_SOURCES)
1.1265 + OBJECTS = $(lib_a_OBJECTS)
1.1266 +
1.1267 +-all: Makefile $(LIBRARIES)
1.1268 +-
1.1269 ++all: all-redirect
1.1270 + .SUFFIXES:
1.1271 + .SUFFIXES: .S .c .def .h .o .s
1.1272 +-$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.1273 ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.1274 + cd $(top_srcdir) && $(AUTOMAKE) --cygnus reent/Makefile
1.1275 +
1.1276 + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1.1277 +@@ -200,8 +174,12 @@
1.1278 + tags: TAGS
1.1279 +
1.1280 + ID: $(HEADERS) $(SOURCES) $(LISP)
1.1281 ++ list='$(SOURCES) $(HEADERS)'; \
1.1282 ++ unique=`for i in $$list; do echo $$i; done | \
1.1283 ++ awk ' { files[$$0] = 1; } \
1.1284 ++ END { for (i in files) print i; }'`; \
1.1285 + here=`pwd` && cd $(srcdir) \
1.1286 +- && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
1.1287 ++ && mkid -f$$here/ID $$unique $(LISP)
1.1288 +
1.1289 + TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
1.1290 + tags=; \
1.1291 +@@ -229,28 +207,39 @@
1.1292 + distdir: $(DISTFILES)
1.1293 + @for file in $(DISTFILES); do \
1.1294 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.1295 +- test -f $(distdir)/$$file \
1.1296 +- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.1297 +- || cp -p $$d/$$file $(distdir)/$$file; \
1.1298 ++ if test -d $$d/$$file; then \
1.1299 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.1300 ++ else \
1.1301 ++ test -f $(distdir)/$$file \
1.1302 ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.1303 ++ || cp -p $$d/$$file $(distdir)/$$file || :; \
1.1304 ++ fi; \
1.1305 + done
1.1306 +-info:
1.1307 +-dvi:
1.1308 +-check:
1.1309 +-installcheck:
1.1310 +-install-info:
1.1311 +-install-exec:
1.1312 +- @$(NORMAL_INSTALL)
1.1313 +-
1.1314 +-install-data:
1.1315 +- @$(NORMAL_INSTALL)
1.1316 +-
1.1317 +-install: install-exec install-data all
1.1318 +- @:
1.1319 +-
1.1320 +-uninstall:
1.1321 +-
1.1322 ++info-am:
1.1323 ++info: info-am
1.1324 ++dvi-am:
1.1325 ++dvi: dvi-am
1.1326 ++check-am:
1.1327 ++check: check-am
1.1328 ++installcheck-am:
1.1329 ++installcheck: installcheck-am
1.1330 ++install-info-am:
1.1331 ++install-info: install-info-am
1.1332 ++install-exec-am:
1.1333 ++install-exec: install-exec-am
1.1334 ++
1.1335 ++install-data-am:
1.1336 ++install-data: install-data-am
1.1337 ++
1.1338 ++install-am: all-am
1.1339 ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1.1340 ++install: install-am
1.1341 ++uninstall-am:
1.1342 ++uninstall: uninstall-am
1.1343 ++all-am: Makefile $(LIBRARIES)
1.1344 ++all-redirect: all-am
1.1345 + install-strip:
1.1346 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
1.1347 ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1.1348 + installdirs:
1.1349 +
1.1350 +
1.1351 +@@ -264,29 +253,38 @@
1.1352 + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1.1353 +
1.1354 + maintainer-clean-generic:
1.1355 +-mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.1356 ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.1357 + mostlyclean-tags mostlyclean-generic
1.1358 +
1.1359 +-clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.1360 +- mostlyclean
1.1361 ++mostlyclean: mostlyclean-am
1.1362 +
1.1363 +-distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \
1.1364 +- distclean-generic clean
1.1365 +- -rm -f config.status
1.1366 ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.1367 ++ mostlyclean-am
1.1368 +
1.1369 +-maintainer-clean: maintainer-clean-noinstLIBRARIES \
1.1370 ++clean: clean-am
1.1371 ++
1.1372 ++distclean-am: distclean-noinstLIBRARIES distclean-compile \
1.1373 ++ distclean-tags distclean-generic clean-am
1.1374 ++
1.1375 ++distclean: distclean-am
1.1376 ++
1.1377 ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
1.1378 + maintainer-clean-compile maintainer-clean-tags \
1.1379 +- maintainer-clean-generic distclean
1.1380 ++ maintainer-clean-generic distclean-am
1.1381 + @echo "This command is intended for maintainers to use;"
1.1382 + @echo "it deletes files that may require special tools to rebuild."
1.1383 +
1.1384 ++maintainer-clean: maintainer-clean-am
1.1385 ++
1.1386 + .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
1.1387 + clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
1.1388 + mostlyclean-compile distclean-compile clean-compile \
1.1389 + maintainer-clean-compile tags mostlyclean-tags distclean-tags \
1.1390 +-clean-tags maintainer-clean-tags distdir info dvi installcheck \
1.1391 +-install-info install-exec install-data install uninstall all \
1.1392 +-installdirs mostlyclean-generic distclean-generic clean-generic \
1.1393 ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
1.1394 ++check-am installcheck-am installcheck install-info-am install-info \
1.1395 ++install-exec-am install-exec install-data-am install-data install-am \
1.1396 ++install uninstall-am uninstall all-redirect all-am all installdirs \
1.1397 ++mostlyclean-generic distclean-generic clean-generic \
1.1398 + maintainer-clean-generic clean mostlyclean distclean maintainer-clean
1.1399 +
1.1400 +
1.1401 +diff -urN newlib-1.8.2/newlib/libc/signal/Makefile.in newlib-1.8.2-dc/newlib/libc/signal/Makefile.in
1.1402 +--- newlib-1.8.2/newlib/libc/signal/Makefile.in 1998-12-01 08:03:46.000000000 +1000
1.1403 ++++ newlib-1.8.2-dc/newlib/libc/signal/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.1404 +@@ -1,6 +1,6 @@
1.1405 +-# Makefile.in generated automatically by automake 1.3b from Makefile.am
1.1406 ++# Makefile.in generated automatically by automake 1.4 from Makefile.am
1.1407 +
1.1408 +-# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
1.1409 ++# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.1410 + # This Makefile.in is free software; the Free Software Foundation
1.1411 + # gives unlimited permission to copy and/or distribute it,
1.1412 + # with or without modifications, as long as this notice is preserved.
1.1413 +@@ -46,7 +46,7 @@
1.1414 + AUTOHEADER = @AUTOHEADER@
1.1415 +
1.1416 + INSTALL = @INSTALL@
1.1417 +-INSTALL_PROGRAM = @INSTALL_PROGRAM@
1.1418 ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
1.1419 + INSTALL_DATA = @INSTALL_DATA@
1.1420 + INSTALL_SCRIPT = @INSTALL_SCRIPT@
1.1421 + transform = @program_transform_name@
1.1422 +@@ -78,7 +78,6 @@
1.1423 + PACKAGE = @PACKAGE@
1.1424 + RANLIB = @RANLIB@
1.1425 + VERSION = @VERSION@
1.1426 +-mach_add_objs = @mach_add_objs@
1.1427 + machine_dir = @machine_dir@
1.1428 + newlib_basedir = @newlib_basedir@
1.1429 + sys_dir = @sys_dir@
1.1430 +@@ -113,22 +112,22 @@
1.1431 + lib_a_OBJECTS = raise.o signal.o
1.1432 + CFLAGS = @CFLAGS@
1.1433 + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1.1434 +-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.1435 ++CCLD = $(CC)
1.1436 ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.1437 + DIST_COMMON = Makefile.am Makefile.in
1.1438 +
1.1439 +
1.1440 + DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
1.1441 +
1.1442 + TAR = tar
1.1443 +-GZIP = --best
1.1444 ++GZIP_ENV = --best
1.1445 + SOURCES = $(lib_a_SOURCES)
1.1446 + OBJECTS = $(lib_a_OBJECTS)
1.1447 +
1.1448 +-all: Makefile $(LIBRARIES)
1.1449 +-
1.1450 ++all: all-redirect
1.1451 + .SUFFIXES:
1.1452 + .SUFFIXES: .S .c .def .o .s
1.1453 +-$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.1454 ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.1455 + cd $(top_srcdir) && $(AUTOMAKE) --cygnus signal/Makefile
1.1456 +
1.1457 + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1.1458 +@@ -172,8 +171,12 @@
1.1459 + tags: TAGS
1.1460 +
1.1461 + ID: $(HEADERS) $(SOURCES) $(LISP)
1.1462 ++ list='$(SOURCES) $(HEADERS)'; \
1.1463 ++ unique=`for i in $$list; do echo $$i; done | \
1.1464 ++ awk ' { files[$$0] = 1; } \
1.1465 ++ END { for (i in files) print i; }'`; \
1.1466 + here=`pwd` && cd $(srcdir) \
1.1467 +- && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
1.1468 ++ && mkid -f$$here/ID $$unique $(LISP)
1.1469 +
1.1470 + TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
1.1471 + tags=; \
1.1472 +@@ -201,28 +204,39 @@
1.1473 + distdir: $(DISTFILES)
1.1474 + @for file in $(DISTFILES); do \
1.1475 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.1476 +- test -f $(distdir)/$$file \
1.1477 +- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.1478 +- || cp -p $$d/$$file $(distdir)/$$file; \
1.1479 ++ if test -d $$d/$$file; then \
1.1480 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.1481 ++ else \
1.1482 ++ test -f $(distdir)/$$file \
1.1483 ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.1484 ++ || cp -p $$d/$$file $(distdir)/$$file || :; \
1.1485 ++ fi; \
1.1486 + done
1.1487 +-info:
1.1488 +-dvi:
1.1489 +-check:
1.1490 +-installcheck:
1.1491 +-install-info:
1.1492 +-install-exec:
1.1493 +- @$(NORMAL_INSTALL)
1.1494 +-
1.1495 +-install-data:
1.1496 +- @$(NORMAL_INSTALL)
1.1497 +-
1.1498 +-install: install-exec install-data all
1.1499 +- @:
1.1500 +-
1.1501 +-uninstall:
1.1502 +-
1.1503 ++info-am:
1.1504 ++info: info-am
1.1505 ++dvi-am:
1.1506 ++dvi: dvi-am
1.1507 ++check-am:
1.1508 ++check: check-am
1.1509 ++installcheck-am:
1.1510 ++installcheck: installcheck-am
1.1511 ++install-info-am:
1.1512 ++install-info: install-info-am
1.1513 ++install-exec-am:
1.1514 ++install-exec: install-exec-am
1.1515 ++
1.1516 ++install-data-am:
1.1517 ++install-data: install-data-am
1.1518 ++
1.1519 ++install-am: all-am
1.1520 ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1.1521 ++install: install-am
1.1522 ++uninstall-am:
1.1523 ++uninstall: uninstall-am
1.1524 ++all-am: Makefile $(LIBRARIES)
1.1525 ++all-redirect: all-am
1.1526 + install-strip:
1.1527 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
1.1528 ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1.1529 + installdirs:
1.1530 +
1.1531 +
1.1532 +@@ -236,29 +250,38 @@
1.1533 + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1.1534 +
1.1535 + maintainer-clean-generic:
1.1536 +-mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.1537 ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.1538 + mostlyclean-tags mostlyclean-generic
1.1539 +
1.1540 +-clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.1541 +- mostlyclean
1.1542 ++mostlyclean: mostlyclean-am
1.1543 ++
1.1544 ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.1545 ++ mostlyclean-am
1.1546 +
1.1547 +-distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \
1.1548 +- distclean-generic clean
1.1549 +- -rm -f config.status
1.1550 ++clean: clean-am
1.1551 +
1.1552 +-maintainer-clean: maintainer-clean-noinstLIBRARIES \
1.1553 ++distclean-am: distclean-noinstLIBRARIES distclean-compile \
1.1554 ++ distclean-tags distclean-generic clean-am
1.1555 ++
1.1556 ++distclean: distclean-am
1.1557 ++
1.1558 ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
1.1559 + maintainer-clean-compile maintainer-clean-tags \
1.1560 +- maintainer-clean-generic distclean
1.1561 ++ maintainer-clean-generic distclean-am
1.1562 + @echo "This command is intended for maintainers to use;"
1.1563 + @echo "it deletes files that may require special tools to rebuild."
1.1564 +
1.1565 ++maintainer-clean: maintainer-clean-am
1.1566 ++
1.1567 + .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
1.1568 + clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
1.1569 + mostlyclean-compile distclean-compile clean-compile \
1.1570 + maintainer-clean-compile tags mostlyclean-tags distclean-tags \
1.1571 +-clean-tags maintainer-clean-tags distdir info dvi installcheck \
1.1572 +-install-info install-exec install-data install uninstall all \
1.1573 +-installdirs mostlyclean-generic distclean-generic clean-generic \
1.1574 ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
1.1575 ++check-am installcheck-am installcheck install-info-am install-info \
1.1576 ++install-exec-am install-exec install-data-am install-data install-am \
1.1577 ++install uninstall-am uninstall all-redirect all-am all installdirs \
1.1578 ++mostlyclean-generic distclean-generic clean-generic \
1.1579 + maintainer-clean-generic clean mostlyclean distclean maintainer-clean
1.1580 +
1.1581 +
1.1582 +diff -urN newlib-1.8.2/newlib/libc/signal/signal.c newlib-1.8.2-dc/newlib/libc/signal/signal.c
1.1583 +--- newlib-1.8.2/newlib/libc/signal/signal.c 1998-03-11 06:09:23.000000000 +1000
1.1584 ++++ newlib-1.8.2-dc/newlib/libc/signal/signal.c 2006-07-06 18:28:31.000000000 +1000
1.1585 +@@ -180,13 +180,13 @@
1.1586 +
1.1587 + switch ((_POINTER_INT) ptr->_sig_func[sig])
1.1588 + {
1.1589 +- case SIG_DFL:
1.1590 ++ case (_POINTER_INT) SIG_DFL:
1.1591 + return _kill_r (ptr, _getpid_r (ptr), sig);
1.1592 +
1.1593 +- case SIG_IGN:
1.1594 ++ case (_POINTER_INT) SIG_IGN:
1.1595 + break;
1.1596 +
1.1597 +- case SIG_ERR:
1.1598 ++ case (_POINTER_INT) SIG_ERR:
1.1599 + ptr->_errno = EINVAL;
1.1600 + result = 1;
1.1601 + break;
1.1602 +@@ -218,13 +218,13 @@
1.1603 +
1.1604 + switch ((_POINTER_INT) ptr->_sig_func[sig])
1.1605 + {
1.1606 +- case SIG_DFL:
1.1607 ++ case (_POINTER_INT) SIG_DFL:
1.1608 + return 1;
1.1609 +
1.1610 +- case SIG_ERR:
1.1611 ++ case (_POINTER_INT) SIG_ERR:
1.1612 + return 2;
1.1613 +
1.1614 +- case SIG_IGN:
1.1615 ++ case (_POINTER_INT) SIG_IGN:
1.1616 + return 3;
1.1617 +
1.1618 + default:
1.1619 +diff -urN newlib-1.8.2/newlib/libc/stdio/Makefile.in newlib-1.8.2-dc/newlib/libc/stdio/Makefile.in
1.1620 +--- newlib-1.8.2/newlib/libc/stdio/Makefile.in 1999-07-07 00:52:14.000000000 +1000
1.1621 ++++ newlib-1.8.2-dc/newlib/libc/stdio/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.1622 +@@ -88,112 +88,12 @@
1.1623 +
1.1624 + noinst_LIBRARIES = lib.a
1.1625 +
1.1626 +-lib_a_SOURCES = \
1.1627 +- clearerr.c \
1.1628 +- fclose.c \
1.1629 +- fdopen.c \
1.1630 +- feof.c \
1.1631 +- ferror.c \
1.1632 +- fflush.c \
1.1633 +- fgetc.c \
1.1634 +- fgetpos.c \
1.1635 +- fgets.c \
1.1636 +- fileno.c \
1.1637 +- findfp.c \
1.1638 +- fiprintf.c \
1.1639 +- flags.c \
1.1640 +- fopen.c \
1.1641 +- fprintf.c \
1.1642 +- fputc.c \
1.1643 +- fputs.c \
1.1644 +- fread.c \
1.1645 +- freopen.c \
1.1646 +- fscanf.c \
1.1647 +- fseek.c \
1.1648 +- fsetpos.c \
1.1649 +- ftell.c \
1.1650 +- fvwrite.c \
1.1651 +- fwalk.c \
1.1652 +- fwrite.c \
1.1653 +- getc.c \
1.1654 +- getchar.c \
1.1655 +- gets.c \
1.1656 +- iprintf.c \
1.1657 +- makebuf.c \
1.1658 +- mktemp.c \
1.1659 +- perror.c \
1.1660 +- printf.c \
1.1661 +- putc.c \
1.1662 +- putchar.c \
1.1663 +- puts.c \
1.1664 +- refill.c \
1.1665 +- remove.c \
1.1666 +- rename.c \
1.1667 +- rewind.c \
1.1668 +- rget.c \
1.1669 +- scanf.c \
1.1670 +- setbuf.c \
1.1671 +- setvbuf.c \
1.1672 +- siprintf.c \
1.1673 +- snprintf.c \
1.1674 +- sprintf.c \
1.1675 +- sscanf.c \
1.1676 +- stdio.c \
1.1677 +- tmpfile.c \
1.1678 +- tmpnam.c \
1.1679 +- ungetc.c \
1.1680 +- vfprintf.c \
1.1681 +- vfscanf.c \
1.1682 +- vprintf.c \
1.1683 +- vsnprintf.c \
1.1684 +- vsprintf.c \
1.1685 +- wbuf.c \
1.1686 +- wsetup.c
1.1687 ++lib_a_SOURCES = clearerr.c fclose.c fdopen.c feof.c ferror.c fflush.c fgetc.c fgetpos.c fgets.c fileno.c findfp.c fiprintf.c flags.c fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c fseek.c fsetpos.c ftell.c fvwrite.c fwalk.c fwrite.c getc.c getchar.c gets.c iprintf.c makebuf.c mktemp.c perror.c printf.c putc.c putchar.c puts.c refill.c remove.c rename.c rewind.c rget.c scanf.c setbuf.c setvbuf.c siprintf.c snprintf.c sprintf.c sscanf.c stdio.c tmpfile.c tmpnam.c ungetc.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c vsprintf.c wbuf.c wsetup.c
1.1688 +
1.1689 +
1.1690 + lib_a_LIBADD = vfiprintf.o
1.1691 +
1.1692 +-CHEWOUT_FILES = \
1.1693 +- clearerr.def \
1.1694 +- fclose.def \
1.1695 +- fdopen.def \
1.1696 +- feof.def \
1.1697 +- ferror.def \
1.1698 +- fflush.def \
1.1699 +- fgetc.def \
1.1700 +- fgetpos.def \
1.1701 +- fgets.def \
1.1702 +- fileno.def \
1.1703 +- fiprintf.def \
1.1704 +- fopen.def \
1.1705 +- fputc.def \
1.1706 +- fputs.def \
1.1707 +- fread.def \
1.1708 +- freopen.def \
1.1709 +- fseek.def \
1.1710 +- fsetpos.def \
1.1711 +- ftell.def \
1.1712 +- fwrite.def \
1.1713 +- getc.def \
1.1714 +- getchar.def \
1.1715 +- gets.def \
1.1716 +- iprintf.def \
1.1717 +- mktemp.def \
1.1718 +- perror.def \
1.1719 +- putc.def \
1.1720 +- putchar.def \
1.1721 +- puts.def \
1.1722 +- remove.def \
1.1723 +- rename.def \
1.1724 +- rewind.def \
1.1725 +- setbuf.def \
1.1726 +- setvbuf.def \
1.1727 +- siprintf.def \
1.1728 +- sprintf.def \
1.1729 +- sscanf.def \
1.1730 +- tmpfile.def \
1.1731 +- tmpnam.def \
1.1732 +- vfprintf.def
1.1733 ++CHEWOUT_FILES = clearerr.def fclose.def fdopen.def feof.def ferror.def fflush.def fgetc.def fgetpos.def fgets.def fileno.def fiprintf.def fopen.def fputc.def fputs.def fread.def freopen.def fseek.def fsetpos.def ftell.def fwrite.def getc.def getchar.def gets.def iprintf.def mktemp.def perror.def putc.def putchar.def puts.def remove.def rename.def rewind.def setbuf.def setvbuf.def siprintf.def sprintf.def sscanf.def tmpfile.def tmpnam.def vfprintf.def
1.1734 +
1.1735 +
1.1736 + SUFFIXES = .def
1.1737 +@@ -316,7 +216,7 @@
1.1738 + @for file in $(DISTFILES); do \
1.1739 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.1740 + if test -d $$d/$$file; then \
1.1741 +- cp -pr $$/$$file $(distdir)/$$file; \
1.1742 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.1743 + else \
1.1744 + test -f $(distdir)/$$file \
1.1745 + || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.1746 +diff -urN newlib-1.8.2/newlib/libc/stdlib/Makefile.in newlib-1.8.2-dc/newlib/libc/stdlib/Makefile.in
1.1747 +--- newlib-1.8.2/newlib/libc/stdlib/Makefile.in 1999-05-29 07:23:57.000000000 +1000
1.1748 ++++ newlib-1.8.2-dc/newlib/libc/stdlib/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.1749 +@@ -1,6 +1,6 @@
1.1750 +-# Makefile.in generated automatically by automake 1.3b from Makefile.am
1.1751 ++# Makefile.in generated automatically by automake 1.4 from Makefile.am
1.1752 +
1.1753 +-# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
1.1754 ++# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.1755 + # This Makefile.in is free software; the Free Software Foundation
1.1756 + # gives unlimited permission to copy and/or distribute it,
1.1757 + # with or without modifications, as long as this notice is preserved.
1.1758 +@@ -46,7 +46,7 @@
1.1759 + AUTOHEADER = @AUTOHEADER@
1.1760 +
1.1761 + INSTALL = @INSTALL@
1.1762 +-INSTALL_PROGRAM = @INSTALL_PROGRAM@
1.1763 ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
1.1764 + INSTALL_DATA = @INSTALL_DATA@
1.1765 + INSTALL_SCRIPT = @INSTALL_SCRIPT@
1.1766 + transform = @program_transform_name@
1.1767 +@@ -78,7 +78,6 @@
1.1768 + PACKAGE = @PACKAGE@
1.1769 + RANLIB = @RANLIB@
1.1770 + VERSION = @VERSION@
1.1771 +-mach_add_objs = @mach_add_objs@
1.1772 + machine_dir = @machine_dir@
1.1773 + newlib_basedir = @newlib_basedir@
1.1774 + sys_dir = @sys_dir@
1.1775 +@@ -89,102 +88,16 @@
1.1776 +
1.1777 + noinst_LIBRARIES = lib.a
1.1778 +
1.1779 +-lib_a_SOURCES = \
1.1780 +- __adjust.c \
1.1781 +- __exp10.c \
1.1782 +- __ten_mu.c \
1.1783 +- abort.c \
1.1784 +- abs.c \
1.1785 +- assert.c \
1.1786 +- atexit.c \
1.1787 +- atof.c \
1.1788 +- atoff.c \
1.1789 +- atoi.c \
1.1790 +- atol.c \
1.1791 +- bsearch.c \
1.1792 +- calloc.c \
1.1793 +- div.c \
1.1794 +- dtoa.c \
1.1795 +- dtoastub.c \
1.1796 +- ecvtbuf.c \
1.1797 +- efgcvt.c \
1.1798 +- environ.c \
1.1799 +- envlock.c \
1.1800 +- eprintf.c \
1.1801 +- exit.c \
1.1802 +- getenv.c \
1.1803 +- getenv_r.c \
1.1804 +- getopt.c \
1.1805 +- labs.c \
1.1806 +- ldiv.c \
1.1807 +- malign.c \
1.1808 +- malloc.c \
1.1809 +- mblen.c \
1.1810 +- mblen_r.c \
1.1811 +- mbstowcs.c \
1.1812 +- mbstowcs_r.c \
1.1813 +- mbtowc.c \
1.1814 +- mbtowc_r.c \
1.1815 +- mlock.c \
1.1816 +- mprec.c \
1.1817 +- msize.c \
1.1818 +- mstats.c \
1.1819 +- mtrim.c \
1.1820 +- putenv.c \
1.1821 +- qsort.c \
1.1822 +- rand.c \
1.1823 +- rand_r.c \
1.1824 +- realloc.c \
1.1825 +- setenv.c \
1.1826 +- setenv_r.c \
1.1827 +- strdup.c \
1.1828 +- strtod.c \
1.1829 +- strtol.c \
1.1830 +- strtoul.c \
1.1831 +- system.c \
1.1832 +- valloc.c \
1.1833 +- wcstombs.c \
1.1834 +- wcstombs_r.c \
1.1835 +- wctomb.c \
1.1836 +- wctomb_r.c
1.1837 ++lib_a_SOURCES = __adjust.c __exp10.c __ten_mu.c abort.c abs.c assert.c atexit.c atof.c atoff.c atoi.c atol.c bsearch.c calloc.c div.c dtoa.c dtoastub.c ecvtbuf.c efgcvt.c environ.c envlock.c eprintf.c exit.c getenv.c getenv_r.c getopt.c labs.c ldiv.c malign.c malloc.c mblen.c mblen_r.c mbstowcs.c mbstowcs_r.c mbtowc.c mbtowc_r.c mlock.c mprec.c msize.c mstats.c mtrim.c putenv.c qsort.c rand.c rand_r.c realloc.c setenv.c setenv_r.c strdup.c strtod.c strtol.c strtoul.c system.c valloc.c wcstombs.c wcstombs_r.c wctomb.c wctomb_r.c
1.1838 ++
1.1839 ++
1.1840 ++lib_a_LIBADD = mallocr.o freer.o reallocr.o callocr.o cfreer.o malignr.o vallocr.o pvallocr.o mallinfor.o mallstatsr.o msizer.o malloptr.o
1.1841 +
1.1842 +-lib_a_LIBADD = mallocr.o freer.o reallocr.o callocr.o cfreer.o malignr.o \
1.1843 +- vallocr.o pvallocr.o mallinfor.o mallstatsr.o msizer.o malloptr.o
1.1844 +
1.1845 + MALLOC_COMPILE = $(COMPILE) -DINTERNAL_NEWLIB
1.1846 +
1.1847 +-CHEWOUT_FILES= \
1.1848 +- abort.def \
1.1849 +- abs.def \
1.1850 +- assert.def \
1.1851 +- atexit.def \
1.1852 +- atof.def \
1.1853 +- ecvtbuf.def \
1.1854 +- atoi.def \
1.1855 +- bsearch.def \
1.1856 +- calloc.def \
1.1857 +- div.def \
1.1858 +- efgcvt.def \
1.1859 +- envlock.def \
1.1860 +- exit.def \
1.1861 +- getenv.def \
1.1862 +- labs.def \
1.1863 +- ldiv.def \
1.1864 +- malloc.def \
1.1865 +- mallocr.def \
1.1866 +- mblen.def \
1.1867 +- mbstowcs.def \
1.1868 +- mbtowc.def \
1.1869 +- mlock.def \
1.1870 +- mstats.def \
1.1871 +- qsort.def \
1.1872 +- rand.def \
1.1873 +- strtod.def \
1.1874 +- strtol.def \
1.1875 +- strtoul.def \
1.1876 +- system.def \
1.1877 +- wcstombs.def \
1.1878 +- wctomb.def
1.1879 ++CHEWOUT_FILES = abort.def abs.def assert.def atexit.def atof.def ecvtbuf.def atoi.def bsearch.def calloc.def div.def efgcvt.def envlock.def exit.def getenv.def labs.def ldiv.def malloc.def mallocr.def mblen.def mbstowcs.def mbtowc.def mlock.def mstats.def qsort.def rand.def strtod.def strtol.def strtoul.def system.def wcstombs.def wctomb.def
1.1880 ++
1.1881 +
1.1882 + SUFFIXES = .def
1.1883 +
1.1884 +@@ -207,30 +120,30 @@
1.1885 + malloptr.o
1.1886 + lib_a_OBJECTS = __adjust.o __exp10.o __ten_mu.o abort.o abs.o assert.o \
1.1887 + atexit.o atof.o atoff.o atoi.o atol.o bsearch.o calloc.o div.o dtoa.o \
1.1888 +-dtoastub.o ecvtbuf.o efgcvt.o environ.o envlock.o eprintf.o exit.o getenv.o getenv_r.o \
1.1889 +-getopt.o labs.o ldiv.o malign.o malloc.o mblen.o mblen_r.o mbstowcs.o \
1.1890 +-mbstowcs_r.o mbtowc.o mbtowc_r.o mlock.o mprec.o msize.o mstats.o \
1.1891 +-mtrim.o putenv.o qsort.o rand.o rand_r.o realloc.o setenv.o setenv_r.o strdup.o \
1.1892 +-strtod.o strtol.o strtoul.o system.o valloc.o wcstombs.o wcstombs_r.o \
1.1893 +-wctomb.o wctomb_r.o
1.1894 ++dtoastub.o ecvtbuf.o efgcvt.o environ.o envlock.o eprintf.o exit.o \
1.1895 ++getenv.o getenv_r.o getopt.o labs.o ldiv.o malign.o malloc.o mblen.o \
1.1896 ++mblen_r.o mbstowcs.o mbstowcs_r.o mbtowc.o mbtowc_r.o mlock.o mprec.o \
1.1897 ++msize.o mstats.o mtrim.o putenv.o qsort.o rand.o rand_r.o realloc.o \
1.1898 ++setenv.o setenv_r.o strdup.o strtod.o strtol.o strtoul.o system.o \
1.1899 ++valloc.o wcstombs.o wcstombs_r.o wctomb.o wctomb_r.o
1.1900 + CFLAGS = @CFLAGS@
1.1901 + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1.1902 +-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.1903 ++CCLD = $(CC)
1.1904 ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.1905 + DIST_COMMON = Makefile.am Makefile.in
1.1906 +
1.1907 +
1.1908 + DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
1.1909 +
1.1910 + TAR = tar
1.1911 +-GZIP = --best
1.1912 ++GZIP_ENV = --best
1.1913 + SOURCES = $(lib_a_SOURCES)
1.1914 + OBJECTS = $(lib_a_OBJECTS)
1.1915 +
1.1916 +-all: Makefile $(LIBRARIES)
1.1917 +-
1.1918 ++all: all-redirect
1.1919 + .SUFFIXES:
1.1920 + .SUFFIXES: .S .c .def .o .s
1.1921 +-$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.1922 ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.1923 + cd $(top_srcdir) && $(AUTOMAKE) --cygnus stdlib/Makefile
1.1924 +
1.1925 + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1.1926 +@@ -274,8 +187,12 @@
1.1927 + tags: TAGS
1.1928 +
1.1929 + ID: $(HEADERS) $(SOURCES) $(LISP)
1.1930 ++ list='$(SOURCES) $(HEADERS)'; \
1.1931 ++ unique=`for i in $$list; do echo $$i; done | \
1.1932 ++ awk ' { files[$$0] = 1; } \
1.1933 ++ END { for (i in files) print i; }'`; \
1.1934 + here=`pwd` && cd $(srcdir) \
1.1935 +- && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
1.1936 ++ && mkid -f$$here/ID $$unique $(LISP)
1.1937 +
1.1938 + TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
1.1939 + tags=; \
1.1940 +@@ -303,28 +220,39 @@
1.1941 + distdir: $(DISTFILES)
1.1942 + @for file in $(DISTFILES); do \
1.1943 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.1944 +- test -f $(distdir)/$$file \
1.1945 +- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.1946 +- || cp -p $$d/$$file $(distdir)/$$file; \
1.1947 ++ if test -d $$d/$$file; then \
1.1948 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.1949 ++ else \
1.1950 ++ test -f $(distdir)/$$file \
1.1951 ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.1952 ++ || cp -p $$d/$$file $(distdir)/$$file || :; \
1.1953 ++ fi; \
1.1954 + done
1.1955 +-info:
1.1956 +-dvi:
1.1957 +-check:
1.1958 +-installcheck:
1.1959 +-install-info:
1.1960 +-install-exec:
1.1961 +- @$(NORMAL_INSTALL)
1.1962 +-
1.1963 +-install-data:
1.1964 +- @$(NORMAL_INSTALL)
1.1965 +-
1.1966 +-install: install-exec install-data all
1.1967 +- @:
1.1968 +-
1.1969 +-uninstall:
1.1970 +-
1.1971 ++info-am:
1.1972 ++info: info-am
1.1973 ++dvi-am:
1.1974 ++dvi: dvi-am
1.1975 ++check-am:
1.1976 ++check: check-am
1.1977 ++installcheck-am:
1.1978 ++installcheck: installcheck-am
1.1979 ++install-info-am:
1.1980 ++install-info: install-info-am
1.1981 ++install-exec-am:
1.1982 ++install-exec: install-exec-am
1.1983 ++
1.1984 ++install-data-am:
1.1985 ++install-data: install-data-am
1.1986 ++
1.1987 ++install-am: all-am
1.1988 ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1.1989 ++install: install-am
1.1990 ++uninstall-am:
1.1991 ++uninstall: uninstall-am
1.1992 ++all-am: Makefile $(LIBRARIES)
1.1993 ++all-redirect: all-am
1.1994 + install-strip:
1.1995 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
1.1996 ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1.1997 + installdirs:
1.1998 +
1.1999 +
1.2000 +@@ -338,29 +266,38 @@
1.2001 + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1.2002 +
1.2003 + maintainer-clean-generic:
1.2004 +-mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.2005 ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.2006 + mostlyclean-tags mostlyclean-generic
1.2007 +
1.2008 +-clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.2009 +- mostlyclean
1.2010 ++mostlyclean: mostlyclean-am
1.2011 +
1.2012 +-distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \
1.2013 +- distclean-generic clean
1.2014 +- -rm -f config.status
1.2015 ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.2016 ++ mostlyclean-am
1.2017 +
1.2018 +-maintainer-clean: maintainer-clean-noinstLIBRARIES \
1.2019 ++clean: clean-am
1.2020 ++
1.2021 ++distclean-am: distclean-noinstLIBRARIES distclean-compile \
1.2022 ++ distclean-tags distclean-generic clean-am
1.2023 ++
1.2024 ++distclean: distclean-am
1.2025 ++
1.2026 ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
1.2027 + maintainer-clean-compile maintainer-clean-tags \
1.2028 +- maintainer-clean-generic distclean
1.2029 ++ maintainer-clean-generic distclean-am
1.2030 + @echo "This command is intended for maintainers to use;"
1.2031 + @echo "it deletes files that may require special tools to rebuild."
1.2032 +
1.2033 ++maintainer-clean: maintainer-clean-am
1.2034 ++
1.2035 + .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
1.2036 + clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
1.2037 + mostlyclean-compile distclean-compile clean-compile \
1.2038 + maintainer-clean-compile tags mostlyclean-tags distclean-tags \
1.2039 +-clean-tags maintainer-clean-tags distdir info dvi installcheck \
1.2040 +-install-info install-exec install-data install uninstall all \
1.2041 +-installdirs mostlyclean-generic distclean-generic clean-generic \
1.2042 ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
1.2043 ++check-am installcheck-am installcheck install-info-am install-info \
1.2044 ++install-exec-am install-exec install-data-am install-data install-am \
1.2045 ++install uninstall-am uninstall all-redirect all-am all installdirs \
1.2046 ++mostlyclean-generic distclean-generic clean-generic \
1.2047 + maintainer-clean-generic clean mostlyclean distclean maintainer-clean
1.2048 +
1.2049 +
1.2050 +diff -urN newlib-1.8.2/newlib/libc/string/Makefile.in newlib-1.8.2-dc/newlib/libc/string/Makefile.in
1.2051 +--- newlib-1.8.2/newlib/libc/string/Makefile.in 1998-12-01 08:03:47.000000000 +1000
1.2052 ++++ newlib-1.8.2-dc/newlib/libc/string/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.2053 +@@ -1,6 +1,6 @@
1.2054 +-# Makefile.in generated automatically by automake 1.3b from Makefile.am
1.2055 ++# Makefile.in generated automatically by automake 1.4 from Makefile.am
1.2056 +
1.2057 +-# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
1.2058 ++# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.2059 + # This Makefile.in is free software; the Free Software Foundation
1.2060 + # gives unlimited permission to copy and/or distribute it,
1.2061 + # with or without modifications, as long as this notice is preserved.
1.2062 +@@ -46,7 +46,7 @@
1.2063 + AUTOHEADER = @AUTOHEADER@
1.2064 +
1.2065 + INSTALL = @INSTALL@
1.2066 +-INSTALL_PROGRAM = @INSTALL_PROGRAM@
1.2067 ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
1.2068 + INSTALL_DATA = @INSTALL_DATA@
1.2069 + INSTALL_SCRIPT = @INSTALL_SCRIPT@
1.2070 + transform = @program_transform_name@
1.2071 +@@ -78,7 +78,6 @@
1.2072 + PACKAGE = @PACKAGE@
1.2073 + RANLIB = @RANLIB@
1.2074 + VERSION = @VERSION@
1.2075 +-mach_add_objs = @mach_add_objs@
1.2076 + machine_dir = @machine_dir@
1.2077 + newlib_basedir = @newlib_basedir@
1.2078 + sys_dir = @sys_dir@
1.2079 +@@ -89,49 +88,11 @@
1.2080 +
1.2081 + noinst_LIBRARIES = lib.a
1.2082 +
1.2083 +-lib_a_SOURCES = \
1.2084 +- bcmp.c \
1.2085 +- bcopy.c \
1.2086 +- bzero.c \
1.2087 +- index.c \
1.2088 +- memchr.c \
1.2089 +- memcmp.c \
1.2090 +- memcpy.c \
1.2091 +- memmove.c \
1.2092 +- memset.c \
1.2093 +- rindex.c \
1.2094 +- strcat.c \
1.2095 +- strchr.c \
1.2096 +- strcmp.c \
1.2097 +- strcasecmp.c \
1.2098 +- strcoll.c \
1.2099 +- strcpy.c \
1.2100 +- strcspn.c \
1.2101 +- strerror.c \
1.2102 +- strlen.c \
1.2103 +- strlwr.c \
1.2104 +- strncat.c \
1.2105 +- strncmp.c \
1.2106 +- strncasecmp.c \
1.2107 +- strncpy.c \
1.2108 +- strpbrk.c \
1.2109 +- strrchr.c \
1.2110 +- strspn.c \
1.2111 +- strtok.c \
1.2112 +- strtok_r.c \
1.2113 +- strupr.c \
1.2114 +- strxfrm.c \
1.2115 +- strstr.c \
1.2116 +- u_strerr.c
1.2117 +-
1.2118 +-CHEWOUT_FILES=\
1.2119 +-bcmp.def memcpy.def strcmp.def strncat.def strstr.def \
1.2120 +-bcopy.def memmove.def strcoll.def strncmp.def strtok.def \
1.2121 +-bzero.def memset.def strcpy.def strncpy.def strxfrm.def \
1.2122 +-index.def rindex.def strcspn.def strpbrk.def \
1.2123 +-memchr.def strcat.def strerror.def strrchr.def \
1.2124 +-memcmp.def strchr.def strlen.def strspn.def \
1.2125 +-strcasecmp.def strncasecmp.def strlwr.def strupr.def
1.2126 ++lib_a_SOURCES = bcmp.c bcopy.c bzero.c index.c memchr.c memcmp.c memcpy.c memmove.c memset.c rindex.c strcat.c strchr.c strcmp.c strcasecmp.c strcoll.c strcpy.c strcspn.c strerror.c strlen.c strlwr.c strncat.c strncmp.c strncasecmp.c strncpy.c strpbrk.c strrchr.c strspn.c strtok.c strtok_r.c strupr.c strxfrm.c strstr.c u_strerr.c
1.2127 ++
1.2128 ++
1.2129 ++CHEWOUT_FILES = bcmp.def memcpy.def strcmp.def strncat.def strstr.def bcopy.def memmove.def strcoll.def strncmp.def strtok.def bzero.def memset.def strcpy.def strncpy.def strxfrm.def index.def rindex.def strcspn.def strpbrk.def memchr.def strcat.def strerror.def strrchr.def memcmp.def strchr.def strlen.def strspn.def strcasecmp.def strncasecmp.def strlwr.def strupr.def
1.2130 ++
1.2131 +
1.2132 + SUFFIXES = .def
1.2133 +
1.2134 +@@ -157,22 +118,22 @@
1.2135 + strspn.o strtok.o strtok_r.o strupr.o strxfrm.o strstr.o u_strerr.o
1.2136 + CFLAGS = @CFLAGS@
1.2137 + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1.2138 +-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.2139 ++CCLD = $(CC)
1.2140 ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.2141 + DIST_COMMON = Makefile.am Makefile.in
1.2142 +
1.2143 +
1.2144 + DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
1.2145 +
1.2146 + TAR = tar
1.2147 +-GZIP = --best
1.2148 ++GZIP_ENV = --best
1.2149 + SOURCES = $(lib_a_SOURCES)
1.2150 + OBJECTS = $(lib_a_OBJECTS)
1.2151 +
1.2152 +-all: Makefile $(LIBRARIES)
1.2153 +-
1.2154 ++all: all-redirect
1.2155 + .SUFFIXES:
1.2156 + .SUFFIXES: .S .c .def .o .s
1.2157 +-$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.2158 ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.2159 + cd $(top_srcdir) && $(AUTOMAKE) --cygnus string/Makefile
1.2160 +
1.2161 + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1.2162 +@@ -216,8 +177,12 @@
1.2163 + tags: TAGS
1.2164 +
1.2165 + ID: $(HEADERS) $(SOURCES) $(LISP)
1.2166 ++ list='$(SOURCES) $(HEADERS)'; \
1.2167 ++ unique=`for i in $$list; do echo $$i; done | \
1.2168 ++ awk ' { files[$$0] = 1; } \
1.2169 ++ END { for (i in files) print i; }'`; \
1.2170 + here=`pwd` && cd $(srcdir) \
1.2171 +- && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
1.2172 ++ && mkid -f$$here/ID $$unique $(LISP)
1.2173 +
1.2174 + TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
1.2175 + tags=; \
1.2176 +@@ -245,28 +210,39 @@
1.2177 + distdir: $(DISTFILES)
1.2178 + @for file in $(DISTFILES); do \
1.2179 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.2180 +- test -f $(distdir)/$$file \
1.2181 +- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.2182 +- || cp -p $$d/$$file $(distdir)/$$file; \
1.2183 ++ if test -d $$d/$$file; then \
1.2184 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.2185 ++ else \
1.2186 ++ test -f $(distdir)/$$file \
1.2187 ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.2188 ++ || cp -p $$d/$$file $(distdir)/$$file || :; \
1.2189 ++ fi; \
1.2190 + done
1.2191 +-info:
1.2192 +-dvi:
1.2193 +-check:
1.2194 +-installcheck:
1.2195 +-install-info:
1.2196 +-install-exec:
1.2197 +- @$(NORMAL_INSTALL)
1.2198 +-
1.2199 +-install-data:
1.2200 +- @$(NORMAL_INSTALL)
1.2201 +-
1.2202 +-install: install-exec install-data all
1.2203 +- @:
1.2204 +-
1.2205 +-uninstall:
1.2206 +-
1.2207 ++info-am:
1.2208 ++info: info-am
1.2209 ++dvi-am:
1.2210 ++dvi: dvi-am
1.2211 ++check-am:
1.2212 ++check: check-am
1.2213 ++installcheck-am:
1.2214 ++installcheck: installcheck-am
1.2215 ++install-info-am:
1.2216 ++install-info: install-info-am
1.2217 ++install-exec-am:
1.2218 ++install-exec: install-exec-am
1.2219 ++
1.2220 ++install-data-am:
1.2221 ++install-data: install-data-am
1.2222 ++
1.2223 ++install-am: all-am
1.2224 ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1.2225 ++install: install-am
1.2226 ++uninstall-am:
1.2227 ++uninstall: uninstall-am
1.2228 ++all-am: Makefile $(LIBRARIES)
1.2229 ++all-redirect: all-am
1.2230 + install-strip:
1.2231 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
1.2232 ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1.2233 + installdirs:
1.2234 +
1.2235 +
1.2236 +@@ -280,29 +256,38 @@
1.2237 + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1.2238 +
1.2239 + maintainer-clean-generic:
1.2240 +-mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.2241 ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.2242 + mostlyclean-tags mostlyclean-generic
1.2243 +
1.2244 +-clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.2245 +- mostlyclean
1.2246 ++mostlyclean: mostlyclean-am
1.2247 +
1.2248 +-distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \
1.2249 +- distclean-generic clean
1.2250 +- -rm -f config.status
1.2251 ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.2252 ++ mostlyclean-am
1.2253 +
1.2254 +-maintainer-clean: maintainer-clean-noinstLIBRARIES \
1.2255 ++clean: clean-am
1.2256 ++
1.2257 ++distclean-am: distclean-noinstLIBRARIES distclean-compile \
1.2258 ++ distclean-tags distclean-generic clean-am
1.2259 ++
1.2260 ++distclean: distclean-am
1.2261 ++
1.2262 ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
1.2263 + maintainer-clean-compile maintainer-clean-tags \
1.2264 +- maintainer-clean-generic distclean
1.2265 ++ maintainer-clean-generic distclean-am
1.2266 + @echo "This command is intended for maintainers to use;"
1.2267 + @echo "it deletes files that may require special tools to rebuild."
1.2268 +
1.2269 ++maintainer-clean: maintainer-clean-am
1.2270 ++
1.2271 + .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
1.2272 + clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
1.2273 + mostlyclean-compile distclean-compile clean-compile \
1.2274 + maintainer-clean-compile tags mostlyclean-tags distclean-tags \
1.2275 +-clean-tags maintainer-clean-tags distdir info dvi installcheck \
1.2276 +-install-info install-exec install-data install uninstall all \
1.2277 +-installdirs mostlyclean-generic distclean-generic clean-generic \
1.2278 ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
1.2279 ++check-am installcheck-am installcheck install-info-am install-info \
1.2280 ++install-exec-am install-exec install-data-am install-data install-am \
1.2281 ++install uninstall-am uninstall all-redirect all-am all installdirs \
1.2282 ++mostlyclean-generic distclean-generic clean-generic \
1.2283 + maintainer-clean-generic clean mostlyclean distclean maintainer-clean
1.2284 +
1.2285 +
1.2286 +diff -urN newlib-1.8.2/newlib/libc/sys/configure newlib-1.8.2-dc/newlib/libc/sys/configure
1.2287 +--- newlib-1.8.2/newlib/libc/sys/configure 1999-06-04 07:34:55.000000000 +1000
1.2288 ++++ newlib-1.8.2-dc/newlib/libc/sys/configure 2006-07-06 18:28:31.000000000 +1000
1.2289 +@@ -1342,7 +1342,7 @@
1.2290 + if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.2291 + for file in conftest.*; do
1.2292 + case $file in
1.2293 +- *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1.2294 ++ *.c | *.o | *.obj) ;;
1.2295 + *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1.2296 + esac
1.2297 + done
1.2298 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/absolute_vfs.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/absolute_vfs.c
1.2299 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/absolute_vfs.c 1970-01-01 10:00:00.000000000 +1000
1.2300 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/absolute_vfs.c 2006-07-06 18:28:31.000000000 +1000
1.2301 +@@ -0,0 +1,11 @@
1.2302 ++#include "vfs.h"
1.2303 ++
1.2304 ++int _newlib_vfs_is_absolute (void)
1.2305 ++{
1.2306 ++ return 0;
1.2307 ++}
1.2308 ++
1.2309 ++void _newlib_vfs_absolute_load (void)
1.2310 ++{
1.2311 ++ _newlib_vfs_initialized = VFS_LOADER_ABSOLUTE;
1.2312 ++}
1.2313 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/aclocal.m4 newlib-1.8.2-dc/newlib/libc/sys/dreamcast/aclocal.m4
1.2314 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/aclocal.m4 1970-01-01 10:00:00.000000000 +1000
1.2315 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/aclocal.m4 2006-07-06 18:28:31.000000000 +1000
1.2316 +@@ -0,0 +1,345 @@
1.2317 ++dnl aclocal.m4 generated automatically by aclocal 1.3b
1.2318 ++
1.2319 ++dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
1.2320 ++dnl This file is free software; the Free Software Foundation
1.2321 ++dnl gives unlimited permission to copy and/or distribute it,
1.2322 ++dnl with or without modifications, as long as this notice is preserved.
1.2323 ++
1.2324 ++dnl This program is distributed in the hope that it will be useful,
1.2325 ++dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1.2326 ++dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1.2327 ++dnl PARTICULAR PURPOSE.
1.2328 ++
1.2329 ++dnl This provides configure definitions used by all the newlib
1.2330 ++dnl configure.in files.
1.2331 ++
1.2332 ++dnl Basic newlib configury. This calls basic introductory stuff,
1.2333 ++dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST. It also runs
1.2334 ++dnl configure.host. The only argument is the relative path to the top
1.2335 ++dnl newlib directory.
1.2336 ++
1.2337 ++AC_DEFUN(NEWLIB_CONFIGURE,
1.2338 ++[
1.2339 ++dnl Default to --enable-multilib
1.2340 ++AC_ARG_ENABLE(multilib,
1.2341 ++[ --enable-multilib build many library versions (default)],
1.2342 ++[case "${enableval}" in
1.2343 ++ yes) multilib=yes ;;
1.2344 ++ no) multilib=no ;;
1.2345 ++ *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
1.2346 ++ esac], [multilib=yes])dnl
1.2347 ++
1.2348 ++dnl Support --enable-target-optspace
1.2349 ++AC_ARG_ENABLE(target-optspace,
1.2350 ++[ --enable-target-optspace optimize for space],
1.2351 ++[case "${enableval}" in
1.2352 ++ yes) target_optspace=yes ;;
1.2353 ++ no) target_optspace=no ;;
1.2354 ++ *) AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;;
1.2355 ++ esac], [target_optspace=])dnl
1.2356 ++
1.2357 ++dnl Support --enable-newlib-mb
1.2358 ++AC_ARG_ENABLE(newlib-mb,
1.2359 ++[ --enable-newlib-mb enable multibyte support],
1.2360 ++[case "${enableval}" in
1.2361 ++ yes) newlib_mb=yes ;;
1.2362 ++ no) newlib_mb=no ;;
1.2363 ++ *) AC_MSG_ERROR(bad value ${enableval} for newlib-mb option) ;;
1.2364 ++ esac], [newlib_mb=no])dnl
1.2365 ++
1.2366 ++dnl We may get other options which we don't document:
1.2367 ++dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
1.2368 ++
1.2369 ++test -z "[$]{with_target_subdir}" && with_target_subdir=.
1.2370 ++
1.2371 ++if test "[$]{srcdir}" = "."; then
1.2372 ++ if test "[$]{with_target_subdir}" != "."; then
1.2373 ++ newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1"
1.2374 ++ else
1.2375 ++ newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1"
1.2376 ++ fi
1.2377 ++else
1.2378 ++ newlib_basedir="[$]{srcdir}/$1"
1.2379 ++fi
1.2380 ++AC_SUBST(newlib_basedir)
1.2381 ++
1.2382 ++AC_CANONICAL_HOST
1.2383 ++
1.2384 ++AM_INIT_AUTOMAKE(newlib, 1.8.1)
1.2385 ++
1.2386 ++# FIXME: We temporarily define our own version of AC_PROG_CC. This is
1.2387 ++# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1.2388 ++# are probably using a cross compiler, which will not be able to fully
1.2389 ++# link an executable. This should really be fixed in autoconf
1.2390 ++# itself.
1.2391 ++
1.2392 ++AC_DEFUN(LIB_AC_PROG_CC,
1.2393 ++[AC_BEFORE([$0], [AC_PROG_CPP])dnl
1.2394 ++AC_CHECK_PROG(CC, gcc, gcc)
1.2395 ++if test -z "$CC"; then
1.2396 ++ AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
1.2397 ++ test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
1.2398 ++fi
1.2399 ++
1.2400 ++AC_PROG_CC_GNU
1.2401 ++
1.2402 ++if test $ac_cv_prog_gcc = yes; then
1.2403 ++ GCC=yes
1.2404 ++dnl Check whether -g works, even if CFLAGS is set, in case the package
1.2405 ++dnl plays around with CFLAGS (such as to build both debugging and
1.2406 ++dnl normal versions of a library), tasteless as that idea is.
1.2407 ++ ac_test_CFLAGS="${CFLAGS+set}"
1.2408 ++ ac_save_CFLAGS="$CFLAGS"
1.2409 ++ CFLAGS=
1.2410 ++ AC_PROG_CC_G
1.2411 ++ if test "$ac_test_CFLAGS" = set; then
1.2412 ++ CFLAGS="$ac_save_CFLAGS"
1.2413 ++ elif test $ac_cv_prog_cc_g = yes; then
1.2414 ++ CFLAGS="-g -O2"
1.2415 ++ else
1.2416 ++ CFLAGS="-O2"
1.2417 ++ fi
1.2418 ++else
1.2419 ++ GCC=
1.2420 ++ test "${CFLAGS+set}" = set || CFLAGS="-g"
1.2421 ++fi
1.2422 ++])
1.2423 ++
1.2424 ++LIB_AC_PROG_CC
1.2425 ++
1.2426 ++# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1.2427 ++# run it explicitly here, it will be run implicitly before
1.2428 ++# NEWLIB_CONFIGURE, which doesn't work because that means that it will
1.2429 ++# be run before AC_CANONICAL_HOST.
1.2430 ++AC_CANONICAL_BUILD
1.2431 ++
1.2432 ++AC_CHECK_TOOL(AS, as)
1.2433 ++AC_CHECK_TOOL(AR, ar)
1.2434 ++AC_CHECK_TOOL(RANLIB, ranlib, :)
1.2435 ++
1.2436 ++AM_PROG_INSTALL
1.2437 ++
1.2438 ++#AM_MAINTAINER_MODE
1.2439 ++
1.2440 ++# We need AM_EXEEXT to keep automake happy in cygnus mode. However,
1.2441 ++# at least currently, we never actually build a program, so we never
1.2442 ++# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1.2443 ++# fails, because we are probably configuring with a cross compiler
1.2444 ++# which can't create executables. So we include AM_EXEEXT to keep
1.2445 ++# automake happy, but we don't execute it, since we don't care about
1.2446 ++# the result.
1.2447 ++if false; then
1.2448 ++ AM_EXEEXT
1.2449 ++fi
1.2450 ++
1.2451 ++. [$]{newlib_basedir}/configure.host
1.2452 ++
1.2453 ++case [$]{newlib_basedir} in
1.2454 ++/* | [A-Za-z]:[/\\]*) newlib_flagbasedir=[$]{newlib_basedir} ;;
1.2455 ++*) newlib_flagbasedir='[$](top_builddir)/'[$]{newlib_basedir} ;;
1.2456 ++esac
1.2457 ++
1.2458 ++newlib_cflags="[$]{newlib_cflags} -I"'[$](top_builddir)'"/$1/targ-include -I[$]{newlib_flagbasedir}/libc/include"
1.2459 ++case "${host}" in
1.2460 ++ *-*-cygwin32*)
1.2461 ++ newlib_cflags="[$]{newlib_cflags} -I[$]{newlib_flagbasedir}/../winsup/include"
1.2462 ++ ;;
1.2463 ++esac
1.2464 ++
1.2465 ++newlib_cflags="[$]{newlib_cflags} -fno-builtin"
1.2466 ++
1.2467 ++NEWLIB_CFLAGS=${newlib_cflags}
1.2468 ++AC_SUBST(NEWLIB_CFLAGS)
1.2469 ++
1.2470 ++AC_SUBST(machine_dir)
1.2471 ++AC_SUBST(sys_dir)
1.2472 ++])
1.2473 ++
1.2474 ++# Do all the work for Automake. This macro actually does too much --
1.2475 ++# some checks are only needed if your package does certain things.
1.2476 ++# But this isn't really a big deal.
1.2477 ++
1.2478 ++# serial 1
1.2479 ++
1.2480 ++dnl Usage:
1.2481 ++dnl AM_INIT_AUTOMAKE(package,version, [no-define])
1.2482 ++
1.2483 ++AC_DEFUN(AM_INIT_AUTOMAKE,
1.2484 ++[AC_REQUIRE([AM_PROG_INSTALL])
1.2485 ++PACKAGE=[$1]
1.2486 ++AC_SUBST(PACKAGE)
1.2487 ++VERSION=[$2]
1.2488 ++AC_SUBST(VERSION)
1.2489 ++dnl test to see if srcdir already configured
1.2490 ++if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1.2491 ++ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1.2492 ++fi
1.2493 ++ifelse([$3],,
1.2494 ++AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
1.2495 ++AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
1.2496 ++AC_REQUIRE([AM_SANITY_CHECK])
1.2497 ++AC_REQUIRE([AC_ARG_PROGRAM])
1.2498 ++dnl FIXME This is truly gross.
1.2499 ++missing_dir=`cd $ac_aux_dir && pwd`
1.2500 ++AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
1.2501 ++AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
1.2502 ++AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
1.2503 ++AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
1.2504 ++AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
1.2505 ++AC_REQUIRE([AC_PROG_MAKE_SET])])
1.2506 ++
1.2507 ++
1.2508 ++# serial 1
1.2509 ++
1.2510 ++AC_DEFUN(AM_PROG_INSTALL,
1.2511 ++[AC_REQUIRE([AC_PROG_INSTALL])
1.2512 ++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1.2513 ++AC_SUBST(INSTALL_SCRIPT)dnl
1.2514 ++])
1.2515 ++
1.2516 ++#
1.2517 ++# Check to make sure that the build environment is sane.
1.2518 ++#
1.2519 ++
1.2520 ++AC_DEFUN(AM_SANITY_CHECK,
1.2521 ++[AC_MSG_CHECKING([whether build environment is sane])
1.2522 ++# Just in case
1.2523 ++sleep 1
1.2524 ++echo timestamp > conftestfile
1.2525 ++# Do `set' in a subshell so we don't clobber the current shell's
1.2526 ++# arguments. Must try -L first in case configure is actually a
1.2527 ++# symlink; some systems play weird games with the mod time of symlinks
1.2528 ++# (eg FreeBSD returns the mod time of the symlink's containing
1.2529 ++# directory).
1.2530 ++if (
1.2531 ++ set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1.2532 ++ if test "[$]*" = "X"; then
1.2533 ++ # -L didn't work.
1.2534 ++ set X `ls -t $srcdir/configure conftestfile`
1.2535 ++ fi
1.2536 ++ if test "[$]*" != "X $srcdir/configure conftestfile" \
1.2537 ++ && test "[$]*" != "X conftestfile $srcdir/configure"; then
1.2538 ++
1.2539 ++ # If neither matched, then we have a broken ls. This can happen
1.2540 ++ # if, for instance, CONFIG_SHELL is bash and it inherits a
1.2541 ++ # broken ls alias from the environment. This has actually
1.2542 ++ # happened. Such a system could not be considered "sane".
1.2543 ++ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1.2544 ++alias in your environment])
1.2545 ++ fi
1.2546 ++
1.2547 ++ test "[$]2" = conftestfile
1.2548 ++ )
1.2549 ++then
1.2550 ++ # Ok.
1.2551 ++ :
1.2552 ++else
1.2553 ++ AC_MSG_ERROR([newly created file is older than distributed files!
1.2554 ++Check your system clock])
1.2555 ++fi
1.2556 ++rm -f conftest*
1.2557 ++AC_MSG_RESULT(yes)])
1.2558 ++
1.2559 ++dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
1.2560 ++dnl The program must properly implement --version.
1.2561 ++AC_DEFUN(AM_MISSING_PROG,
1.2562 ++[AC_MSG_CHECKING(for working $2)
1.2563 ++# Run test in a subshell; some versions of sh will print an error if
1.2564 ++# an executable is not found, even if stderr is redirected.
1.2565 ++# Redirect stdin to placate older versions of autoconf. Sigh.
1.2566 ++if ($2 --version) < /dev/null > /dev/null 2>&1; then
1.2567 ++ $1=$2
1.2568 ++ AC_MSG_RESULT(found)
1.2569 ++else
1.2570 ++ $1="$3/missing $2"
1.2571 ++ AC_MSG_RESULT(missing)
1.2572 ++fi
1.2573 ++AC_SUBST($1)])
1.2574 ++
1.2575 ++# Add --enable-maintainer-mode option to configure.
1.2576 ++# From Jim Meyering
1.2577 ++
1.2578 ++# serial 1
1.2579 ++
1.2580 ++AC_DEFUN(AM_MAINTAINER_MODE,
1.2581 ++[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1.2582 ++ dnl maintainer-mode is disabled by default
1.2583 ++ AC_ARG_ENABLE(maintainer-mode,
1.2584 ++[ --enable-maintainer-mode enable make rules and dependencies not useful
1.2585 ++ (and sometimes confusing) to the casual installer],
1.2586 ++ USE_MAINTAINER_MODE=$enableval,
1.2587 ++ USE_MAINTAINER_MODE=no)
1.2588 ++ AC_MSG_RESULT($USE_MAINTAINER_MODE)
1.2589 ++ if test $USE_MAINTAINER_MODE = yes; then
1.2590 ++ MAINT=
1.2591 ++ else
1.2592 ++ MAINT='#M#'
1.2593 ++ fi
1.2594 ++# AC_SUBST(MAINT)dnl
1.2595 ++]
1.2596 ++)
1.2597 ++
1.2598 ++# Check to see if we're running under Win32, without using
1.2599 ++# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
1.2600 ++# Otherwise set it to "".
1.2601 ++
1.2602 ++dnl AM_EXEEXT()
1.2603 ++dnl This knows we add .exe if we're building in the Cygwin32
1.2604 ++dnl environment. But if we're not, then it compiles a test program
1.2605 ++dnl to see if there is a suffix for executables.
1.2606 ++AC_DEFUN(AM_EXEEXT,
1.2607 ++[AC_REQUIRE([AM_CYGWIN32])
1.2608 ++AC_REQUIRE([AM_MINGW32])
1.2609 ++AC_MSG_CHECKING([for executable suffix])
1.2610 ++AC_CACHE_VAL(am_cv_exeext,
1.2611 ++[if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
1.2612 ++am_cv_exeext=.exe
1.2613 ++else
1.2614 ++cat > am_c_test.c << 'EOF'
1.2615 ++int main() {
1.2616 ++/* Nothing needed here */
1.2617 ++}
1.2618 ++EOF
1.2619 ++${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1.2620 ++am_cv_exeext=
1.2621 ++for file in am_c_test.*; do
1.2622 ++ case $file in
1.2623 ++ *.c) ;;
1.2624 ++ *.o) ;;
1.2625 ++ *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
1.2626 ++ esac
1.2627 ++done
1.2628 ++rm -f am_c_test*])
1.2629 ++test x"${am_cv_exeext}" = x && am_cv_exeext=no
1.2630 ++fi
1.2631 ++EXEEXT=""
1.2632 ++test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1.2633 ++AC_MSG_RESULT(${am_cv_exeext})
1.2634 ++AC_SUBST(EXEEXT)])
1.2635 ++
1.2636 ++# Check to see if we're running under Cygwin32, without using
1.2637 ++# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
1.2638 ++# Otherwise set it to "no".
1.2639 ++
1.2640 ++dnl AM_CYGWIN32()
1.2641 ++AC_DEFUN(AM_CYGWIN32,
1.2642 ++[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32,
1.2643 ++[AC_TRY_COMPILE(,[return __CYGWIN32__;],
1.2644 ++am_cv_cygwin32=yes, am_cv_cygwin32=no)
1.2645 ++rm -f conftest*])
1.2646 ++CYGWIN32=
1.2647 ++test "$am_cv_cygwin32" = yes && CYGWIN32=yes])
1.2648 ++
1.2649 ++# Check to see if we're running under Mingw, without using
1.2650 ++# AC_CANONICAL_*. If so, set output variable MINGW32 to "yes".
1.2651 ++# Otherwise set it to "no".
1.2652 ++
1.2653 ++dnl AM_MINGW32()
1.2654 ++AC_DEFUN(AM_MINGW32,
1.2655 ++[AC_CACHE_CHECK(for Mingw32 environment, am_cv_mingw32,
1.2656 ++[AC_TRY_COMPILE(,[return __MINGW32__;],
1.2657 ++am_cv_mingw32=yes, am_cv_mingw32=no)
1.2658 ++rm -f conftest*])
1.2659 ++MINGW32=
1.2660 ++test "$am_cv_mingw32" = yes && MINGW32=yes])
1.2661 ++
1.2662 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/chdir.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/chdir.c
1.2663 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/chdir.c 1970-01-01 10:00:00.000000000 +1000
1.2664 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/chdir.c 2006-07-06 18:28:31.000000000 +1000
1.2665 +@@ -0,0 +1,14 @@
1.2666 ++#include "vfs.h"
1.2667 ++
1.2668 ++int
1.2669 ++chdir (const char *path)
1.2670 ++{
1.2671 ++ char *obj = _newlib_vfs_new_string (path);
1.2672 ++
1.2673 ++ struct media_ops *mops = _newlib_vfs_get_media_ops (path);
1.2674 ++ int res = mops->chdir (obj);
1.2675 ++
1.2676 ++ _newlib_vfs_delete_string (obj);
1.2677 ++
1.2678 ++ return res;
1.2679 ++}
1.2680 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/chmod.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/chmod.c
1.2681 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/chmod.c 1970-01-01 10:00:00.000000000 +1000
1.2682 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/chmod.c 2006-07-06 18:28:31.000000000 +1000
1.2683 +@@ -0,0 +1,16 @@
1.2684 ++#include <sys/types.h>
1.2685 ++
1.2686 ++#include "vfs.h"
1.2687 ++
1.2688 ++int
1.2689 ++chmod (const char *path, mode_t mode)
1.2690 ++{
1.2691 ++ char *obj = _newlib_vfs_new_string (path);
1.2692 ++
1.2693 ++ struct media_ops *mops = _newlib_vfs_get_media_ops (path);
1.2694 ++ int res = mops->chmod (obj, mode);
1.2695 ++
1.2696 ++ _newlib_vfs_delete_string (obj);
1.2697 ++
1.2698 ++ return res;
1.2699 ++}
1.2700 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/close.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/close.c
1.2701 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/close.c 1970-01-01 10:00:00.000000000 +1000
1.2702 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/close.c 2006-07-06 18:28:31.000000000 +1000
1.2703 +@@ -0,0 +1,15 @@
1.2704 ++#include "vfs.h"
1.2705 ++
1.2706 ++int
1.2707 ++_close (int fd)
1.2708 ++{
1.2709 ++ struct file *pf = _newlib_vfs_get_file (fd);
1.2710 ++ int res = pf->fops->close (pf);
1.2711 ++
1.2712 ++ if (res >= 0)
1.2713 ++ {
1.2714 ++ return _newlib_vfs_remove_file (pf);
1.2715 ++ }
1.2716 ++
1.2717 ++ return res;
1.2718 ++}
1.2719 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/configure newlib-1.8.2-dc/newlib/libc/sys/dreamcast/configure
1.2720 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/configure 1970-01-01 10:00:00.000000000 +1000
1.2721 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/configure 2006-07-06 18:28:31.000000000 +1000
1.2722 +@@ -0,0 +1,1586 @@
1.2723 ++#! /bin/sh
1.2724 ++
1.2725 ++# Guess values for system-dependent variables and create Makefiles.
1.2726 ++# Generated automatically using autoconf version 2.13
1.2727 ++# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
1.2728 ++#
1.2729 ++# This configure script is free software; the Free Software Foundation
1.2730 ++# gives unlimited permission to copy, distribute and modify it.
1.2731 ++
1.2732 ++# Defaults:
1.2733 ++ac_help=
1.2734 ++ac_default_prefix=/usr/local
1.2735 ++# Any additions from configure.in:
1.2736 ++ac_help="$ac_help
1.2737 ++ --enable-multilib build many library versions (default)"
1.2738 ++ac_help="$ac_help
1.2739 ++ --enable-target-optspace optimize for space"
1.2740 ++ac_help="$ac_help
1.2741 ++ --enable-newlib-mb enable multibyte support"
1.2742 ++
1.2743 ++# Initialize some variables set by options.
1.2744 ++# The variables have the same names as the options, with
1.2745 ++# dashes changed to underlines.
1.2746 ++build=NONE
1.2747 ++cache_file=./config.cache
1.2748 ++exec_prefix=NONE
1.2749 ++host=NONE
1.2750 ++no_create=
1.2751 ++nonopt=NONE
1.2752 ++no_recursion=
1.2753 ++prefix=NONE
1.2754 ++program_prefix=NONE
1.2755 ++program_suffix=NONE
1.2756 ++program_transform_name=s,x,x,
1.2757 ++silent=
1.2758 ++site=
1.2759 ++srcdir=
1.2760 ++target=NONE
1.2761 ++verbose=
1.2762 ++x_includes=NONE
1.2763 ++x_libraries=NONE
1.2764 ++bindir='${exec_prefix}/bin'
1.2765 ++sbindir='${exec_prefix}/sbin'
1.2766 ++libexecdir='${exec_prefix}/libexec'
1.2767 ++datadir='${prefix}/share'
1.2768 ++sysconfdir='${prefix}/etc'
1.2769 ++sharedstatedir='${prefix}/com'
1.2770 ++localstatedir='${prefix}/var'
1.2771 ++libdir='${exec_prefix}/lib'
1.2772 ++includedir='${prefix}/include'
1.2773 ++oldincludedir='/usr/include'
1.2774 ++infodir='${prefix}/info'
1.2775 ++mandir='${prefix}/man'
1.2776 ++
1.2777 ++# Initialize some other variables.
1.2778 ++subdirs=
1.2779 ++MFLAGS= MAKEFLAGS=
1.2780 ++SHELL=${CONFIG_SHELL-/bin/sh}
1.2781 ++# Maximum number of lines to put in a shell here document.
1.2782 ++ac_max_here_lines=12
1.2783 ++
1.2784 ++ac_prev=
1.2785 ++for ac_option
1.2786 ++do
1.2787 ++
1.2788 ++ # If the previous option needs an argument, assign it.
1.2789 ++ if test -n "$ac_prev"; then
1.2790 ++ eval "$ac_prev=\$ac_option"
1.2791 ++ ac_prev=
1.2792 ++ continue
1.2793 ++ fi
1.2794 ++
1.2795 ++ case "$ac_option" in
1.2796 ++ -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
1.2797 ++ *) ac_optarg= ;;
1.2798 ++ esac
1.2799 ++
1.2800 ++ # Accept the important Cygnus configure options, so we can diagnose typos.
1.2801 ++
1.2802 ++ case "$ac_option" in
1.2803 ++
1.2804 ++ -bindir | --bindir | --bindi | --bind | --bin | --bi)
1.2805 ++ ac_prev=bindir ;;
1.2806 ++ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.2807 ++ bindir="$ac_optarg" ;;
1.2808 ++
1.2809 ++ -build | --build | --buil | --bui | --bu)
1.2810 ++ ac_prev=build ;;
1.2811 ++ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.2812 ++ build="$ac_optarg" ;;
1.2813 ++
1.2814 ++ -cache-file | --cache-file | --cache-fil | --cache-fi \
1.2815 ++ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1.2816 ++ ac_prev=cache_file ;;
1.2817 ++ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.2818 ++ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.2819 ++ cache_file="$ac_optarg" ;;
1.2820 ++
1.2821 ++ -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1.2822 ++ ac_prev=datadir ;;
1.2823 ++ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
1.2824 ++ | --da=*)
1.2825 ++ datadir="$ac_optarg" ;;
1.2826 ++
1.2827 ++ -disable-* | --disable-*)
1.2828 ++ ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
1.2829 ++ # Reject names that are not valid shell variable names.
1.2830 ++ if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
1.2831 ++ { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
1.2832 ++ fi
1.2833 ++ ac_feature=`echo $ac_feature| sed 's/-/_/g'`
1.2834 ++ eval "enable_${ac_feature}=no" ;;
1.2835 ++
1.2836 ++ -enable-* | --enable-*)
1.2837 ++ ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
1.2838 ++ # Reject names that are not valid shell variable names.
1.2839 ++ if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
1.2840 ++ { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
1.2841 ++ fi
1.2842 ++ ac_feature=`echo $ac_feature| sed 's/-/_/g'`
1.2843 ++ case "$ac_option" in
1.2844 ++ *=*) ;;
1.2845 ++ *) ac_optarg=yes ;;
1.2846 ++ esac
1.2847 ++ eval "enable_${ac_feature}='$ac_optarg'" ;;
1.2848 ++
1.2849 ++ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1.2850 ++ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1.2851 ++ | --exec | --exe | --ex)
1.2852 ++ ac_prev=exec_prefix ;;
1.2853 ++ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1.2854 ++ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1.2855 ++ | --exec=* | --exe=* | --ex=*)
1.2856 ++ exec_prefix="$ac_optarg" ;;
1.2857 ++
1.2858 ++ -gas | --gas | --ga | --g)
1.2859 ++ # Obsolete; use --with-gas.
1.2860 ++ with_gas=yes ;;
1.2861 ++
1.2862 ++ -help | --help | --hel | --he)
1.2863 ++ # Omit some internal or obsolete options to make the list less imposing.
1.2864 ++ # This message is too long to be a string in the A/UX 3.1 sh.
1.2865 ++ cat << EOF
1.2866 ++Usage: configure [options] [host]
1.2867 ++Options: [defaults in brackets after descriptions]
1.2868 ++Configuration:
1.2869 ++ --cache-file=FILE cache test results in FILE
1.2870 ++ --help print this message
1.2871 ++ --no-create do not create output files
1.2872 ++ --quiet, --silent do not print \`checking...' messages
1.2873 ++ --version print the version of autoconf that created configure
1.2874 ++Directory and file names:
1.2875 ++ --prefix=PREFIX install architecture-independent files in PREFIX
1.2876 ++ [$ac_default_prefix]
1.2877 ++ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.2878 ++ [same as prefix]
1.2879 ++ --bindir=DIR user executables in DIR [EPREFIX/bin]
1.2880 ++ --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
1.2881 ++ --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
1.2882 ++ --datadir=DIR read-only architecture-independent data in DIR
1.2883 ++ [PREFIX/share]
1.2884 ++ --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
1.2885 ++ --sharedstatedir=DIR modifiable architecture-independent data in DIR
1.2886 ++ [PREFIX/com]
1.2887 ++ --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
1.2888 ++ --libdir=DIR object code libraries in DIR [EPREFIX/lib]
1.2889 ++ --includedir=DIR C header files in DIR [PREFIX/include]
1.2890 ++ --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
1.2891 ++ --infodir=DIR info documentation in DIR [PREFIX/info]
1.2892 ++ --mandir=DIR man documentation in DIR [PREFIX/man]
1.2893 ++ --srcdir=DIR find the sources in DIR [configure dir or ..]
1.2894 ++ --program-prefix=PREFIX prepend PREFIX to installed program names
1.2895 ++ --program-suffix=SUFFIX append SUFFIX to installed program names
1.2896 ++ --program-transform-name=PROGRAM
1.2897 ++ run sed PROGRAM on installed program names
1.2898 ++EOF
1.2899 ++ cat << EOF
1.2900 ++Host type:
1.2901 ++ --build=BUILD configure for building on BUILD [BUILD=HOST]
1.2902 ++ --host=HOST configure for HOST [guessed]
1.2903 ++ --target=TARGET configure for TARGET [TARGET=HOST]
1.2904 ++Features and packages:
1.2905 ++ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1.2906 ++ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.2907 ++ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1.2908 ++ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.2909 ++ --x-includes=DIR X include files are in DIR
1.2910 ++ --x-libraries=DIR X library files are in DIR
1.2911 ++EOF
1.2912 ++ if test -n "$ac_help"; then
1.2913 ++ echo "--enable and --with options recognized:$ac_help"
1.2914 ++ fi
1.2915 ++ exit 0 ;;
1.2916 ++
1.2917 ++ -host | --host | --hos | --ho)
1.2918 ++ ac_prev=host ;;
1.2919 ++ -host=* | --host=* | --hos=* | --ho=*)
1.2920 ++ host="$ac_optarg" ;;
1.2921 ++
1.2922 ++ -includedir | --includedir | --includedi | --included | --include \
1.2923 ++ | --includ | --inclu | --incl | --inc)
1.2924 ++ ac_prev=includedir ;;
1.2925 ++ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1.2926 ++ | --includ=* | --inclu=* | --incl=* | --inc=*)
1.2927 ++ includedir="$ac_optarg" ;;
1.2928 ++
1.2929 ++ -infodir | --infodir | --infodi | --infod | --info | --inf)
1.2930 ++ ac_prev=infodir ;;
1.2931 ++ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.2932 ++ infodir="$ac_optarg" ;;
1.2933 ++
1.2934 ++ -libdir | --libdir | --libdi | --libd)
1.2935 ++ ac_prev=libdir ;;
1.2936 ++ -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.2937 ++ libdir="$ac_optarg" ;;
1.2938 ++
1.2939 ++ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1.2940 ++ | --libexe | --libex | --libe)
1.2941 ++ ac_prev=libexecdir ;;
1.2942 ++ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1.2943 ++ | --libexe=* | --libex=* | --libe=*)
1.2944 ++ libexecdir="$ac_optarg" ;;
1.2945 ++
1.2946 ++ -localstatedir | --localstatedir | --localstatedi | --localstated \
1.2947 ++ | --localstate | --localstat | --localsta | --localst \
1.2948 ++ | --locals | --local | --loca | --loc | --lo)
1.2949 ++ ac_prev=localstatedir ;;
1.2950 ++ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.2951 ++ | --localstate=* | --localstat=* | --localsta=* | --localst=* \
1.2952 ++ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.2953 ++ localstatedir="$ac_optarg" ;;
1.2954 ++
1.2955 ++ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1.2956 ++ ac_prev=mandir ;;
1.2957 ++ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.2958 ++ mandir="$ac_optarg" ;;
1.2959 ++
1.2960 ++ -nfp | --nfp | --nf)
1.2961 ++ # Obsolete; use --without-fp.
1.2962 ++ with_fp=no ;;
1.2963 ++
1.2964 ++ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.2965 ++ | --no-cr | --no-c)
1.2966 ++ no_create=yes ;;
1.2967 ++
1.2968 ++ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1.2969 ++ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1.2970 ++ no_recursion=yes ;;
1.2971 ++
1.2972 ++ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1.2973 ++ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1.2974 ++ | --oldin | --oldi | --old | --ol | --o)
1.2975 ++ ac_prev=oldincludedir ;;
1.2976 ++ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1.2977 ++ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1.2978 ++ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.2979 ++ oldincludedir="$ac_optarg" ;;
1.2980 ++
1.2981 ++ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1.2982 ++ ac_prev=prefix ;;
1.2983 ++ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.2984 ++ prefix="$ac_optarg" ;;
1.2985 ++
1.2986 ++ -program-prefix | --program-prefix | --program-prefi | --program-pref \
1.2987 ++ | --program-pre | --program-pr | --program-p)
1.2988 ++ ac_prev=program_prefix ;;
1.2989 ++ -program-prefix=* | --program-prefix=* | --program-prefi=* \
1.2990 ++ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.2991 ++ program_prefix="$ac_optarg" ;;
1.2992 ++
1.2993 ++ -program-suffix | --program-suffix | --program-suffi | --program-suff \
1.2994 ++ | --program-suf | --program-su | --program-s)
1.2995 ++ ac_prev=program_suffix ;;
1.2996 ++ -program-suffix=* | --program-suffix=* | --program-suffi=* \
1.2997 ++ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.2998 ++ program_suffix="$ac_optarg" ;;
1.2999 ++
1.3000 ++ -program-transform-name | --program-transform-name \
1.3001 ++ | --program-transform-nam | --program-transform-na \
1.3002 ++ | --program-transform-n | --program-transform- \
1.3003 ++ | --program-transform | --program-transfor \
1.3004 ++ | --program-transfo | --program-transf \
1.3005 ++ | --program-trans | --program-tran \
1.3006 ++ | --progr-tra | --program-tr | --program-t)
1.3007 ++ ac_prev=program_transform_name ;;
1.3008 ++ -program-transform-name=* | --program-transform-name=* \
1.3009 ++ | --program-transform-nam=* | --program-transform-na=* \
1.3010 ++ | --program-transform-n=* | --program-transform-=* \
1.3011 ++ | --program-transform=* | --program-transfor=* \
1.3012 ++ | --program-transfo=* | --program-transf=* \
1.3013 ++ | --program-trans=* | --program-tran=* \
1.3014 ++ | --progr-tra=* | --program-tr=* | --program-t=*)
1.3015 ++ program_transform_name="$ac_optarg" ;;
1.3016 ++
1.3017 ++ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1.3018 ++ | -silent | --silent | --silen | --sile | --sil)
1.3019 ++ silent=yes ;;
1.3020 ++
1.3021 ++ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1.3022 ++ ac_prev=sbindir ;;
1.3023 ++ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1.3024 ++ | --sbi=* | --sb=*)
1.3025 ++ sbindir="$ac_optarg" ;;
1.3026 ++
1.3027 ++ -sharedstatedir | --sharedstatedir | --sharedstatedi \
1.3028 ++ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1.3029 ++ | --sharedst | --shareds | --shared | --share | --shar \
1.3030 ++ | --sha | --sh)
1.3031 ++ ac_prev=sharedstatedir ;;
1.3032 ++ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1.3033 ++ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1.3034 ++ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1.3035 ++ | --sha=* | --sh=*)
1.3036 ++ sharedstatedir="$ac_optarg" ;;
1.3037 ++
1.3038 ++ -site | --site | --sit)
1.3039 ++ ac_prev=site ;;
1.3040 ++ -site=* | --site=* | --sit=*)
1.3041 ++ site="$ac_optarg" ;;
1.3042 ++
1.3043 ++ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1.3044 ++ ac_prev=srcdir ;;
1.3045 ++ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.3046 ++ srcdir="$ac_optarg" ;;
1.3047 ++
1.3048 ++ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1.3049 ++ | --syscon | --sysco | --sysc | --sys | --sy)
1.3050 ++ ac_prev=sysconfdir ;;
1.3051 ++ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1.3052 ++ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.3053 ++ sysconfdir="$ac_optarg" ;;
1.3054 ++
1.3055 ++ -target | --target | --targe | --targ | --tar | --ta | --t)
1.3056 ++ ac_prev=target ;;
1.3057 ++ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.3058 ++ target="$ac_optarg" ;;
1.3059 ++
1.3060 ++ -v | -verbose | --verbose | --verbos | --verbo | --verb)
1.3061 ++ verbose=yes ;;
1.3062 ++
1.3063 ++ -version | --version | --versio | --versi | --vers)
1.3064 ++ echo "configure generated by autoconf version 2.13"
1.3065 ++ exit 0 ;;
1.3066 ++
1.3067 ++ -with-* | --with-*)
1.3068 ++ ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
1.3069 ++ # Reject names that are not valid shell variable names.
1.3070 ++ if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
1.3071 ++ { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1.3072 ++ fi
1.3073 ++ ac_package=`echo $ac_package| sed 's/-/_/g'`
1.3074 ++ case "$ac_option" in
1.3075 ++ *=*) ;;
1.3076 ++ *) ac_optarg=yes ;;
1.3077 ++ esac
1.3078 ++ eval "with_${ac_package}='$ac_optarg'" ;;
1.3079 ++
1.3080 ++ -without-* | --without-*)
1.3081 ++ ac_package=`echo $ac_option|sed -e 's/-*without-//'`
1.3082 ++ # Reject names that are not valid shell variable names.
1.3083 ++ if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
1.3084 ++ { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1.3085 ++ fi
1.3086 ++ ac_package=`echo $ac_package| sed 's/-/_/g'`
1.3087 ++ eval "with_${ac_package}=no" ;;
1.3088 ++
1.3089 ++ --x)
1.3090 ++ # Obsolete; use --with-x.
1.3091 ++ with_x=yes ;;
1.3092 ++
1.3093 ++ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1.3094 ++ | --x-incl | --x-inc | --x-in | --x-i)
1.3095 ++ ac_prev=x_includes ;;
1.3096 ++ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1.3097 ++ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.3098 ++ x_includes="$ac_optarg" ;;
1.3099 ++
1.3100 ++ -x-libraries | --x-libraries | --x-librarie | --x-librari \
1.3101 ++ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1.3102 ++ ac_prev=x_libraries ;;
1.3103 ++ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1.3104 ++ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.3105 ++ x_libraries="$ac_optarg" ;;
1.3106 ++
1.3107 ++ -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
1.3108 ++ ;;
1.3109 ++
1.3110 ++ *)
1.3111 ++ if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
1.3112 ++ echo "configure: warning: $ac_option: invalid host type" 1>&2
1.3113 ++ fi
1.3114 ++ if test "x$nonopt" != xNONE; then
1.3115 ++ { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
1.3116 ++ fi
1.3117 ++ nonopt="$ac_option"
1.3118 ++ ;;
1.3119 ++
1.3120 ++ esac
1.3121 ++done
1.3122 ++
1.3123 ++if test -n "$ac_prev"; then
1.3124 ++ { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
1.3125 ++fi
1.3126 ++
1.3127 ++trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1.3128 ++
1.3129 ++# File descriptor usage:
1.3130 ++# 0 standard input
1.3131 ++# 1 file creation
1.3132 ++# 2 errors and warnings
1.3133 ++# 3 some systems may open it to /dev/tty
1.3134 ++# 4 used on the Kubota Titan
1.3135 ++# 6 checking for... messages and results
1.3136 ++# 5 compiler messages saved in config.log
1.3137 ++if test "$silent" = yes; then
1.3138 ++ exec 6>/dev/null
1.3139 ++else
1.3140 ++ exec 6>&1
1.3141 ++fi
1.3142 ++exec 5>./config.log
1.3143 ++
1.3144 ++echo "\
1.3145 ++This file contains any messages produced by compilers while
1.3146 ++running configure, to aid debugging if configure makes a mistake.
1.3147 ++" 1>&5
1.3148 ++
1.3149 ++# Strip out --no-create and --no-recursion so they do not pile up.
1.3150 ++# Also quote any args containing shell metacharacters.
1.3151 ++ac_configure_args=
1.3152 ++for ac_arg
1.3153 ++do
1.3154 ++ case "$ac_arg" in
1.3155 ++ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.3156 ++ | --no-cr | --no-c) ;;
1.3157 ++ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1.3158 ++ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1.3159 ++ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
1.3160 ++ ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.3161 ++ *) ac_configure_args="$ac_configure_args $ac_arg" ;;
1.3162 ++ esac
1.3163 ++done
1.3164 ++
1.3165 ++# NLS nuisances.
1.3166 ++# Only set these to C if already set. These must not be set unconditionally
1.3167 ++# because not all systems understand e.g. LANG=C (notably SCO).
1.3168 ++# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
1.3169 ++# Non-C LC_CTYPE values break the ctype check.
1.3170 ++if test "${LANG+set}" = set; then LANG=C; export LANG; fi
1.3171 ++if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
1.3172 ++if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
1.3173 ++if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
1.3174 ++
1.3175 ++# confdefs.h avoids OS command line length limits that DEFS can exceed.
1.3176 ++rm -rf conftest* confdefs.h
1.3177 ++# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1.3178 ++echo > confdefs.h
1.3179 ++
1.3180 ++# A filename unique to this package, relative to the directory that
1.3181 ++# configure is in, which we can look for to find out if srcdir is correct.
1.3182 ++ac_unique_file=sbrk.c
1.3183 ++
1.3184 ++# Find the source files, if location was not specified.
1.3185 ++if test -z "$srcdir"; then
1.3186 ++ ac_srcdir_defaulted=yes
1.3187 ++ # Try the directory containing this script, then its parent.
1.3188 ++ ac_prog=$0
1.3189 ++ ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
1.3190 ++ test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
1.3191 ++ srcdir=$ac_confdir
1.3192 ++ if test ! -r $srcdir/$ac_unique_file; then
1.3193 ++ srcdir=..
1.3194 ++ fi
1.3195 ++else
1.3196 ++ ac_srcdir_defaulted=no
1.3197 ++fi
1.3198 ++if test ! -r $srcdir/$ac_unique_file; then
1.3199 ++ if test "$ac_srcdir_defaulted" = yes; then
1.3200 ++ { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
1.3201 ++ else
1.3202 ++ { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
1.3203 ++ fi
1.3204 ++fi
1.3205 ++srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
1.3206 ++
1.3207 ++# Prefer explicitly selected file to automatically selected ones.
1.3208 ++if test -z "$CONFIG_SITE"; then
1.3209 ++ if test "x$prefix" != xNONE; then
1.3210 ++ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1.3211 ++ else
1.3212 ++ CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.3213 ++ fi
1.3214 ++fi
1.3215 ++for ac_site_file in $CONFIG_SITE; do
1.3216 ++ if test -r "$ac_site_file"; then
1.3217 ++ echo "loading site script $ac_site_file"
1.3218 ++ . "$ac_site_file"
1.3219 ++ fi
1.3220 ++done
1.3221 ++
1.3222 ++if test -r "$cache_file"; then
1.3223 ++ echo "loading cache $cache_file"
1.3224 ++ . $cache_file
1.3225 ++else
1.3226 ++ echo "creating cache $cache_file"
1.3227 ++ > $cache_file
1.3228 ++fi
1.3229 ++
1.3230 ++ac_ext=c
1.3231 ++# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1.3232 ++ac_cpp='$CPP $CPPFLAGS'
1.3233 ++ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1.3234 ++ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1.3235 ++cross_compiling=$ac_cv_prog_cc_cross
1.3236 ++
1.3237 ++ac_exeext=
1.3238 ++ac_objext=o
1.3239 ++if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
1.3240 ++ # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
1.3241 ++ if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
1.3242 ++ ac_n= ac_c='
1.3243 ++' ac_t=' '
1.3244 ++ else
1.3245 ++ ac_n=-n ac_c= ac_t=
1.3246 ++ fi
1.3247 ++else
1.3248 ++ ac_n= ac_c='\c' ac_t=
1.3249 ++fi
1.3250 ++
1.3251 ++
1.3252 ++
1.3253 ++ac_aux_dir=
1.3254 ++for ac_dir in ../../../.. $srcdir/../../../..; do
1.3255 ++ if test -f $ac_dir/install-sh; then
1.3256 ++ ac_aux_dir=$ac_dir
1.3257 ++ ac_install_sh="$ac_aux_dir/install-sh -c"
1.3258 ++ break
1.3259 ++ elif test -f $ac_dir/install.sh; then
1.3260 ++ ac_aux_dir=$ac_dir
1.3261 ++ ac_install_sh="$ac_aux_dir/install.sh -c"
1.3262 ++ break
1.3263 ++ fi
1.3264 ++done
1.3265 ++if test -z "$ac_aux_dir"; then
1.3266 ++ { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; }
1.3267 ++fi
1.3268 ++ac_config_guess=$ac_aux_dir/config.guess
1.3269 ++ac_config_sub=$ac_aux_dir/config.sub
1.3270 ++ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1.3271 ++
1.3272 ++
1.3273 ++# Find a good install program. We prefer a C program (faster),
1.3274 ++# so one script is as good as another. But avoid the broken or
1.3275 ++# incompatible versions:
1.3276 ++# SysV /etc/install, /usr/sbin/install
1.3277 ++# SunOS /usr/etc/install
1.3278 ++# IRIX /sbin/install
1.3279 ++# AIX /bin/install
1.3280 ++# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1.3281 ++# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1.3282 ++# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.3283 ++# ./install, which can be erroneously created by make from ./install.sh.
1.3284 ++echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.3285 ++echo "configure:564: checking for a BSD compatible install" >&5
1.3286 ++if test -z "$INSTALL"; then
1.3287 ++if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1.3288 ++ echo $ac_n "(cached) $ac_c" 1>&6
1.3289 ++else
1.3290 ++ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1.3291 ++ for ac_dir in $PATH; do
1.3292 ++ # Account for people who put trailing slashes in PATH elements.
1.3293 ++ case "$ac_dir/" in
1.3294 ++ /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1.3295 ++ *)
1.3296 ++ # OSF1 and SCO ODT 3.0 have their own names for install.
1.3297 ++ # Don't use installbsd from OSF since it installs stuff as root
1.3298 ++ # by default.
1.3299 ++ for ac_prog in ginstall scoinst install; do
1.3300 ++ if test -f $ac_dir/$ac_prog; then
1.3301 ++ if test $ac_prog = install &&
1.3302 ++ grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1.3303 ++ # AIX install. It has an incompatible calling convention.
1.3304 ++ :
1.3305 ++ else
1.3306 ++ ac_cv_path_install="$ac_dir/$ac_prog -c"
1.3307 ++ break 2
1.3308 ++ fi
1.3309 ++ fi
1.3310 ++ done
1.3311 ++ ;;
1.3312 ++ esac
1.3313 ++ done
1.3314 ++ IFS="$ac_save_IFS"
1.3315 ++
1.3316 ++fi
1.3317 ++ if test "${ac_cv_path_install+set}" = set; then
1.3318 ++ INSTALL="$ac_cv_path_install"
1.3319 ++ else
1.3320 ++ # As a last resort, use the slow shell script. We don't cache a
1.3321 ++ # path for INSTALL within a source directory, because that will
1.3322 ++ # break other packages using the cache if that directory is
1.3323 ++ # removed, or if the path is relative.
1.3324 ++ INSTALL="$ac_install_sh"
1.3325 ++ fi
1.3326 ++fi
1.3327 ++echo "$ac_t""$INSTALL" 1>&6
1.3328 ++
1.3329 ++# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1.3330 ++# It thinks the first close brace ends the variable substitution.
1.3331 ++test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.3332 ++
1.3333 ++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1.3334 ++
1.3335 ++test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.3336 ++
1.3337 ++
1.3338 ++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1.3339 ++
1.3340 ++echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1.3341 ++echo "configure:620: checking whether build environment is sane" >&5
1.3342 ++# Just in case
1.3343 ++sleep 1
1.3344 ++echo timestamp > conftestfile
1.3345 ++# Do `set' in a subshell so we don't clobber the current shell's
1.3346 ++# arguments. Must try -L first in case configure is actually a
1.3347 ++# symlink; some systems play weird games with the mod time of symlinks
1.3348 ++# (eg FreeBSD returns the mod time of the symlink's containing
1.3349 ++# directory).
1.3350 ++if (
1.3351 ++ set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1.3352 ++ if test "$*" = "X"; then
1.3353 ++ # -L didn't work.
1.3354 ++ set X `ls -t $srcdir/configure conftestfile`
1.3355 ++ fi
1.3356 ++ if test "$*" != "X $srcdir/configure conftestfile" \
1.3357 ++ && test "$*" != "X conftestfile $srcdir/configure"; then
1.3358 ++
1.3359 ++ # If neither matched, then we have a broken ls. This can happen
1.3360 ++ # if, for instance, CONFIG_SHELL is bash and it inherits a
1.3361 ++ # broken ls alias from the environment. This has actually
1.3362 ++ # happened. Such a system could not be considered "sane".
1.3363 ++ { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1.3364 ++alias in your environment" 1>&2; exit 1; }
1.3365 ++ fi
1.3366 ++
1.3367 ++ test "$2" = conftestfile
1.3368 ++ )
1.3369 ++then
1.3370 ++ # Ok.
1.3371 ++ :
1.3372 ++else
1.3373 ++ { echo "configure: error: newly created file is older than distributed files!
1.3374 ++Check your system clock" 1>&2; exit 1; }
1.3375 ++fi
1.3376 ++rm -f conftest*
1.3377 ++echo "$ac_t""yes" 1>&6
1.3378 ++if test "$program_transform_name" = s,x,x,; then
1.3379 ++ program_transform_name=
1.3380 ++else
1.3381 ++ # Double any \ or $. echo might interpret backslashes.
1.3382 ++ cat <<\EOF_SED > conftestsed
1.3383 ++s,\\,\\\\,g; s,\$,$$,g
1.3384 ++EOF_SED
1.3385 ++ program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1.3386 ++ rm -f conftestsed
1.3387 ++fi
1.3388 ++test "$program_prefix" != NONE &&
1.3389 ++ program_transform_name="s,^,${program_prefix},; $program_transform_name"
1.3390 ++# Use a double $ so make ignores it.
1.3391 ++test "$program_suffix" != NONE &&
1.3392 ++ program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1.3393 ++
1.3394 ++# sed with no file args requires a program.
1.3395 ++test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1.3396 ++
1.3397 ++echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.3398 ++echo "configure:677: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.3399 ++set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1.3400 ++if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1.3401 ++ echo $ac_n "(cached) $ac_c" 1>&6
1.3402 ++else
1.3403 ++ cat > conftestmake <<\EOF
1.3404 ++all:
1.3405 ++ @echo 'ac_maketemp="${MAKE}"'
1.3406 ++EOF
1.3407 ++# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.3408 ++eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1.3409 ++if test -n "$ac_maketemp"; then
1.3410 ++ eval ac_cv_prog_make_${ac_make}_set=yes
1.3411 ++else
1.3412 ++ eval ac_cv_prog_make_${ac_make}_set=no
1.3413 ++fi
1.3414 ++rm -f conftestmake
1.3415 ++fi
1.3416 ++if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.3417 ++ echo "$ac_t""yes" 1>&6
1.3418 ++ SET_MAKE=
1.3419 ++else
1.3420 ++ echo "$ac_t""no" 1>&6
1.3421 ++ SET_MAKE="MAKE=${MAKE-make}"
1.3422 ++fi
1.3423 ++
1.3424 ++if test $host != $build; then
1.3425 ++ ac_tool_prefix=${host_alias}-
1.3426 ++else
1.3427 ++ ac_tool_prefix=
1.3428 ++fi
1.3429 ++
1.3430 ++echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1.3431 ++echo "configure:710: checking for Cygwin32 environment" >&5
1.3432 ++if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1.3433 ++ echo $ac_n "(cached) $ac_c" 1>&6
1.3434 ++else
1.3435 ++ cat > conftest.$ac_ext <<EOF
1.3436 ++#line 715 "configure"
1.3437 ++#include "confdefs.h"
1.3438 ++
1.3439 ++int main() {
1.3440 ++return __CYGWIN32__;
1.3441 ++; return 0; }
1.3442 ++EOF
1.3443 ++if { (eval echo configure:722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.3444 ++ rm -rf conftest*
1.3445 ++ am_cv_cygwin32=yes
1.3446 ++else
1.3447 ++ echo "configure: failed program was:" >&5
1.3448 ++ cat conftest.$ac_ext >&5
1.3449 ++ rm -rf conftest*
1.3450 ++ am_cv_cygwin32=no
1.3451 ++fi
1.3452 ++rm -f conftest*
1.3453 ++rm -f conftest*
1.3454 ++fi
1.3455 ++
1.3456 ++echo "$ac_t""$am_cv_cygwin32" 1>&6
1.3457 ++CYGWIN32=
1.3458 ++test "$am_cv_cygwin32" = yes && CYGWIN32=yes
1.3459 ++echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1.3460 ++echo "configure:739: checking for Mingw32 environment" >&5
1.3461 ++if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
1.3462 ++ echo $ac_n "(cached) $ac_c" 1>&6
1.3463 ++else
1.3464 ++ cat > conftest.$ac_ext <<EOF
1.3465 ++#line 744 "configure"
1.3466 ++#include "confdefs.h"
1.3467 ++
1.3468 ++int main() {
1.3469 ++return __MINGW32__;
1.3470 ++; return 0; }
1.3471 ++EOF
1.3472 ++if { (eval echo configure:751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.3473 ++ rm -rf conftest*
1.3474 ++ am_cv_mingw32=yes
1.3475 ++else
1.3476 ++ echo "configure: failed program was:" >&5
1.3477 ++ cat conftest.$ac_ext >&5
1.3478 ++ rm -rf conftest*
1.3479 ++ am_cv_mingw32=no
1.3480 ++fi
1.3481 ++rm -f conftest*
1.3482 ++rm -f conftest*
1.3483 ++fi
1.3484 ++
1.3485 ++echo "$ac_t""$am_cv_mingw32" 1>&6
1.3486 ++MINGW32=
1.3487 ++test "$am_cv_mingw32" = yes && MINGW32=yes
1.3488 ++
1.3489 ++# Check whether --enable-multilib or --disable-multilib was given.
1.3490 ++if test "${enable_multilib+set}" = set; then
1.3491 ++ enableval="$enable_multilib"
1.3492 ++ case "${enableval}" in
1.3493 ++ yes) multilib=yes ;;
1.3494 ++ no) multilib=no ;;
1.3495 ++ *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1.3496 ++ esac
1.3497 ++else
1.3498 ++ multilib=yes
1.3499 ++fi
1.3500 ++
1.3501 ++# Check whether --enable-target-optspace or --disable-target-optspace was given.
1.3502 ++if test "${enable_target_optspace+set}" = set; then
1.3503 ++ enableval="$enable_target_optspace"
1.3504 ++ case "${enableval}" in
1.3505 ++ yes) target_optspace=yes ;;
1.3506 ++ no) target_optspace=no ;;
1.3507 ++ *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;;
1.3508 ++ esac
1.3509 ++else
1.3510 ++ target_optspace=
1.3511 ++fi
1.3512 ++
1.3513 ++# Check whether --enable-newlib-mb or --disable-newlib-mb was given.
1.3514 ++if test "${enable_newlib_mb+set}" = set; then
1.3515 ++ enableval="$enable_newlib_mb"
1.3516 ++ case "${enableval}" in
1.3517 ++ yes) newlib_mb=yes ;;
1.3518 ++ no) newlib_mb=no ;;
1.3519 ++ *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;;
1.3520 ++ esac
1.3521 ++else
1.3522 ++ newlib_mb=no
1.3523 ++fi
1.3524 ++
1.3525 ++
1.3526 ++test -z "${with_target_subdir}" && with_target_subdir=.
1.3527 ++
1.3528 ++if test "${srcdir}" = "."; then
1.3529 ++ if test "${with_target_subdir}" != "."; then
1.3530 ++ newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
1.3531 ++ else
1.3532 ++ newlib_basedir="${srcdir}/${with_multisrctop}../../.."
1.3533 ++ fi
1.3534 ++else
1.3535 ++ newlib_basedir="${srcdir}/../../.."
1.3536 ++fi
1.3537 ++
1.3538 ++
1.3539 ++
1.3540 ++# Make sure we can run config.sub.
1.3541 ++if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1.3542 ++else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1.3543 ++fi
1.3544 ++
1.3545 ++echo $ac_n "checking host system type""... $ac_c" 1>&6
1.3546 ++echo "configure:825: checking host system type" >&5
1.3547 ++
1.3548 ++host_alias=$host
1.3549 ++case "$host_alias" in
1.3550 ++NONE)
1.3551 ++ case $nonopt in
1.3552 ++ NONE)
1.3553 ++ if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1.3554 ++ else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1.3555 ++ fi ;;
1.3556 ++ *) host_alias=$nonopt ;;
1.3557 ++ esac ;;
1.3558 ++esac
1.3559 ++
1.3560 ++host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1.3561 ++host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1.3562 ++host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1.3563 ++host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.3564 ++echo "$ac_t""$host" 1>&6
1.3565 ++
1.3566 ++
1.3567 ++
1.3568 ++PACKAGE=newlib
1.3569 ++
1.3570 ++VERSION=1.8.1
1.3571 ++
1.3572 ++if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1.3573 ++ { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1.3574 ++fi
1.3575 ++cat >> confdefs.h <<EOF
1.3576 ++#define PACKAGE "$PACKAGE"
1.3577 ++EOF
1.3578 ++
1.3579 ++cat >> confdefs.h <<EOF
1.3580 ++#define VERSION "$VERSION"
1.3581 ++EOF
1.3582 ++
1.3583 ++
1.3584 ++
1.3585 ++missing_dir=`cd $ac_aux_dir && pwd`
1.3586 ++echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1.3587 ++echo "configure:866: checking for working aclocal" >&5
1.3588 ++# Run test in a subshell; some versions of sh will print an error if
1.3589 ++# an executable is not found, even if stderr is redirected.
1.3590 ++# Redirect stdin to placate older versions of autoconf. Sigh.
1.3591 ++if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1.3592 ++ ACLOCAL=aclocal
1.3593 ++ echo "$ac_t""found" 1>&6
1.3594 ++else
1.3595 ++ ACLOCAL="$missing_dir/missing aclocal"
1.3596 ++ echo "$ac_t""missing" 1>&6
1.3597 ++fi
1.3598 ++
1.3599 ++echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1.3600 ++echo "configure:879: checking for working autoconf" >&5
1.3601 ++# Run test in a subshell; some versions of sh will print an error if
1.3602 ++# an executable is not found, even if stderr is redirected.
1.3603 ++# Redirect stdin to placate older versions of autoconf. Sigh.
1.3604 ++if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1.3605 ++ AUTOCONF=autoconf
1.3606 ++ echo "$ac_t""found" 1>&6
1.3607 ++else
1.3608 ++ AUTOCONF="$missing_dir/missing autoconf"
1.3609 ++ echo "$ac_t""missing" 1>&6
1.3610 ++fi
1.3611 ++
1.3612 ++echo $ac_n "checking for working automake""... $ac_c" 1>&6
1.3613 ++echo "configure:892: checking for working automake" >&5
1.3614 ++# Run test in a subshell; some versions of sh will print an error if
1.3615 ++# an executable is not found, even if stderr is redirected.
1.3616 ++# Redirect stdin to placate older versions of autoconf. Sigh.
1.3617 ++if (automake --version) < /dev/null > /dev/null 2>&1; then
1.3618 ++ AUTOMAKE=automake
1.3619 ++ echo "$ac_t""found" 1>&6
1.3620 ++else
1.3621 ++ AUTOMAKE="$missing_dir/missing automake"
1.3622 ++ echo "$ac_t""missing" 1>&6
1.3623 ++fi
1.3624 ++
1.3625 ++echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1.3626 ++echo "configure:905: checking for working autoheader" >&5
1.3627 ++# Run test in a subshell; some versions of sh will print an error if
1.3628 ++# an executable is not found, even if stderr is redirected.
1.3629 ++# Redirect stdin to placate older versions of autoconf. Sigh.
1.3630 ++if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1.3631 ++ AUTOHEADER=autoheader
1.3632 ++ echo "$ac_t""found" 1>&6
1.3633 ++else
1.3634 ++ AUTOHEADER="$missing_dir/missing autoheader"
1.3635 ++ echo "$ac_t""missing" 1>&6
1.3636 ++fi
1.3637 ++
1.3638 ++echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1.3639 ++echo "configure:918: checking for working makeinfo" >&5
1.3640 ++# Run test in a subshell; some versions of sh will print an error if
1.3641 ++# an executable is not found, even if stderr is redirected.
1.3642 ++# Redirect stdin to placate older versions of autoconf. Sigh.
1.3643 ++if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1.3644 ++ MAKEINFO=makeinfo
1.3645 ++ echo "$ac_t""found" 1>&6
1.3646 ++else
1.3647 ++ MAKEINFO="$missing_dir/missing makeinfo"
1.3648 ++ echo "$ac_t""missing" 1>&6
1.3649 ++fi
1.3650 ++
1.3651 ++
1.3652 ++
1.3653 ++# FIXME: We temporarily define our own version of AC_PROG_CC. This is
1.3654 ++# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1.3655 ++# are probably using a cross compiler, which will not be able to fully
1.3656 ++# link an executable. This should really be fixed in autoconf
1.3657 ++# itself.
1.3658 ++
1.3659 ++
1.3660 ++
1.3661 ++# Extract the first word of "gcc", so it can be a program name with args.
1.3662 ++set dummy gcc; ac_word=$2
1.3663 ++echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.3664 ++echo "configure:943: checking for $ac_word" >&5
1.3665 ++if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1.3666 ++ echo $ac_n "(cached) $ac_c" 1>&6
1.3667 ++else
1.3668 ++ if test -n "$CC"; then
1.3669 ++ ac_cv_prog_CC="$CC" # Let the user override the test.
1.3670 ++else
1.3671 ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1.3672 ++ ac_dummy="$PATH"
1.3673 ++ for ac_dir in $ac_dummy; do
1.3674 ++ test -z "$ac_dir" && ac_dir=.
1.3675 ++ if test -f $ac_dir/$ac_word; then
1.3676 ++ ac_cv_prog_CC="gcc"
1.3677 ++ break
1.3678 ++ fi
1.3679 ++ done
1.3680 ++ IFS="$ac_save_ifs"
1.3681 ++fi
1.3682 ++fi
1.3683 ++CC="$ac_cv_prog_CC"
1.3684 ++if test -n "$CC"; then
1.3685 ++ echo "$ac_t""$CC" 1>&6
1.3686 ++else
1.3687 ++ echo "$ac_t""no" 1>&6
1.3688 ++fi
1.3689 ++
1.3690 ++if test -z "$CC"; then
1.3691 ++ # Extract the first word of "cc", so it can be a program name with args.
1.3692 ++set dummy cc; ac_word=$2
1.3693 ++echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.3694 ++echo "configure:973: checking for $ac_word" >&5
1.3695 ++if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1.3696 ++ echo $ac_n "(cached) $ac_c" 1>&6
1.3697 ++else
1.3698 ++ if test -n "$CC"; then
1.3699 ++ ac_cv_prog_CC="$CC" # Let the user override the test.
1.3700 ++else
1.3701 ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1.3702 ++ ac_prog_rejected=no
1.3703 ++ ac_dummy="$PATH"
1.3704 ++ for ac_dir in $ac_dummy; do
1.3705 ++ test -z "$ac_dir" && ac_dir=.
1.3706 ++ if test -f $ac_dir/$ac_word; then
1.3707 ++ if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1.3708 ++ ac_prog_rejected=yes
1.3709 ++ continue
1.3710 ++ fi
1.3711 ++ ac_cv_prog_CC="cc"
1.3712 ++ break
1.3713 ++ fi
1.3714 ++ done
1.3715 ++ IFS="$ac_save_ifs"
1.3716 ++if test $ac_prog_rejected = yes; then
1.3717 ++ # We found a bogon in the path, so make sure we never use it.
1.3718 ++ set dummy $ac_cv_prog_CC
1.3719 ++ shift
1.3720 ++ if test $# -gt 0; then
1.3721 ++ # We chose a different compiler from the bogus one.
1.3722 ++ # However, it has the same basename, so the bogon will be chosen
1.3723 ++ # first if we set CC to just the basename; use the full file name.
1.3724 ++ shift
1.3725 ++ set dummy "$ac_dir/$ac_word" "$@"
1.3726 ++ shift
1.3727 ++ ac_cv_prog_CC="$@"
1.3728 ++ fi
1.3729 ++fi
1.3730 ++fi
1.3731 ++fi
1.3732 ++CC="$ac_cv_prog_CC"
1.3733 ++if test -n "$CC"; then
1.3734 ++ echo "$ac_t""$CC" 1>&6
1.3735 ++else
1.3736 ++ echo "$ac_t""no" 1>&6
1.3737 ++fi
1.3738 ++
1.3739 ++ test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1.3740 ++fi
1.3741 ++
1.3742 ++echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.3743 ++echo "configure:1022: checking whether we are using GNU C" >&5
1.3744 ++if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1.3745 ++ echo $ac_n "(cached) $ac_c" 1>&6
1.3746 ++else
1.3747 ++ cat > conftest.c <<EOF
1.3748 ++#ifdef __GNUC__
1.3749 ++ yes;
1.3750 ++#endif
1.3751 ++EOF
1.3752 ++if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.3753 ++ ac_cv_prog_gcc=yes
1.3754 ++else
1.3755 ++ ac_cv_prog_gcc=no
1.3756 ++fi
1.3757 ++fi
1.3758 ++
1.3759 ++echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1.3760 ++
1.3761 ++if test $ac_cv_prog_gcc = yes; then
1.3762 ++ GCC=yes
1.3763 ++ ac_test_CFLAGS="${CFLAGS+set}"
1.3764 ++ ac_save_CFLAGS="$CFLAGS"
1.3765 ++ CFLAGS=
1.3766 ++ echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.3767 ++echo "configure:1046: checking whether ${CC-cc} accepts -g" >&5
1.3768 ++if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1.3769 ++ echo $ac_n "(cached) $ac_c" 1>&6
1.3770 ++else
1.3771 ++ echo 'void f(){}' > conftest.c
1.3772 ++if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1.3773 ++ ac_cv_prog_cc_g=yes
1.3774 ++else
1.3775 ++ ac_cv_prog_cc_g=no
1.3776 ++fi
1.3777 ++rm -f conftest*
1.3778 ++
1.3779 ++fi
1.3780 ++
1.3781 ++echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1.3782 ++ if test "$ac_test_CFLAGS" = set; then
1.3783 ++ CFLAGS="$ac_save_CFLAGS"
1.3784 ++ elif test $ac_cv_prog_cc_g = yes; then
1.3785 ++ CFLAGS="-g -O2"
1.3786 ++ else
1.3787 ++ CFLAGS="-O2"
1.3788 ++ fi
1.3789 ++else
1.3790 ++ GCC=
1.3791 ++ test "${CFLAGS+set}" = set || CFLAGS="-g"
1.3792 ++fi
1.3793 ++
1.3794 ++
1.3795 ++# AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1.3796 ++# run it explicitly here, it will be run implicitly before
1.3797 ++# NEWLIB_CONFIGURE, which doesn't work because that means that it will
1.3798 ++# be run before AC_CANONICAL_HOST.
1.3799 ++echo $ac_n "checking build system type""... $ac_c" 1>&6
1.3800 ++echo "configure:1079: checking build system type" >&5
1.3801 ++
1.3802 ++build_alias=$build
1.3803 ++case "$build_alias" in
1.3804 ++NONE)
1.3805 ++ case $nonopt in
1.3806 ++ NONE) build_alias=$host_alias ;;
1.3807 ++ *) build_alias=$nonopt ;;
1.3808 ++ esac ;;
1.3809 ++esac
1.3810 ++
1.3811 ++build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1.3812 ++build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1.3813 ++build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1.3814 ++build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.3815 ++echo "$ac_t""$build" 1>&6
1.3816 ++
1.3817 ++
1.3818 ++# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1.3819 ++set dummy ${ac_tool_prefix}as; ac_word=$2
1.3820 ++echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.3821 ++echo "configure:1100: checking for $ac_word" >&5
1.3822 ++if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1.3823 ++ echo $ac_n "(cached) $ac_c" 1>&6
1.3824 ++else
1.3825 ++ if test -n "$AS"; then
1.3826 ++ ac_cv_prog_AS="$AS" # Let the user override the test.
1.3827 ++else
1.3828 ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1.3829 ++ ac_dummy="$PATH"
1.3830 ++ for ac_dir in $ac_dummy; do
1.3831 ++ test -z "$ac_dir" && ac_dir=.
1.3832 ++ if test -f $ac_dir/$ac_word; then
1.3833 ++ ac_cv_prog_AS="${ac_tool_prefix}as"
1.3834 ++ break
1.3835 ++ fi
1.3836 ++ done
1.3837 ++ IFS="$ac_save_ifs"
1.3838 ++ test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1.3839 ++fi
1.3840 ++fi
1.3841 ++AS="$ac_cv_prog_AS"
1.3842 ++if test -n "$AS"; then
1.3843 ++ echo "$ac_t""$AS" 1>&6
1.3844 ++else
1.3845 ++ echo "$ac_t""no" 1>&6
1.3846 ++fi
1.3847 ++
1.3848 ++
1.3849 ++
1.3850 ++# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1.3851 ++set dummy ${ac_tool_prefix}ar; ac_word=$2
1.3852 ++echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.3853 ++echo "configure:1132: checking for $ac_word" >&5
1.3854 ++if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1.3855 ++ echo $ac_n "(cached) $ac_c" 1>&6
1.3856 ++else
1.3857 ++ if test -n "$AR"; then
1.3858 ++ ac_cv_prog_AR="$AR" # Let the user override the test.
1.3859 ++else
1.3860 ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1.3861 ++ ac_dummy="$PATH"
1.3862 ++ for ac_dir in $ac_dummy; do
1.3863 ++ test -z "$ac_dir" && ac_dir=.
1.3864 ++ if test -f $ac_dir/$ac_word; then
1.3865 ++ ac_cv_prog_AR="${ac_tool_prefix}ar"
1.3866 ++ break
1.3867 ++ fi
1.3868 ++ done
1.3869 ++ IFS="$ac_save_ifs"
1.3870 ++ test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1.3871 ++fi
1.3872 ++fi
1.3873 ++AR="$ac_cv_prog_AR"
1.3874 ++if test -n "$AR"; then
1.3875 ++ echo "$ac_t""$AR" 1>&6
1.3876 ++else
1.3877 ++ echo "$ac_t""no" 1>&6
1.3878 ++fi
1.3879 ++
1.3880 ++
1.3881 ++
1.3882 ++# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1.3883 ++set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.3884 ++echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.3885 ++echo "configure:1164: checking for $ac_word" >&5
1.3886 ++if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1.3887 ++ echo $ac_n "(cached) $ac_c" 1>&6
1.3888 ++else
1.3889 ++ if test -n "$RANLIB"; then
1.3890 ++ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.3891 ++else
1.3892 ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1.3893 ++ ac_dummy="$PATH"
1.3894 ++ for ac_dir in $ac_dummy; do
1.3895 ++ test -z "$ac_dir" && ac_dir=.
1.3896 ++ if test -f $ac_dir/$ac_word; then
1.3897 ++ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.3898 ++ break
1.3899 ++ fi
1.3900 ++ done
1.3901 ++ IFS="$ac_save_ifs"
1.3902 ++fi
1.3903 ++fi
1.3904 ++RANLIB="$ac_cv_prog_RANLIB"
1.3905 ++if test -n "$RANLIB"; then
1.3906 ++ echo "$ac_t""$RANLIB" 1>&6
1.3907 ++else
1.3908 ++ echo "$ac_t""no" 1>&6
1.3909 ++fi
1.3910 ++
1.3911 ++
1.3912 ++if test -z "$ac_cv_prog_RANLIB"; then
1.3913 ++if test -n "$ac_tool_prefix"; then
1.3914 ++ # Extract the first word of "ranlib", so it can be a program name with args.
1.3915 ++set dummy ranlib; ac_word=$2
1.3916 ++echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.3917 ++echo "configure:1196: checking for $ac_word" >&5
1.3918 ++if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1.3919 ++ echo $ac_n "(cached) $ac_c" 1>&6
1.3920 ++else
1.3921 ++ if test -n "$RANLIB"; then
1.3922 ++ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.3923 ++else
1.3924 ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1.3925 ++ ac_dummy="$PATH"
1.3926 ++ for ac_dir in $ac_dummy; do
1.3927 ++ test -z "$ac_dir" && ac_dir=.
1.3928 ++ if test -f $ac_dir/$ac_word; then
1.3929 ++ ac_cv_prog_RANLIB="ranlib"
1.3930 ++ break
1.3931 ++ fi
1.3932 ++ done
1.3933 ++ IFS="$ac_save_ifs"
1.3934 ++ test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1.3935 ++fi
1.3936 ++fi
1.3937 ++RANLIB="$ac_cv_prog_RANLIB"
1.3938 ++if test -n "$RANLIB"; then
1.3939 ++ echo "$ac_t""$RANLIB" 1>&6
1.3940 ++else
1.3941 ++ echo "$ac_t""no" 1>&6
1.3942 ++fi
1.3943 ++
1.3944 ++else
1.3945 ++ RANLIB=":"
1.3946 ++fi
1.3947 ++fi
1.3948 ++
1.3949 ++
1.3950 ++
1.3951 ++test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1.3952 ++
1.3953 ++
1.3954 ++#AM_MAINTAINER_MODE
1.3955 ++
1.3956 ++# We need AM_EXEEXT to keep automake happy in cygnus mode. However,
1.3957 ++# at least currently, we never actually build a program, so we never
1.3958 ++# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1.3959 ++# fails, because we are probably configuring with a cross compiler
1.3960 ++# which can't create executables. So we include AM_EXEEXT to keep
1.3961 ++# automake happy, but we don't execute it, since we don't care about
1.3962 ++# the result.
1.3963 ++if false; then
1.3964 ++
1.3965 ++
1.3966 ++echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1.3967 ++echo "configure:1246: checking for executable suffix" >&5
1.3968 ++if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1.3969 ++ echo $ac_n "(cached) $ac_c" 1>&6
1.3970 ++else
1.3971 ++ if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
1.3972 ++am_cv_exeext=.exe
1.3973 ++else
1.3974 ++cat > am_c_test.c << 'EOF'
1.3975 ++int main() {
1.3976 ++/* Nothing needed here */
1.3977 ++}
1.3978 ++EOF
1.3979 ++${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
1.3980 ++am_cv_exeext=
1.3981 ++for file in am_c_test.*; do
1.3982 ++ case $file in
1.3983 ++ *.c) ;;
1.3984 ++ *.o) ;;
1.3985 ++ *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
1.3986 ++ esac
1.3987 ++done
1.3988 ++rm -f am_c_test*
1.3989 ++fi
1.3990 ++
1.3991 ++test x"${am_cv_exeext}" = x && am_cv_exeext=no
1.3992 ++fi
1.3993 ++EXEEXT=""
1.3994 ++test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
1.3995 ++echo "$ac_t""${am_cv_exeext}" 1>&6
1.3996 ++
1.3997 ++fi
1.3998 ++
1.3999 ++. ${newlib_basedir}/configure.host
1.4000 ++
1.4001 ++case ${newlib_basedir} in
1.4002 ++/* | A-Za-z:/\\*) newlib_flagbasedir=${newlib_basedir} ;;
1.4003 ++*) newlib_flagbasedir='$(top_builddir)/'${newlib_basedir} ;;
1.4004 ++esac
1.4005 ++
1.4006 ++newlib_cflags="${newlib_cflags} -I"'$(top_builddir)'"/../../../targ-include -I${newlib_flagbasedir}/libc/include"
1.4007 ++case "${host}" in
1.4008 ++ *-*-cygwin32*)
1.4009 ++ newlib_cflags="${newlib_cflags} -I${newlib_flagbasedir}/../winsup/include"
1.4010 ++ ;;
1.4011 ++esac
1.4012 ++
1.4013 ++newlib_cflags="${newlib_cflags} -fno-builtin"
1.4014 ++
1.4015 ++NEWLIB_CFLAGS=${newlib_cflags}
1.4016 ++
1.4017 ++
1.4018 ++
1.4019 ++
1.4020 ++
1.4021 ++
1.4022 ++trap '' 1 2 15
1.4023 ++cat > confcache <<\EOF
1.4024 ++# This file is a shell script that caches the results of configure
1.4025 ++# tests run on this system so they can be shared between configure
1.4026 ++# scripts and configure runs. It is not useful on other systems.
1.4027 ++# If it contains results you don't want to keep, you may remove or edit it.
1.4028 ++#
1.4029 ++# By default, configure uses ./config.cache as the cache file,
1.4030 ++# creating it if it does not exist already. You can give configure
1.4031 ++# the --cache-file=FILE option to use a different cache file; that is
1.4032 ++# what configure does when it calls configure scripts in
1.4033 ++# subdirectories, so they share the cache.
1.4034 ++# Giving --cache-file=/dev/null disables caching, for debugging configure.
1.4035 ++# config.status only pays attention to the cache file if you give it the
1.4036 ++# --recheck option to rerun configure.
1.4037 ++#
1.4038 ++EOF
1.4039 ++# The following way of writing the cache mishandles newlines in values,
1.4040 ++# but we know of no workaround that is simple, portable, and efficient.
1.4041 ++# So, don't put newlines in cache variables' values.
1.4042 ++# Ultrix sh set writes to stderr and can't be redirected directly,
1.4043 ++# and sets the high bit in the cache file unless we assign to the vars.
1.4044 ++(set) 2>&1 |
1.4045 ++ case `(ac_space=' '; set | grep ac_space) 2>&1` in
1.4046 ++ *ac_space=\ *)
1.4047 ++ # `set' does not quote correctly, so add quotes (double-quote substitution
1.4048 ++ # turns \\\\ into \\, and sed turns \\ into \).
1.4049 ++ sed -n \
1.4050 ++ -e "s/'/'\\\\''/g" \
1.4051 ++ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1.4052 ++ ;;
1.4053 ++ *)
1.4054 ++ # `set' quotes correctly as required by POSIX, so do not add quotes.
1.4055 ++ sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1.4056 ++ ;;
1.4057 ++ esac >> confcache
1.4058 ++if cmp -s $cache_file confcache; then
1.4059 ++ :
1.4060 ++else
1.4061 ++ if test -w $cache_file; then
1.4062 ++ echo "updating cache $cache_file"
1.4063 ++ cat confcache > $cache_file
1.4064 ++ else
1.4065 ++ echo "not updating unwritable cache $cache_file"
1.4066 ++ fi
1.4067 ++fi
1.4068 ++rm -f confcache
1.4069 ++
1.4070 ++trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1.4071 ++
1.4072 ++test "x$prefix" = xNONE && prefix=$ac_default_prefix
1.4073 ++# Let make expand exec_prefix.
1.4074 ++test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.4075 ++
1.4076 ++# Any assignment to VPATH causes Sun make to only execute
1.4077 ++# the first set of double-colon rules, so remove it if not needed.
1.4078 ++# If there is a colon in the path, we need to keep it.
1.4079 ++if test "x$srcdir" = x.; then
1.4080 ++ ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1.4081 ++fi
1.4082 ++
1.4083 ++trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1.4084 ++
1.4085 ++# Transform confdefs.h into DEFS.
1.4086 ++# Protect against shell expansion while executing Makefile rules.
1.4087 ++# Protect against Makefile macro expansion.
1.4088 ++cat > conftest.defs <<\EOF
1.4089 ++s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1.4090 ++s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1.4091 ++s%\[%\\&%g
1.4092 ++s%\]%\\&%g
1.4093 ++s%\$%$$%g
1.4094 ++EOF
1.4095 ++DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1.4096 ++rm -f conftest.defs
1.4097 ++
1.4098 ++
1.4099 ++# Without the "./", some shells look in PATH for config.status.
1.4100 ++: ${CONFIG_STATUS=./config.status}
1.4101 ++
1.4102 ++echo creating $CONFIG_STATUS
1.4103 ++rm -f $CONFIG_STATUS
1.4104 ++cat > $CONFIG_STATUS <<EOF
1.4105 ++#! /bin/sh
1.4106 ++# Generated automatically by configure.
1.4107 ++# Run this file to recreate the current configuration.
1.4108 ++# This directory was configured as follows,
1.4109 ++# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.4110 ++#
1.4111 ++# $0 $ac_configure_args
1.4112 ++#
1.4113 ++# Compiler output produced by configure, useful for debugging
1.4114 ++# configure, is in ./config.log if it exists.
1.4115 ++
1.4116 ++ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1.4117 ++for ac_option
1.4118 ++do
1.4119 ++ case "\$ac_option" in
1.4120 ++ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.4121 ++ echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1.4122 ++ exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1.4123 ++ -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1.4124 ++ echo "$CONFIG_STATUS generated by autoconf version 2.13"
1.4125 ++ exit 0 ;;
1.4126 ++ -help | --help | --hel | --he | --h)
1.4127 ++ echo "\$ac_cs_usage"; exit 0 ;;
1.4128 ++ *) echo "\$ac_cs_usage"; exit 1 ;;
1.4129 ++ esac
1.4130 ++done
1.4131 ++
1.4132 ++ac_given_srcdir=$srcdir
1.4133 ++ac_given_INSTALL="$INSTALL"
1.4134 ++
1.4135 ++trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.4136 ++EOF
1.4137 ++cat >> $CONFIG_STATUS <<EOF
1.4138 ++
1.4139 ++# Protect against being on the right side of a sed subst in config.status.
1.4140 ++sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1.4141 ++ s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1.4142 ++$ac_vpsub
1.4143 ++$extrasub
1.4144 ++s%@SHELL@%$SHELL%g
1.4145 ++s%@CFLAGS@%$CFLAGS%g
1.4146 ++s%@CPPFLAGS@%$CPPFLAGS%g
1.4147 ++s%@CXXFLAGS@%$CXXFLAGS%g
1.4148 ++s%@FFLAGS@%$FFLAGS%g
1.4149 ++s%@DEFS@%$DEFS%g
1.4150 ++s%@LDFLAGS@%$LDFLAGS%g
1.4151 ++s%@LIBS@%$LIBS%g
1.4152 ++s%@exec_prefix@%$exec_prefix%g
1.4153 ++s%@prefix@%$prefix%g
1.4154 ++s%@program_transform_name@%$program_transform_name%g
1.4155 ++s%@bindir@%$bindir%g
1.4156 ++s%@sbindir@%$sbindir%g
1.4157 ++s%@libexecdir@%$libexecdir%g
1.4158 ++s%@datadir@%$datadir%g
1.4159 ++s%@sysconfdir@%$sysconfdir%g
1.4160 ++s%@sharedstatedir@%$sharedstatedir%g
1.4161 ++s%@localstatedir@%$localstatedir%g
1.4162 ++s%@libdir@%$libdir%g
1.4163 ++s%@includedir@%$includedir%g
1.4164 ++s%@oldincludedir@%$oldincludedir%g
1.4165 ++s%@infodir@%$infodir%g
1.4166 ++s%@mandir@%$mandir%g
1.4167 ++s%@newlib_basedir@%$newlib_basedir%g
1.4168 ++s%@host@%$host%g
1.4169 ++s%@host_alias@%$host_alias%g
1.4170 ++s%@host_cpu@%$host_cpu%g
1.4171 ++s%@host_vendor@%$host_vendor%g
1.4172 ++s%@host_os@%$host_os%g
1.4173 ++s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1.4174 ++s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1.4175 ++s%@INSTALL_DATA@%$INSTALL_DATA%g
1.4176 ++s%@PACKAGE@%$PACKAGE%g
1.4177 ++s%@VERSION@%$VERSION%g
1.4178 ++s%@ACLOCAL@%$ACLOCAL%g
1.4179 ++s%@AUTOCONF@%$AUTOCONF%g
1.4180 ++s%@AUTOMAKE@%$AUTOMAKE%g
1.4181 ++s%@AUTOHEADER@%$AUTOHEADER%g
1.4182 ++s%@MAKEINFO@%$MAKEINFO%g
1.4183 ++s%@SET_MAKE@%$SET_MAKE%g
1.4184 ++s%@CC@%$CC%g
1.4185 ++s%@build@%$build%g
1.4186 ++s%@build_alias@%$build_alias%g
1.4187 ++s%@build_cpu@%$build_cpu%g
1.4188 ++s%@build_vendor@%$build_vendor%g
1.4189 ++s%@build_os@%$build_os%g
1.4190 ++s%@AS@%$AS%g
1.4191 ++s%@AR@%$AR%g
1.4192 ++s%@RANLIB@%$RANLIB%g
1.4193 ++s%@EXEEXT@%$EXEEXT%g
1.4194 ++s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g
1.4195 ++s%@machine_dir@%$machine_dir%g
1.4196 ++s%@sys_dir@%$sys_dir%g
1.4197 ++
1.4198 ++CEOF
1.4199 ++EOF
1.4200 ++
1.4201 ++cat >> $CONFIG_STATUS <<\EOF
1.4202 ++
1.4203 ++# Split the substitutions into bite-sized pieces for seds with
1.4204 ++# small command number limits, like on Digital OSF/1 and HP-UX.
1.4205 ++ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1.4206 ++ac_file=1 # Number of current file.
1.4207 ++ac_beg=1 # First line for current file.
1.4208 ++ac_end=$ac_max_sed_cmds # Line after last line for current file.
1.4209 ++ac_more_lines=:
1.4210 ++ac_sed_cmds=""
1.4211 ++while $ac_more_lines; do
1.4212 ++ if test $ac_beg -gt 1; then
1.4213 ++ sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1.4214 ++ else
1.4215 ++ sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1.4216 ++ fi
1.4217 ++ if test ! -s conftest.s$ac_file; then
1.4218 ++ ac_more_lines=false
1.4219 ++ rm -f conftest.s$ac_file
1.4220 ++ else
1.4221 ++ if test -z "$ac_sed_cmds"; then
1.4222 ++ ac_sed_cmds="sed -f conftest.s$ac_file"
1.4223 ++ else
1.4224 ++ ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1.4225 ++ fi
1.4226 ++ ac_file=`expr $ac_file + 1`
1.4227 ++ ac_beg=$ac_end
1.4228 ++ ac_end=`expr $ac_end + $ac_max_sed_cmds`
1.4229 ++ fi
1.4230 ++done
1.4231 ++if test -z "$ac_sed_cmds"; then
1.4232 ++ ac_sed_cmds=cat
1.4233 ++fi
1.4234 ++EOF
1.4235 ++
1.4236 ++cat >> $CONFIG_STATUS <<EOF
1.4237 ++
1.4238 ++CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1.4239 ++EOF
1.4240 ++cat >> $CONFIG_STATUS <<\EOF
1.4241 ++for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1.4242 ++ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.4243 ++ case "$ac_file" in
1.4244 ++ *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1.4245 ++ ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1.4246 ++ *) ac_file_in="${ac_file}.in" ;;
1.4247 ++ esac
1.4248 ++
1.4249 ++ # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1.4250 ++
1.4251 ++ # Remove last slash and all that follows it. Not all systems have dirname.
1.4252 ++ ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1.4253 ++ if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1.4254 ++ # The file is in a subdirectory.
1.4255 ++ test ! -d "$ac_dir" && mkdir "$ac_dir"
1.4256 ++ ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1.4257 ++ # A "../" for each directory in $ac_dir_suffix.
1.4258 ++ ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1.4259 ++ else
1.4260 ++ ac_dir_suffix= ac_dots=
1.4261 ++ fi
1.4262 ++
1.4263 ++ case "$ac_given_srcdir" in
1.4264 ++ .) srcdir=.
1.4265 ++ if test -z "$ac_dots"; then top_srcdir=.
1.4266 ++ else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1.4267 ++ /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1.4268 ++ *) # Relative path.
1.4269 ++ srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1.4270 ++ top_srcdir="$ac_dots$ac_given_srcdir" ;;
1.4271 ++ esac
1.4272 ++
1.4273 ++ case "$ac_given_INSTALL" in
1.4274 ++ [/$]*) INSTALL="$ac_given_INSTALL" ;;
1.4275 ++ *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1.4276 ++ esac
1.4277 ++
1.4278 ++ echo creating "$ac_file"
1.4279 ++ rm -f "$ac_file"
1.4280 ++ configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1.4281 ++ case "$ac_file" in
1.4282 ++ *Makefile*) ac_comsub="1i\\
1.4283 ++# $configure_input" ;;
1.4284 ++ *) ac_comsub= ;;
1.4285 ++ esac
1.4286 ++
1.4287 ++ ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1.4288 ++ sed -e "$ac_comsub
1.4289 ++s%@configure_input@%$configure_input%g
1.4290 ++s%@srcdir@%$srcdir%g
1.4291 ++s%@top_srcdir@%$top_srcdir%g
1.4292 ++s%@INSTALL@%$INSTALL%g
1.4293 ++" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1.4294 ++fi; done
1.4295 ++rm -f conftest.s*
1.4296 ++
1.4297 ++EOF
1.4298 ++cat >> $CONFIG_STATUS <<EOF
1.4299 ++
1.4300 ++EOF
1.4301 ++cat >> $CONFIG_STATUS <<\EOF
1.4302 ++
1.4303 ++exit 0
1.4304 ++EOF
1.4305 ++chmod +x $CONFIG_STATUS
1.4306 ++rm -fr confdefs* $ac_clean_files
1.4307 ++test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1.4308 ++
1.4309 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/configure.in newlib-1.8.2-dc/newlib/libc/sys/dreamcast/configure.in
1.4310 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/configure.in 1970-01-01 10:00:00.000000000 +1000
1.4311 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/configure.in 2006-07-06 18:28:31.000000000 +1000
1.4312 +@@ -0,0 +1,12 @@
1.4313 ++dnl This is the newlib/libc/sys/sh configure.in file.
1.4314 ++dnl Process this file with autoconf to produce a configure script.
1.4315 ++
1.4316 ++AC_PREREQ(2.5)
1.4317 ++AC_INIT(sbrk.c)
1.4318 ++
1.4319 ++dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
1.4320 ++AC_CONFIG_AUX_DIR(../../../..)
1.4321 ++
1.4322 ++NEWLIB_CONFIGURE(../../..)
1.4323 ++
1.4324 ++AC_OUTPUT(Makefile)
1.4325 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/creat.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/creat.c
1.4326 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/creat.c 1970-01-01 10:00:00.000000000 +1000
1.4327 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/creat.c 2006-07-06 18:28:31.000000000 +1000
1.4328 +@@ -0,0 +1,22 @@
1.4329 ++#include <sys/types.h>
1.4330 ++#include <sys/fcntl.h>
1.4331 ++
1.4332 ++#include "vfs.h"
1.4333 ++
1.4334 ++int
1.4335 ++creat (const char *path, mode_t mode)
1.4336 ++{
1.4337 ++ char *obj = _newlib_vfs_new_string (path);
1.4338 ++
1.4339 ++ struct media_ops *mops = _newlib_vfs_get_media_ops (path);
1.4340 ++ struct file *pf = mops->creat (obj, mode);
1.4341 ++
1.4342 ++ _newlib_vfs_delete_string (obj);
1.4343 ++
1.4344 ++ if (pf != NULL)
1.4345 ++ {
1.4346 ++ return _newlib_vfs_insert_file (pf);
1.4347 ++ }
1.4348 ++
1.4349 ++ return -1;
1.4350 ++}
1.4351 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/crt0.S newlib-1.8.2-dc/newlib/libc/sys/dreamcast/crt0.S
1.4352 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/crt0.S 1970-01-01 10:00:00.000000000 +1000
1.4353 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/crt0.S 2006-07-06 18:28:31.000000000 +1000
1.4354 +@@ -0,0 +1,175 @@
1.4355 ++
1.4356 ++! need this here so that converting ELFs to binary doesn't break on the DC.
1.4357 ++! Note: this is a hack, unless I can find a better way to do this.
1.4358 ++ .section .init
1.4359 ++_fake_start:
1.4360 ++ mov.l start_k, r0
1.4361 ++ jmp @r0
1.4362 ++ nop
1.4363 ++
1.4364 ++ .align 4
1.4365 ++start_k:
1.4366 ++ .long _start
1.4367 ++
1.4368 ++ .section .text
1.4369 ++ .global _start
1.4370 ++ .global ___exit
1.4371 ++ /*.global _atexit*/
1.4372 ++_start:
1.4373 ++ mov.l setup_cache_k,r0
1.4374 ++ mov.l p2_mask,r1
1.4375 ++ or r1,r0
1.4376 ++ jmp @r0
1.4377 ++ nop
1.4378 ++setup_cache:
1.4379 ++ mov.l ccr_addr,r0
1.4380 ++ mov.w ccr_data,r1
1.4381 ++ mov.l r1,@r0
1.4382 ++ mov.l start_2_k,r0
1.4383 ++ nop
1.4384 ++ nop
1.4385 ++ nop
1.4386 ++ nop
1.4387 ++ nop
1.4388 ++ nop
1.4389 ++ nop
1.4390 ++ jmp @r0
1.4391 ++ nop
1.4392 ++start_2:
1.4393 ++ mov.l old_stack_k,r14
1.4394 ++ mov.l r15,@r14
1.4395 ++ mov.l old_pr_k,r14
1.4396 ++ sts pr,r15
1.4397 ++ mov.l r15,@r14
1.4398 ++ mov.l stack_k,r15
1.4399 ++
1.4400 ++ ! zero out bss
1.4401 ++ mov.l edata_k,r0
1.4402 ++ mov.l end_k,r1
1.4403 ++ mov #0,r2
1.4404 ++start_l:
1.4405 ++ mov.l r2,@r0
1.4406 ++ add #4,r0
1.4407 ++ cmp/ge r0,r1
1.4408 ++ bt start_l
1.4409 ++
1.4410 ++#if defined (__SH3E__) || defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY)
1.4411 ++ mov.l set_fpscr_k, r1
1.4412 ++ jsr @r1
1.4413 ++ mov #0,r4
1.4414 ++ lds r3,fpscr
1.4415 ++#endif /* defined (__SH3E__) || defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__) */
1.4416 ++
1.4417 ++get_utime:
1.4418 ++ ! Get the current time and save it for future calls to _times().
1.4419 ++ mov.l rtc_h,r1
1.4420 ++ mov.l @r1,r2
1.4421 ++ mov.l rtc_l,r3
1.4422 ++ mov.l @r3,r4
1.4423 ++ shll16 r2
1.4424 ++ mov.l rtc_mask,r1
1.4425 ++ and r1,r2
1.4426 ++ extu.w r4,r4
1.4427 ++ or r4,r2
1.4428 ++ mov.l newlib_dreamcast_utime,r0
1.4429 ++ mov.l r2,@r0
1.4430 ++
1.4431 ++ ! arrange for exit to call fini
1.4432 ++ mov.l atexit_k,r0
1.4433 ++ mov.l fini_k,r4
1.4434 ++ jsr @r0
1.4435 ++ nop
1.4436 ++
1.4437 ++ ! call init
1.4438 ++ mov.l init_k,r0
1.4439 ++ jsr @r0
1.4440 ++ nop
1.4441 ++
1.4442 ++ ! call the mainline
1.4443 ++ mov.l main_k,r0
1.4444 ++ jsr @r0
1.4445 ++ or r0,r0
1.4446 ++
1.4447 ++ ! call exit
1.4448 ++ mov r0,r4
1.4449 ++ mov.l exit_k,r0
1.4450 ++ jsr @r0
1.4451 ++ or r0,r0
1.4452 ++
1.4453 ++___exit:
1.4454 ++ mov.l old_pr_k,r14
1.4455 ++ mov.l @r14,r15
1.4456 ++ lds r15,pr
1.4457 ++ mov.l old_stack_k,r14
1.4458 ++ mov.l @r14,r15
1.4459 ++ rts
1.4460 ++ nop
1.4461 ++/*
1.4462 ++_atexit:
1.4463 ++ rts
1.4464 ++ nop
1.4465 ++*/
1.4466 ++ .align 4
1.4467 ++#if defined (__SH3E__) || defined(__SH4_SINGLE__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__)
1.4468 ++set_fpscr_k:
1.4469 ++ .long ___set_fpscr
1.4470 ++#endif /* defined (__SH3E__) || defined(__SH4_SINGLE__) || defined(__SH4__) || defined(SH4_SINGLE_ONLY) */
1.4471 ++stack_k:
1.4472 ++ .long _stack
1.4473 ++edata_k:
1.4474 ++ .long _edata
1.4475 ++end_k:
1.4476 ++ .long _end
1.4477 ++main_k:
1.4478 ++ .long _main
1.4479 ++exit_k:
1.4480 ++ .long _exit
1.4481 ++atexit_k:
1.4482 ++ .long _atexit
1.4483 ++init_k:
1.4484 ++ .long _init
1.4485 ++fini_k:
1.4486 ++ .long _fini
1.4487 ++old_stack_k:
1.4488 ++ .long _old_stack
1.4489 ++old_pr_k:
1.4490 ++ .long _old_pr
1.4491 ++
1.4492 ++_old_stack:
1.4493 ++ .long 0
1.4494 ++_old_pr:
1.4495 ++ .long 0
1.4496 ++
1.4497 ++setup_cache_k:
1.4498 ++ .long setup_cache
1.4499 ++start_2_k:
1.4500 ++ .long start_2
1.4501 ++p2_mask:
1.4502 ++ .long 0xa0000000
1.4503 ++ccr_addr:
1.4504 ++ .long 0xff00001c
1.4505 ++ccr_data:
1.4506 ++ .word 0x090b
1.4507 ++
1.4508 ++ .align 4
1.4509 ++
1.4510 ++rtc_h:
1.4511 ++ .long 0xa0710000
1.4512 ++rtc_l:
1.4513 ++ .long 0xa0710004
1.4514 ++rtc_mask:
1.4515 ++ .long 0xffff0000
1.4516 ++newlib_dreamcast_utime:
1.4517 ++ .long __newlib_dreamcast_utime
1.4518 ++
1.4519 ++ .section .data
1.4520 ++ .global __newlib_dreamcast_utime
1.4521 ++
1.4522 ++__newlib_dreamcast_utime:
1.4523 ++ .long 0x00000000
1.4524 ++
1.4525 ++#ifdef __ELF__
1.4526 ++ .section .stack,"aw"
1.4527 ++#else
1.4528 ++ .section .stack
1.4529 ++#endif
1.4530 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/dcload.S newlib-1.8.2-dc/newlib/libc/sys/dreamcast/dcload.S
1.4531 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/dcload.S 1970-01-01 10:00:00.000000000 +1000
1.4532 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/dcload.S 2006-07-06 19:27:39.000000000 +1000
1.4533 +@@ -0,0 +1,10 @@
1.4534 ++.global _dcloadsyscall
1.4535 ++_dcloadsyscall:
1.4536 ++ mov.l dcloadsyscall_k,r0
1.4537 ++ mov.l @r0,r0
1.4538 ++ jmp @r0
1.4539 ++ nop
1.4540 ++
1.4541 ++.align 4
1.4542 ++dcloadsyscall_k:
1.4543 ++ .long 0x8c004008
1.4544 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/dcload_vfs.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/dcload_vfs.c
1.4545 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/dcload_vfs.c 1970-01-01 10:00:00.000000000 +1000
1.4546 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/dcload_vfs.c 2006-07-06 18:31:26.000000000 +1000
1.4547 +@@ -0,0 +1,242 @@
1.4548 ++/* Support routines for host access via Andrew K's dcload. dcload offers
1.4549 ++ full host file-system access along with a few POSIX-like functions. */
1.4550 ++
1.4551 ++/* FIXME: If the host is returning negative values (error codes), then
1.4552 ++ we need to assign the proper value to errno and return -1 as per newlib's
1.4553 ++ conventions. */
1.4554 ++
1.4555 ++/* FIXME: Split some of this off into a separate file, dcload.c. This will
1.4556 ++ contain public functions that coincide with the prototypes in
1.4557 ++ include/dcload.h */
1.4558 ++
1.4559 ++#include <sys/types.h>
1.4560 ++#include <sys/stat.h>
1.4561 ++#include <errno.h>
1.4562 ++#include <stdlib.h>
1.4563 ++
1.4564 ++#include "vfs.h"
1.4565 ++
1.4566 ++static struct media_ops dcload_host_media_ops;
1.4567 ++static struct file_ops dcload_host_file_ops;
1.4568 ++
1.4569 ++#define DCLOAD_MAGIC 0xdeadbeef
1.4570 ++#define DCLOAD_ALT_MAGIC 0xfeedface
1.4571 ++#define DCLOAD_MAGIC_ADDR 0x8c004004
1.4572 ++
1.4573 ++/* True if we have console/file-system access on the host */
1.4574 ++static int host_enabled = 1;
1.4575 ++
1.4576 ++/* Determine whether we're loaded under dcload and if so, whether or not
1.4577 ++ the console/file-server is enabled. If the console/file-server isn't
1.4578 ++ enabled, then we won't have anything meaningful to do in the host access
1.4579 ++ routines, so they'll be replaced with invalid media/file ops in our init
1.4580 ++ routine. */
1.4581 ++
1.4582 ++int _newlib_vfs_is_dcload (void)
1.4583 ++{
1.4584 ++ /* Check for either magic value */
1.4585 ++ unsigned long magic = *(unsigned long *)DCLOAD_MAGIC_ADDR;
1.4586 ++
1.4587 ++ if (magic == DCLOAD_MAGIC)
1.4588 ++ {
1.4589 ++ return 1;
1.4590 ++ }
1.4591 ++ else if (magic == DCLOAD_ALT_MAGIC) /* Disable host access */
1.4592 ++ {
1.4593 ++ host_enabled = 0;
1.4594 ++ return 1;
1.4595 ++ }
1.4596 ++
1.4597 ++ return 0;
1.4598 ++}
1.4599 ++
1.4600 ++void _newlib_vfs_dcload_init (void)
1.4601 ++{
1.4602 ++ _newlib_vfs_initialized = VFS_LOADER_DCLOAD_NOHOST;
1.4603 ++
1.4604 ++ if (host_enabled)
1.4605 ++ {
1.4606 ++ /* FIXME: Rework this... */
1.4607 ++ struct file * stdin_file = _newlib_vfs_first_file;
1.4608 ++ struct file * stdout_file = stdin_file->next;
1.4609 ++ struct file * stderr_file = stdout_file->next;
1.4610 ++
1.4611 ++ _newlib_vfs_initialized = VFS_LOADER_DCLOAD_HOST;
1.4612 ++ _newlib_vfs_host_media_ops = &dcload_host_media_ops;
1.4613 ++
1.4614 ++ /* Reroute stdin, stdout, and stderr through dcload's host console. */
1.4615 ++ stdin_file->fops = &dcload_host_file_ops;
1.4616 ++ stdout_file->fops = &dcload_host_file_ops;
1.4617 ++ stderr_file->fops = &dcload_host_file_ops;
1.4618 ++ }
1.4619 ++
1.4620 ++ /* All media ops are initially set to invalid so our work is done. */
1.4621 ++}
1.4622 ++
1.4623 ++extern int dcloadsyscall (int func, ...);
1.4624 ++
1.4625 ++/* dcload host media operations */
1.4626 ++
1.4627 ++/* Perform the open/creat syscall and allocate space for a new file if
1.4628 ++ we get a valid fd. Otherwise return the errno and NULL on errror. */
1.4629 ++static struct file *do_open_media_op (int func, const char *obj, int arg, ...)
1.4630 ++{
1.4631 ++ struct file *pf;
1.4632 ++ int res = dcloadsyscall (func, obj, arg);
1.4633 ++ if (res >= 0)
1.4634 ++ {
1.4635 ++ pf = (struct file *) malloc (sizeof (struct file));
1.4636 ++
1.4637 ++ if (pf)
1.4638 ++ {
1.4639 ++ /* The library fd is set in _newlib_vfs_insert_file */
1.4640 ++ pf->next = NULL;
1.4641 ++ pf->fd = 0;
1.4642 ++ pf->media_fd = res;
1.4643 ++ pf->fops = &dcload_host_file_ops;
1.4644 ++ pf->specifics = NULL;
1.4645 ++ return pf;
1.4646 ++ }
1.4647 ++ }
1.4648 ++
1.4649 ++ return NULL;
1.4650 ++}
1.4651 ++
1.4652 ++#define OPEN_NR 2
1.4653 ++static struct file *dcload_open_media_op (const char *obj, int flags,
1.4654 ++ mode_t mode)
1.4655 ++{
1.4656 ++ return do_open_media_op (OPEN_NR, obj, flags, mode);
1.4657 ++}
1.4658 ++
1.4659 ++#define CREAT_NR 4
1.4660 ++static struct file *dcload_creat_media_op (const char *obj, mode_t mode)
1.4661 ++{
1.4662 ++ return do_open_media_op (CREAT_NR, obj, mode);
1.4663 ++}
1.4664 ++
1.4665 ++#define LINK_NR 5
1.4666 ++static int dcload_link_media_op (const char *old_obj, const char *new_obj)
1.4667 ++{
1.4668 ++ return dcloadsyscall (LINK_NR, old_obj, new_obj);
1.4669 ++}
1.4670 ++
1.4671 ++#define UNLINK_NR 6
1.4672 ++static int dcload_unlink_media_op (const char *obj)
1.4673 ++{
1.4674 ++ return dcloadsyscall (UNLINK_NR, obj);
1.4675 ++}
1.4676 ++
1.4677 ++#define STAT_NR 12
1.4678 ++static int dcload_stat_media_op (const char *obj, struct stat *pstat)
1.4679 ++{
1.4680 ++ return dcloadsyscall (STAT_NR, obj, pstat);
1.4681 ++}
1.4682 ++
1.4683 ++#define CHMOD_NR 8
1.4684 ++static int dcload_chmod_media_op (const char *obj, mode_t mode)
1.4685 ++{
1.4686 ++ return dcloadsyscall (CHMOD_NR, obj, mode);
1.4687 ++}
1.4688 ++
1.4689 ++#define CHDIR_NR 7
1.4690 ++static int dcload_chdir_media_op (const char *obj)
1.4691 ++{
1.4692 ++ return dcloadsyscall (CHDIR_NR, obj);
1.4693 ++}
1.4694 ++
1.4695 ++/* dcload host file operations */
1.4696 ++
1.4697 ++static size_t do_rw_file_op (int func, struct file *pf, void *buf, size_t cnt)
1.4698 ++{
1.4699 ++ return dcloadsyscall (func, pf->media_fd, buf, cnt);
1.4700 ++}
1.4701 ++
1.4702 ++#define READ_NR 0
1.4703 ++static size_t dcload_read_file_op (struct file *pf, void *buf, size_t cnt)
1.4704 ++{
1.4705 ++ return do_rw_file_op (READ_NR, pf, buf, cnt);
1.4706 ++}
1.4707 ++
1.4708 ++#define WRITE_NR 1
1.4709 ++static size_t dcload_write_file_op (struct file *pf, void *buf, size_t cnt)
1.4710 ++{
1.4711 ++ return do_rw_file_op (WRITE_NR, pf, buf, cnt);
1.4712 ++}
1.4713 ++
1.4714 ++#define LSEEK_NR 9
1.4715 ++static off_t dcload_lseek_file_op (struct file *pf, off_t pos, int whence)
1.4716 ++{
1.4717 ++ return dcloadsyscall (LSEEK_NR, pf->media_fd, pos, whence);
1.4718 ++}
1.4719 ++
1.4720 ++#define CLOSE_NR 3
1.4721 ++static int dcload_close_file_op (struct file *pf)
1.4722 ++{
1.4723 ++ return dcloadsyscall (CLOSE_NR, pf->media_fd);
1.4724 ++}
1.4725 ++
1.4726 ++#define FSTAT_NR 10
1.4727 ++static int dcload_fstat_file_op (struct file *pf, struct stat *pstat)
1.4728 ++{
1.4729 ++ return dcloadsyscall (FSTAT_NR, pf->media_fd, pstat);
1.4730 ++}
1.4731 ++
1.4732 ++#define EXIT_NR 15
1.4733 ++void _newlib_vfs_dcload_exit (int n)
1.4734 ++{
1.4735 ++ dcloadsyscall (EXIT_NR, n);
1.4736 ++}
1.4737 ++
1.4738 ++#define ASSIGN_WRKMEM_NR 14
1.4739 ++void dcload_assign_wrkmem (void *buf)
1.4740 ++{
1.4741 ++ dcloadsyscall (ASSIGN_WRKMEM_NR, buf);
1.4742 ++}
1.4743 ++
1.4744 ++/* media_ops for host file-system access */
1.4745 ++
1.4746 ++int dcload_mkdir_media_op( const char *c, mode_t mode )
1.4747 ++{
1.4748 ++ errno = ENOSYS;
1.4749 ++ return -1;
1.4750 ++}
1.4751 ++
1.4752 ++int dcload_rmdir_media_op( const char *c )
1.4753 ++{
1.4754 ++ errno = ENOSYS;
1.4755 ++ return -1;
1.4756 ++}
1.4757 ++
1.4758 ++int dcload_ioctl_file_op( )
1.4759 ++{
1.4760 ++ errno = ENOSYS;
1.4761 ++ return -1;
1.4762 ++}
1.4763 ++
1.4764 ++static struct media_ops dcload_host_media_ops =
1.4765 ++{
1.4766 ++ open: dcload_open_media_op,
1.4767 ++ creat: dcload_creat_media_op,
1.4768 ++ link: dcload_link_media_op,
1.4769 ++ unlink: dcload_unlink_media_op,
1.4770 ++ stat: dcload_stat_media_op,
1.4771 ++ chmod: dcload_chmod_media_op,
1.4772 ++ mkdir: dcload_mkdir_media_op,
1.4773 ++ rmdir: dcload_rmdir_media_op,
1.4774 ++ chdir: dcload_chdir_media_op
1.4775 ++};
1.4776 ++
1.4777 ++/* file_ops for a host file */
1.4778 ++
1.4779 ++static struct file_ops dcload_host_file_ops =
1.4780 ++{
1.4781 ++ lseek: dcload_lseek_file_op,
1.4782 ++ close: dcload_close_file_op,
1.4783 ++ read: dcload_read_file_op,
1.4784 ++ write: dcload_write_file_op,
1.4785 ++ ioctl: dcload_ioctl_file_op,
1.4786 ++ fstat: dcload_fstat_file_op
1.4787 ++};
1.4788 ++
1.4789 ++
1.4790 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/dup.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/dup.c
1.4791 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/dup.c 1970-01-01 10:00:00.000000000 +1000
1.4792 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/dup.c 2006-07-06 18:28:31.000000000 +1000
1.4793 +@@ -0,0 +1,2 @@
1.4794 ++/* This hack is required for libstdc++ to work properly */
1.4795 ++int dup(int fd) { return fd; }
1.4796 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/exit.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/exit.c
1.4797 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/exit.c 1970-01-01 10:00:00.000000000 +1000
1.4798 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/exit.c 2006-07-07 08:34:25.000000000 +1000
1.4799 +@@ -0,0 +1,18 @@
1.4800 ++/* TODO: Do different things depending on the loader present, e.g. dcload
1.4801 ++ has an exit() call, gdbstubs can tell gdb "W00", etc. */
1.4802 ++
1.4803 ++#include "vfs.h"
1.4804 ++
1.4805 ++void _exit(int n);
1.4806 ++
1.4807 ++void exit (int n) { _exit (n); }
1.4808 ++
1.4809 ++extern void _newlib_vfs_dcload_exit (int);
1.4810 ++
1.4811 ++void
1.4812 ++_exit (int n)
1.4813 ++{
1.4814 ++ if( _newlib_vfs_is_dcload() ) {
1.4815 ++ _newlib_vfs_dcload_exit (n);
1.4816 ++ }
1.4817 ++}
1.4818 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/fcntl.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/fcntl.c
1.4819 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/fcntl.c 1970-01-01 10:00:00.000000000 +1000
1.4820 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/fcntl.c 2006-07-06 18:28:31.000000000 +1000
1.4821 +@@ -0,0 +1,21 @@
1.4822 ++#include <sys/fcntl.h>
1.4823 ++
1.4824 ++/* Minimal fcntl support is necessary for C++ console streams cin, cout, and
1.4825 ++ cerr. */
1.4826 ++int
1.4827 ++_fcntl (int fd, int flag, ...)
1.4828 ++{
1.4829 ++ switch (flag) {
1.4830 ++ case F_GETFL:
1.4831 ++ switch (fd) {
1.4832 ++ case 0: return O_RDONLY;
1.4833 ++ case 1: return O_WRONLY;
1.4834 ++ case 2: return O_WRONLY;
1.4835 ++ default: return -1;
1.4836 ++ }
1.4837 ++ default:
1.4838 ++ return -1;
1.4839 ++ }
1.4840 ++
1.4841 ++ return -1;
1.4842 ++}
1.4843 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/fstat.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/fstat.c
1.4844 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/fstat.c 1970-01-01 10:00:00.000000000 +1000
1.4845 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/fstat.c 2006-07-06 18:28:31.000000000 +1000
1.4846 +@@ -0,0 +1,12 @@
1.4847 ++#include <sys/types.h>
1.4848 ++#include <sys/stat.h>
1.4849 ++
1.4850 ++#include "vfs.h"
1.4851 ++
1.4852 ++int
1.4853 ++_fstat (int fd, struct stat *pstat)
1.4854 ++{
1.4855 ++ struct file *pf = _newlib_vfs_get_file (fd);
1.4856 ++
1.4857 ++ return pf->fops->fstat (pf, pstat);
1.4858 ++}
1.4859 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/getpid.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/getpid.c
1.4860 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/getpid.c 1970-01-01 10:00:00.000000000 +1000
1.4861 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/getpid.c 2006-07-06 18:28:31.000000000 +1000
1.4862 +@@ -0,0 +1,5 @@
1.4863 ++int
1.4864 ++_getpid ()
1.4865 ++{
1.4866 ++ return 1;
1.4867 ++}
1.4868 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/gettimeofday.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/gettimeofday.c
1.4869 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/gettimeofday.c 1970-01-01 10:00:00.000000000 +1000
1.4870 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/gettimeofday.c 2006-07-06 18:28:31.000000000 +1000
1.4871 +@@ -0,0 +1,30 @@
1.4872 ++#include <time.h>
1.4873 ++#include <sys/time.h>
1.4874 ++
1.4875 ++/* Returns the number of seconds elapsed from the Unix epoch, January 1st,
1.4876 ++ 1970. Note that the Dreamcast counts time from January 1st, 1950, so we
1.4877 ++ need to subtract 20 years (and 5 leap days) from the Dreamcast RTC to
1.4878 ++ get valid values for libc's time functions. */
1.4879 ++
1.4880 ++#define TWENTY_YEARS ((20 * 365LU + 5) * 86400)
1.4881 ++
1.4882 ++int
1.4883 ++_gettimeofday (struct timeval *tp, struct timezone *tzp)
1.4884 ++{
1.4885 ++ if (tp)
1.4886 ++ {
1.4887 ++ unsigned long rtc_h = *(volatile unsigned long*)0xa0710000;
1.4888 ++ unsigned long rtc_l = *(volatile unsigned long*)0xa0710004;
1.4889 ++ unsigned long secs = ((rtc_h & 0xffff) << 16) | (rtc_l & 0xffff);
1.4890 ++
1.4891 ++ tp->tv_sec = secs - TWENTY_YEARS;
1.4892 ++ tp->tv_usec = 0;
1.4893 ++ }
1.4894 ++ if (tzp)
1.4895 ++ {
1.4896 ++ tzp->tz_minuteswest = 0;
1.4897 ++ tzp->tz_dsttime = 0;
1.4898 ++ }
1.4899 ++
1.4900 ++ return 0;
1.4901 ++}
1.4902 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/ioctl.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/ioctl.c
1.4903 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/ioctl.c 1970-01-01 10:00:00.000000000 +1000
1.4904 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/ioctl.c 2006-07-06 18:28:31.000000000 +1000
1.4905 +@@ -0,0 +1,9 @@
1.4906 ++#include "vfs.h"
1.4907 ++
1.4908 ++int
1.4909 ++ioctl (int fd, int func, long arg)
1.4910 ++{
1.4911 ++ struct file *pf = _newlib_vfs_get_file (fd);
1.4912 ++
1.4913 ++ return pf->fops->ioctl (pf, func, arg);
1.4914 ++}
1.4915 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/isatty.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/isatty.c
1.4916 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/isatty.c 1970-01-01 10:00:00.000000000 +1000
1.4917 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/isatty.c 2006-07-06 18:28:31.000000000 +1000
1.4918 +@@ -0,0 +1,10 @@
1.4919 ++/* Since file descriptors 0, 1, and 2 are always mapped to stdin, stdout,
1.4920 ++ and stderr, we assume these are the only fds that permit interactive I/O. */
1.4921 ++
1.4922 ++int
1.4923 ++isatty (int fd)
1.4924 ++{
1.4925 ++ if (fd >= 0 && fd < 3)
1.4926 ++ return 1;
1.4927 ++ return 0;
1.4928 ++}
1.4929 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/kill.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/kill.c
1.4930 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/kill.c 1970-01-01 10:00:00.000000000 +1000
1.4931 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/kill.c 2006-07-06 18:28:31.000000000 +1000
1.4932 +@@ -0,0 +1,8 @@
1.4933 ++#include <stdlib.h>
1.4934 ++
1.4935 ++int
1.4936 ++_kill ()
1.4937 ++{
1.4938 ++ abort ();
1.4939 ++ return 0;
1.4940 ++}
1.4941 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/link.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/link.c
1.4942 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/link.c 1970-01-01 10:00:00.000000000 +1000
1.4943 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/link.c 2006-07-06 18:28:31.000000000 +1000
1.4944 +@@ -0,0 +1,16 @@
1.4945 ++#include "vfs.h"
1.4946 ++
1.4947 ++int
1.4948 ++_link (const char *old_path, const char *new_path)
1.4949 ++{
1.4950 ++ char *old_obj = _newlib_vfs_new_string (old_path);
1.4951 ++ char *new_obj = _newlib_vfs_new_string (new_path);
1.4952 ++
1.4953 ++ struct media_ops *mops = _newlib_vfs_get_media_ops (old_path);
1.4954 ++ int res = mops->link (old_obj, new_obj);
1.4955 ++
1.4956 ++ _newlib_vfs_delete_string (old_obj);
1.4957 ++ _newlib_vfs_delete_string (new_obj);
1.4958 ++
1.4959 ++ return res;
1.4960 ++}
1.4961 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/lseek.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/lseek.c
1.4962 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/lseek.c 1970-01-01 10:00:00.000000000 +1000
1.4963 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/lseek.c 2006-07-06 18:28:31.000000000 +1000
1.4964 +@@ -0,0 +1,11 @@
1.4965 ++#include <sys/types.h>
1.4966 ++
1.4967 ++#include "vfs.h"
1.4968 ++
1.4969 ++off_t
1.4970 ++_lseek (int fd, off_t pos, int whence)
1.4971 ++{
1.4972 ++ struct file *pf = _newlib_vfs_get_file (fd);
1.4973 ++
1.4974 ++ return pf->fops->lseek (pf, pos, whence);
1.4975 ++}
1.4976 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/Makefile.am newlib-1.8.2-dc/newlib/libc/sys/dreamcast/Makefile.am
1.4977 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/Makefile.am 1970-01-01 10:00:00.000000000 +1000
1.4978 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/Makefile.am 2006-07-06 18:31:26.000000000 +1000
1.4979 +@@ -0,0 +1,17 @@
1.4980 ++## Process this file with automake to generate Makefile.in
1.4981 ++
1.4982 ++AUTOMAKE_OPTIONS = cygnus
1.4983 ++
1.4984 ++INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
1.4985 ++
1.4986 ++noinst_LIBRARIES = lib.a
1.4987 ++
1.4988 ++lib_a_SOURCES = absolute_vfs.c chdir.c chmod.c close.c creat.c dcload_vfs.c dcload.S \
1.4989 ++ exit.c fcntl.c fstat.c getpid.c gettimeofday.c ioctl.c isatty.c kill.c \
1.4990 ++ link.c lseek.c mkdir.c open.c read.c rmdir.c sbrk.c scif.c stat.c \
1.4991 ++ stdio_vfs.c times.c unlink.c vfs.c write.c dup.c
1.4992 ++
1.4993 ++all: crt0.o
1.4994 ++
1.4995 ++ACLOCAL_AMFLAGS = -I ../../..
1.4996 ++CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
1.4997 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/Makefile.in newlib-1.8.2-dc/newlib/libc/sys/dreamcast/Makefile.in
1.4998 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/Makefile.in 1970-01-01 10:00:00.000000000 +1000
1.4999 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/Makefile.in 2006-07-06 18:31:26.000000000 +1000
1.5000 +@@ -0,0 +1,322 @@
1.5001 ++# Makefile.in generated automatically by automake 1.4 from Makefile.am
1.5002 ++
1.5003 ++# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.5004 ++# This Makefile.in is free software; the Free Software Foundation
1.5005 ++# gives unlimited permission to copy and/or distribute it,
1.5006 ++# with or without modifications, as long as this notice is preserved.
1.5007 ++
1.5008 ++# This program is distributed in the hope that it will be useful,
1.5009 ++# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1.5010 ++# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1.5011 ++# PARTICULAR PURPOSE.
1.5012 ++
1.5013 ++
1.5014 ++SHELL = @SHELL@
1.5015 ++
1.5016 ++srcdir = @srcdir@
1.5017 ++top_srcdir = @top_srcdir@
1.5018 ++VPATH = @srcdir@
1.5019 ++prefix = @prefix@
1.5020 ++exec_prefix = @exec_prefix@
1.5021 ++
1.5022 ++bindir = @bindir@
1.5023 ++sbindir = @sbindir@
1.5024 ++libexecdir = @libexecdir@
1.5025 ++datadir = @datadir@
1.5026 ++sysconfdir = @sysconfdir@
1.5027 ++sharedstatedir = @sharedstatedir@
1.5028 ++localstatedir = @localstatedir@
1.5029 ++libdir = @libdir@
1.5030 ++infodir = @infodir@
1.5031 ++mandir = @mandir@
1.5032 ++includedir = @includedir@
1.5033 ++oldincludedir = /usr/include
1.5034 ++
1.5035 ++DESTDIR =
1.5036 ++
1.5037 ++pkgdatadir = $(datadir)/@PACKAGE@
1.5038 ++pkglibdir = $(libdir)/@PACKAGE@
1.5039 ++pkgincludedir = $(includedir)/@PACKAGE@
1.5040 ++
1.5041 ++top_builddir = .
1.5042 ++
1.5043 ++ACLOCAL = @ACLOCAL@
1.5044 ++AUTOCONF = @AUTOCONF@
1.5045 ++AUTOMAKE = @AUTOMAKE@
1.5046 ++AUTOHEADER = @AUTOHEADER@
1.5047 ++
1.5048 ++INSTALL = @INSTALL@
1.5049 ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
1.5050 ++INSTALL_DATA = @INSTALL_DATA@
1.5051 ++INSTALL_SCRIPT = @INSTALL_SCRIPT@
1.5052 ++transform = @program_transform_name@
1.5053 ++
1.5054 ++NORMAL_INSTALL = :
1.5055 ++PRE_INSTALL = :
1.5056 ++POST_INSTALL = :
1.5057 ++NORMAL_UNINSTALL = :
1.5058 ++PRE_UNINSTALL = :
1.5059 ++POST_UNINSTALL = :
1.5060 ++host_alias = @host_alias@
1.5061 ++host_triplet = @host@
1.5062 ++AR = @AR@
1.5063 ++AS = @AS@
1.5064 ++CC = @CC@
1.5065 ++CPP = @CPP@
1.5066 ++EXEEXT = @EXEEXT@
1.5067 ++MAKEINFO = @MAKEINFO@
1.5068 ++NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
1.5069 ++PACKAGE = @PACKAGE@
1.5070 ++RANLIB = @RANLIB@
1.5071 ++VERSION = @VERSION@
1.5072 ++machine_dir = @machine_dir@
1.5073 ++newlib_basedir = @newlib_basedir@
1.5074 ++sys_dir = @sys_dir@
1.5075 ++
1.5076 ++AUTOMAKE_OPTIONS = cygnus
1.5077 ++
1.5078 ++INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
1.5079 ++
1.5080 ++noinst_LIBRARIES = lib.a
1.5081 ++
1.5082 ++lib_a_SOURCES = absolute_vfs.c chdir.c chmod.c close.c creat.c dcload_vfs.c dcload.S exit.c fcntl.c fstat.c getpid.c gettimeofday.c ioctl.c isatty.c kill.c link.c lseek.c mkdir.c open.c read.c rmdir.c sbrk.c scif.c stat.c stdio_vfs.c times.c unlink.c vfs.c write.c dup.c
1.5083 ++
1.5084 ++
1.5085 ++ACLOCAL_AMFLAGS = -I ../../..
1.5086 ++CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
1.5087 ++ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
1.5088 ++mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs
1.5089 ++CONFIG_CLEAN_FILES =
1.5090 ++LIBRARIES = $(noinst_LIBRARIES)
1.5091 ++
1.5092 ++
1.5093 ++DEFS = @DEFS@ -I. -I$(srcdir)
1.5094 ++CPPFLAGS = @CPPFLAGS@
1.5095 ++LDFLAGS = @LDFLAGS@
1.5096 ++LIBS = @LIBS@
1.5097 ++lib_a_LIBADD =
1.5098 ++lib_a_OBJECTS = absolute_vfs.o chdir.o chmod.o close.o creat.o \
1.5099 ++dcload_vfs.o dcload.o exit.o fcntl.o fstat.o getpid.o gettimeofday.o ioctl.o \
1.5100 ++isatty.o kill.o link.o lseek.o mkdir.o open.o read.o rmdir.o sbrk.o \
1.5101 ++scif.o stat.o stdio_vfs.o times.o unlink.o vfs.o write.o dup.o
1.5102 ++CFLAGS = @CFLAGS@
1.5103 ++COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1.5104 ++CCLD = $(CC)
1.5105 ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.5106 ++DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in
1.5107 ++
1.5108 ++
1.5109 ++DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
1.5110 ++
1.5111 ++TAR = tar
1.5112 ++GZIP_ENV = --best
1.5113 ++SOURCES = $(lib_a_SOURCES)
1.5114 ++OBJECTS = $(lib_a_OBJECTS)
1.5115 ++
1.5116 ++all: all-redirect
1.5117 ++.SUFFIXES:
1.5118 ++.SUFFIXES: .S .c .o .s
1.5119 ++$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.5120 ++ cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
1.5121 ++
1.5122 ++Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1.5123 ++ cd $(top_builddir) \
1.5124 ++ && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
1.5125 ++
1.5126 ++$(ACLOCAL_M4): configure.in ../../../acinclude.m4 ../../../aclocal.m4
1.5127 ++ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
1.5128 ++
1.5129 ++config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
1.5130 ++ $(SHELL) ./config.status --recheck
1.5131 ++$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
1.5132 ++ cd $(srcdir) && $(AUTOCONF)
1.5133 ++
1.5134 ++mostlyclean-noinstLIBRARIES:
1.5135 ++
1.5136 ++clean-noinstLIBRARIES:
1.5137 ++ -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
1.5138 ++
1.5139 ++distclean-noinstLIBRARIES:
1.5140 ++
1.5141 ++maintainer-clean-noinstLIBRARIES:
1.5142 ++
1.5143 ++.c.o:
1.5144 ++ $(COMPILE) -c $<
1.5145 ++
1.5146 ++.s.o:
1.5147 ++ $(COMPILE) -c $<
1.5148 ++
1.5149 ++.S.o:
1.5150 ++ $(COMPILE) -c $<
1.5151 ++
1.5152 ++mostlyclean-compile:
1.5153 ++ -rm -f *.o core *.core
1.5154 ++
1.5155 ++clean-compile:
1.5156 ++
1.5157 ++distclean-compile:
1.5158 ++ -rm -f *.tab.c
1.5159 ++
1.5160 ++maintainer-clean-compile:
1.5161 ++
1.5162 ++lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES)
1.5163 ++ -rm -f lib.a
1.5164 ++ $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
1.5165 ++ $(RANLIB) lib.a
1.5166 ++
1.5167 ++tags: TAGS
1.5168 ++
1.5169 ++ID: $(HEADERS) $(SOURCES) $(LISP)
1.5170 ++ list='$(SOURCES) $(HEADERS)'; \
1.5171 ++ unique=`for i in $$list; do echo $$i; done | \
1.5172 ++ awk ' { files[$$0] = 1; } \
1.5173 ++ END { for (i in files) print i; }'`; \
1.5174 ++ here=`pwd` && cd $(srcdir) \
1.5175 ++ && mkid -f$$here/ID $$unique $(LISP)
1.5176 ++
1.5177 ++TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
1.5178 ++ tags=; \
1.5179 ++ here=`pwd`; \
1.5180 ++ list='$(SOURCES) $(HEADERS)'; \
1.5181 ++ unique=`for i in $$list; do echo $$i; done | \
1.5182 ++ awk ' { files[$$0] = 1; } \
1.5183 ++ END { for (i in files) print i; }'`; \
1.5184 ++ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
1.5185 ++ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
1.5186 ++
1.5187 ++mostlyclean-tags:
1.5188 ++
1.5189 ++clean-tags:
1.5190 ++
1.5191 ++distclean-tags:
1.5192 ++ -rm -f TAGS ID
1.5193 ++
1.5194 ++maintainer-clean-tags:
1.5195 ++
1.5196 ++distdir = $(PACKAGE)-$(VERSION)
1.5197 ++top_distdir = $(distdir)
1.5198 ++
1.5199 ++# This target untars the dist file and tries a VPATH configuration. Then
1.5200 ++# it guarantees that the distribution is self-contained by making another
1.5201 ++# tarfile.
1.5202 ++distcheck: dist
1.5203 ++ -rm -rf $(distdir)
1.5204 ++ GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
1.5205 ++ mkdir $(distdir)/=build
1.5206 ++ mkdir $(distdir)/=inst
1.5207 ++ dc_install_base=`cd $(distdir)/=inst && pwd`; \
1.5208 ++ cd $(distdir)/=build \
1.5209 ++ && ../configure --srcdir=.. --prefix=$$dc_install_base \
1.5210 ++ && $(MAKE) $(AM_MAKEFLAGS) \
1.5211 ++ && $(MAKE) $(AM_MAKEFLAGS) dvi \
1.5212 ++ && $(MAKE) $(AM_MAKEFLAGS) check \
1.5213 ++ && $(MAKE) $(AM_MAKEFLAGS) install \
1.5214 ++ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1.5215 ++ && $(MAKE) $(AM_MAKEFLAGS) dist
1.5216 ++ -rm -rf $(distdir)
1.5217 ++ @banner="$(distdir).tar.gz is ready for distribution"; \
1.5218 ++ dashes=`echo "$$banner" | sed s/./=/g`; \
1.5219 ++ echo "$$dashes"; \
1.5220 ++ echo "$$banner"; \
1.5221 ++ echo "$$dashes"
1.5222 ++dist: distdir
1.5223 ++ -chmod -R a+r $(distdir)
1.5224 ++ GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
1.5225 ++ -rm -rf $(distdir)
1.5226 ++dist-all: distdir
1.5227 ++ -chmod -R a+r $(distdir)
1.5228 ++ GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
1.5229 ++ -rm -rf $(distdir)
1.5230 ++distdir: $(DISTFILES)
1.5231 ++ -rm -rf $(distdir)
1.5232 ++ mkdir $(distdir)
1.5233 ++ -chmod 777 $(distdir)
1.5234 ++ @for file in $(DISTFILES); do \
1.5235 ++ if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.5236 ++ if test -d $$d/$$file; then \
1.5237 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.5238 ++ else \
1.5239 ++ test -f $(distdir)/$$file \
1.5240 ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.5241 ++ || cp -p $$d/$$file $(distdir)/$$file || :; \
1.5242 ++ fi; \
1.5243 ++ done
1.5244 ++info-am:
1.5245 ++info: info-am
1.5246 ++dvi-am:
1.5247 ++dvi: dvi-am
1.5248 ++check-am:
1.5249 ++check: check-am
1.5250 ++installcheck-am:
1.5251 ++installcheck: installcheck-am
1.5252 ++install-info-am:
1.5253 ++install-info: install-info-am
1.5254 ++install-exec-am:
1.5255 ++install-exec: install-exec-am
1.5256 ++
1.5257 ++install-data-am:
1.5258 ++install-data: install-data-am
1.5259 ++
1.5260 ++install-am: all-am
1.5261 ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1.5262 ++install: install-am
1.5263 ++uninstall-am:
1.5264 ++uninstall: uninstall-am
1.5265 ++all-am: Makefile $(LIBRARIES)
1.5266 ++all-redirect: all-am
1.5267 ++install-strip:
1.5268 ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1.5269 ++installdirs:
1.5270 ++
1.5271 ++
1.5272 ++mostlyclean-generic:
1.5273 ++
1.5274 ++clean-generic:
1.5275 ++
1.5276 ++distclean-generic:
1.5277 ++ -rm -f Makefile $(CONFIG_CLEAN_FILES)
1.5278 ++ -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1.5279 ++
1.5280 ++maintainer-clean-generic:
1.5281 ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.5282 ++ mostlyclean-tags mostlyclean-generic
1.5283 ++
1.5284 ++mostlyclean: mostlyclean-am
1.5285 ++
1.5286 ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.5287 ++ mostlyclean-am
1.5288 ++
1.5289 ++clean: clean-am
1.5290 ++
1.5291 ++distclean-am: distclean-noinstLIBRARIES distclean-compile \
1.5292 ++ distclean-tags distclean-generic clean-am
1.5293 ++
1.5294 ++distclean: distclean-am
1.5295 ++ -rm -f config.status
1.5296 ++
1.5297 ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
1.5298 ++ maintainer-clean-compile maintainer-clean-tags \
1.5299 ++ maintainer-clean-generic distclean-am
1.5300 ++ @echo "This command is intended for maintainers to use;"
1.5301 ++ @echo "it deletes files that may require special tools to rebuild."
1.5302 ++
1.5303 ++maintainer-clean: maintainer-clean-am
1.5304 ++ -rm -f config.status
1.5305 ++
1.5306 ++.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
1.5307 ++clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
1.5308 ++mostlyclean-compile distclean-compile clean-compile \
1.5309 ++maintainer-clean-compile tags mostlyclean-tags distclean-tags \
1.5310 ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
1.5311 ++check-am installcheck-am installcheck install-info-am install-info \
1.5312 ++install-exec-am install-exec install-data-am install-data install-am \
1.5313 ++install uninstall-am uninstall all-redirect all-am all installdirs \
1.5314 ++mostlyclean-generic distclean-generic clean-generic \
1.5315 ++maintainer-clean-generic clean mostlyclean distclean maintainer-clean
1.5316 ++
1.5317 ++
1.5318 ++all: crt0.o
1.5319 ++
1.5320 ++# Tell versions [3.59,3.63) of GNU make to not export all variables.
1.5321 ++# Otherwise a system limit (for SysV at least) may be exceeded.
1.5322 ++.NOEXPORT:
1.5323 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/mkdir.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/mkdir.c
1.5324 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/mkdir.c 1970-01-01 10:00:00.000000000 +1000
1.5325 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/mkdir.c 2006-07-06 18:28:31.000000000 +1000
1.5326 +@@ -0,0 +1,16 @@
1.5327 ++#include <sys/types.h>
1.5328 ++
1.5329 ++#include "vfs.h"
1.5330 ++
1.5331 ++int
1.5332 ++mkdir (const char *path, mode_t mode)
1.5333 ++{
1.5334 ++ char *obj = _newlib_vfs_new_string (path);
1.5335 ++
1.5336 ++ struct media_ops *mops = _newlib_vfs_get_media_ops (path);
1.5337 ++ int res = mops->mkdir (obj, mode);
1.5338 ++
1.5339 ++ _newlib_vfs_delete_string (obj);
1.5340 ++
1.5341 ++ return res;
1.5342 ++}
1.5343 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/open.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/open.c
1.5344 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/open.c 1970-01-01 10:00:00.000000000 +1000
1.5345 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/open.c 2006-07-06 18:28:31.000000000 +1000
1.5346 +@@ -0,0 +1,23 @@
1.5347 ++#include <sys/types.h>
1.5348 ++
1.5349 ++#include <stdio.h>
1.5350 ++
1.5351 ++#include "vfs.h"
1.5352 ++
1.5353 ++int
1.5354 ++_open (const char *path, int flags, mode_t mode)
1.5355 ++{
1.5356 ++ char *obj = _newlib_vfs_new_string (path);
1.5357 ++
1.5358 ++ struct media_ops *mops = _newlib_vfs_get_media_ops (path);
1.5359 ++ struct file *pf = mops->open (obj, flags, mode);
1.5360 ++
1.5361 ++ _newlib_vfs_delete_string (obj);
1.5362 ++
1.5363 ++ if (pf != NULL)
1.5364 ++ {
1.5365 ++ return _newlib_vfs_insert_file (pf);
1.5366 ++ }
1.5367 ++
1.5368 ++ return -1;
1.5369 ++}
1.5370 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/read.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/read.c
1.5371 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/read.c 1970-01-01 10:00:00.000000000 +1000
1.5372 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/read.c 2006-07-06 18:28:31.000000000 +1000
1.5373 +@@ -0,0 +1,11 @@
1.5374 ++#include <sys/types.h>
1.5375 ++
1.5376 ++#include "vfs.h"
1.5377 ++
1.5378 ++size_t
1.5379 ++_read (int fd, void *buf, size_t cnt)
1.5380 ++{
1.5381 ++ struct file *pf = _newlib_vfs_get_file (fd);
1.5382 ++
1.5383 ++ return pf->fops->read (pf, buf, cnt);
1.5384 ++}
1.5385 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/rmdir.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/rmdir.c
1.5386 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/rmdir.c 1970-01-01 10:00:00.000000000 +1000
1.5387 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/rmdir.c 2006-07-06 18:28:31.000000000 +1000
1.5388 +@@ -0,0 +1,14 @@
1.5389 ++#include "vfs.h"
1.5390 ++
1.5391 ++int
1.5392 ++rmdir (const char *path)
1.5393 ++{
1.5394 ++ char *obj = _newlib_vfs_new_string (path);
1.5395 ++
1.5396 ++ struct media_ops *mops = _newlib_vfs_get_media_ops (path);
1.5397 ++ int res = mops->rmdir (obj);
1.5398 ++
1.5399 ++ _newlib_vfs_delete_string (obj);
1.5400 ++
1.5401 ++ return res;
1.5402 ++}
1.5403 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/sbrk.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/sbrk.c
1.5404 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/sbrk.c 1970-01-01 10:00:00.000000000 +1000
1.5405 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/sbrk.c 2006-07-06 18:28:31.000000000 +1000
1.5406 +@@ -0,0 +1,27 @@
1.5407 ++#include <_ansi.h>
1.5408 ++#include <errno.h>
1.5409 ++#include <sys/types.h>
1.5410 ++
1.5411 ++extern char end; /* The end of the program (BSS section). */
1.5412 ++
1.5413 ++register char *stack_ptr asm ("r15");
1.5414 ++
1.5415 ++caddr_t
1.5416 ++_sbrk (int incr)
1.5417 ++{
1.5418 ++ static char *heap_end;
1.5419 ++ char *prev_heap_end;
1.5420 ++
1.5421 ++ if (!heap_end)
1.5422 ++ heap_end = &end;
1.5423 ++
1.5424 ++ prev_heap_end = heap_end;
1.5425 ++ if (heap_end + incr > stack_ptr)
1.5426 ++ {
1.5427 ++ errno = ENOMEM;
1.5428 ++ return (caddr_t)-1;
1.5429 ++ }
1.5430 ++
1.5431 ++ heap_end += incr;
1.5432 ++ return (caddr_t) prev_heap_end;
1.5433 ++}
1.5434 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/scif.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/scif.c
1.5435 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/scif.c 1970-01-01 10:00:00.000000000 +1000
1.5436 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/scif.c 2006-07-06 18:28:31.000000000 +1000
1.5437 +@@ -0,0 +1,46 @@
1.5438 ++/* Blatantly stolen from libdream, others...
1.5439 ++ * Please fix this :) */
1.5440 ++#include <sys/types.h>
1.5441 ++
1.5442 ++/*#include "scif.h"*/
1.5443 ++
1.5444 ++#define ACK (volatile unsigned short *)0xffe80010
1.5445 ++#define WR_FIFO (volatile unsigned char *)0xffe8000c
1.5446 ++#define RD_FIFO (volatile unsigned char *)0xffe80014
1.5447 ++#define STATUS (volatile unsigned short *)0xffe8001c
1.5448 ++
1.5449 ++static void scif_flush ()
1.5450 ++{
1.5451 ++ *ACK &= 0xbf;
1.5452 ++
1.5453 ++ while (!(*ACK & 0x40)) ;
1.5454 ++
1.5455 ++ *ACK &= 0xbf;
1.5456 ++}
1.5457 ++
1.5458 ++size_t _newlib_vfs_scif_write (void *buf, size_t cnt)
1.5459 ++{
1.5460 ++ while (cnt-- > 0)
1.5461 ++ {
1.5462 ++ while (!(*ACK & 0x20)) ;
1.5463 ++
1.5464 ++ *WR_FIFO = *(unsigned char *)buf++;
1.5465 ++
1.5466 ++ *ACK &= 0x9f;
1.5467 ++ }
1.5468 ++ scif_flush ();
1.5469 ++ return cnt;
1.5470 ++}
1.5471 ++
1.5472 ++size_t _newlib_vfs_scif_read (void *buf, size_t cnt)
1.5473 ++{
1.5474 ++ while (cnt -- > 0)
1.5475 ++ {
1.5476 ++ while (*STATUS & 0x1f) ;
1.5477 ++
1.5478 ++ *(unsigned char *)buf++ = *RD_FIFO;
1.5479 ++
1.5480 ++ *ACK &= 0x6d;
1.5481 ++ }
1.5482 ++ return cnt;
1.5483 ++}
1.5484 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/stat.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/stat.c
1.5485 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/stat.c 1970-01-01 10:00:00.000000000 +1000
1.5486 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/stat.c 2006-07-06 18:28:31.000000000 +1000
1.5487 +@@ -0,0 +1,26 @@
1.5488 ++#include <sys/types.h>
1.5489 ++#include <sys/stat.h>
1.5490 ++
1.5491 ++#include "vfs.h"
1.5492 ++
1.5493 ++/* Clunky, but remember we're "namespace clean" and library routines also
1.5494 ++ use _stat as a syscall... */
1.5495 ++
1.5496 ++int
1.5497 ++stat (const char *path, struct stat *pstat)
1.5498 ++{
1.5499 ++ return _stat (path, pstat);
1.5500 ++}
1.5501 ++
1.5502 ++int
1.5503 ++_stat (const char *path, struct stat *pstat)
1.5504 ++{
1.5505 ++ char *obj = _newlib_vfs_new_string (path);
1.5506 ++
1.5507 ++ struct media_ops *mops = _newlib_vfs_get_media_ops (path);
1.5508 ++ int res = mops->stat (obj, pstat);
1.5509 ++
1.5510 ++ _newlib_vfs_delete_string (obj);
1.5511 ++
1.5512 ++ return res;
1.5513 ++}
1.5514 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/stdio_vfs.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/stdio_vfs.c
1.5515 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/stdio_vfs.c 1970-01-01 10:00:00.000000000 +1000
1.5516 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/stdio_vfs.c 2006-07-06 18:28:31.000000000 +1000
1.5517 +@@ -0,0 +1,114 @@
1.5518 ++/* Support for Marcus Comstedt's serial slave and gdbstubs, e.g. generic
1.5519 ++ serial console I/O. */
1.5520 ++
1.5521 ++#include "vfs.h"
1.5522 ++
1.5523 ++/* Only read and write are supported for stdio_file_ops, so these are
1.5524 ++ used for stdin, stdout, and stderr which are already "open" when the
1.5525 ++ program is started. */
1.5526 ++
1.5527 ++static size_t stdio_read_file_op (struct file *, void *, size_t);
1.5528 ++static size_t stdio_write_file_op (struct file *, void *, size_t);
1.5529 ++
1.5530 ++static struct file_ops stdio_file_ops =
1.5531 ++{
1.5532 ++ lseek: _newlib_vfs_invalid_file_op,
1.5533 ++ close: _newlib_vfs_invalid_file_op,
1.5534 ++ read: stdio_read_file_op,
1.5535 ++ write: stdio_write_file_op,
1.5536 ++ ioctl: _newlib_vfs_invalid_file_op,
1.5537 ++ fstat: _newlib_vfs_invalid_file_op
1.5538 ++};
1.5539 ++
1.5540 ++/* dcload or absolute may override these to go through their own console
1.5541 ++ output routines. */
1.5542 ++
1.5543 ++static struct file stdout_file;
1.5544 ++static struct file stderr_file;
1.5545 ++
1.5546 ++static struct file stdin_file =
1.5547 ++{
1.5548 ++ &stdout_file,
1.5549 ++ 0, 0,
1.5550 ++ &stdio_file_ops,
1.5551 ++ NULL,
1.5552 ++};
1.5553 ++
1.5554 ++static struct file stdout_file =
1.5555 ++{
1.5556 ++ &stderr_file,
1.5557 ++ 1, 1,
1.5558 ++ &stdio_file_ops,
1.5559 ++ NULL,
1.5560 ++};
1.5561 ++
1.5562 ++static struct file stderr_file =
1.5563 ++{
1.5564 ++ NULL,
1.5565 ++ 2, 2,
1.5566 ++ &stdio_file_ops,
1.5567 ++ NULL,
1.5568 ++};
1.5569 ++
1.5570 ++struct file * _newlib_vfs_first_file = &stdin_file;
1.5571 ++struct file * _newlib_vfs_last_file = &stderr_file;
1.5572 ++
1.5573 ++/* If we're being debugged by gdb then we can't use read or any other
1.5574 ++ raw serial I/O - we can only output to gdb's console. */
1.5575 ++static int raw_serial_io = 0;
1.5576 ++
1.5577 ++/* Detect the presence of Marcus Comstedt's serial slave by looking for the
1.5578 ++ sequence "103" at 8c00e46c. */
1.5579 ++
1.5580 ++#define SSLAVE_VERSION_ADDR 0x8c00e46c
1.5581 ++
1.5582 ++int _newlib_vfs_is_sslave (void)
1.5583 ++{
1.5584 ++ /* This hackery is used to avoid depending on memcmp () - silly, eh? */
1.5585 ++ if ( (*(unsigned char *)(SSLAVE_VERSION_ADDR)) == '1' &&
1.5586 ++ (*(unsigned char *)(SSLAVE_VERSION_ADDR + 1)) == '0' &&
1.5587 ++ (*(unsigned char *)(SSLAVE_VERSION_ADDR + 2)) == '3' )
1.5588 ++ {
1.5589 ++ raw_serial_io = 1;
1.5590 ++ return 1;
1.5591 ++ }
1.5592 ++
1.5593 ++ return 0;
1.5594 ++}
1.5595 ++
1.5596 ++void _newlib_vfs_sslave_init (void)
1.5597 ++{
1.5598 ++ /* Initialize serial console to a known state. We already assume that
1.5599 ++ we connected to the host, we just make sure the SCIF is setup the way
1.5600 ++ we need it. */
1.5601 ++ _newlib_vfs_initialized = VFS_LOADER_SERIAL_SLAVE;
1.5602 ++}
1.5603 ++
1.5604 ++
1.5605 ++/* Detect gdbstubs. gdbstubs sets the border color to green to indicate that
1.5606 ++ it's active. While this can't reliably be used to detect it, we also look
1.5607 ++ for gdbstubs start code at two separate addresses (gdbstub can load itself
1.5608 ++ at either address). */
1.5609 ++
1.5610 ++int _newlib_vfs_is_gdbstubs (void)
1.5611 ++{
1.5612 ++ return 0;
1.5613 ++}
1.5614 ++
1.5615 ++void _newlib_vfs_gdbstubs_init (void)
1.5616 ++{
1.5617 ++ _newlib_vfs_initialized = VFS_LOADER_GDBSTUBS;
1.5618 ++}
1.5619 ++
1.5620 ++extern size_t _newlib_vfs_scif_write (void *, size_t);
1.5621 ++extern size_t _newlib_vfs_scif_read (void *, size_t);
1.5622 ++
1.5623 ++static size_t stdio_read_file_op (struct file *pf, void *buf, size_t cnt)
1.5624 ++{
1.5625 ++ return _newlib_vfs_scif_read (buf, cnt);
1.5626 ++}
1.5627 ++
1.5628 ++static size_t stdio_write_file_op (struct file *pf, void *buf, size_t cnt)
1.5629 ++{
1.5630 ++ return _newlib_vfs_scif_write (buf, cnt);
1.5631 ++}
1.5632 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/times.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/times.c
1.5633 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/times.c 1970-01-01 10:00:00.000000000 +1000
1.5634 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/times.c 2006-07-06 18:28:31.000000000 +1000
1.5635 +@@ -0,0 +1,35 @@
1.5636 ++#include <time.h>
1.5637 ++#include <sys/times.h>
1.5638 ++
1.5639 ++/* crt.S stores program startup time (Dreamcast-relative, epoch at 1/1/1950)
1.5640 ++ in the global variable _newlib_dreamcast_utime. We can use this variable to
1.5641 ++ determine the total amount of time that the program has been running. */
1.5642 ++
1.5643 ++/* This is raw seconds of program usage, we don't need to worry about
1.5644 ++ converting epochs or anything like that... */
1.5645 ++
1.5646 ++extern unsigned long _newlib_dreamcast_utime;
1.5647 ++
1.5648 ++clock_t
1.5649 ++_times (struct tms *buf)
1.5650 ++{
1.5651 ++ if (_newlib_dreamcast_utime)
1.5652 ++ {
1.5653 ++ unsigned long rtc_h = *(volatile unsigned long*)0xa0710000;
1.5654 ++ unsigned long rtc_l = *(volatile unsigned long*)0xa0710004;
1.5655 ++ unsigned long secs = ((rtc_h & 0xffff) << 16) | (rtc_l & 0xffff);
1.5656 ++
1.5657 ++ clock_t utime = secs - _newlib_dreamcast_utime;
1.5658 ++
1.5659 ++ if (buf) {
1.5660 ++ buf->tms_utime = utime;
1.5661 ++ buf->tms_stime = 0;
1.5662 ++ buf->tms_cutime = 0;
1.5663 ++ buf->tms_cstime = 0;
1.5664 ++ }
1.5665 ++
1.5666 ++ return utime;
1.5667 ++ }
1.5668 ++
1.5669 ++ return (clock_t)-1;
1.5670 ++}
1.5671 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/unlink.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/unlink.c
1.5672 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/unlink.c 1970-01-01 10:00:00.000000000 +1000
1.5673 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/unlink.c 2006-07-06 18:28:31.000000000 +1000
1.5674 +@@ -0,0 +1,14 @@
1.5675 ++#include "vfs.h"
1.5676 ++
1.5677 ++int
1.5678 ++_unlink (const char *path)
1.5679 ++{
1.5680 ++ char *obj = _newlib_vfs_new_string (path);
1.5681 ++
1.5682 ++ struct media_ops *mops = _newlib_vfs_get_media_ops (path);
1.5683 ++ int res = mops->unlink (obj);
1.5684 ++
1.5685 ++ _newlib_vfs_delete_string (obj);
1.5686 ++
1.5687 ++ return res;
1.5688 ++}
1.5689 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/vfs.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/vfs.c
1.5690 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/vfs.c 1970-01-01 10:00:00.000000000 +1000
1.5691 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/vfs.c 2006-07-06 18:28:31.000000000 +1000
1.5692 +@@ -0,0 +1,246 @@
1.5693 ++#include <sys/types.h>
1.5694 ++#include <errno.h>
1.5695 ++#include <stdlib.h>
1.5696 ++#include <string.h>
1.5697 ++
1.5698 ++#include "vfs.h"
1.5699 ++
1.5700 ++static struct file * invalid_open_media_op (void);
1.5701 ++
1.5702 ++static struct media_ops invalid_media_ops =
1.5703 ++{
1.5704 ++ open: invalid_open_media_op,
1.5705 ++ creat: invalid_open_media_op,
1.5706 ++ link: _newlib_vfs_invalid_media_op,
1.5707 ++ unlink: _newlib_vfs_invalid_media_op,
1.5708 ++ stat: _newlib_vfs_invalid_media_op,
1.5709 ++ chmod: _newlib_vfs_invalid_media_op,
1.5710 ++ mkdir: _newlib_vfs_invalid_media_op,
1.5711 ++ rmdir: _newlib_vfs_invalid_media_op,
1.5712 ++ chdir: _newlib_vfs_invalid_media_op
1.5713 ++};
1.5714 ++
1.5715 ++struct media_ops * _newlib_vfs_host_media_ops = &invalid_media_ops;
1.5716 ++struct media_ops * _newlib_vfs_cd_media_ops = &invalid_media_ops;
1.5717 ++struct media_ops * _newlib_vfs_vmu_media_ops = &invalid_media_ops;
1.5718 ++
1.5719 ++/* This is where we detect the loader and initialize the relevant *_ops
1.5720 ++ variables. */
1.5721 ++
1.5722 ++enum _newlib_vfs_loader _newlib_vfs_initialized = VFS_LOADER_NONE;
1.5723 ++
1.5724 ++extern int _newlib_vfs_is_sslave (void);
1.5725 ++extern void _newlib_vfs_sslave_init (void);
1.5726 ++
1.5727 ++extern int _newlib_vfs_is_gdbstubs (void);
1.5728 ++extern void _newlib_vfs_gdbstubs_init (void);
1.5729 ++
1.5730 ++extern int _newlib_vfs_is_dcload (void);
1.5731 ++extern void _newlib_vfs_dcload_init (void);
1.5732 ++
1.5733 ++extern int _newlib_vfs_is_absolute (void);
1.5734 ++extern void _newlib_vfs_absolute_load (void);
1.5735 ++
1.5736 ++static void vfs_init (void)
1.5737 ++{
1.5738 ++ _newlib_vfs_initialized = VFS_LOADER_UNKNOWN;
1.5739 ++
1.5740 ++ if (_newlib_vfs_is_sslave ()) /* Marcus Comstedt's serial slave */
1.5741 ++ {
1.5742 ++ _newlib_vfs_sslave_init ();
1.5743 ++ }
1.5744 ++ else if (_newlib_vfs_is_gdbstubs ()) /* Benoit Miller's port of gdbstubs */
1.5745 ++ {
1.5746 ++ _newlib_vfs_gdbstubs_init ();
1.5747 ++ }
1.5748 ++ else if (_newlib_vfs_is_dcload ()) /* Andrew K's dcload */
1.5749 ++ {
1.5750 ++ _newlib_vfs_dcload_init ();
1.5751 ++ }
1.5752 ++ else if (_newlib_vfs_is_absolute ()) /* my own absolute */
1.5753 ++ {
1.5754 ++ _newlib_vfs_absolute_load ();
1.5755 ++ }
1.5756 ++}
1.5757 ++
1.5758 ++#define VFS_INIT { if (!_newlib_vfs_initialized) vfs_init (); }
1.5759 ++
1.5760 ++/* Each prefix, "/pc/", "/cd", and "/vmu" in little-endian. */
1.5761 ++#define PREFIX_HOST 0x2f63702f
1.5762 ++#define PREFIX_CD 0x2f64632f
1.5763 ++#define PREFIX_VMU 0x756d762f
1.5764 ++
1.5765 ++char *_newlib_vfs_new_string (const char *s)
1.5766 ++{
1.5767 ++ VFS_INIT;
1.5768 ++
1.5769 ++ {
1.5770 ++ char *obj = NULL;
1.5771 ++ unsigned long prefix = *(unsigned long *)s;
1.5772 ++ int len;
1.5773 ++
1.5774 ++ if (prefix == PREFIX_HOST || prefix == PREFIX_CD ||
1.5775 ++ prefix == PREFIX_VMU)
1.5776 ++ {
1.5777 ++ /* We snatch the prefix, accounting for the null byte (since we're
1.5778 ++ using memcpy; this could be changed to a simple copy loop... */
1.5779 ++ len = strlen (s) - 3;
1.5780 ++ obj = malloc (len);
1.5781 ++ if (!obj) return obj;
1.5782 ++
1.5783 ++ memcpy (obj, s + 4, len);
1.5784 ++ }
1.5785 ++ else /* Just return a copy of the string if no path given */
1.5786 ++ {
1.5787 ++ len = strlen (s) + 1;
1.5788 ++ obj = malloc (len);
1.5789 ++ if (!obj) return obj;
1.5790 ++
1.5791 ++ memcpy (obj, s, len);
1.5792 ++ }
1.5793 ++ return obj;
1.5794 ++ }
1.5795 ++}
1.5796 ++
1.5797 ++void _newlib_vfs_delete_string (char *s)
1.5798 ++{
1.5799 ++ if (s) free (s);
1.5800 ++}
1.5801 ++
1.5802 ++/* When each media op calls this, it's already got a copy of the stripped
1.5803 ++ path so we just do simple comparisons on the path prefix here. */
1.5804 ++struct media_ops *_newlib_vfs_get_media_ops (const char *path)
1.5805 ++{
1.5806 ++ unsigned long prefix = *(unsigned long *)path;
1.5807 ++
1.5808 ++ if (prefix == PREFIX_HOST)
1.5809 ++ {
1.5810 ++ return _newlib_vfs_host_media_ops;
1.5811 ++ }
1.5812 ++ else if (prefix == PREFIX_CD)
1.5813 ++ {
1.5814 ++ return _newlib_vfs_cd_media_ops;
1.5815 ++ }
1.5816 ++ else if (prefix == PREFIX_VMU)
1.5817 ++ {
1.5818 ++ return _newlib_vfs_vmu_media_ops;
1.5819 ++ }
1.5820 ++
1.5821 ++ return _newlib_vfs_host_media_ops;
1.5822 ++}
1.5823 ++
1.5824 ++static struct file_ops invalid_file_ops =
1.5825 ++{
1.5826 ++ lseek: _newlib_vfs_invalid_file_op,
1.5827 ++ close: _newlib_vfs_invalid_file_op,
1.5828 ++ read: _newlib_vfs_invalid_file_op,
1.5829 ++ write: _newlib_vfs_invalid_file_op,
1.5830 ++ ioctl: _newlib_vfs_invalid_file_op,
1.5831 ++ fstat: _newlib_vfs_invalid_file_op
1.5832 ++};
1.5833 ++
1.5834 ++static struct file invalid_file =
1.5835 ++{
1.5836 ++ NULL,
1.5837 ++ -1, -1,
1.5838 ++ &invalid_file_ops,
1.5839 ++ NULL
1.5840 ++};
1.5841 ++
1.5842 ++/* FIXME: A lookup for each fd could get expensive...find a better way to
1.5843 ++ "cache" frequently used fds */
1.5844 ++
1.5845 ++static struct file *cached_file = NULL;
1.5846 ++
1.5847 ++/* Find the file matching fd and return a pointer to its contents. If the
1.5848 ++ file isn't found, return a pointer to invalid_file, which represents a
1.5849 ++ non-existent file (all operations on it will fail). */
1.5850 ++struct file *_newlib_vfs_get_file (int fd)
1.5851 ++{
1.5852 ++ VFS_INIT;
1.5853 ++
1.5854 ++ {
1.5855 ++ struct file *next_file = _newlib_vfs_first_file;
1.5856 ++
1.5857 ++ if ((cached_file != NULL) && (cached_file->fd == fd))
1.5858 ++ {
1.5859 ++ return cached_file;
1.5860 ++ }
1.5861 ++
1.5862 ++ while (next_file)
1.5863 ++ {
1.5864 ++ if (next_file->fd == fd)
1.5865 ++ {
1.5866 ++ cached_file = next_file;
1.5867 ++ return next_file;
1.5868 ++ }
1.5869 ++ next_file = next_file->next;
1.5870 ++ }
1.5871 ++ return &invalid_file;
1.5872 ++ }
1.5873 ++}
1.5874 ++
1.5875 ++static int last_fd = -1;
1.5876 ++
1.5877 ++/* Just insert the file at the end of the list, as it's already been
1.5878 ++ allocated by open/creat. Increase the library's fd by using the last
1.5879 ++ file's fd. */
1.5880 ++int _newlib_vfs_insert_file (struct file *pf)
1.5881 ++{
1.5882 ++ if (last_fd < 0)
1.5883 ++ {
1.5884 ++ last_fd = _newlib_vfs_last_file->fd;
1.5885 ++ }
1.5886 ++/* ++last_fd; */
1.5887 ++ pf->fd = ++last_fd;
1.5888 ++ _newlib_vfs_last_file->next = pf;
1.5889 ++ _newlib_vfs_last_file = pf;
1.5890 ++ return last_fd;
1.5891 ++}
1.5892 ++
1.5893 ++int _newlib_vfs_remove_file (struct file *pf)
1.5894 ++{
1.5895 ++ if (pf)
1.5896 ++ {
1.5897 ++ struct file *prev_file = _newlib_vfs_first_file;
1.5898 ++ struct file *next_file = NULL;
1.5899 ++
1.5900 ++ while (prev_file)
1.5901 ++ {
1.5902 ++ if (prev_file->next == pf)
1.5903 ++ {
1.5904 ++ prev_file->next = pf->next;
1.5905 ++ next_file = prev_file->next;
1.5906 ++ while (next_file)
1.5907 ++ {
1.5908 ++ prev_file = next_file;
1.5909 ++ next_file = next_file->next;
1.5910 ++ }
1.5911 ++ _newlib_vfs_last_file = prev_file;
1.5912 ++ free (pf);
1.5913 ++ return 0;
1.5914 ++ }
1.5915 ++ prev_file = prev_file->next;
1.5916 ++ }
1.5917 ++ }
1.5918 ++ errno = ENOSYS;
1.5919 ++ return -1;
1.5920 ++}
1.5921 ++
1.5922 ++int _newlib_vfs_invalid_file_op (void)
1.5923 ++{
1.5924 ++ errno = ENOSYS;
1.5925 ++ return -1;
1.5926 ++}
1.5927 ++
1.5928 ++static struct file *invalid_open_media_op (void)
1.5929 ++{
1.5930 ++ errno = ENOSYS;
1.5931 ++ return NULL;
1.5932 ++}
1.5933 ++
1.5934 ++int _newlib_vfs_invalid_media_op (void)
1.5935 ++{
1.5936 ++ errno = ENOSYS;
1.5937 ++ return -1;
1.5938 ++}
1.5939 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/vfs.h newlib-1.8.2-dc/newlib/libc/sys/dreamcast/vfs.h
1.5940 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/vfs.h 1970-01-01 10:00:00.000000000 +1000
1.5941 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/vfs.h 2006-07-06 18:28:31.000000000 +1000
1.5942 +@@ -0,0 +1,100 @@
1.5943 ++#ifndef __VFS_H__
1.5944 ++#define __VFS_H__
1.5945 ++
1.5946 ++#include <sys/types.h>
1.5947 ++#include <sys/stat.h>
1.5948 ++
1.5949 ++/* Defines all of the operations that can be performed on a particular media
1.5950 ++ type. These are independent of file access routines. */
1.5951 ++
1.5952 ++struct media_ops {
1.5953 ++ struct file * (*open) (const char *, int, mode_t);
1.5954 ++ struct file * (*creat) (const char *, mode_t);
1.5955 ++ int (*link) (const char *, const char *);
1.5956 ++ int (*unlink) (const char *);
1.5957 ++ int (*stat) (const char *, struct stat *);
1.5958 ++ int (*chmod) (const char *, mode_t);
1.5959 ++ int (*mkdir) (const char*, mode_t);
1.5960 ++ int (*rmdir) (const char *);
1.5961 ++ int (*chdir) (const char *);
1.5962 ++};
1.5963 ++
1.5964 ++/* These are the operations that can be done to a file. Each media and stub
1.5965 ++ has it's own combination of routines (e.g. Absolute + VMU, dcload + host). */
1.5966 ++
1.5967 ++struct file_ops {
1.5968 ++ off_t (*lseek) (struct file *, off_t, int);
1.5969 ++ int (*close) (struct file *);
1.5970 ++ size_t (*read) (struct file *, void *, size_t);
1.5971 ++ size_t (*write) (struct file *, void *, size_t);
1.5972 ++ /* Hmm, what to do with this one? */
1.5973 ++ int (*ioctl) (struct file *, int, long);
1.5974 ++ int (*fstat) (struct file *, struct stat *);
1.5975 ++};
1.5976 ++
1.5977 ++/* We maintain a linked list of files so that we can remove and add files
1.5978 ++ to/from the list easier. Each file contains an fd, the "real" fd of whatever
1.5979 ++ media it resides upon, a pointer to the file_ops for the file, and a pointer
1.5980 ++ to media/stub specific data. */
1.5981 ++
1.5982 ++struct file {
1.5983 ++ struct file *next;
1.5984 ++ int fd;
1.5985 ++ int media_fd;
1.5986 ++ struct file_ops *fops;
1.5987 ++ void *specifics;
1.5988 ++};
1.5989 ++
1.5990 ++
1.5991 ++/* Each load initializes the media_ops for each type based on the media it
1.5992 ++ supports. If a media type isn't supported, then it's ops points to
1.5993 ++ _newlib_vfs_invalid_media_ops. */
1.5994 ++extern struct media_ops * _newlib_vfs_host_media_ops;
1.5995 ++extern struct media_ops * _newlib_vfs_cd_media_ops;
1.5996 ++extern struct media_ops * _newlib_vfs_vmu_media_ops;
1.5997 ++
1.5998 ++/* Pointers to the first and last file in the list */
1.5999 ++extern struct file * _newlib_vfs_first_file;
1.6000 ++extern struct file * _newlib_vfs_last_file;
1.6001 ++
1.6002 ++/* Each loader initializer gives this a distinct value so that programs
1.6003 ++ can determine which loader they're being loaded under. */
1.6004 ++enum _newlib_vfs_loader
1.6005 ++{
1.6006 ++ VFS_LOADER_NONE,
1.6007 ++ VFS_LOADER_UNKNOWN,
1.6008 ++ VFS_LOADER_SERIAL_SLAVE,
1.6009 ++ VFS_LOADER_GDBSTUBS,
1.6010 ++ VFS_LOADER_DCLOAD_HOST,
1.6011 ++ VFS_LOADER_DCLOAD_NOHOST,
1.6012 ++ VFS_LOADER_ABSOLUTE
1.6013 ++};
1.6014 ++
1.6015 ++extern enum _newlib_vfs_loader _newlib_vfs_initialized;
1.6016 ++
1.6017 ++/* Generic media/file_ops that return ENOSYS */
1.6018 ++int _newlib_vfs_invalid_media_op (void);
1.6019 ++int _newlib_vfs_invalid_file_op (void);
1.6020 ++
1.6021 ++/* Using the path prefix, return the media_ops that handles it */
1.6022 ++struct media_ops *_newlib_vfs_get_media_ops (const char *path);
1.6023 ++
1.6024 ++/* Returns the file that matches the given fd */
1.6025 ++struct file *_newlib_vfs_get_file (int fd);
1.6026 ++
1.6027 ++/* Insert a new file into the list. Returns -1 and sets errno if the file
1.6028 ++ can't be inserted, otherewise returns 0 */
1.6029 ++int _newlib_vfs_insert_file (struct file *);
1.6030 ++
1.6031 ++/* Removes a file from the list. Returns -1 and sets errno if there was
1.6032 ++ a problem (e.g. invalid fd passed to close, etc.) */
1.6033 ++int _newlib_vfs_remove_file (struct file *);
1.6034 ++
1.6035 ++/* Copy the given string into a new buffer, while stripping the vfs prefix
1.6036 ++ at the same time. */
1.6037 ++char *_newlib_vfs_new_string (const char *s);
1.6038 ++
1.6039 ++/* Free the buffer previously allocated with *_new_string */
1.6040 ++void _newlib_vfs_delete_string (char *s);
1.6041 ++
1.6042 ++#endif /* __VFS_H__ */
1.6043 +diff -urN newlib-1.8.2/newlib/libc/sys/dreamcast/write.c newlib-1.8.2-dc/newlib/libc/sys/dreamcast/write.c
1.6044 +--- newlib-1.8.2/newlib/libc/sys/dreamcast/write.c 1970-01-01 10:00:00.000000000 +1000
1.6045 ++++ newlib-1.8.2-dc/newlib/libc/sys/dreamcast/write.c 2006-07-06 18:28:31.000000000 +1000
1.6046 +@@ -0,0 +1,11 @@
1.6047 ++#include <sys/types.h>
1.6048 ++
1.6049 ++#include "vfs.h"
1.6050 ++
1.6051 ++int
1.6052 ++_write (int fd, const void *buf, size_t cnt)
1.6053 ++{
1.6054 ++ struct file *pf = _newlib_vfs_get_file (fd);
1.6055 ++
1.6056 ++ return pf->fops->write (pf, buf, cnt);
1.6057 ++}
1.6058 +diff -urN newlib-1.8.2/newlib/libc/sys/Makefile.in newlib-1.8.2-dc/newlib/libc/sys/Makefile.in
1.6059 +--- newlib-1.8.2/newlib/libc/sys/Makefile.in 1999-06-04 07:34:55.000000000 +1000
1.6060 ++++ newlib-1.8.2-dc/newlib/libc/sys/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.6061 +@@ -79,8 +79,7 @@
1.6062 +
1.6063 + SUBDIRS = $(sys_dir) .
1.6064 +
1.6065 +-@HAVE_SYS_DIR_TRUE@SYSLIB = \
1.6066 +-@HAVE_SYS_DIR_TRUE@lib.a
1.6067 ++@HAVE_SYS_DIR_TRUE@SYSLIB = lib.a
1.6068 +
1.6069 + noinst_LIBRARIES = $(SYSLIB)
1.6070 + noinst_DATA = $(CRT0)
1.6071 +@@ -295,7 +294,7 @@
1.6072 + @for file in $(DISTFILES); do \
1.6073 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.6074 + if test -d $$d/$$file; then \
1.6075 +- cp -pr $$/$$file $(distdir)/$$file; \
1.6076 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.6077 + else \
1.6078 + test -f $(distdir)/$$file \
1.6079 + || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.6080 +diff -urN newlib-1.8.2/newlib/libc/syscalls/Makefile.in newlib-1.8.2-dc/newlib/libc/syscalls/Makefile.in
1.6081 +--- newlib-1.8.2/newlib/libc/syscalls/Makefile.in 1998-12-01 08:03:47.000000000 +1000
1.6082 ++++ newlib-1.8.2-dc/newlib/libc/syscalls/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.6083 +@@ -1,6 +1,6 @@
1.6084 +-# Makefile.in generated automatically by automake 1.3b from Makefile.am
1.6085 ++# Makefile.in generated automatically by automake 1.4 from Makefile.am
1.6086 +
1.6087 +-# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
1.6088 ++# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.6089 + # This Makefile.in is free software; the Free Software Foundation
1.6090 + # gives unlimited permission to copy and/or distribute it,
1.6091 + # with or without modifications, as long as this notice is preserved.
1.6092 +@@ -46,7 +46,7 @@
1.6093 + AUTOHEADER = @AUTOHEADER@
1.6094 +
1.6095 + INSTALL = @INSTALL@
1.6096 +-INSTALL_PROGRAM = @INSTALL_PROGRAM@
1.6097 ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
1.6098 + INSTALL_DATA = @INSTALL_DATA@
1.6099 + INSTALL_SCRIPT = @INSTALL_SCRIPT@
1.6100 + transform = @program_transform_name@
1.6101 +@@ -78,7 +78,6 @@
1.6102 + PACKAGE = @PACKAGE@
1.6103 + RANLIB = @RANLIB@
1.6104 + VERSION = @VERSION@
1.6105 +-mach_add_objs = @mach_add_objs@
1.6106 + machine_dir = @machine_dir@
1.6107 + newlib_basedir = @newlib_basedir@
1.6108 + sys_dir = @sys_dir@
1.6109 +@@ -89,27 +88,10 @@
1.6110 +
1.6111 + noinst_LIBRARIES = lib.a
1.6112 +
1.6113 +-lib_a_SOURCES = \
1.6114 +- sysclose.c \
1.6115 +- sysexecve.c \
1.6116 +- sysfcntl.c \
1.6117 +- sysfork.c \
1.6118 +- sysfstat.c \
1.6119 +- sysgetpid.c \
1.6120 +- sysgettod.c \
1.6121 +- syskill.c \
1.6122 +- syslink.c \
1.6123 +- syslseek.c \
1.6124 +- sysopen.c \
1.6125 +- sysread.c \
1.6126 +- syssbrk.c \
1.6127 +- sysstat.c \
1.6128 +- systimes.c \
1.6129 +- sysunlink.c \
1.6130 +- syswait.c \
1.6131 +- syswrite.c
1.6132 ++lib_a_SOURCES = sysclose.c sysexecve.c sysfcntl.c sysfork.c sysfstat.c sysgetpid.c sysgettod.c syskill.c syslink.c syslseek.c sysopen.c sysread.c syssbrk.c sysstat.c systimes.c sysunlink.c syswait.c syswrite.c
1.6133 +
1.6134 +-CHEWOUT_FILES =
1.6135 ++
1.6136 ++CHEWOUT_FILES =
1.6137 +
1.6138 + SUFFIXES = .def
1.6139 +
1.6140 +@@ -134,22 +116,22 @@
1.6141 + syswrite.o
1.6142 + CFLAGS = @CFLAGS@
1.6143 + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1.6144 +-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.6145 ++CCLD = $(CC)
1.6146 ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.6147 + DIST_COMMON = Makefile.am Makefile.in
1.6148 +
1.6149 +
1.6150 + DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
1.6151 +
1.6152 + TAR = tar
1.6153 +-GZIP = --best
1.6154 ++GZIP_ENV = --best
1.6155 + SOURCES = $(lib_a_SOURCES)
1.6156 + OBJECTS = $(lib_a_OBJECTS)
1.6157 +
1.6158 +-all: Makefile $(LIBRARIES)
1.6159 +-
1.6160 ++all: all-redirect
1.6161 + .SUFFIXES:
1.6162 + .SUFFIXES: .S .c .def .o .s
1.6163 +-$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.6164 ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.6165 + cd $(top_srcdir) && $(AUTOMAKE) --cygnus syscalls/Makefile
1.6166 +
1.6167 + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1.6168 +@@ -193,8 +175,12 @@
1.6169 + tags: TAGS
1.6170 +
1.6171 + ID: $(HEADERS) $(SOURCES) $(LISP)
1.6172 ++ list='$(SOURCES) $(HEADERS)'; \
1.6173 ++ unique=`for i in $$list; do echo $$i; done | \
1.6174 ++ awk ' { files[$$0] = 1; } \
1.6175 ++ END { for (i in files) print i; }'`; \
1.6176 + here=`pwd` && cd $(srcdir) \
1.6177 +- && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
1.6178 ++ && mkid -f$$here/ID $$unique $(LISP)
1.6179 +
1.6180 + TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
1.6181 + tags=; \
1.6182 +@@ -222,28 +208,39 @@
1.6183 + distdir: $(DISTFILES)
1.6184 + @for file in $(DISTFILES); do \
1.6185 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.6186 +- test -f $(distdir)/$$file \
1.6187 +- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.6188 +- || cp -p $$d/$$file $(distdir)/$$file; \
1.6189 ++ if test -d $$d/$$file; then \
1.6190 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.6191 ++ else \
1.6192 ++ test -f $(distdir)/$$file \
1.6193 ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.6194 ++ || cp -p $$d/$$file $(distdir)/$$file || :; \
1.6195 ++ fi; \
1.6196 + done
1.6197 +-info:
1.6198 +-dvi:
1.6199 +-check:
1.6200 +-installcheck:
1.6201 +-install-info:
1.6202 +-install-exec:
1.6203 +- @$(NORMAL_INSTALL)
1.6204 +-
1.6205 +-install-data:
1.6206 +- @$(NORMAL_INSTALL)
1.6207 +-
1.6208 +-install: install-exec install-data all
1.6209 +- @:
1.6210 +-
1.6211 +-uninstall:
1.6212 +-
1.6213 ++info-am:
1.6214 ++info: info-am
1.6215 ++dvi-am:
1.6216 ++dvi: dvi-am
1.6217 ++check-am:
1.6218 ++check: check-am
1.6219 ++installcheck-am:
1.6220 ++installcheck: installcheck-am
1.6221 ++install-info-am:
1.6222 ++install-info: install-info-am
1.6223 ++install-exec-am:
1.6224 ++install-exec: install-exec-am
1.6225 ++
1.6226 ++install-data-am:
1.6227 ++install-data: install-data-am
1.6228 ++
1.6229 ++install-am: all-am
1.6230 ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1.6231 ++install: install-am
1.6232 ++uninstall-am:
1.6233 ++uninstall: uninstall-am
1.6234 ++all-am: Makefile $(LIBRARIES)
1.6235 ++all-redirect: all-am
1.6236 + install-strip:
1.6237 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
1.6238 ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1.6239 + installdirs:
1.6240 +
1.6241 +
1.6242 +@@ -257,29 +254,38 @@
1.6243 + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1.6244 +
1.6245 + maintainer-clean-generic:
1.6246 +-mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.6247 ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.6248 + mostlyclean-tags mostlyclean-generic
1.6249 +
1.6250 +-clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.6251 +- mostlyclean
1.6252 ++mostlyclean: mostlyclean-am
1.6253 ++
1.6254 ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.6255 ++ mostlyclean-am
1.6256 +
1.6257 +-distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \
1.6258 +- distclean-generic clean
1.6259 +- -rm -f config.status
1.6260 ++clean: clean-am
1.6261 +
1.6262 +-maintainer-clean: maintainer-clean-noinstLIBRARIES \
1.6263 ++distclean-am: distclean-noinstLIBRARIES distclean-compile \
1.6264 ++ distclean-tags distclean-generic clean-am
1.6265 ++
1.6266 ++distclean: distclean-am
1.6267 ++
1.6268 ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
1.6269 + maintainer-clean-compile maintainer-clean-tags \
1.6270 +- maintainer-clean-generic distclean
1.6271 ++ maintainer-clean-generic distclean-am
1.6272 + @echo "This command is intended for maintainers to use;"
1.6273 + @echo "it deletes files that may require special tools to rebuild."
1.6274 +
1.6275 ++maintainer-clean: maintainer-clean-am
1.6276 ++
1.6277 + .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
1.6278 + clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
1.6279 + mostlyclean-compile distclean-compile clean-compile \
1.6280 + maintainer-clean-compile tags mostlyclean-tags distclean-tags \
1.6281 +-clean-tags maintainer-clean-tags distdir info dvi installcheck \
1.6282 +-install-info install-exec install-data install uninstall all \
1.6283 +-installdirs mostlyclean-generic distclean-generic clean-generic \
1.6284 ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
1.6285 ++check-am installcheck-am installcheck install-info-am install-info \
1.6286 ++install-exec-am install-exec install-data-am install-data install-am \
1.6287 ++install uninstall-am uninstall all-redirect all-am all installdirs \
1.6288 ++mostlyclean-generic distclean-generic clean-generic \
1.6289 + maintainer-clean-generic clean mostlyclean distclean maintainer-clean
1.6290 +
1.6291 +
1.6292 +diff -urN newlib-1.8.2/newlib/libc/time/Makefile.in newlib-1.8.2-dc/newlib/libc/time/Makefile.in
1.6293 +--- newlib-1.8.2/newlib/libc/time/Makefile.in 1998-12-01 08:03:48.000000000 +1000
1.6294 ++++ newlib-1.8.2-dc/newlib/libc/time/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.6295 +@@ -1,6 +1,6 @@
1.6296 +-# Makefile.in generated automatically by automake 1.3b from Makefile.am
1.6297 ++# Makefile.in generated automatically by automake 1.4 from Makefile.am
1.6298 +
1.6299 +-# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
1.6300 ++# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.6301 + # This Makefile.in is free software; the Free Software Foundation
1.6302 + # gives unlimited permission to copy and/or distribute it,
1.6303 + # with or without modifications, as long as this notice is preserved.
1.6304 +@@ -46,7 +46,7 @@
1.6305 + AUTOHEADER = @AUTOHEADER@
1.6306 +
1.6307 + INSTALL = @INSTALL@
1.6308 +-INSTALL_PROGRAM = @INSTALL_PROGRAM@
1.6309 ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
1.6310 + INSTALL_DATA = @INSTALL_DATA@
1.6311 + INSTALL_SCRIPT = @INSTALL_SCRIPT@
1.6312 + transform = @program_transform_name@
1.6313 +@@ -78,7 +78,6 @@
1.6314 + PACKAGE = @PACKAGE@
1.6315 + RANLIB = @RANLIB@
1.6316 + VERSION = @VERSION@
1.6317 +-mach_add_objs = @mach_add_objs@
1.6318 + machine_dir = @machine_dir@
1.6319 + newlib_basedir = @newlib_basedir@
1.6320 + sys_dir = @sys_dir@
1.6321 +@@ -89,31 +88,11 @@
1.6322 +
1.6323 + noinst_LIBRARIES = lib.a
1.6324 +
1.6325 +-lib_a_SOURCES = \
1.6326 +- asctime.c \
1.6327 +- asctime_r.c \
1.6328 +- clock.c \
1.6329 +- ctime.c \
1.6330 +- ctime_r.c \
1.6331 +- difftime.c \
1.6332 +- gmtime.c \
1.6333 +- gmtime_r.c \
1.6334 +- lcltime.c \
1.6335 +- lcltime_r.c \
1.6336 +- mktime.c \
1.6337 +- strftime.c \
1.6338 +- time.c
1.6339 +-
1.6340 +-CHEWOUT_FILES = \
1.6341 +- asctime.def \
1.6342 +- clock.def \
1.6343 +- ctime.def \
1.6344 +- difftime.def \
1.6345 +- gmtime.def \
1.6346 +- lcltime.def \
1.6347 +- mktime.def \
1.6348 +- strftime.def \
1.6349 +- time.def
1.6350 ++lib_a_SOURCES = asctime.c asctime_r.c clock.c ctime.c ctime_r.c difftime.c gmtime.c gmtime_r.c lcltime.c lcltime_r.c mktime.c strftime.c time.c
1.6351 ++
1.6352 ++
1.6353 ++CHEWOUT_FILES = asctime.def clock.def ctime.def difftime.def gmtime.def lcltime.def mktime.def strftime.def time.def
1.6354 ++
1.6355 +
1.6356 + SUFFIXES = .def
1.6357 +
1.6358 +@@ -137,22 +116,22 @@
1.6359 + strftime.o time.o
1.6360 + CFLAGS = @CFLAGS@
1.6361 + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1.6362 +-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.6363 ++CCLD = $(CC)
1.6364 ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.6365 + DIST_COMMON = Makefile.am Makefile.in
1.6366 +
1.6367 +
1.6368 + DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
1.6369 +
1.6370 + TAR = tar
1.6371 +-GZIP = --best
1.6372 ++GZIP_ENV = --best
1.6373 + SOURCES = $(lib_a_SOURCES)
1.6374 + OBJECTS = $(lib_a_OBJECTS)
1.6375 +
1.6376 +-all: Makefile $(LIBRARIES)
1.6377 +-
1.6378 ++all: all-redirect
1.6379 + .SUFFIXES:
1.6380 + .SUFFIXES: .S .c .def .o .s
1.6381 +-$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.6382 ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.6383 + cd $(top_srcdir) && $(AUTOMAKE) --cygnus time/Makefile
1.6384 +
1.6385 + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1.6386 +@@ -196,8 +175,12 @@
1.6387 + tags: TAGS
1.6388 +
1.6389 + ID: $(HEADERS) $(SOURCES) $(LISP)
1.6390 ++ list='$(SOURCES) $(HEADERS)'; \
1.6391 ++ unique=`for i in $$list; do echo $$i; done | \
1.6392 ++ awk ' { files[$$0] = 1; } \
1.6393 ++ END { for (i in files) print i; }'`; \
1.6394 + here=`pwd` && cd $(srcdir) \
1.6395 +- && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
1.6396 ++ && mkid -f$$here/ID $$unique $(LISP)
1.6397 +
1.6398 + TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
1.6399 + tags=; \
1.6400 +@@ -225,28 +208,39 @@
1.6401 + distdir: $(DISTFILES)
1.6402 + @for file in $(DISTFILES); do \
1.6403 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.6404 +- test -f $(distdir)/$$file \
1.6405 +- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.6406 +- || cp -p $$d/$$file $(distdir)/$$file; \
1.6407 ++ if test -d $$d/$$file; then \
1.6408 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.6409 ++ else \
1.6410 ++ test -f $(distdir)/$$file \
1.6411 ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.6412 ++ || cp -p $$d/$$file $(distdir)/$$file || :; \
1.6413 ++ fi; \
1.6414 + done
1.6415 +-info:
1.6416 +-dvi:
1.6417 +-check:
1.6418 +-installcheck:
1.6419 +-install-info:
1.6420 +-install-exec:
1.6421 +- @$(NORMAL_INSTALL)
1.6422 +-
1.6423 +-install-data:
1.6424 +- @$(NORMAL_INSTALL)
1.6425 +-
1.6426 +-install: install-exec install-data all
1.6427 +- @:
1.6428 +-
1.6429 +-uninstall:
1.6430 +-
1.6431 ++info-am:
1.6432 ++info: info-am
1.6433 ++dvi-am:
1.6434 ++dvi: dvi-am
1.6435 ++check-am:
1.6436 ++check: check-am
1.6437 ++installcheck-am:
1.6438 ++installcheck: installcheck-am
1.6439 ++install-info-am:
1.6440 ++install-info: install-info-am
1.6441 ++install-exec-am:
1.6442 ++install-exec: install-exec-am
1.6443 ++
1.6444 ++install-data-am:
1.6445 ++install-data: install-data-am
1.6446 ++
1.6447 ++install-am: all-am
1.6448 ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1.6449 ++install: install-am
1.6450 ++uninstall-am:
1.6451 ++uninstall: uninstall-am
1.6452 ++all-am: Makefile $(LIBRARIES)
1.6453 ++all-redirect: all-am
1.6454 + install-strip:
1.6455 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
1.6456 ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1.6457 + installdirs:
1.6458 +
1.6459 +
1.6460 +@@ -260,29 +254,38 @@
1.6461 + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1.6462 +
1.6463 + maintainer-clean-generic:
1.6464 +-mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.6465 ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.6466 + mostlyclean-tags mostlyclean-generic
1.6467 +
1.6468 +-clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.6469 +- mostlyclean
1.6470 ++mostlyclean: mostlyclean-am
1.6471 +
1.6472 +-distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \
1.6473 +- distclean-generic clean
1.6474 +- -rm -f config.status
1.6475 ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.6476 ++ mostlyclean-am
1.6477 +
1.6478 +-maintainer-clean: maintainer-clean-noinstLIBRARIES \
1.6479 ++clean: clean-am
1.6480 ++
1.6481 ++distclean-am: distclean-noinstLIBRARIES distclean-compile \
1.6482 ++ distclean-tags distclean-generic clean-am
1.6483 ++
1.6484 ++distclean: distclean-am
1.6485 ++
1.6486 ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
1.6487 + maintainer-clean-compile maintainer-clean-tags \
1.6488 +- maintainer-clean-generic distclean
1.6489 ++ maintainer-clean-generic distclean-am
1.6490 + @echo "This command is intended for maintainers to use;"
1.6491 + @echo "it deletes files that may require special tools to rebuild."
1.6492 +
1.6493 ++maintainer-clean: maintainer-clean-am
1.6494 ++
1.6495 + .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
1.6496 + clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
1.6497 + mostlyclean-compile distclean-compile clean-compile \
1.6498 + maintainer-clean-compile tags mostlyclean-tags distclean-tags \
1.6499 +-clean-tags maintainer-clean-tags distdir info dvi installcheck \
1.6500 +-install-info install-exec install-data install uninstall all \
1.6501 +-installdirs mostlyclean-generic distclean-generic clean-generic \
1.6502 ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
1.6503 ++check-am installcheck-am installcheck install-info-am install-info \
1.6504 ++install-exec-am install-exec install-data-am install-data install-am \
1.6505 ++install uninstall-am uninstall all-redirect all-am all installdirs \
1.6506 ++mostlyclean-generic distclean-generic clean-generic \
1.6507 + maintainer-clean-generic clean mostlyclean distclean maintainer-clean
1.6508 +
1.6509 +
1.6510 +diff -urN newlib-1.8.2/newlib/libc/unix/Makefile.in newlib-1.8.2-dc/newlib/libc/unix/Makefile.in
1.6511 +--- newlib-1.8.2/newlib/libc/unix/Makefile.in 1998-12-01 08:03:48.000000000 +1000
1.6512 ++++ newlib-1.8.2-dc/newlib/libc/unix/Makefile.in 2006-07-06 18:28:31.000000000 +1000
1.6513 +@@ -1,6 +1,6 @@
1.6514 +-# Makefile.in generated automatically by automake 1.3b from Makefile.am
1.6515 ++# Makefile.in generated automatically by automake 1.4 from Makefile.am
1.6516 +
1.6517 +-# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
1.6518 ++# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
1.6519 + # This Makefile.in is free software; the Free Software Foundation
1.6520 + # gives unlimited permission to copy and/or distribute it,
1.6521 + # with or without modifications, as long as this notice is preserved.
1.6522 +@@ -46,7 +46,7 @@
1.6523 + AUTOHEADER = @AUTOHEADER@
1.6524 +
1.6525 + INSTALL = @INSTALL@
1.6526 +-INSTALL_PROGRAM = @INSTALL_PROGRAM@
1.6527 ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
1.6528 + INSTALL_DATA = @INSTALL_DATA@
1.6529 + INSTALL_SCRIPT = @INSTALL_SCRIPT@
1.6530 + transform = @program_transform_name@
1.6531 +@@ -78,7 +78,6 @@
1.6532 + PACKAGE = @PACKAGE@
1.6533 + RANLIB = @RANLIB@
1.6534 + VERSION = @VERSION@
1.6535 +-mach_add_objs = @mach_add_objs@
1.6536 + machine_dir = @machine_dir@
1.6537 + newlib_basedir = @newlib_basedir@
1.6538 + sys_dir = @sys_dir@
1.6539 +@@ -89,10 +88,10 @@
1.6540 +
1.6541 + noinst_LIBRARIES = lib.a
1.6542 +
1.6543 +-lib_a_SOURCES = \
1.6544 +- getpass.c sigset.c getpwent.c ttyname.c getut.c getlogin.c getcwd.c
1.6545 ++lib_a_SOURCES = getpass.c sigset.c getpwent.c ttyname.c getut.c getlogin.c getcwd.c
1.6546 +
1.6547 +-CHEWOUT_FILES =
1.6548 ++
1.6549 ++CHEWOUT_FILES =
1.6550 +
1.6551 + SUFFIXES = .def
1.6552 +
1.6553 +@@ -115,22 +114,22 @@
1.6554 + getlogin.o getcwd.o
1.6555 + CFLAGS = @CFLAGS@
1.6556 + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
1.6557 +-LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.6558 ++CCLD = $(CC)
1.6559 ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
1.6560 + DIST_COMMON = Makefile.am Makefile.in
1.6561 +
1.6562 +
1.6563 + DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
1.6564 +
1.6565 + TAR = tar
1.6566 +-GZIP = --best
1.6567 ++GZIP_ENV = --best
1.6568 + SOURCES = $(lib_a_SOURCES)
1.6569 + OBJECTS = $(lib_a_OBJECTS)
1.6570 +
1.6571 +-all: Makefile $(LIBRARIES)
1.6572 +-
1.6573 ++all: all-redirect
1.6574 + .SUFFIXES:
1.6575 + .SUFFIXES: .S .c .def .o .s
1.6576 +-$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.6577 ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
1.6578 + cd $(top_srcdir) && $(AUTOMAKE) --cygnus unix/Makefile
1.6579 +
1.6580 + Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1.6581 +@@ -174,8 +173,12 @@
1.6582 + tags: TAGS
1.6583 +
1.6584 + ID: $(HEADERS) $(SOURCES) $(LISP)
1.6585 ++ list='$(SOURCES) $(HEADERS)'; \
1.6586 ++ unique=`for i in $$list; do echo $$i; done | \
1.6587 ++ awk ' { files[$$0] = 1; } \
1.6588 ++ END { for (i in files) print i; }'`; \
1.6589 + here=`pwd` && cd $(srcdir) \
1.6590 +- && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
1.6591 ++ && mkid -f$$here/ID $$unique $(LISP)
1.6592 +
1.6593 + TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
1.6594 + tags=; \
1.6595 +@@ -203,28 +206,39 @@
1.6596 + distdir: $(DISTFILES)
1.6597 + @for file in $(DISTFILES); do \
1.6598 + if test -f $$file; then d=.; else d=$(srcdir); fi; \
1.6599 +- test -f $(distdir)/$$file \
1.6600 +- || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.6601 +- || cp -p $$d/$$file $(distdir)/$$file; \
1.6602 ++ if test -d $$d/$$file; then \
1.6603 ++ cp -pr $$d/$$file $(distdir)/$$file; \
1.6604 ++ else \
1.6605 ++ test -f $(distdir)/$$file \
1.6606 ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
1.6607 ++ || cp -p $$d/$$file $(distdir)/$$file || :; \
1.6608 ++ fi; \
1.6609 + done
1.6610 +-info:
1.6611 +-dvi:
1.6612 +-check:
1.6613 +-installcheck:
1.6614 +-install-info:
1.6615 +-install-exec:
1.6616 +- @$(NORMAL_INSTALL)
1.6617 +-
1.6618 +-install-data:
1.6619 +- @$(NORMAL_INSTALL)
1.6620 +-
1.6621 +-install: install-exec install-data all
1.6622 +- @:
1.6623 +-
1.6624 +-uninstall:
1.6625 +-
1.6626 ++info-am:
1.6627 ++info: info-am
1.6628 ++dvi-am:
1.6629 ++dvi: dvi-am
1.6630 ++check-am:
1.6631 ++check: check-am
1.6632 ++installcheck-am:
1.6633 ++installcheck: installcheck-am
1.6634 ++install-info-am:
1.6635 ++install-info: install-info-am
1.6636 ++install-exec-am:
1.6637 ++install-exec: install-exec-am
1.6638 ++
1.6639 ++install-data-am:
1.6640 ++install-data: install-data-am
1.6641 ++
1.6642 ++install-am: all-am
1.6643 ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1.6644 ++install: install-am
1.6645 ++uninstall-am:
1.6646 ++uninstall: uninstall-am
1.6647 ++all-am: Makefile $(LIBRARIES)
1.6648 ++all-redirect: all-am
1.6649 + install-strip:
1.6650 +- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
1.6651 ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
1.6652 + installdirs:
1.6653 +
1.6654 +
1.6655 +@@ -238,29 +252,38 @@
1.6656 + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
1.6657 +
1.6658 + maintainer-clean-generic:
1.6659 +-mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.6660 ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
1.6661 + mostlyclean-tags mostlyclean-generic
1.6662 +
1.6663 +-clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.6664 +- mostlyclean
1.6665 ++mostlyclean: mostlyclean-am
1.6666 ++
1.6667 ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \
1.6668 ++ mostlyclean-am
1.6669 +
1.6670 +-distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \
1.6671 +- distclean-generic clean
1.6672 +- -rm -f config.status
1.6673 ++clean: clean-am
1.6674 +
1.6675 +-maintainer-clean: maintainer-clean-noinstLIBRARIES \
1.6676 ++distclean-am: distclean-noinstLIBRARIES distclean-compile \
1.6677 ++ distclean-tags distclean-generic clean-am
1.6678 ++
1.6679 ++distclean: distclean-am
1.6680 ++
1.6681 ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
1.6682 + maintainer-clean-compile maintainer-clean-tags \
1.6683 +- maintainer-clean-generic distclean
1.6684 ++ maintainer-clean-generic distclean-am
1.6685 + @echo "This command is intended for maintainers to use;"
1.6686 + @echo "it deletes files that may require special tools to rebuild."
1.6687 +
1.6688 ++maintainer-clean: maintainer-clean-am
1.6689 ++
1.6690 + .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
1.6691 + clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
1.6692 + mostlyclean-compile distclean-compile clean-compile \
1.6693 + maintainer-clean-compile tags mostlyclean-tags distclean-tags \
1.6694 +-clean-tags maintainer-clean-tags distdir info dvi installcheck \
1.6695 +-install-info install-exec install-data install uninstall all \
1.6696 +-installdirs mostlyclean-generic distclean-generic clean-generic \
1.6697 ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
1.6698 ++check-am installcheck-am installcheck install-info-am install-info \
1.6699 ++install-exec-am install-exec install-data-am install-data install-am \
1.6700 ++install uninstall-am uninstall all-redirect all-am all installdirs \
1.6701 ++mostlyclean-generic distclean-generic clean-generic \
1.6702 + maintainer-clean-generic clean mostlyclean distclean maintainer-clean
1.6703 +
1.6704 +
.