Created
September 4, 2012 23:39
-
-
Save argv0/3628110 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AC_DEFUN([AC_HEADER_SHARED_PTR], [ | |
AC_CACHE_CHECK(for tr1/shared_ptr, | |
ac_cv_cxx_tr1_shared_ptr, | |
[AC_LANG_SAVE | |
AC_LANG_CPLUSPLUS | |
AC_TRY_COMPILE([#include <tr1/memory>], [using std::tr1::shared_ptr;], | |
ac_cv_cxx_tr1_shared_ptr=yes, ac_cv_cxx_tr1_shared_ptr=no) | |
AC_LANG_RESTORE | |
]) | |
if test "$ac_cv_cxx_tr1_shared_ptr" = yes; then | |
AC_DEFINE(HAVE_TR1_SHARED_PTR,,[Define if tr1/shared_ptr is present. ]) | |
fi | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment