$NetBSD: patch-ac,v 1.3 2006/03/28 22:02:38 joerg Exp $ --- configure.orig 2006-03-28 21:53:00.000000000 +0000 +++ configure @@ -4700,12 +4700,12 @@ fi echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5 -echo $ECHO_N "checking for SDL_Init in -lSDL... $ECHO_C" >&6 +echo $ECHO_N "checking for SDL_Init in -lSDL ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}... $ECHO_C" >&6 if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lSDL $LIBS" +LIBS="-lSDL ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS" cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ @@ -4758,7 +4758,7 @@ if test $ac_cv_lib_SDL_SDL_Init = yes; t #define HAVE_LIBSDL 1 _ACEOF - LIBS="-lSDL $LIBS" + LIBS="-lSDL ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS" fi