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 # |