Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 168660
Collapse All | Expand All

(-)mysql/configure.orig (-41 lines)
Lines 816-866 Link Here
816
  esac
816
  esac
817
])
817
])
818
AC_SUBST(WRAPLIBS)
818
AC_SUBST(WRAPLIBS)
819
819
820
if test "$TARGET_LINUX" = "true"; then
820
if test "$TARGET_LINUX" = "true"; then
821
  AC_MSG_CHECKING([for atomic operations])
822
823
  AC_LANG_SAVE
824
  AC_LANG_CPLUSPLUS
825
826
  atom_ops=
827
  AC_TRY_RUN([
828
#include <asm/atomic.h>
829
int main()
830
{
831
  atomic_t v;
832
833
  atomic_set(&v, 23);
834
  atomic_add(5, &v);
835
  return atomic_read(&v) == 28 ? 0 : -1;
836
}
837
  ],
838
  [AC_DEFINE([HAVE_ATOMIC_ADD], [1],
839
             [atomic_add() from <asm/atomic.h> (Linux only)])
840
   atom_ops="${atom_ops}atomic_add "],
841
  )
842
  AC_TRY_RUN([
843
#include <asm/atomic.h>
844
int main()
845
{
846
  atomic_t v;
847
848
  atomic_set(&v, 23);
849
  atomic_sub(5, &v);
850
  return atomic_read(&v) == 18 ? 0 : -1;
851
}
852
  ],
853
  [AC_DEFINE([HAVE_ATOMIC_SUB], [1],
854
             [atomic_sub() from <asm/atomic.h> (Linux only)])
855
   atom_ops="${atom_ops}atomic_sub "],
856
  )
857
858
  if test -z "$atom_ops"; then atom_ops="no"; fi
859
  AC_MSG_RESULT($atom_ops)
860
861
  AC_LANG_RESTORE
862
821
863
  AC_ARG_WITH(pstack,
822
  AC_ARG_WITH(pstack,
864
    [  --with-pstack           Use the pstack backtrace library],
823
    [  --with-pstack           Use the pstack backtrace library],
865
    [ USE_PSTACK=$withval ],
824
    [ USE_PSTACK=$withval ],
866
    [ USE_PSTACK=no ])
825
    [ USE_PSTACK=no ])

Return to bug 168660