From 252b8b278362a1b700789e8aa4710c540e77517d Mon Sep 17 00:00:00 2001 From: Eric J Korpela Date: Thu, 15 Aug 2013 11:36:13 -0700 Subject: [PATCH] - AUTOCONF: hack to permit AX_PTHREADS to work on autoconf 2.59 --- m4/ax_pthread.m4 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4 index 6d400ed4e8..18e6af05fa 100644 --- a/m4/ax_pthread.m4 +++ b/m4/ax_pthread.m4 @@ -83,6 +83,44 @@ # exception to the GPL to apply to your modified version as well. #serial 20 +# +# AS_EXECUTABLE_P, AC_CHECK_PROGS, AC_CASE and AS_IF for 5.89 +# --------------- +# Check whether a file is executable. +m4_ifndef([AS_EXECUTABLE_P], +[m4_defun([AS_EXECUTABLE_P],[ +test -f $1 +])]) + +# AS_IF +#---------------- +m4_ifndef([AS_IF], +[m4_defun([AS_IF],[ +if $1 >/dev/null 2>&1; then + $2 + test +else + $3 + test +fi +])] +) + +# AC_CHECK_PROGS +m4_ifndef([AC_CHECK_PROGS], +AU_ALIAS([AC_CHECK_PROGS],[AC_PATH_PROGS]) +) + +# AS_CASE +m4_ifndef([AS_CASE], +[m4_defun([AS_CASE],[ +case $1 in + $2) $3 + ;; + *) $4 + ;; +esac +])]) AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD]) AC_DEFUN([AX_PTHREAD], [