Annotation of libaitmqtt/configure.in, revision 1.8

1.1       misho       1: #
                      2: # $Author: misho $
1.8     ! misho       3: # $Id: configure.in,v 1.7.2.2 2014/01/21 16:09:46 misho Exp $
1.1       misho       4: #
1.8     ! misho       5: AC_INIT(libaitmqtt, 1.7, misho@elwix.org)
1.1       misho       6: AC_CONFIG_SRCDIR([src/aitmqtt.c])
                      7: AC_CONFIG_HEADERS([inc/config.h])
                      8: 
1.7       misho       9: ac_cv_func_malloc_0_nonnull="yes"
                     10: ac_cv_func_realloc_0_nonnull="yes"
                     11: 
1.1       misho      12: # Checks for programs.
                     13: AC_PROG_CC
                     14: AC_PROG_RANLIB
                     15: AC_PROG_INSTALL
                     16: 
                     17: AC_CANONICAL_HOST
                     18: AC_CANONICAL_TARGET
                     19: 
                     20: AC_CHECK_TOOL(AR, ar, no)
                     21: AC_SUBST(AR)
                     22: AC_CHECK_TOOL(MKDEP, mkdep, no)
                     23: AC_SUBST(MKDEP)
                     24: 
1.8     ! misho      25: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
        !            26: LDFLAGS="${LDFLAGS}"
1.1       misho      27: 
                     28: 
                     29: # Checks for libraries.
                     30: 
                     31: # Checks for header files.
                     32: AC_CHECK_HEADERS([arpa/inet.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h])
                     33: 
                     34: # Checks for typedefs, structures, and compiler characteristics.
                     35: AC_C_INLINE
                     36: 
                     37: # Checks for library functions.
                     38: AC_FUNC_MALLOC
                     39: AC_FUNC_REALLOC
                     40: AC_CHECK_FUNCS([memset strdup strerror strtol])
                     41: 
                     42: DEBUG=no
                     43: AC_MSG_CHECKING(Debug Build)
                     44: AC_ARG_ENABLE(debug,
                     45:        [  --enable-debug          Build library with debug information and additional messages],
                     46:        [ DEBUG=$enableval
                     47:                case "$enableval" in
                     48:                        yes)
                     49:                                AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
                     50:                                CFLAGS="-g ${CFLAGS}"
                     51:                                ;;
                     52:                        *)
                     53:                                AC_DEFINE(NDEBUG,, [Turn off debug asserts])
                     54:                                ;;
                     55:                esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts]))
                     56: AC_MSG_RESULT($DEBUG)
                     57: 
                     58: AC_CONFIG_FILES([Makefile
                     59:                  inc/Makefile
                     60:                  lib/Makefile
                     61:                  src/Makefile])
                     62: AC_OUTPUT

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>