From jan@swi.psy.uva.nl  Wed Dec 13 10:14:24 2000
Received: from gollem.swi.psy.uva.nl (gollem [145.18.152.30])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id KAA21255;
	Wed, 13 Dec 2000 10:14:20 +0100 (MET)
Received: from localhost (localhost [[UNIX: localhost]])
	by gollem.swi.psy.uva.nl (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id KAA31044;
	Wed, 13 Dec 2000 10:14:10 +0100
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Organization: SWI, University of Amsterdam
To: Cortelli Paolo <pcortelli@inwind.it>
Subject: Re: Information about SWI-Prolog (GPL license)
Date: Wed, 13 Dec 2000 10:04:18 +0100
X-Mailer: KMail [version 1.0.28]
Content-Type: text/plain
References: <Cortelli Paolo's message of Tue, 12 Dec 2000 08:18:59 +0100> <3.0.6.32.20001213082717.007ae780@popmail.inwind.it>
In-Reply-To: <3.0.6.32.20001213082717.007ae780@popmail.inwind.it>
Cc: prolog@gollem.swi.psy.uva.nl
MIME-Version: 1.0
Message-Id: <00121310141000.30754@gollem>
Content-Transfer-Encoding: 8bit

On Wed, 13 Dec 2000, you wrote:
>Dear Sir,
>	   I'm really sorry to write you again on the same subject, but I realize
>I haven't clearly told you that I intend to sell my small program to
>schools. Is it enough to distribute only my prolog sources to comply to the
>GPL?

That depends on the structure of the remainder of your program. 
Basically the GPL acts as a `license virus', forcing everything to
GPL(-compatible) that is connected to it.  Somewhere of course this has
to stop.

There is quite some discussion on this, but a general rule of thumb
that it stops when calling external programs (through CreateProcess(),
or POSIX system()) or when it hits the API distributed natively by the
OS on which the GPL'ed program is running.

So, if you have Prolog based executable called as a process in part of a
larger system it suffices to distribute the Prolog source under a GPL
compatible license.  If you embed (using the foreign interface), both
the C(++) and Prolog source should be GPL'ed.  If you use your own
foreign libraries you need to publish their source too.

	Regards --- Jan

