summaryrefslogtreecommitdiff
path: root/devel/SDL/patches/patch-am
blob: 77cf299caef1ed2339a92f7d5ba3312a7deabd8e (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
40
41
$NetBSD: patch-am,v 1.20 2006/06/12 16:20:44 wiz Exp $

--- configure.orig	2006-05-17 06:53:45.000000000 +0000
+++ configure
@@ -24747,10 +24747,10 @@ fi;
         echo "$as_me:$LINENO: checking for NAS audio support" >&5
 echo $ECHO_N "checking for NAS audio support... $ECHO_C" >&6
         have_nas=no
-        if test -r /usr/X11R6/include/audio/audiolib.h; then
+        if true; then
             have_nas=yes
-            NAS_CFLAGS="-I/usr/X11R6/include/"
-            NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
+            NAS_CFLAGS=""
+            NAS_LIBS="-laudio -lXt"
 
 
         elif test -r /usr/freeware/include/nas/audiolib.h; then
@@ -29638,7 +29638,7 @@ fi;
             ;;
         *-*-netbsd*)
             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
-            pthread_lib="-L/usr/lib -lpthread"
+            pthread_lib="-lpthread"
             ;;
         *-*-openbsd*)
             pthread_cflags="-D_REENTRANT"
@@ -31986,8 +31986,13 @@ cat >>conftest.$ac_ext <<_ACEOF
               #if defined(HAVE_USB_H)
               #include <usb.h>
               #endif
+	      #ifdef __DragonFly__
+              #include <bus/usb/usb.h>
+              #include <bus/usb/usbhid.h>
+	      #else
               #include <dev/usb/usb.h>
               #include <dev/usb/usbhid.h>
+	      #endif
               #if defined(HAVE_USBHID_H)
               #include <usbhid.h>
               #elif defined(HAVE_LIBUSB_H)