From xemacs-m  Thu Apr 24 06:52:34 1997
Received: from alk.physik.uni-erlangen.de (root@theorie3.physik.uni-erlangen.de [131.188.166.210])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id GAA24847
	for <xemacs-beta@xemacs.org>; Thu, 24 Apr 1997 06:52:32 -0500 (CDT)
Received: from cognac.physik.uni-erlangen.de (aoppelt@cognac.physik.uni-erlangen.de [131.188.166.201])
          by alk.physik.uni-erlangen.de (8.8.5/8.8.4) with ESMTP
	  id NAA24069 for <xemacs-beta@xemacs.org>; Thu, 24 Apr 1997 13:52:32 +0200
Received: (from aoppelt@localhost)
	by cognac.physik.uni-erlangen.de (8.8.5/8.8.5) id NAA17168;
	Thu, 24 Apr 1997 13:52:32 +0200
To: xemacs-beta@xemacs.org
Subject: Re: <db/db.h> vs <db.h> Linux question
References: <199704241005.DAA08834@bittersweet.inetarena.com>
From: Achim Oppelt <aoppelt@theorie3.physik.uni-erlangen.de>
Date: 24 Apr 1997 13:52:31 +0200
In-Reply-To: "Karl M. Hegbloom"'s message of Thu, 24 Apr 1997 03:05:41 -0700
Message-ID: <ubk9lsk58g.fsf@cognac.physik.uni-erlangen.de>
Lines: 35
X-Mailer: Gnus v5.4.46/XEmacs 20.2(beta2)

"Karl M. Hegbloom" <karlheg@inetarena.com> writes:

>  On my Debian GNU/Linux setup, the Berkely DB includes are in
> "/usr/include/db", and need to be used with #include <db/db.h>.
> Apparently, the other Linux distributions do not install them there. [1]
> 
>  So, each time I compile XEmacs, I have to fix "src/database.c".  I
> propose this patch, and wonder if this is the RIGHT way to do this.
> (you tell me, and we'll both know.)
[...]
> + #ifdef DEBIAN  /* define in CFLAGS from configure commandline */

I always specified a --site-includes=/usr/include/db. That way, no source
patches are necessary

[...]
>  The right way would be to have configure devine that this machine is
> Debian GNU/Linux, by looking for [ -f "/etc/debian_version" ].  I
> don't know how to add that; I gather that Steven would have to do it?

You would have to modify configure.in. From looking at it, I guess
something like  this should do it:

AC_HEADER_CHECK(db/db.h, have_db_db_h=yes, have_db_db_h=no)
IF_YES_AC_DEFINE(have_db_db_h, HAVE_DB_DB_H)

Your patch would have to be modified accordingly. I will try this and
submit a patch if it works.

Achim

-- 
Achim Oppelt, Schwedenstr. 25, D-91080 Spardorf, Germany
aoppelt@theorie3.physik.uni-erlangen.de
Tel: +49 9131 85-8816	Tel (private): +49 9131 503693	Fax: +49 9131 503690

