2939 if test "$result" = "yes"; then |
2939 if test "$result" = "yes"; then |
2940 LIBS="$LIBS -lmosquitto" |
2940 LIBS="$LIBS -lmosquitto" |
2941 else |
2941 else |
2942 as_fn_error $? "libmosquitto not found" "$LINENO" 5 |
2942 as_fn_error $? "libmosquitto not found" "$LINENO" 5 |
2943 fi |
2943 fi |
|
2944 |
|
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wiringPiSetup in -lwiringPi" >&5 |
|
2946 $as_echo_n "checking for wiringPiSetup in -lwiringPi... " >&6; } |
|
2947 if ${ac_cv_lib_wiringPi_wiringPiSetup+:} false; then : |
|
2948 $as_echo_n "(cached) " >&6 |
|
2949 else |
|
2950 ac_check_lib_save_LIBS=$LIBS |
|
2951 LIBS="-lwiringPi $LIBS" |
|
2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
2953 /* end confdefs.h. */ |
|
2954 |
|
2955 /* Override any GCC internal prototype to avoid an error. |
|
2956 Use char because int might match the return type of a GCC |
|
2957 builtin and then its argument prototype would still apply. */ |
|
2958 #ifdef __cplusplus |
|
2959 extern "C" |
|
2960 #endif |
|
2961 char wiringPiSetup (); |
|
2962 int |
|
2963 main () |
|
2964 { |
|
2965 return wiringPiSetup (); |
|
2966 ; |
|
2967 return 0; |
|
2968 } |
|
2969 _ACEOF |
|
2970 if ac_fn_c_try_link "$LINENO"; then : |
|
2971 ac_cv_lib_wiringPi_wiringPiSetup=yes |
|
2972 else |
|
2973 ac_cv_lib_wiringPi_wiringPiSetup=no |
|
2974 fi |
|
2975 rm -f core conftest.err conftest.$ac_objext \ |
|
2976 conftest$ac_exeext conftest.$ac_ext |
|
2977 LIBS=$ac_check_lib_save_LIBS |
|
2978 fi |
|
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wiringPi_wiringPiSetup" >&5 |
|
2980 $as_echo "$ac_cv_lib_wiringPi_wiringPiSetup" >&6; } |
|
2981 if test "x$ac_cv_lib_wiringPi_wiringPiSetup" = xyes; then : |
|
2982 result=yes |
|
2983 else |
|
2984 result=no |
|
2985 fi |
|
2986 |
|
2987 if test "$result" = "yes"; then |
|
2988 LIBS="$LIBS -lwiringPi -lwiringPiDev" |
|
2989 else |
|
2990 as_fn_error $? "libwiringPi not found" "$LINENO" 5 |
|
2991 fi |
|
2992 |
2944 |
2993 |
2945 # |
2994 # |
2946 # Additional commandline switches |
2995 # Additional commandline switches |
2947 # |
2996 # |
2948 # Check whether --enable-experiment was given. |
2997 # Check whether --enable-experiment was given. |