summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseawood%netscape.com <devnull@localhost>2001-12-01 18:54:41 +0000
committerseawood%netscape.com <devnull@localhost>2001-12-01 18:54:41 +0000
commitd490d231147852f941032340c3e90480354ab4b7 (patch)
tree7dff70f909806e90f509e1d4df7b7b648a83c3fa
parent2f80ce897632de395a121fdd71199ce53d3fb18b (diff)
downloadnspr-hg-d490d231147852f941032340c3e90480354ab4b7.tar.gz
Revert to using standard config.sub & config.guess entries for OS/2.
Thanks to pedemont@us.ibm.com (Javier Pedemonte) for the patch. Bug #112244 r=cls
-rwxr-xr-xbuild/autoconf/config.guess11
-rwxr-xr-xbuild/autoconf/config.sub6
-rwxr-xr-xconfigure14
-rw-r--r--configure.in14
4 files changed, 15 insertions, 30 deletions
diff --git a/build/autoconf/config.guess b/build/autoconf/config.guess
index dc37b18b..627c6158 100755
--- a/build/autoconf/config.guess
+++ b/build/autoconf/config.guess
@@ -1100,16 +1100,7 @@ EOF
echo ${UNAME_MACHINE}-unknown-plan9
exit 0 ;;
i*86:OS/2:*:*)
- # If we were able to find `uname', then EMX Unix compatibility
- # is probably installed.
- # echo ${UNAME_MACHINE}-pc-os2-emx
-#### MozillaHack
- if test "$VACPP" = "yes"; then
- echo "i386-pc-os2_vacpp"
- else
- echo "i386-pc-os2_emx"
- fi
-#### End MozillaHack
+ echo ${UNAME_MACHINE}-pc-os2-emx
exit 0 ;;
*:TOPS-10:*:*)
echo pdp10-unknown-tops10
diff --git a/build/autoconf/config.sub b/build/autoconf/config.sub
index 37799ea8..0cee56fb 100755
--- a/build/autoconf/config.sub
+++ b/build/autoconf/config.sub
@@ -1059,12 +1059,6 @@ case $os in
-gnu/linux*)
os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
;;
-#### MozillaHack
- -os2_emx)
- ;;
- -os2_vacpp)
- ;;
-#### End MozillaHack
# First accept the basic system types.
# The portable systems comes first.
# Each alternative MUST END IN A *, to match a version number.
diff --git a/configure b/configure
index a5b827e4..e696bf85 100755
--- a/configure
+++ b/configure
@@ -4537,8 +4537,8 @@ EOF
MDCPUCFG_H=_os2.cfg
RESOLVE_LINK_SYMBOLS=1
- case "$target" in
- *-os2_emx)
+ # EMX/GCC build
+ if test "$GNU_CC"; then
cat >> confdefs.h <<\EOF
#define XP_OS2_EMX 1
EOF
@@ -4568,8 +4568,10 @@ EOF
EXEFLAGS='-Zmtd -o $@'
DSO_LDOPTS='-Zomf -Zdll -Zmt -Zcrtdll -Zlinker /NOO'
fi
- ;;
- *-os2_vacpp)
+ fi
+
+ # Visual Age C++ build
+ if test "$VACPP" = "yes"; then
cat >> confdefs.h <<\EOF
#define XP_OS2_VACPP 1
EOF
@@ -4617,9 +4619,7 @@ EOF
fi
LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
- ;;
- esac
-
+ fi
;;
*)
diff --git a/configure.in b/configure.in
index 9c311fc3..64fc6421 100644
--- a/configure.in
+++ b/configure.in
@@ -1696,8 +1696,8 @@ mips-sony-newsos*)
MDCPUCFG_H=_os2.cfg
RESOLVE_LINK_SYMBOLS=1
- case "$target" in
- *-os2_emx)
+ # EMX/GCC build
+ if test "$GNU_CC"; then
AC_DEFINE(XP_OS2_EMX)
AC_DEFINE(OS2)
AR=emxomfar
@@ -1721,8 +1721,10 @@ mips-sony-newsos*)
EXEFLAGS='-Zmtd -o $@'
DSO_LDOPTS='-Zomf -Zdll -Zmt -Zcrtdll -Zlinker /NOO'
fi
- ;;
- *-os2_vacpp)
+ fi
+
+ # Visual Age C++ build
+ if test "$VACPP" = "yes"; then
AC_DEFINE(XP_OS2_VACPP)
AC_DEFINE(OS2,4)
AC_DEFINE(TCPV40HDRS)
@@ -1758,9 +1760,7 @@ mips-sony-newsos*)
fi
LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)'
- ;;
- esac
-
+ fi
;;
*)