diff --git a/gcc/config.sub b/gcc/config.sub
index bf932cb9dd79085e9c1dfb8d8b9c5dfbf525483e..5259113ca904f9ed70d0a546be2afe24ea94da9c 100755
--- a/gcc/config.sub
+++ b/gcc/config.sub
@@ -587,7 +587,7 @@ case $os in
 	      | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
 	      | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \
 	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
-	      | -ptx* | -coff* | -winnt*)
+	      | -ptx* | -coff* | -winnt* | -domain* )
 		;;
 	-sunos5*)
 		os=`echo $os | sed -e 's|sunos5|solaris2|'`
@@ -665,6 +665,9 @@ case $basic_machine in
 	*-dec | vax-*)
 		os=-ultrix4.2
 		;;
+	m68*-apollo)
+		os=-domain
+		;;
 	i386-sun)
 		os=-sunos4.0.2
 		;;