[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: A newbie asks...

From: Guus Leeuw jr.
Subject: RE: A newbie asks...
Date: Fri, 3 Dec 2004 08:35:37 +0100

> -----Original Message-----
> From: address@hidden [mailto:autoconf-
> address@hidden On Behalf Of Robert Lowe
> Sent: vendredi 3 d├ęcembre 2004 00:31
> To: address@hidden
> Subject: A newbie asks...
> 1. POSIX threads
>     Is this solved as easily as adding the acx_pthread macro in
> aclocal.m4, then
>     calling it in and using the defined variables to properly
> set
>     my foo_CFLAGS, foo_LIBS (or do I use LDADD?), etc., in my

Yes it is ;)

> 2. A header file which seems to be in different places on some platforms
>     (net/ethernet.h, sys/ethernet.h, and perhaps others).  What am I
> supposed to
>     construct to define something that will help me include the correct
> header
>     file?

AC_CHECK_HEADERS([some.h other.h])
Will generate #define HAVE_SOME_H and #define HAVE_OTHER_H if the headers
were found. Then in your code, you can do fancy stuff with the pre-processor
based on these #defines.
Also, there is quite a couple of predefined checks for special
headers/functions that you might to check out, e.g. AC_FUNC_SELECT_ARGTYPES


Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
Version: 6.0.788 / Virus Database: 533 - Release Date: 01/11/2004

reply via email to

[Prev in Thread] Current Thread [Next in Thread]