d3157e068c
o Add WITH_FREETYPE knob [2] PR: 44362 [2] Submitted by: maintainer [1], Pat Lashley <patl+freebsd@volant.org> [2] Reviewed by: maintainer
98 lines
2.9 KiB
Text
98 lines
2.9 KiB
Text
--- configure.orig Thu Oct 24 20:12:40 2002
|
|
+++ configure Fri Nov 1 12:46:36 2002
|
|
@@ -495,19 +495,10 @@
|
|
|
|
# Try to find the available options for the current CPU
|
|
if x86 || ppc; then
|
|
- if test -r /proc/cpuinfo ; then
|
|
- # linux with /proc mounted, extract cpu information from it
|
|
- _cpuinfo="cat /proc/cpuinfo"
|
|
- elif test -r /compat/linux/proc/cpuinfo ; then
|
|
- # FreeBSD with linux emulation /proc mounted,
|
|
- # extract cpu information from it
|
|
- _cpuinfo="cat /compat/linux/proc/cpuinfo"
|
|
- elif x86; then
|
|
# all other OS try to extract cpu information from a small helper
|
|
# program TOOLS/cpuinfo instead
|
|
$_cc -o TOOLS/cpuinfo TOOLS/cpuinfo.c
|
|
_cpuinfo="TOOLS/cpuinfo"
|
|
- fi
|
|
|
|
pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | head -1`
|
|
pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
|
|
@@ -1302,8 +1293,8 @@
|
|
;;
|
|
|
|
*)
|
|
- echo "Unknown parameter: $ac_option"
|
|
- exit
|
|
+ echo -n "Unknown parameter: $ac_option"
|
|
+ echo " (ignoring)"
|
|
;;
|
|
|
|
esac
|
|
@@ -1313,7 +1304,7 @@
|
|
test -z "$_bindir" && _bindir="$_prefix/bin"
|
|
test -z "$_datadir" && _datadir="$_prefix/share/mplayer"
|
|
test -z "$_mandir" && _mandir="$_prefix/man"
|
|
-test -z "$_confdir" && _confdir="$_prefix/etc/mplayer"
|
|
+test -z "$_confdir" && _confdir="$_prefix/share/mplayer"
|
|
test -z "$_libdir" && _libdir="$_prefix/lib"
|
|
test -z "$_mlibdir" && _mlibdir="$MLIBHOME"
|
|
|
|
@@ -1702,13 +1693,7 @@
|
|
|
|
|
|
echocheck "memalign()"
|
|
-# XXX restrict to x86 ? extend to other CPUs/cacheline sizes ?
|
|
-cat > $TMPC << EOF
|
|
-#include <malloc.h>
|
|
-int main (void) { (void) memalign(64, sizeof(char)); return 0; }
|
|
-EOF
|
|
_memalign=no
|
|
-cc_check && _memalign=yes
|
|
if test "$_memalign" = yes ; then
|
|
_def_memalign='#define HAVE_MEMALIGN 1'
|
|
else
|
|
@@ -1785,31 +1770,7 @@
|
|
|
|
|
|
echocheck "pthread"
|
|
-cat > $TMPC << EOF
|
|
-#include <pthread.h>
|
|
-void* func(void *arg) { return arg; }
|
|
-int main(void) { pthread_t tid; return pthread_create (&tid, 0, func, 0) == 0 ? 0 : 1; }
|
|
-EOF
|
|
-if ( cc_check && $TMPO ) ; then # QNX
|
|
- _ld_pthread=''
|
|
-elif ( cc_check -lpthread && $TMPO ) ; then
|
|
- _ld_pthread='-lpthread'
|
|
-elif ( cc_check -pthread && $TMPO ) ; then
|
|
- _ld_pthread='-pthread'
|
|
-else
|
|
- if test "$_ld_static" ; then
|
|
- # for crosscompilation, we cannot execute the program, be happy if we can link statically
|
|
- if ( cc_check -lpthread ) ; then
|
|
- _ld_pthread='-lpthread'
|
|
- elif ( cc_check -pthread ) ; then
|
|
- _ld_pthread='-pthread'
|
|
- else
|
|
- die "Static lib pthread not found (needed by Windows and networking stufff)."
|
|
- fi
|
|
- else
|
|
- die "Lib pthread not found (needed by Windows and networking stuff)."
|
|
- fi
|
|
-fi
|
|
+_ld_pthread="${PTHREAD_LIBS}"
|
|
echores "yes (using $_ld_pthread)"
|
|
|
|
|
|
@@ -4277,7 +4238,7 @@
|
|
CFLAGS="$CFLAGS -D_REENTRANT"
|
|
elif bsd ; then
|
|
# FIXME bsd needs this so maybe other OS'es
|
|
- CFLAGS="$CFLAGS -D_THREAD_SAFE"
|
|
+ CFLAGS="$CFLAGS ${PTHREAD_CFLAGS}"
|
|
fi
|
|
# 64 bit file offsets?
|
|
if test "$_largefiles" = yes || freebsd ; then
|