[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-dev: missing #define HAVE_LOCALE_H, and gschem



Peter Clifton wrote:
Hi,

Has anyone else had gschem fail to compile (perhaps with recent
autotools / gettext) with bugs relating to gettext?

I've found config.h missing a #define for HAVE_LOCALE_H.

Does the attached patch seem sensible, or is the bug elsewhere?

One problem is that configure.ac for gschem gets created based on what version of gettext the developer has. So for my system, I was building with no problems, but as soon as I tried to build from the release tarballs I ran into the same missing LOCALE_H problem.


It still seems to me that there must be a way of dealing with the problems here. Perhaps the way to go is

1) get rid of the autogenerated configure.ac (sorry Ales, but it really seems like a hack to me) and go back to a static one.

2) explicitly check locale.h

3) explicitly add a test for mkinstalldirs (or whatever it was which was missing out of some other versions of gettext).

while here, something is set up wrong in gattrib with respect to i18n. I get tons of compiler spew about redefines of things. In my 5 minutes spent looking into it I didn't find the difference between gattrib and gschem that would explain it.

-Dan


Regards,



------------------------------------------------------------------------

diff --git a/gschem/configure.ac.in b/gschem/configure.ac.in
index c494db9..b5ca927 100644
--- a/gschem/configure.ac.in
+++ b/gschem/configure.ac.in
@@ -390,7 +390,8 @@ AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_HEADER_DIRENT
AC_CHECK_HEADERS(unistd.h string.h stdlib.h \
- stdarg.h assert.h fcntl.h errno.h sys/param.h)
+ stdarg.h assert.h fcntl.h errno.h sys/param.h \
+ locale.h)
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST



------------------------------------------------------------------------



_______________________________________________
geda-dev mailing list
geda-dev@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev



_______________________________________________ geda-dev mailing list geda-dev@xxxxxxxxxxxxxx http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev