Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 4b258c5a9078f8df60684ab7536ce3a8ff207e08 Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Thu, 12 Oct 2017 10:03:57 +0000 |
| 4 | Subject: [PATCH] configure.ac: fix configure failed while build dir contains "yes" |
| 5 | |
| 6 | While the name of build dir contains "yes", the AC_EGREP_CPP |
| 7 | test always return true. |
| 8 | |
| 9 | We rarely use "yes;" to name build dir, so s/yes/yes;/g |
| 10 | could fix the issue |
| 11 | |
| 12 | Upstream-Status: Pending |
| 13 | |
| 14 | Signed-off-by: Jian Kang <jian.kang@windriver.com> |
| 15 | --- |
| 16 | configure.ac | 20 ++++++++++---------- |
| 17 | 1 file changed, 10 insertions(+), 10 deletions(-) |
| 18 | |
| 19 | diff --git a/configure.ac b/configure.ac |
| 20 | index 12996cd..4765af6 100644 |
| 21 | --- a/configure.ac |
| 22 | +++ b/configure.ac |
| 23 | @@ -128,7 +128,7 @@ fi |
| 24 | |
| 25 | |
| 26 | AC_CHECKING(for Ultrix) |
| 27 | -AC_EGREP_CPP(yes, |
| 28 | +AC_EGREP_CPP(yes;, |
| 29 | [#if defined(ultrix) || defined(__ultrix) |
| 30 | yes; |
| 31 | #endif |
| 32 | @@ -145,7 +145,7 @@ dnl ghazi@caip.rutgers.edu (Kaveh R. Ghazi): |
| 33 | dnl BBN butterfly is not POSIX, but a MACH BSD system. |
| 34 | dnl Do not define POSIX and TERMIO. |
| 35 | AC_CHECKING(for butterfly) |
| 36 | -AC_EGREP_CPP(yes, |
| 37 | +AC_EGREP_CPP(yes;, |
| 38 | [#if defined(butterfly) |
| 39 | yes; |
| 40 | #endif |
| 41 | @@ -156,7 +156,7 @@ if test -n "$ULTRIX"; then |
| 42 | test -z "$GCC" && CC="$CC -YBSD" |
| 43 | fi |
| 44 | AC_CHECKING(for POSIX.1) |
| 45 | -AC_EGREP_CPP(yes, |
| 46 | +AC_EGREP_CPP(yes;, |
| 47 | [#include <sys/types.h> |
| 48 | #include <unistd.h> |
| 49 | main () { |
| 50 | @@ -173,14 +173,14 @@ AC_TRY_COMPILE( |
| 51 | #include <fcntl.h>], [int x = SIGCHLD | FNDELAY;], , AC_DEFINE(SYSV)) |
| 52 | |
| 53 | AC_CHECKING(for sequent/ptx) |
| 54 | -AC_EGREP_CPP(yes, |
| 55 | +AC_EGREP_CPP(yes;, |
| 56 | [#ifdef _SEQUENT_ |
| 57 | yes; |
| 58 | #endif |
| 59 | ], LIBS="$LIBS -lsocket -linet";seqptx=1) |
| 60 | |
| 61 | AC_CHECKING(SVR4) |
| 62 | -AC_EGREP_CPP(yes, |
| 63 | +AC_EGREP_CPP(yes;, |
| 64 | [main () { |
| 65 | #if defined(SVR4) || defined(__SVR4) |
| 66 | yes; |
| 67 | @@ -200,9 +200,9 @@ fi |
| 68 | AC_CHECK_HEADERS([stropts.h string.h strings.h]) |
| 69 | |
| 70 | AC_CHECKING(for Solaris 2.x) |
| 71 | -AC_EGREP_CPP(yes, |
| 72 | +AC_EGREP_CPP(yes;, |
| 73 | [#if defined(SVR4) && defined(sun) |
| 74 | - yes |
| 75 | + yes; |
| 76 | #endif |
| 77 | ], LIBS="$LIBS -lsocket -lnsl -lkstat") |
| 78 | |
| 79 | @@ -697,7 +697,7 @@ else |
| 80 | pdir='/dev' |
| 81 | fi |
| 82 | dnl SCO uses ptyp%d |
| 83 | -AC_EGREP_CPP(yes, |
| 84 | +AC_EGREP_CPP(yes;, |
| 85 | [#ifdef M_UNIX |
| 86 | yes; |
| 87 | #endif |
| 88 | @@ -880,7 +880,7 @@ fi |
| 89 | ) |
| 90 | |
| 91 | if test -z "$load" ; then |
| 92 | -AC_EGREP_CPP(yes, |
| 93 | +AC_EGREP_CPP(yes;, |
| 94 | [#if defined(NeXT) || defined(apollo) || defined(linux) |
| 95 | yes; |
| 96 | #endif |
| 97 | @@ -1112,7 +1112,7 @@ AC_CHECKING(syslog in libbsd.a) |
| 98 | AC_TRY_LINK(, [closelog();], AC_NOTE(- found.), [LIBS="$oldlibs" |
| 99 | AC_NOTE(- bad news: syslog missing.) AC_DEFINE(NOSYSLOG)])]) |
| 100 | |
| 101 | -AC_EGREP_CPP(yes, |
| 102 | +AC_EGREP_CPP(yes;, |
| 103 | [#ifdef M_UNIX |
| 104 | yes; |
| 105 | #endif |
| 106 | -- |
| 107 | 2.13.3 |
| 108 | |