1*4882a593SmuzhiyunPatch borrowed from 2*4882a593Smuzhiyunhttp://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/mysql/files/configure-ps-cache-check.patch 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunIt allows to specify through ac_cv_FIND_PROC how ps should be used on 5*4882a593Smuzhiyunthe target to find the PID of a program. 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun--- 10*4882a593Smuzhiyun configure.in | 9 +++++---- 11*4882a593Smuzhiyun 1 file changed, 5 insertions(+), 4 deletions(-) 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunIndex: mysql-5.1.53/configure.in 14*4882a593Smuzhiyun=================================================================== 15*4882a593Smuzhiyun--- mysql-5.1.53.orig/configure.in 16*4882a593Smuzhiyun+++ mysql-5.1.53/configure.in 17*4882a593Smuzhiyun@@ -462,8 +462,8 @@ 18*4882a593Smuzhiyun # then Make, then shell. The autoconf substitution uses single quotes, so 19*4882a593Smuzhiyun # no unprotected single quotes should appear in the expression. 20*4882a593Smuzhiyun AC_PATH_PROG(PS, ps, ps) 21*4882a593Smuzhiyun-AC_MSG_CHECKING("how to check if pid exists") 22*4882a593Smuzhiyun-PS=$ac_cv_path_PS 23*4882a593Smuzhiyun+AC_CACHE_CHECK([how to check if pid exists], [ac_cv_FIND_PROC], 24*4882a593Smuzhiyun+[ 25*4882a593Smuzhiyun # Linux style 26*4882a593Smuzhiyun if $PS wwwp $$ 2> /dev/null | grep -- "$0" > /dev/null 27*4882a593Smuzhiyun then 28*4882a593Smuzhiyun@@ -502,8 +502,9 @@ 29*4882a593Smuzhiyun AC_MSG_ERROR([Could not find the right ps and/or grep switches. Which OS is this? See the Installation chapter in the Reference Manual.]) 30*4882a593Smuzhiyun esac 31*4882a593Smuzhiyun fi 32*4882a593Smuzhiyun-AC_SUBST(FIND_PROC) 33*4882a593Smuzhiyun-AC_MSG_RESULT("$FIND_PROC") 34*4882a593Smuzhiyun+ac_cv_FIND_PROC="$FIND_PROC" 35*4882a593Smuzhiyun+]) 36*4882a593Smuzhiyun+AC_SUBST([FIND_PROC], [$ac_cv_FIND_PROC]) 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun # Check if a pid is valid 39*4882a593Smuzhiyun AC_PATH_PROG(KILL, kill, kill) 40