--- libaitsched/configure 2024/08/19 15:44:17 1.59.2.2 +++ libaitsched/configure 2026/05/20 03:38:04 1.61.2.3 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.72 for libaitsched 8.4. +# Generated by GNU Autoconf 2.72 for libaitsched 8.6. # # Report bugs to . # @@ -603,8 +603,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libaitsched' PACKAGE_TARNAME='libaitsched' -PACKAGE_VERSION='8.4' -PACKAGE_STRING='libaitsched 8.4' +PACKAGE_VERSION='8.6' +PACKAGE_STRING='libaitsched 8.6' PACKAGE_BUGREPORT='misho@elwix.org' PACKAGE_URL='' @@ -716,6 +716,7 @@ enable_epoll enable_kqueue with_kq_events with_elwix +enable_atomic ' ac_precious_vars='build_alias host_alias @@ -1273,7 +1274,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -'configure' configures libaitsched 8.4 to adapt to many kinds of systems. +'configure' configures libaitsched 8.6 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1340,7 +1341,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libaitsched 8.4:";; + short | recursive ) echo "Configuration of libaitsched 8.6:";; esac cat <<\_ACEOF @@ -1352,6 +1353,7 @@ Optional Features: --enable-aio Build scheduler library with AIO operations --enable-epoll Enable epoll support (only under Linux) --disable-kqueue Disable kqueue support + --enable-atomic Enable atomic lock support Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -1435,7 +1437,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libaitsched configure 8.4 +libaitsched configure 8.6 generated by GNU Autoconf 2.72 Copyright (C) 2023 Free Software Foundation, Inc. @@ -1762,7 +1764,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libaitsched $as_me 8.4, which was +It was created by libaitsched $as_me 8.6, which was generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -4000,12 +4002,14 @@ fi if test "${ac_cv_env_CFLAGS_set}" != "set"; then - CFLAGS="-Wall -O2" + CFLAGS="-Wall -O2 -I${includedir}" else CFLAGS="${ac_cv_env_CFLAGS_value}" fi if test "${ac_cv_env_LDFLAGS_set}" = "set"; then LDFLAGS="${ac_cv_env_LDFLAGS_value}" +else + LDFLAGS="-L${libdir}" fi @@ -4113,6 +4117,57 @@ then : fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strlcpy in -lelwix" >&5 +printf %s "checking for strlcpy in -lelwix... " >&6; } +if test ${ac_cv_lib_elwix_strlcpy+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS +LIBS="-lelwix $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char strlcpy (void); +int +main (void) +{ +return strlcpy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_elwix_strlcpy=yes +else case e in #( + e) ac_cv_lib_elwix_strlcpy=no ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elwix_strlcpy" >&5 +printf "%s\n" "$ac_cv_lib_elwix_strlcpy" >&6; } +if test "x$ac_cv_lib_elwix_strlcpy" = xyes +then : + printf "%s\n" "#define HAVE_LIBELWIX 1" >>confdefs.h + + LIBS="-lelwix $LIBS" + +fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strlcpy in -lbsd" >&5 printf %s "checking for strlcpy in -lbsd... " >&6; } if test ${ac_cv_lib_bsd_strlcpy+y} @@ -4226,14 +4281,7 @@ then : fi -ac_fn_c_check_header_compile "$LINENO" "bsd/string.h" "ac_cv_header_bsd_string_h" "$ac_includes_default" -if test "x$ac_cv_header_bsd_string_h" = xyes -then : - printf "%s\n" "#define HAVE_BSD_STRING_H 1" >>confdefs.h -fi - - # Checks for typedefs, structures, and compiler characteristics. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 printf %s "checking for inline... " >&6; } @@ -4565,6 +4613,27 @@ fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ELWIX" >&5 printf "%s\n" "$ELWIX" >&6; } +ATOMIC=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Enable atomic lock support" >&5 +printf %s "checking Enable atomic lock support... " >&6; } +# Check whether --enable-atomic was given. +if test ${enable_atomic+y} +then : + enableval=$enable_atomic; ATOMIC=$enableval + case "$enableval" in + yes) + +printf "%s\n" "#define ATOMIC_SUPPORT /**/" >>confdefs.h + + ;; + *) + ;; + esac +fi + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ATOMIC" >&5 +printf "%s\n" "$ATOMIC" >&6; } + DEBIAN_ARCH=$target_cpu if test "x$target_cpu" = "xarm6l" -o "x$target_cpu" = "xarm7l" then : @@ -5088,7 +5157,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libaitsched $as_me 8.4, which was +This file was extended by libaitsched $as_me 8.6, which was generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -5152,7 +5221,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -libaitsched config.status 8.4 +libaitsched config.status 8.6 configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\"