File:  [ELWIX - Embedded LightWeight unIX -] / libaitmqtt / configure.in
Revision 1.4.2.1: download - view: text, annotated - select for diffs - revision graph
Fri Jun 29 13:55:39 2012 UTC (12 years, 4 months ago) by misho
Branches: mqtt1_4
Diff to: branchpoint 1.4: preferred, unified
new ver 1.4

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

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