easy enough. But what's the best way to use "the shell"? Do a unquoted
replacement (<<EOF, not <<"EOF") e.g.
Yes.
Somewhere, buried in the configury stuff is an environment
variable named something like, "CONFIG_SHELL". That's what
you want. If it is not available, then imitating the techniques
used to obtain it by configure should be used.
But lt-foo.c is created by the libtool script itself -- and libtool
already knows that $SHELL == /bin/sh or /bin/bash or whatever. libtool
uses the same method I described when creating the shell wrapper: