/[pcre]/code/branches/pcre16/autogen.sh
ViewVC logotype

Contents of /code/branches/pcre16/autogen.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 484 - (hide annotations) (download) (as text)
Mon Jan 4 17:11:54 2010 UTC (4 years, 11 months ago) by ph10
Original Path: code/trunk/autogen.sh
File MIME type: application/x-sh
File size: 773 byte(s)
Update autogen.sh to try several names for libtoolize.

1 ph10 97 #!/bin/sh
2    
3     set -ex
4     rm -rf autom4te.cache
5     aclocal --force
6    
7 ph10 484 # GNU libtool is named differently on some systems. This code tries several
8     # variants like glibtoolize (MacOSX) and libtoolize1x (FreeBSD)
9 ph10 97
10 ph10 484 set +ex
11     echo "Looking for a version of libtoolize (which can have different names)..."
12     libtoolize=""
13     for l in glibtoolize libtoolize15 libtoolize14 libtoolize ; do
14     $l --version > /dev/null 2>&1
15     if [ $? = 0 ]; then
16     libtoolize=$l
17     echo "Found $l"
18     break
19     fi
20     echo "Did not find $l"
21     done
22    
23     if [ "x$libtoolize" == "x" ]; then
24     echo "Can't find libtoolize on your system"
25     exit 1
26     fi
27    
28     set -ex
29     $libtoolize -c -f
30 ph10 97 autoconf -f -W all,no-obsolete
31 ph10 98 autoheader -f -W all
32 ph10 97 automake -a -c -f -W all
33    
34     rm -rf autom4te.cache
35     exit 0
36    
37     # end autogen.sh

Properties

Name Value
svn:executable *

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12