3 # This file is part of libatasmart.
5 # Copyright 2008 Lennart Poettering
7 # libatasmart is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU Lesser General Public License as
9 # published by the Free Software Foundation, either version 2.1 of the
10 # License, or (at your option) any later version.
12 # libatasmart is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with libatasmart. If not, If not, see
19 # <http://www.gnu.org/licenses/>.
27 V=$(echo "$2" | sed -e 's,\.,,g')
29 if [ -e "`which $1$V 2> /dev/null`" ] ; then
32 if [ -e "`which $1-$2 2> /dev/null`" ] ; then
45 if [ "x$1" = "xam" ] ; then
46 run_versioned automake "$VERSION" -a -c --foreign
53 test "x$LIBTOOLIZE" = "x" && LIBTOOLIZE=libtoolize
56 "$LIBTOOLIZE" -c --force
57 run_versioned aclocal "$VERSION"
58 run_versioned autoconf 2.59 -Wall
59 run_versioned autoheader 2.59
60 run_versioned automake "$VERSION" --copy --foreign --add-missing
62 if test "x$NOCONFIGURE" = "x"; then
63 CFLAGS="-g -O0" ./configure --sysconfdir=/etc --localstatedir=/var "$@"