[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] [SCM] GNU Inetutils branch, master, updated. inetut
From: |
Mats Erik Andersson |
Subject: |
Re: [bug-inetutils] [SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-168-g9aa72c7 |
Date: |
Thu, 13 Sep 2012 23:00:16 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
torsdag den 13 september 2012 klockan 22:37 skrev Simon Josefsson detta:
> Mats Erik Andersson <address@hidden> writes:
>
> > +AC_ARG_WITH([libidn-prefix],
> > + AC_HELP_STRING([--with-libidn-prefix[[=DIR]]],
> > + [Base directory, probes DIR/include and DIR/lib]), ,
> > + [with_libidn_prefix=no])
> ...
> > if test x"$with_idn" != xno \
> > && test "$ac_cv_header_locale_h" = yes \
> > && test "$ac_cv_func_setlocale" = yes; then
> > - AC_MSG_CHECKING([if GNU libidn is available])
> > + if test x"$with_libidn_prefix" != xno \
> > + && test x"$with_libidn_prefix" != xyes; then
> > + INCIDN=-I$with_libidn_prefix/include
> > + LIBIDN=-L$with_libidn_prefix/lib
> > + fi
>
> Why not just use gnulib's AC_LIB_HAVE_LINKFLAGS (m4/lib-link.m4)?
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.
Regards,
Mats