Re: Command Substitution in AC_ARG_WITH Help Strings

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

 



Keith Marshall <keith.d.marshall@xxxxxxxxxxxx> writes:

> Hello,
>
> I would like to implement a configure option which would have the effect of
>
> AC_DEFUN([MY_LANGUAGE_SET],
> [AC_ARG_WITH([languages],
> AS_HELP_STRING([--with-languages=LIST],
> [install language files in LIST, a comma separated subset of '$1']),
> [languages=$withval],
> [languages=en])])
>
> MY_LANGUAGE_SET([`cd lang; echo ?? | tr " " ,`])
>
> and have the result of the command substitution
>
>    `cd lang; echo ?? | tr " " ,`
>
> appear in the `configure --help' output.

This won't do the right thing if configure is executed outside the source
directory (for buiding in a separate directory).

> Given these limitations, can anyone suggest a better mechanism for achieving 
> this objective?

Use esyscmd to interpolate the output of the command at configure creation
time.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@xxxxxxx
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux