File: prog_cc_c11.m4

package info (click to toggle)
libneo4j-client 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 3,444 kB
  • ctags: 2,333
  • sloc: ansic: 24,977; sh: 4,261; makefile: 206
file content (17 lines) | stat: -rw-r--r-- 638 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
AC_DEFUN([PROG_CC_C11],
[AC_CACHE_CHECK([for the _AC_LANG option to accept ISO C11],
  [neo4j_cv_prog_cc_c11], [
  neo4j_save_flags=$[]_AC_LANG_PREFIX[]FLAGS
  _AC_LANG_PREFIX[]FLAGS="$neo4j_save_flags -std=gnu11"
  AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
    [neo4j_cv_prog_cc_c11="-std=gnu11"], [
    _AC_LANG_PREFIX[]FLAGS="$neo4j_save_flags -std=c11"
    AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
      [neo4j_cv_prog_cc_c11="-std=c11"],
      [neo4j_cv_prog_cc_c11="none found"])])
  _AC_LANG_PREFIX[]FLAGS=$neo4j_save_flags])

  if test "X$neo4j_cv_prog_cc_c11" != "Xnone found"; then
    CFLAGS="$CFLAGS $neo4j_cv_prog_cc_c11"
  fi
])