1 From 8c2b4061d16756ee2ed37f08db063b8215656943 Mon Sep 17 00:00:00 2001
2 From: Hongxu Jia <hongxu.jia@windriver.com>
3 Date: Thu, 2 Nov 2017 16:48:15 +0800
4 Subject: [PATCH] fix configure failed while build dir name contains "yes"
6 While build dir name contained "yes", and compiled with
7 producing debugging information (-g), the configure failed.
9 The pattern of AC_EGREP_CPP (string "yes") mismatched with
10 dir name. It caused the test of AC_EGREP_CPP incorrect.
12 Use YES_IS_DEFINED to replace yes which is not often used
16 (Fix release v.4.6.2 or above)
18 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
20 configure.ac | 32 ++++++++++++++++----------------
21 1 file changed, 16 insertions(+), 16 deletions(-)
23 diff --git a/src/configure.ac b/src/configure.ac
24 index 28237f5..34f9735 100644
27 @@ -151,9 +151,9 @@ fi
30 AC_CHECKING(for Ultrix)
32 +AC_EGREP_CPP(YES_IS_DEFINED,
33 [#if defined(ultrix) || defined(__ultrix)
39 @@ -168,9 +168,9 @@ dnl ghazi@caip.rutgers.edu (Kaveh R. Ghazi):
40 dnl BBN butterfly is not POSIX, but a MACH BSD system.
41 dnl Do not define POSIX and TERMIO.
42 AC_CHECKING(for butterfly)
44 +AC_EGREP_CPP(YES_IS_DEFINED,
45 [#if defined(butterfly)
51 @@ -179,12 +179,12 @@ if test -n "$ULTRIX"; then
52 test -z "$GCC" && CC="$CC -YBSD"
54 AC_CHECKING(for POSIX.1)
56 +AC_EGREP_CPP(YES_IS_DEFINED,
57 [#include <sys/types.h>
64 ], AC_NOTE(- you have a POSIX system) AC_DEFINE(POSIX) posix=1)
66 @@ -196,9 +196,9 @@ AC_TRY_COMPILE(
67 #include <fcntl.h>], [int x = SIGCHLD | FNDELAY;], , AC_DEFINE(SYSV))
69 AC_CHECKING(for sequent/ptx)
71 +AC_EGREP_CPP(YES_IS_DEFINED,
76 ], LIBS="$LIBS -lsocket -linet";seqptx=1)
78 @@ -213,9 +213,9 @@ AC_TRY_LINK([#include <utmpx.h>
79 AC_CHECK_HEADERS([stropts.h string.h strings.h])
81 AC_CHECKING(for Solaris 2.x)
83 +AC_EGREP_CPP(YES_IS_DEFINED,
84 [#if defined(SVR4) && defined(sun)
88 ], LIBS="$LIBS -lsocket -lnsl -lkstat")
90 @@ -699,9 +699,9 @@ else
95 +AC_EGREP_CPP(YES_IS_DEFINED,
100 ], ptys=`echo /dev/ptyp??`, ptys=`echo $pdir/pty??`)
101 dnl if test -c /dev/ptyp19; then
102 @@ -878,9 +878,9 @@ fi
105 if test -z "$load" ; then
107 +AC_EGREP_CPP(YES_IS_DEFINED,
108 [#if defined(NeXT) || defined(apollo) || defined(linux)
114 @@ -1105,9 +1105,9 @@ AC_CHECKING(syslog in libbsd.a)
115 AC_TRY_LINK(, [closelog();], AC_NOTE(- found.), [LIBS="$oldlibs"
116 AC_NOTE(- bad news: syslog missing.) AC_DEFINE(NOSYSLOG)])])
119 +AC_EGREP_CPP(YES_IS_DEFINED,
124 ], LIBS="$LIBS -lsocket -lcrypt_i")