]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
Build system: Make missing DejaVuSans.ttf non-fatal
authorDeepak Khatri <b19158@students.iitmandi.ac.in>
Wed, 12 Jan 2022 21:33:35 +0000 (03:03 +0530)
committerGitHub <noreply@github.com>
Wed, 12 Jan 2022 21:33:35 +0000 (22:33 +0100)
DejaVuSans.ttf is only needed for test programs, not for actually using cups-filters. Therefore we make its absence non-fatal.

configure.ac

index 8b7b3e13f1f26bac0b5b12ee24c859094f2740e6..588bc1fe88857e08a5a509815ab5eb44043f0f42 100644 (file)
@@ -815,7 +815,7 @@ AC_ARG_WITH([test-font-path],
 )
 
 AS_IF([test "x$cross_compiling" != "xyes" && ! test -f "$with_test_font_path"],
-       [AC_MSG_ERROR(DejaVuSans.ttf font file is missing. Please install a package providing it.)]
+       [AC_MSG_WARN(DejaVuSans.ttf font file is missing. Please install a package providing it.) && [with_test_font_path=no]]
 )
 AC_DEFINE_UNQUOTED([TESTFONT], ["$with_test_font_path"], [Path to font used in tests])