]>
git.proxmox.com Git - mirror_smartmontools-debian.git/blob - autogen.sh
2 # $Id: autogen.sh 3043 2010-01-22 19:24:59Z chrfranke $
4 # Generate ./configure from config.in and Makefile.in from Makefile.am.
5 # This also adds files like missing,depcomp,install-sh to the source
6 # directory. To update these files at a later date use:
11 test -x /usr
/bin
/uname
&& /usr
/bin
/uname |
grep -i CYGWIN
>/dev
/null
&&
13 # Check for Unix text file type
15 test "`wc -c < dostest.tmp`" -eq 1 ||
16 echo "Warning: DOS text file type set, 'make dist' and related targets will not work."
22 cmd
=$1 ; TMP
=$IFS ; IFS
=: ; set $PATH
25 if [ -x "$dir/$cmd" ]; then
35 test -x "$AUTOMAKE" || AUTOMAKE
=`typep automake-1.11` || AUTOMAKE
=`typep automake-1.10` ||
36 AUTOMAKE
=`typep automake-1.9` || AUTOMAKE
=`typep automake-1.8` ||
37 AUTOMAKE
=`typep automake-1.7` || AUTOMAKE
=`typep automake17` ||
40 echo "You must have at least GNU Automake 1.7 (up to 1.11) installed"
41 echo "in order to bootstrap smartmontools from SVN. Download the"
42 echo "appropriate package for your distribution, or the source tarball"
43 echo "from ftp://ftp.gnu.org/gnu/automake/ ."
45 echo "Also note that support for new Automake series (anything newer"
46 echo "than 1.11) is only added after extensive tests. If you live in"
47 echo "the bleeding edge, you should know what you're doing, mainly how"
48 echo "to test it before the developers. Be patient."
52 test -x "$ACLOCAL" || ACLOCAL
="aclocal`echo "$AUTOMAKE" | sed 's/.*automake//'`" && ACLOCAL
=`typep "$ACLOCAL"` ||
55 echo "autogen.sh found automake-1.X, but not the respective aclocal-1.X."
56 echo "Your installation of GNU Automake is broken or incomplete."
60 # Detect Automake version
62 *automake-1.7|
*automake17
)
67 ver
="`$AUTOMAKE --version | sed -n '1s,^.*[^.0-9]\([12]\.[0-9][-.0-9pl]*\).*$,\1,p'`"
71 # Warn if Automake version was not tested or does not support filesystem
74 # Check for case sensitive filesystem
75 # (to avoid e.g. "DIST_COMMON = ... ChangeLog ..." in Makefile.in on Cygwin)
78 test -f CASETEST.TMP
&&
80 echo "Warning: GNU Automake version ${ver} does not properly handle case"
81 echo "insensitive filesystems. Some make targets may not work."
86 1.9.
[1-6]|
1.10|
1.10.
[12]|
1.11|
1.11.1)
91 echo "Note: GNU Automake version ${ver} was not tested by the developers."
92 echo "Please report success/failure to the smartmontools-support mailing list."
95 set -e # stops on error status
99 ${AUTOMAKE} --add-missing --copy --foreign