1
1

* Make autogen.sh look for glibtoolize if libtoolize doesn't seem to be

what we want (such as on OS X)

This commit was SVN r14.
Этот коммит содержится в:
Brian Barrett 2003-12-24 01:49:07 +00:00
родитель f8ed5be4bf
Коммит 75499d02c4

Просмотреть файл

@ -1,4 +1,4 @@
#! /bin/sh #! /bin/bash
# #
# Copyright (c) 2003 The Trustees of Indiana University. # Copyright (c) 2003 The Trustees of Indiana University.
# All rights reserved. # All rights reserved.
@ -7,7 +7,7 @@
# information, see the LICENSE file in the top level directory of the # information, see the LICENSE file in the top level directory of the
# LAM/MPI source distribution. # LAM/MPI source distribution.
# #
# $Id: autogen.sh,v 1.2 2003/11/22 16:40:48 jsquyres Exp $ # $Id: autogen.sh,v 1.3 2003/12/24 01:49:07 brbarret Exp $
# #
# This script is run on developer copies of LAM/MPI -- *not* # This script is run on developer copies of LAM/MPI -- *not*
# distribution tarballs. # distribution tarballs.
@ -18,10 +18,30 @@
# #
# Subroutine to check for the existence of various standard GNU tools # Subroutine to check for the existence of various standard GNU tools
# #
# First argument: variable name to set
# Other arguments: list of programs to look for
#
test_for_existence() { test_for_existence() {
tfe_prog="$1" local tfe_foo_set=0
tfe_foo="`$tfe_prog --version`" local tfe_found=0
if test "$?" != 0; then local tfe_output=0
tfe_name="$1"
for i in $* ; do
if [ $tfe_foo_set = 0 ]; then
tfe_foo_set=1
continue
fi
tfe_output="`$i --version 2>&1`"
if [ $? == 0 ]; then
tfe_found=1
eval "$tfe_name=$i"
break
fi
done
if test $tfe_found = 0; then
cat <<EOF cat <<EOF
You must have GNU autoconf, automake, and libtool installed to build You must have GNU autoconf, automake, and libtool installed to build
@ -32,7 +52,7 @@ EOF
# Stupid emacs: ' # Stupid emacs: '
exit 1 exit 1
fi fi
unset tfe_prog tfe_foo unset tfe_name
} }
@ -47,7 +67,7 @@ run_and_check() {
if test "$?" != 0; then if test "$?" != 0; then
cat <<EOF cat <<EOF
It seems that the execution of "$progs" has failed. It seems that the execution of "$rac_progs" has failed.
I am gonna abort. :-( I am gonna abort. :-(
This may be caused by an older version of one of the required This may be caused by an older version of one of the required
@ -120,9 +140,9 @@ EOF
exit 1 exit 1
fi fi
test_for_existence autoconf test_for_existence autoconf autoconf autoconf-2.57
test_for_existence automake test_for_existence automake automake automake-1.5
test_for_existence libtool test_for_existence libtoolize libtoolize glibtoolize
# See if the package doesn't want us to set it up # See if the package doesn't want us to set it up
@ -153,7 +173,7 @@ if test "`grep AC_CONFIG_HEADER configure.ac`" != "" -o \
run_and_check autoheader run_and_check autoheader
fi fi
run_and_check autoconf run_and_check autoconf
run_and_check libtoolize --automake --copy run_and_check $libtoolize --automake --copy
run_and_check automake --foreign -a --copy --include-deps run_and_check automake --foreign -a --copy --include-deps
# All done # All done