delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/25/12:17:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <417D26E8.6090304@x-ray.at>
Date: Mon, 25 Oct 2004 18:16:40 +0200
From: Reini Urban <rurban AT x-ray DOT at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8a3) Gecko/20040817
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: autoconf AT gnu DOT org
Subject: Re: resolv.h test proposal
References: <20041025121439 DOT GA4915 AT matsrv DOT math DOT cas DOT cz> <417CF66F DOT 7020803 AT x-ray DOT at> <20041025130959 DOT GA8437 AT matsrv DOT math DOT cas DOT cz> <53-1480046524 DOT 20041025174019 AT familiehaase DOT de>
In-Reply-To: <53-1480046524.20041025174019@familiehaase.de>
X-IsSubscribed: yes

Gerrit P. Haase schrieb:
> Thread context: http://cygwin.com/ml/cygwin/2004-10/msg01111.html
> Stepan schrieb:
> 
> 
>>Hello Reini,
>>On Mon, Oct 25, 2004 at 02:49:51PM +0200, Reini Urban wrote:
>>>>So I take the liberty to forward it to the bug report address.
>>>
>>>Many thanks for doing this for us.
> 
>>nothing to be really grateful for.
> 
>>What's really needed, is to write the AC_HEADER_RESOLV macro.
>>The existing AC_HEADER_* macros can serve as a template.
> 
>>It would be nice if you or Gerrit or someone else could invest the time
>>to do it and post the patch to autoconf-patches AT gnu DOT org .
> 
> 
> I'm sorry, I don't know enough about autoconf / m4 programming to
> integrate this into autoconf.
> 
> I just use this for acinclude.m4 or put it in a file named resolv_h.m4
> under /usr/share/aclocal now:
> 
> # AC_HEADER_RESOLV
> # Call AC_HEADER_RESOLV after this in configure.ac:
> # AC_CHECK_HEADERS([arpa/nameser.h netinet/in.h sys/socket.h sys/types.h])
> # ---------------
> AC_DEFUN([AC_HEADER_RESOLV],
> [AC_CHECK_HEADERS([resolv.h], [], [],
>       [[#if HAVE_SYS_TYPES_H
>         #  include <sys/types.h>
>         #endif
>         #ifdef HAVE_NETINET_IN_H
>         #  include <netinet/in.h>   /* inet_ functions / structs */
>         #endif
>         #ifdef HAVE_ARPA_NAMESER_H
>         #  include <arpa/nameser.h> /* DNS HEADER struct */
>         #endif
>         #ifdef HAVE_SYS_SOCKET_H
>         #  include <sys/socket.h> /* DNS HEADER struct */
>         #endif
>       ]]
> )])# AC_HEADER_RESOLV
> 
> 
> 
> I call AC_HEADER_RESOLV in configure.ac and this works for me(tm).

And now I have to persuade clamav folks to use this new macro where they 
even brought down their whole autoconf/libtool setup by overriding the 
most useful macros from aclocal.m4 in acinclude.m4 (some LIBTOOL 
overrides) and creating their own way of AC_CANONICAL_HOST and some more 
goodies???
Well it's still below v1.0, maybe that's why.

I'd better fix it upstream so they'll get it without any notice.
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019