Subject: Re: A question about configure's
To: None <tech-pkg@netbsd.org>
From: Julio Merino <jmmv@hispabsd.org>
List: tech-pkg
Date: 04/19/2002 20:17:47
--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Apr 19, 2002 at 09:30:53AM -0700, Johnny C. Lam wrote:
> On Fri, Apr 19, 2002 at 05:21:03PM +0200, Julio Merino wrote:
> > Hi all
> >=20
> > A solution would be to make the buildlink.mk to "move" files from the
> > cdparanoia subdirectory directly to include. I find this solution ugly.
>=20
> It's ugly but possible.  I'll tell you how if the the other way I suggest
> doesn't work.

Keep reading...

>=20
> You could add something like the following to the package Makefile:
>=20
> CPPFLAGS+=3D	-I${BUILDLINK_DIR}/include/cdparanoia

Well, I've added:

CONFIGURE_ENV+=3D CFLAGS=3D"${CFLAGS} -I${BUILDLINK_DIR}/include/cdparanoia"
CONFIGURE_ENV+=3D CXXFLAGS=3D"${CXXFLAGS} -I${BUILDLINK_DIR}/include/cdpara=
noia"

Configure seems to be getting them. At least, when it checks for the C and
C++ compiler, I can see how the arguments are passed. Although, the check
of headers do not find them:

checking for cdda_interface.h... no
checking for cdda_paranoia.h... no
checking for main in -lcdda_interface... yes

Weird. The configure.in uses this:

AC_CHECK_HEADERS(cdda_interface.h cdda_paranoia.h)

Maybe I would do some hack in it to get the headers found...

Thanks.

>=20
> This should allow the typical GNU configure script to find the headers.
>=20
> 	Cheers,
>=20
> 	-- Johnny Lam <jlam@netbsd.org>

--=20
Of course it runs NetBSD - http://www.netbsd.org
HispaBSD member - http://www.hispabsd.org
Julio Merino <jmmv@hispabsd.org>

--5mCyUwZo2JvN/JJP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8wF9Lzz00ZOPKycwRAmvEAJ42VYsousvrvl6isN+KyCpjg0xqkgCeKR1e
8YIZj2FemtCq+Qj01q4D9k4=
=HYzZ
-----END PGP SIGNATURE-----

--5mCyUwZo2JvN/JJP--