autoconf
[Top][All Lists]
Advanced

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

Using $program_transform_name from ‘configure’


From: Ludovic Courtès
Subject: Using $program_transform_name from ‘configure’
Date: Wed, 23 Apr 2014 18:40:58 +0200
User-agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux)

Hello,

$program_transform_name is apparently meant to be used in makefiles
only, as suggested in the manual and in this comment from ‘configure’:

--8<---------------cut here---------------start------------->8---
# Double any \ or $.
# By default was `s,x,x', remove it if useless.
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
--8<---------------cut here---------------end--------------->8---

The doubled $ and \ make it impossible to use it directly within
configure.ac.

What’s the recommended way to use it in configure.ac?

Thanks,
Ludo’.



reply via email to

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