Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-08-10 01:12:09 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-08-10 01:12:09 +0400
commit037240a242b404e18308dd1a60937a5868bed702 (patch)
tree5c9ff2a9f35785c05923d464af5e37a05c677d32 /newlib/libc/configure.in
parentc9fadf3b49ec07bf3b25ba0e1a75842ddc702f4d (diff)
2002-08-09 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Add check for --enable-newlib-io-pos-args and define WANT_IO_POS_ARGS flag if enabled. Define the flag by default for x86-linux configurations. * configure.in: Add support for --enable-newlib-io-pos-args. * libc/configure.in: Ditto. * configure: Regenerated. * libc/configure: Ditto. * libc/stdio/Makefile.am: Specify -fshort-enums for compiling vfprintf.c and vfiprintf.c. * libc/stdio/Makefile.in: Regenerated. * libc/stdio/vfprintf.c: Add positional argument support that is enabled by compiling with -DWANT_IO_POS_ARGS.
Diffstat (limited to 'newlib/libc/configure.in')
-rw-r--r--newlib/libc/configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/newlib/libc/configure.in b/newlib/libc/configure.in
index 6a5eeed5e..93b86132c 100644
--- a/newlib/libc/configure.in
+++ b/newlib/libc/configure.in
@@ -7,6 +7,15 @@ AC_INIT(sys.tex)
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
AC_CONFIG_AUX_DIR(../..)
+dnl Support --enable-newlib-io-pos-args used by libc/stdio
+AC_ARG_ENABLE(newlib-io-pos-args,
+[ --enable-newlib-io-pos-args enable printf-family positional arg support],
+[case "${enableval}" in
+ yes) newlib_io_pos_args=yes ;;
+ no) newlib_io_pos_args=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for newlib-io-pos-args option) ;;
+ esac], [newlib_io_pos_args=no])dnl
+
NEWLIB_CONFIGURE(..)
dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and