Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6600039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:34:12+00:00 2026-05-25T18:34:12+00:00

How can I pass a string verbatim from autoconf.ac to automake.am. Example, in autoconf.ac

  • 0

How can I pass a string verbatim from autoconf.ac to automake.am.

Example, in autoconf.ac, I’d like to give MYPATH = "-I$MYENVPATH -I$SOMEOTHERPATH" and subsequently, get MYPATH exactly as I gave, inside automake.am

AC_SUBST is trying to deference and cause issues.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:34:12+00:00Added an answer on May 25, 2026 at 6:34 pm

    To prevent the shell from evaluating variables inside strings (if that is whay you meant by “AC_SUBST is trying to dereference”), use simple quotes:

    AC_SUBST([MYPATH], ['-I$MYENVPATH -I$SOMEOTHERPATH'])
    

    This should output the following line in Makefile:

    MYPATH = -I$MYENVPATH -I$SOMEOTHERPATH
    

    However this does not make a lot of sense to me: make needs variable names to be enclosed in braces or parentheses (when their name has more than one letter). Probably what you really want is something like:

    AC_SUBST([MYPATH], ['-I${MYENVPATH} -I${SOMEOTHERPATH}'])
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I the HTML string <br> from this HTML FORM pass to the
how can I pass a string from PHP to Flash? I need to pass
How I can pass a query string with special characters? For example I need
Can I pass a string from Java to my C++ routine using JNI function
I know that I can pass a string as the second parameter to the
Is there a format string (?) I can pass to the VB6 Format function
When you use the Trim() method on a string object, you can pass an
You can pass special strings into jQuery's Datepicker class setDate() method like +7 which
Using logparser you can pass on parameters to the query you'd like to run
How can i pass a string delimited by space or comma to stored procedure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.