Changeset 24

Show
Ignore:
Timestamp:
01/07/02 18:22:40 (7 years ago)
Author:
jajcus
Message:

- improvements

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/configure.ac

    • Property svn:eol-style deleted
    • Property svn:keywords deleted
    r20 r24  
    33AM_INIT_AUTOMAKE(jabber-gg-transport, 0.9,jajcus@pld.org.pl) 
    44AC_CONFIG_SRCDIR([src/ggtrans.h]) 
    5 AM_CONFIG_HEADER([config.h]
     5AM_CONFIG_HEADER(config.h
    66 
    77# Checks for programs. 
     
    1111AM_PROG_LIBTOOL 
    1212 
    13 AM_PATH_GLIB 
     13AM_PATH_GLIB(1.2.0,[],AC_MSG_ERROR("You need glib >= 1.2.0 to compile this.")) 
    1414 
    1515# Checks for libraries. 
    16 AC_CHECK_LIB([efence], [main]) 
    17 AC_CHECK_LIB([gg], [gg_login]) 
     16AC_CHECK_LIB([gg], [gg_login],[],AC_MSG_ERROR("You need libgg (from ekg package) to compile this.")) 
     17 
     18AC_ARG_ENABLE(debug, 
     19                AC_HELP_STRING([--enable-debug],[Enable debugging code]), 
     20                [DEBUG=yes],[DEBUG=no]) 
     21 
     22AH_TEMPLATE([DEBUG],[Define to enable debugging code]) 
     23if test "x$DEBUG" = "xyes" ; then 
     24AC_DEFINE(DEBUG) 
     25AC_CHECK_LIB([efence], [malloc]) 
     26fi 
    1827 
    1928# Checks for header files. 
     
    2130AC_HEADER_STDC 
    2231AC_HEADER_SYS_WAIT 
    23 AC_CHECK_HEADERS([arpa/inet.h errno.h fcntl.h netdb.h netinet/in.h stddef.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h unistd.h]) 
     32AC_CHECK_HEADERS([stdlib.h string.h]) 
     33AC_CHECK_HEADERS([sys/socket.h netdb.h netinet/in.h]) 
     34AC_CHECK_HEADERS([sys/time.h unistd.h errno.h fcntl.h]) 
    2435 
    2536# Checks for typedefs, structures, and compiler characteristics. 
     
    3041# Checks for library functions. 
    3142AC_FUNC_ERROR_AT_LINE 
    32 AC_FUNC_MALLOC 
    33 AC_FUNC_MEMCMP 
    3443AC_TYPE_SIGNAL 
    3544AC_FUNC_STAT 
    3645 
    37 AC_CHECK_FUNCS([bzero gethostbyname gethostname isascii]
    38 AC_CHECK_FUNCS([memmove memset modf select socket]
    39 AC_CHECK_FUNCS([strcasecmp strchr strdup strncasecmp strstr]
     46AC_CHECK_FUNCS([gethostbyname isascii],[],AC_MSG_ERROR("Some functions needed are missing")
     47AC_CHECK_FUNCS([select socket],[],AC_MSG_ERROR("Some functions needed are missing")
     48AC_CHECK_FUNCS([memset strchr],[],AC_MSG_ERROR("Some functions needed are missing")
    4049 
    4150AC_CONFIG_SUBDIRS([libxode])