.ly version update.
[lilypond.git] / configure.in
blob4a48fb099bf4ee4d163c5fd5a72e7f3f77546cd3
1 dnl configure.in   -*-shell-script-*-
2 dnl Process this file with autoconf to produce a configure script. 
4 # Bootstrap the init proces.
5 AC_INIT
7 # Bootstrap StepMake configure
8 # For user package:
9 AC_CONFIG_AUX_DIR([stepmake/bin])
10 # For stepmake package:
11 # AC_CONFIG_AUX_DIR(bin)
15 . VERSION 
17 STEPMAKE_INIT
19 AC_SUBST(PACKAGE_NAME)
20 AC_SUBST(MAJOR_VERSION)
21 AC_SUBST(MINOR_VERSION)
22 AC_SUBST(PATCH_LEVEL)
23 AC_SUBST(MY_PATCH_LEVEL)
26 # List a file that identifies your package.
27 AC_CONFIG_SRCDIR([lily/main.cc])
29 # Move to aclocal.m4?
30 AC_CONFIG_HEADER([$CONFIGFILE.h:config.hh.in])
32 # Uncomment the configuration options your package needs.
34 # must come before any header checks
35 STEPMAKE_COMPILE
37 STEPMAKE_PYTHON(REQUIRED,2.1)
38 STEPMAKE_GCC(REQUIRED, 2.8)
39 STEPMAKE_CXX(REQUIRED)
40 STEPMAKE_GXX(REQUIRED, 3.0)
41 STEPMAKE_CXXTEMPLATE
42 STEPMAKE_LIB(REQUIRED)
43 # Do not use bison 1.50 and 1.75.
44 STEPMAKE_BISON(REQUIRED, 1.25)
45 STEPMAKE_FLEX(REQUIRED)
46 STEPMAKE_FLEXLEXER(REQUIRED)
47 STEPMAKE_LOCALE
48 STEPMAKE_GETTEXT
49 STEPMAKE_MSGFMT(REQUIRED)
50 STEPMAKE_TEXMF
51 STEPMAKE_TEXMF_DIRS
52 STEPMAKE_GUILE_DEVEL(REQUIRED, 1.6)
53 STEPMAKE_KPATHSEA
54 STEPMAKE_MAKEINFO(REQUIRED)
55 STEPMAKE_PYTHON_DEVEL(REQUIRED)
58 AC_CHECK_HEADERS([assert.h sys/stat.h sstream])
59 AC_HEADER_STAT
61 AC_FUNC_MEMCMP
62 AC_FUNC_VPRINTF
63 AC_CHECK_FUNCS([gettext isinf memmem snprintf vsnprintf gettext])
66 ## Optional tools for building documentation, website, extra fonts.
68 # guile executable for some scripts
69 STEPMAKE_GUILE(OPTIONAL)
70 # perl for help2man.
71 STEPMAKE_PERL(OPTIONAL)
72 # mftrace for generating pfa's, pfb's
73 STEPMAKE_PROGS(MFTRACE, pktrace mftrace, OPTIONAL, 1.0.17)
74 # new makeinfo for multi-page website docs
75 STEPMAKE_PROGS(MAKEINFO, makeinfo, OPTIONAL, 4.1)
78 if test "$optimise_b" = yes; then
79     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
80     AC_DEFINE(STRINGS_UTILS_INLINED)
84 AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
85 AC_DEFINE_UNQUOTED(FLOWER_VERSION, "${FULL_FLOWER_VERSION}")
87 # Gather requirements and generate output.
88 STEPMAKE_END
91 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
93 cat <<EOF
95 Type:
96     make$mc all       to build LilyPond
97     make$mc install   to install LilyPond
98     make$mc help      to see all possible targets
100 Do not worry if ./Documentation should not build.