<commit_before>dnl -------------------------------------------------------------
dnl Trilinos 10
dnl -------------------------------------------------------------
AC_DEFUN([CONFIGURE_TRILINOS_10],
[
  if (test "x$TRILINOS_DIR" = "x"); then
    # Ubuntu trilinos package?
    if (test -d /usr/include/trilinos); then
      TRILINOS_DIR=/usr/include/trilinos
    else
      TRILINOS_DIR=no
    fi
  fi

  AC_ARG_WITH(trilinos,
              AS_HELP_STRING([--with-trilinos=PATH],[Specify the path to Trilinos installation]),
              withtrilinosdir=$withval,
              withtrilinosdir=$TRILINOS_DIR)

  if test "$withtrilinosdir" != no ; then
    if (test -r $withtrilinosdir/include/Makefile.export.Trilinos) ; then
      TRILINOS_MAKEFILE_EXPORT=$withtrilinosdir/include/Makefile.export.Trilinos
    elif (test -r $withtrilinosdir/Makefile.export.Trilinos) ; then
      TRILINOS_MAKEFILE_EXPORT=$withtrilinosdir/Makefile.export.Trilinos
    else
      enabletrilinos10=no
    fi

    if test "$enabletrilinos10" != no ; then
       enabletrilinos10=yes
       AC_DEFINE(HAVE_TRILINOS, 1,
                 [Flag indicating whether the library shall be compiled to use the Trilinos solver collection])
       AC_MSG_RESULT(<<< Configuring library with Trilinos 10 support >>>)

       dnl ------------------------------------------------------
       dnl AztecOO
       dnl ------------------------------------------------------
       AC_CHECK_HEADER([$withtrilinosdir/include/AztecOO_config.h],
                       [enableaztecoo=yes],
                       [AC_CHECK_HEADER([$withtrilinosdir/AztecOO_config.h],
                                        [enableaztecoo=yes],
                                        [AC_CHECK_HEADER([$withtrilinosdir/packages/aztecoo/src/AztecOO_config.h],
                                                         [enableaztecoo=yes],
                                                         [enableaztecoo=no])
                                                         ])])

       if test "$enableaztecoo" != no ; then
          AC_DEFINE(TRILINOS_HAVE_AZTECOO, 1,
                    [Flag indicating whether the library shall be compiled to use the Trilinos AztecOO linear solver])
          AC_MSG_RESULT(<<< Configuring library with AztecOO support >>>)
       fi

       dnl ------------------------------------------------------<commit_msg>Print Trilinos major version number in configure test.<commit_after>dnl -------------------------------------------------------------
dnl Trilinos 10
dnl -------------------------------------------------------------
AC_DEFUN([CONFIGURE_TRILINOS_10],
[
  if (test "x$TRILINOS_DIR" = "x"); then
    # Ubuntu trilinos package?
    if (test -d /usr/include/trilinos); then
      TRILINOS_DIR=/usr/include/trilinos
    else
      TRILINOS_DIR=no
    fi
  fi

  AC_ARG_WITH(trilinos,
              AS_HELP_STRING([--with-trilinos=PATH],[Specify the path to Trilinos installation]),
              withtrilinosdir=$withval,
              withtrilinosdir=$TRILINOS_DIR)

  if test "$withtrilinosdir" != no ; then
    if (test -r $withtrilinosdir/include/Makefile.export.Trilinos) ; then
      TRILINOS_MAKEFILE_EXPORT=$withtrilinosdir/include/Makefile.export.Trilinos
    elif (test -r $withtrilinosdir/Makefile.export.Trilinos) ; then
      TRILINOS_MAKEFILE_EXPORT=$withtrilinosdir/Makefile.export.Trilinos
    else
      enabletrilinos10=no
    fi

    if test "$enabletrilinos10" != no ; then
       dnl This actually implies Trilinos 10+, as this configure
       dnl function also works with Trilinos 11.
       enabletrilinos10=yes

       dnl Try to detect the full Trilinos version string by grepping through Trilinos_version.h.
       dnl The version string is surrounded by quotes, so we use a slight variation on our usual
       dnl grep command, and pass the result through 'tr' to remove those.
       trilinosversionstring=`grep "define TRILINOS_VERSION_STRING" $withtrilinosdir/include/Trilinos_version.h | sed -e "s/#define TRILINOS_VERSION_STRING[ ]*//g" | tr -d '"'`

       dnl If we couldn't extract anything for the full version string, try to just get the major version number.
       if test "x$trilinosversionstring" = "x" ; then
         trilinosversionstring=`grep "define TRILINOS_MAJOR_VERSION" $withtrilinosdir/include/Trilinos_version.h | sed -e "s/#define TRILINOS_MAJOR_VERSION[ ]*//g"`
       fi

       dnl If we couldn't extract the actual major version number, go with "10+"
       if test "x$trilinosversionstring" = "x" ; then
         trilinosversionstring=10+
       fi

       AC_DEFINE(HAVE_TRILINOS, 1,
                 [Flag indicating whether the library shall be compiled to use the Trilinos solver collection])
       AC_MSG_RESULT([<<< Configuring library with Trilinos $trilinosversionstring support >>>])

       dnl ------------------------------------------------------
       dnl AztecOO
       dnl ------------------------------------------------------
       AC_CHECK_HEADER([$withtrilinosdir/include/AztecOO_config.h],
                       [enableaztecoo=yes],
                       [AC_CHECK_HEADER([$withtrilinosdir/AztecOO_config.h],
                                        [enableaztecoo=yes],
                                        [AC_CHECK_HEADER([$withtrilinosdir/packages/aztecoo/src/AztecOO_config.h],
                                                         [enableaztecoo=yes],
                                                         [enableaztecoo=no])
                                                         ])])

       if test "$enableaztecoo" != no ; then
          AC_DEFINE(TRILINOS_HAVE_AZTECOO, 1,
                    [Flag indicating whether the library shall be compiled to use the Trilinos AztecOO linear solver])
          AC_MSG_RESULT(<<< Configuring library with AztecOO support >>>)
       fi

       dnl ------------------------------------------------------
{'fraction_non_alphanumeric': 0.1683235046335299, 'fraction_numerical': 0.0057287278854254425, 'mean_word_length': 1.6035087719298247, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3896192', 'n_tokens_mistral': 1697, 'n_tokens_neox': 1600, 'n_words': 376}