Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 1 | From 0a02ac779c51a2b4af3b58cb96967bf3eff80367 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 2 | From: Wenlin Kang <wenlin.kang@windriver.com> |
| 3 | Date: Wed, 24 May 2017 16:45:34 +0800 |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 4 | Subject: [PATCH] configure: fix a cc check issue. |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 5 | |
| 6 | When has "." in cc value, the expression |
| 7 | $myperl -V:cc | $myperl -n -e 'print if (s/^\s*cc=.([-=\w\s\/]+).;\s*/$1/);' |
| 8 | can't get corretly the cc's value. |
| 9 | |
| 10 | Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com> |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 12 | --- |
| 13 | configure.d/config_project_perl_python | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/configure.d/config_project_perl_python b/configure.d/config_project_perl_python |
| 17 | index 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]) |