mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
69 lines
2.0 KiB
Plaintext
69 lines
2.0 KiB
Plaintext
$NetBSD: patch-configure.ac,v 1.2 2013/01/26 22:07:42 wiz Exp $
|
|
|
|
automake-1.13 compat.
|
|
Enable NetBSD as a suitable platform.
|
|
|
|
--- configure.ac.orig 2012-05-03 21:47:32.000000000 +0000
|
|
+++ configure.ac
|
|
@@ -15,7 +15,7 @@ m4_define([conky_version],
|
|
AC_INIT([Conky], [conky_version()], [brenden1@users.sourceforge.net])
|
|
|
|
AM_INIT_AUTOMAKE(conky, conky_version())
|
|
-AM_CONFIG_HEADER(src/config.h)
|
|
+AC_CONFIG_HEADERS(src/config.h)
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
dnl prevent libtool setting LTCFLAGS to default of -g -O2 when CFLAGS unset.
|
|
@@ -62,10 +62,11 @@ case $uname in
|
|
WANT_DEVSTAT=yes
|
|
WANT_OPTRESET=yes
|
|
;;
|
|
-# NetBSD*)
|
|
-# WANT_KVM=yes
|
|
-# WANT_OSSLIB=yes
|
|
-# ;;
|
|
+ NetBSD*)
|
|
+ WANT_KVM=yes
|
|
+ WANT_OSSLIB=yes
|
|
+ WANT_PROPLIB=yes
|
|
+ ;;
|
|
|
|
OpenBSD*)
|
|
WANT_KVM=yes
|
|
@@ -87,7 +88,7 @@ esac
|
|
AM_CONDITIONAL(BUILD_LINUX, test x$uname = xLinux)
|
|
#AM_CONDITIONAL(BUILD_SOLARIS, test x$uname = xSunOS)
|
|
AM_CONDITIONAL(BUILD_FREEBSD, test x$uname = xFreeBSD -o x$uname = xGNU/kFreeBSD)
|
|
-#AM_CONDITIONAL(BUILD_NETBSD, test x$uname = xNetBSD)
|
|
+AM_CONDITIONAL(BUILD_NETBSD, test x$uname = xNetBSD)
|
|
AM_CONDITIONAL(BUILD_OPENBSD, test x$uname = xOpenBSD)
|
|
|
|
BUILD_DATE=$(LANG=en_US LC_ALL=en_US LOCALE=en_US date)
|
|
@@ -734,6 +735,17 @@ if test x$WANT_KVM = xyes; then
|
|
fi
|
|
|
|
dnl
|
|
+dnl PROPLIB for NetBSD
|
|
+dnl
|
|
+
|
|
+if test x$WANT_PROPLIB = xyes; then
|
|
+ AC_CHECK_LIB(prop, prop_dictionary_create,
|
|
+ conky_LIBS="$conky_LIBS -lprop",
|
|
+ AC_MSG_ERROR([Could not find prop_dictionary_create in -lprop.])
|
|
+ )
|
|
+fi
|
|
+
|
|
+dnl
|
|
dnl optreset
|
|
dnl
|
|
|
|
@@ -784,7 +796,7 @@ dnl
|
|
dnl Some headers
|
|
dnl
|
|
|
|
-AC_CHECK_HEADERS([signal.h unistd.h sys/utsname.h sys/stat.h linux/soundcard.h alsa/asoundlib.h dirent.h mcheck.h \
|
|
+AC_CHECK_HEADERS([signal.h unistd.h sys/utsname.h sys/stat.h linux/soundcard.h alsa/asoundlib.h dirent.h mcheck.h sys/statvfs.h \
|
|
sys/statfs.h sys/param.h pthread.h semaphore.h assert.h errno.h time.h])
|
|
AC_CHECK_HEADERS([sys/mount.h], [], [],
|
|
[#ifdef HAVE_SYS_PARAM_H
|