[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Autogen-users] autogen 5.8.7 / Mac OS X.4.8 build problem

From: Bruce Korb
Subject: Re: [Autogen-users] autogen 5.8.7 / Mac OS X.4.8 build problem
Date: Thu, 23 Nov 2006 09:34:23 -0800
User-agent: Thunderbird (X11/20060911)

Hi Tomaz(,

Tomaz( Slivnik wrote:
> I just tried compiling autogen 5.8.7 on Mac OS X 10.4.8.
> During ``configure'' I receive the following output:
> ------------------------------------------------------------------------ 
> configure: WARNING: wchar.h: present but cannot be compiled
> configure: WARNING: wchar.h:     check for missing prerequisite headers?
> configure: WARNING: wchar.h: see the Autoconf documentation
> configure: WARNING: wchar.h:     section "Present But Cannot Be Compiled"
> configure: WARNING: wchar.h: proceeding with the preprocessor's result
> configure: WARNING: wchar.h: in the future, the compiler will take precedence
> configure: WARNING:     ## -------------------------------------------------- 
> ##
> configure: WARNING:     ## Report this to address@hidden ##
> configure: WARNING:     ## -------------------------------------------------- 
> ##

This is caused by the snprintfv.m4 file checking for wchar.h
without doing it "the right way."  I've now read through the
"Present But Cannot Be Compiled" section, but it leaves no clue
about what should be done.  I am going to take a wild guess that
I replace this line from snprintfv.m4:


with this:

  AC_CHECK_HEADER([wchar.h], [], [],
     [[#if HAVE_WCHAR_H
     # include <wchar.h>

That's what I got from reading that section, but:
* it seems really weird to me
* it seems to be contradicted elsewhere:

>    This scheme, which improves the robustness of the test, also requires
> that you make sure that headers that must be included before the
> HEADER-FILE be part of the INCLUDES, (*note Default Includes::).  If
> looking for `bar.h', which requires that `foo.h' be included before if
> it exists, we suggest the following scheme:
> AC_CHECK_HEADERS([bar.h], [], [],
> [#if HAVE_FOO_H
> # include <foo.h>
> # endif
> ])

Since reasonably modern system headers should be self-sufficient
(you should 'a been there in the seventies and eighties!!),
I really cannot imagine what prerequisite your "wchar.h" header

I leave the rest of this part of the discussion to autoconf experts,
and I'll cover the other two issues under separate cover.

Thanks again for your report.

Regards, Bruce

reply via email to

[Prev in Thread] Current Thread [Next in Thread]