Mercurial > hg > octave-kai > gnulib-hg
diff modules/getaddrinfo @ 14984:2a2292579cf1
getaddrinfo: Move AC_LIBOBJ invocations to module description.
* m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
AC_LIBOBJ invocations from here...
* modules/getaddrinfo (configure.ac): ... to here.
(Depends-on): Add conditions.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 09 May 2011 00:20:21 +0200 (2011-05-08) |
parents | a35c1efcd66d |
children |
line wrap: on
line diff
--- a/modules/getaddrinfo +++ b/modules/getaddrinfo @@ -7,20 +7,26 @@ m4/getaddrinfo.m4 Depends-on: -extensions -gettext-h -inet_ntop -snprintf -stdbool +netdb sys_socket -netdb -strdup -servent -hostent -sockets +extensions +gettext-h [test $HAVE_GETADDRINFO = 0 || test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1] +inet_ntop [test $HAVE_GETADDRINFO = 0] +snprintf [test $HAVE_GETADDRINFO = 0] +stdbool [test $HAVE_GETADDRINFO = 0] +strdup [test $HAVE_GETADDRINFO = 0] +servent [test $HAVE_GETADDRINFO = 0] +hostent [test $HAVE_GETADDRINFO = 0] +sockets [test $HAVE_GETADDRINFO = 0] configure.ac: gl_GETADDRINFO +if test $HAVE_GETADDRINFO = 0; then + AC_LIBOBJ([getaddrinfo]) +fi +if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then + AC_LIBOBJ([gai_strerror]) +fi gl_NETDB_MODULE_INDICATOR([getaddrinfo]) Makefile.am: