From 871fa7cfae38947ed52b540e16bd38c6e29002dc Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 25 Mar 2009 18:28:57 +0000 Subject: Fix build on MAC OS --- ChangeLog | 3 +++ common/sock-any.c | 2 ++ configure.in | 12 +++++++----- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8863f5d..c3aa96b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +0.9.5 + - Build fixes for MAC OS 10.4 and 10.5 + 0.9.4 [30-07-2008] - Rework event handling system so we don't use a full thread per connection, but instead only use threads for active requests. diff --git a/common/sock-any.c b/common/sock-any.c index 581ef5b..5dc97fc 100644 --- a/common/sock-any.c +++ b/common/sock-any.c @@ -337,7 +337,9 @@ sock_any_pton_n (const char *string, struct sockaddr_any *addrs, int n_addrs, in num = n_addrs; memset (&hints, 0, sizeof (hints)); hints.ai_family = PF_UNSPEC; +#ifdef AI_NUMERICSERV hints.ai_flags = AI_NUMERICSERV; +#endif /* * Not actually limitted to these, just need to specify these diff --git a/configure.in b/configure.in index b72a359..516d69a 100644 --- a/configure.in +++ b/configure.in @@ -36,8 +36,8 @@ dnl Stef Walter dnl dnl Process this file with autoconf to produce a configure script. -AC_INIT(httpauth, 0.9.4, stef@memberwebs.com) -AM_INIT_AUTOMAKE(httpauth, 0.9.4) +AC_INIT(httpauth, 0.9.4.90, stef@memberwebs.com) +AM_INIT_AUTOMAKE(httpauth, 0.9.4.90) LDFLAGS="$LDFLAGS -L/usr/local/lib" CFLAGS="$CFLAGS -I/usr/local/include -g -O0" @@ -63,9 +63,11 @@ ACX_PTHREAD( , [echo "ERROR: Pthread support not found."; exit 1] ) LIBS="$PTHREAD_LIBS $LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" -AC_CHECK_LIB([crypt_r], [crypt], , [ - AC_CHECK_LIB([crypt], [crypt], , - [ echo "ERROR: Crypt library required."; exit 1] ) +AC_CHECK_LIB([c], [crypt], , [ + AC_CHECK_LIB([crypt_r], [crypt], , [ + AC_CHECK_LIB([crypt], [crypt], , + [ echo "ERROR: Crypt library required."; exit 1] ) + ]) ]) # Checks for header files. -- cgit v1.2.3