# Build with file globbing
AC_ARG_WITH([glob],
AS_HELP_STRING([--without-glob],[Ignore wildcards in file names]),
-[with_glob=no],[with_glob=yes])
+[],[with_glob=yes])
AS_IF([test "x$with_glob" != "xno"],
[
- AC_CHECK_HEADERS(glob.h)
+ AC_CHECK_HEADERS([glob.h],[],
+ [
+ AS_IF([test "x$with_glob" != "xcheck"],
+ [
+ AC_MSG_FAILURE([glob.h not found (use --without-glob to compile without file globbing)])
+ ])
+ ])
],[
glob_status="disabled"
])