1 # Process this file with autoconf to produce a configure script.
4 AC_INIT(gedcom/interface.c)
6 dnl =============================================================
12 VERSION_MAJOR=`echo $VERSION | sed 's/\..*$//'`
14 VERSION_MINOR=`echo $VERSION | sed 's/^[^\.]*\.//'`
16 AC_SUBST(VERSION_MAJOR)
17 AC_SUBST(VERSION_MINOR)
26 dnl =============================================================
27 AM_INIT_AUTOMAKE(${NAME},${VERSION})
28 AM_CONFIG_HEADER(config.h)
33 dnl =============================================================
34 dnl Checks for programs.
44 if test "$YACC" = "bison -y"; then
45 AC_MSG_WARN([We'll remove the -y option here])
48 AC_MSG_ERROR([Sorry, bison is needed])
51 dnl =============================================================
52 dnl Checks for libraries.
53 AM_GNU_GETTEXT([use-libtool],[need-ngettext])
56 dnl == Make statically linked test program for dmalloc tests
57 if test "$with_dmalloc" = "yes"; then
58 EXTRA_PROGS=gomtest_static
62 dnl =============================================================
63 dnl Checks for typedefs, structures, and compiler characteristics.
68 dnl ==========================================================
69 dnl Checks for library functions.
70 AC_CHECK_HEADERS(stddef.h stdlib.h string.h)
71 AC_CHECK_FUNCS(setlocale vsnprintf vsprintf)
75 dnl ==========================================================
80 if test "$am_cv_func_iconv" != yes; then
82 *******************************************************************************
83 You need 'iconv' to use this library, consider installing GNU libiconv or
84 use --with-libiconv-prefix to point to an existing installation of that
86 *******************************************************************************
90 AC_MSG_CHECKING(for location of iconv)
91 if test "$am_cv_lib_iconv" = yes; then
92 AC_MSG_RESULT(libiconv)
93 gedcom_LIBICONV_HAS_ANSEL
96 LCS_SUBDIRS=libcharset
97 LCS_INCLUDES='-I $(srcdir)/libcharset'
98 LCS_LIBADD=libcharset/libcharset.la
100 AC_SUBST(LCS_INCLUDES)
103 if test "$is_glibc22_iconv" = yes; then
105 is_ansel_supported=yes
110 if test "$is_ansel_supported" != yes; then
112 *******************************************************************************
113 Your iconv implementation doesn't support ANSEL. Consider installing the
114 modified libiconv library if you need ANSEL support in the Gedcom parser
115 library (see README).
116 *******************************************************************************
120 AC_OUTPUT(GNUmakefile
123 gedcom/calendar/Makefile
127 iconv/libiconv/Makefile
129 utf8/libcharset/Makefile