Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 1997 22:51:32 -0800 (PST)
From:      "David O'Brien" <deobrien@ucdavis.edu>
To:        chuckr@glue.umd.edu (Chuck Robey)
Cc:        ports@freebsd.org
Subject:   Re: Niklas Hallqvist: archivers/hpack.non-usa.only
Message-ID:  <199701090651.WAA20078@rocky.ucdavis.edu>
In-Reply-To: <Pine.OSF.3.95.970108222924.15523B-100000@modem.eng.umd.edu> from "Chuck Robey" at Jan 9, 97 00:34:52 am

next in thread | previous in thread | raw e-mail | index | archive | help
> > So, my proprosal is for each of us to add __44bsd__ to our list of
> > predefined macros.  If this is not liked, then hell, lets add BSD with the
> > right contstant to our cpp.
> 
> David .... can't we just have an if exists to detect sys/param.h, then
> something like this in the makefile
> 
> .if exists /usr/include/sys/param.h
> CFLAGS+=-DHAVE_PARAM_H
> .endif
> 
> and in the source file
> 
> #ifdef HAVE_PARAM_H
> #include <sys/param.h>
> #endif
> 
> and then below do the #ifdefs based on BSD4_4

Yes, generally that should work.  But occationally, I've hit ports that
play gratious games with CFLAGS and other vars to generate what ever they
put on the command line with cc.

Also, I like solutions that don't rely so much on our make.  I actually
try to send patches back to authors.  So I need a solution that is
stomach able by them.

-- David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701090651.WAA20078>