summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-05-28 22:57:52 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2020-06-01 23:28:36 +1000
commit7638476c18f2a8451b05d49f4e767ee1f98cfc17 (patch)
tree9ab95c02b4978ba88fa89f47b692012e882f07cf
parent282bdbd228a5e6f86ca7eec488d852d3dd3f2957 (diff)
downloaddash-7638476c18f2a8451b05d49f4e767ee1f98cfc17.tar.gz
shell: Enable fnmatch/glob by default
As fnmatch(3) and glob(3) from glibc are now working consistently, this patch enables them by default. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--configure.ac11
1 files changed, 6 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index e783f30..ce5feec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,9 +37,10 @@ if test "$enable_static" = "yes"; then
export LDFLAGS="-static -Wl,--fatal-warnings"
fi
-AC_ARG_ENABLE(fnmatch, AS_HELP_STRING(--enable-fnmatch, \
- [Use fnmatch(3) from libc]))
-AC_ARG_ENABLE(glob, AS_HELP_STRING(--enable-glob, [Use glob(3) from libc]))
+AC_ARG_ENABLE(fnmatch, AS_HELP_STRING(--disable-fnmatch, \
+ [Do not use fnmatch(3) from libc]))
+AC_ARG_ENABLE(glob, AS_HELP_STRING(--disable-glob, \
+ [Do not use glob(3) from libc]))
dnl Checks for libraries.
@@ -122,12 +123,12 @@ if test "$enable_test_workaround" = "yes"; then
[Define if your faccessat tells root all files are executable])
fi
-if test "$enable_fnmatch" = yes; then
+if test "$enable_fnmatch" != no; then
use_fnmatch=
AC_CHECK_FUNCS(fnmatch, use_fnmatch=yes)
fi
-if test "$use_fnmatch" = yes && test "$enable_glob" = yes; then
+if test "$use_fnmatch" = yes && test "$enable_glob" != no; then
AC_CHECK_FUNCS(glob)
fi