From f79acda48d43e57f5bf9c5890c0fd96fe26d6910 Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 23 Aug 2004 03:44:34 +0000 Subject: * Modify bmake to use libnbcompat to ensure that a regex implementation exists. * nbsed-20040821 requires libnbcompat, so make the appropriate adjustments to the build to use it. * If nbsed is built during bootstrap, then use it as the sed for pkg_install so that the correct program is embedded into the pkg_view and linkfarm scripts. * We don't need bmake to build any of the bootstrap packages, so just call out to the system make. --- bootstrap/bmake/var.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'bootstrap/bmake/var.c') diff --git a/bootstrap/bmake/var.c b/bootstrap/bmake/var.c index 48cf7de5e00..76688887698 100644 --- a/bootstrap/bmake/var.c +++ b/bootstrap/bmake/var.c @@ -1,4 +1,4 @@ -/* $NetBSD: var.c,v 1.1.1.1 2004/03/11 13:04:14 grant Exp $ */ +/* $NetBSD: var.c,v 1.2 2004/08/23 03:44:34 jlam Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -39,20 +39,20 @@ */ #ifdef MAKE_BOOTSTRAP -static char rcsid[] = "$NetBSD: var.c,v 1.1.1.1 2004/03/11 13:04:14 grant Exp $"; +static char rcsid[] = "$NetBSD: var.c,v 1.2 2004/08/23 03:44:34 jlam Exp $"; #else #include #ifndef lint #if 0 static char sccsid[] = "@(#)var.c 8.3 (Berkeley) 3/19/94"; #else -__RCSID("$NetBSD: var.c,v 1.1.1.1 2004/03/11 13:04:14 grant Exp $"); +__RCSID("$NetBSD: var.c,v 1.2 2004/08/23 03:44:34 jlam Exp $"); #endif #endif /* not lint */ #endif #if !defined(MAKE_BOOTSTRAP) && !defined(lint) -__IDSTRING(rcs_id,"$Id: var.c,v 1.1.1.1 2004/03/11 13:04:14 grant Exp $"); +__IDSTRING(rcs_id,"$Id: var.c,v 1.2 2004/08/23 03:44:34 jlam Exp $"); #endif /*- @@ -100,7 +100,16 @@ __IDSTRING(rcs_id,"$Id: var.c,v 1.1.1.1 2004/03/11 13:04:14 grant Exp $"); #include #ifndef NO_REGEX #include +#include +/* bmake supplies its own so this header is always present. */ +#ifndef HAVE_SYS_CDEFS_H +#define HAVE_SYS_CDEFS_H 1 +#endif +#if HAVE_REGEX_H #include +#else +#include +#endif #endif #include #include "make.h" -- cgit v1.2.3