configure.ac

changeset 16
f4cbe008da72
parent 13
7f8432413321
child 17
b802305046dc
equal deleted inserted replaced
15:01fec4ddad17 16:f4cbe008da72
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.1" 11 VERSION="0.0.2"
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)
37 if test "$result" = "yes"; then 37 if test "$result" = "yes"; then
38 LIBS="$LIBS -lmosquitto" 38 LIBS="$LIBS -lmosquitto"
39 else 39 else
40 AC_MSG_ERROR(libmosquitto not found) 40 AC_MSG_ERROR(libmosquitto not found)
41 fi 41 fi
42
43 AC_CHECK_LIB(wiringPi,wiringPiSetup,result=yes,result=no)
44 if test "$result" = "yes"; then
45 LIBS="$LIBS -lwiringPi -lwiringPiDev"
46 else
47 AC_MSG_ERROR(libwiringPi not found)
48 fi
49
42 50
43 # 51 #
44 # Additional commandline switches 52 # Additional commandline switches
45 # 53 #
46 AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ]) 54 AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ])

mercurial