PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/crypto/heimdal/cf/check-type-extra.m4

https://bitbucket.org/freebsd/freebsd-head/
m4 | 23 lines | 18 code | 1 blank | 4 comment | 0 complexity | 3158e282f7e821a1229a97de2d63accc MD5 | raw file
 1dnl $Id: check-type-extra.m4 13338 2004-02-12 14:21:14Z lha $
 2dnl
 3dnl ac_check_type + extra headers
 4
 5dnl AC_CHECK_TYPE_EXTRA(TYPE, DEFAULT, HEADERS)
 6AC_DEFUN([AC_CHECK_TYPE_EXTRA],
 7[AC_REQUIRE([AC_HEADER_STDC])dnl
 8AC_MSG_CHECKING(for $1)
 9AC_CACHE_VAL(ac_cv_type_$1,
10[AC_EGREP_CPP(dnl
11changequote(<<,>>)dnl
12<<$1[^a-zA-Z_0-9]>>dnl
13changequote([,]), [#include <sys/types.h>
14#if STDC_HEADERS
15#include <stdlib.h>
16#include <stddef.h>
17#endif
18$3], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
19AC_MSG_RESULT($ac_cv_type_$1)
20if test $ac_cv_type_$1 = no; then
21  AC_DEFINE($1, $2, [Define this to what the type $1 should be.])
22fi
23])