Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recursively eval in config/x_ac_expand_install_dirs.m4 #45

Closed
wants to merge 1 commit into from

Conversation

ofaaland
Copy link
Contributor

${prefix} is left unexpanded in some path defines processed by
config/x_ac_expand_install_dirs.m4. Some macros then include the
literal string "${prefix}" in their values as reflected in
config/config.h.

#define X_DATADIR "${prefix}/share"
#define X_INFODIR "${prefix}/share/info"
#define X_MANDIR "${prefix}/share/man"

Add adl_RECURSIVE_EVAL() and use it to recursively evaluate the macros
in config/x_ac_expand_install_dirs.m4.

Fixes #44

@ofaaland
Copy link
Contributor Author

ofaaland commented Nov 8, 2019

Hi @morrone @tonyhutter can you take a look at this? Thanks!

Copy link
Member

@morrone morrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to recommend that you get current latest from the autoconf archive project (named AX_RECURSIVE_EVAL):

https://www.gnu.org/software/autoconf-archive/ax_recursive_eval.html
http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_recursive_eval.m4

${prefix} is left unexpanded in some path defines processed by
config/x_ac_expand_install_dirs.m4.  Some macros then include the
literal string "${prefix}" in their values as reflected in
config/config.h.

  #define X_DATADIR "${prefix}/share"
  #define X_INFODIR "${prefix}/share/info"
  #define X_MANDIR "${prefix}/share/man"

Add AX_RECURSIVE_EVAL() and use it to recursively evaluate the
macros in config/x_ac_expand_install_dirs.m4.

Fixes LLNL#44

Signed-off-by: Olaf Faaland <[email protected]>
@ofaaland
Copy link
Contributor Author

I'm going to recommend that you get current latest from the autoconf archive project (named AX_RECURSIVE_EVAL):

https://www.gnu.org/software/autoconf-archive/ax_recursive_eval.html
http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_recursive_eval.m4

Good idea. Done.

@morrone morrone self-requested a review November 11, 2019 18:28
@ofaaland
Copy link
Contributor Author

ofaaland commented Nov 11, 2019

Cherry-picked to master as b15d2bf

@ofaaland ofaaland closed this Nov 11, 2019
@ofaaland ofaaland deleted the b-issue-44 branch November 11, 2019 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

x_ac_install_dirs.m4 fails to expand some dirs
2 participants