1 AC_DEFUN(SWF_CHECK_BYTEORDER,
3 AC_MSG_CHECKING([for byte order])
5 int main (int argc, char *argv[])
10 ], BIGENDIAN=1, LITTLEENDIAN=1, CROSSCOMPILE=1)
13 if test "x${CROSSCOMPILE}" = "x1"; then
14 AC_MSG_RESULT(we are cross compiling- trying to guess from system type)
16 AC_MSG_CHECKING([for byte order, try 2])
21 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
28 if test "x${LITTLEENDIAN}" = "x1"; then
29 AC_MSG_RESULT(little endian)
33 if test "x${BIGENDIAN}" = "x1"; then
34 AC_MSG_RESULT(big endian)
37 export WORDS_BIGENDIAN
38 AC_DEFINE_UNQUOTED(WORDS_BIGENDIAN, 1)
40 if test "x${BYTEORDERCHECKOK}" != "x1"; then
41 AC_MSG_RESULT(unknown)
42 echo Byte order could not determined. Try to insert your system type into aclocal.m4 about line 21
47 AC_DEFUN(SWF_CHECK_SYSTEM_BACKTICKS,
49 AC_MSG_CHECKING([whether system() can handle command substitution])
52 int main (int argc, char*argv[])
54 return system("echo `echo 0` > config.tmp2");
56 ], OK=OK,,CROSSCOMPILE=1)
58 if test "x${OK}" = "xOK";then
59 test -s config.tmp2 || OK=
62 if test "x${CROSSCOMPILE}" = "x1";then
65 if test "x${OK}" = "xOK";then
68 export SYSTEM_BACKTICKS=1
69 AC_DEFINE_UNQUOTED(SYSTEM_BACKTICKS, 1)