Skip to content

Commit 2865227

Browse files
committed
added missing file, renamed README to keep autoconf happy
1 parent d1a7770 commit 2865227

File tree

2 files changed

+114
-0
lines changed

2 files changed

+114
-0
lines changed

README.md renamed to README

File renamed without changes.

bootstrap

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
#! /bin/sh
2+
3+
# configuring glimmer for a CVS build. If you compile from a released tar-ball
4+
# you don't need to run this script. Just run ./configure directly.
5+
6+
# this script originates from the GIMP project.
7+
# most of this is lifted from autogen.sh from gimp
8+
9+
ACLOCAL=${ACLOCAL-aclocal}
10+
AUTOCONF=${AUTOCONF-autoconf}
11+
AUTOHEADER=${AUTOHEADER-autoheader}
12+
AUTOMAKE=${AUTOMAKE-automake}
13+
LIBTOOLIZE=${LIBTOOLIZE-libtoolize}
14+
15+
AUTOCONF_REQUIRED_VERSION=2.54
16+
AUTOMAKE_REQUIRED_VERSION=1.9.6
17+
18+
check_version ()
19+
{
20+
VERSION_A=$1
21+
VERSION_B=$2
22+
23+
save_ifs="$IFS"
24+
IFS=.
25+
set dummy $VERSION_A 0 0 0
26+
MAJOR_A=$2
27+
MINOR_A=$3
28+
MICRO_A=$4
29+
set dummy $VERSION_B 0 0 0
30+
MAJOR_B=$2
31+
MINOR_B=$3
32+
MICRO_B=$4
33+
IFS="$save_ifs"
34+
35+
if expr "$MAJOR_A" = "$MAJOR_B" > /dev/null; then
36+
if expr "$MINOR_A" \> "$MINOR_B" > /dev/null; then
37+
echo "yes (version $VERSION_A)"
38+
elif expr "$MINOR_A" = "$MINOR_B" > /dev/null; then
39+
if expr "$MICRO_A" \>= "$MICRO_B" > /dev/null; then
40+
echo "yes (version $VERSION_A)"
41+
else
42+
echo "Too old (version $VERSION_A)"
43+
DIE=1
44+
fi
45+
else
46+
echo "Too old (version $VERSION_A)"
47+
DIE=1
48+
fi
49+
elif expr "$MAJOR_A" \> "$MAJOR_B" > /dev/null; then
50+
echo "Major version might be too new ($VERSION_A)"
51+
else
52+
echo "Too old (version $VERSION_A)"
53+
DIE=1
54+
fi
55+
}
56+
57+
echo
58+
echo Checking if required version of automake is installed
59+
echo
60+
61+
DIE=0
62+
63+
echo -n "checking for autoconf >= $AUTOCONF_REQUIRED_VERSION ... "
64+
if ($AUTOCONF --version) < /dev/null > /dev/null 2>&1; then
65+
VER=`$AUTOCONF --version | head -n 1 \
66+
| grep -iw autoconf | sed "s/.* \([0-9.]*\)[-a-z0-9]*$/\1/"`
67+
check_version $VER $AUTOCONF_REQUIRED_VERSION
68+
else
69+
echo
70+
echo " You must have autoconf installed to compile $PROJECT."
71+
echo " Download the appropriate package for your distribution,"
72+
echo " or get the source tarball at ftp://ftp.gnu.org/pub/gnu/autoconf/"
73+
echo
74+
DIE=1;
75+
fi
76+
77+
78+
echo -n "checking for automake >= $AUTOMAKE_REQUIRED_VERSION ... "
79+
if ($AUTOMAKE --version) < /dev/null > /dev/null 2>&1; then
80+
AUTOMAKE=$AUTOMAKE
81+
ACLOCAL=$ACLOCAL
82+
elif (automake-1.10 --version) < /dev/null > /dev/null 2>&1; then
83+
AUTOMAKE=automake-1.10
84+
ACLOCAL=aclocal-1.10
85+
elif (automake-1.9 --version) < /dev/null > /dev/null 2>&1; then
86+
AUTOMAKE=automake-1.9
87+
ACLOCAL=aclocal-1.9
88+
else
89+
echo
90+
echo " You must have automake $AUTOMAKE_REQUIRED_VERSION or newer installed to compile $PROJECT."
91+
echo " Download the appropriate package for your distribution,"
92+
echo " or get the source tarball at ftp://ftp.gnu.org/pub/gnu/automake/"
93+
echo
94+
DIE=1
95+
fi
96+
97+
if test x$AUTOMAKE != x; then
98+
VER=`$AUTOMAKE --version \
99+
| grep automake | sed "s/.* \([0-9.]*\)[-a-z0-9]*$/\1/"`
100+
check_version $VER $AUTOMAKE_REQUIRED_VERSION
101+
fi
102+
103+
if test "$DIE" -eq 1; then
104+
echo
105+
echo "Please install/upgrade the missing tools and call me again."
106+
echo
107+
exit 1
108+
fi
109+
110+
rm -rf autom4te.cache
111+
112+
$ACLOCAL \
113+
&& $AUTOMAKE --gnu --add-missing \
114+
&& $AUTOCONF

0 commit comments

Comments
 (0)