delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/11/27/12:51:37

From: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
To: <djgpp-workers AT delorie DOT com>, "'Andrew Cottrell'" <acottrel AT ihug DOT com DOT au>
Cc: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Subject: Re: Grep 2.5e beta port to DJGPP
Date: Tue, 27 Nov 2001 18:50:25 +0100
Message-ID: <000b01c1776b$fecc9170$28f8e0d5@pandora.be>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
In-reply-to: <Pine.SUN.3.91.1011127133415.22199C-100000@is>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000
Importance: Normal
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> It's probably a simple matter of adding to configure.in a call to some
> AC_* macro, and regenerating the configure script and config.h.in.

I don't think there's a simple standard macro to detect whether a macro
exists, so you'll probably have to run some test program to detect it.
So I'd suggest simply using

#ifdef ISSOCK
   ... ISSOCK(x)
#endif

in the source (IIRC this is what several other packages do).

- Raw text -


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