[prev in list] [next in list] [prev in thread] [next in thread]
List: dash
Subject: [PATCH] shell: Enable fnmatch/glob by default
From: Herbert Xu <herbert () gondor ! apana ! org ! au>
Date: 2020-05-28 12:57:52
Message-ID: 20200528125751.GA18863 () gondor ! apana ! org ! au
[Download RAW message or body]
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>
diff --git a/configure.ac b/configure.ac
index dbd97d8..d73b2bf 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
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic