configure.ac

changeset 51
a03b6dac5398
parent 41
f534ace74eea
child 57
a76dc0db592c
equal deleted inserted replaced
50:8b5e8f1e172d 51:a03b6dac5398
1 dnl Process this file with autoconf to produce a configure script. 1 dnl Process this file with autoconf to produce a configure script.
2 2
3 AC_INIT(thermometers/main.c) 3 AC_INIT(thermometers/thermometers.c)
4 AM_CONFIG_HEADER(config.h) 4 AM_CONFIG_HEADER(config.h)
5 SUBDIRS="lib dht11 rc433 thermferm thermometers" 5 SUBDIRS="dht11 rc433 thermferm thermometers"
6 AC_SUBST(SUBDIRS) 6 AC_SUBST(SUBDIRS)
7 7
8 dnl General settings 8 dnl General settings
9 dnl After changeing the version number, run autoconf! 9 dnl After changeing the version number, run autoconf!
10 PACKAGE="mbsePi-apps" 10 PACKAGE="mbsePi-apps"
11 VERSION="0.0.6" 11 VERSION="0.0.7"
12 COPYRIGHT="Copyright (C) 2014 Michiel Broek, All Rights Reserved" 12 COPYRIGHT="Copyright (C) 2014 Michiel Broek, All Rights Reserved"
13 CYEARS="2014" 13 CYEARS="2014"
14 AC_SUBST(PACKAGE) 14 AC_SUBST(PACKAGE)
15 AC_SUBST(VERSION) 15 AC_SUBST(VERSION)
16 AC_SUBST(COPYRIGHT) 16 AC_SUBST(COPYRIGHT)
32 # 32 #
33 # Libraries for mbsePi-apps 33 # Libraries for mbsePi-apps
34 # 34 #
35 AC_CHECK_LIB(mosquitto,mosquitto_lib_init,result=yes,result=no) 35 AC_CHECK_LIB(mosquitto,mosquitto_lib_init,result=yes,result=no)
36 if test "$result" = "yes"; then 36 if test "$result" = "yes"; then
37 LIBS="$LIBS -lmosquitto" 37 AC_CHECK_HEADERS(mosquitto.h,MOSQUITTO=Yes,MOSQUITTO=No)
38 else 38 else
39 AC_MSG_ERROR(libmosquitto not found) 39 AC_MSG_ERROR(libmosquitto not found)
40 fi 40 fi
41 41
42 42

mercurial