Linking with installed libtool-constructed library

2001-01-28 Thread Steve Robbins
Hello, I have a project that uses automake & autoconf to build a program. This program links against several previously-installed libraries. One of these libraries was built by libtool. The libtool docs (I'm working with libtool 1.3.5) suggest that one ought to link using libtool --mod

05-define-std-vars.patch

2001-01-28 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * automake.in (define_standard_variables): Use &transform instead of build_rx. Index: automake.in --- automake.in Fri, 26 Jan 2001 22:11:13 +0100 akim (am/f/39_automake.i 1.7 755) +++ automake.in Fri, 26 Ja

02-handle-programs.patch

2001-01-28 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * automake.in (handle_programs) : Remove, replaced by `exeext'. Use it, and &transform. Index: automake.in --- automake.in Fri, 26 Jan 2001 21:37:09 +0100 akim (am/f/39_automake.i 1.4 755) +++ autom

04-handle-texinfo.patch

2001-01-28 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * automake.in (handle_texinfo): Use the new $texinfodir instead of the removed $texinfo_tex. Index: automake.in --- automake.in Fri, 26 Jan 2001 22:00:07 +0100 akim (am/f/39_automake.i 1.6 755) +++ automake

01-get-object-extension.patch

2001-01-28 Thread Akim Demaille
Index: automake.in --- automake.in Fri, 26 Jan 2001 21:30:23 +0100 akim (am/f/39_automake.i 1.3 755) +++ automake.in Fri, 26 Jan 2001 21:35:26 +0100 akim (am/f/39_automake.i 1.3 755) @@ -805,8 +805,11 @@ sub handle_options return 0; } + +# get_object_extension ($OUT) +# ---

07-prog-error.patch

2001-01-28 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * automake.in (prog_error): New. Spread its use. Index: automake.in --- automake.in Sat, 27 Jan 2001 01:54:14 +0100 akim (am/f/39_automake.i 1.9 755) +++ automake.in Sat, 27 Jan 2001 02:07:23 +0100 akim (am/f/39_automake.i

03-handle-libs.patch

2001-01-28 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * automake.in (handle_libraries, handle_ltlibraries): Use &transform. Index: automake.in --- automake.in Fri, 26 Jan 2001 21:49:20 +0100 akim (am/f/39_automake.i 1.5 755) +++ automake.in Fri, 26 Jan 2001 21

08-no-join.patch

2001-01-28 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * automake.in (handle_tags): Use &transform. (am_error, am_line_error, am_conf_error, read_am_file): Use directly arrays in strings, no need for &join. * Makefile.am (maintainer-check): Use grep -w when looki

06-handle-1-transform-list.patch

2001-01-28 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * automake.in (handle_single_transform_list): if (@list) { foreach (@list) ...} can be written as a simple `foreach' loop. Index: automake.in --- automake.in Fri, 26 Jan 2001 22:17:03 +0100 akim (am/f/39_au

11-more-phony.patch

2001-01-28 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * texinfos.am, tags.am, subdirs.am, multilib.am, mans.am: Add a .PHONY target. * automake.in (handle_texinfo, handle_man_pages, handle_multilib) (handle_etags, handle_subdirs): Don't push into @phony. Index:

10-check-am.patch

2001-01-28 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * automake.in (handle_phony): Sort. * automake.in (file_contents_with_transform): Catch `.PHONY:'. * check.am: New file. Index: tests/Makefile.in --- tests/Makefile.in Sat, 13 Jan 2001 18:11:09 +0100 akim (am/f/3_Ma

09-add-depend2.patch

2001-01-28 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * automake.in (add_depend2): Use &transform. Index: automake.in --- automake.in Sat, 27 Jan 2001 02:29:11 +0100 akim (am/f/39_automake.i 1.12 755) +++ automake.in Sun, 28 Jan 2001 07:36:10 +0100 akim (am/f/39_autom

13-configure-ac.patch

2001-01-28 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * automake.in (scan_one_autoconf_file): Correctly recognize configure.ac. Index: automake.in --- automake.in Sun, 28 Jan 2001 15:53:16 +0100 akim (am/f/39_automake.i 1.16 755) +++ automake.in Sun, 28 Jan 20

12-handle-tests-dejagnu.patch

2001-01-28 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * automake.in (handle_tests_dejagnu): New, extracted from... (handle_tests): here. Use `.PHONY:'. Index: automake.in --- automake.in Sun, 28 Jan 2001 15:51:12 +0100 akim (am/f/39_automake.i 1.15 755) +++ a

14-am-traces.patch

2001-01-28 Thread Akim Demaille
Index: ChangeLog from Akim Demaille <[EMAIL PROTECTED]> * automake.in (&scan_autoconf_config_files): Extract from &scan_one_autoconf_file. (&scan_one_autoconf_file): Use it. (&scan_autoconf_traces): New. ($scan_autoconf_files): Use it. Index: automake.in

Re: Linking with installed libtool-constructed library

2001-01-28 Thread Alexandre Oliva
On Jan 28, 2001, Steve Robbins <[EMAIL PROTECTED]> wrote: > libtool --mode=link gcc -o foo foo.o /usr/local/libbar.la > (rather than just "gcc ... -lbar"). This allows libtool a chance to > do special stuff. > So, what's the recommended way of making this happen? Use a CVS version of

Re: 01-get-object-extension.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Aii! I was dreading the day that the Demaillator turned his sights on automake... and now it has arrived! Akim> * automake.in (get_object_extension) <$default_includes>: New. Akim> Use it and &transform. Ok. Tom

Re: 04-handle-texinfo.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (handle_texinfo): Use the new $texinfodir instead of Akim> the removed $texinfo_tex. Akim> - $texinfo_tex = ('$(srcdir)/' Akim> - . &dirname (&variable_value ('TEXINFO_TEX'))); Akim> +$texin

Re: 05-define-std-vars.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (define_standard_variables): Use &transform instead Akim> of build_rx. Ok. Tom

Re: 03-handle-libs.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (handle_libraries, handle_ltlibraries): Use Akim> &transform. Ok. Tom

Re: 06-handle-1-transform-list.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (handle_single_transform_list): if (@list) { foreach Akim> (@list) ...} can be written as a simple `foreach' loop. I didn't read this in enough detail to verify that all that you did was remove the `if'. However,

Re: 02-handle-programs.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (handle_programs) : Remove, replaced by Akim> `exeext'. Akim> Use it, and &transform. Ok. Tom

Re: 08-no-join.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (handle_tags): Use &transform. Akim> (am_error, am_line_error, am_conf_error, read_am_file): Use Akim> directly arrays in strings, no need for &join. Akim> * Makefile.am (maintainer-check): Use grep -w when look

Re: 07-prog-error.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (prog_error): New. Akim> Spread its use. This is fine. Akim> + &prog_error ("version is incorrect: $VERSION") Akim> + if ($VERSION !~ /([0-9]+)\.([0-9]+)([a-z])?/); The automake style is to wr

Re: 13-configure-ac.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (scan_one_autoconf_file): Correctly recognize Akim> configure.ac. Ok. Tom

Re: 12-handle-tests-dejagnu.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (handle_tests_dejagnu): New, extracted from... Akim> (handle_tests): here. Use `.PHONY:'. Ok. Tom

Re: 11-more-phony.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * texinfos.am, tags.am, subdirs.am, multilib.am, mans.am: Add a Akim> .PHONY target. Akim> * automake.in (handle_texinfo, handle_man_pages, handle_multilib) Akim> (handle_etags, handle_subdirs): Don't push into @phony. This

Re: 09-add-depend2.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (add_depend2): Use &transform. Ok. Tom

Re: 10-check-am.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (handle_phony): Sort. Akim> * automake.in (file_contents_with_transform): Catch `.PHONY:'. Akim> * check.am: New file. check.am wasn't in the patch. However, I trust it is just an extraction from handle_tests.

Re: 14-am-traces.patch

2001-01-28 Thread Tom Tromey
> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes: Akim> * automake.in (&scan_autoconf_config_files): Extract from Akim> &scan_one_autoconf_file. Akim> (&scan_one_autoconf_file): Use it. Akim> (&scan_autoconf_traces): New. Akim> ($scan_autoconf_files): Use it. This is fine. I h

Re: Linking with installed libtool-constructed library

2001-01-28 Thread Steve Robbins
On Sun, Jan 28, 2001 at 06:19:08PM -0200, Alexandre Oliva wrote: > On Jan 28, 2001, Steve Robbins <[EMAIL PROTECTED]> wrote: > > > libtool --mode=link gcc -o foo foo.o /usr/local/libbar.la > > > (rather than just "gcc ... -lbar"). This allows libtool a chance to > > do special stuff. > >

PATCH(2): make install-strip in cross-compilation environments

2001-01-28 Thread Alexandre Duret-Lutz
Here is a revised patch. 2001-01-28 Alexandre Duret-Lutz <[EMAIL PROTECTED]> * m4/strip.m4: New file. * m4/Makefile.am (m4data_DATA): Add strip.m4. * m4/init.m4: Call AM_PROG_INSTALL_STRIP. * m4/missing.m4 (AM_AUX_DIR_EXPAND): New function. (AM_MISSING_I