41 |
EMACS_PATH_LISPDIR |
EMACS_PATH_LISPDIR |
42 |
AC_MSG_CHECKING(what file to use for preview startup) |
AC_MSG_CHECKING(what file to use for preview startup) |
43 |
AC_ARG_WITH(previewstartfile, |
AC_ARG_WITH(previewstartfile, |
44 |
[[ --with-preview-startfile=FILE What file to use for preview startup.]], |
[[ --with-previewstartfile=FILE What file to use for preview startup.]], |
45 |
[[ previewstartfile="${withval}" ]], |
[[ previewstartfile="${withval}" ]], |
46 |
[ _tmpdir_="${lispdir}" |
[ _tmpdir_="${lispdir}" |
47 |
AC_FULL_EXPAND(_tmpdir_) |
AC_FULL_EXPAND(_tmpdir_) |
121 |
if test "x${texmfdir}" = "xno" |
if test "x${texmfdir}" = "xno" |
122 |
then |
then |
123 |
AC_MSG_CHECKING([kpathsea directory separator]) |
AC_MSG_CHECKING([kpathsea directory separator]) |
124 |
AC_ARG_WITH(kpathseaseparator, |
AC_ARG_WITH(kpathseasep, |
125 |
[ --with-kpathsea-sep=@<:@:|;@:>@ |
[ --with-kpathseasep=@<:@:|;@:>@ |
126 |
directory separator for kpathsea], |
directory separator for kpathsea], |
127 |
[[kpathseaseparator="${withval}"]], |
[[kpathseasep="${withval}"]], |
128 |
[test "x${pathoutput}" != x || pathoutput="`kpsepath -n latex tex`" |
[test "x${pathoutput}" != x || pathoutput="`kpsepath -n latex tex`" |
129 |
case "${pathoutput}" in *\;*) kpathseaseparator=";" ;; |
case "${pathoutput}" in *\;*) kpathseasep=";" ;; |
130 |
*:*) kpathseaseparator=":" ;; |
*:*) kpathseasep=":" ;; |
131 |
*) AC_MSG_ERROR([Can't determine kpathsea directory separator! |
*) AC_MSG_ERROR([Can't determine kpathsea directory separator! |
132 |
Please use --with-kpathsea-sep=@<:@:|;@>:@ to specify it!]) |
Please use --with-kpathseasep='@<:@:|;@:>@' to specify it!]) |
133 |
esac]) |
esac]) |
134 |
AC_MSG_RESULT([["${kpathseaseparator}"]]) |
AC_MSG_RESULT([["${kpathseasep}"]]) |
135 |
packagetexstyles="${packagedatadir}/latex" |
packagetexstyles="${packagedatadir}/latex" |
136 |
AC_LISPIFY_DIR(packagetexstyles,"${previewstartfile}") |
AC_LISPIFY_DIR(packagetexstyles,"${previewstartfile}") |
137 |
lisppackagetexstyles="(defvar preview-TeX-style-dir (concat \".${kpathseaseparator}\" ${lisppackagetexstyles} \"${kpathseaseparator}\"))" |
lisppackagetexstyles="(defvar preview-TeX-style-dir (concat \".${kpathseasep}\" ${lisppackagetexstyles} \"${kpathseasep}\"))" |
138 |
test "X${TEXHASH}" = X && TEXHASH=: |
test "X${TEXHASH}" = X && TEXHASH=: |
139 |
else |
else |
140 |
lisppackagetexstyles= |
lisppackagetexstyles= |