File: typeof.m4

package info (click to toggle)
dovecot 1%3A2.3.21.1%2Bdfsg1-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 58,708 kB
  • sloc: ansic: 562,646; makefile: 7,865; sh: 5,927; cpp: 1,557; perl: 306; python: 255; yacc: 153; xml: 151; lex: 139; pascal: 27
file content (16 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
AC_DEFUN([DOVECOT_TYPEOF],[
  AC_CACHE_CHECK([for typeof],i_cv_have_typeof,[
    AC_TRY_COMPILE([
    ], [
      int foo;
      typeof(foo) bar;
    ], [
      i_cv_have_typeof=yes
    ], [
      i_cv_have_typeof=no
    ])
  ])
  if test $i_cv_have_typeof = yes; then
    AC_DEFINE(HAVE_TYPEOF,, [Define if you have typeof()])
  fi
])