configure.ac

changeset 557
ae17042a6d39
parent 554
ab9f22ab57b5
child 561
fcfc3dbe85fa
equal deleted inserted replaced
556:c2ee7f9a069e 557:ae17042a6d39
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.8.5" 11 VERSION="0.8.6"
12 COPYRIGHT="Copyright (C) 2014-2018 Michiel Broek, All Rights Reserved" 12 COPYRIGHT="Copyright (C) 2014-2018 Michiel Broek, All Rights Reserved"
13 CYEARS="2014-2018" 13 CYEARS="2014-2018"
14 AC_SUBST(PACKAGE) 14 AC_SUBST(PACKAGE)
15 AC_SUBST(VERSION) 15 AC_SUBST(VERSION)
16 AC_SUBST(COPYRIGHT) 16 AC_SUBST(COPYRIGHT)
30 AC_CHECK_PROG(TAR, tar, tar) 30 AC_CHECK_PROG(TAR, tar, tar)
31 31
32 # 32 #
33 # Libraries for mbsePi-apps 33 # Libraries for mbsePi-apps
34 # 34 #
35 MOSQUITTO=No
36 AC_CHECK_LIB(mosquitto,mosquitto_lib_init,result=yes,result=no) 35 AC_CHECK_LIB(mosquitto,mosquitto_lib_init,result=yes,result=no)
37 if test "$result" = "yes"; then 36 if test "$result" = "yes"; then
38 AC_CHECK_HEADERS(mosquitto.h,MOSQUITTO=Yes,MOSQUITTO=No) 37 AC_CHECK_HEADERS(mosquitto.h)
39 LIBS="$LIBS -lmosquitto" 38 LIBS="$LIBS -lmosquitto"
39 else
40 AC_MSG_ERROR(mosquitto not found)
40 fi 41 fi
41 42
42 WIRINGPI=No 43 WIRINGPI=No
43 AC_CHECK_LIB(wiringPi,wiringPiSetup,result=yes,result=no) 44 AC_CHECK_LIB(wiringPi,wiringPiSetup,result=yes,result=no)
44 if test "$result" = "yes"; then 45 if test "$result" = "yes"; then
155 Configuration summary : 156 Configuration summary :
156 157
157 Version : ............ ${VERSION} 158 Version : ............ ${VERSION}
158 Main directory : ..... ${prefix} 159 Main directory : ..... ${prefix}
159 WiringPi : ........... ${WIRINGPI} 160 WiringPi : ........... ${WIRINGPI}
160 MQTT : ............... ${MOSQUITTO}
161 SDL library : ........ ${SDL} 161 SDL library : ........ ${SDL}
162 Simulator : .......... ${SIMULATOR} 162 Simulator : .......... ${SIMULATOR}
163 163
164 Now type 'make' and 'sudo make install' 164 Now type 'make' and 'sudo make install'
165 ]) 165 ])

mercurial