+2002-01-19 Peter Verthez <Peter.Verthez@advalvas.be>
+
+ * gedcom.h: Renamed to gedcom.h.in: at configure, the VERSION
+ variables are substituted and the file gedcom.h is written
+
+ * utf8-locale.c: Added parameter to conversion from UTF-8 to locale,
+ to return number of conversion failures.
+
2002-01-16 Peter Verthez <Peter.Verthez@advalvas.be>
* gedcom/xref.c: Make sure that the 'string' member of an xref always
dnl =============================================================
dnl Global variables
NAME=gedcom-parse
+AC_SUBST(NAME)
+
VERSION=0.13
+VERSION_MAJOR=`echo $VERSION | sed 's/\..*$//'`
+changequote(<<,>>)
+VERSION_MINOR=`echo $VERSION | sed 's/^[^\.]*\.//'`
+changequote([,])
+AC_SUBST(VERSION_MAJOR)
+AC_SUBST(VERSION_MINOR)
+AC_SUBST(VERSION)
+
LIBVERSION=0:3
+AC_SUBST(LIBVERSION)
+
SHELL=/bin/sh
-AC_SUBST(NAME)
-AC_SUBST(VERSION)
AC_SUBST(SHELL)
-AC_SUBST(LIBVERSION)
dnl =============================================================
AM_INIT_AUTOMAKE(${NAME},${VERSION})
doc/Makefile
doc/images/Makefile
include/Makefile
+ include/gedcom.h
intl/Makefile
po/Makefile.in)
# $Name$
include_HEADERS = gedcom.h \
gedcom-tags.h
-BUILT_SOURCES = gedcom-tags.h
+BUILT_SOURCES = gedcom.h \
+ gedcom-tags.h
+EXTRA_DIST = gedcom.h.in
gedcom-tags.h: $(srcdir)/../gedcom/gedcom.tab.h
- grep "TAG_\|USERTAG" $(srcdir)/../gedcom/gedcom.tab.h > gedcom-tags.h
+ grep "TAG_\|USERTAG" $< > $@
#include <gedcom-tags.h>
#endif
+#define GEDCOM_PARSE_VERSION_MAJOR @VERSION_MAJOR@
+#define GEDCOM_PARSE_VERSION_MINOR @VERSION_MINOR@
+#define GEDCOM_PARSE_VERSION \
+ (GEDCOM_PARSE_VERSION_MAJOR * 1000 + GEDCOM_PARSE_VERSION_MINOR)
+
/**************************************************************************/
/*** First the records and elements to subscribe upon ***/
/**************************************************************************/