configure

changeset 671
4b54d6f79d25
parent 662
4bb005694ce7
child 697
367ae7ff52f0
equal deleted inserted replaced
670:638e7dd1d560 671:4b54d6f79d25
2041 2041
2042 SUBDIRS="bmsd doc script tools www" 2042 SUBDIRS="bmsd doc script tools www"
2043 2043
2044 2044
2045 PACKAGE="bms" 2045 PACKAGE="bms"
2046 VERSION="0.3.32" 2046 VERSION="0.3.33"
2047 COPYRIGHT="Copyright (C) 2016-2020 Michiel Broek, All Rights Reserved" 2047 COPYRIGHT="Copyright (C) 2016-2020 Michiel Broek, All Rights Reserved"
2048 CYEARS="2016-2020" 2048 CYEARS="2016-2020"
2049 2049
2050 2050
2051 2051
3787 done 3787 done
3788 3788
3789 else 3789 else
3790 as_fn_error $? "libuuid not found" "$LINENO" 5 3790 as_fn_error $? "libuuid not found" "$LINENO" 5
3791 fi 3791 fi
3792
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lws_client_connect in -lwebsockets" >&5
3794 $as_echo_n "checking for lws_client_connect in -lwebsockets... " >&6; }
3795 if ${ac_cv_lib_websockets_lws_client_connect+:} false; then :
3796 $as_echo_n "(cached) " >&6
3797 else
3798 ac_check_lib_save_LIBS=$LIBS
3799 LIBS="-lwebsockets $LIBS"
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3802
3803 /* Override any GCC internal prototype to avoid an error.
3804 Use char because int might match the return type of a GCC
3805 builtin and then its argument prototype would still apply. */
3806 #ifdef __cplusplus
3807 extern "C"
3808 #endif
3809 char lws_client_connect ();
3810 int
3811 main ()
3812 {
3813 return lws_client_connect ();
3814 ;
3815 return 0;
3816 }
3817 _ACEOF
3818 if ac_fn_c_try_link "$LINENO"; then :
3819 ac_cv_lib_websockets_lws_client_connect=yes
3820 else
3821 ac_cv_lib_websockets_lws_client_connect=no
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext \
3824 conftest$ac_exeext conftest.$ac_ext
3825 LIBS=$ac_check_lib_save_LIBS
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_websockets_lws_client_connect" >&5
3828 $as_echo "$ac_cv_lib_websockets_lws_client_connect" >&6; }
3829 if test "x$ac_cv_lib_websockets_lws_client_connect" = xyes; then :
3830 result=yes
3831 else
3832 result=no
3833 fi
3834
3835 if test "$result" = "yes"; then
3836 LIBS="$LIBS -lwebsockets"
3837 for ac_header in libwebsockets.h
3838 do :
3839 ac_fn_c_check_header_mongrel "$LINENO" "libwebsockets.h" "ac_cv_header_libwebsockets_h" "$ac_includes_default"
3840 if test "x$ac_cv_header_libwebsockets_h" = xyes; then :
3841 cat >>confdefs.h <<_ACEOF
3842 #define HAVE_LIBWEBSOCKETS_H 1
3843 _ACEOF
3844
3845 fi
3846
3847 done
3848
3849 else
3850 as_fn_error $? "libwebsockets not found" "$LINENO" 5
3851 fi
3852
3792 3853
3793 3854
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3795 $as_echo_n "checking for ANSI C header files... " >&6; } 3856 $as_echo_n "checking for ANSI C header files... " >&6; }
3796 if ${ac_cv_header_stdc+:} false; then : 3857 if ${ac_cv_header_stdc+:} false; then :

mercurial