diff options
author | dillo <dillo@pkgsrc.org> | 2002-10-02 22:30:59 +0000 |
---|---|---|
committer | dillo <dillo@pkgsrc.org> | 2002-10-02 22:30:59 +0000 |
commit | f96c9310f7af6cba09ce8a6cc1e2e128c03f2074 (patch) | |
tree | 924bacfe25c207ab564e3b9f66fbbaac5b0f4486 /sysutils/fam | |
parent | 317244aa10103234796a119ab7754b1cea2ab3de (diff) | |
download | pkgsrc-f96c9310f7af6cba09ce8a6cc1e2e128c03f2074.tar.gz |
get rid of autoconf build dependency by patching configure
Diffstat (limited to 'sysutils/fam')
-rw-r--r-- | sysutils/fam/Makefile | 7 | ||||
-rw-r--r-- | sysutils/fam/distinfo | 3 | ||||
-rw-r--r-- | sysutils/fam/patches/patch-ax | 179 |
3 files changed, 182 insertions, 7 deletions
diff --git a/sysutils/fam/Makefile b/sysutils/fam/Makefile index 2c53e6fa1d9..a63e761ff87 100644 --- a/sysutils/fam/Makefile +++ b/sysutils/fam/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2002/08/25 19:23:19 jlam Exp $ +# $NetBSD: Makefile,v 1.3 2002/10/02 22:30:59 dillo Exp $ # DISTNAME= fam-2.6.7 @@ -11,14 +11,9 @@ MAINTAINER= packages@netbsd.org HOMEPAGE= http://oss.sgi.com/projects/fam/ COMMENT= File Alteration Monitor -BUILD_DEPENDS+= autoconf>=2.13:../../devel/autoconf - USE_GMAKE= YES USE_LIBTOOL= YES GNU_CONFIGURE= YES LIBTOOL_OVERRIDE= ${WRKSRC}/libtool -pre-configure: - cd ${WRKSRC} && ${LOCALBASE}/bin/autoconf - .include "../../mk/bsd.pkg.mk" diff --git a/sysutils/fam/distinfo b/sysutils/fam/distinfo index 6b9781a2fab..b25d7f852d2 100644 --- a/sysutils/fam/distinfo +++ b/sysutils/fam/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2002/08/25 19:23:20 jlam Exp $ +$NetBSD: distinfo,v 1.4 2002/10/02 22:30:59 dillo Exp $ SHA1 (fam-2.6.7.tar.gz) = ca03cb4120e3cc7f6bb08c8183b358e240bd5d36 Size (fam-2.6.7.tar.gz) = 241203 bytes @@ -25,3 +25,4 @@ SHA1 (patch-at) = 83f5680d43ad0e06e5eca517cbba2d0866ae42bc SHA1 (patch-au) = 10d6ce9a3c37ff986c8ff8b786b33d7714d8f904 SHA1 (patch-av) = 18a90c53d641305ef02f71bf443c84d50a2c3fff SHA1 (patch-aw) = a6b75b6c2b85d1b8247cee16fd23fbaffa346c05 +SHA1 (patch-ax) = 197328b2f6444ed052d0ab0ae5d6d5a516fede37 diff --git a/sysutils/fam/patches/patch-ax b/sysutils/fam/patches/patch-ax new file mode 100644 index 00000000000..b84cea14ba7 --- /dev/null +++ b/sysutils/fam/patches/patch-ax @@ -0,0 +1,179 @@ +$NetBSD: patch-ax,v 1.1 2002/10/02 22:31:00 dillo Exp $ + +--- configure.orig Thu Oct 3 00:27:08 2002 ++++ configure +@@ -1881,6 +1881,43 @@ fi + + + ++ac_safe=`echo "mntent.h" | sed 'y%./+-%__p_%'` ++echo $ac_n "checking for mntent.h""... $ac_c" 1>&6 ++echo "configure:1887: checking for mntent.h" >&5 ++if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ cat > conftest.$ac_ext <<EOF ++#line 1892 "configure" ++#include "confdefs.h" ++#include <mntent.h> ++EOF ++ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ++{ (eval echo configure:1897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ++ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ++if test -z "$ac_err"; then ++ rm -rf conftest* ++ eval "ac_cv_header_$ac_safe=yes" ++else ++ echo "$ac_err" >&5 ++ echo "configure: failed program was:" >&5 ++ cat conftest.$ac_ext >&5 ++ rm -rf conftest* ++ eval "ac_cv_header_$ac_safe=no" ++fi ++rm -f conftest* ++fi ++if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ++ echo "$ac_t""yes" 1>&6 ++ cat >> confdefs.h <<\EOF ++#define HAVE_MNTENT_H 1 ++EOF ++ ++else ++ echo "$ac_t""no" 1>&6 ++fi ++ ++ + if test `uname` = 'IRIX' || test `uname` = 'IRIX64'; then + have_imon=yes + cat >> confdefs.h <<\EOF +@@ -2382,129 +2419,8 @@ fi + + + +- echo $ac_n "checking mntent.h for MNTTYPE_NFS""... $ac_c" 1>&6 +-echo "configure:2387: checking mntent.h for MNTTYPE_NFS" >&5 +- cat > conftest.$ac_ext <<EOF +-#line 2389 "configure" +-#include "confdefs.h" +-#include <mntent.h> +-int main() { +-const char *foo = MNTTYPE_NFS; +-; return 0; } +-EOF +-if { (eval echo configure:2396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +- rm -rf conftest* +- fam_have_decl_in_mntent=yes +-else +- echo "configure: failed program was:" >&5 +- cat conftest.$ac_ext >&5 +- rm -rf conftest* +- fam_have_decl_in_mntent=no +-fi +-rm -f conftest* +- echo "$ac_t""$fam_have_decl_in_mntent" 1>&6 +- if test "$fam_have_decl_in_mntent" = "yes"; then +- : +- else +- { echo "configure: error: Didn't find MNTTYPE_NFS in mntent.h" 1>&2; exit 1; } +- fi +- +- +- echo $ac_n "checking mntent.h for MNTTYPE_NFS2""... $ac_c" 1>&6 +-echo "configure:2415: checking mntent.h for MNTTYPE_NFS2" >&5 +- cat > conftest.$ac_ext <<EOF +-#line 2417 "configure" +-#include "confdefs.h" +-#include <mntent.h> +-int main() { +-const char *foo = MNTTYPE_NFS2; +-; return 0; } +-EOF +-if { (eval echo configure:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +- rm -rf conftest* +- fam_have_decl_in_mntent=yes +-else +- echo "configure: failed program was:" >&5 +- cat conftest.$ac_ext >&5 +- rm -rf conftest* +- fam_have_decl_in_mntent=no +-fi +-rm -f conftest* +- echo "$ac_t""$fam_have_decl_in_mntent" 1>&6 +- if test "$fam_have_decl_in_mntent" = "yes"; then +- cat >> confdefs.h <<\EOF +-#define HAVE_MNTTYPE_NFS2 1 +-EOF +- +- else +- : +- fi +- +- +- echo $ac_n "checking mntent.h for MNTTYPE_NFS3""... $ac_c" 1>&6 +-echo "configure:2446: checking mntent.h for MNTTYPE_NFS3" >&5 +- cat > conftest.$ac_ext <<EOF +-#line 2448 "configure" +-#include "confdefs.h" +-#include <mntent.h> +-int main() { +-const char *foo = MNTTYPE_NFS3; +-; return 0; } +-EOF +-if { (eval echo configure:2455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +- rm -rf conftest* +- fam_have_decl_in_mntent=yes +-else +- echo "configure: failed program was:" >&5 +- cat conftest.$ac_ext >&5 +- rm -rf conftest* +- fam_have_decl_in_mntent=no +-fi +-rm -f conftest* +- echo "$ac_t""$fam_have_decl_in_mntent" 1>&6 +- if test "$fam_have_decl_in_mntent" = "yes"; then +- cat >> confdefs.h <<\EOF +-#define HAVE_MNTTYPE_NFS3 1 +-EOF +- +- else +- : +- fi +- +- +- echo $ac_n "checking mntent.h for MNTTYPE_CACHEFS""... $ac_c" 1>&6 +-echo "configure:2477: checking mntent.h for MNTTYPE_CACHEFS" >&5 +- cat > conftest.$ac_ext <<EOF +-#line 2479 "configure" +-#include "confdefs.h" +-#include <mntent.h> +-int main() { +-const char *foo = MNTTYPE_CACHEFS; +-; return 0; } +-EOF +-if { (eval echo configure:2486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +- rm -rf conftest* +- fam_have_decl_in_mntent=yes +-else +- echo "configure: failed program was:" >&5 +- cat conftest.$ac_ext >&5 +- rm -rf conftest* +- fam_have_decl_in_mntent=no +-fi +-rm -f conftest* +- echo "$ac_t""$fam_have_decl_in_mntent" 1>&6 +- if test "$fam_have_decl_in_mntent" = "yes"; then +- cat >> confdefs.h <<\EOF +-#define HAVE_MNTTYPE_CACHEFS 1 +-EOF +- +- else +- : +- fi +- +- + echo $ac_n "checking netinet/in.h for bindresvport()""... $ac_c" 1>&6 +-echo "configure:2508: checking netinet/in.h for bindresvport()" >&5 ++echo "configure:2424: checking netinet/in.h for bindresvport()" >&5 + if eval "test \"`echo '$''{'fam_cv_bindresvport_in_in_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else |