|
Revision 2222, 0.7 KB
(checked in by des, 2 years ago)
|
|
Add Solaris support. Avoid kshisms.
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | # |
|---|
| 3 | # $Id$ |
|---|
| 4 | # |
|---|
| 5 | |
|---|
| 6 | warn() { |
|---|
| 7 | echo "WARNING: $@" 1>&2 |
|---|
| 8 | } |
|---|
| 9 | |
|---|
| 10 | case `uname -s` in |
|---|
| 11 | Darwin) |
|---|
| 12 | LIBTOOLIZE=glibtoolize |
|---|
| 13 | ;; |
|---|
| 14 | FreeBSD) |
|---|
| 15 | LIBTOOLIZE=libtoolize |
|---|
| 16 | ;; |
|---|
| 17 | Linux) |
|---|
| 18 | LIBTOOLIZE=libtoolize |
|---|
| 19 | ;; |
|---|
| 20 | SunOS) |
|---|
| 21 | LIBTOOLIZE=libtoolize |
|---|
| 22 | ;; |
|---|
| 23 | *) |
|---|
| 24 | warn "unrecognized platform:" `uname -s` |
|---|
| 25 | LIBTOOLIZE=libtoolize |
|---|
| 26 | esac |
|---|
| 27 | |
|---|
| 28 | automake_version=`automake --version | tr ' ' '\n' | egrep '^[0-9]\.[0-9a-z.-]+'` |
|---|
| 29 | if [ -z "$automake_version" ] ; then |
|---|
| 30 | warn "unable to determine automake version" |
|---|
| 31 | else |
|---|
| 32 | case $automake_version in |
|---|
| 33 | 0.*|1.[0-8]|1.[0-8][.-]*) |
|---|
| 34 | warn "automake ($automake_version) detected; 1.9 or newer recommended" |
|---|
| 35 | ;; |
|---|
| 36 | *) |
|---|
| 37 | ;; |
|---|
| 38 | esac |
|---|
| 39 | fi |
|---|
| 40 | |
|---|
| 41 | set -ex |
|---|
| 42 | |
|---|
| 43 | aclocal |
|---|
| 44 | $LIBTOOLIZE --copy --force |
|---|
| 45 | autoheader |
|---|
| 46 | automake --add-missing --copy --foreign |
|---|
| 47 | autoconf |
|---|