/[svn]/ircd-hybrid-7.2/autogen.sh
ViewVC logotype

Contents of /ircd-hybrid-7.2/autogen.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 941 - (show annotations)
Sat May 2 02:02:59 2009 UTC (10 years, 9 months ago) by db
File MIME type: application/x-shellscript
File size: 2166 byte(s)
- Update autools versions.
- Fix acinclude.m4 to work on FreeBSD at least.


1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3 # Shamelessly stolen from lighttpd - which is licensed under the GPL
4
5 LIBTOOLIZE_FLAGS="--automake --ltdl"
6 AUTOMAKE_FLAGS="--add-missing"
7
8 ARGV0=$0
9 ARGS="$@"
10
11 run() {
12 echo "$ARGV0: running \`$@' $ARGS"
13 $@ $ARGS
14 }
15
16 ## jump out if one of the programs returns 'false'
17 set -e
18
19 ## on macosx glibtoolize, others have libtool
20 if test x$LIBTOOLIZE = x; then
21 if test \! x`which glibtoolize` = x; then
22 LIBTOOLIZE=glibtoolize
23 elif test \! x`which libtoolize-1.5` = x; then
24 LIBTOOLIZE=libtoolize-1.5
25 elif test \! x`which libtoolize` = x; then
26 LIBTOOLIZE=libtoolize
27 fi
28 fi
29
30 ## freebsd has aclocal and aclocal-1.10
31 if test x$ACLOCAL = x; then
32 if test \! x`which aclocal-1.10` = x; then
33 ACLOCAL=aclocal-1.10
34 AUTOMAKE=automake-1.10
35 elif test \! x`which aclocal` = x; then
36 ACLOCAL=aclocal
37 AUTOMAKE=automake
38 fi
39 fi
40
41 ## suse has aclocal and aclocal-1.9
42 if test x$ACLOCAL = x; then
43 if test \! x`which aclocal-1.9` = x; then
44 ACLOCAL=aclocal-1.9
45 AUTOMAKE=automake-1.9
46 elif test \! x`which aclocal` = x; then
47 ACLOCAL=aclocal
48 AUTOMAKE=automake
49 fi
50 fi
51
52 if test x$AUTOMAKE = x; then
53 if test \! x`which automake-1.9` = x; then
54 AUTOMAKE=automake-1.9
55 elif test \! x`which automake` = x; then
56 AUTOMAKE=automake
57 fi
58 fi
59
60 ## freebsd has autoconf-2.62 and autoconf-2.62
61 if test x$AUTOCONF = x; then
62 if test \! x`which autoconf-2.62` = x; then
63 AUTOCONF=autoconf-2.62
64 elif test \! x`which autoconf` = x; then
65 AUTOCONF=autoconf
66 fi
67 fi
68
69 ## macosx has autoconf-2.59 and autoconf-2.60
70 if test x$AUTOCONF = x; then
71 if test \! x`which autoconf-2.59` = x; then
72 AUTOCONF=autoconf-2.59
73 elif test \! x`which autoconf` = x; then
74 AUTOCONF=autoconf
75 fi
76 fi
77
78 if test x$AUTOHEADER = x; then
79 if test \! x`which autoheader-2.59` = x; then
80 AUTOHEADER=autoheader-2.59
81 elif test \! x`which autoheader` = x; then
82 AUTOHEADER=autoheader
83 fi
84 fi
85
86
87 run $LIBTOOLIZE $LIBTOOLIZE_FLAGS
88 run $ACLOCAL $ACLOCAL_FLAGS
89 run $AUTOHEADER
90 run $AUTOMAKE $AUTOMAKE_FLAGS
91 run $AUTOCONF
92 test "$ARGS" = "" && echo "Now type './configure ...' and 'make' to compile."

Properties

Name Value
svn:executable *

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26