diff options
author | Christian Brabandt <cb@256bit.org> | 2021-09-09 17:14:50 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-09-09 17:14:50 +0200 |
commit | 6b9efdde7828b3317b64f38bd90fb5a784a654c0 (patch) | |
tree | ad79a11d3cd6a743b93f638bdea1972ac874717d /src/auto | |
parent | 0325d3967ce7d0fd35bc1472fd476b911b895b76 (diff) | |
download | vim-git-6b9efdde7828b3317b64f38bd90fb5a784a654c0.tar.gz |
patch 8.2.3420: _REENTRANT defined more than oncev8.2.3420
Problem: _REENTRANT defined more than once.
Solution: Fix configure script. (Christian Brabandt, closes #8852)
Diffstat (limited to 'src/auto')
-rwxr-xr-x | src/auto/configure | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/auto/configure b/src/auto/configure index 4f4363224..be1440d3a 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -12978,7 +12978,9 @@ if test "$enable_canberra" = "yes"; then $as_echo_n "checking for libcanberra... " >&6; } ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" - CFLAGS="$CFLAGS $canberra_cflags" + if `echo "$CFLAGS" | grep -v "$canberra_cflags" >/dev/null`; then + CFLAGS="$CFLAGS $canberra_cflags" + fi LIBS="$LIBS $canberra_lib" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -14960,7 +14962,7 @@ $as_echo "no" >&6; } fi fi -if `echo "$CFLAGS" | grep -v D_XEENTRANT >/dev/null`; then +if `echo "$CFLAGS" | grep -v D_REENTRANT >/dev/null`; then CFLAGS="$CFLAGS -D_REENTRANT" fi |