From 5dfeef80efd167c8c7e4e26d0151d8f7d38ef4af Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 27 Apr 2004 12:41:44 +0000 Subject: [PATCH] Define the lyxpreview -> png converter only if dvipng is found. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8698 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 5 +++++ lib/configure.m4 | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index cf01f42b29..a545bedecc 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2004-04-27 Angus Leeming + + * configure.m4: don't create a lyxpreview -> png converter if + dvipng is not found. + 2004-04-26 Jürgen Spitzmüller * CREDITS: add Huang Ying. diff --git a/lib/configure.m4 b/lib/configure.m4 index ba5b1bb0ef..43d5810313 100644 --- a/lib/configure.m4 +++ b/lib/configure.m4 @@ -309,6 +309,13 @@ test $dvi_to_pdf_command = "dvipdfm" && dvi_to_pdf_command="dvipdfm \$\$i" # We have a script to convert previewlyx to ppm or to png lyxpreview_to_bitmap_command='python $$s/lyxpreview2bitmap.py' +# Search for 'dvipng'. Only enable the conversion from lyxpreview -> png +# if dvipng is found. +SEARCH_PROG([for dvipng],DVIPNG,dvipng) + +test "$DVIPNG" = "dvipng" && \ + lyxpreview_to_png_command = $lyxpreview_to_bitmap_command + # Search a *roff program (used to translate tables in ASCII export) LYXRC_PROG([for a *roff formatter], \ascii_roff_command, dnl 'groff -t -Tlatin1 $$FName' nroff,dnl @@ -565,7 +572,7 @@ cat >$outfile <