Launch the configure script as follows:
CC=${CROSS_COMPILER_PATH}/bin/gcc ./configure --prefix=/tmp/123 --host=<ARCH>where <ARCH> is the target architecture, e.g. arm-linux-gnueabihf.
Alternatively, edit configure and find this line:
cross_compiling=noChange no to yes. Note that in the configure script, one can also find the following code snippet:
if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fiAnyway, make sure cross_compiling is set to no.
$ aclocalFrom configure.in and Makefile.am, it generates aclocal.m4.
$ autoconf -v -fIt generates configure script.
$ touch AUTHORS NEWS README ChangeLog
$ libtoolize -v -f
$ autoheader -v -f
$ automake -a -f
$ autoreconf -vif