Project

General

Profile

Feature #1398 » 0024-gnulib-common.m4-Refresh-from-gnulib.patch

Marko Lindqvist, 06/02/2025 04:02 PM

View differences:

dependencies/m4/gnulib-common.m4
if test $[ac_cv_func_][$1] = yes; then
[gl_cv_onwards_func_][$1]=yes
else
dnl This is a bit complicated, because here we need the behaviour
dnl of AC_CHECK_DECL before the
dnl commit e1bbc9b93cdff61d70719c224b37970e065008bb (2025-05-26).
[ac_cv_have_decl_][$1][_saved]="$[ac_cv_have_decl_][$1]"
unset [ac_cv_have_decl_][$1]
ac_c_future_darwin_options_saved="$ac_c_future_darwin_options"
ac_cxx_future_darwin_options_saved="$ac_cxx_future_darwin_options"
ac_c_future_darwin_options=
ac_cxx_future_darwin_options=
AC_CHECK_DECL([$1], , , [$2])
ac_c_future_darwin_options="$ac_c_future_darwin_options_saved"
ac_cxx_future_darwin_options="$ac_cxx_future_darwin_options_saved"
if test $[ac_cv_have_decl_][$1] = yes; then
[gl_cv_onwards_func_][$1]='future OS version'
else
[gl_cv_onwards_func_][$1]=no
fi
[ac_cv_have_decl_][$1]="$[ac_cv_have_decl_][$1][_saved]"
unset [ac_cv_have_decl_][$1][_saved]
fi
else
AC_CHECK_FUNC([$1])
......
dnl This macro sets two variables:
dnl - gl_cv_onwards_func_<func> to yes / no / "future OS version"
dnl - ac_cv_func_<func> to yes / no / no
dnl The first variable allows to distinguish all three cases.
dnl The first variable allows distinguishing all three cases.
dnl The second variable is set, so that an invocation
dnl gl_CHECK_FUNCS_ANDROID([func], [[#include <foo.h>]])
dnl can be used as a drop-in replacement for
......
dnl This macro sets two variables:
dnl - gl_cv_onwards_func_<func> to yes / no / "future OS version"
dnl - ac_cv_func_<func> to yes / no / no
dnl The first variable allows to distinguish all three cases.
dnl The first variable allows distinguishing all three cases.
dnl The second variable is set, so that an invocation
dnl gl_CHECK_FUNCS_MACOS([func], [[#include <foo.h>]])
dnl can be used as a drop-in replacement for
(2-2/2)