fielding 01/02/18 00:23:43
Modified: build config.guess config.sub
Log:
Add support for OS/390 to APR's config.sub and config.guess. TPF and VM/CMS
came along for the ride.
Submitted by: Jeff Trawick
Revision Changes Path
1.2 +3 -0 apr/build/config.guess
Index: config.guess
===================================================================
RCS file: /home/cvs/apr/build/config.guess,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- config.guess 2001/02/18 08:14:14 1.1
+++ config.guess 2001/02/18 08:23:41 1.2
@@ -389,6 +389,9 @@
*:IRIX*:*:*)
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
exit 0 ;;
+ *:OS390:*:* | *:OS/390:*:*)
+ echo s390-ibm-os390
+ exit 0 ;;
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
1.2 +23 -2 apr/build/config.sub
Index: config.sub
===================================================================
RCS file: /home/cvs/apr/build/config.sub,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- config.sub 2001/02/18 08:14:14 1.1
+++ config.sub 2001/02/18 08:23:41 1.2
@@ -77,6 +77,14 @@
os=-$maybe_os
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
;;
+ tpf | os390 | vmcms)
+ os=-$maybe_os
+ basic_machine=s390;
+ ;;
+ mvs)
+ os=-mvs
+ basic_machine=i370;
+ ;;
*)
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
if [ $basic_machine != $1 ]
@@ -680,6 +688,9 @@
basic_machine=a29k-amd
os=-udi
;;
+ s390*)
+ basic_machine=s390-ibm
+ ;;
sequent)
basic_machine=i386-sequent
;;
@@ -939,7 +950,7 @@
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
| -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
- | -openstep* | -oskit*)
+ | -openstep* | -oskit* | -tpf* | -os390* | -vmcms* )
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
@@ -1108,7 +1119,17 @@
os=-beos
;;
*-ibm)
- os=-aix
+ case $basic_machine in
+ s390*)
+ os=-os390;
+ ;;
+ i370*)
+ os=-mvs;
+ ;;
+ *)
+ os=-aix
+ ;;
+ esac
;;
*-wec)
os=-proelf