This file is indexed.

/usr/share/dune/aclocal/immdx_lib_metis.m4 is in libdune-common-dev 2.4.1-1.

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
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
dnl @synopsis IMMDX_LIB_METIS([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
dnl
dnl This macro searches for the METIS library in the user specified
dnl location. The user may specify the location either by defining the
dnl environment variable METIS or by using the --with-metis option to
dnl configure. If the environment variable is defined it has precedent
dnl over everything else. If no location was specified then it searches
dnl in /usr/lib and /usr/local/lib for the library and in /usr/include
dnl and /usr/local/include for the header files. Upon sucessful
dnl completion the variables METIS_LIB and METIS_INCLUDE are set.
dnl
dnl ACTION-IF-FOUND is a list of shell commands to run if a METIS
dnl library is found, and ACTION-IF-NOT-FOUND is a list of commands to
dnl run it if it is not found. If ACTION-IF-FOUND is not specified, the
dnl default action will define HAVE_METIS. If ACTION-IF-NOT-FOUND is
dnl not specified then an error will be generated halting configure.
dnl
dnl @category InstalledPackages
dnl @author Ben Bergen <ben@cs.fau.de>
dnl @version 2003-01-19
dnl @license AllPermissive

AC_DEFUN([IMMDX_LIB_METIS], [
	AC_MSG_CHECKING(for METIS library)
	AC_REQUIRE([AC_PROG_CC])
	#
	# User hints...
	#
	AC_ARG_VAR([METIS], [METIS library location])
	AC_ARG_WITH([metis],
		[AC_HELP_STRING([--with-metis],
		[user defined path to METIS library])],
		[
			if test -n "$METIS" ; then
				AC_MSG_RESULT(yes)
				with_metis=$METIS
			elif test "$withval" != no ; then
				AC_MSG_RESULT(yes)
				with_metis=$withval
			else
				AC_MSG_RESULT(no)
			fi
		],
		[
			if test -n "$METIS" ; then
				with_metis=$METIS
				AC_MSG_RESULT(yes)
			else
				with_metis=/usr
				if test ! -f "$with_metis/include/metis.h" ; then
          if test ! -f "$with_metis/include/metis/metis.h" ; then
            with_metis=/usr/local
            if test ! -f "$with_metis/include/metis.h" ; then
              with_metis=""
              AC_MSG_RESULT(failed)
            else
              AC_MSG_RESULT(yes)
            fi
          fi
					AC_MSG_RESULT(yes)
				else
					AC_MSG_RESULT(yes)
				fi
			fi
		])
	#
	# locate METIS library
	#
		if test -n "$with_metis" ; then
			old_CFLAGS=$CFLAGS
			old_LDFLAGS=$LDFLAGS

			if test -f "$with_metis/include/metis.h"; then
				lib_path="/lib"
				include_path="/include"
			fi

			if test -f "$with_metis/include/metis/metis.h"; then
				lib_path="/lib"
				include_path="/include/metis"
			fi

			if test -f "$with_metis/Lib/metis.h"; then
				# catch bad convention in the downloadable metis version
				lib_path=""
				include_path="/Lib"
			fi
			CFLAGS="-I$with_metis/$include_path"
			LDFLAGS="-L$with_metis/$lib_path"

			AC_LANG_SAVE
			AC_LANG_C

			AC_CHECK_LIB(metis, METIS_PartGraphKway,
				[metis_lib=yes], [metis_lib=no], [-lm])


			AC_CHECK_HEADER(metis.h, [metis_h=yes],
				[metis_h=no], [/* check */])
			#echo x$metis_h

			AC_LANG_RESTORE

			CFLAGS=$old_CFLAGS
			LDFLAGS=$old_LDFLAGS

			AC_MSG_CHECKING(METIS in $with_metis)
			if test "$metis_lib" = "yes" -a "$metis_h" = "yes" ; then
				AC_SUBST(METIS_INCLUDE, [-I$with_metis$include_path])
				AC_SUBST(METIS_LDFLAGS, [-L$with_metis$lib_path])
				AC_SUBST(METIS_LIB, [-lmetis])
				AC_MSG_RESULT(ok)
			else
				AC_MSG_RESULT(failed)
			fi
		fi
		#
		#
		#

		# tell automake
		AM_CONDITIONAL(METIS, test x$METIS_LIB = x1)
		if test x = x"$METIS_LIB" ; then
			with_metis=no
			ifelse([$2],,[AC_MSG_WARN(Failed to find valid METIS library)],[$2])
			:
		else
      # add to global list
      DUNE_ADD_ALL_PKG([METIS], [\${METIS_INCLUDE}],
                       [\${METIS_LDFLAGS}], [\${METIS_LIB}])

			with_metis=yes
			ifelse([$1],,[AC_DEFINE(HAVE_METIS,1,[Define if you have METIS library])
		],[$1])
			:
		fi
    DUNE_ADD_SUMMARY_ENTRY([METIS],[$with_metis])
	])dnl IMMDX_LIB_METIS