[Top][All Lists]

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

Re: Configuring Emacs on Windows with autoconf

From: Paul Eggert
Subject: Re: Configuring Emacs on Windows with autoconf
Date: Fri, 23 Nov 2012 12:56:13 -0800
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 11/23/2012 11:38 AM, Eli Zaretskii wrote:
> how would configure know to use those
> lib/foo.c files for one particular build configuration?

Here's a common pattern:

  if test $ac_cv_func_strtoumax = no; then

The first macro tests whether strtoumax exists.
If it doesn't, the code invokes AC_LIBOBJ to say
that lib/strtoumax.o is needed, and invokes
gl_PREREQ_STRTOUMAX to configure all the stuff
that is needed to compile strtoumax.c.  If
strtoumax exists, the code doesn't compile strtoumax.c
and doesn't do the work necessary to configure it.

A different pattern is used when one must replace
a function rather than simply provide a substitute
when the function is missing.

reply via email to

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