From 216b5dc440d7a37a07e69d87a44fb37219ee9d18 Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Thu, 2 Jan 2003 20:36:24 +0000 Subject: [PATCH] ommm git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@112 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- configure.in | 54 +++++----------------------------- modules/xdbbackend/Makefile.in | 1 + pdns/webserver.cc | 2 +- 3 files changed, 9 insertions(+), 48 deletions(-) diff --git a/configure.in b/configure.in index 42a6bf871..86201a213 100644 --- a/configure.in +++ b/configure.in @@ -53,52 +53,9 @@ then fi LIBS=$ac_save_LIBS -# pthread_create is in standard libraries (As in BSDI 3.0) -AC_MSG_CHECKING([for pthread_create in -libc]); -AC_TRY_LINK( -[#include ], -[ (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0); ], -with_posix_threads=yes, with_posix_threads=no) -AC_MSG_RESULT("$with_posix_threads") -if test "$with_posix_threads" = "no" -then - AC_MSG_CHECKING([for pthread_create in -lpthread]); - ac_save_LIBS="$LIBS" - LIBS="$LIBS -lpthread" - AC_TRY_LINK( - [#include ], - [ (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0); ], - with_posix_threads=yes, with_posix_threads=no) - AC_MSG_RESULT("$with_posix_threads") - if test "$with_posix_threads" = "no" - then - LIBS=" $ac_save_LIBS -lpthreads" - AC_MSG_CHECKING([for pthread_create in -lpthreads]); - AC_TRY_LINK( - [#include ], - [ pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0); ], - with_posix_threads=yes, with_posix_threads=no) - AC_MSG_RESULT("$with_posix_threads") - if test "$with_posix_threads" = "no" - then - # This is for FreeBSD - LIBS="$ac_save_LIBS -pthread" - AC_MSG_CHECKING([for pthread_create in -pthread]); - AC_TRY_LINK( - [#include ], - [ pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0); ], - with_posix_threads=yes, with_posix_threads=no) - AC_MSG_RESULT("$with_posix_threads") - if test "$with_posix_threads" = "no" - then - with_mit_threads="yes" - LIBS="$ac_save_LIBS" - fi - fi - fi -fi - DYNLINKFLAGS="" +THREADFLAGS="" + case "$host_os" in solaris2.8 | solaris2.9 ) AC_DEFINE(NEED_POSIX_TYPEDEF,,[If POSIX typedefs need to be defined]) @@ -116,8 +73,9 @@ solaris2.6 | solaris2.7) linux*) AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6]) DYNLINKFLAGS="-rdynamic" - LDFLAGS="-pthread $LDFLAGS" - CXXFLAGS="-pthread -D_GNU_SOURCE $CXXFLAGS" + LDFLAGS="$LDFLAGS" + THREADFLAGS="-pthread" + CXXFLAGS="-D_GNU_SOURCE $CXXFLAGS" ;; openbsd*) AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6]) @@ -133,6 +91,8 @@ openbsd*) ;; esac +AC_SUBST(THREADFLAGS) + AC_SUBST(DYNLINKFLAGS) AC_MSG_CHECKING(whether we will be doing verbose logging) diff --git a/modules/xdbbackend/Makefile.in b/modules/xdbbackend/Makefile.in index 7469e26cf..94d68c65c 100644 --- a/modules/xdbbackend/Makefile.in +++ b/modules/xdbbackend/Makefile.in @@ -81,6 +81,7 @@ PGSQL_incdir = @PGSQL_incdir@ PGSQL_lib = @PGSQL_lib@ RANLIB = @RANLIB@ STRIP = @STRIP@ +THREADFLAGS = @THREADFLAGS@ VERSION = @VERSION@ YACC = @YACC@ am__include = @am__include@ diff --git a/pdns/webserver.cc b/pdns/webserver.cc index 8c0e13045..89af91254 100644 --- a/pdns/webserver.cc +++ b/pdns/webserver.cc @@ -238,7 +238,7 @@ void *WebServer::serveConnection(void *p) client->getLine(line); stripLine(line); - if(!line.find("Authorization: Basic ")) { + if(!toLower(line).find("authorization: basic ")) { string cookie=line.substr(21); string plain; -- 2.40.0