Sun, 10 Feb 2019 16:14:48 +0100
Fixed estimate_fg formula. Estimate neede sparge water displayed on the brewday tab. Moved calcSVG, calcFG and calcABV functions into calcFermentables. Calc FG now uses mash data if available. Show estimated fg on the fermentation tab. Cosmetic changes on the brewday tab.
0 | 1 | dnl Process this file with autoconf to produce a configure script. |
2 | ||
3 | AC_INIT(bmsd/bms.c) | |
4 | AM_CONFIG_HEADER(config.h) | |
257
62e294ab94f5
Version 0.0.6. Added a crontask that adjusts the stage of packaged beer depending on the days passed packaging
Michiel Broek <mbroek@mbse.eu>
parents:
248
diff
changeset
|
5 | SUBDIRS="bmsd doc script tools www" |
0 | 6 | AC_SUBST(SUBDIRS) |
7 | ||
8 | dnl General settings | |
9 | dnl After changeing the version number, run autoconf! | |
10 | PACKAGE="bms" | |
257
62e294ab94f5
Version 0.0.6. Added a crontask that adjusts the stage of packaged beer depending on the days passed packaging
Michiel Broek <mbroek@mbse.eu>
parents:
248
diff
changeset
|
11 | VERSION="0.0.6" |
191
fd1d7225ca6e
Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents:
5
diff
changeset
|
12 | COPYRIGHT="Copyright (C) 2016-2019 Michiel Broek, All Rights Reserved" |
fd1d7225ca6e
Version 0.0.4. Added confirm popup window to abort a running profile. Translated the toggle buttons.
Michiel Broek <mbroek@mbse.eu>
parents:
5
diff
changeset
|
13 | CYEARS="2016-2019" |
0 | 14 | AC_SUBST(PACKAGE) |
15 | AC_SUBST(VERSION) | |
16 | AC_SUBST(COPYRIGHT) | |
17 | AC_SUBST(CYEARS) | |
5
36387e45a194
Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents:
2
diff
changeset
|
18 | AC_PREFIX_DEFAULT(/var/lib/bms) |
0 | 19 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION") |
20 | AC_DEFINE_UNQUOTED(COPYRIGHT, "$COPYRIGHT") | |
21 | TARGET="$target" | |
22 | ||
23 | ||
24 | dnl Checks for programs. | |
25 | AC_PROG_CC | |
26 | AC_PROG_RANLIB | |
27 | dnl Try to find GNU install | |
28 | AC_CHECK_PROG(INSTALL, ginstall, ginstall) | |
29 | AC_CHECK_PROG(INSTALL, install, install) | |
30 | AC_CHECK_PROG(TAR, tar, tar) | |
31 | ||
32 | ||
33 | # | |
34 | # Additional commandline switches | |
35 | # | |
36 | ||
37 | AC_ARG_ENABLE(debugging, [ --enable-debugging Compile for debugging], [ debugging=$enableval ], [ debugging=no ]) | |
38 | if test "$debugging" = "yes"; then | |
39 | CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" | |
40 | else | |
41 | CFLAGS="-g -O2 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline" | |
42 | fi | |
43 | LIBS="$LIBS -lm" | |
44 | ||
45 | ||
46 | # | |
47 | # Libraries for bms | |
48 | # | |
49 | AC_CHECK_LIB(mosquitto,mosquitto_lib_init,result=yes,result=no) | |
50 | if test "$result" = "yes"; then | |
51 | LIBS="$LIBS -lmosquitto" | |
52 | AC_CHECK_HEADERS(mosquitto.h) | |
53 | else | |
54 | AC_MSG_ERROR(mosquitto not found) | |
55 | fi | |
56 | ||
57 | AC_CHECK_LIB(json-c,json_object_iter_init_default,result=yes,result=no) | |
58 | if test "$result" = "yes"; then | |
59 | LIBS="$LIBS -ljson-c" | |
60 | AC_CHECK_HEADERS(json-c/json.h) | |
61 | else | |
62 | AC_MSG_ERROR(json-c not found) | |
63 | fi | |
64 | ||
65 | AC_CHECK_LIB(mysqlclient,mysql_server_init,result=yes,result=no) | |
66 | if test "$result" = "yes"; then | |
67 | LIBS="$LIBS -lmysqlclient" | |
68 | AC_CHECK_HEADERS(mysql/mysql.h) | |
69 | else | |
70 | AC_MSG_ERROR(mysqlclient not found) | |
71 | fi | |
72 | ||
73 | AC_CHECK_LIB(xml2,xmlParseFile,result=yes,result=no) | |
74 | if test "$result" = "yes"; then | |
75 | LIBS="$LIBS -lxml2" | |
76 | CFLAGS="$CFLAGS $(xml2-config --cflags)" | |
77 | AC_CHECK_HEADERS(libxml/xmlmemory.h) | |
78 | else | |
79 | AC_MSG_ERROR(libxml2 not found) | |
80 | fi | |
81 | ||
82 | AC_CHECK_LIB(uuid,uuid_generate,result=yes,result=no) | |
83 | if test "$result" = "yes"; then | |
84 | LIBS="$LIBS $(pkg-config --libs uuid)" | |
85 | CFLAGS="$CFLAGS $(pkg-config --cflags uuid)" | |
86 | AC_CHECK_HEADERS(uuid/uuid.h) | |
87 | else | |
88 | AC_MSG_ERROR(libuuid not found) | |
89 | fi | |
90 | ||
91 | ||
92 | dnl Checks for header files. | |
93 | AC_HEADER_STDC | |
94 | ||
95 | AC_SUBST(SDL_CFLAGS) | |
96 | AC_SUBST(SDL_LIBS) | |
97 | ||
98 | ||
99 | AC_OUTPUT( | |
100 | Makefile.global | |
2 | 101 | www/version.php |
0 | 102 | ) |
103 | ||
104 | AC_MSG_RESULT([ | |
105 | -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=- | |
106 | ||
107 | Configuration summary : | |
108 | ||
109 | Version : ............ ${VERSION} | |
110 | Main directory : ..... ${prefix} | |
111 | ||
112 | ||
113 | Now type 'make' and 'sudo make install' | |
114 | ]) | |
115 |