autoconf
[Top][All Lists]
Advanced

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

Re: Use pipe and sed in configure.ac


From: Peter O'Gorman
Subject: Re: Use pipe and sed in configure.ac
Date: Thu, 10 Feb 2011 08:49:30 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13 Thunderbird/3.1.7

On 02/09/2011 09:39 PM, Lyre wrote:
PHPINC=`php-config --includes`
PHPCDIR=`php-config --configure-options | sed -n
's|.*--with-config-file-scan-dir=\([^ ]*\).*|\1|p'`

Probably the [] in your sed expression need extra quoting.

e.g.
\([[^ ]]*\)

You can verify by looking at the generated configure script.

Peter




reply via email to

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