]> git.donarmstrong.com Git - lilypond.git/blob - make/configure.in
partial: 0.0.42.jcn
[lilypond.git] / make / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(flower/lib/choleski.cc)
3 AC_LANG_CPLUSPLUS
4
5 AC_ARG_ENABLE(printing,
6         [  --enable-printing    set debug printing],
7         [DEFINES="$DEFINES -DNPRINT"])
8 AC_ARG_ENABLE(checking,
9         [  --enable-checking    set debug checks],
10         [DEFINES="$DEFINES -DNDEBUG"])
11 AC_ARG_ENABLE(debug,
12         [  --enable-debug       set debug info],
13         [DEFINES="$DEFINES -g"], [DEFINES="$DEFINES -O2"])
14
15 dnl COMPILEINFO="$HOST $host $TARGET $target"
16 AUTOHEADER="This file was automatically generated by configure"
17 CXXFLAGS=${CXXFLAGS:-""}        # don't want -g -O junk
18 AC_PROG_CXX
19
20 AC_SUBST(DEFINES)
21 AC_SUBST(COMPILEINFO)
22 AC_SUBST(AUTOHEADER)
23 AC_SUBST(BISON)
24 AC_SUBST(FLEX)
25
26 AC_CHECK_PROGS(BISON, bison, error)
27 AC_CHECK_PROGS(FLEX, flex, error)
28 AC_CHECK_PROGS(MAKE, make, error)
29 AC_CHECK_PROGS(PODMAN, pod2man, error)
30
31 if test $MAKE = "error" 
32 then
33         echo Please install GNU make
34 else
35         $MAKE -v| grep -q GNU
36         if test "$?" = 1
37         then
38                 AC_MSG_ERROR(Please install *GNU* make)
39         fi
40 fi
41
42 if test $BISON = "error" 
43 then
44         AC_MSG_ERROR(can't find bison. Please install Bison (1.24 or better))
45 fi
46
47 if test $PODMAN = "error" 
48 then
49         AC_MSG_WARN(can't find pod. You should install Perl (version 5 or better))
50 fi
51
52 if test $FLEX = "error" 
53 then
54         AC_MSG_ERROR(can't find flex. Please install Flex (2.5 or better))
55 fi
56
57 if $CXX --version | grep -q '2\.7'
58 then
59         true
60 else
61         AC_MSG_ERROR(can't find g++ 2.7)
62 fi
63
64 AC_CHECK_HEADER(FlexLexer.h, true,
65         AC_MSG_ERROR(can't find flex header. Please install Flex headers correctly))
66
67
68
69
70 AC_OUTPUT(make/out/ACVariables.make:make/ACVariables.make.in)   
71
72
73 dnl AC_OUTPUT(config.hh)
74
75
76 cat << END
77
78 Finished configuring. Please do the following command before
79 attempting to build anything:
80
81         make -C make/ -f Initial.make   #make is GNU make, of course.
82
83
84 END
85