Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Side by Side Diff: third_party/libevent/configure.in

Issue 412006: posix: upgrade libevent from 1.4.7 to 1.4.13 (Closed)
Patch Set: better readme Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 dnl configure.in for libevent 1 dnl configure.in for libevent
2 dnl Dug Song <dugsong@monkey.org> 2 dnl Dug Song <dugsong@monkey.org>
3 AC_INIT(event.c) 3 AC_INIT(event.c)
4 4
5 AM_INIT_AUTOMAKE(libevent,1.4.7-stable) 5 AM_INIT_AUTOMAKE(libevent,1.4.13-stable)
6 AM_CONFIG_HEADER(config.h) 6 AM_CONFIG_HEADER(config.h)
7 dnl AM_MAINTAINER_MODE 7 dnl AM_MAINTAINER_MODE
8 8
9 dnl Initialize prefix. 9 dnl Initialize prefix.
10 if test "$prefix" = "NONE"; then 10 if test "$prefix" = "NONE"; then
11 prefix="/usr/local" 11 prefix="/usr/local"
12 fi 12 fi
13 13
14 dnl Checks for programs. 14 dnl Checks for programs.
15 AC_PROG_CC 15 AC_PROG_CC
16 AC_PROG_INSTALL 16 AC_PROG_INSTALL
17 AC_PROG_LN_S 17 AC_PROG_LN_S
18 18
19 AC_PROG_GCC_TRADITIONAL 19 AC_PROG_GCC_TRADITIONAL
20 if test "$GCC" = yes ; then 20 if test "$GCC" = yes ; then
21 CFLAGS="$CFLAGS -Wall" 21 CFLAGS="$CFLAGS -Wall"
22 # And disable the strict-aliasing optimization, since it breaks
23 # our sockaddr-handling code in strange ways.
24 CFLAGS="$CFLAGS -fno-strict-aliasing"
22 fi 25 fi
23 26
24 AC_ARG_ENABLE(gcc-warnings, 27 AC_ARG_ENABLE(gcc-warnings,
25 AS_HELP_STRING(--enable-gcc-warnings, enable verbose warnings with GCC)) 28 AS_HELP_STRING(--enable-gcc-warnings, enable verbose warnings with GCC))
26 29
27 AC_PROG_LIBTOOL 30 AC_PROG_LIBTOOL
28 31
29 dnl Uncomment "AC_DISABLE_SHARED" to make shared librraries not get 32 dnl Uncomment "AC_DISABLE_SHARED" to make shared librraries not get
30 dnl built by default. You can also turn shared libs on and off from 33 dnl built by default. You can also turn shared libs on and off from
31 dnl the command line with --enable-shared and --disable-shared. 34 dnl the command line with --enable-shared and --disable-shared.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 ) 129 )
127 130
128 AM_CONDITIONAL(BUILD_WIN32, test x$bwin32 = xtrue) 131 AM_CONDITIONAL(BUILD_WIN32, test x$bwin32 = xtrue)
129 132
130 dnl Checks for typedefs, structures, and compiler characteristics. 133 dnl Checks for typedefs, structures, and compiler characteristics.
131 AC_C_CONST 134 AC_C_CONST
132 AC_C_INLINE 135 AC_C_INLINE
133 AC_HEADER_TIME 136 AC_HEADER_TIME
134 137
135 dnl Checks for library functions. 138 dnl Checks for library functions.
136 AC_CHECK_FUNCS(gettimeofday vasprintf fcntl clock_gettime strtok_r strsep getadd rinfo getnameinfo strlcpy inet_ntop signal sigaction strtoll) 139 AC_CHECK_FUNCS(gettimeofday vasprintf fcntl clock_gettime strtok_r strsep getadd rinfo getnameinfo strlcpy inet_ntop signal sigaction strtoll issetugid geteuid g etegid)
137 140
138 AC_CHECK_SIZEOF(long) 141 AC_CHECK_SIZEOF(long)
139 142
140 if test "x$ac_cv_func_clock_gettime" = "xyes"; then 143 if test "x$ac_cv_func_clock_gettime" = "xyes"; then
141 AC_DEFINE(DNS_USE_CPU_CLOCK_FOR_ID, 1, [Define if clock_gettime is available in libc]) 144 AC_DEFINE(DNS_USE_CPU_CLOCK_FOR_ID, 1, [Define if clock_gettime is available in libc])
142 else 145 else
143 AC_DEFINE(DNS_USE_GETTIMEOFDAY_FOR_ID, 1, [Define is no secure id variant is available]) 146 AC_DEFINE(DNS_USE_GETTIMEOFDAY_FOR_ID, 1, [Define is no secure id variant is available])
144 fi 147 fi
145 148
146 AC_MSG_CHECKING(for F_SETFD in fcntl.h) 149 AC_MSG_CHECKING(for F_SETFD in fcntl.h)
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 AC_TYPE_SIZE_T 302 AC_TYPE_SIZE_T
300 AC_CHECK_TYPES([uint64_t, uint32_t, uint16_t, uint8_t], , , 303 AC_CHECK_TYPES([uint64_t, uint32_t, uint16_t, uint8_t], , ,
301 [#ifdef HAVE_STDINT_H 304 [#ifdef HAVE_STDINT_H
302 #include <stdint.h> 305 #include <stdint.h>
303 #elif defined(HAVE_INTTYPES_H) 306 #elif defined(HAVE_INTTYPES_H)
304 #include <inttypes.h> 307 #include <inttypes.h>
305 #endif 308 #endif
306 #ifdef HAVE_SYS_TYPES_H 309 #ifdef HAVE_SYS_TYPES_H
307 #include <sys/types.h> 310 #include <sys/types.h>
308 #endif]) 311 #endif])
312 AC_CHECK_TYPES([fd_mask], , ,
313 [#ifdef HAVE_SYS_TYPES_H
314 #include <sys/types.h>
315 #endif
316 #ifdef HAVE_SELECT_H
317 #include <select.h>
318 #endif])
319
309 AC_CHECK_SIZEOF(long long) 320 AC_CHECK_SIZEOF(long long)
310 AC_CHECK_SIZEOF(long)
311 AC_CHECK_SIZEOF(int) 321 AC_CHECK_SIZEOF(int)
312 AC_CHECK_SIZEOF(short) 322 AC_CHECK_SIZEOF(short)
313 AC_CHECK_TYPES([struct in6_addr], , , 323 AC_CHECK_TYPES([struct in6_addr], , ,
314 [#ifdef WIN32 324 [#ifdef WIN32
315 #include <winsock2.h> 325 #include <winsock2.h>
316 #else 326 #else
317 #include <sys/types.h> 327 #include <sys/types.h>
318 #include <netinet/in.h> 328 #include <netinet/in.h>
319 #include <sys/socket.h> 329 #include <sys/socket.h>
320 #endif 330 #endif
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 # These warnings break gcc 4.0.2 and work on gcc 4.2 386 # These warnings break gcc 4.0.2 and work on gcc 4.2
377 CFLAGS="$CFLAGS -Waddress -Wnormalized=id -Woverride-init" 387 CFLAGS="$CFLAGS -Waddress -Wnormalized=id -Woverride-init"
378 fi 388 fi
379 389
380 ##This will break the world on some 64-bit architectures 390 ##This will break the world on some 64-bit architectures
381 # CFLAGS="$CFLAGS -Winline" 391 # CFLAGS="$CFLAGS -Winline"
382 392
383 fi 393 fi
384 394
385 AC_OUTPUT(Makefile test/Makefile sample/Makefile) 395 AC_OUTPUT(Makefile test/Makefile sample/Makefile)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698