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.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/newlib/configure.in b/newlib/configure.in
index 5374d67eb..c8dc21176 100644
--- a/newlib/configure.in
+++ b/newlib/configure.in
@@ -85,6 +85,17 @@ AC_ARG_ENABLE(newlib-iconv-external-ccs,
esac
fi], [newlib_iconv_external_ccs=${newlib_iconv_external_ccs}])dnl
+dnl Support --disable-newlib-atexit-dynamic-alloc
+AC_ARG_ENABLE(newlib-atexit-dynamic-alloc,
+[ --disable-newlib-atexit-alloc disable dynamic allocation of atexit entries],
+[if test "${newlib_atexit_dynamic_alloc+set}" != set; then
+ case "${enableval}" in
+ yes) newlib_atexit_dynamic_alloc=yes ;;
+ no) newlib_atexit_dynamic_alloc=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for newlib-atexit-dynamic-alloc option) ;;
+ esac
+ fi], [newlib_atexit_dynamic_alloc=yes])dnl
+
NEWLIB_CONFIGURE(.)
dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
@@ -232,6 +243,10 @@ if test "${newlib_iconv_external_ccs}" = "yes"; then
AC_DEFINE_UNQUOTED(_ICONV_ENABLE_EXTERNAL_CCS)
fi
+if test "${newlib_atexit_dynamic_alloc}" = "yes"; then
+AC_DEFINE_UNQUOTED(_ATEXIT_DYNAMIC_ALLOC)
+fi
+
AC_DEFINE_UNQUOTED(_NEWLIB_VERSION,"$VERSION")
if test "${multilib}" = "yes"; then