Generate new.ged via configure.
[gedcom-parse.git] / configure.in
1 # Process this file with autoconf to produce a configure script.
2 # $Id$
3 # $Name$
4 AC_INIT(gedcom/interface.c)
5
6 dnl =============================================================
7 dnl Global variables
8 NAME=gedcom-parse
9 AC_SUBST(NAME)
10
11 VERSION=0.17
12 VERSION_MAJOR=`echo $VERSION | sed 's/\..*$//'`
13 changequote(<<,>>)
14 VERSION_MINOR=`echo $VERSION | sed 's/^[^\.]*\.//'`
15 changequote([,])
16 AC_SUBST(VERSION_MAJOR)
17 AC_SUBST(VERSION_MINOR)
18 AC_SUBST(VERSION)
19
20 LIBVERSION=0:7
21 AC_SUBST(LIBVERSION)
22
23 SHELL=/bin/sh
24 AC_SUBST(SHELL)
25
26 dnl =============================================================
27 AM_INIT_AUTOMAKE(${NAME},${VERSION})
28 AM_CONFIG_HEADER(config.h)
29 ALL_LINGUAS="nl"
30
31 AC_PROG_CC
32 AM_PROG_LIBTOOL
33 AM_PROG_LEX
34 AC_PROG_YACC
35 if test "$YACC" = "bison -y"; then
36   AC_MSG_WARN([We'll remove the -y option here])
37   YACC=bison
38 else
39   AC_MSG_ERROR([Sorry, bison is needed])
40 fi
41
42 AM_WITH_DMALLOC
43
44 dnl == Make statically linked test program for dmalloc tests
45 if test "$with_dmalloc" = "yes"; then
46   EXTRA_PROGS=gomtest_static
47 fi
48 AC_SUBST(EXTRA_PROGS)
49
50 AM_GNU_GETTEXT
51
52 AC_OUTPUT(Makefile
53           gedcom/Makefile
54           gedcom/calendar/Makefile
55           gom/Makefile
56           ansel/Makefile
57           utf8/Makefile
58           t/Makefile
59           t/src/Makefile
60           t/input/Makefile
61           data/Makefile
62           data/new.ged
63           doc/Makefile
64           doc/images/Makefile
65           include/Makefile
66           include/gedcom.h
67           intl/Makefile
68           po/Makefile.in)