From f101e208e5d0d9acd3d03acebb2ef22a850d4b65 Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Sat, 13 Jun 2015 16:35:48 +0200 Subject: [PATCH] File globbing is mandatory but can be disabled The configure script requires glob.h to be available by default but allow the user to disable it. --- configure.ac | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 5888f2b..e1585f8 100644 --- a/configure.ac +++ b/configure.ac @@ -151,10 +151,16 @@ AS_IF([test "x$with_pcre" != "xno"], # 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" ]) -- 2.47.3