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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 941 - (hide annotations)
Sat May 2 02:02:59 2009 UTC (10 years, 5 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 stu 908 #!/bin/sh
2 stu 911 # 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 stu 908 set -e
18 stu 911
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 db 941 ## 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 stu 911 ## 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 db 941 ## 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 stu 911
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