-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathautogen.sh
More file actions
executable file
·61 lines (53 loc) · 1.37 KB
/
Copy pathautogen.sh
File metadata and controls
executable file
·61 lines (53 loc) · 1.37 KB
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
#! /usr/bin/env bash
# autogen.sh (borrowed from Gnet autogen.sh)
#
# This script is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
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"
echo
exit 1
}
DIE=0
(autoconf --version) < /dev/null > /dev/null 2>&1 ||
{
echo "Error: 'autoconf' must be installed"
echo
DIE=1
}
if test "$DIE" -eq 1; then
exit 1
fi
if test -z "$*"; then
echo "Warning: I am going to run \`configure' with no arguments."
echo "If you wish to pass any to it, please specify them on the"
echo \`$0\'" command line."
echo
fi
echo "Running aclocal"
aclocal -I m4
echo "Running autoheader"
autoheader
echo "Running autoconf"
autoconf
conf_flags="--enable-compile-warnings"
if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...
[ ! -x $srcdir/configure ] && chmod 755 $srcdir/configure
$srcdir/configure $conf_flags "$@" || exit 1
echo -n "Now type '"
if ! ( uname -s | grep -i bsd >/dev/null 2>&1 ); then
echo -n "make"
else
echo -n "gmake"
fi
echo "' to compile"
else
echo Skipping configure process
fi