[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r8325: Clean up configure.in spaces, and make it work on Mac OS X a (tor/trunk)
Author: nickm
Date: 2006-09-06 04:42:12 -0400 (Wed, 06 Sep 2006)
New Revision: 8325
Modified:
tor/trunk/
tor/trunk/configure.in
Log:
r8723@Kushana: nickm | 2006-09-06 04:24:54 -0400
Clean up configure.in spaces, and make it work on Mac OS X again (for me).
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r8723] on c95137ef-5f19-0410-b913-86e773d04f59
Modified: tor/trunk/configure.in
===================================================================
--- tor/trunk/configure.in 2006-09-06 02:08:52 UTC (rev 8324)
+++ tor/trunk/configure.in 2006-09-06 08:42:12 UTC (rev 8325)
@@ -74,7 +74,6 @@
AC_PROG_MAKE_SET
AC_PROG_RANLIB
-
# If WIN32 is defined and non-zero, we are building for win32
AC_MSG_CHECKING([for win32])
AC_TRY_COMPILE(,
@@ -93,7 +92,6 @@
bwin32=false; AC_MSG_RESULT([no])
)
-
if test $bwin32 = true; then
AC_DEFINE(MS_WINDOWS,1, [Define to 1 if we are building for a Windows platform.])
@@ -163,13 +161,13 @@
le_found=no
for ledir in $trylibeventdir "" $prefix /usr/local ; do
LDFLAGS="$saved_LDFLAGS"
-
+
if test $bwin32 = true; then
- LIBS="$saved_LIBS -levent -lws2_32"
+ LIBS="$saved_LIBS -levent -lws2_32"
else
- LIBS="$saved_LIBS -levent"
+ LIBS="$saved_LIBS -levent"
fi
-
+
# Skip the directory if it isn't there.
if test ! -z "$ledir" -a ! -d "$ledir" ; then
continue;
@@ -273,13 +271,13 @@
ssl_found=no
for ssldir in $tryssldir "" $prefix /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/athena /usr/pkg /opt /opt/openssl ; do
LDFLAGS="$saved_LDFLAGS"
-
- if test $bwin32 = true; then
- LIBS="$LIBS -lssl -lcrypto -lws2_32 -lgdi32"
- else
- LIBS="$LIBS -lssl -lcrypto"
- fi
-
+
+ if test $bwin32 = true; then
+ LIBS="$saved_LIBS -lssl -lcrypto -lws2_32 -lgdi32"
+ else
+ LIBS="$saved_LIBS -lssl -lcrypto"
+ fi
+
# Skip the directory if it isn't there.
if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
continue;
@@ -410,18 +408,18 @@
AC_CHECK_HEADERS(unistd.h string.h signal.h netdb.h ctype.h sys/stat.h sys/types.h fcntl.h sys/fcntl.h sys/ioctl.h sys/socket.h sys/time.h netinet/in.h arpa/inet.h errno.h assert.h time.h pwd.h grp.h, , AC_MSG_WARN(some headers were not found, compilation may fail))
-# if the user doesn't have timeval this will generate a nasty warning. if
-# timeval isn't provided, define one
AC_CHECK_HEADERS(event.h, , AC_MSG_ERROR(Libevent header (event.h) not found. Tor requires libevent to build.),
-[#ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #else
- struct timeval {
- long tv_sec;
- long tv_usec;
- }
- #endif]
-)
+[#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+ struct timeval {
+ long tv_sec;
+ long tv_usec;
+ };
+#endif])
AC_CHECK_HEADERS(zlib.h, , AC_MSG_ERROR(Zlib header (zlib.h) not found. Tor requires zlib to build. You may need to install a zlib development package.))
@@ -671,7 +669,6 @@
AC_DEFINE(HAVE_MACRO__func__, 1, [Defined if the compiler supports __func__])
fi
-
if test $ac_cv_have_FUNC_macro = 'yes'; then
AC_DEFINE(HAVE_MACRO__FUNC__, 1, [Defined if the compiler supports __FUNC__])
fi
@@ -681,7 +678,6 @@
[Defined if the compiler supports __FUNCTION__])
fi
-
# $prefix stores the value of the --prefix command line option, or
# NONE if the option wasn't set. In the case that it wasn't set, make
# it be the default, so that we can use it to expand directories now.