Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sane_grep: pass "-a" if grep accepts it
[gitweb.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index 1f55009bba756322dca30cd945d2695666422a71..6fd7b8edce348ec5cacd2fb8f1d8b1f5c7490ae0 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-471,6
+471,13
@@
if test -n "$ASCIIDOC"; then
esac
fi
+if grep -a ascii configure.ac >/dev/null; then
+ AC_MSG_RESULT([Using 'grep -a' for sane_grep])
+ SANE_TEXT_GREP=-a
+else
+ SANE_TEXT_GREP=
+fi
+GIT_CONF_SUBST([SANE_TEXT_GREP])
## Checks for libraries.
AC_MSG_NOTICE([CHECKS for libraries])