File: autogen.sh

package info (click to toggle)
clipit 1.4.4%2Bgit20190202-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 828 kB
  • sloc: ansic: 3,567; makefile: 90; sh: 84
file content (62 lines) | stat: -rwxr-xr-x 1,144 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh

GETTEXTIZE="autopoint"
echo "$GETTEXTIZE..."
($GETTEXTIZE --version) < /dev/null > /dev/null 2>&1 || {
	echo "$GETTEXTIZE not found"
	exit 1
}

if test "$GETTEXTIZE"; then
	echo "Creating $dr/aclocal.m4 ..."
	test -r aclocal.m4 || touch aclocal.m4
	echo "Running $GETTEXTIZE...  Ignore non-fatal messages."
	$GETTEXTIZE --force
	echo "Making aclocal.m4 writable ..."
	test -r aclocal.m4 && chmod u+w aclocal.m4
fi

echo "intltoolize..."
(intltoolize --version) < /dev/null > /dev/null 2>&1 || {
	echo
	echo "intltoolize not found"
	exit 1
}

intltoolize --copy --force --automake

echo "aclocal..."
(aclocal --version) < /dev/null > /dev/null 2>&1 || {
	echo "aclocal not found"
	exit 1
}

aclocal -I m4

echo "autoheader..."
(autoheader --version) < /dev/null > /dev/null 2>&1 || {
	echo "autoheader not found"
	exit 1
}

autoheader

echo "automake..."
(automake --version) < /dev/null > /dev/null 2>&1 || {
	echo "automake not found"
	exit 1
}

automake --add-missing --copy

echo "autoconf..."
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
	echo "autoconf not found"
	exit 1
}

autoconf

echo "now run configure"

exit 0