From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14213 invoked by alias); 29 Aug 2011 14:22:40 -0000 Received: (qmail 14202 invoked by uid 22791); 29 Aug 2011 14:22:39 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Aug 2011 14:22:26 +0000 Received: (qmail 20860 invoked from network); 29 Aug 2011 14:22:25 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 29 Aug 2011 14:22:25 -0000 From: Pedro Alves To: Sanjoy Das Subject: Re: [PATCH 3/7] Platform agnostic dynamic loading code. Date: Mon, 29 Aug 2011 14:22:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.0; x86_64; ; ) Cc: gdb-patches@sourceware.org References: <1314212467-7391-1-git-send-email-sanjoy@playingwithpointers.com> <201108291103.23021.pedro@codesourcery.com> <4E5B8CFF.3060709@playingwithpointers.com> In-Reply-To: <4E5B8CFF.3060709@playingwithpointers.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201108291522.23175.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00566.txt.bz2 On Monday 29 August 2011 13:58:39, Sanjoy Das wrote: > Hi Pedro! > > > This isn't correct. There are platforms where dlopen & friends are > > in the C library, and don't need or have -ldl/libdl. > > > Does it make more sense to have an AC_CHECK_HEADERS for dlfcn.h then? > Of course, the AC_CHECK_LIB will have to stay, since we'd want to add > -ldl if required. Checking for dlfcn.h sounds like a good idea, but I think AC_SEARCH_LIBS instead of AC_CHECK_LIB would be a bit more bullet proof, to still check for being able to call/link dlopen. -- Pedro Alves