sync with OpenBSD -current

This commit is contained in:
purplerain 2024-07-10 12:51:13 +00:00
parent 81739016d9
commit 48226b7c51
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
178 changed files with 76551 additions and 36405 deletions

220
lib/libXaw/configure vendored
View file

@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for libXaw 1.0.15.
# Generated by GNU Autoconf 2.71 for libXaw 1.0.16.
#
# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxaw/-/issues>.
#
@ -682,8 +682,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='libXaw'
PACKAGE_TARNAME='libXaw'
PACKAGE_VERSION='1.0.15'
PACKAGE_STRING='libXaw 1.0.15'
PACKAGE_VERSION='1.0.16'
PACKAGE_STRING='libXaw 1.0.16'
PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxaw/-/issues'
PACKAGE_URL=''
@ -724,6 +724,9 @@ ac_subst_vars='am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
ENABLE_UNIT_TESTS_FALSE
ENABLE_UNIT_TESTS_TRUE
XORG_MALLOC_DEBUG_ENV
BUILD_XAW7_FALSE
BUILD_XAW7_TRUE
BUILD_XAW6_FALSE
@ -914,6 +917,7 @@ with_xsltproc
enable_xaw6
enable_xaw7
enable_const
enable_unit_tests
'
ac_precious_vars='build_alias
host_alias
@ -932,7 +936,8 @@ XSLTPROC
XAW6_CFLAGS
XAW6_LIBS
XAW7_CFLAGS
XAW7_LIBS'
XAW7_LIBS
XORG_MALLOC_DEBUG_ENV'
# Initialize some variables set by options.
@ -1481,7 +1486,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 libXaw 1.0.15 to adapt to many kinds of systems.
\`configure' configures libXaw 1.0.16 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1552,7 +1557,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of libXaw 1.0.15:";;
short | recursive ) echo "Configuration of libXaw 1.0.16:";;
esac
cat <<\_ACEOF
@ -1584,6 +1589,7 @@ Optional Features:
--disable-xaw6 Disable building of libXaw.so.6
--disable-xaw7 Disable building of libXaw.so.7
--disable-const Disable const-support
--enable-unit-tests Enable building unit test cases (default: no)
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@ -1619,6 +1625,8 @@ Some influential environment variables:
XAW6_LIBS linker flags for XAW6, overriding pkg-config
XAW7_CFLAGS C compiler flags for XAW7, overriding pkg-config
XAW7_LIBS linker flags for XAW7, overriding pkg-config
XORG_MALLOC_DEBUG_ENV
Environment variables to enable memory checking in tests
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
@ -1687,7 +1695,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
libXaw configure 1.0.15
libXaw configure 1.0.16
generated by GNU Autoconf 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
@ -1957,7 +1965,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 libXaw $as_me 1.0.15, which was
It was created by libXaw $as_me 1.0.16, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ $0$ac_configure_args_raw
@ -3195,7 +3203,7 @@ fi
# Define the identity of the package.
PACKAGE='libXaw'
VERSION='1.0.15'
VERSION='1.0.16'
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@ -19643,7 +19651,190 @@ printf "%s\n" "#define _CONST_X_STRING 1" >>confdefs.h
fi
ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile specs/Makefile specs/libXaw.ent src/Makefile"
# --enable-unit-tests
# Check for different types of support on different platforms
case $host_os in
solaris*)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
printf %s "checking for umem_alloc in -lumem... " >&6; }
if test ${ac_cv_lib_umem_umem_alloc+y}
then :
printf %s "(cached) " >&6
else $as_nop
ac_check_lib_save_LIBS=$LIBS
LIBS="-lumem $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 umem_alloc ();
int
main (void)
{
return umem_alloc ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
ac_cv_lib_umem_umem_alloc=yes
else $as_nop
ac_cv_lib_umem_umem_alloc=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_umem_umem_alloc" >&5
printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
if test "x$ac_cv_lib_umem_umem_alloc" = xyes
then :
malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
fi
;;
*-gnu*) # GNU libc - Value is used as a single byte bit pattern,
# both directly and inverted, so should not be 0 or 255.
malloc_debug_env='MALLOC_PERTURB_=15'
;;
darwin*)
malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
;;
*bsd*)
malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
;;
esac
# User supplied flags override default flags
if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
fi
XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
# Check whether --enable-unit-tests was given.
if test ${enable_unit_tests+y}
then :
enableval=$enable_unit_tests; enable_unit_tests=$enableval
else $as_nop
enable_unit_tests=no
fi
if test "x$enable_unit_tests" != xno; then
ENABLE_UNIT_TESTS_TRUE=
ENABLE_UNIT_TESTS_FALSE='#'
else
ENABLE_UNIT_TESTS_TRUE='#'
ENABLE_UNIT_TESTS_FALSE=
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
printf %s "checking whether to build unit test cases... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
printf "%s\n" "$enable_unit_tests" >&6; }
# Check for different types of support on different platforms
case $host_os in
solaris*)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
printf %s "checking for umem_alloc in -lumem... " >&6; }
if test ${ac_cv_lib_umem_umem_alloc+y}
then :
printf %s "(cached) " >&6
else $as_nop
ac_check_lib_save_LIBS=$LIBS
LIBS="-lumem $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 umem_alloc ();
int
main (void)
{
return umem_alloc ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
ac_cv_lib_umem_umem_alloc=yes
else $as_nop
ac_cv_lib_umem_umem_alloc=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_umem_umem_alloc" >&5
printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
if test "x$ac_cv_lib_umem_umem_alloc" = xyes
then :
malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
fi
;;
*-gnu*) # GNU libc - Value is used as a single byte bit pattern,
# both directly and inverted, so should not be 0 or 255.
malloc_debug_env='MALLOC_PERTURB_=15'
;;
darwin*)
malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
;;
*bsd*)
malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
;;
esac
# User supplied flags override default flags
if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
fi
XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
if test "x$enable_unit_tests" != "xno" ; then
ac_fn_c_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size"
if test "x$ac_cv_func_malloc_usable_size" = xyes
then :
printf "%s\n" "#define HAVE_MALLOC_USABLE_SIZE 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
if test "x$ac_cv_header_malloc_h" = xyes
then :
printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
fi
fi
ac_config_files="$ac_config_files Makefile examples/Makefile include/Makefile man/Makefile specs/Makefile specs/libXaw.ent src/Makefile"
if test "x$build_v6" = xyes; then
@ -19833,6 +20024,10 @@ if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then
as_fn_error $? "conditional \"BUILD_XAW7\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
@ -20223,7 +20418,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 libXaw $as_me 1.0.15, which was
This file was extended by libXaw $as_me 1.0.16, which was
generated by GNU Autoconf 2.71. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@ -20291,7 +20486,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
libXaw config.status 1.0.15
libXaw config.status 1.0.16
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"
@ -20702,6 +20897,7 @@ do
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
"libtool_hack") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_hack" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
"specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;