autoconf test for GCC+gas under solaris

Robert Lunnon bobl at optushome.com.au
Wed Jun 8 07:20:51 CDT 2005


Changelog
Tests compiler is gcc and is built to use gas rather than solaris as

Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.360
diff -u -3 -p -r1.360 configure.ac
--- configure.ac        6 Jun 2005 15:51:51 -0000       1.360
+++ configure.ac        8 Jun 2005 12:16:12 -0000
@@ -66,6 +66,31 @@ dnl **** Check for some programs ****

 AC_PROG_MAKE_SET
 AC_PROG_CC
+
+ case $host in
+
+  *solaris*)
+  dnl  check Compiler is compatible (IE GCC using gas as the assembler)
+
+  if test x$GCC != "xyes"
+  then
+    /usr/bin/echo "OOPS you need gcc to compile wine"
+     exit 1
+  fi
+
+  /usr/bin/echo "checking gcc is compiled to use gas...\c"
+
+  if $CC -v  2>&1 |grep "with-gnu-as" >/dev/null
+  then
+     /usr/bin/echo  "yes"
+  else
+     /usr/bin/echo "OOPS you need gcc compiled to use the GNU assembler to compile wine"
+     exit 1
+  fi
+  ;;
+
+esac
+
 AC_PROG_CXX
 dnl We can't use AC_PROG_CPP for winegcc, it uses by default $(CC) -E
 AC_CHECK_TOOL(CPPBIN,cpp,cpp)



More information about the wine-patches mailing list