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)
31 dnl =============================================================
32 dnl Checks for programs.
42 if test "$YACC" = "bison -y"; then
43 AC_MSG_WARN([We'll remove the -y option here])
46 AC_MSG_ERROR([Sorry, bison is needed])
49 dnl =============================================================
50 dnl Checks for libraries.
54 dnl == Make statically linked test program for dmalloc tests
55 if test "$with_dmalloc" = "yes"; then
56 EXTRA_PROGS=gomtest_static
60 dnl =============================================================
61 dnl Checks for typedefs, structures, and compiler characteristics.
66 dnl ==========================================================
67 dnl Checks for library functions.
68 AC_CHECK_FUNCS(vsnprintf vsprintf)
70 dnl ==========================================================
75 if test "$am_cv_func_iconv" != yes; then
77 *******************************************************************************
78 You need 'iconv' to use this library, consider installing GNU libiconv or
79 use --with-libiconv-prefix to point to an existing installation of that
81 *******************************************************************************
85 AC_MSG_CHECKING(for location of iconv)
86 if test "$am_cv_lib_iconv" = yes; then
87 AC_MSG_RESULT(libiconv)
92 if test "$is_glibc_iconv" = yes; then
94 is_ansel_supported=yes
99 if test "$is_ansel_supported" != yes; then
101 *******************************************************************************
102 Your libiconv library doesn't support ANSEL. Consider installing the modified
103 libiconv library if you need ANSEL support in the Gedcom parser library (see
105 *******************************************************************************
111 gedcom/calendar/Makefile
115 iconv/libiconv/Makefile