freebsd-ports/devel/pwlib/files/patch-configurein
Joe Marcus Clarke ad0bbce2c7 Allow pwlib to work on ARCHS != i386.
Tested on alpha, i386, and ia64.

Submitted by:	marcel
Approved by:	maintainer (implicit)
2004-03-05 02:37:57 +00:00

26 lines
1.1 KiB
Text

--- configure.in.orig Thu May 22 05:19:16 2003
+++ configure.in Sun Feb 15 23:57:20 2004
@@ -39,7 +39,7 @@
STDCCFLAGS="-DP_LINUX=$OSRELEASE" ;;
freebsd* ) OSTYPE=FreeBSD ;
- OSRELEASE=`sysctl -n kern.osreldate` ;
+## use enviroment variable OSRELEASE=`sysctl -n kern.osreldate` ;
STDCCFLAGS="-DP_FREEBSD=$OSRELEASE" ;;
openbsd* ) OSTYPE=OpenBSD ;
@@ -452,12 +452,13 @@
dnl ########################################################################
dnl check for video capture support.
dnl videodev.h on linux
-dnl machine/ioctl_meteor on FreeBSD
+dnl dev/bktr/ioctl_meteor or machine/ioctl_meteor on FreeBSD
dnl i386/ioctl_meteor on OpenBSD
dnl dev/ic/bt8xx on NetBSD
HAS_VIDEO_CAPTURE=no
AC_CHECK_HEADER(linux/videodev.h, HAS_VIDEO_CAPTURE=yes)
+AC_CHECK_HEADER(dev/bktr/ioctl_meteor.h, HAS_VIDEO_CAPTURE=yes)
AC_CHECK_HEADER(machine/ioctl_meteor.h, HAS_VIDEO_CAPTURE=yes)
AC_CHECK_HEADER(i386/ioctl_meteor.h, HAS_VIDEO_CAPTURE=yes)
AC_CHECK_HEADER(dev/ic/bt8xx.h, HAS_VIDEO_CAPTURE=yes)