On Thu, 2005-09-01 at 12:28 +0200, Yoann Vandoorselaere wrote: > Hi, > > An OpenBSD Prelude user reported that GnuLib will fail to compile on > OpenBSD 3.7 due to the new dependencies of modules like strcase on > wctype.h and wchar.h headers. > > These headers are apparently not available on OpenBSD base system. > libutf8 provide these header, but they get installed in an 'utf8' > sub-directory and thus won't be found unless the user modify the > inclusion path. > > Would it be possible to revert to non multibyte module when these > headers are not available ?
Hi, Attached is a patch that will fix the OpenBSD compilation issue described above by disabling the mbchar module on system that lack wctype.h or wchar.h. However, it is probably not the correct way to fix the issue regarding to other module dependencies to mbchar. Regards, -- Yoann Vandoorselaere | Responsable R&D / CTO | PreludeIDS Technologies Tel: +33 (0)8 70 70 21 58 Fax: +33(0)4 78 42 21 58 http://www.prelude-ids.com
Index: m4/mbchar.m4 =================================================================== RCS file: /cvsroot/gnulib/gnulib/m4/mbchar.m4,v retrieving revision 1.1 diff -u -p -r1.1 mbchar.m4 --- m4/mbchar.m4 16 Aug 2005 12:06:55 -0000 1.1 +++ m4/mbchar.m4 2 Sep 2005 21:24:58 -0000 @@ -9,6 +9,13 @@ dnl From Bruno Haible. AC_DEFUN([gl_MBCHAR], [ + AC_LIBSOURCES([mbchar.c, mbchar.h]) + AC_CHECK_HEADERS_ONCE(wchar.h wctype.h) + + if test x$ac_cv_header_wchar_h = xyes && test x$ac_cv_header_wctype_h = xyes; then + AC_LIBOBJ(mbchar) + fi + AC_REQUIRE([AC_GNU_SOURCE]) : ]) Index: modules/mbchar =================================================================== RCS file: /cvsroot/gnulib/gnulib/modules/mbchar,v retrieving revision 1.1 diff -u -p -r1.1 mbchar --- modules/mbchar 16 Aug 2005 12:06:55 -0000 1.1 +++ modules/mbchar 2 Sep 2005 21:24:58 -0000 @@ -13,7 +13,6 @@ configure.ac: gl_MBCHAR Makefile.am: -lib_SOURCES += mbchar.h mbchar.c Include: "mbchar.h"
_______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib