From 7d5325e5a61539b172ab7677203ec45aaac43dda Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 22 Dec 2013 18:09:55 -0600 Subject: [PATCH] Use --brief option, if supported, with file --mime. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 24bac7fd..f6ae3e0d 100644 --- a/configure.ac +++ b/configure.ac @@ -329,6 +329,10 @@ dnl CHECK FOR PROGRAM TO PROVIDE MIME TYPE STRING dnl --------------------------------------------- AS_IF([file --mime "${srcdir}"/configure >/dev/null 2>&1], [nmh_mimetypeproc='"file --mime"']) +if test -n "$nmh_mimetypeproc"; then + AS_IF([file --brief --mime "${srcdir}"/configure >/dev/null 2>&1], + [nmh_mimetypeproc='"file --brief --mime"']) +fi AS_CASE([$nmh_mimetypeproc], [?*], [AC_DEFINE_UNQUOTED([MIMETYPEPROC], [$nmh_mimetypeproc], [Program, with arguments, that provides MIME type string.])]) -- 2.56.0