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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
$NetBSD: patch-na,v 1.8 2010/12/29 00:12:15 tron Exp $
--- configure.in.orig 2009-08-24 13:42:29.000000000 +0100
+++ configure.in 2010-12-29 00:07:13.000000000 +0000
@@ -484,7 +484,7 @@
LIBUSB20_LIBS=""
AC_ARG_WITH([backend],
AS_HELP_STRING([--with-backend=<name>],
- [backend to use (linux/solaris/freebsd/dummy)]),
+ [backend to use (linux/solaris/netbsd/freebsd/dummy)]),
[backend=$withval])
if ! test -z "$with_backend" ; then
HALD_BACKEND="$with_backend"
@@ -493,6 +493,9 @@
*-*-solaris*)
HALD_BACKEND="solaris"
;;
+ *-*-netbsd*)
+ HALD_BACKEND="netbsd"
+ ;;
*-*-freebsd* | *-*-kfreebsd*-gnu)
HALD_BACKEND="freebsd"
;;
@@ -508,6 +511,7 @@
AM_CONDITIONAL(HALD_COMPILE_LINUX, [test x$HALD_BACKEND = xlinux], [Compiling for Linux])
AM_CONDITIONAL(HALD_COMPILE_FREEBSD, [test x$HALD_BACKEND = xfreebsd], [Compiling for FreeBSD])
AM_CONDITIONAL(HALD_COMPILE_SOLARIS, [test x$HALD_BACKEND = xsolaris], [Compiling for Solaris])
+AM_CONDITIONAL(HALD_COMPILE_NETBSD, [test x$HALD_BACKEND = xnetbsd], [Compiling for NetBSD])
AC_SUBST(HALD_BACKEND)
if test "x$HALD_BACKEND" = "xfreebsd"; then
AC_CHECK_LIB([usb20], [libusb20_dev_get_info], [USE_LIBUSB20=yes], [USE_LIBUSB20=no])
@@ -707,7 +711,7 @@
AC_MSG_RESULT($have_glib_2_14)
case "$host" in
- *-*-freebsd*)
+ *-*-freebsd* | *-*-netbsd*)
PKG_CHECK_MODULES(VOLUME_ID, [$volume_id_module])
AC_SUBST(VOLUME_ID_CFLAGS)
AC_SUBST(VOLUME_ID_LIBS)
@@ -718,14 +722,13 @@
# blkid (util-linux-ng)
case "$host" in
-*-*-freebsd*)
- ;;
-*-*-solaris*)
- ;;
-*)
+*linux*)
PKG_CHECK_MODULES(BLKID, [$blkid_module])
AC_SUBST(BLKID_CFLAGS)
AC_SUBST(BLKID_LIBS)
+ ;;
+*)
+ ;;
esac
# OS specific libs
@@ -1086,6 +1089,9 @@
hald/solaris/Makefile
hald/solaris/probing/Makefile
hald/solaris/addons/Makefile
+hald/netbsd/Makefile
+hald/netbsd/probing/Makefile
+hald/netbsd/addons/Makefile
hald/freebsd/Makefile
hald/freebsd/probing/Makefile
hald/freebsd/libprobe/Makefile
@@ -1096,6 +1102,7 @@
tools/Makefile
tools/freebsd/Makefile
tools/linux/Makefile
+tools/netbsd/Makefile
partutil/Makefile
policy/Makefile
fdi/Makefile
|