build problem on FreeBSD

Alec Wolman wolman@cs.washington.edu
Mon, 02 Oct 2000 16:12:11 -0700


> "Alec Wolman" writes:
> > 
> > I'm attempting to build the latest version from CVS on a FreeBSD
> > system.  The compilation fails when building src/gnc-exp-parser.c
> > because there is no #include of <locale.h>.  Adding that to 
> > gnc-exp-parser.c fixes the problem, but is obviously not the
> > right thing to do, since messages.h ought to bring in <locale.h>.
> > It doesn't because config.h does not define HAVE_GETTEXT, which
> > is odd since gettext is installed on my system.
> > 
> > Here is what appears to be the relevant output from configure:
> > 
> > checking for LC_MESSAGES... (cached) yes
> > checking whether NLS is requested... yes
> > checking whether included gettext is requested... no
> > checking for libintl.h... (cached) no
> > checking whether catgets can be used... no
> > checking for msgfmt... (cached) /usr/local/bin/msgfmt
> > checking for gmsgfmt... (cached) /usr/local/bin/msgfmt
> > checking for xgettext... (cached) /usr/local/bin/xgettext
> > checking for catalogs to be installed...  de en_GB es fr it ja ru sv
> > 
> > Can anyone who understands this internationalization stuff help
> > me figure out why configure isn't defining HAVE_GETTEXT?
> 
> Configure may be picking up old values from the cache.
> Did you try removing config.cache and rerunning configure?

Yes, I tried that. The problem is that it doesn't find libintl.h
because its not looking in /usr/local. What I don't understand
is that since it has decided to use the included version of
gettext instead of the version installed in /usr/local, then
why doesn't HAVE_GETTEXT get defined in config.h?

Alec