configure: Check for dmgbuild on macOS
authorMarvin Scholz <epirat07@gmail.com>
Sat, 25 Feb 2017 18:22:16 +0000 (19:22 +0100)
committerMarvin Scholz <epirat07@gmail.com>
Sat, 25 Feb 2017 18:22:16 +0000 (19:22 +0100)
configure.ac

index b9ef4df..5c25e91 100644 (file)
@@ -3902,6 +3902,18 @@ then
   VLC_ADD_PLUGIN([minimal_macosx])
 fi
 
+dnl
+dnl Mac OS X fancy dmg build tool
+dnl
+if test "${HAVE_OSX}" = "1"
+then
+  AC_PATH_PROG(DMGBUILD, dmgbuild, no)
+  AS_IF([test "x${DMGBUILD}" = "xno"], [
+    AC_MSG_WARN([dmgbuild not found -- unable to build fancy DMGs])
+  ])
+  AM_CONDITIONAL(HAVE_DMGBUILD, [test "x$DMGBUILD" != "xno"])
+fi
+
 dnl
 dnl  VideoToolbox plugins
 AC_CHECK_HEADERS(VideoToolbox/VideoToolbox.h, [