Recoded German translation to UTF-8, otherwise it would prevent centerim
[centerim.git] / libyahoo2 / configure.ac
blob5abeaf7b051aa376f0dcbc0762a204a64fbe0aba
1 AC_INIT(aclocal.m4)
2 AM_INIT_AUTOMAKE(libyahoo2, 0.1)
4 AC_PROG_RANLIB
5 AC_PROG_CC
6 AC_PROG_CXX
8 AC_ARG_ENABLE(yahoo, [  --disable-yahoo   Build without Yahoo!], build_yahoo="$enableval", build_yahoo="yes")
9 AM_CONDITIONAL(BUILD_YAHOO, test "x$build_yahoo" = xyes)
11 if test "$build_yahoo" = "yes"; then
12     AC_CHECK_HEADERS(inttypes.h stdint.h)
14     AC_MSG_CHECKING(endianness)
15     AC_TRY_COMPILE([
16         #include <sys/types.h>
17         #include <sys/param.h>
18     ], [
19         #if defined(BYTE_ORDER) && defined(BIG_ENDIAN)
20             #if BYTE_ORDER == BIG_ENDIAN
21                 bogus
22             #endif
23         #else
24             #if defined(_BIG_ENDIAN)
25                 bogus
26             #endif
27         #endif
28     ],[
29         ac_end=little
30     ],[
31         AC_DEFINE(WORDS_BIGENDIAN, [big endian architecture])
32         ac_end=big
33     ])
34     AC_MSG_RESULT($ac_end)
37 AC_OUTPUT(Makefile)