# generated 2001/9/1 14:20:31 EDT by vladg@erols.com # # $Id: configure.in,v 1.15 2006/07/23 02:26:45 vlg Exp $ # dnl ---------------------------------------------------------------------------- dnl Initialization dnl ---------------------------------------------------------------------------- AC_INIT(assa/GenServer.cpp) AM_ACLOCAL_INCLUDE(macros) AM_CONFIG_HEADER(config.h) dnl ---------------------------------------------------------------------------- dnl Package name and release number dnl dnl Legend: dnl dnl +1 : ? : +1 == new interface that does not break old one dnl +1 : ? : 0 == new interface that breaks old one dnl ? : ? : 0 == no new interfaces, but breaks apps dnl ? :+1 : ? == just some internal changes, nothing breaks but might work dnl better dnl ---------------------------------------------------------------------------- ASSA_MAJOR_VERSION=3 ASSA_MINOR_VERSION=4 ASSA_MICRO_VERSION=2 dnl ---------------------------------------------------------------------------- dnl "The library version number is for the use of the runtime loader, and dnl is completely unrelated to the release number of your project. dnl If you really want to encode the project release into the library, dnl you can use '-release' to do it. dnl The effect would be libname-RELEASE.so.CURRENT.REVISION.AGE" dnl dnl From libtool User's Manual (Chapter 6, Library interface version): dnl dnl "Interface for libraries may be many any of the following (and more): dnl dnl - global variables: both names and types dnl - global functions: argument types and numbers, return types, dnl function names dnl - standard I/O and file formats dnl - sockets, pipes, and inter-process communication protocol formats" dnl dnl libtool library versions are described by three integers: dnl dnl current - the most recent interface number this library implements dnl revision - the implementation number of the current interface dnl age - the difference between the newest and the oldest dnl interfaces that this library implements. The library dnl implements all the interface numbers in the range from dnl number [current - age; current] dnl dnl If two libraries have identical current and age numbers, then the dnl dynamic linker chooses the library with the greater revision number. dnl 'Age' must be less or equal to the 'current' interface number. dnl dnl Simple rules: dnl dnl 1. Start with version number 0.0.0 for each library dnl dnl 2. If the library source code has changed at all since the dnl last update, then increment 'revision': (current : revision+1 : age) dnl dnl 3. If any interfaces has been added, removed, or changed since dnl the last update, increment 'current' and set 'revision' to 0: dnl (current+1 : 0 : age) dnl dnl 4. If any interface has been added since the last public release, then dnl increment age: (current : revision : age+1) dnl dnl 5. If any interface has been removed since the last public release, dnl then set age to 0: (current : revision : 0) dnl dnl dnl CURRENT : REVISION : AGE dnl ---------------------------------------------------------------------------- dnl libassa-3.1.0: LIBASSA_SO_VERSION=2:0:1 dnl libassa-3.2.0: LIBASSA_SO_VERSION=3:0:2 dnl libassa-3.3.0: LIBASSA_SO_VERSION=3:1:3 dnl libassa-3.3.1: LIBASSA_SO_VERSION=3:2:3 dnl libassa-3.3.2: LIBASSA_SO_VERSION=3:3:3 dnl libassa-3.4.0: LIBASSA_SO_VERSION=4:0:4 dnl libassa-3.4.1: LIBASSA_SO_VERSION=4:1:4 dnl libassa-3.4.2: LIBASSA_SO_VERSION=4:2:4 dnl LIBASSA_SO_VERSION=4:2:4 ASSA_VERSION=$ASSA_MAJOR_VERSION.$ASSA_MINOR_VERSION.$ASSA_MICRO_VERSION ASSA_RELEASE=$ASSA_MAJOR_VERSION.$ASSA_MINOR_VERSION AC_DEFINE_UNQUOTED(ASSA_MAJOR_VERSION, $ASSA_MAJOR_VERSION,[Major version]) AC_DEFINE_UNQUOTED(ASSA_MINOR_VERSION, $ASSA_MINOR_VERSION,[Minor version]) AC_DEFINE_UNQUOTED(ASSA_MICRO_VERSION, $ASSA_MICRO_VERSION,[Micro version]) AC_SUBST(ASSA_VERSION) AC_SUBST(ASSA_RELEASE) AC_SUBST(LIBASSA_SO_VERSION) dnl For automake. VERSION=$ASSA_VERSION PACKAGE=libassa AM_INIT_AUTOMAKE($PACKAGE, $VERSION) dnl ---------------------------------------------------------------------------- dnl Check for doxygen/dot dnl ---------------------------------------------------------------------------- BB_ENABLE_DOXYGEN dnl ---------------------------------------------------------------------------- dnl Check for development environment dnl ---------------------------------------------------------------------------- AC_PROG_CC AC_PROG_CXX AC_PROG_CXXCPP AC_LIBTOOL_WIN32_DLL AC_PROG_LIBTOOL AM_SANITY_CHECK AC_LANG_CPLUSPLUS dnl ---------------------------------------------------------------------------- dnl Check for development environment. dnl ---------------------------------------------------------------------------- WIN32_EXTRA_LIBADD= WIN32_EXTRA_LDFLAGS= AC_CHECK_LIB(rpc, main, [LIBRPC="-lrpc"]) AC_SUBST(LIBRPC) AC_MSG_CHECKING([for win32 environment... ]) case "$host_os" in cygwin*) WIN32_EXTRA_LDFLAGS="--no-undefined" WIN32_EXTRA_LIBADD="$LIBRPC" AC_MSG_RESULT([found cygwin: added -no-undefined to LDFLAGS]) ;; *mingw*) WIN32_EXTRA_LDFLAGS="-Wl,--no-undefined -Wl,--enable-runtime-pseudo-reloc" WIN32_EXTRA_LIBADD="--no-undefined -lregex $LIBRPC -lwsock32" AC_MSG_RESULT([found mingw32: added -lregex -lwsock32 to LDFLAGS]) ;; esac AC_SUBST(WIN32_EXTRA_LDFLAGS) AC_SUBST(WIN32_EXTRA_LIBADD) dnl ---------------------------------------------------------------------------- dnl Do we have to build self-tests? dnl ---------------------------------------------------------------------------- AC_ARG_ENABLE(selftests, [ --enable-selftests compiling self-tests suite (default=no)], [], [enable_selftests=no]) if test "x$enable_selftests" = xno; then with_selftests=no else with_selftests=yes fi AM_CONDITIONAL(SELF_TESTS_ENABLED, test x$with_selftests = xyes) dnl ---------------------------------------------------------------------------- dnl Do we have to build examples? dnl ---------------------------------------------------------------------------- AC_ARG_ENABLE(examples, [ --enable-examples compiling examples (default=no)], [], [enable_examples=no]) if test "x$enable_examples" = xno; then with_examples=no else with_examples=yes fi AM_CONDITIONAL(EXAMPLES_ENABLED, test x$with_examples = xyes) dnl ---------------------------------------------------------------------------- dnl Generate Makefile's, configuration files and scripts dnl ---------------------------------------------------------------------------- AC_OUTPUT([ Makefile assa.spec assa-3.4.pc assa/Makefile utils/Makefile doc/Makefile doc/Doxyfile tests/Makefile examples/Makefile examples/helloworld/Makefile examples/logserver/Makefile examples/logserver/server/Makefile examples/logserver/monitor/Makefile examples/logserver/client/Makefile ])