From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 2E74CBC0A for ; Thu, 15 Mar 2007 14:42:52 +0100 (CET) Received: from amazone1.ujf-grenoble.fr (amazone1.ujf-grenoble.fr [193.54.238.254]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2FDgpwv000758 for ; Thu, 15 Mar 2007 14:42:51 +0100 Received: from tana1.ujf-grenoble.fr (tana1.ujf-grenoble.fr [152.77.18.74]) by amazone1.ujf-grenoble.fr (8.13.7/8.13.7/Configured by JE 21 07 2006) with ESMTP id l2FDgn4C001899 for ; Thu, 15 Mar 2007 14:42:49 +0100 (CET) Received: from localhost (unknown [127.0.0.1]) by tana1.ujf-grenoble.fr (Postfix) with ESMTP id 7E3AA19841C for ; Thu, 15 Mar 2007 14:42:49 +0100 (CET) X-Virus-Scanned: Scanned on tana1.ujf-grenoble.fr Received: from tana1.ujf-grenoble.fr ([127.0.0.1]) by localhost (tana1.ujf-grenoble.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kn8g5vc+C+zl for ; Thu, 15 Mar 2007 14:42:49 +0100 (CET) Received: from tibre1.ujf-grenoble.fr (tibre1.ujf-grenoble.fr [152.77.18.86]) by tana1.ujf-grenoble.fr (Postfix) with ESMTP id 4C186198416 for ; Thu, 15 Mar 2007 14:42:49 +0100 (CET) Received: from bruch.ujf-grenoble.fr (bruch.ujf-grenoble.fr [193.54.241.15]) by tibre1.ujf-grenoble.fr (8.13.3/8.13.3) with ESMTP id l2FDgngd015353 for ; Thu, 15 Mar 2007 14:42:49 +0100 (CET) (envelope-from san.vu-ngoc@ujf-grenoble.fr) Received: from localhost (localhost [127.0.0.1]) by bruch.ujf-grenoble.fr (Postfix) with ESMTP id F35824F99C for ; Thu, 15 Mar 2007 14:42:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at fourier.ujf-grenoble.fr Received: from bruch.ujf-grenoble.fr ([127.0.0.1]) by localhost (bruch.ujf-grenoble.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mkImhl2pK5hO for ; Thu, 15 Mar 2007 14:42:48 +0100 (CET) Received: from [193.48.255.250] (ifpoolext7.ujf-grenoble.fr [193.48.255.250]) by bruch.ujf-grenoble.fr (Postfix) with ESMTP id CA23F4F90B for ; Thu, 15 Mar 2007 14:42:46 +0100 (CET) Message-ID: <45F94D57.9010009@ujf-grenoble.fr> Date: Thu, 15 Mar 2007 14:42:47 +0100 From: Vu Ngoc San User-Agent: IceDove 1.5.0.10 (X11/20070307) MIME-Version: 1.0 To: caml-list@inria.fr Subject: dynamically finding libraries Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 45F94D5B.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; more-or-less:01 run-time:01 .0.:98 dynamically:01 native:02 library:03 library:03 compiled:04 install:05 thread:05 uses:06 linux:06 linux:06 standard:07 suspect:08 I have a program compiled to native code on a linux machine, which uses some more-or-less "standard" library like libpangocairo-1.0.so.0. Since this library is not universally present on all linux boxes, I suspect it might be not so easy for an average user to install it. Moreover, it's very small. Therefore I decide to ship it with my software. The question is: is there a way to decide, at run-time, whether the user already has this library or not ? If so, I can ignore (and even delete) the version I shipped, and use the user's library. If not, I fall back on "my" version. San PS: sorry for the first message which appeared - at least with my news reader (icedove) - in the wrong thread.