Changeset 1912


Ignore:
Timestamp:
Nov 7, 2007, 2:09:13 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Use kpsewhich to find a4.sty and a4wide.sty, as suggested by Alexis Ballier.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r1872 r1912  
    346346    # Build LaTeX documentation?
    347347    AC_PATH_PROG(LATEX, pdflatex, no)
     348    AC_PATH_PROG(KPSEWHICH, kpsewhich, no)
    348349    AC_PATH_PROG(DVIPS, dvips, no)
    349     if test "${DVIPS}" = "no"; then
     350    if test "${DVIPS}" = "no" -o "${KPSEWHICH}" = "no"; then
    350351      LATEX="no"
    351352    fi
    352     AC_MSG_CHECKING(for a4.sty)
    353     if test "$(find /usr/share/texmf* -name 'a4.sty')" != ""; then
    354       AC_MSG_RESULT(yes)
    355       AC_MSG_CHECKING(for a4wide.sty)
    356       if test "$(find /usr/share/texmf* -name 'a4wide.sty')" != ""; then
    357         AC_MSG_RESULT(yes)
     353    if test "${LATEX}" != "no"; then
     354      AC_MSG_CHECKING(for a4.sty and a4wide.sty)
     355      if "${KPSEWHICH}" a4.sty >/dev/null 2>&1; then
     356        if "${KPSEWHICH}" a4wide.sty >/dev/null 2>&1; then
     357          AC_MSG_RESULT(yes)
     358        else
     359          LATEX="no"
     360          AC_MSG_RESULT(no)
     361        fi
    358362      else
    359363        LATEX="no"
    360364        AC_MSG_RESULT(no)
    361365      fi
    362     else
    363       LATEX="no"
    364       AC_MSG_RESULT(no)
    365366    fi
    366367  fi
Note: See TracChangeset for help on using the changeset viewer.