$OpenBSD: patch-meson_build,v 1.2 2021/11/12 16:06:07 sthen Exp $

OpenBSD will not implement wordexp(3); use glob(3) instead

Index: meson.build
--- meson.build.orig
+++ meson.build
@@ -52,7 +52,9 @@ endif
 
 cdata.set('HAVE_STRNDUP', cc.has_function('strndup'))
 cdata.set('HAVE_MKDIRP', cc.has_function('mkdirp'))
+cdata.set('HAVE_WORDEXP', cc.has_function('wordexp'))
 
+
 # Instead of generating config.h directly, make vcs_tag generate it so that
 # @VCS_TAG@ is replaced.
 config_h_in = configure_file(
@@ -607,7 +609,7 @@ install_headers(
 # because configure_file strips the backslash in e.g. \@display,
 # resulting in @display, breaking our Perl code:
 # https://github.com/mesonbuild/meson/issues/7165
-bash = find_program('bash')
+bash = find_program('sh')
 replace_dirs = [
   bash, '-c',  # Use bash to capture output and mark as executable
   'sed -e \'s,@abs_top_builddir@,'
