3566 WIRINGPI=No |
3566 WIRINGPI=No |
3567 fi |
3567 fi |
3568 |
3568 |
3569 done |
3569 done |
3570 |
3570 |
|
3571 fi |
|
3572 |
|
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_object_iter_init_default in -ljson-c" >&5 |
|
3574 $as_echo_n "checking for json_object_iter_init_default in -ljson-c... " >&6; } |
|
3575 if ${ac_cv_lib_json_c_json_object_iter_init_default+:} false; then : |
|
3576 $as_echo_n "(cached) " >&6 |
|
3577 else |
|
3578 ac_check_lib_save_LIBS=$LIBS |
|
3579 LIBS="-ljson-c $LIBS" |
|
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3581 /* end confdefs.h. */ |
|
3582 |
|
3583 /* Override any GCC internal prototype to avoid an error. |
|
3584 Use char because int might match the return type of a GCC |
|
3585 builtin and then its argument prototype would still apply. */ |
|
3586 #ifdef __cplusplus |
|
3587 extern "C" |
|
3588 #endif |
|
3589 char json_object_iter_init_default (); |
|
3590 int |
|
3591 main () |
|
3592 { |
|
3593 return json_object_iter_init_default (); |
|
3594 ; |
|
3595 return 0; |
|
3596 } |
|
3597 _ACEOF |
|
3598 if ac_fn_c_try_link "$LINENO"; then : |
|
3599 ac_cv_lib_json_c_json_object_iter_init_default=yes |
|
3600 else |
|
3601 ac_cv_lib_json_c_json_object_iter_init_default=no |
|
3602 fi |
|
3603 rm -f core conftest.err conftest.$ac_objext \ |
|
3604 conftest$ac_exeext conftest.$ac_ext |
|
3605 LIBS=$ac_check_lib_save_LIBS |
|
3606 fi |
|
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_json_c_json_object_iter_init_default" >&5 |
|
3608 $as_echo "$ac_cv_lib_json_c_json_object_iter_init_default" >&6; } |
|
3609 if test "x$ac_cv_lib_json_c_json_object_iter_init_default" = xyes; then : |
|
3610 result=yes |
|
3611 else |
|
3612 result=no |
|
3613 fi |
|
3614 |
|
3615 if test "$result" = "yes"; then |
|
3616 LIBS="$LIBS -ljson-c" |
|
3617 for ac_header in json-c/json.h |
|
3618 do : |
|
3619 ac_fn_c_check_header_mongrel "$LINENO" "json-c/json.h" "ac_cv_header_json_c_json_h" "$ac_includes_default" |
|
3620 if test "x$ac_cv_header_json_c_json_h" = xyes; then : |
|
3621 cat >>confdefs.h <<_ACEOF |
|
3622 #define HAVE_JSON_C_JSON_H 1 |
|
3623 _ACEOF |
|
3624 |
|
3625 fi |
|
3626 |
|
3627 done |
|
3628 |
|
3629 else |
|
3630 as_fn_error $? "json-c not found" "$LINENO" 5 |
3571 fi |
3631 fi |
3572 |
3632 |
3573 # |
3633 # |
3574 # Additional commandline switches |
3634 # Additional commandline switches |
3575 # |
3635 # |