From a70a5e4bddec01dc2dfa18180f3fd5f795618922 Mon Sep 17 00:00:00 2001 From: filliatr Date: Mon, 13 Jan 2003 10:43:20 +0000 Subject: patch configure (V Aymeric) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3496 85f007b7-540e-0410-9357-904b9bb8a0f7 --- configure | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/configure b/configure index a534311ad6..31a1a27110 100755 --- a/configure +++ b/configure @@ -113,17 +113,19 @@ esac # Architecture case $arch_spec in - no) if test -f /bin/arch ; then + no) if test -x /bin/arch ; then ARCH=`/bin/arch` - elif test -f /usr/bin/arch ; then + elif test -x /usr/bin/arch ; then ARCH=`/usr/bin/arch` - elif test -f /usr/ucb/arch ; then + elif test -x /usr/ucb/arch ; then ARCH=`/usr/ucb/arch` - elif /bin/uname -s | grep -q -i CYGWIN ; then + elif test -x /bin/uname && (/bin/uname -s | grep -q -i CYGWIN) ; then ARCH=win32 # cygwin returns a name of the form \\cygdrive\\c\\... # that coqc does not understand; need to transform it COQTOP=`echo $COQTOP | sed -e "s#.*cygdrive.\(.\)#\1:#"` + elif test -x /usr/bin/uname ; then + ARCH=`/usr/bin/uname -s` else echo "I can not automatically find the name of your architecture" echo -n\ -- cgit v1.2.3