I get this during the autogen. I suspect this is what is causing the problems.
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirecto ry
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
Makefile.am:18: warning: source file 'x2/sha2-arm.S' is in a subdirectory,
Makefile.am:18: but option 'subdir-objects' is disabled
Makefile.am:18: warning: source file 'x2/sha2-x86.S' is in a subdirectory,
Makefile.am:18: but option 'subdir-objects' is disabled
Makefile.am:18: warning: source file 'x2/sha2-x64.S' is in a subdirectory,
Makefile.am:18: but option 'subdir-objects' is disabled
Makefile.am:18: warning: source file 'x2/scrypt.c' is in a subdirectory,
add configure.ac:
AM_INIT_AUTOMAKE([subdir-objects])
or
add in Makefile.am
AUTOMAKE_OPTIONS = subdir-objects