patch-configure_in 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. $OpenBSD: patch-configure_in,v 1.1 2012/05/25 07:15:41 ajacoutot Exp $
  2. --- configure.in.orig Tue May 15 02:33:28 2012
  3. +++ configure.in Tue May 15 02:34:15 2012
  4. @@ -30,13 +30,6 @@ if test x"$GCC" = x"yes"; then
  5. TRY_CFLAGS="$OPT_CFLAGS -Wall"
  6. AC_TRY_CFLAGS([$TRY_CFLAGS $CFLAGS],[OPT_CFLAGS="$TRY_CFLAGS"])
  7. - dnl -O3
  8. - changequote(<<,>>)
  9. - TRY_CFLAGS=`echo "$OPT_CFLAGS $CFLAGS"|sed "s/-O[0-9]*//g"`
  10. - changequote([,])
  11. - TRY_CFLAGS="$TRY_CFLAGS -O3"
  12. - AC_TRY_CFLAGS([$TRY_CFLAGS],[OPT_CFLAGS="$TRY_CFLAGS"; CFLAGS=""])
  13. -
  14. AC_ARG_ENABLE([debug],
  15. [ --enable-debug debug mode configuration])
  16. if test x"$enable_debug" = x"yes"; then
  17. @@ -50,22 +43,6 @@ if test x"$GCC" = x"yes"; then
  18. dnl -fno-common
  19. TRY_CFLAGS="$OPT_CFLAGS -fno-common"
  20. AC_TRY_CFLAGS([$TRY_CFLAGS $CFLAGS],[OPT_CFLAGS="$TRY_CFLAGS"])
  21. -
  22. - dnl arch-specific flags
  23. - case "$host" in
  24. - i?86-* | k?-*)
  25. - case "$host" in
  26. - i386-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i386";;
  27. - i486-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i486";;
  28. - i586-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentium";;
  29. - i686-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentiumpro";;
  30. - k6-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=k6";;
  31. - esac
  32. - AC_TRY_CFLAGS([$TRY_CFLAGS $CFLAGS],[OPT_CFLAGS="$TRY_CFLAGS"]);;
  33. - sparc-* | sparc64-*)
  34. - TRY_CFLAGS="$OPT_CFLAGS -mtune=ultrasparc"
  35. - AC_TRY_CFLAGS([$TRY_CFLAGS $CFLAGS],[OPT_CFLAGS="$TRY_CFLAGS"]);;
  36. - esac
  37. elif test x"$CC" = x"tendracc"; then
  38. dnl TenDRA portability checking compiler
  39. TENDRA=yes