blob: 799b2455cb0fbc054fde95f6308803481241482f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
$NetBSD: patch-configure,v 1.7 2009/08/30 11:01:58 jmmv Exp $
--- configure.orig 2009-06-10 21:50:53.000000000 +0100
+++ configure
@@ -1619,6 +1619,8 @@ case $target_os in
add_cflags -D__EXTENSIONS__
;;
netbsd)
+ LIBOBJFLAGS='$(PIC)'
+ SHFLAGS='-shared'
oss_demuxer_extralibs="-lossaudio"
oss_muxer_extralibs="-lossaudio"
;;
@@ -1632,6 +1634,8 @@ case $target_os in
freebsd)
disable need_memalign
;;
+ dragonfly)
+ ;;
bsd/os)
osextralibs="-lpoll -lgnugetopt"
strip="strip -d"
@@ -1996,10 +2000,13 @@ enabled vis && add_cflags -mcpu=ultraspa
# ---
# big/little-endian test
-check_cc <<EOF || die "endian test failed"
-unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
+check_exec <<EOF || enable bigendian
+int main()
+{
+ long one = 1;
+ return !(*((char *)(&one)));
+}
EOF
-od -A n -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
# ---
# check availability of some header files
|