This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: New autoconf tests - let's try this again


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]