]> git.donarmstrong.com Git - lilypond.git/blob - configure.in
* GNUmakefile.in (short-examples):
[lilypond.git] / configure.in
1 dnl configure.in   -*-shell-script-*-
2 dnl Process this file with autoconf to produce a configure script. 
3
4 # Bootstrap the init proces.  List a file identifies your package.
5 AC_INIT
6 AC_CONFIG_SRCDIR([make/lilypond.lsm.in])
7 AC_CONFIG_HEADER($CONFIGFILE.h:config.hh.in)
8
9 # Bootstrap StepMake configure
10 STEPMAKE_INIT
11
12 # For all packages except the StepMake package itself
13 AC_CONFIG_SUBDIRS(stepmake)
14
15 # Uncomment the configuration options your package needs.
16
17 # must come before any header checks
18 STEPMAKE_COMPILE
19
20 STEPMAKE_GCC(REQUIRED, 2.8)
21 STEPMAKE_CXX(REQUIRED)
22 STEPMAKE_GXX(REQUIRED, 2.95)
23 STEPMAKE_CXXTEMPLATE
24 STEPMAKE_LIB(REQUIRED)
25 STEPMAKE_BISON(REQUIRED, 1.25)
26 STEPMAKE_FLEX(REQUIRED)
27 STEPMAKE_FLEXLEXER(REQUIRED)
28 STEPMAKE_LOCALE
29 STEPMAKE_GETTEXT
30 STEPMAKE_MSGFMT(REQUIRED)
31 STEPMAKE_TEXMF
32 STEPMAKE_TEXMF_DIRS
33 STEPMAKE_GUILE_DEVEL(REQUIRED, 1.3.4)
34 STEPMAKE_KPATHSEA
35 STEPMAKE_MAKEINFO(REQUIRED)
36 STEPMAKE_PYTHON_DEVEL(REQUIRED)
37
38
39 # AC_CHECK_HEADERS([limits.h malloc.h string.h unistd.h values.h])
40 AC_CHECK_HEADERS([assert.h sys/stat.h])
41 AC_HEADER_STAT
42
43 AC_FUNC_MEMCMP
44 AC_FUNC_VPRINTF
45 AC_CHECK_FUNCS(memmem snprintf vsnprintf gettext isinf)
46
47
48 ## Optional tools for building documentation, website, extra fonts.
49
50 # guile executable for some scripts
51 STEPMAKE_GUILE(OPTIONAL)
52 # perl for help2man.
53 STEPMAKE_PERL(OPTIONAL)
54 # pktrace for generating pfa's, pfb's
55 STEPMAKE_PROGS(PKTRACE, pktrace, OPTIONAL, 1.0.3)
56 # new makeinfo for multi-page website docs
57 STEPMAKE_PROGS(MAKEINFO, makeinfo, OPTIONAL, 4.1)
58
59
60 if test "$optimise_b" = yes; then
61     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
62     AC_DEFINE(STRINGS_UTILS_INLINED)
63 fi
64
65
66 AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
67 AC_DEFINE_UNQUOTED(FLOWER_VERSION, "${FULL_FLOWER_VERSION}")
68
69 # Gather requirements and generate output.
70 STEPMAKE_END
71
72
73 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
74
75 cat <<EOF
76
77 Type:
78     make$mc all       to build LilyPond
79     make$mc install   to install LilyPond
80     make$mc help      to see all possible targets
81
82 Do not worry if ./Documentation or ./mutopia should not build.
83 EOF