-
Notifications
You must be signed in to change notification settings - Fork 0
/
autogen.sh
executable file
·41 lines (33 loc) · 1.01 KB
/
autogen.sh
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
#!/bin/sh
# Run this to generate all the initial Makefiles, etc.
# Check how echo works in this /bin/sh
case $(echo -n) in
-n) _echo_n= _echo_c='\c';;
*) _echo_n=-n _echo_c=;;
esac
srcdir=$(dirname $0)
test -z "$srcdir" && srcdir=.
(test -f $srcdir/configure.ac) || {
echo -n "*** Error ***: Directory "\`$srcdir\'" does not look like the"
echo " top-level directory"
exit 1
}
(echo $_echo_n " + Running autoreconf --install: $_echo_c"; \
autoreconf --install; \
echo "done.")
rc=$?
(test -n $rc ) || exit $rc
touch $srcdir/doc/version.texi
test -f $srcdir/doc/stamp-vti && rm $srcdir/doc/stamp-vti
conf_flags="--enable-maintainer-mode" # --enable-compile-warnings #--enable-iso-c
if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...
$srcdir/configure $conf_flags "$@" \
&& echo Now type \`make\' to compile $PKG_NAME
else
echo Skipping configure process.
fi
#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") ***
#;;; End: ***