mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.3 KiB

  1. --- ./configure.in (revision 40359)
  2. +++ ./configure.in (working copy)
  3. @@ -19,6 +19,25 @@
  4. MCS=$CSC
  5. fi
  6. +if test "x$GMCS" != "xno" ; then
  7. + AC_MSG_CHECKING([whether gmcs is actually able to compile])
  8. +
  9. + tmpin=`mktemp /tmp/xsp.XXXXXX`
  10. + tmpout=`mktemp /tmp/xsp.XXXXXX`
  11. +
  12. + echo "class Foo { public static void Main() {} }" > $tmpin
  13. +
  14. + if [ gmcs -r:System.Web.dll -out:$tmpout $tmpin > /dev/null 2>&1 ]
  15. + then
  16. + AC_MSG_RESULT(yes)
  17. + else
  18. + GMCS=no
  19. + AC_MSG_RESULT(no)
  20. + fi
  21. +
  22. + rm -f $tmpin $tmpout
  23. +fi
  24. +
  25. case "$host" in
  26. *-*-mingw*|*-*-cygwin*)
  27. platform_win32=yes
  28. --- ./configure.orig 2005-03-31 18:20:41.000000000 +0200
  29. +++ ./configure 2005-03-31 18:20:47.000000000 +0200
  30. @@ -1974,6 +1974,28 @@
  31. MCS=$CSC
  32. fi
  33. +if test "x$GMCS" != "xno" ; then
  34. + echo "$as_me:$LINENO: checking whether gmcs is actually able to compile" >&5
  35. +echo $ECHO_N "checking whether gmcs is actually able to compile... $ECHO_C" >&6
  36. +
  37. + tmpin=`mktemp /tmp/xsp.XXXXXX`
  38. + tmpout=`mktemp /tmp/xsp.XXXXXX`
  39. +
  40. + echo "class Foo { public static void Main() {} }" > $tmpin
  41. +
  42. + if gmcs -r:System.Web.dll -out:$tmpout $tmpin > /dev/null 2>&1
  43. + then
  44. + echo "$as_me:$LINENO: result: yes" >&5
  45. +echo "${ECHO_T}yes" >&6
  46. + else
  47. + GMCS=no
  48. + echo "$as_me:$LINENO: result: no" >&5
  49. +echo "${ECHO_T}no" >&6
  50. + fi
  51. +
  52. + rm -f $tmpin $tmpout
  53. +fi
  54. +
  55. case "$host" in
  56. *-*-mingw*|*-*-cygwin*)
  57. platform_win32=yes