2031 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2031 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2032 |
2032 |
2033 |
2033 |
2034 ac_config_headers="$ac_config_headers config.h" |
2034 ac_config_headers="$ac_config_headers config.h" |
2035 |
2035 |
2036 SUBDIRS="thermferm brewpanel tools" |
2036 SUBDIRS="thermferm brewpanel tools www" |
2037 |
2037 |
2038 |
2038 |
2039 PACKAGE="mbsePi-apps" |
2039 PACKAGE="mbsePi-apps" |
2040 VERSION="0.9.18" |
2040 VERSION="0.9.18" |
2041 COPYRIGHT="Copyright (C) 2014-2024 Michiel Broek, All Rights Reserved" |
2041 COPYRIGHT="Copyright (C) 2014-2024 Michiel Broek, All Rights Reserved" |
3641 |
3641 |
3642 else |
3642 else |
3643 as_fn_error $? "json-c not found" "$LINENO" 5 |
3643 as_fn_error $? "json-c not found" "$LINENO" 5 |
3644 fi |
3644 fi |
3645 |
3645 |
|
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lws_create_context in -lwebsockets" >&5 |
|
3647 $as_echo_n "checking for lws_create_context in -lwebsockets... " >&6; } |
|
3648 if ${ac_cv_lib_websockets_lws_create_context+:} false; then : |
|
3649 $as_echo_n "(cached) " >&6 |
|
3650 else |
|
3651 ac_check_lib_save_LIBS=$LIBS |
|
3652 LIBS="-lwebsockets $LIBS" |
|
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3654 /* end confdefs.h. */ |
|
3655 |
|
3656 /* Override any GCC internal prototype to avoid an error. |
|
3657 Use char because int might match the return type of a GCC |
|
3658 builtin and then its argument prototype would still apply. */ |
|
3659 #ifdef __cplusplus |
|
3660 extern "C" |
|
3661 #endif |
|
3662 char lws_create_context (); |
|
3663 int |
|
3664 main () |
|
3665 { |
|
3666 return lws_create_context (); |
|
3667 ; |
|
3668 return 0; |
|
3669 } |
|
3670 _ACEOF |
|
3671 if ac_fn_c_try_link "$LINENO"; then : |
|
3672 ac_cv_lib_websockets_lws_create_context=yes |
|
3673 else |
|
3674 ac_cv_lib_websockets_lws_create_context=no |
|
3675 fi |
|
3676 rm -f core conftest.err conftest.$ac_objext \ |
|
3677 conftest$ac_exeext conftest.$ac_ext |
|
3678 LIBS=$ac_check_lib_save_LIBS |
|
3679 fi |
|
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_websockets_lws_create_context" >&5 |
|
3681 $as_echo "$ac_cv_lib_websockets_lws_create_context" >&6; } |
|
3682 if test "x$ac_cv_lib_websockets_lws_create_context" = xyes; then : |
|
3683 result=yes |
|
3684 else |
|
3685 result=no |
|
3686 fi |
|
3687 |
|
3688 if test "$result" = "yes"; then |
|
3689 LIBS="$LIBS -lwebsockets" |
|
3690 for ac_header in libwebsockets.h |
|
3691 do : |
|
3692 ac_fn_c_check_header_mongrel "$LINENO" "libwebsockets.h" "ac_cv_header_libwebsockets_h" "$ac_includes_default" |
|
3693 if test "x$ac_cv_header_libwebsockets_h" = xyes; then : |
|
3694 cat >>confdefs.h <<_ACEOF |
|
3695 #define HAVE_LIBWEBSOCKETS_H 1 |
|
3696 _ACEOF |
|
3697 |
|
3698 fi |
|
3699 |
|
3700 done |
|
3701 |
|
3702 else |
|
3703 as_fn_error $? "libwebsockets not found" "$LINENO" 5 |
|
3704 fi |
|
3705 |
|
3706 |
3646 # |
3707 # |
3647 # Additional commandline switches |
3708 # Additional commandline switches |
3648 # |
3709 # |
3649 # Check whether --enable-experiment was given. |
3710 # Check whether --enable-experiment was given. |
3650 if test "${enable_experiment+set}" = set; then : |
3711 if test "${enable_experiment+set}" = set; then : |
3991 |
4052 |
3992 |
4053 |
3993 |
4054 |
3994 |
4055 |
3995 |
4056 |
3996 ac_config_files="$ac_config_files Makefile.global" |
4057 ac_config_files="$ac_config_files Makefile.global www/version.php" |
3997 |
4058 |
3998 cat >confcache <<\_ACEOF |
4059 cat >confcache <<\_ACEOF |
3999 # This file is a shell script that caches the results of configure |
4060 # This file is a shell script that caches the results of configure |
4000 # tests run on this system so they can be shared between configure |
4061 # tests run on this system so they can be shared between configure |
4001 # scripts and configure runs, see configure's option --config-cache. |
4062 # scripts and configure runs, see configure's option --config-cache. |
4684 for ac_config_target in $ac_config_targets |
4745 for ac_config_target in $ac_config_targets |
4685 do |
4746 do |
4686 case $ac_config_target in |
4747 case $ac_config_target in |
4687 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
4748 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
4688 "Makefile.global") CONFIG_FILES="$CONFIG_FILES Makefile.global" ;; |
4749 "Makefile.global") CONFIG_FILES="$CONFIG_FILES Makefile.global" ;; |
|
4750 "www/version.php") CONFIG_FILES="$CONFIG_FILES www/version.php" ;; |
4689 |
4751 |
4690 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
4752 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
4691 esac |
4753 esac |
4692 done |
4754 done |
4693 |
4755 |