diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-12-11 23:21:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-12-11 23:21:44 +0000 |
commit | 5fe06d0f027661547492e0ac12cf0fecf8dd7aa0 (patch) | |
tree | fea59d3bf247186b0bfa39cb71f82c48e1816319 | |
parent | 8e5cb98b8f368d78d73457bc24b4f78426bec3f0 (diff) | |
download | tor-5fe06d0f027661547492e0ac12cf0fecf8dd7aa0.tar.gz tor-5fe06d0f027661547492e0ac12cf0fecf8dd7aa0.zip |
r17099@catbus: nickm | 2007-12-11 18:16:59 -0500
Backport part of 12767: make configure script work even on my current catbus install, even with weird headers.
svn:r12773
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | configure.in | 10 |
2 files changed, 10 insertions, 3 deletions
@@ -23,6 +23,9 @@ Changes in version 0.1.2.19 - 2007-??-?? - Fix handling of hex nicknames when answering controller requests for networkstatus by name, or when deciding whether to warn about unknown routers in a config option. (Patch from mwenge.) + - Fix a couple of hard-to-trigger autoconf problems that could result + in really weird results on platforms whose sys/types.h files define + nonstandard integer types. Changes in version 0.1.2.18 - 2007-10-28 diff --git a/configure.in b/configure.in index 601f01f2b3..2cfaaa3a4f 100644 --- a/configure.in +++ b/configure.in @@ -84,6 +84,7 @@ AC_ARG_ENABLE(gcc-warnings, AC_HELP_STRING(--enable-gcc-warnings, enable verbose warnings)) AC_PROG_CC +AC_PROG_CPP AC_PROG_MAKE_SET AC_PROG_RANLIB @@ -204,7 +205,10 @@ fi dnl ------------------------------------------------------ dnl Where do you live, libevent? And how do we call you? -dnl This is a disgusting hack so we safely include recent libevent headers. +dnl This needs to happen before the below disgusting hack. +AC_CHECK_HEADERS(sys/types.h) + +dnl This is a disgusting hack so we safely include older libevent headers. AC_CHECK_TYPE(u_int64_t, unsigned long long) AC_CHECK_TYPE(u_int32_t, unsigned long) AC_CHECK_TYPE(u_int16_t, unsigned short) @@ -268,7 +272,7 @@ LIBS="$LIBS -levent -lws2_32" else LIBS="$LIBS -levent" fi -if test $tor_cv_libevent_dir != "(system)"; then +if test "$tor_cv_libevent_dir" != "(system)"; then if test -d "$tor_cv_libevent_dir/lib" ; then LDFLAGS="-L$tor_cv_libevent_dir/lib $LDFLAGS" le_libdir="$tor_cv_libevent_dir/lib" @@ -465,7 +469,7 @@ AC_SYS_LARGEFILE dnl The warning message here is no longer strictly accurate. -AC_CHECK_HEADERS(unistd.h string.h signal.h ctype.h sys/stat.h sys/types.h fcntl.h sys/fcntl.h sys/time.h errno.h assert.h time.h, , AC_MSG_WARN(some headers were not found, compilation may fail)) +AC_CHECK_HEADERS(unistd.h string.h signal.h ctype.h sys/stat.h fcntl.h sys/fcntl.h sys/time.h errno.h assert.h time.h, , AC_MSG_WARN(some headers were not found, compilation may fail)) AC_CHECK_HEADERS(netdb.h sys/ioctl.h sys/socket.h arpa/inet.h netinet/in.h pwd.h grp.h) |