diff --git a/lib/ChangeLog b/lib/ChangeLog index cd0ad4977c..5ef10806da 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2004-02-27 Jean-Marc Lasgouttes + + * configure.m4: if lyx_check_config is false (no latex), use some + ugly sed code to parse the textclasses and produce a reasonable + textclass.lst. + 2004-03-07 Jürgen Spitzmüller * dco/LaTeXConfig.lyx.in: document jurabib. diff --git a/lib/configure.m4 b/lib/configure.m4 index 55b71c19fa..4efc6c0dfa 100644 --- a/lib/configure.m4 +++ b/lib/configure.m4 @@ -327,10 +327,13 @@ test $fax_command != "none" && fax_command="$fax_command \$\$i" # Search for LinuxDoc support SEARCH_PROG([for SGML-tools 1.x (LinuxDoc)], LINUXDOC, sgml2lyx) -chk_linuxdoc=no if test $LINUXDOC != none; then chk_linuxdoc=yes + bool_linuxdoc=true linuxdoc_cmd="\\def\\haslinuxdoc{yes}" +else + chk_linuxdoc=no + bool_linuxdoc=false fi case $LINUXDOC in @@ -348,10 +351,13 @@ esac # Search for DocBook support SEARCH_PROG([for SGML-tools 2.x (DocBook) or db2x scripts], DOCBOOK, sgmltools db2dvi) -chk_docbook=no if test $DOCBOOK != none; then chk_docbook=yes + bool_docbook=true docbook_cmd="\\def\\hasdocbook{yes}" +else + chk_docbook=no + bool_docbook=false fi case $DOCBOOK in @@ -389,6 +395,49 @@ MSG_CHECKING(LaTeX configuration) rm -f textclass.lst packages.lst chkconfig.sed if test ${lyx_check_config} = no ; then MSG_RESULT(default values) + MSG_CHECKING(list of textclasses,+) + cat >textclass.lst <>textclass.lst + fi + fi ;; + esac + done + MSG_RESULT(done) else MSG_RESULT(auto) rm -f wrap_chkconfig.ltx chkconfig.vars chkconfig.classes chklayouts.tex @@ -416,14 +465,6 @@ fi # Do we have all the files we need? Useful if latex did not run changequote([,])dnl -echo "creating textclass.lst" -PROVIDE_DEFAULT_FILE(textclass.lst,dnl -[# This file declares layouts and their associated definition files -# (include dir. relative to the place where this file is). -# It contains only default values, since chkconfig.ltx could not be run -# for some reason. Run ./configure if you need to update it after a -# configuration change. -article article article false]) PROVIDE_DEFAULT_FILE(chkconfig.sed,[s/@.*@/???/g])