aboutsummaryrefslogtreecommitdiffstats
path: root/m4/progtest.m4
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-11-19 18:55:07 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-11-19 18:55:07 +0200
commit6316df7a19613a47f94366d24f3302daf5d582da (patch)
tree9dfe9538420c24bea0d6926c442629bb26079aab /m4/progtest.m4
parentfed291bee8b64bddbb27537b1ab104cf93b8de01 (diff)
parente13c76601a232b24c99a452d8f3403f87f069c22 (diff)
downloadegawk-6316df7a19613a47f94366d24f3302daf5d582da.tar.gz
egawk-6316df7a19613a47f94366d24f3302daf5d582da.tar.bz2
egawk-6316df7a19613a47f94366d24f3302daf5d582da.zip
Merge branch 'gawk-4.1-stable' into memory-work
Diffstat (limited to 'm4/progtest.m4')
-rw-r--r--m4/progtest.m421
1 files changed, 10 insertions, 11 deletions
diff --git a/m4/progtest.m4 b/m4/progtest.m4
index 2d804ac9..b499f79c 100644
--- a/m4/progtest.m4
+++ b/m4/progtest.m4
@@ -1,5 +1,5 @@
-# progtest.m4 serial 6 (gettext-0.18)
-dnl Copyright (C) 1996-2003, 2005, 2008-2010 Free Software Foundation, Inc.
+# progtest.m4 serial 7 (gettext-0.18.2)
+dnl Copyright (C) 1996-2003, 2005, 2008-2014 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -27,15 +27,14 @@ AC_DEFUN([AM_PATH_PROG_WITH_TEST],
# Prepare PATH_SEPARATOR.
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
- echo "#! /bin/sh" >conf$$.sh
- echo "exit 0" >>conf$$.sh
- chmod +x conf$$.sh
- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
- PATH_SEPARATOR=';'
- else
- PATH_SEPARATOR=:
- fi
- rm -f conf$$.sh
+ # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
+ # contains only /bin. Note that ksh looks also at the FPATH variable,
+ # so we have to set that as well for the test.
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
+ && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
+ || PATH_SEPARATOR=';'
+ }
fi
# Find out how to test for executable files. Don't use a zero-byte file,