Werner LEMBERG replied to Ralf Wildenhues:
> > > What about adding a test to find out the extension of (static)
> > > libraries? Having a LIBEXT variable would be quite helpful.
> >
> > [...] you can alternatively use the gnulib module havelib (which
> > will use the logic in the config.rpath file to set libext).
>
> This looks very promising, thanks! How shall someone find that?
It's so simple that you can write it yourself in a couple of lines:
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
libext=a
case "$host_os" in
cygwin* | mingw* | pw32* | cegcc*)
libext=lib
;;
esac
> This gnulib module lacks *any* documentation (and I follow the git
> repository almost daily).
That's because the 'havelib', at some point, should migrate into autoconf.
gnulib is only its temporary home.
Bruno