summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2022-09-04 18:22:30 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2022-09-04 18:36:04 +0200
commit3a1c5ee7c1394ae0acf6785eb257a0ad121230af (patch)
treec84814794fb11584a370fab2f90f0c3e9adf8d29
parentad6f10a81be19c4dca2f7e77a2f8173d3eaf2591 (diff)
downloadlibxml2-3a1c5ee7c1394ae0acf6785eb257a0ad121230af.tar.gz
Disable fuzzer tests if glob.h wasn't found
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac4
2 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 6b79dc9a..d567c07c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,10 +2,13 @@
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = include . doc example fuzz xstc
+SUBDIRS = include . doc example xstc
if WITH_PYTHON
SUBDIRS += python
endif
+if WITH_GLOB
+SUBDIRS += fuzz
+endif
DIST_SUBDIRS = include . doc example fuzz python xstc
diff --git a/configure.ac b/configure.ac
index 1c9da738..c4ff7527 100644
--- a/configure.ac
+++ b/configure.ac
@@ -293,7 +293,9 @@ AC_CHECK_HEADERS([
sys/socket.h netinet/in.h arpa/inet.h netdb.h
sys/select.h poll.h
sys/time.h sys/timeb.h
- dl.h dlfcn.h])
+ dl.h dlfcn.h
+ glob.h])
+AM_CONDITIONAL(WITH_GLOB, test "$ac_cv_header_glob_h" = "yes")
dnl
dnl Checking types