From 037240a242b404e18308dd1a60937a5868bed702 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 9 Aug 2002 21:12:09 +0000 Subject: 2002-08-09 Jeff Johnston * 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. --- newlib/libc/configure.in | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'newlib/libc/configure.in') 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 -- cgit v1.2.3