53 lines
1.6 KiB
Plaintext
53 lines
1.6 KiB
Plaintext
$OpenBSD: patch-configure,v 1.11 2005/04/11 14:58:00 naddy Exp $
|
|
--- configure.orig Fri Jan 21 14:16:04 2005
|
|
+++ configure Tue Apr 5 11:30:14 2005
|
|
@@ -107,8 +107,8 @@ case "$cpu" in
|
|
i386|i486|i586|i686|i86pc|BePC)
|
|
cpu="x86"
|
|
;;
|
|
- x86_64)
|
|
- if [ "`$cc -dumpmachine | grep x86_64 | cut -d- -f1`" = "x86_64" -a \
|
|
+ amd64|x86_64)
|
|
+ if [ "`$cc -dumpmachine | grep amd64 | cut -d- -f1`" = "amd64" -a \
|
|
-z "`echo $CFLAGS | grep -- -m32`" ]; then
|
|
cpu="x86_64"
|
|
else
|
|
@@ -248,6 +248,12 @@ make="gmake"
|
|
CFLAGS="-pthread"
|
|
LDFLAGS="$LDFLAGS -export-dynamic -pthread"
|
|
;;
|
|
+OpenBSD)
|
|
+strip="echo"
|
|
+extralibs="$extralibs -lossaudio -pthread"
|
|
+source_path="`echo $0 | sed -e 's#/configure##'`"
|
|
+SLIBSUF=.so.5.0
|
|
+;;
|
|
BSD/OS)
|
|
v4l="no"
|
|
audio_oss="yes"
|
|
@@ -785,10 +791,10 @@ EOF
|
|
$cc -o $TMPE $TMPC 2> /dev/null || _memalign=no
|
|
fi
|
|
|
|
-if test "$_memalign" = "no" -a "$mmx" = "yes" -a "$memalignhack" != "yes"; then
|
|
- echo "error, no memalign() but sse enabled, either disable it or use --enable-memalign-hack"
|
|
- exit 1
|
|
-fi
|
|
+#if test "$_memalign" = "no" -a "$mmx" = "yes" -a "$memalignhack" != "yes"; then
|
|
+# echo "error, no memalign() but sse enabled, either disable it or use --enable-memalign-hack"
|
|
+# exit 1
|
|
+#fi
|
|
|
|
cat > $TMPC << EOF
|
|
#include <time.h>
|
|
@@ -1219,9 +1225,6 @@ if test "$pthreads" = "yes" ; then
|
|
echo "HAVE_PTHREADS=yes" >> config.mak
|
|
echo "#define HAVE_PTHREADS 1" >> $TMPH
|
|
echo "#define HAVE_THREADS 1" >> $TMPH
|
|
- if test $targetos != FreeBSD; then
|
|
- extralibs="$extralibs -lpthread"
|
|
- fi
|
|
fi
|
|
if test "$sdl" = "yes" ; then
|
|
echo "CONFIG_SDL=yes" >> config.mak
|