error: Cannot determine executable suffix

maddy
hi.. all
.
.
While building the native compiler for ARM, Facing the following error.
.
.


checking for /opt/arm/bin/arm-none-linux-gnueabi-gcc option to accept ISO
C89... none needed
checking for /opt/arm/bin/arm-none-linux-gnueabi-gcc option to accept ISO
C99... -std=gnu99
checking for /opt/arm/bin/arm-none-linux-gnueabi-gcc -std=gnu99 option to
accept ISO Standard C... (cached) -std=gnu99
checking how to run the C preprocessor...
/opt/arm/bin/arm-none-linux-gnueabi-gcc -std=gnu99 -E
checking build system compiler /opt/arm/bin/arm-none-linux-gnueabi-gcc...
yes
checking for build system preprocessor...
/opt/arm/bin/arm-none-linux-gnueabi-gcc -E
checking for build system executable suffix... configure: error: Cannot
determine executable suffix
make[1]: *** [configure-gmp] Error 1
make[1]: Leaving directory `/root/native_arm/build/native-gcc'
.
.
.
I used following command to configure.
.
.
 ../../sources/gcc-4.4.4/configure --build=$BUILDMACH --host=$TARGETMACH
--target=$TARGETMACH --prefix=$INSTALLDIR --with-gmp-include=$(pwd)/gmp
--with-gmp-lib=$(pwd)/gmp/.libs --enable-language=c --with-gnueabi-ld
--with-gnueabi-as --enable-threads=posix --disable-multilib
--disable-werror
.
.