1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
|
dnl $Id: configure.ac,v 1.52.2.1 2010/12/28 22:27:20 dan Exp $
dnl Process this file with autoconf to produce a configure script.
dnl
dnl Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2010 Dan McMahill
dnl All rights reserved.
dnl
dnl This code is derived from software written by Dan McMahill
dnl
dnl Redistribution and use in source and binary forms, with or without
dnl modification, are permitted provided that the following conditions
dnl are met:
dnl 1. Redistributions of source code must retain the above copyright
dnl notice, this list of conditions and the following disclaimer.
dnl 2. Redistributions in binary form must reproduce the above copyright
dnl notice, this list of conditions and the following disclaimer in the
dnl documentation and/or other materials provided with the distribution.
dnl 3. All advertising materials mentioning features or use of this software
dnl must display the following acknowledgement:
dnl This product includes software developed by Dan McMahill
dnl 4. The name of the author may not be used to endorse or promote products
dnl derived from this software without specific prior written permission.
dnl
dnl THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
dnl IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
dnl OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
dnl IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
dnl INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
dnl BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
dnl LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
dnl AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
dnl OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
dnl OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
dnl SUCH DAMAGE.
dnl
AC_INIT(latex.mk.in.in)
AM_INIT_AUTOMAKE(latex-mk, 2.1)
AM_MAINTAINER_MODE
#
# determine host type
#
AC_CANONICAL_HOST
#
# an install program
#
AC_PROG_INSTALL
#
# general
#
AC_PATH_PROG(AWK, awk nawk gawk mawk, awk)
AC_PATH_PROG(ENV_PROG, env, env)
AC_PATH_PROG(FALSE, false, false)
AC_PATH_PROG(GREP, grep, grep)
AC_PATH_PROG(GZCAT, gzcat, gzcat)
AC_PATH_PROG(GZIP, gzip, gzip)
AC_PATH_PROG(RM, rm, rm)
AC_PATH_PROG(RMDIR, rmdir, rmdir)
AC_PATH_PROG(TAR, tar, tar)
#
# for latex.mk
#
AC_PATH_PROG(BIBTEX, bibtex, bibtex)
# for converting graphics file formats (from ImageMagick)
AC_PATH_PROG(CONVERT, convert, convert)
AC_PATH_PROG(DVIPDFM, dvipdfm, dvipdfm)
AC_PATH_PROG(DVIPS, dvips, dvips)
AC_PATH_PROG(ECHO, echo, echo)
AC_PATH_PROG(FIND, find, find)
AC_PATH_PROG(GV, gv, gv)
AC_PATH_PROG(HEVEA, hevea, hevea)
AC_PATH_PROG(HACHA, hacha, hacha)
AC_PATH_PROG(IMAGEN, imagen, imagen)
AC_PATH_PROG(LATEX, latex, latex)
AC_PATH_PROG(LATEX2HTML, latex2html, latex2html)
AC_PATH_PROG(LATEX2RTF, latex2rtf, latex2rtf)
AC_PATH_PROG(LPR, lpr, lpr)
AC_PATH_PROG(MAKEIDX, makeindex, makeindex)
AC_PATH_PROG(PDFLATEX, pdflatex, pdflatex)
AC_PATH_PROG(PS2PDF, ps2pdf, ps2pdf)
AC_PATH_PROG(TEX2PAGE, tex2page, tex2page)
AC_PATH_PROG(XDVI, xdvi, xdvi)
#
# for lgrind.mk
#
AC_PATH_PROG(LGRIND, lgrind, lgrind)
#
# for mpost.mk
#
AC_PATH_PROG(MPOST, mpost mp, mpost)
#
# for tgif.mk
#
AC_PATH_PROG(TGIF, tgif, tgif)
#
# for xfig.mk
#
AC_PATH_PROG(FIG2DEV, fig2dev, fig2dev)
#
# Look for a GNU make program and a BSD make program
# This is used by the testsuite
#
AC_PATH_GNU_MAKE
AC_PATH_BSD_MAKE
if test "X${BMAKE}" = "Xnone" -a "X${GMAKE}" = "Xnone" ; then
AC_MSG_NOTICE([
************************ WARNING ************************
I could not find GNU make >= version 3.80 _or_
a suitable BSD make on your system. This package
will still install correctly, but you will not actually
be able to use it or run the testsuite until you
install a suitable make program.
************************ WARNING ************************
]
)
fi
#
# system config files
#
AC_ARG_WITH([mkconf],
[ --with-mkconf=mkconf Use the specified file as the site configuration
file for BSD make. [default = /etc/latex-mk.conf]],
[
if test "X$with_mkconf" = "Xno" ; then
AC_ERROR([--without-mkconf is not supported])
else
MAKECONF="$with_mkconf"
fi
],
[
MAKECONF=@latexmkconfdir@/latex-mk.conf
])
AC_SUBST(MAKECONF)
AC_ARG_WITH([gmkconf],
[ --with-gmkconf=gmkconf Use the specified file as the site configuration
file for GNU make. [default = /etc/latex-gmk.conf]],
[
if test "X$with_gmkconf" = "Xno" ; then
AC_ERROR([--without-gmkconf is not supported])
else
GMAKECONF="$with_gmkconf"
fi
],
[
GMAKECONF=@latexmkconfdir@/latex-gmk.conf
])
AC_SUBST(GMAKECONF)
AC_ARG_WITH([usermkconf],
[ --with-mkconf=usermkconf
Use the specified file as the site configuration
file for BSD make. [default = $HOME/.latex-mk.conf]],
[
if test "X$with_usermkconf" = "Xno" ; then
AC_ERROR([--without-usermkconf is not supported])
else
USERMAKECONF="$with_usermkconf"
fi
],
[
USERMAKECONF="\${HOME}/.latex-mk.conf"
])
AC_SUBST(USERMAKECONF)
AC_ARG_WITH([usergmkconf],
[ --with-usergmkconf=usergmkconf
Use the specified file as the user configuration
file for GNU make. [default = $HOME/.latex-gmk.conf]],
[
if test "X$with_usergmkconf" = "Xno" ; then
AC_ERROR([--without-usergmkconf is not supported])
else
USERGMAKECONF="$with_usergmkconf"
fi
],
[
USERGMAKECONF="\${HOME}/.latex-gmk.conf"
])
AC_SUBST(USERGMAKECONF)
AC_OUTPUT(
Makefile
doc/Makefile
doc/prefix.texi
example/Makefile
example/tgif/Makefile
ieee-copyout
latex-mk
latex.mk.in
latex.subdir.mk.in
lgrind.mk.in
mpost.mk.in
testsuite/Makefile
testsuite/bmake_ref/Makefile
testsuite/gmake_ref/Makefile
testsuite/latex_mk_ref/Makefile
tgif.mk.in
xfig.mk.in
)
|