File: configure.in

package info (click to toggle)
centericq 4.21.0-18
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 9,684 kB
  • ctags: 11,757
  • sloc: cpp: 45,714; ansic: 40,223; sh: 23,034; makefile: 687; yacc: 316; perl: 235; sed: 16
file content (37 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
AC_INIT(aclocal.m4)
AM_INIT_AUTOMAKE(libyahoo2, 0.1)

AC_PROG_RANLIB
AC_PROG_CC

AC_ARG_ENABLE(yahoo, [  --disable-yahoo   Build without Yahoo!], build_yahoo="$enableval", build_yahoo="yes")
AM_CONDITIONAL(BUILD_YAHOO, test "x$build_yahoo" = xyes)

if test "$build_yahoo" = "yes"; then
    AC_PROG_CXX
    AC_CHECK_HEADERS(inttypes.h stdint.h)

    AC_MSG_CHECKING(endianness)
    AC_TRY_COMPILE([
	#include <sys/types.h>
	#include <sys/param.h>
    ], [
	#if defined(BYTE_ORDER) && defined(BIG_ENDIAN)
	    #if BYTE_ORDER == BIG_ENDIAN
		bogus
	    #endif
	#else
	    #if defined(_BIG_ENDIAN)
		bogus
	    #endif
	#endif
    ],[
	ac_end=little
    ],[
	AC_DEFINE(WORDS_BIGENDIAN, [big endian architecture])
	ac_end=big
    ])
    AC_MSG_RESULT($ac_end)
fi

AC_OUTPUT(Makefile)