blob: 4782714d57640f5c8c976d59ca5f1ec6d7b3f89f [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From a3631df3d6743113e1cd63579925e15bcce85868 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
4Subject: [PATCH 2/4] configure: fix a cc check issue.
5
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])