#! /bin/sh # # Copyright (c) 2003 The Trustees of Indiana University. # All rights reserved. # # This file is part of the LAM/MPI software package. For license # information, see the LICENSE file in the top level directory of the # LAM/MPI source distribution. # # $Id: autogen.sh,v 1.2 2003/11/22 16:40:48 jsquyres Exp $ # # This script is run on developer copies of LAM/MPI -- *not* # distribution tarballs. # # Some helper functions # # # Subroutine to check for the existence of various standard GNU tools # test_for_existence() { tfe_prog="$1" tfe_foo="`$tfe_prog --version`" if test "$?" != 0; then cat < Errr... there's no configure.in or configure.ac file!" fi if test -n "$fad_cfile"; then auxdir="`grep AC_CONFIG_AUX_DIR $fad_cfile | cut -d\( -f 2 | cut -d\) -f 1`" fi if test -f "$auxdir/$fad_file"; then rm -f "$auxdir/$fad_file" fi unset fad_cfile fi unset fad_file } ########################################################################## # Main ########################################################################## if test -f VERSION -a -f configure.ac -a -f src/mpi/datatype/d_get_name.c ; then bad=0 else cat <