This is the mail archive of the libstdc++@sources.redhat.com 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]

[PATCH] test for libiconv in configure


	* acinclude.m4 (GLIBCPP_CHECK_WCHAR_T_SUPPORT): Add test
	for libiconv.a

Index: acinclude.m4
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/acinclude.m4,v
retrieving revision 1.86
diff -c -p -r1.86 acinclude.m4
*** acinclude.m4	2000/11/07 02:00:22	1.86
--- acinclude.m4	2000/11/08 19:33:21
*************** AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, 
*** 1083,1088 ****
--- 1083,1094 ----
        dnl X/Open Portability Guide, version 2 features (XPG2).
        AC_CHECK_HEADER(iconv.h, ac_has_iconv_h=yes, ac_has_iconv_h=no)
        AC_CHECK_HEADER(langinfo.h, ac_has_langinfo_h=yes, ac_has_langinfo_h=no)
+ 
+       dnl Check libiconv before checking funcs
+       AC_CHECK_LIB(iconv, iconv, libiconv="-liconv")
+       ac_save_LIBS="$LIBS"
+       LIBS="$LIBS $libiconv"
+ 
        AC_CHECK_FUNCS(iconv_open iconv_close iconv nl_langinfo, \
        ac_XPG2funcs=yes, ac_XPG2funcs=no)
    

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