Several fixes to 'deriving' including Trac #2378
[ghc-hetmet.git] / configure.ac
index 8892ba0..f963e8f 100644 (file)
@@ -170,6 +170,15 @@ amd64-*-freebsd*|x86_64-*-freebsd*)
         HostVendor_CPP='unknown'
         HostOS_CPP='freebsd'
         ;;
+amd64-*-netbsd*|x86_64-*-netbsd*)
+        HostPlatform=x86_64-unknown-netbsd
+        TargetPlatform=x86_64-unknown-netbsd
+        BuildPlatform=x86_64-unknown-netbsd
+        HostPlatform_CPP='x86_64_unknown_netbsd'
+        HostArch_CPP='x86_64'
+        HostVendor_CPP='unknown'
+        HostOS_CPP='netbsd'
+        ;;
 arm*-linux*)
         HostPlatform=arm-unknown-linux # hack again
         TargetPlatform=arm-unknown-linux
@@ -656,8 +665,10 @@ if test "$WithGhc" != ""; then
   GhcCanonVersion="$GhcMajVersion$GhcMinVersion2"
   if test $GhcCanonVersion -ge 605; then ghc_ge_605=YES; else ghc_ge_605=NO; fi
   if test $GhcCanonVersion -ge 607; then ghc_ge_607=YES; else ghc_ge_607=NO; fi
+  if test $GhcCanonVersion -ge 609; then ghc_ge_609=YES; else ghc_ge_609=NO; fi
   AC_SUBST(ghc_ge_605)dnl
   AC_SUBST(ghc_ge_607)dnl
+  AC_SUBST(ghc_ge_609)dnl
 fi
 
 # Check whether this GHC has editline installed