3368955fef
only ones having APM support atm); fixes build on at least hp300. Thanks for testing and original report to Heiko.Rommel@Uni-Bielefeld.DE bump PKGNAME
78 lines
1.6 KiB
Plaintext
78 lines
1.6 KiB
Plaintext
$OpenBSD: patch-configure,v 1.5 2002/11/07 06:21:19 pvalchev Exp $
|
|
--- configure.orig Sun Feb 24 16:05:05 2002
|
|
+++ configure Sat Oct 5 15:36:11 2002
|
|
@@ -1869,20 +1869,70 @@ EOF
|
|
|
|
host_dir=bsd
|
|
host_os=freebsd ;;
|
|
+
|
|
+## Check for OpenBSD 2.0-2.5
|
|
+openbsd2.[012345]*)
|
|
+ EXTRALIBS="-lkvm $XPMLIB"
|
|
+ INSTALL_ARGS='-s -g kmem -m 02555'
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define XOSVIEW_OPENBSD 1
|
|
+EOF
|
|
+
|
|
+ host_dir=bsd
|
|
+ host_os=openbsd ;;
|
|
+
|
|
+openbsd2.[6-9]*)
|
|
+ EXTRALIBS="-lkvm $XPMLIB"
|
|
+ INSTALL_ARGS='-s -g kmem -m 02555'
|
|
+ NetMeter_Default_Setting=True
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define XOSVIEW_OPENBSD 1
|
|
+#define HAVE_SWAPCTL 1
|
|
+EOF
|
|
+ ## Also check for the existence of UVM. This is a nasty,
|
|
+ ## complicated check. This could be avoided by having the *BSD
|
|
+ ## platform-specific Makefiles include <bsd.own.mk> on their own.
|
|
+
|
|
+ cat > confmkfile <<\EOF
|
|
+.include <bsd.own.mk>
|
|
+all:
|
|
+.if defined(UVM) && ${UVM:U} == YES
|
|
+ @echo UVMyes
|
|
+.endif
|
|
+EOF
|
|
+ uvmstring=`make -f confmkfile`
|
|
+ rm confmkfile
|
|
+ if test x$uvmstring != x ; then
|
|
+ cat >> confdefs.h <<\EOF
|
|
+#define UVM 1
|
|
+EOF
|
|
+ fi
|
|
+
|
|
+ host_dir=bsd
|
|
+ host_os=openbsd ;;
|
|
+
|
|
openbsd*)
|
|
EXTRALIBS="-lkvm $XPMLIB"
|
|
INSTALL_ARGS='-s -g kmem -m 02555'
|
|
NetMeter_Default_Setting=True
|
|
cat >> confdefs.h <<\EOF
|
|
#define XOSVIEW_OPENBSD 1
|
|
+#define HAVE_SWAPCTL 1
|
|
+#define UVM 1
|
|
+#define APM_BATT_ABSENT APM_BATTERY_ABSENT
|
|
EOF
|
|
-
|
|
-
|
|
+ if test -e /dev/apm ; then
|
|
+cat >> confdefs.h <<\EOF
|
|
+#define HAVE_BATTERY_METER 1
|
|
+EOF
|
|
+ BTRYMETER=btrymeter.o
|
|
+ fi
|
|
|
|
EXTRA_CXXFLAGS="-Wall -O4 -pipe"
|
|
|
|
- host_dir=bsd
|
|
+ host_dir=bsd
|
|
host_os=openbsd ;;
|
|
+
|
|
bsdi*)
|
|
EXTRALIBS="-lkvm $XPMLIB"
|
|
INSTALL_ARGS='-s -g kmem -m 02555'
|