configure.ac

changeset 550
04c942cded91
parent 549
ee1bcad035f0
child 551
3721f9c08843
equal deleted inserted replaced
549:ee1bcad035f0 550:04c942cded91
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.2" 11 VERSION="0.8.3"
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)
42 WIRINGPI=No 42 WIRINGPI=No
43 AC_CHECK_LIB(wiringPi,wiringPiSetup,result=yes,result=no) 43 AC_CHECK_LIB(wiringPi,wiringPiSetup,result=yes,result=no)
44 if test "$result" = "yes"; then 44 if test "$result" = "yes"; then
45 LIBS="$LIBS -lwiringPi -lwiringPiDev" 45 LIBS="$LIBS -lwiringPi -lwiringPiDev"
46 AC_CHECK_HEADERS(wiringPi.h,WIRINGPI=Yes,WIRINGPI=No) 46 AC_CHECK_HEADERS(wiringPi.h,WIRINGPI=Yes,WIRINGPI=No)
47 fi
48
49 AC_CHECK_LIB(json-c,json_object_iter_init_default,result=yes,result=no)
50 if test "$result" = "yes"; then
51 LIBS="$LIBS -ljson-c"
52 AC_CHECK_HEADERS(json-c/json.h)
53 else
54 AC_MSG_ERROR(json-c not found)
47 fi 55 fi
48 56
49 # 57 #
50 # Additional commandline switches 58 # Additional commandline switches
51 # 59 #

mercurial