Dmitry Eremin-Solenikov dbaryshkov@gmail.com writes:
What about just checking if libdir was overwritten via argument and not touching it if it was the case? Will that work for you?
That's exactly how it has worked ever since this detection was added back in 2010. Which is why I suggest that packagers who find that the automatic detection is inappropriate simply use the standard --libdir= command line option.
With the only caveat that since I didn't find a way to really check if --libdir was provided or not, I compare $libdir to the default value, the literal string '${exec_prefix}/lib', which is somewhat unlikely to be used on the command line.
Regards, /Niels