From 827306f2aede41696208547bba0b73a1da5f9720 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Mon, 15 Nov 2004 19:13:25 +0000 Subject: [PATCH] check for more viewers, converters and editors git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9256 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 4 ++++ lib/configure.m4 | 49 +++++++++++++++++++++++++++++++----------------- 2 files changed, 36 insertions(+), 17 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index ecbb438d14..d260305d1f 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2004-11-15 Georg Baum + + * configure.m4: check for more viewers and editors + 2004-11-05 Bennett Helm * bind/mac.bind: use -Tab and -backtab as shortcuts for diff --git a/lib/configure.m4 b/lib/configure.m4 index ad2af1dae8..9cd0801d8b 100644 --- a/lib/configure.m4 +++ b/lib/configure.m4 @@ -243,6 +243,9 @@ TGIF_VIEWER="$TGIF_EDITOR" SEARCH_PROG([for a FIG viewer and editor], FIG_EDITOR, xfig) FIG_VIEWER="$FIG_EDITOR" +SEARCH_PROG([for a GRACE viewer and editor], GRACE_EDITOR, xmgrace) +GRACE_VIEWER="$GRACE_EDITOR" + SEARCH_PROG([for a FEN viewer and editor], FEN_EDITOR, xboard) test "$FEN" = "xboard" && FEN_EDITOR="xboard -lpf \$\$i -mode EditPosition" FEN_VIEWER="$FEN_EDITOR" @@ -251,6 +254,8 @@ SEARCH_PROG([for a raster image viewer], RASTERIMAGE_VIEWER, xv kview gimp) SEARCH_PROG([for a raster image editor], RASTERIMAGE_EDITOR, gimp) +SEARCH_PROG([for a text editor], TEXT_EDITOR, xemacs gvim kedit kwrite kate nedit gedit) + # Search for an installed reLyX or a ready-to-install one save_PATH=${PATH} PATH=${PATH}:./reLyX/ @@ -277,8 +282,15 @@ test "$word_to_latex_command" = "word2x" && word_to_latex_command="word2x -f lat SEARCH_PROG([for Image converter],image_command,convert) test $image_command = "convert" && image_command="convert \$\$i \$\$o" +SEARCH_PROG([for an OpenOffice.org -> Latex converter],sxw_to_latex_command,w2l) +test "$sxw_to_latex_command" = "w2l" && sxw_to_latex_command="w2l -clean \$\$i" + +# oolatex is the original name, SuSE has oolatex.sh +SEARCH_PROG([for an Latex -> OpenOffice.org converter],latex_to_sxw_command,oolatex oolatex.sh) +test "$latex_to_sxw_command" != "none" && latex_to_sxw_command="$latex_to_sxw_command \$\$i" + # Search something to preview postscript -SEARCH_PROG([for a Postscript previewer],GHOSTVIEW,gsview32 gv ghostview) +SEARCH_PROG([for a Postscript previewer],GHOSTVIEW,gsview32 gv ghostview kghostview) case $GHOSTVIEW in gv|ghostview) PS_VIEWER="$GHOSTVIEW -swap" ;; *) PS_VIEWER="$GHOSTVIEW";; @@ -286,10 +298,10 @@ esac EPS_VIEWER=$GHOSTVIEW # Search for a program to preview pdf -SEARCH_PROG([for a PDF preview],PDF_VIEWER, acrobat acrord32 gsview32 acroread gv ghostview xpdf) +SEARCH_PROG([for a PDF preview],PDF_VIEWER, acrobat acrord32 gsview32 acroread gv ghostview xpdf kpdf kghostview) # Search something to preview dvi -SEARCH_PROG([for a DVI previewer],DVI_VIEWER, xdvi windvi yap) +SEARCH_PROG([for a DVI previewer],DVI_VIEWER, xdvi windvi yap kdvi) # Search something to preview html SEARCH_PROG([for a HTML previewer],HTML_VIEWER, "mozilla file://\$\$p\$\$i" netscape) @@ -521,15 +533,15 @@ cat >$outfile <$outfile <$outfile <$outfile <$outfile < PS converter], TIFF2PS, tiff2ps) if test "$TIFF2PS" = "tiff2ps"; then cat >>$outfile < \$\$o" "" +\\converter tiff eps "tiff2ps \$\$i > \$\$o" "" EOF fi -- 2.39.2