2 # Copyright (C) Igor Sysoev
3 # Copyright (C) Nginx, Inc.
6 echo $ngx_n "checking for system byte ordering ...$ngx_c"
8 echo "checking for system byte ordering" >> $NGX_ERR
11 cat << END > $NGX_AUTOTEST.c
18 if (*p == 0x44) return 0;
24 ngx_test="$CC $NGX_CC_OPT $CC_TEST_FLAGS $CC_AUX_FLAGS \
25 -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs"
27 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
29 if [ -x $NGX_AUTOTEST ]; then
30 if $NGX_AUTOTEST >/dev/null 2>&1; then
32 have=NGX_HAVE_LITTLE_ENDIAN . auto/have
43 echo "$0: error: cannot detect system byte ordering"