Hi Bruno,

* Bruno Haible wrote on Thu, Jan 12, 2006 at 02:04:45PM CET:
> 
> To use the 'ldd' module is simple:
>   - add an AC_REQUIRE([gl_LDD]),
>   - use
>          $LDDPROG conftest$ac_exeext $LDDPOSTPROC

I assume you mean
  $(LDDPROG) program$(EXEEXT) $(LDDPOSTPROC)

for Makefiles?

Because redirection won't happen after parameter expansion.
And sticking an `eval' before above line won't work either:
you lose your nice spaces/tabs and such in $LDDPOSTPROC due
to missing quotation.

>     instead of
>          ($gl_ldd conftest$ac_exeext) 2>/dev/null

Maybe you can settle on something like this use instead?

  $LDDPROG 2>/dev/null | $LDDPOSTPROC
or even
  $LDDPROG 2>/dev/null | $SED $LDDPOSTPROC

It should be possible to merge all the multiple-sed-pipes in ldd.m4
using multiple `-e' options; barring sed bugs, which I haven't checked
now (but for that, using $SED could help).

Cheers,
Ralf


_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to