|
From: Ethan A M. <sf...@us...> - 2017-10-17 00:36:15
|
On Sunday, 15 October, 2017 17:40:03 Achim Gratz wrote:
>
> The configury supposedly tries to find TEXDIR via kpsexpand, but that
> code never gets run if $prefix is set.
I really don't know if this is correct or not.
In my experience there are so many places that the TeX stuff
might go, your only hope is to manually specify where it is
on the current system. It doesn't help any that according to the
man page
"the syntax for kpsexpand is incompatible with teTeX´s as of version 0.4"
I read the existing ./configure logic to be that anything kpsexpand
returns is where things would be by default, but if you are specifying
a $prefix then you are overriding the default.
Does it ever make sense to mix the two?
What do other people think?
Ethan
> I think the code should rather do this:
>
> --8<---------------cut here---------------start------------->8---
> --- origsrc/gnuplot-branch-5-2-stable/configure.ac 2017-10-14 02:00:11.000000000 +0200
> +++ src/gnuplot-branch-5-2-stable/configure.ac 2017-10-15 17:31:46.192683400 +0200
> @@ -146,11 +146,11 @@ if test "$with_latex" = yes; then
> [texdir is not given and there is no kpsexpand, please tell where to install])
> dnl texdir has priority
> if test "$TEXDIR" = "no"; then
> - if test "x$prefix" != "xNONE"; then
> - TEXDIR=${prefix}/share/texmf
> - else
> - TEXDIR=`$KPSEXPAND '$TEXMFLOCAL'`
> - if test "x$TEXDIR" = "x" -o "$TEXDIR" = "\$TEXMFLOCAL"; then
> + TEXDIR=`$KPSEXPAND '$TEXMFLOCAL'`
> + if test "x$TEXDIR" = "x" -o "$TEXDIR" = "\$TEXMFLOCAL"; then
> + if test "x$prefix" != "xNONE"; then
> + TEXDIR=${prefix}/share/texmf
> + else
> TEXDIR=${ac_default_prefix}/share/texmf
> fi
> fi
> --8<---------------cut here---------------end--------------->8---
>
>
> Regards,
> Achim.
>
|