192 |
|
|
193 |
AC_DEFUN(TEX_PATH_TEXMFDIR, |
AC_DEFUN(TEX_PATH_TEXMFDIR, |
194 |
[ |
[ |
195 |
AC_ARG_WITH(texmf-dir,[ --with-texmf-dir=DIR TEXMF tree to install into], |
AC_ARG_WITH(texmf-dir, |
196 |
|
[ --with-texmf-dir=DIR TEXMF tree to install into, |
197 |
|
or --without-texmf-dir for runtime config], |
198 |
[ texmfdir="${withval}" ; |
[ texmfdir="${withval}" ; |
199 |
AC_FULL_EXPAND(withval) |
if test "x${texmfdir}" = xno |
200 |
if test ! -d "${withval}" ; then |
then |
201 |
AC_MSG_ERROR([--with-texmf-dir="${texmfdir}": Directory does not exist]) |
previewtexmfdir="${packagedatadir}/latex" |
202 |
|
previewdocdir="${packagedatadir}/doc" |
203 |
|
else |
204 |
|
AC_FULL_EXPAND(withval) |
205 |
|
if test ! -d "${withval}" ; then |
206 |
|
AC_MSG_ERROR([--with-texmf-dir="${texmfdir}": Directory does not exist]) |
207 |
|
fi |
208 |
|
previewtexmfdir="${texmfdir}/tex/latex/preview" |
209 |
|
previewdocdir="${texmfdir}/doc/latex/styles" |
210 |
fi |
fi |
|
previewtexmfdir='${texmfdir}/tex/latex/preview' |
|
|
previewdocdir='${texmfdir}/doc/latex/styles' |
|
211 |
]) |
]) |
212 |
|
|
213 |
AC_ARG_WITH(tex-dir, |
AC_ARG_WITH(tex-dir, |
241 |
# hierarchy" Install in preview subdirectory. |
# hierarchy" Install in preview subdirectory. |
242 |
# c) anything absolute. Install both files directly there. |
# c) anything absolute. Install both files directly there. |
243 |
|
|
244 |
if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then |
if test "x${texmfdir}" != xno ; then |
245 |
|
if test "x${previewtexmfdir}" = x ; then |
246 |
|
|
247 |
AC_MSG_CHECKING([for prefix from kpsepath]) |
AC_MSG_CHECKING([for prefix from kpsepath]) |
248 |
|
|
269 |
[[pathoutput]],[["${pathoutput}"]]) |
[[pathoutput]],[["${pathoutput}"]]) |
270 |
|
|
271 |
if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then |
if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then |
272 |
previewdocdir='${texmfdir}/doc/latex/styles' |
previewdocdir="${texmfdir}/doc/latex/styles" |
273 |
previewtexmfdir='${texmfdir}/tex/latex/preview' |
previewtexmfdir="${texmfdir}/tex/latex/preview" |
274 |
fi |
fi |
275 |
|
|
276 |
if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then |
if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then |
290 |
[[pathoutput]],[["${pathoutput}"]]) |
[[pathoutput]],[["${pathoutput}"]]) |
291 |
|
|
292 |
if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then |
if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then |
293 |
previewtexmfdir='${texmfdir}/preview' |
previewtexmfdir="${texmfdir}/preview" |
294 |
previewdocdir='${texmfdir}/preview' |
previewdocdir="${texmfdir}/preview" |
295 |
fi |
fi |
296 |
fi |
fi |
297 |
|
|
312 |
[[pathoutput]],[["${pathoutput}"]]) |
[[pathoutput]],[["${pathoutput}"]]) |
313 |
|
|
314 |
if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then |
if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then |
315 |
previewtexmfdir='${texmfdir}' |
previewtexmfdir="${texmfdir}" |
316 |
previewdocdir='${texmfdir}' |
previewdocdir="${texmfdir}" |
|
fi |
|
317 |
fi |
fi |
318 |
fi |
fi |
319 |
fi |
fi |
326 |
fi |
fi |
327 |
|
|
328 |
AC_MSG_RESULT(${texmfdir}) |
AC_MSG_RESULT(${texmfdir}) |
329 |
|
fi |
330 |
|
fi |
331 |
|
|
332 |
echo Preview will be placed in ${previewtexmfdir} |
echo Preview will be placed in ${previewtexmfdir} |
333 |
echo Preview docs will be placed in ${previewdocdir} |
echo Preview docs will be placed in ${previewdocdir} |
579 |
path |
path |
580 |
\`(expand-file-name |
\`(expand-file-name |
581 |
,(file-relative-name path (file-name-directory startup)) |
,(file-relative-name path (file-name-directory startup)) |
582 |
load-file-name))))]],-no-site-file,[[path lispdir startup]], |
(file-name-directory load-file-name)))))]],-no-site-file,[[path lispdir startup]], |
583 |
[["${tmpdir}" "${explispdir}" "${expstartup}"]]) |
[["${tmpdir}" "${explispdir}" "${expstartup}"]]) |
584 |
AC_SUBST([lisp$1]) |
AC_SUBST([lisp$1]) |
585 |
AC_SUBST([$1])]) |
AC_SUBST([$1])]) |