Changeset 4194


Ignore:
Timestamp:
May 6, 2020 1:09:44 PM (11 months ago)
Author:
stefan
Message:

figure out AUTOTOOLS_DIR if not set and add to PATH if set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/0.8/run_autotools

    r3632 r4194  
    9393runautotoolDir=`echo $runautotoolDir | sed -e 's,/\./,/,g' -e 's,//,/,g'`
    9494
     95# Find out the location for autotools executables, macros, etc.
     96# This can be overidden if the user sets AUTOTOOLS_DIR in the environment.
     97# If this directory is not already in the PATH, add it.
     98
     99if test -z "$AUTOTOOLS_DIR" ; then
     100  # assume that autotools directory is given by location of autoconf
     101  AUTOTOOLS_DIR=`dirname $(which autoconf)`/..
     102elif ! expr ":${PATH}:" : '.*:'"${AUTOTOOLS_DIR}"'/bin:.*' &>/dev/null ; then
     103  # prefix PATH with AUTOTOOLS_DIR/bin
     104  PATH="${AUTOTOOLS_DIR}/bin:$PATH"
     105fi
     106echo "Using AUTOTOOLS_DIR=$AUTOTOOLS_DIR"
     107
    95108# Make sure we're using the correct versions of the autotools. Failure to
    96109# satisfy this requirement is a fatal error.
     
    100113ver_libtool='1.5.22'
    101114EGREP='grep -E'
    102 
    103 # Check if the correct version of the autotools is used
    104 if test x$AUTOTOOLS_DIR = x; then
    105   AUTOTOOLS_DIR=$HOME
    106 fi
    107115
    108116grep_version=`echo  $ver_autoconf | sed -e 's/\\./\\\\\\./g'`
Note: See TracChangeset for help on using the changeset viewer.