The following output of autogen.sh is printed to console when it is run with debug flag:
+ test ! -f
configure.ac+ set -e
+ rm -rf config.cache autom4te.cache
+ mkdir -p autotools
+ aclocal -I autotools
+ autoheader -Wall
+ autoconf
+ automake --add-missing
Makefile.am:80: `pkglibdir' is not a legitimate directory for `PROGRAMS'
Makefile.am:73: `pkglibdir' is not a legitimate directory for `SCRIPTS'
Makefile.am:76: `pkglibdir' is not a legitimate directory for `SCRIPTS'
Similar bug is opened at debian
bug tracking system #660488.
Also MySQL describes relevant issue in
63898As per automake
manual, suitable destination folders for _PROGRAMS primary are in
bindir
,
sbindir
,
libexecdir
,
pkglibexecdir
, or not at all
(
noinst_
).
For distributable scripts dist*_SCRIPTS, the suggested destinations are in
bindir
,
sbindir
,
libexecdir
,
pkglibexecdir
, or
pkgdatadir
.
I'm not sure about the optimal solution, but I just both to bindir and was able to complete the build.
I would be glad to hear other propositions.