configure.ac (1.1.1.2) | configure.ac (1.1.1.3) |
---|---|
1dnl Copyright 2000-2007 Niels Provos 2dnl Copyright 2007-2012 Niels Provos and Nick Mathewson 3dnl 4dnl See LICENSE for copying information. 5dnl 6dnl Original version Dug Song <dugsong@monkey.org> 7 | 1dnl Copyright 2000-2007 Niels Provos 2dnl Copyright 2007-2012 Niels Provos and Nick Mathewson 3dnl 4dnl See LICENSE for copying information. 5dnl 6dnl Original version Dug Song <dugsong@monkey.org> 7 |
8AC_INIT(libevent,2.1.3-alpha-dev) | 8AC_INIT(libevent,2.1.5-beta) |
9AC_PREREQ(2.59) 10AC_CONFIG_SRCDIR(event.c) 11 12AC_CONFIG_MACRO_DIR([m4]) 13AC_CONFIG_AUX_DIR([build-aux]) | 9AC_PREREQ(2.59) 10AC_CONFIG_SRCDIR(event.c) 11 12AC_CONFIG_MACRO_DIR([m4]) 13AC_CONFIG_AUX_DIR([build-aux]) |
14 | |
15AM_INIT_AUTOMAKE 16dnl AM_SILENT_RULES req. automake 1.11. [no] defaults V=1 17m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 18AC_CONFIG_HEADERS(config.h evconfig-private.h:evconfig-private.h.in) | 14AM_INIT_AUTOMAKE 15dnl AM_SILENT_RULES req. automake 1.11. [no] defaults V=1 16m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 17AC_CONFIG_HEADERS(config.h evconfig-private.h:evconfig-private.h.in) |
19AC_DEFINE(NUMERIC_VERSION, 0x02010301, [Numeric representation of the version]) | 18AC_DEFINE(NUMERIC_VERSION, 0x02010500, [Numeric representation of the version]) |
20 21dnl Initialize prefix. 22if test "$prefix" = "NONE"; then 23 prefix="/usr/local" 24fi 25 26dnl Try and get a full POSIX environment on obscure systems 27ifdef([AC_USE_SYSTEM_EXTENSIONS], [ --- 80 unchanged lines hidden (view full) --- 108 AS_HELP_STRING(--disable-debug-mode, disable support for running in debug mode), 109 [], [enable_debug_mode=yes]) 110AC_ARG_ENABLE([libevent-install], 111 AS_HELP_STRING([--disable-libevent-install, disable installation of libevent]), 112 [], [enable_libevent_install=yes]) 113AC_ARG_ENABLE([libevent-regress], 114 AS_HELP_STRING([--disable-libevent-regress, skip regress in make check]), 115 [], [enable_libevent_regress=yes]) | 19 20dnl Initialize prefix. 21if test "$prefix" = "NONE"; then 22 prefix="/usr/local" 23fi 24 25dnl Try and get a full POSIX environment on obscure systems 26ifdef([AC_USE_SYSTEM_EXTENSIONS], [ --- 80 unchanged lines hidden (view full) --- 107 AS_HELP_STRING(--disable-debug-mode, disable support for running in debug mode), 108 [], [enable_debug_mode=yes]) 109AC_ARG_ENABLE([libevent-install], 110 AS_HELP_STRING([--disable-libevent-install, disable installation of libevent]), 111 [], [enable_libevent_install=yes]) 112AC_ARG_ENABLE([libevent-regress], 113 AS_HELP_STRING([--disable-libevent-regress, skip regress in make check]), 114 [], [enable_libevent_regress=yes]) |
115AC_ARG_ENABLE([samples], 116 AS_HELP_STRING([--disable-samples, skip building of sample programs]), 117 [], [enable_samples=yes]) |
|
116AC_ARG_ENABLE([function-sections], 117 AS_HELP_STRING([--enable-function-sections, make static library allow smaller binaries with --gc-sections]), 118 [], [enable_function_sections=no]) 119AC_ARG_ENABLE([verbose-debug], 120 AS_HELP_STRING([--enable-verbose-debug, verbose debug logging]), 121 [], [enable_verbose_debug=no]) 122 123 124AC_PROG_LIBTOOL 125 126dnl Uncomment "AC_DISABLE_SHARED" to make shared libraries not get 127dnl built by default. You can also turn shared libs on and off from 128dnl the command line with --enable-shared and --disable-shared. 129dnl AC_DISABLE_SHARED 130AC_SUBST(LIBTOOL_DEPS) 131 | 118AC_ARG_ENABLE([function-sections], 119 AS_HELP_STRING([--enable-function-sections, make static library allow smaller binaries with --gc-sections]), 120 [], [enable_function_sections=no]) 121AC_ARG_ENABLE([verbose-debug], 122 AS_HELP_STRING([--enable-verbose-debug, verbose debug logging]), 123 [], [enable_verbose_debug=no]) 124 125 126AC_PROG_LIBTOOL 127 128dnl Uncomment "AC_DISABLE_SHARED" to make shared libraries not get 129dnl built by default. You can also turn shared libs on and off from 130dnl the command line with --enable-shared and --disable-shared. 131dnl AC_DISABLE_SHARED 132AC_SUBST(LIBTOOL_DEPS) 133 |
134AM_CONDITIONAL([BUILD_SAMPLES], [test "$enable_samples" = "yes"]) |
|
132AM_CONDITIONAL([BUILD_REGRESS], [test "$enable_libevent_regress" = "yes"]) 133 134dnl Checks for libraries. 135AC_SEARCH_LIBS([inet_ntoa], [nsl]) 136AC_SEARCH_LIBS([socket], [socket]) 137AC_SEARCH_LIBS([inet_aton], [resolv]) 138AC_SEARCH_LIBS([clock_gettime], [rt]) 139AC_SEARCH_LIBS([sendfile], [sendfile]) --- 579 unchanged lines hidden (view full) --- 719 AC_MSG_RESULT([no]) 720 AC_DEFINE(__func__, __FILE__, 721 [Define to appropriate substitue if compiler doesnt have __func__]))) 722 723 724# check if we can compile with pthreads 725have_pthreads=no 726if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then | 135AM_CONDITIONAL([BUILD_REGRESS], [test "$enable_libevent_regress" = "yes"]) 136 137dnl Checks for libraries. 138AC_SEARCH_LIBS([inet_ntoa], [nsl]) 139AC_SEARCH_LIBS([socket], [socket]) 140AC_SEARCH_LIBS([inet_aton], [resolv]) 141AC_SEARCH_LIBS([clock_gettime], [rt]) 142AC_SEARCH_LIBS([sendfile], [sendfile]) --- 579 unchanged lines hidden (view full) --- 722 AC_MSG_RESULT([no]) 723 AC_DEFINE(__func__, __FILE__, 724 [Define to appropriate substitue if compiler doesnt have __func__]))) 725 726 727# check if we can compile with pthreads 728have_pthreads=no 729if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then |
727 OL_THREAD_CHECK([ 728 have_pthreads=yes 729 PTHREAD_LIBS="$LTHREAD_LIBS" 730 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 731 AC_CHECK_SIZEOF( 732 [pthread_t], 733 [], 734 [ 735 AC_INCLUDES_DEFAULT() 736 #include <pthread.h> 737 ] 738 ) 739 ]) | 730 ACX_PTHREAD([ 731 AC_DEFINE(HAVE_PTHREADS, 1, 732 [Define if we have pthreads on this system]) 733 have_pthreads=yes]) 734 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 735 AC_CHECK_SIZEOF(pthread_t, , 736 [AC_INCLUDES_DEFAULT() 737 #include <pthread.h> ] 738 ) |
740fi | 739fi |
741AC_SUBST([PTHREAD_LIBS]) 742AC_SUBST([PTHREAD_CFLAGS]) | |
743AM_CONDITIONAL([PTHREADS], [test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"]) 744 745# check if we should compile locking into the library 746if test x$enable_thread_support = xno; then 747 AC_DEFINE(DISABLE_THREAD_SUPPORT, 1, 748 [Define if libevent should not be compiled with thread support]) 749fi 750 --- 169 unchanged lines hidden --- | 740AM_CONDITIONAL([PTHREADS], [test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"]) 741 742# check if we should compile locking into the library 743if test x$enable_thread_support = xno; then 744 AC_DEFINE(DISABLE_THREAD_SUPPORT, 1, 745 [Define if libevent should not be compiled with thread support]) 746fi 747 --- 169 unchanged lines hidden --- |