This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: New autoconf tests - let's try this again
- To: GCC Developers <gcc at gcc dot gnu dot org>
- Subject: Re: New autoconf tests - let's try this again
- From: Jean-Pierre Radley <jpr at jpr dot com>
- Date: Tue, 9 Jan 2001 13:03:41 -0500
- References: <20010109094944.Q8596@wolery.stanford.edu>
Zack Weinberg propounded (on Tue, Jan 09, 2001 at 09:49:44AM -0800):
| if test -z "$CC"; then
| if command -v cc >/dev/null 2>&1; then
| CC=cc
| elif command -v gcc >/dev/null 2>&1; then
| CC=gcc
| else
| echo "Cannot find compiler, set CC in environment"
| exit 1
| fi
| fi
Not portable shell language:
'command' is neither a program nor a shell built-in here.
Nevertheless:
Have mmap from /dev/zero.
No mmap with MAP_ANON(YMOUS).
mmap of /dev/zero works.
-rw-r--r-- 1 root sys 22 Jan 9 13:01 test1a.l
-rw-r--r-- 1 root sys 0 Jan 9 13:01 test1z.l
-rw-r--r-- 1 root sys 0 Jan 9 13:01 test2z.l
SCO_SV jpradley 3.2 5.0.6 i386
and test1a.l contains:
mmap: Bad file number
--
JP