1 $NetBSD: patch-aj,v 1.7 2007/06/15 19:05:57 bouyer Exp $
3 --- configure.orig 2010-09-02 16:23:39.000000000 +0200
4 +++ configure 2011-08-01 15:50:48.000000000 +0200
6 sysconfdir='/etc/apcupsd'
9 - if test x$sbindir = x'${exec_prefix}/sbin' ; then
14 # Make sure we can run config.sub.
24 @@ -10575,7 +10572,7 @@
25 echo "$as_me:$LINENO: result: Using Linux USB driver." >&5
26 echo "${ECHO_T}Using Linux USB driver." >&6
28 - *-*-freebsd* | *-*-openbsd* | *-*-netbsd*)
29 + *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-dragonfly*)
30 LIBUSBHIDINC="-I\$(topdir)/src/libusbhid"
32 APCDRVLIBS="$APCDRVLIBS \$(topdir)/src/libusbhid/libusbhid.a"
33 @@ -12200,7 +12197,7 @@
34 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
37 -elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
38 +elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD || test $HAVE_UNAME=yes -a x`uname -s` = xDragonFly
41 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
42 @@ -12331,7 +12328,7 @@
43 platforms/debian/apcupsd \
44 platforms/debian/ups-monitor"
48 DISTVER=`uname -a |awk '{print $3}'`
51 @@ -12365,7 +12362,8 @@
53 LDFLAGS="$LDFLAGS -pthread"
55 - platforms/netbsd/apcupsd"
56 + platforms/netbsd/apcupsd \
57 + platforms/netbsd/apccontrol"
60 DISTVER=`uname -a |awk '{print $3}'`