+2020-06-28 Paul Eggert <eggert@cs.ucla.edu>
+
+ getrandom: do not depend on ‘open’ on mingw
+ Similarly for at-internal, getloadavg. These modules do not call
+ the ‘open’ function when they are compiled on mingw. On mingw,
+ this avoids having to compile open.c when building Emacs, which
+ does its own thing with ‘open’.
+ * modules/at-internal, modules/getloadavg, modules/getrandom:
+ (Depends-on): Don’t depend on ‘open’ on mingw.
+ (Depends-on): Require AC_CANONICAL_HOST, for host_os.
+ * modules/getloadavg (Depends-on):
+ Depend on intprops, open, stdbool, stdlib only if compiling
+ getloadavg.c.
+
2020-06-28 Bruno Haible <bruno@clisp.org>
doc: Add a note about sigprocmask vs. pthread_sigmask.
errno
fcntl-h
intprops
-open
+open [case $host_os in mingw*) false;; *) :;; esac]
sys_stat
unistd
configure.ac:
+AC_REQUIRE([AC_CANONICAL_HOST])
Makefile.am:
lib_SOURCES += openat-priv.h openat-proc.c
Depends-on:
extensions
-intprops
-open
-stdbool
-stdlib
+intprops [test $HAVE_GETLOADAVG = 0]
+open [case $host_os in mingw*) false;; *) test $HAVE_GETLOADAVG = 0;; esac]
+stdbool [test $HAVE_GETLOADAVG = 0]
+stdlib [test $HAVE_GETLOADAVG = 0]
configure.ac:
+AC_REQUIRE([AC_CANONICAL_HOST])
gl_GETLOADAVG
if test $HAVE_GETLOADAVG = 0; then
AC_LIBOBJ([getloadavg])
sys_random
fcntl-h [test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1]
minmax [test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1]
-open [test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1]
+open [case $host_os in mingw*) false;; *) test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1;; esac]
configure.ac:
+AC_REQUIRE([AC_CANONICAL_HOST])
gl_FUNC_GETRANDOM
if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then
AC_LIBOBJ([getrandom])