]> diplodocus.org Git - nmh/commitdiff
Use --brief option, if supported, with file --mime.
authorDavid Levine <levinedl@acm.org>
Mon, 23 Dec 2013 00:09:55 +0000 (18:09 -0600)
committerDavid Levine <levinedl@acm.org>
Mon, 23 Dec 2013 00:09:55 +0000 (18:09 -0600)
configure.ac

index 24bac7f..f6ae3e0 100644 (file)
@@ -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.])])