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]

Re: * configure.in: Test for libintl.h.


On Wed, Apr 30, 2003 at 12:38:42AM -0400, Phil Edwards wrote:
> > > how about this instead:
> > > 
> > >     if test $USE_NLS = yes; then
> > >       AC_SEARCH_LIBS(gettext, intl)
> > >     fi
> 
> This still isn't enough; it's still possible that gettext won't be found.
> I forgot to add the bit that disables NLS entirely if the function remains
> missing.  Patch in progress.

Duh.

Maintains the situation on x86/linux.  Should catch all freebsd situations
now.


2003-04-30  Phil Edwards  <pme@gcc.gnu.org>

	* acinclude.m4:  Add bit missing from previous patch.
	* aclocal.m4, configure:  Regenerated.


Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/acinclude.m4,v
retrieving revision 1.235
diff -u -3 -p -r1.235 acinclude.m4
--- acinclude.m4	29 Apr 2003 22:47:03 -0000	1.235
+++ acinclude.m4	30 Apr 2003 18:02:55 -0000
@@ -1292,7 +1292,7 @@ AC_DEFUN(GLIBCPP_ENABLE_CLOCALE, [
 
   # A standalone libintl (e.g., GNU libintl) may be in use.
   if test $USE_NLS = yes; then
-    AC_SEARCH_LIBS(gettext, intl)
+    AC_SEARCH_LIBS(gettext, intl,, USE_NLS=no)
   fi
 
   AC_SUBST(USE_NLS)


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