summaryrefslogtreecommitdiffstats
path: root/src/auto/configure
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2021-09-09 17:14:50 +0200
committerBram Moolenaar <Bram@vim.org>2021-09-09 17:14:50 +0200
commit6b9efdde7828b3317b64f38bd90fb5a784a654c0 (patch)
treead79a11d3cd6a743b93f638bdea1972ac874717d /src/auto/configure
parent0325d3967ce7d0fd35bc1472fd476b911b895b76 (diff)
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/configure')
-rwxr-xr-xsrc/auto/configure6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/auto/configure b/src/auto/configure
index 4f43632248..be1440d3a7 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