root/trunk/libxode/configure.ac

Revision 591, 1.0 kB (checked in by jajcus, 4 years ago)

- fail if Expat is not available

  • Property svn:eol-style set to native
  • Property svn:keywords set to author date id
Line 
1 AC_INIT([libxode],[1.2-jggtrans],[])
2 AC_CONFIG_SRCDIR([src/xmlnode.c])
3 AM_INIT_AUTOMAKE
4 AM_CONFIG_HEADER(include/config.h)
5
6 AC_DISABLE_SHARED
7 AC_ENABLE_STATIC
8
9 AC_PROG_CC
10 AM_PROG_LIBTOOL
11 AC_PROG_INSTALL
12 AC_STDC_HEADERS
13 AC_C_BIGENDIAN
14
15 AM_PATH_EXPAT([1.95.1],[],[AC_MSG_ERROR([Expat is required, but not found])])
16 AC_CHECK_FUNC(snprintf,AC_DEFINE(HAVE_SNPRINTF,1,[Define if snprintf function is available]))
17
18 AC_CHECK_LIB(nsl, gethostent)
19 AC_CHECK_FUNC(connect,AC_DEFINE(HAVE_LIBSOCKET,1,[Define if libsocket library is used]),[
20           AC_CHECK_LIB(socket,connect,use_lib_socket=yes,AC_MSG_ERROR([
21 *************************************************************
22 *  You do not seem to have the socket call available as a   *
23 *  function or in the socket library.  This problem must be *
24 *  fixed before you can continue.                           *
25 *************************************************************]))])
26
27 AC_CHECK_SIZEOF(int)
28 AC_CHECK_SIZEOF(short)
29
30 AC_OUTPUT(Makefile \
31     libxode-config \
32         src/Makefile \
33         include/Makefile)
Note: See TracBrowser for help on using the browser.