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