SHARE
TWEET

Untitled

a guest Sep 14th, 2011 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/build/generic/configure.in b/build/generic/configure.in
  2. index 41657af..7348b66 100644
  3. --- a/build/generic/configure.in
  4. +++ b/build/generic/configure.in
  5. @@ -144,6 +144,12 @@ AC_PROG_RANLIB
  6.  AC_CHECK_TOOL([AR], [ar], [ar-not-found])
  7.  
  8.  dnl ==========================================================================
  9. +dnl Check for the grep
  10. +dnl ==========================================================================
  11. +
  12. +AC_PROG_GREP
  13. +
  14. +dnl ==========================================================================
  15.  dnl
  16.  dnl This part looks for:
  17.  dnl
  18. @@ -438,8 +444,16 @@ if test "$ARCHITECTURE" = "IA32" -o "$ARCHITECTURE" = "X86_64" ; then
  19.                     AC_MSG_RESULT([win32])
  20.                     NASM_FORMAT="win32"
  21.                 fi
  22. -              PREFIX="-DWINDOWS"
  23. -              MARK_FUNCS=""
  24. +               PREFIX="-DWINDOWS"
  25. +               if test "$GCC" = "yes" ; then
  26. +                   echo 'int main(void) {return 0;}' > conftest.c
  27. +                   $CC -S -o conftest conftest.c
  28. +                   if test `$GREP -c '_main:' conftest` -eq 0 ; then
  29. +                       PREFIX="$PREFIX -DNO_PREFIX"
  30. +                   fi
  31. +                   rm -f conftest*
  32. +               fi
  33. +               MARK_FUNCS=""
  34.                 ;;
  35.             *darwin*)
  36.                 if test "$ARCHITECTURE" = "X86_64" ; then
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top