]> git.donarmstrong.com Git - lilypond.git/blob - configure.in
ec0618de7a4886b6cf333303fd370c917fc2f1ea
[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.
5 AC_INIT
6
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)
12
13
14 STEPMAKE_INIT
15
16
17
18 # List a file that identifies your package.
19 AC_CONFIG_SRCDIR([lily/main.cc])
20
21 # Move to aclocal.m4?
22 AC_CONFIG_HEADER([$CONFIGFILE.h:config.hh.in])
23
24 # Uncomment the configuration options your package needs.
25
26 # must come before any header checks
27 STEPMAKE_COMPILE
28
29 STEPMAKE_PYTHON(REQUIRED,2.1)
30 STEPMAKE_GCC(REQUIRED, 2.8)
31 STEPMAKE_CXX(REQUIRED)
32 STEPMAKE_GXX(REQUIRED, 3.0.5)
33 STEPMAKE_CXXTEMPLATE
34 STEPMAKE_LIB(REQUIRED)
35 # Do not use bison 1.50 and 1.75.
36 STEPMAKE_BISON(REQUIRED, 1.25)
37 STEPMAKE_FLEX(REQUIRED)
38 STEPMAKE_FLEXLEXER(REQUIRED)
39 AC_LANG_C
40 STEPMAKE_LOCALE
41 STEPMAKE_GETTEXT
42 STEPMAKE_MSGFMT(REQUIRED)
43 STEPMAKE_TEXMF
44 STEPMAKE_TEXMF_DIRS
45 STEPMAKE_GUILE_DEVEL(REQUIRED, 1.6)
46 STEPMAKE_KPATHSEA
47 STEPMAKE_MAKEINFO(REQUIRED)
48 STEPMAKE_PYTHON_DEVEL(REQUIRED)
49
50
51 AC_CHECK_HEADERS([assert.h sys/stat.h])
52 AC_LANG_PUSH(C++)
53 AC_CHECK_HEADERS([sstream])
54 AC_LANG_POP(C++)
55 AC_HEADER_STAT
56 AC_FUNC_MEMCMP
57 AC_FUNC_VPRINTF
58 AC_CHECK_FUNCS([gettext isinf memmem snprintf vsnprintf gettext])
59
60
61 ## Optional tools for building documentation, website, extra fonts.
62
63 # guile executable for some scripts
64 STEPMAKE_GUILE(OPTIONAL)
65 # perl for help2man.
66 STEPMAKE_PERL(OPTIONAL)
67 # mftrace for generating pfa's, pfb's
68 STEPMAKE_PROGS(MFTRACE, mftrace, OPTIONAL, 1.0.27)
69
70 # new makeinfo for multi-page website docs
71 STEPMAKE_PROGS(MAKEINFO, makeinfo, OPTIONAL, 4.6)
72 AC_SUBST(MAKEINFO_VERSION)
73
74
75 if test "$optimise_b" = yes; then
76     DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
77     AC_DEFINE(STRINGS_UTILS_INLINED)
78 fi
79
80
81 AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
82 AC_DEFINE_UNQUOTED(FLOWER_VERSION, "${FULL_FLOWER_VERSION}")
83
84 # Gather requirements and generate output.
85 STEPMAKE_END
86
87
88 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
89
90 cat <<EOF
91
92 Type:
93     make$mc all       to build LilyPond
94     make$mc install   to install LilyPond
95     make$mc help      to see all possible targets
96
97 EOF