--- libaitsched/configure 2024/08/19 13:22:12 1.59 +++ libaitsched/configure 2025/07/16 11:05:10 1.59.2.4 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.72 for libaitsched 8.2. +# Generated by GNU Autoconf 2.72 for libaitsched 8.4. # # Report bugs to . # @@ -603,8 +603,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libaitsched' PACKAGE_TARNAME='libaitsched' -PACKAGE_VERSION='8.2' -PACKAGE_STRING='libaitsched 8.2' +PACKAGE_VERSION='8.4' +PACKAGE_STRING='libaitsched 8.4' PACKAGE_BUGREPORT='misho@elwix.org' PACKAGE_URL='' @@ -1273,7 +1273,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.2 to adapt to many kinds of systems. +'configure' configures libaitsched 8.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1340,7 +1340,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libaitsched 8.2:";; + short | recursive ) echo "Configuration of libaitsched 8.4:";; esac cat <<\_ACEOF @@ -1435,7 +1435,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libaitsched configure 8.2 +libaitsched configure 8.4 generated by GNU Autoconf 2.72 Copyright (C) 2023 Free Software Foundation, Inc. @@ -1762,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 8.2, which was +It was created by libaitsched $as_me 8.4, which was generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -4000,11 +4000,15 @@ fi if test "${ac_cv_env_CFLAGS_set}" != "set"; then - CFLAGS="-Wall -O2 -fPIC" + CFLAGS="-Wall -O2 -I${includedir}" else CFLAGS="${ac_cv_env_CFLAGS_value}" fi -LDFLAGS="${LDFLAGS}" +if test "${ac_cv_env_LDFLAGS_set}" = "set"; then + LDFLAGS="${ac_cv_env_LDFLAGS_value}" +else + LDFLAGS="-L${libdir}" +fi # Checks for libraries. @@ -4111,6 +4115,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} @@ -4224,14 +4279,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; } @@ -5086,7 +5134,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.2, which was +This file was extended by libaitsched $as_me 8.4, which was generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -5150,7 +5198,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.2 +libaitsched config.status 8.4 configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\"