<commit_before>dnl -------------------------------------------------------------
dnl Metis
dnl -------------------------------------------------------------
AC_DEFUN([CONFIGURE_METIS],
[
  AC_ARG_ENABLE(metis,
                AS_HELP_STRING([--disable-metis],
                               [build without Metis graph partitioning support]),
                [AS_CASE("${enableval}",
                         [yes], [enablemetis=yes],
                         [no],  [enablemetis=no],
                         [AC_MSG_ERROR(bad value ${enableval} for --enable-metis)])],
                [enablemetis=$enableoptional])

  AC_ARG_WITH(metis,
             AS_HELP_STRING([--with-metis=<internal,PETSc,/some/libdir>],
                            [internal: build from contrib, PETSc: rely on PETSc]),
             [AS_CASE("${withval}",
                      [internal], [build_metis=yes],
                      [PETSc],    [build_metis=petsc],
                      [METIS_LIB="-L${withval} -lmetis"
                       build_metis=no])
              enablemetis=yes],
             [build_metis=yes])


  AC_ARG_WITH(metis-include,
             AS_HELP_STRING([--with-metis-include=</some/includedir>]),
             [METIS_INCLUDE="-I${withval}"
              enablemetis=yes
              build_metis=no],
             [])

  dnl If PETSc has its own METIS, default to using that one regardless
  dnl of what the user specified (if anything) in --with-metis.
  AS_IF([test "x$petsc_have_metis" != "x" && test $petsc_have_metis -gt 0],
        [AC_MSG_RESULT(<<< Disabling internal Metis support to avoid PETSc conflict>>>)
         build_metis=petsc])

  dnl Conversely, if:
  dnl .) METIS is enabled in libmesh,<commit_msg>Clearer message when using PETSc Metis<commit_after>dnl -------------------------------------------------------------
dnl Metis
dnl -------------------------------------------------------------
AC_DEFUN([CONFIGURE_METIS],
[
  AC_ARG_ENABLE(metis,
                AS_HELP_STRING([--disable-metis],
                               [build without Metis graph partitioning support]),
                [AS_CASE("${enableval}",
                         [yes], [enablemetis=yes],
                         [no],  [enablemetis=no],
                         [AC_MSG_ERROR(bad value ${enableval} for --enable-metis)])],
                [enablemetis=$enableoptional])

  AC_ARG_WITH(metis,
             AS_HELP_STRING([--with-metis=<internal,PETSc,/some/libdir>],
                            [internal: build from contrib, PETSc: rely on PETSc]),
             [AS_CASE("${withval}",
                      [internal], [build_metis=yes],
                      [PETSc],    [build_metis=petsc],
                      [METIS_LIB="-L${withval} -lmetis"
                       build_metis=no])
              enablemetis=yes],
             [build_metis=yes])


  AC_ARG_WITH(metis-include,
             AS_HELP_STRING([--with-metis-include=</some/includedir>]),
             [METIS_INCLUDE="-I${withval}"
              enablemetis=yes
              build_metis=no],
             [])

  dnl If PETSc has its own METIS, default to using that one regardless
  dnl of what the user specified (if anything) in --with-metis.
  AS_IF([test "x$petsc_have_metis" != "x" && test $petsc_have_metis -gt 0],
        [AC_MSG_RESULT(<<< Using PETSc Metis support to avoid PETSc conflict>>>)
         build_metis=petsc])

  dnl Conversely, if:
  dnl .) METIS is enabled in libmesh,
{'fraction_non_alphanumeric': 0.18339100346020762, 'fraction_numerical': 0.0005767012687427913, 'mean_word_length': 1.5174165457184325, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7502611', 'n_tokens_mistral': 1049, 'n_tokens_neox': 976, 'n_words': 200}