Description: Fix configure.in to work with autoreconf.
Author: Guillem Jover <guillem@debian.org>
Origin: vendor
Forwarded: no
Last-Update: 2020-12-24

---
 gnu/configure.in |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

--- a/gnu/configure.in
+++ b/gnu/configure.in
@@ -110,7 +110,7 @@ esac
 
 case $host_cpu in
 alpha*)
-	AC_DEFINE(ALIGN_POINTERS)
+	AC_DEFINE(ALIGN_POINTERS, 1, [Define if pointers need to be aligned])
 	;;
 sparc*)
 	AC_DEFINE(ALIGN_POINTERS)
@@ -177,13 +177,14 @@ AC_MSG_RESULT($OUT_DIR)
 AC_SUBST(OUT_DIR)
 
 AC_MSG_CHECKING([fnmatch() tolerance to incomplete patterns acting as filenames])
-AC_RUN_IFELSE([
+AC_RUN_IFELSE([AC_LANG_PROGRAM([[
 #include <fnmatch.h>
+]], [[
 int main()
 {
  return(fnmatch("@<:@", "@<:@", 0)); /* Must return 0 for a valid match */
 }
-], [TOLERANT_FNMATCH=yes], [TOLERANT_FNMATCH=no], [TOLERANT_FNMATCH=cross])
+]])], [TOLERANT_FNMATCH=yes], [TOLERANT_FNMATCH=no], [TOLERANT_FNMATCH=cross])
 if test x$TOLERANT_FNMATCH = xyes ; then
   AC_DEFINE(TOLERANT_FNMATCH, 1, [Trust fnmatch() when supplying incomplete patterns])
 fi
@@ -196,7 +197,7 @@ AC_ARG_ENABLE(color-output,
         [color_output=yes],
         [color_output=no])
 AC_MSG_RESULT($color_output)
-test "$color_output" = "yes" && AC_DEFINE(USE_COLORS)
+test "$color_output" = "yes" && AC_DEFINE(USE_COLORS, 1, [Define if colors should be used])
 
 AC_SUBST(HAVE_MKDTEMP)
 AC_SUBST(HAVE_FCLOSEALL)
