annotate src/liblo-0.26/configure.ac @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 8a15ff55d9af
children
rev   line source
cannam@89 1 AC_PREREQ(2.57)
cannam@89 2
cannam@89 3 AC_INIT([liblo], [0.26], [liblo-devel@lists.sourceforge.net])
cannam@89 4
cannam@89 5 # libtool version: current:revision:age
cannam@89 6 #
cannam@89 7 # If the library source code has changed at all since the last update, then
cannam@89 8 # increment revision (`c:r:a' becomes `c:r+1:a').
cannam@89 9 #
cannam@89 10 # If any interfaces have been added, removed, or changed since the last update,
cannam@89 11 # increment current, and set revision to 0.
cannam@89 12 #
cannam@89 13 # If any interfaces have been added since the last public release, then
cannam@89 14 # increment age.
cannam@89 15 #
cannam@89 16 # If any interfaces have been removed since the last public release, then set
cannam@89 17 # age to 0.
cannam@89 18 LO_SO_VERSION=7:0:0
cannam@89 19
cannam@89 20 AC_CONFIG_SRCDIR([src/address.c])
cannam@89 21 AM_CONFIG_HEADER([config.h])
cannam@89 22
cannam@89 23 AM_INIT_AUTOMAKE
cannam@89 24
cannam@89 25 AC_ENABLE_STATIC(no)
cannam@89 26 AC_ENABLE_SHARED(yes)
cannam@89 27 AC_SUBST(LO_SO_VERSION)
cannam@89 28
cannam@89 29 # disable support for ipv6.
cannam@89 30 AC_ARG_ENABLE(ipv6, [ --enable-ipv6 Enable ipv6 support],want_ipv6=yes,)
cannam@89 31 if test "$want_ipv6" = "yes"; then
cannam@89 32 AC_DEFINE(ENABLE_IPV6, 1, Define this to enable ipv6.)
cannam@89 33 fi
cannam@89 34
cannam@89 35 # Checks for programs.
cannam@89 36 AC_PROG_CC
cannam@89 37 AM_PROG_LIBTOOL
cannam@89 38 AM_PROG_CC_C_O
cannam@89 39 AC_CHECK_PROG([DOXYGEN], [doxygen], [doc], [])
cannam@89 40 AC_SUBST(DOXYGEN)
cannam@89 41
cannam@89 42 # Checks for libraries.
cannam@89 43 AC_CHECK_LIB([pthread], [pthread_create])
cannam@89 44 AC_SEARCH_LIBS([recvfrom], [socket])
cannam@89 45 AC_CHECK_FUNC([log], [], [AC_CHECK_LIB([m],[log])])
cannam@89 46
cannam@89 47 # Checks for header files.
cannam@89 48 AC_HEADER_STDC
cannam@89 49 AC_CHECK_HEADERS([netdb.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h])
cannam@89 50
cannam@89 51 # Checks for typedefs, structures, and compiler characteristics.
cannam@89 52 AC_C_CONST
cannam@89 53 AC_TYPE_SIZE_T
cannam@89 54
cannam@89 55 # Check for features
cannam@89 56 AC_CHECK_FUNC([select], [AC_DEFINE(HAVE_SELECT, [1], [Define to 1 if select() is available.])], [
cannam@89 57 AC_MSG_CHECKING([for select in ws2_32])
cannam@89 58 LIBS="$LIBS -lws2_32"
cannam@89 59 # some winsock2 functions require XP, so WINNT=0x501
cannam@89 60 CFLAGS="$CFLAGS -DWIN32 -D_WIN32_WINNT=0x501"
cannam@89 61 AC_TRY_LINK([#include <winsock2.h>],
cannam@89 62 [select(0,0,0,0,0)],
cannam@89 63 [AC_MSG_RESULT(yes)
cannam@89 64 AC_DEFINE(HAVE_SELECT, [1], [Define to 1 if select() is available.])],
cannam@89 65 [AC_MSG_RESULT(no)])
cannam@89 66 ])
cannam@89 67 AC_CHECK_FUNC([poll], [AC_DEFINE(HAVE_POLL, [1], [Define to 1 if poll() is available.])])
cannam@89 68 AC_CHECK_FUNC([inet_aton], [AC_DEFINE(HAVE_INET_ATON, [1], [Define to 1 if inet_aton() is available.])])
cannam@89 69
cannam@89 70 AC_C_BIGENDIAN([LO_BIGENDIAN="1"], [LO_BIGENDIAN="0"])
cannam@89 71 AC_DEFINE_UNQUOTED(LO_BIGENDIAN, "$LO_BIGENDIAN", [If machine is bigendian])
cannam@89 72 AC_SUBST(LO_BIGENDIAN)
cannam@89 73
cannam@89 74 AC_CONFIG_FILES([
cannam@89 75 Makefile
cannam@89 76 src/Makefile
cannam@89 77 src/tools/Makefile
cannam@89 78 examples/Makefile
cannam@89 79 lo/Makefile
cannam@89 80 lo/lo_endian.h
cannam@89 81 liblo.pc
cannam@89 82 doc/Makefile
cannam@89 83 doc/reference.doxygen
cannam@89 84 build/Makefile
cannam@89 85 ])
cannam@89 86 AC_OUTPUT()