$OpenBSD: patch-configure,v 1.2 2004/10/13 01:44:20 jolan Exp $ --- configure.orig Wed Jul 14 08:51:11 2004 +++ configure Mon Oct 4 19:45:02 2004 @@ -3503,7 +3503,10 @@ else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 &5 -echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking for pthread_create in -pthread" >&5 +echo $ECHO_N "checking for pthread_create in -pthread... $ECHO_C" >&6 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-pthread $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -20325,17 +20339,17 @@ fi echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 if test $ac_cv_lib_pthread_pthread_create = yes; then - PTHREAD_LIBS="-lpthread" + PTHREAD_LIBS="-pthread" fi -OS_ARCH=`uname -s | sed -e 's|/|_|g'` +#OS_ARCH=`uname -s | sed -e 's|/|_|g'` # FreeBSD and OpenBSD have neither -lpthread nor integrated pthreads in libc. # Instead -pthread is used to the compiler/linker to get pthreads working right. -if test x$OS_ARCH = xFreeBSD -o x$OS_ARCH = xOpenBSD; then - CFLAGS="$CFLAGS -pthread" - CXXFLAGS="$CXXFLAGS -pthread" -fi +#if test x$OS_ARCH = xFreeBSD -o x$OS_ARCH = xOpenBSD; then +# CFLAGS="$CFLAGS -pthread" +# CXXFLAGS="$CXXFLAGS -pthread" +#fi @@ -20912,7 +20926,7 @@ fi for ac_header in fcntl.h sys/time.h unistd.h linux/videodev.h sys/soundcard.h \ -endian.h machine/endian.h inttypes.h +inttypes.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then