ports/archivers/unadf/files/patch-Lib::myconf
Edwin Groothuis 625c7a3ec8 [patch] archivers/unadf and "#define LITT_ENDIAN must exist"
Script Lib/myconf has problem with detecting Big or Little Endian
	machine and he always set "Big Endian machine". archivers/unadf will
	compile but when you want to unpack some files you will get this
	message:
	"Compilation error : #define LITT_ENDIAN must exist"

PR:		ports/53622
Submitted by:	Jacek Serwatynski <tutus@trynet.eu.org> <tutus@trynet.eu.org>
2003-08-31 13:13:37 +00:00

25 lines
717 B
Text

--- Lib/myconf Sat Aug 19 03:08:08 2000
+++ Lib/myconf.new Mon Jun 23 01:32:48 2003
@@ -31,17 +31,17 @@
gcc myctest.c -o myctest
rm myctest.c
-if [ `myctest |cut -d' ' -f 1` != 4 ]
+if [ `./myctest |cut -d' ' -f 1` != 4 ]
then echo "Error : sizeof(long)!=4"
fi
-if [ `myctest |cut -d' ' -f 2` != 2 ]
+if [ `./myctest |cut -d' ' -f 2` != 2 ]
then echo "Error : sizeof(short)!=2"
fi
-if [ `myctest |cut -d' ' -f 3` != 4 ]
+if [ `./myctest |cut -d' ' -f 3` != 4 ]
then echo "Error :sizeof(int)!=4"
fi
-if [ `myctest |cut -d' ' -f 4` = LITTLE ]
+if [ `./myctest |cut -d' ' -f 4` = LITTLE ]
then
echo "#ifndef LITT_ENDIAN" >defendian.h
echo "#define LITT_ENDIAN 1" >>defendian.h