This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] AM_ICONV to native-only



Thanks to Gaby, I was finally able to reproduce this issue by using powerpc-eabi as the target and removing --with-newlib flags.


I am unsure as to reasons behind the variance in configure behavior between powerpc-eabi, arm-elf, and m32c-elf, with and without --with-newlib flags. Some work without this change, some do not.

However, the enclosed patch fixes the configure fail in all cases, by moving AM_ICONV to native only.

tested x86/linux
tested x86/linux x powerpc-eabi (without --with-newlib)

-benjamin


2007-02-14  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.ac: Move AM_ICONV to native-only, add HAVE_ICONV for
	newlib.
	* configure: Regenerate.

Index: configure.ac
===================================================================
--- configure.ac	(revision 121946)
+++ configure.ac	(working copy)
@@ -86,7 +86,6 @@
 AM_PROG_LIBTOOL
 AC_SUBST(enable_shared)
 AC_SUBST(enable_static)
-AM_ICONV
 
 # Possibly disable most of the library.
 ## TODO: Consider skipping unncessary tests altogether in this case, rather
@@ -182,6 +181,9 @@
 
   AC_FUNC_MMAP
 
+  # For iconv support.
+  AM_ICONV
+
 else
 
   # This lets us hard-code the functionality we know we'll have in the cross
@@ -251,6 +253,8 @@
 
     AC_DEFINE(HAVE_S_ISREG)
     AC_DEFINE(HAVE_S_IFREG)
+
+    AC_DEFINE(HAVE_ICONV)
   else
     GLIBCXX_CROSSCONFIG
   fi

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]