autoconf
[Top][All Lists]
Advanced

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

Re: Standard AC macro calls


From: Carsten Heinrici
Subject: Re: Standard AC macro calls
Date: Tue, 24 Dec 2013 02:16:28 +0100

Hi David

> I'm curious why the macros
>
> AC_CONFIG_SUBDIRS
> and
> AC_SUBST
>
> take differing arguments to work?

Because the arguments are of different type: AC_CONFIG_SUBDIRS gets a
literal string which resolves to a list of paths, while AC_SUBST gets
the name of an output variable name (@xxx@) to substitute with value
of a shell variable of the same name when configure is run.

> AC_CONFIG_SUBDIRS([${SRC_SUBDIRS}])

Using variables is not recommended since it prevents `./configure
--help=recursive' from working correctly.
See 
http://www.gnu.org/software/autoconf/manual/autoconf-2.62/html_node/Subdirectories.html

Best regards
Carsten



reply via email to

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