I got a bug report for my package, which conditionally installs some scripts into pkglibexecdir like this:
if ENABLE_FOO pkglibexec_SCRIPTS = bar endif where pkglibexec* is not referred outside of if...endif. When "make install", automake creates pkglibexecdir even when ENABLE_FOO is false. I'm attaching a prove which demonstrates the behavior.
instdir-cond.test
Description: Binary data
Regards, -- Daiki Ueno