Under Linux (RedHat 8.0), I try to compile php-4.3.3 in cgi for sh4. I use binutils-sh-linux-2.13.90.0.18-1.i386, gcc-sh-linux-3.2.3-3.i386 and libgcj-sh-linux-3.2.3-3.i386, tools for make cross compiling. My problem is
$ CC=sh4-linux-gcc CFLAGS=" -O2 -ml -m4 " ./configure --prefix=/mnt/nfs_sh4/php --build=i686-linux --host=sh4-linux --enable-cli --enable-sockets --enable-mime-magic --with-mysql=/mnt/nfs_sh4/mysql --with-dom=/usr/sh4-linux/include/libxml2 --with-zlib=/usr/sh-linux --without-pear --with-pgsql=/mnt/nfs_sh4/postgresql_7.4.1 --with-tsrm-pthreads
(...)
checking for fopencookie... yes
configure: error: can not run test program while cross compiling
How to disable the creation of test programs?
-- Andreļ V. FOMITCHEV [Quand faut-il arrźter l'informatique] Software R&D Engineer [Lorsque, dans un kilo, on trouve 1024 grammes] Odixion SAS, FRANCE