Mats Erik Andersson <[email protected]> writes: > I have not studied that gadget. The main problem is that we need > to cope with all these variations and more: > > GNU/Linux > > /usr/include/idna.h > /usr/lib/libidn.so > > --with-idn > > OpenSolaris > > /usr/include/idn/idna.h > /usr/lib/libidn.sa > > --with-idn=/usr/include/idn > > NetBSD > > /usr/pkg/include/idna.h > /usr/pkg/lib/libidn.so > > --with-idn --with-libidn-prefix=/usr/pkg > > > May I point out that libnettle and libgnutls are not able > to cope with the corresponding OpenSolaris case for libgmp, > so even your own project is wanton in this sense. > > Please use your longer experience with Autoconf in order > to improve on me. I would welcome such a change.
With AC_LIB_HAVE_LINKFLAGS I think you would deal with it in the following ways: 1) ./configure --with-idn (finds idna.h and libidn.so directly) 2) ./configure CPPFLAGS=-I/usr/include/idn --with-idn (also search /usr/include/idn for idna.h) 3) ./configure --with-idn --with-libidn-prefix=/usr/pkg why wouldn't this work? I agree it would be a nicer symmetry if AC_LIB_HAVE_LINKFLAGS provided two parameters, one for includedir and one for libdir. But it is mostly an aesthetic improvement, as the code should deal with setting CPPFLAGS to the includedir and --with-libidn-prefix to the libdir. /Simon
