This file is indexed.

/usr/share/dune/aclocal/dune_compiler.m4 is in libdune-common-dev 2.2.1-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# $Id: dune_compiler.m4 5832 2010-01-18 13:52:14Z joe $
# check for supported compilers

AC_DEFUN([DUNE_CHECK_COMPILER],[

AC_ARG_ENABLE(compilercheck,
  AS_HELP_STRING([--disable-compilercheck],
                 [disable check for supported compilers]),
  [compilercheck=$enableval], [compilercheck=yes])

SUPPORTED_COMPILER="gcc (>= 3.4.1) or icc (>= 7.0)"

AC_REQUIRE([AC_PROG_CXX])
cat >conftest.cc <<_ACEOF
#include <cstdio>

#if defined __ICC && ! defined CXX_SUPPORTED
  #if __ICC >= 700
    #define CXX_SUPPORTED "icc %2.2f", 1.0*__ICC/100
  #endif
#endif
#if defined __GNUC__ && ! defined CXX_SUPPORTED
  #if __GNUC__ > 3 || \
     (__GNUC__ == 3 && (__GNUC_MINOR__ > 4 || \
        (__GNUC_MINOR__ == 4 && \
         __GNUC_PATCHLEVEL__ >= 1)))
    #define CXX_SUPPORTED \
	   "gcc %i.%i.%i", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__
  #endif
#endif
#ifndef CXX_SUPPORTED
  #error Your compiler is not officially supported by dune
#endif
int main() { 
  printf(CXX_SUPPORTED);
  return 0;
}
_ACEOF

AS_IF([test "x$compilercheck" = "xno"],
  [AC_MSG_WARN([compilercheck is disabled. DANGEROUS!])],
  [ AC_MSG_CHECKING([whether compiler is officially supported by DUNE])
    AS_IF([$CXX conftest.cc -o conftest.$ac_exeext >&5],
      [ AC_MSG_RESULT([yes])
        COMPILER_NAME=`./conftest.$ac_exeext`;
        rm -f conftest.$ac_exeext],
      [ AC_MSG_RESULT([no])
        AC_MSG_ERROR([Your compiler is not officially supported by dune
                    dune is known to work with $SUPPORTED_COMPILER])
      ])
  ])

AS_IF([test -z "$COMPILER_NAME"],[
	COMPILER_NAME="unknown compiler"])
])