Index of /archives/text/CTAN/support/autoconf
Name Last modified Size Description
Parent Directory -
LICENSE 2004-04-15 20:39 18K
_ac_latex_test.m4 2004-07-14 20:50 1.3K
latex.m4 2004-07-14 22:43 3.0K
ac_prog_kpsewhich.m4 2004-08-14 19:44 1.3K
ac_prog_latex.m4 2004-08-14 19:44 1.2K
ac_prog_latex2html.m4 2004-08-14 19:44 1.3K
ac_prog_latex2man.m4 2004-08-14 19:44 1.3K
ac_prog_latex2png.m4 2004-08-14 19:44 1.3K
ac_prog_latex2rtf.m4 2004-08-14 19:44 1.3K
ac_prog_makeindex.m4 2004-08-14 19:44 1.3K
ac_prog_mf.m4 2004-08-14 19:44 1.2K
ac_prog_mktexpk.m4 2004-08-14 19:44 1.2K
ac_prog_pdflatex.m4 2004-08-14 19:44 1.2K
ac_prog_pngtopnm.m4 2004-08-14 19:44 1.2K
ac_prog_pnmtops.m4 2004-08-14 19:44 1.2K
ac_prog_ps2pdf.m4 2004-08-14 19:44 1.3K
ac_prog_psbook.m4 2004-08-14 19:44 1.2K
ac_prog_psnup.m4 2004-08-14 19:44 1.2K
ac_prog_psresize.m4 2004-08-14 19:44 1.2K
ac_prog_psselect.m4 2004-08-14 19:44 1.2K
ac_prog_texhash.m4 2004-08-14 19:44 1.2K
ac_texmf_path.m4 2004-08-14 19:44 2.3K
ac_latex_package.m4 2004-08-14 19:45 2.2K
ac_latex_package_amsmath.m4 2004-08-14 19:45 2.1K
ac_latex_package_fontenc.m4 2004-08-14 19:45 2.3K
ac_latex_package_input.m4 2004-08-14 19:45 2.0K
ac_latex_package_opt.m4 2004-08-14 19:45 2.1K
ac_latex_packages.m4 2004-08-14 19:45 1.7K
ac_prog_bibtex.m4 2004-08-14 19:45 1.2K
ac_prog_dvibook.m4 2004-08-14 19:45 1.2K
ac_prog_dvipdf.m4 2004-08-14 19:45 1.2K
ac_prog_dvips.m4 2004-08-14 19:45 1.2K
ac_prog_fig2dev.m4 2004-08-14 19:45 1.2K
ac_prog_gnuplot.m4 2004-08-14 19:45 1.2K
ac_prog_gunzip.m4 2004-08-14 19:45 1.2K
ac_prog_gzip.m4 2004-08-14 19:45 1.2K
ac_prog_jpeg2ps.m4 2004-08-14 19:45 1.2K
ac_prog_jpegtopnm.m4 2004-08-14 19:45 1.3K
ac_latex_class.m4 2004-08-14 19:46 1.7K
ac_latex_class_article.m4 2004-08-14 19:46 1.1K
ac_latex_class_book.m4 2004-08-14 19:46 1.1K
ac_latex_class_report.m4 2004-08-14 19:46 1.1K
ac_latex_classes.m4 2004-08-14 19:46 1.5K
ac_latex_dvips_o_stdout.m4 2004-08-14 19:46 1.7K
ac_latex_dvips_t.m4 2004-08-14 19:46 2.2K
ac_latex_dvips_t_a4.m4 2004-08-14 19:46 1.1K
ac_latex_dvips_t_a4_landscape.m4 2004-08-14 19:46 1.3K
ac_latex_dvips_t_letter.m4 2004-08-14 19:46 1.2K
ac_latex_dvips_t_letter_landscape.m4 2004-08-14 19:46 1.3K
README 2004-08-14 19:52 5.2K
These macros for Autoconf test if latex and/or some others applications are installed
To use this macro, just do the following :
add m4_include([latex.m4]) to the configure.in file
use autoconf -I<path to folder of latex.m4>
or
aclocal -I <path to folder that contains these macro>
autoconf
Then, you can use the following macro :
AC_LATEX_CLASS_ARTICLE
-> set $article to yes if class article exists
AC_LATEX_CLASS_BOOK
-> set $book to yes if class book exists
AC_LATEX_CLASS_REPORT
-> set $report to yes if class report exists
AC_LATEX_CLASS(<class>,<var>)
or
AC_LATEX_CLASS(<class>,<var>,<action if yes>)
or
AC_LATEX_CLASS(<class>,<var>,<action if yes>,<action if no>)
-> set $<var> to yes if <class> exists
AC_LATEX_CLASSES ([<class1, class2, ...>],<var>)
-> set $<var> to the first class that exists
AC_LATEX_PACKAGE_AMSMATH
-> set $amsmath to the right way to include amsmath
AC_LATEX_PACKAGE_FONTENC
-> set $fontenc to OT1 or T1
AC_LATEX_PACKAGE_INPUT(<package>,<class>,<var>)
-> set $<var> to yes if <package> can be \input within <class>
AC_LATEX_PACKAGE_OPT(<package>,<class>,<var>,<opt>)
-> set $<var> to yes if <package> with <opt> works within <class>
AC_LATEX_PACKAGE(<package>,<class>,<var>)
or
AC_LATEX_PACKAGE(<package>,<class>,<var>,<action if yes>)
or
AC_LATEX_PACKAGE(<package>,<class>,<var>,<action if yes>,<action if no>)
-> set $<var> to yes if <package> can be use within <class>
AC_LATEX_PACKAGES([<package1>,<package2>,...],<class>,<var>)
-> set $<var> to the first package that works with <class>
AC_PROG_DVIPDF
-> test if dvipdf exists and set $dvipdf
AC_PROG_DVIPS
-> test if dvips exists and set $dvips
AC_PROG_FIG2DEV
-> test if fig2dev exists and set $fig2dev
AC_PROG_GNUPLOT
-> test if gnuplot exists and set $gnuplot
AC_PROG_GUNZIP
-> test if gunzip exists and set $gunzip
AC_PROG_GZIP
-> test if gzip exists and set $gzip
AC_PROG_LATEX
-> test if latex exists and set $latex
AC_PROG_MF
-> test if mf exists and set $mf
AC_PROG_PDFLATEX
-> test if pdflatex exists and set $pdflatex
AC_PROG_PS2PDF
-> test if ps2pdf exists and set $ps2pdf
AC_PROG_BIBTEX
-> test if bibtex exists and set $bibtex
AC_PROG_LATEX2HTML
-> test if latex2html exists and set $latex2html
AC_PROG_LATEX2MAN
-> test if latex2man exists and set $latex2man
AC_PROG_MAKEINDEX
-> test if makeindex exists and set $makeindex
AC_PROG_JPEG2PS
-> test if jpeg2ps exists and set $jpeg2ps
AC_LATEX_DVIPS_T (<paper>,<var>,[on|off])
-> test if option -t <paper> in dvips works and set var to yes or no. if last parameter is on, use -t landscape and -t <paper>
AC_LATEX_DVIPS_T_A4
-> test if option -t a4 in dvips works and set dvips_t_a4 to yes or no
AC_LATEX_DVIPS_T_LETTER
-> test if option -t letter in dvips works and set dvips_t_letter to yes or no
AC_LATEX_DVIPS_T_A4_LANDSCAPE
-> test if option -t a4 -t landscape in dvips works and set dvips_t_a4_landscape to yes or no
AC_LATEX_DVIPS_T_LETTER_LANDSCAPE
-> test if option -t letter -t landscape in dvips works and set dvips_t_letter_landscape to yes or no
AC_LATEX_DVIPS_O_STDOUT
-> test if option -t- in dvips works and set dvips_o_stdout to yes or no
AC_PROG_MKTEXPK
-> test if mktexpk exists and set $mktexpk
AC_PROG_TEXHASH
-> test if texhash exists and set $texhash
AC_PROG_KPSEWHICH
-> test if kpsewhich exists and set $kpsewhich
AC_TEXMF_PATH
-> test for a local texmf path where to install class and package
AC_PROG_PNGTOPNM
-> test if pngtopnm exists and set $pngtopnm
AC_PROG_PNMTOPS
-> test if pnmtops exists and set $pnmtops
AC_PROG_JPEGTOPNM
-> test if jpegtopnm exists and set $jpegtopnm
AC_PROG_LATEX2PNG
-> test if latex2png exists and set $latex2png
AC_PROG_LATEX2RTF
-> test if latex2rtf exists and set $latex2rtf
AC_PROG_PSBOOK
-> test if psbook exists and set $psbook
AC_PROG_PSNUP
-> test if psnup exists and set $psnup
AC_PROG_PSSELECT
-> test if psselect exists and set $psselect
AC_PROG_PSRESIZE
-> test if psresize exists and set $psresize
AC_PROG_DVIBOOK
-> test if dvibook exists and set $dvibook
History :
2004-08-14 : Version 1.3 of these macros
2004-07-24 : Changing .dvips folder to be destroy at end
2004-07-14 : Changing AC_LATEX_CLASS and AC_LATEX_PACKAGE to add feature
to support if and else operation
Adding AC_PROG_PNGTOPNM
Adding AC_PROG_PNMTOPS
Adding AC_PROG_JPEGTOPNM
Adding AC_PROG_LATEX2PNG
Adding AC_PROG_LATEX2RTF
Adding AC_PROG_PSBOOK
Adding AC_PROG_PSNUP
Adding AC_PROG_PSSELECT
Adding AC_PROG_PSRESIZE
Adding AC_PROG_DVIBOOK
2004-06-18 : Adding AC_PROG_TEXHASH
Adding AC_PROG_KPSEWHICH
Adding AC_TEXMF_PATH
2004-04-21 : Adding AC_LATEX_DVIPS_T_LETTER
Adding AC_LATEX_DVIPS_T_A4_LANDSCAPE
Adding AC_LATEX_DVIPS_T_LETTER_LANDSCAPE
Adding AC_LATEX_DVIPS_O_STDOUT
Adding AC_PROG_MKTEXPK
Bugs correction and adding some comments
2004-04-20 : Adding AC_PROG_BIBTEX
Adding AC_PROG_LATEX2HTML
Adding AC_PROG_LATEX2MAN
Adding AC_PROG_MAKEINDEX
Adding AC_PROG_JPEG2PS
Adding AC_LATEX_DVIPS_T
Adding AC_LATEX_DVIPS_T_A4
2004-04-19 : Version 1