~y-maris/libmemcached/libmemcached

« back to all changes in this revision

Viewing changes to m4/have_cstdint.m4

  • Committer: Continuous Integration
  • Date: 2012-11-26 10:58:31 UTC
  • mfrom: (1080.1.6 libmemcached-1.2)
  • Revision ID: ci@tangent.org-20121126105831-4bnsokmlh631slsx
Merge lp:~tangent-org/libmemcached/1.2-build Build: jenkins-Libmemcached-1.2-4

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#
5
5
# SYNOPSIS
6
6
#
7
 
#   AX_CXX_CSTDINT
 
7
#   AX_CXX_CSTDINT()
8
8
#
9
9
# DESCRIPTION
10
10
#
49
49
 
50
50
    AC_CACHE_CHECK([for location of cstdint], [ac_cv_cxx_cstdint], [
51
51
      AC_LANG_PUSH([C++])
52
 
      save_CXXFLAGS="${CXXFLAGS}"
 
52
      AX_SAVE_FLAGS
53
53
      CXXFLAGS="${CXX_STANDARD} ${CXXFLAGS}"
54
54
 
55
55
      AC_COMPILE_IFELSE([
65
65
        [ac_cxx_cstdint_boost_cstdint_hpp="<boost/cstdint.hpp>"])
66
66
 
67
67
      AC_LANG_POP
68
 
      CXXFLAGS="${save_CXXFLAGS}"
 
68
      AX_RESTORE_FLAGS
69
69
 
70
70
      AS_IF([test -n "$ac_cxx_cstdint_cstdint"], [ac_cv_cxx_cstdint=$ac_cxx_cstdint_cstdint],
71
71
        [test -n "$ac_cxx_cstdint_tr1_cstdint"], [ac_cv_cxx_cstdint=$ac_cxx_cstdint_tr1_cstdint],
72
72
        [test -n "$ac_cxx_cstdint_boost_cstdint_hpp"], [ac_cv_cxx_cstdint=$ac_cxx_cstdint_boost_cstdint_hpp])
73
73
      ])
74
74
 
75
 
  AS_IF([test -n "$ac_cv_cxx_cstdint"], [
76
 
      AC_MSG_RESULT([$ac_cv_cxx_cstdint])
77
 
      ],[
 
75
  AS_IF([test -n "$ac_cv_cxx_cstdint"], [AC_MSG_RESULT([$ac_cv_cxx_cstdint])], [
78
76
      ac_cv_cxx_cstdint="<stdint.h>"
79
77
      AC_MSG_WARN([Could not find a cstdint header.])
80
78
      AC_MSG_RESULT([$ac_cv_cxx_cstdint])