head	1.1;
access;
symbols
	RELEASE_8_3_0:1.1
	RELEASE_9_0_0:1.1
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_6_EOL:1.1
	RELEASE_8_1_0:1.1
	RELEASE_7_3_0:1.1
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1;
locks; strict;
comment	@# @;


1.1
date	2003.03.30.00.36.22;	author jkoshy;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Make this port build on 5-CURRENT.
@
text
@--- src/runtime/config/gen-posix-names.sh.orig	Tue Oct 10 21:26:35 2000
+++ src/runtime/config/gen-posix-names.sh	Tue Mar 11 22:50:21 2003
@@@@ -36,17 +36,20 @@@@
   /lib/cpp > $INCLFILE <<XXX
 #include <unistd.h>
 XXX
-elif [ -r "/usr/include/sys/unistd.h" ]; then
-  INCLFILE=/usr/include/sys/unistd.h
-elif [ -r "/usr/include/confname.h" ]; then
-  INCLFILE=/usr/include/confname.h
-elif [ -r "/usr/include/unistd.h" ]; then
-  INCLFILE=/usr/include/unistd.h
-elif [ -r "/usr/include/bsd/unistd.h" ]; then
-  INCLFILE=/usr/include/bsd/unistd.h
 else
-  echo "gen-posix-names.sh: unable to find <unistd.h>"
-  exit 1
+  INCLFILE=""
+  for f in "/usr/include/sys/unistd.h" \
+	"/usr/include/confname.h"      \
+	"/usr/include/unistd.h"        \
+	"/usr/include/bsd/unistd.h"; do
+    if [ -r "$f" ]; then
+      INCLFILE="$INCLFILE $f"
+    fi
+  done
+  if [ -z "$INCLFILE" ];  then
+    echo "gen-posix-names.sh: unable to find <unistd.h>"
+    exit 1
+  fi
 fi
 
 echo "/* $OUTF" >> $OUTF
@
