From aeb22f486139f457ae7fc44c2d931312aaae52d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 18 Jan 2023 18:25:25 +0100 Subject: Update Gnulib to v0.1-5703-g356a414e8c and add 'posix_spawn' module. This is a followup to edfca3b7e5931b5b5a83112e2a9813b068be99c2, which added the 'posix_spawnp' module but not 'posix_spawn'. * m4/gnulib-cache.m4: Add 'posix_spawn' module. * gnulib-local/m4/clock_time.m4.diff: Adjust. * configure.ac: Move 'gl_EARLY' use right after 'AC_PROG_CC'. --- m4/poll.m4 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'm4/poll.m4') diff --git a/m4/poll.m4 b/m4/poll.m4 index eb3b78617..cfadbf24f 100644 --- a/m4/poll.m4 +++ b/m4/poll.m4 @@ -1,5 +1,5 @@ -# poll.m4 serial 20 -dnl Copyright (c) 2003, 2005-2007, 2009-2022 Free Software Foundation, Inc. +# poll.m4 serial 21 +dnl Copyright (c) 2003, 2005-2007, 2009-2023 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -15,7 +15,7 @@ AC_DEFUN([gl_FUNC_POLL], else AC_CHECK_FUNC([poll], [# Check whether poll() works on special files (like /dev/null) and - # and ttys (like /dev/tty). On Mac OS X 10.4.0 and AIX 5.3, it doesn't. + # and ttys (like /dev/tty). On macOS 10.15 and AIX 5.3, it doesn't. AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include #include @@ -76,7 +76,7 @@ This is MacOSX or AIX fi dnl Determine the needed libraries. - LIB_POLL="$LIBSOCKET" + POLL_LIB="$LIBSOCKET" if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then case "$host_os" in mingw*) @@ -94,10 +94,13 @@ main () return 0; }]])], [], - [LIB_POLL="$LIB_POLL -luser32"]) + [POLL_LIB="$POLL_LIB -luser32"]) ;; esac fi + AC_SUBST([POLL_LIB]) + dnl For backward compatibility. + LIB_POLL="$POLL_LIB" AC_SUBST([LIB_POLL]) ]) -- cgit v1.2.1