Allow the byteorder and target os type to be specified via environment variables when running the configured shell script, don't try and run the resultant binary after building it, don't set various compiler related environment varibles - we'll let OE set those. diff -dur hping2-rc3-orig/configure hping2-rc3/configure --- hping2-rc3-orig/configure 2005-12-03 19:04:44.000000000 +1100 +++ hping2-rc3/configure 2005-12-03 19:05:58.000000000 +1100 @@ -13,16 +13,19 @@ exit 0 fi -CC=${CC:=cc} +if [ "x$BYTEORDER" = "x" ]; then + CC=${CC:=cc} -echo build byteorder.c... -$CC byteorder.c -o byteorder || exit 1 + echo build byteorder.c... + $CC byteorder.c -o byteorder || exit 1 + + BYTEORDER=`./byteorder -m` +fi INSTALL_MANPATH=`echo $MANPATH|cut -f1 -d:` if [ "$INSTALL_MANPATH" = "" ]; then INSTALL_MANPATH="/usr/local/man" fi -BYTEORDER=`./byteorder -m` echo create byteorder.h... cat > byteorder.h <