projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 1997-08-25 22:34:28 by sof]
[ghc-hetmet.git]
/
configure.in
diff --git
a/configure.in
b/configure.in
index
89dfaeb
..
f6b3664
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-68,7
+68,6
@@
if test x"$TargetPlatform" != x"$HostPlatform" ; then
echo "GHC configuration does not support differing host/target (i.e., cross-compiling)"
exit 1
fi
echo "GHC configuration does not support differing host/target (i.e., cross-compiling)"
exit 1
fi
-
#
# The following will be more difficult when we *are* cross-compiling.
# Suitable names to slam in *_CPP are in platform.h.in.
#
# The following will be more difficult when we *are* cross-compiling.
# Suitable names to slam in *_CPP are in platform.h.in.
@@
-192,6
+191,15
@@
mips-sgi-irix*)
HostVendor_CPP='sgi'
HostOS_CPP='irix'
;;
HostVendor_CPP='sgi'
HostOS_CPP='irix'
;;
+rs6000-ibm-aix*)
+ HostPlatform=rs6000-ibm-aix
+ TargetPlatform=rs6000-ibm-aix #hack
+ BuildPlatform=rs6000-ibm-aix #hack
+ HostPlatform_CPP='rs6000_ibm_aix'
+ HostArch_CPP='rs6000'
+ HostVendor_CPP='ibm'
+ HostOS_CPP='aix'
+ ;;
powerpc-ibm-aix*)
HostPlatform=powerpc-ibm-aix
TargetPlatform=powerpc-ibm-aix #hack
powerpc-ibm-aix*)
HostPlatform=powerpc-ibm-aix
TargetPlatform=powerpc-ibm-aix #hack
@@
-233,23
+241,29
@@
TargetPlatform_CPP=$HostPlatform_CPP
BuildArch_CPP=$HostArch_CPP
TargetArch_CPP=$HostArch_CPP
BuildOS_CPP=$HostOS_CPP
BuildArch_CPP=$HostArch_CPP
TargetArch_CPP=$HostArch_CPP
BuildOS_CPP=$HostOS_CPP
+HostOS_Full=$host_os
TargetOS_CPP=$HostOS_CPP
BuildVendor_CPP=$HostVendor_CPP
TargetVendor_CPP=$HostVendor_CPP
dnl Cannot afford all these SUBSTs (because of braindead seds w/ 99 cmd limits)
dnl AC_SUBST(BuildPlatform)
TargetOS_CPP=$HostOS_CPP
BuildVendor_CPP=$HostVendor_CPP
TargetVendor_CPP=$HostVendor_CPP
dnl Cannot afford all these SUBSTs (because of braindead seds w/ 99 cmd limits)
dnl AC_SUBST(BuildPlatform)
+
AC_SUBST(HostPlatform)
AC_SUBST(TargetPlatform)
AC_SUBST(HostPlatform_CPP)
dnl AC_SUBST(BuildPlatform_CPP)
dnl AC_SUBST(TargetPlatform_CPP)
AC_SUBST(HostPlatform)
AC_SUBST(TargetPlatform)
AC_SUBST(HostPlatform_CPP)
dnl AC_SUBST(BuildPlatform_CPP)
dnl AC_SUBST(TargetPlatform_CPP)
+
AC_SUBST(HostArch_CPP)
dnl AC_SUBST(BuildArch_CPP)
dnl AC_SUBST(TargetArch_CPP)
AC_SUBST(HostArch_CPP)
dnl AC_SUBST(BuildArch_CPP)
dnl AC_SUBST(TargetArch_CPP)
+
AC_SUBST(HostOS_CPP)
AC_SUBST(HostOS_CPP)
+AC_SUBST(HostOS_Full)
dnl AC_SUBST(BuildOS_CPP)
dnl AC_SUBST(TargetOS_CPP)
dnl AC_SUBST(BuildOS_CPP)
dnl AC_SUBST(TargetOS_CPP)
+
AC_SUBST(HostVendor_CPP)
dnl AC_SUBST(BuildVendor_CPP)
dnl AC_SUBST(TargetVendor_CPP)
AC_SUBST(HostVendor_CPP)
dnl AC_SUBST(BuildVendor_CPP)
dnl AC_SUBST(TargetVendor_CPP)
@@
-556,6
+570,12
@@
AC_PATH_PROG(LxCmd,lx)
AC_SUBST(LxCmd)
#
#
AC_SUBST(LxCmd)
#
#
+dnl ** check for installed green-card binary
+#
+AC_PATH_PROG(GreencardCmd,green-card)
+AC_SUBST(GreencardCmd)
+#
+#
dnl ** check for full ANSI header (.h) files
#
AC_HEADER_STDC
dnl ** check for full ANSI header (.h) files
#
AC_HEADER_STDC
@@
-568,9
+588,13
@@
dnl ** check if it is safe to include both <time.h> and <sys/time.h>
#
AC_HEADER_TIME
#
#
AC_HEADER_TIME
#
-dnl ** how do we get a timezone name?
+dnl ** how do we get a timezone name, and UTC offset ?
#
AC_STRUCT_TIMEZONE
#
AC_STRUCT_TIMEZONE
+HaveAltZone=yes
+AC_MSG_CHECKING([for altzone])
+AC_TRY_LINK([#include <time.h>], [return altzone;], AC_DEFINE(HAVE_ALTZONE),HaveAltZone=no)
+AC_MSG_RESULT($HaveAltZone)
#
dnl ** determine the type of signal()
#
#
dnl ** determine the type of signal()
#