~493pocbrcycmdw7yksonho9o2qzz-o18bz-d18ecat4t1b76tkfi3vttrkfngli/libmemcached/feature-server_timeout

« back to all changes in this revision

Viewing changes to m4/have_cstdint.m4

  • Committer: Brian Aker
  • Date: 2013-11-04 11:17:45 UTC
  • mto: This revision was merged to the branch mainline in revision 1172.
  • Revision ID: brian@tangent.org-20131104111745-8qgb5qej04649xxc
Cleanup for OSX 9

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#   modified version of the Autoconf Macro, you may extend this special
41
41
#   exception to the GPL to apply to your modified version as well.
42
42
 
43
 
#serial 2
 
43
#serial 3
44
44
 
45
45
 
46
46
AC_DEFUN([AX_CXX_CSTDINT], [
53
53
      CXXFLAGS="${CXX_STANDARD} ${CXXFLAGS}"
54
54
 
55
55
      AC_COMPILE_IFELSE([
56
 
        AC_LANG_PROGRAM([#include <cstdint>], [ uint32_t t ])],
 
56
        AC_LANG_PROGRAM([#include <cstdint>], [
 
57
        uint32_t t 
 
58
        ])],
57
59
        [ac_cxx_cstdint_cstdint="<cstdint>"])
58
60
 
59
 
      AC_COMPILE_IFELSE([
60
 
        AC_LANG_PROGRAM([#include <tr1/cstdint>], [ uint32_t t ])],
61
 
        [ac_cxx_cstdint_tr1_cstdint="<tr1/cstdint>"])
 
61
      AS_IF([test -z "$ac_cxx_cstdint_cstdint"],[
 
62
            AC_COMPILE_IFELSE([
 
63
                              AC_LANG_PROGRAM([#include <tr1/cstdint>], [ uint32_t t ])],
 
64
                              [ac_cxx_cstdint_tr1_cstdint="<tr1/cstdint>"])
62
65
 
63
 
      AC_COMPILE_IFELSE([
64
 
        AC_LANG_PROGRAM([#include <boost/cstdint.hpp>], [ uint32_t t ])],
65
 
        [ac_cxx_cstdint_boost_cstdint_hpp="<boost/cstdint.hpp>"])
 
66
            AS_IF([test -z "$ac_cxx_cstdint_tr1_cstdint"],[
 
67
                  AC_COMPILE_IFELSE([
 
68
                                    AC_LANG_PROGRAM([#include <boost/cstdint.hpp>], [ uint32_t t ])],
 
69
                                    [ac_cxx_cstdint_boost_cstdint_hpp="<boost/cstdint.hpp>"])
 
70
                  ])
 
71
            ])
66
72
 
67
73
      AC_LANG_POP
68
74
      AX_RESTORE_FLAGS