mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-04 00:45:40 +03:00
57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
#
|
|
# Copyright (C) 2010,2011 Olaf Bergmann <bergmann@tzi.org>
|
|
#
|
|
# This file is part of the CoAP library libcoap. Please see
|
|
# README for terms of use.
|
|
|
|
AC_PREREQ([2.65])
|
|
AC_INIT([libcoap], [0.6.0])
|
|
AC_CONFIG_SRCDIR([coap.h])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_MAKE_SET
|
|
AC_PROG_CC
|
|
AC_PROG_RANLIB
|
|
AC_PATH_PROG(DOXYGEN, doxygen, [:])
|
|
AC_PATH_PROG(ETAGS, etags, [/bin/false])
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
# Checks for libraries.
|
|
AC_CHECK_LIB([coap], [coap_new_pdu])
|
|
|
|
AC_SEARCH_LIBS([gethostbyname], [nsl])
|
|
AC_SEARCH_LIBS([socket], [socket])
|
|
|
|
# configuration options that may change compile flags
|
|
AC_ARG_WITH(debug,
|
|
[AS_HELP_STRING([--without-debug],[disable all debug output and assertions])],
|
|
[CPPFLAGS="${CPPFLAGS} -DNDEBUG"],
|
|
[])
|
|
|
|
AC_ARG_WITH(async,
|
|
[AS_HELP_STRING([--without-async],[disable handling of asynchronous transactions and observe])],
|
|
[CPPFLAGS="${CPPFLAGS} -DWITHOUT_ASYNC"],
|
|
[])
|
|
|
|
# Checks for header files.
|
|
AC_CHECK_HEADERS([assert.h arpa/inet.h limits.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h time.h unistd.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_TYPE_SIZE_T
|
|
AC_TYPE_SSIZE_T
|
|
|
|
# Checks for library functions.
|
|
AC_FUNC_MALLOC
|
|
AC_CHECK_FUNCS([memset select socket strcasecmp strrchr getaddrinfo strnlen])
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
AC_CONFIG_FILES([Makefile
|
|
doc/Makefile
|
|
doc/Doxyfile
|
|
examples/Makefile])
|
|
AC_OUTPUT
|