--- libaitsched/configure 2023/02/25 15:56:24 1.50.2.1 +++ libaitsched/configure 2026/05/20 03:07:51 1.61.2.2 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for libaitsched 7.5. +# Generated by GNU Autoconf 2.71 for libaitsched 8.6. # # Report bugs to . # @@ -610,8 +610,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libaitsched' PACKAGE_TARNAME='libaitsched' -PACKAGE_VERSION='7.5' -PACKAGE_STRING='libaitsched 7.5' +PACKAGE_VERSION='8.6' +PACKAGE_STRING='libaitsched 8.6' PACKAGE_BUGREPORT='misho@elwix.org' PACKAGE_URL='' @@ -649,6 +649,7 @@ ac_includes_default="\ ac_header_c_list= ac_subst_vars='LTLIBOBJS +DEBIAN_ARCH LIBOBJS MKDEP target_os @@ -722,6 +723,7 @@ enable_epoll enable_kqueue with_kq_events with_elwix +enable_atomic ' ac_precious_vars='build_alias host_alias @@ -1279,7 +1281,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 7.5 to adapt to many kinds of systems. +\`configure' configures libaitsched 8.6 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1346,7 +1348,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libaitsched 7.5:";; + short | recursive ) echo "Configuration of libaitsched 8.6:";; esac cat <<\_ACEOF @@ -1358,6 +1360,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] @@ -1441,7 +1444,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libaitsched configure 7.5 +libaitsched configure 8.6 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -1759,7 +1762,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 7.5, which was +It was created by libaitsched $as_me 8.6, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -3940,8 +3943,16 @@ fi -CFLAGS="-Wall -O2 -fPIC ${CFLAGS}" -LDFLAGS="${LDFLAGS}" +if test "${ac_cv_env_CFLAGS_set}" != "set"; then + 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 # Checks for libraries. @@ -4032,6 +4043,49 @@ 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 $as_nop + 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. */ +char strlcpy (); +int +main (void) +{ +return strlcpy (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_elwix_strlcpy=yes +else $as_nop + ac_cv_lib_elwix_strlcpy=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +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} @@ -4137,14 +4191,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; } @@ -4457,7 +4504,6 @@ then : printf "%s\n" "#define __ELWIX /**/" >>confdefs.h - CFLAGS="-g ${CFLAGS}" LIBS="${LIBS} -lelwix" ;; *) @@ -4468,8 +4514,48 @@ fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ELWIX" >&5 printf "%s\n" "$ELWIX" >&6; } -ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile src/Makefile" +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 : + DEBIAN_ARCH="armhf" +fi +if test "x$target_cpu" = "xaarch64" +then : + DEBIAN_ARCH="arm64" +fi +if test "x$target_cpu" = "xi686" +then : + DEBIAN_ARCH="i386" +fi +if test "x$target_cpu" = "xx86_64" +then : + DEBIAN_ARCH="amd64" +fi + + +ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile debian/Makefile debian/control src/Makefile" + cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure @@ -4969,7 +5055,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 7.5, which was +This file was extended by libaitsched $as_me 8.6, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -5033,7 +5119,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 7.5 +libaitsched config.status 8.6 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" @@ -5159,6 +5245,8 @@ do "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;; "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; + "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;; + "debian/control") CONFIG_FILES="$CONFIG_FILES debian/control" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;