blob: c973bde7213a6513e0717e8d6b6b67b4db420f4e [file] [log] [blame]
Andrew Geisslerd688a012020-09-18 13:36:00 -05001From 0a02ac779c51a2b4af3b58cb96967bf3eff80367 Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Wenlin Kang <wenlin.kang@windriver.com>
3Date: Wed, 24 May 2017 16:45:34 +0800
Andrew Geisslerd688a012020-09-18 13:36:00 -05004Subject: [PATCH] configure: fix a cc check issue.
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005
6When has "." in cc value, the expression
7$myperl -V:cc | $myperl -n -e 'print if (s/^\s*cc=.([-=\w\s\/]+).;\s*/$1/);'
8can't get corretly the cc's value.
9
10Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012---
13 configure.d/config_project_perl_python | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/configure.d/config_project_perl_python b/configure.d/config_project_perl_python
17index 475c843..22d2ad3 100644
18--- a/configure.d/config_project_perl_python
19+++ b/configure.d/config_project_perl_python
20@@ -87,7 +87,7 @@ if test "x$install_perl" != "xno" ; then
21 if test "x$enable_perl_cc_checks" != "xno" ; then
22 AC_MSG_CHECKING([for Perl cc])
23 changequote(, )
24- PERLCC=`$myperl -V:cc | $myperl -n -e 'print if (s/^\s*cc=.([-=\w\s\/]+).;\s*/$1/);'`
25+ PERLCC=`$myperl -V:cc | $myperl -n -e 'print if (s/^\s*cc=.([-=\.\w\s\/]+).;\s*/$1/);'`
26 changequote([, ])
27 if test "x$PERLCC" != "x" ; then
28 AC_MSG_RESULT([$PERLCC])