emacs-devel
[Top][All Lists]
Advanced

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

Re: Can configure figure out if a C library supports a feature?


From: Eli Zaretskii
Subject: Re: Can configure figure out if a C library supports a feature?
Date: Fri, 14 May 2010 12:35:20 +0300

> From: address@hidden
> Date: Fri, 14 May 2010 10:57:15 +0200
> 
> Can configure figure out if a C library supports a feature?
> 
> I have refreshed the ImageMagick branch, and want to support more
> versions of ImageMagick.
> 
> At some point ImageMagick introduced MagickExportImagePixels(). I can
> optionaly take advantage of this function. How do I figure out and
> handle in my code that this function is available?

You link with the appropriate library to see whether the link
succeeds.

> Im looking for something like having autoconf emitting a #define
> HAVE_MAGICKEXPORTIMAGEPIXELS.

Check out AC_CHECK_FUNC and AC_CHECK_FUNCS macros in Autoconf.  You
can see how they are used in configure.in.



reply via email to

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