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:
Diffstat (limited to 'newlib/configure.in')
-rw-r--r--newlib/configure.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/newlib/configure.in b/newlib/configure.in
index 8fe01f310..b6e5dee3c 100644
--- a/newlib/configure.in
+++ b/newlib/configure.in
@@ -29,6 +29,15 @@ AC_ARG_ENABLE(newlib-io-c99-formats,
*) AC_MSG_ERROR(bad value ${enableval} for newlib-io-c99-formats option) ;;
esac], [newlib_io_c99_formats=])dnl
+dnl Support --enable-newlib-register-fini
+AC_ARG_ENABLE(newlib-register-fini,
+[ --enable-newlib-register-fini enable finalization function registration using atexit],
+[case "${enableval}" in
+ yes) newlib_register_fini=yes;;
+ no) newlib_register_fini=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for newlib-register-fini option) ;;
+ esac], [newlib_register_fini=])dnl
+
dnl Support --enable-newlib-io-long-long
AC_ARG_ENABLE(newlib-io-long-long,
[ --enable-newlib-io-long-long enable long long type support in IO functions like printf/scanf],
@@ -244,6 +253,10 @@ if test "${newlib_io_c99_formats}" = "yes"; then
AC_DEFINE_UNQUOTED(_WANT_IO_C99_FORMATS)
fi
+if test "${newlib_register_fini}" = "yes"; then
+AC_DEFINE_UNQUOTED(_WANT_REGISTER_FINI)
+fi
+
if test "${newlib_io_long_long}" = "yes"; then
AC_DEFINE_UNQUOTED(_WANT_IO_LONG_LONG)
fi