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:
authorMike Frysinger <vapier@gentoo.org>2022-01-18 06:00:26 +0300
committerMike Frysinger <vapier@gentoo.org>2022-01-20 03:59:16 +0300
commitb86dc2dab4981ba92d683b866badc0b32be39120 (patch)
tree73fb7b2142531a24018626c464a584d183a48dd1 /newlib/configure.ac
parent15c091ad7326129a3a4ddf04c67fffbc62d002ae (diff)
newlib: iconv: autogenerate iconv define list
The list of iconv to/from defines is hand maintained in newlib.hin. Lets leverage mkdeps.pl to generate this list automatically from the list of known encodings. The newlib.hin list is up-to-date, so the list in iconv.m4 matches the list already generated.
Diffstat (limited to 'newlib/configure.ac')
-rw-r--r--newlib/configure.ac9
1 files changed, 5 insertions, 4 deletions
diff --git a/newlib/configure.ac b/newlib/configure.ac
index e1fb2ad0e..d95000db9 100644
--- a/newlib/configure.ac
+++ b/newlib/configure.ac
@@ -586,9 +586,9 @@ if test "x${iconv_encodings}" != "x" \
dnl Enable appropriate option in newlib.h
for encoding in ${iconv_encodings}; do
opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- AC_DEFINE_UNQUOTED($opt,1)
+ eval "$opt=1"
opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- AC_DEFINE_UNQUOTED($opt,1)
+ eval "$opt=1"
done
dnl iconv_to_encodings
@@ -605,7 +605,7 @@ if test "x${iconv_encodings}" != "x" \
dnl Enable appropriate option in newlib.h
for encoding in ${iconv_to_encodings}; do
opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- AC_DEFINE_UNQUOTED($opt,1)
+ eval "$opt=1"
done
dnl iconv_from_encodings
@@ -622,9 +622,10 @@ if test "x${iconv_encodings}" != "x" \
dnl Enable appropriate option in newlib.h
for encoding in ${iconv_from_encodings}; do
opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- AC_DEFINE_UNQUOTED($opt,1)
+ eval "$opt=1"
done
fi;
+NEWLIB_ICONV_DEFINES
AC_CACHE_CHECK(for .preinit_array/.init_array/.fini_array support,
libc_cv_initfinit_array, [dnl