Thanks.
For x86, just looked and tried with libffi6.tcz but that didn't work either. Tried with a symlink but no change.
$ autogen
autogen: error while loading shared libraries: libffi.so.5: cannot open shared object file: No such file or directory
$ tce-load -wi libffi6.tcz
Downloading: libffi6.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
saving to 'libffi6.tcz'
libffi6.tcz 100% |****************************************************| 16384 0:00:00 ETA
'libffi6.tcz' saved
libffi6.tcz: OK
$ autogen
autogen: error while loading shared libraries: libffi.so.5: cannot open shared object file: No such file or directory
$ sudo ln -s /tmp/tcloop/libffi6/usr/local/lib/libffi.so.6 /usr/local/lib/libffi.so.5
$ autogen
autogen: error while loading shared libraries: libffi.so.5: cannot open shared object file: No such file or directory
ldd shows it uses both libffi.so.7 and libffi.so.5:
$ ldd /usr/local/bin/autogen
linux-gate.so.1 (0xb7f35000)
libopts.so.25 => /usr/local/lib/libopts.so.25 (0xb7f04000)
libguile-2.0.so.22 => /usr/local/lib/libguile-2.0.so.22 (0xb7dd1000)
libffi.so.5 => not found
libunistring.so.0 => /usr/local/lib/libunistring.so.0 (0xb7cd3000)
libgmp.so.10 => /usr/local/lib/libgmp.so.10 (0xb7c7d000)
libltdl.so.7 => /usr/local/lib/libltdl.so.7 (0xb7c75000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7c43000)
libgc.so.1 => /usr/local/lib/libgc.so.1 (0xb7bee000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7be9000)
libm.so.6 => /lib/libm.so.6 (0xb7b13000)
libdl.so.2 => /lib/libdl.so.2 (0xb7b0e000)
libc.so.6 => /lib/libc.so.6 (0xb7973000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7952000)
libatomic_ops.so.1 => /usr/local/lib/libatomic_ops.so.1 (0xb7950000)
libffi.so.7 => /usr/local/lib/libffi.so.7 (0xb7947000)
/lib/ld-linux.so.2 (0xb7f37000)