Re: Compiler checks in AM_PROG_LIBTOOL

2007-03-05 Thread Stephane Bortzmeyer
On Mon, Mar 05, 2007 at 02:58:52AM +0100, Fredrik Tolf <[EMAIL PROTECTED]> wrote a message of 27 lines which said: > However, it seems to have the rather nasty habit of not only wanting > to check for the g++ and g77 compilters, but even making configure > fail if they aren't present, I use au

Adding the right flags to a program which dlopens

2004-06-02 Thread Stephane Bortzmeyer
[Feel free to redirect to the proper mailing list if it is not a libtool problem, after all.] I have a program with binary plugins. It loads them by dlopen(3). I develop on Debian/Linux (where you need to pass -dl to the linker) and NetBSD (where you need nothing special). I use Autoconf, Automake

Re: Adding the right flags to a program which dlopens

2004-06-02 Thread Stephane Bortzmeyer
On Wed, Jun 02, 2004 at 08:45:35AM -0500, Bob Friesenhahn <[EMAIL PROTECTED]> wrote a message of 31 lines which said: > If you are willing to build and link your loadable modules using > libtool, then it as simple as linking using libtool's -module > option. The problem is not the building of

Re: Adding the right flags to a program which dlopens

2004-06-02 Thread Stephane Bortzmeyer
On Wed, Jun 02, 2004 at 08:59:33AM -0500, Bob Friesenhahn <[EMAIL PROTECTED]> wrote a message of 30 lines which said: > If you use libltdl to do module loading rather than raw dlopen() I hesitate. What are the pros and cons? I do not really want to add yet another dependency to my program.

Re: Adding the right flags to a program which dlopens

2004-06-05 Thread Stephane Bortzmeyer
On Wed, Jun 02, 2004 at 12:51:31PM -0500, Albert Chin <[EMAIL PROTECTED]> wrote a message of 21 lines which said: > Does this work: > AC_SEARCH_LIBS(dlopen, [-ldl]) > > This will add -ldl to $LIBS if needed. I think $LIBS is automatically > linked into the main program. It does but it tests

Re: Adding the right flags to a program which dlopens

2004-06-05 Thread Stephane Bortzmeyer
On Thu, Jun 03, 2004 at 04:04:28PM +0100, Gary V. Vaughan <[EMAIL PROTECTED]> wrote a message of 56 lines which said: > Arrange for your aclocal.m4 to include ltdl.m4, and then in configure.ac: > > ~ AC_LTDL_DLLIB > ~ AC_SUBST([LIBADD_DL]) # probably not necessary for libtool >= 1.5 > > and

Re: Adding the right flags to a program which dlopens

2004-06-11 Thread Stephane Bortzmeyer
On Wed, Jun 02, 2004 at 12:51:31PM -0500, Albert Chin <[EMAIL PROTECTED]> wrote a message of 21 lines which said: > Does this work: > AC_SEARCH_LIBS(dlopen, [-ldl]) AC_SEARCH_LIBS(dlopen, [dl]) (no -l) works, indeed. Thanks for the tip. ___ Lib

Re: aclocal and libtool don't get along

2004-07-20 Thread Stephane Bortzmeyer
On Mon, Jul 19, 2004 at 01:25:12PM -0400, Vance Shipley <[EMAIL PROTECTED]> wrote a message of 31 lines which said: > $ aclocal > configure.ac:2: /usr/local/bin/m4: ERROR: Reading inserted file: No such file or > directory I suspect that a M4 included file is actually a dangling symlink. Goto