configure.ac

Wed, 25 Jul 2018 12:24:17 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 25 Jul 2018 12:24:17 +0200
changeset 551
3721f9c08843
parent 550
04c942cded91
child 554
ab9f22ab57b5
permissions
-rw-r--r--

Versie 0.8.4. Init script toegevoegd inclusief make install.

0
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
1 dnl Process this file with autoconf to produce a configure script.
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
2
407
ee8f851b4d93 Removed thermometers program and directory. Version 0.4.3
Michiel Broek <mbroek@mbse.eu>
parents: 397
diff changeset
3 AC_INIT(thermferm/thermferm.c)
0
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
4 AM_CONFIG_HEADER(config.h)
551
3721f9c08843 Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents: 550
diff changeset
5 SUBDIRS="thermferm brewpanel tools"
0
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
6 AC_SUBST(SUBDIRS)
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
7
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
8 dnl General settings
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
9 dnl After changeing the version number, run autoconf!
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
10 PACKAGE="mbsePi-apps"
551
3721f9c08843 Versie 0.8.4. Init script toegevoegd inclusief make install.
Michiel Broek <mbroek@mbse.eu>
parents: 550
diff changeset
11 VERSION="0.8.4"
533
49580ca85ab7 Versie 0.6.3. MQTT device berichten alleen als een fermenter ingeschakeld is. MQTT fermenter birth en death berichhten als een fementer in of uitgeschakeld wordt. MQTT node death bericht bij normaal afsluiten van de daemon. Alle MQTT persistent berichten worden nu goed opgeruikmd.
Michiel Broek <mbroek@mbse.eu>
parents: 519
diff changeset
12 COPYRIGHT="Copyright (C) 2014-2018 Michiel Broek, All Rights Reserved"
49580ca85ab7 Versie 0.6.3. MQTT device berichten alleen als een fermenter ingeschakeld is. MQTT fermenter birth en death berichhten als een fementer in of uitgeschakeld wordt. MQTT node death bericht bij normaal afsluiten van de daemon. Alle MQTT persistent berichten worden nu goed opgeruikmd.
Michiel Broek <mbroek@mbse.eu>
parents: 519
diff changeset
13 CYEARS="2014-2018"
0
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
14 AC_SUBST(PACKAGE)
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
15 AC_SUBST(VERSION)
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
16 AC_SUBST(COPYRIGHT)
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
17 AC_SUBST(CYEARS)
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
18 AC_PREFIX_DEFAULT(/usr/local)
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
19 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
20 AC_DEFINE_UNQUOTED(COPYRIGHT, "$COPYRIGHT")
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
21 TARGET="$target"
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
22
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
23
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
24 dnl Checks for programs.
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
25 AC_PROG_CC
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
26 AC_PROG_RANLIB
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
27 dnl Try to find GNU install
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
28 AC_CHECK_PROG(INSTALL, ginstall, ginstall)
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
29 AC_CHECK_PROG(INSTALL, install, install)
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
30 AC_CHECK_PROG(TAR, tar, tar)
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
31
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
32 #
6
9db76e20e21e Can connect and disconnect
Michiel Broek <mbroek@mbse.eu>
parents: 0
diff changeset
33 # Libraries for mbsePi-apps
9db76e20e21e Can connect and disconnect
Michiel Broek <mbroek@mbse.eu>
parents: 0
diff changeset
34 #
497
18ace27338e5 Compiles mosquitto code if library is found on the system. Bumped to version 0.5.4
Michiel Broek <mbroek@mbse.eu>
parents: 496
diff changeset
35 MOSQUITTO=No
18ace27338e5 Compiles mosquitto code if library is found on the system. Bumped to version 0.5.4
Michiel Broek <mbroek@mbse.eu>
parents: 496
diff changeset
36 AC_CHECK_LIB(mosquitto,mosquitto_lib_init,result=yes,result=no)
18ace27338e5 Compiles mosquitto code if library is found on the system. Bumped to version 0.5.4
Michiel Broek <mbroek@mbse.eu>
parents: 496
diff changeset
37 if test "$result" = "yes"; then
18ace27338e5 Compiles mosquitto code if library is found on the system. Bumped to version 0.5.4
Michiel Broek <mbroek@mbse.eu>
parents: 496
diff changeset
38 AC_CHECK_HEADERS(mosquitto.h,MOSQUITTO=Yes,MOSQUITTO=No)
18ace27338e5 Compiles mosquitto code if library is found on the system. Bumped to version 0.5.4
Michiel Broek <mbroek@mbse.eu>
parents: 496
diff changeset
39 LIBS="$LIBS -lmosquitto"
18ace27338e5 Compiles mosquitto code if library is found on the system. Bumped to version 0.5.4
Michiel Broek <mbroek@mbse.eu>
parents: 496
diff changeset
40 fi
18ace27338e5 Compiles mosquitto code if library is found on the system. Bumped to version 0.5.4
Michiel Broek <mbroek@mbse.eu>
parents: 496
diff changeset
41
17
b802305046dc Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents: 16
diff changeset
42 WIRINGPI=No
16
f4cbe008da72 Version 0.0.2. Added LCD display using wiringPi library. The display is connected via a LCM1602 IIC board.
Michiel Broek <mbroek@mbse.eu>
parents: 13
diff changeset
43 AC_CHECK_LIB(wiringPi,wiringPiSetup,result=yes,result=no)
f4cbe008da72 Version 0.0.2. Added LCD display using wiringPi library. The display is connected via a LCM1602 IIC board.
Michiel Broek <mbroek@mbse.eu>
parents: 13
diff changeset
44 if test "$result" = "yes"; then
f4cbe008da72 Version 0.0.2. Added LCD display using wiringPi library. The display is connected via a LCM1602 IIC board.
Michiel Broek <mbroek@mbse.eu>
parents: 13
diff changeset
45 LIBS="$LIBS -lwiringPi -lwiringPiDev"
17
b802305046dc Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents: 16
diff changeset
46 AC_CHECK_HEADERS(wiringPi.h,WIRINGPI=Yes,WIRINGPI=No)
16
f4cbe008da72 Version 0.0.2. Added LCD display using wiringPi library. The display is connected via a LCM1602 IIC board.
Michiel Broek <mbroek@mbse.eu>
parents: 13
diff changeset
47 fi
f4cbe008da72 Version 0.0.2. Added LCD display using wiringPi library. The display is connected via a LCM1602 IIC board.
Michiel Broek <mbroek@mbse.eu>
parents: 13
diff changeset
48
550
04c942cded91 Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents: 549
diff changeset
49 AC_CHECK_LIB(json-c,json_object_iter_init_default,result=yes,result=no)
04c942cded91 Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents: 549
diff changeset
50 if test "$result" = "yes"; then
04c942cded91 Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents: 549
diff changeset
51 LIBS="$LIBS -ljson-c"
04c942cded91 Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents: 549
diff changeset
52 AC_CHECK_HEADERS(json-c/json.h)
04c942cded91 Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents: 549
diff changeset
53 else
04c942cded91 Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents: 549
diff changeset
54 AC_MSG_ERROR(json-c not found)
04c942cded91 Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents: 549
diff changeset
55 fi
04c942cded91 Versie 0.8.3. Enkele debug console berichten verwijderd. De MQTT NCMD reboot en rebirth commando's geimplementeerd.
Michiel Broek <mbroek@mbse.eu>
parents: 549
diff changeset
56
6
9db76e20e21e Can connect and disconnect
Michiel Broek <mbroek@mbse.eu>
parents: 0
diff changeset
57 #
0
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
58 # Additional commandline switches
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
59 #
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
60 AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ])
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
61 if test "$experiment" = "yes"; then
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
62 AC_DEFINE(USE_EXPERIMENT)
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
63 fi
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
64
283
affe4d2adc94 Bumped to version 0.2.2
Michiel Broek <mbroek@mbse.eu>
parents: 262
diff changeset
65 SIMULATOR=No
259
b7c967359771 Added framework for a simulation of a fridge with heater to use as controlled fermentor
Michiel Broek <mbroek@mbse.eu>
parents: 250
diff changeset
66 AC_ARG_ENABLE(simulator, [ --enable-simulator Compile simulator code], [ simulator=$enableval ], [ simulator=no ])
b7c967359771 Added framework for a simulation of a fridge with heater to use as controlled fermentor
Michiel Broek <mbroek@mbse.eu>
parents: 250
diff changeset
67 if test "$simulator" = "yes"; then
b7c967359771 Added framework for a simulation of a fridge with heater to use as controlled fermentor
Michiel Broek <mbroek@mbse.eu>
parents: 250
diff changeset
68 AC_DEFINE(USE_SIMULATOR)
283
affe4d2adc94 Bumped to version 0.2.2
Michiel Broek <mbroek@mbse.eu>
parents: 262
diff changeset
69 SIMULATOR=Yes
259
b7c967359771 Added framework for a simulation of a fridge with heater to use as controlled fermentor
Michiel Broek <mbroek@mbse.eu>
parents: 250
diff changeset
70 fi
b7c967359771 Added framework for a simulation of a fridge with heater to use as controlled fermentor
Michiel Broek <mbroek@mbse.eu>
parents: 250
diff changeset
71
0
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
72 AC_ARG_ENABLE(debugging, [ --enable-debugging Compile for debugging], [ debugging=$enableval ], [ debugging=no ])
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
73 if test "$debugging" = "yes"; then
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
74 CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline"
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
75 else
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
76 CFLAGS="-g -O2 -fomit-frame-pointer -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -Winline"
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
77 fi
262
d0014ccec615 Simulation of fridge cold loss to the room added for testing.
Michiel Broek <mbroek@mbse.eu>
parents: 259
diff changeset
78 LIBS="$LIBS -lm"
0
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
79
57
a76dc0db592c Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents: 51
diff changeset
80
a76dc0db592c Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents: 51
diff changeset
81 AC_CHECK_LIB(xml2,xmlParseFile,result=yes,result=no)
a76dc0db592c Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents: 51
diff changeset
82 if test "$result" = "yes"; then
a76dc0db592c Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents: 51
diff changeset
83 LIBS="$LIBS -lxml2"
a76dc0db592c Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents: 51
diff changeset
84 CFLAGS="$CFLAGS $(xml2-config --cflags)"
79
eb9dd60aa791 Added uuid library
Michiel Broek <mbroek@mbse.eu>
parents: 75
diff changeset
85 AC_CHECK_HEADERS(libxml/xmlmemory.h)
75
4b976601737d Writes a basic xml configuration next to the plain ascii config file
Michiel Broek <mbroek@mbse.eu>
parents: 57
diff changeset
86 else
4b976601737d Writes a basic xml configuration next to the plain ascii config file
Michiel Broek <mbroek@mbse.eu>
parents: 57
diff changeset
87 AC_MSG_ERROR(libxml2 not found)
57
a76dc0db592c Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents: 51
diff changeset
88 fi
a76dc0db592c Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents: 51
diff changeset
89
79
eb9dd60aa791 Added uuid library
Michiel Broek <mbroek@mbse.eu>
parents: 75
diff changeset
90 AC_CHECK_LIB(uuid,uuid_generate,result=yes,result=no)
eb9dd60aa791 Added uuid library
Michiel Broek <mbroek@mbse.eu>
parents: 75
diff changeset
91 if test "$result" = "yes"; then
eb9dd60aa791 Added uuid library
Michiel Broek <mbroek@mbse.eu>
parents: 75
diff changeset
92 LIBS="$LIBS $(pkg-config --libs uuid)"
eb9dd60aa791 Added uuid library
Michiel Broek <mbroek@mbse.eu>
parents: 75
diff changeset
93 CFLAGS="$CFLAGS $(pkg-config --cflags uuid)"
eb9dd60aa791 Added uuid library
Michiel Broek <mbroek@mbse.eu>
parents: 75
diff changeset
94 AC_CHECK_HEADERS(uuid/uuid.h)
eb9dd60aa791 Added uuid library
Michiel Broek <mbroek@mbse.eu>
parents: 75
diff changeset
95 else
eb9dd60aa791 Added uuid library
Michiel Broek <mbroek@mbse.eu>
parents: 75
diff changeset
96 AC_MSG_ERROR(libuuid not found)
eb9dd60aa791 Added uuid library
Michiel Broek <mbroek@mbse.eu>
parents: 75
diff changeset
97 fi
57
a76dc0db592c Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents: 51
diff changeset
98
409
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
99 # Check for SDL
410
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
100 SDL_CFLAGS=""
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
101 SDL_LIBS=""
411
ae85e91dcc58 Added configure message about SDL presence.
Michiel Broek <mbroek@mbse.eu>
parents: 410
diff changeset
102 SDL="No"
409
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
103 AC_MSG_CHECKING(SDL library)
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
104 pkg-config --exists sdl
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
105 if test "$?" = "0"; then
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
106 AC_MSG_RESULT(yes)
410
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
107 AC_MSG_CHECKING(sdl library v1.2.0 or newer)
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
108 pkg-config --atleast-version=1.2.0 sdl
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
109 if test "$?" = "0"; then
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
110 AC_MSG_RESULT(found)
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
111 else
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
112 AC_MSG_ERROR(not found)
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
113 fi
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
114 SDL_CFLAGS="$(pkg-config --cflags sdl)"
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
115 SDL_LIBS="$(pkg-config --libs sdl)"
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
116 AC_CHECK_HEADERS(SDL/SDL.h)
411
ae85e91dcc58 Added configure message about SDL presence.
Michiel Broek <mbroek@mbse.eu>
parents: 410
diff changeset
117 SDL="Yes"
409
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
118 else
410
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
119 AC_MSG_RESULT(no)
409
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
120 fi
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
121
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
122 # Check for SDL_ttf
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
123 AC_MSG_CHECKING(SDL_ttf library)
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
124 pkg-config --exists SDL_ttf
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
125 if test "$?" = "0"; then
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
126 AC_MSG_RESULT(yes)
410
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
127 AC_MSG_CHECKING(sdl library v2.0.0 or newer)
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
128 pkg-config --atleast-version=2.0.0 SDL_ttf
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
129 if test "$?" = "0"; then
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
130 AC_MSG_RESULT(found)
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
131 else
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
132 AC_MSG_ERROR(not found)
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
133 fi
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
134 # Override flags
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
135 SDL_CFLAGS="$(pkg-config --cflags SDL_ttf)"
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
136 SDL_LIBS="$(pkg-config --libs SDL_ttf)"
409
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
137 else
410
e3f8a51b566a Fixed compiling on systems without SDL libraries, and they don't need tha brewpanel program.
Michiel Broek <mbroek@mbse.eu>
parents: 409
diff changeset
138 AC_MSG_RESULT(no)
409
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
139 fi
57
a76dc0db592c Bumped version, added libxml2 tests to configure
Michiel Broek <mbroek@mbse.eu>
parents: 51
diff changeset
140
0
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
141 dnl Checks for header files.
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
142 AC_HEADER_STDC
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
143
409
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
144 AC_SUBST(SDL_CFLAGS)
cdf68044adaf Added a new brewpanel program that runs on an SDL/X screen. It will be an emulator for the hardware panels. Development version 0.5.0
Michiel Broek <mbroek@mbse.eu>
parents: 407
diff changeset
145 AC_SUBST(SDL_LIBS)
0
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
146
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
147
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
148 AC_OUTPUT(
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
149 Makefile.global
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
150 )
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
151
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
152 AC_MSG_RESULT([
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
153 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
154
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
155 Configuration summary :
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
156
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
157 Version : ............ ${VERSION}
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
158 Main directory : ..... ${prefix}
17
b802305046dc Tests for wiringPi are now not fatal
Michiel Broek <mbroek@mbse.eu>
parents: 16
diff changeset
159 WiringPi : ........... ${WIRINGPI}
497
18ace27338e5 Compiles mosquitto code if library is found on the system. Bumped to version 0.5.4
Michiel Broek <mbroek@mbse.eu>
parents: 496
diff changeset
160 MQTT : ............... ${MOSQUITTO}
411
ae85e91dcc58 Added configure message about SDL presence.
Michiel Broek <mbroek@mbse.eu>
parents: 410
diff changeset
161 SDL library : ........ ${SDL}
283
affe4d2adc94 Bumped to version 0.2.2
Michiel Broek <mbroek@mbse.eu>
parents: 262
diff changeset
162 Simulator : .......... ${SIMULATOR}
0
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
163
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
164 Now type 'make' and 'sudo make install'
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
165 ])
ac8e19023b12 Initial set of files
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
166

mercurial