<commit_before>#!/bin/sh
# Coypright (c) 2011 FFLAS-FFPACK
# written by BB <<EMAIL>>
# adapted from LinBox configuration
#
# ========LICENCE========
# This file is part of the library FFLAS-FFPACK.
#
# FFLAS-FFPACK is free software: you can redistribute it and/or modify
# it under the terms of the  GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
# ========LICENCE========
#/

# Run this to generate all the initial makefiles, etc.

# Recover command line, with double-quotes
CMDLINE=""
for arg in "$@"
do
    WHO="`echo $arg | cut -d'=' -f1`"
    WHAT="`echo $arg | cut -s -d'=' -f2`"
    if test "x$WHAT" = "x"; then
    	CMDLINE="$CMDLINE $WHO"
    else
	CMDLINE="$CMDLINE $WHO=\"$WHAT\""
    fi
done

echo  "$0 $CMDLINE" > autogen.status
chmod +x autogen.status

# Starts configuring
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

PKG_NAME="FFLAS-FFPACK"

(test -f $srcdir/configure.ac  \
	&& test -f $srcdir/fflas-ffpack/fflas-ffpack.doxy ) || {
	echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
	echo " top-level "\`$PKG_NAME\'" directory"
	exit 1
}

ORIGDIR=`pwd`
cd $srcdir
PROJECT=fflasffpack
TEST_TYPE=-f

DIE=0

# Defaults
LIBTOOL=libtool
LIBTOOLIZE=libtoolize

# Fix OSx problem with GNU libtool
(uname -a|grep -v Darwin) < /dev/null > /dev/null 2>&1 ||
{
echo "....Adding fix for OSX"
LIBTOOL=glibtool
LIBTOOLIZE=glibtoolize
}


(autoconf --version) < /dev/null > /dev/null 2>&1 || {
	echo
	echo "You must have autoconf installed to compile $PROJECT."
	echo "Download the appropriate package for your distribution,"
	echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
	DIE=1
}

(automake --version) < /dev/null > /dev/null 2>&1 || {
	echo
	echo "You must have automake installed to compile $PROJECT."
	echo "Download the appropriate package for your distribution,"
	echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
	DIE=1
}

(automake --version) < /dev/null > /dev/null 2>&1 || {
	echo
	echo "You must have automake installed to compile $PROJECT."
	echo "Get ftp://sourceware.cygnus.com/pub/automake/automake-1.4.tar.gz"
	echo "(or a newer version if it is available)"
	DIE=1
}

(grep "^AC_PROG_LIBTOOL" configure.ac >/dev/null) && {
  ($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
     echo
     echo "**Error**: You must have \`libtool' installed to compile $PROJECT."
     echo "Download the appropriate package for your distribution,"
     echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
     DIE=1
  }<commit_msg>Now checking against Libtoolize instead of Libtool<commit_after>#!/bin/sh
# Coypright (c) 2011 FFLAS-FFPACK
# written by BB <<EMAIL>>
# adapted from LinBox configuration
#
# ========LICENCE========
# This file is part of the library FFLAS-FFPACK.
#
# FFLAS-FFPACK is free software: you can redistribute it and/or modify
# it under the terms of the  GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
# ========LICENCE========
#/

# Run this to generate all the initial makefiles, etc.

# Recover command line, with double-quotes
CMDLINE=""
for arg in "$@"
do
    WHO="`echo $arg | cut -d'=' -f1`"
    WHAT="`echo $arg | cut -s -d'=' -f2`"
    if test "x$WHAT" = "x"; then
    	CMDLINE="$CMDLINE $WHO"
    else
	CMDLINE="$CMDLINE $WHO=\"$WHAT\""
    fi
done

echo  "$0 $CMDLINE" > autogen.status
chmod +x autogen.status

# Starts configuring
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

PKG_NAME="FFLAS-FFPACK"

(test -f $srcdir/configure.ac  \
	&& test -f $srcdir/fflas-ffpack/fflas-ffpack.doxy ) || {
	echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
	echo " top-level "\`$PKG_NAME\'" directory"
	exit 1
}

ORIGDIR=`pwd`
cd $srcdir
PROJECT=fflasffpack
TEST_TYPE=-f

DIE=0

# Defaults
LIBTOOL=libtool
LIBTOOLIZE=libtoolize

# Fix OSx problem with GNU libtool
(uname -a|grep -v Darwin) < /dev/null > /dev/null 2>&1 ||
{
echo "....Adding fix for OSX"
LIBTOOL=glibtool
LIBTOOLIZE=glibtoolize
}


(autoconf --version) < /dev/null > /dev/null 2>&1 || {
	echo
	echo "You must have autoconf installed to compile $PROJECT."
	echo "Download the appropriate package for your distribution,"
	echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
	DIE=1
}

(automake --version) < /dev/null > /dev/null 2>&1 || {
	echo
	echo "You must have automake installed to compile $PROJECT."
	echo "Download the appropriate package for your distribution,"
	echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
	DIE=1
}

(automake --version) < /dev/null > /dev/null 2>&1 || {
	echo
	echo "You must have automake installed to compile $PROJECT."
	echo "Get ftp://sourceware.cygnus.com/pub/automake/automake-1.4.tar.gz"
	echo "(or a newer version if it is available)"
	DIE=1
}

(grep "^AC_PROG_LIBTOOL" configure.ac >/dev/null) && {
  ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
     echo
     echo "**Error**: You must have \`libtool' installed to compile $PROJECT."
     echo "Download the appropriate package for your distribution,"
     echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
     DIE=1
  }
{'fraction_non_alphanumeric': 0.13618802318094012, 'fraction_numerical': 0.012556342562781713, 'mean_word_length': 3.7103866565579984, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1290155', 'n_tokens_mistral': 2198, 'n_tokens_neox': 2129, 'n_words': 758}