git-svn-id: file:///svn/unbound/trunk@932 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2008-02-07 14:13:03 +00:00
parent d2b3e464ac
commit 0c8d24b653
3 changed files with 32 additions and 21 deletions

34
configure vendored
View file

@ -4614,7 +4614,7 @@ fi
if test "$srcdir" != "."; then
CPPFLAGS="$CPPFLAGS -I$srcdir";
CPPFLAGS="$CPPFLAGS -I$srcdir"
fi
# skip these tests, we do not need them.
@ -20601,13 +20601,13 @@ echo $ECHO_N "checking for SSL... $ECHO_C" >&6; }
for dir in $withval; do
ssldir="$dir"
if test -f "$dir/include/openssl/ssl.h"; then
found_ssl="yes";
found_ssl="yes"
cat >>confdefs.h <<_ACEOF
#define HAVE_SSL
_ACEOF
CPPFLAGS="$CPPFLAGS -I$ssldir/include";
CPPFLAGS="$CPPFLAGS -I$ssldir/include"
break;
fi
done
@ -20619,7 +20619,7 @@ echo "$as_me: error: Cannot find the SSL libraries in $withval" >&2;}
{ echo "$as_me:$LINENO: result: found in $ssldir" >&5
echo "${ECHO_T}found in $ssldir" >&6; }
HAVE_SSL=yes
LDFLAGS="$LDFLAGS -L$ssldir/lib";
LDFLAGS="$LDFLAGS -L$ssldir/lib"
if test "x$enable_rpath" = xyes; then
RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
fi
@ -21948,13 +21948,13 @@ if test x_$withval != x_no; then
{ echo "$as_me:$LINENO: checking for libevent" >&5
echo $ECHO_N "checking for libevent... $ECHO_C" >&6; }
if test x_$withval = x_ -o x_$withval = x_yes; then
withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr";
withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
fi
for dir in $withval; do
thedir="$dir"
if test -f "$dir/include/event.h"; then
found_libevent="yes";
CPPFLAGS="$CPPFLAGS -I$thedir/include";
found_libevent="yes"
CPPFLAGS="$CPPFLAGS -I$thedir/include"
break;
fi
done
@ -21963,10 +21963,20 @@ echo $ECHO_N "checking for libevent... $ECHO_C" >&6; }
# libevent source directory
{ echo "$as_me:$LINENO: result: found in $thedir" >&5
echo "${ECHO_T}found in $thedir" >&6; }
CPPFLAGS="$CPPFLAGS -I$thedir";
CPPFLAGS="$CPPFLAGS -I$thedir"
BAK_LDFLAGS="$LDFLAGS"
LATE_LDFLAGS="$thedir/*.lo";
LDFLAGS="$thedir/*.o $LDFLAGS"
# remove evdns from linking
mkdir build >/dev/null 2>&1
mkdir build/libevent >/dev/null 2>&1
mkdir build/libevent/.libs >/dev/null 2>&1
ev_files_o=`ls $thedir/*.o | grep -v evdns\.o`
ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo`
ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o`
cp $ev_files_o build/libevent
cp $ev_files_lo build/libevent
cp $ev_files_libso build/libevent/.libs
LATE_LDFLAGS="build/libevent/*.lo"
LDFLAGS="build/libevent/*.o $LDFLAGS"
else
{ { echo "$as_me:$LINENO: error: Cannot find the libevent library in $withval
You can restart ./configure --with-libevent=no to use a builtin alternative.
@ -21981,7 +21991,7 @@ many outgoing ports. " >&2;}
else
{ echo "$as_me:$LINENO: result: found in $thedir" >&5
echo "${ECHO_T}found in $thedir" >&6; }
LDFLAGS="$LDFLAGS -L$thedir/lib";
LDFLAGS="$LDFLAGS -L$thedir/lib"
if test "x$enable_rpath" = xyes; then
RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
fi
@ -24771,7 +24781,7 @@ _ACEOF
fi
LDFLAGS="$LATE_LDFLAGS $LDFLAGS";
LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
cat >>confdefs.h <<_ACEOF

View file

@ -321,7 +321,7 @@ AC_CHECK_FORMAT_ATTRIBUTE
AC_CHECK_UNUSED_ATTRIBUTE
if test "$srcdir" != "."; then
CPPFLAGS="$CPPFLAGS -I$srcdir";
CPPFLAGS="$CPPFLAGS -I$srcdir"
fi
# skip these tests, we do not need them.
@ -436,9 +436,9 @@ AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl=pathname],
for dir in $withval; do
ssldir="$dir"
if test -f "$dir/include/openssl/ssl.h"; then
found_ssl="yes";
found_ssl="yes"
AC_DEFINE_UNQUOTED([HAVE_SSL], [], [Define if you have the SSL libraries installed.])
CPPFLAGS="$CPPFLAGS -I$ssldir/include";
CPPFLAGS="$CPPFLAGS -I$ssldir/include"
break;
fi
done
@ -447,7 +447,7 @@ AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl=pathname],
else
AC_MSG_RESULT(found in $ssldir)
HAVE_SSL=yes
LDFLAGS="$LDFLAGS -L$ssldir/lib";
LDFLAGS="$LDFLAGS -L$ssldir/lib"
if test "x$enable_rpath" = xyes; then
RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
fi
@ -511,13 +511,13 @@ AC_ARG_WITH(libevent, AC_HELP_STRING([--with-libevent=pathname],
if test x_$withval != x_no; then
AC_MSG_CHECKING(for libevent)
if test x_$withval = x_ -o x_$withval = x_yes; then
withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr";
withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
fi
for dir in $withval; do
thedir="$dir"
if test -f "$dir/include/event.h"; then
found_libevent="yes";
CPPFLAGS="$CPPFLAGS -I$thedir/include";
found_libevent="yes"
CPPFLAGS="$CPPFLAGS -I$thedir/include"
break;
fi
done
@ -525,7 +525,7 @@ if test x_$withval != x_no; then
if test -f "$dir/event.h" -a -f "$dir/libevent.la"; then
# libevent source directory
AC_MSG_RESULT(found in $thedir)
CPPFLAGS="$CPPFLAGS -I$thedir";
CPPFLAGS="$CPPFLAGS -I$thedir"
BAK_LDFLAGS="$LDFLAGS"
# remove evdns from linking
mkdir build >/dev/null 2>&1
@ -547,7 +547,7 @@ many outgoing ports. ])
fi
else
AC_MSG_RESULT(found in $thedir)
LDFLAGS="$LDFLAGS -L$thedir/lib";
LDFLAGS="$LDFLAGS -L$thedir/lib"
if test "x$enable_rpath" = xyes; then
RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
fi

View file

@ -3,6 +3,7 @@
to make room for new debug level 2 for detailed information
for operators.
- verbosity level 2. Describes recursion and validation.
- cleaner configure script and fixes for libevent solaris.
6 February 2008: Wouter
- clearer explanation of threading configure options.