diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-10-06 11:27:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-06 11:27:21 +0100 |
commit | e2982d691186c8a9b16ecc8d831d2472088c8ed8 (patch) | |
tree | 233a1c1a37dd0bab076f4adac3bb7d2f5dd98cf1 /src/auto | |
parent | 78e0fa4cf4fcd563c0bc8c87afa54d4f5dc22020 (diff) | |
download | vim-git-e2982d691186c8a9b16ecc8d831d2472088c8ed8.tar.gz |
patch 8.2.3483: #ifdef for using sysinfo() is incompletev8.2.3483
Problem: #ifdef for using sysinfo() is incomplete.
Solution: Also check for HAVE_SYSINFO. Make autoconf check use TRY_LINK.
(closes #8952)
Diffstat (limited to 'src/auto')
-rwxr-xr-x | src/auto/configure | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/auto/configure b/src/auto/configure index be1440d3a..cab7bc9fc 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -13954,7 +13954,7 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h @@ -13962,7 +13962,8 @@ else { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 $as_echo "not usable" >&6; } fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 $as_echo_n "checking for sysinfo.mem_unit... " >&6; } |