Changeset 347


Ignore:
Timestamp:
Jun 3, 2006 2:25:52 AM (13 years ago)
Author:
andreasw
Message:

improved check for correct version of autotools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/configure

    r340 r347  
    1940819408  rm -f confauto.out
    1940919409
     19410  # Check if the executable autoconf is picked up from the correct location
     19411  echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
     19412echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
     19413  autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
     19414  autoconf_dir=`cd $autoconf_dir; pwd`
     19415  if test x$AUTOTOOLS_DIR = x; then
     19416    want_dir=$HOME/bin
     19417  else
     19418    want_dir=$AUTOTOOLS_DIR/bin
     19419  fi
     19420  if test $autoconf_dir = `cd $want_dir; pwd`; then
     19421    echo "$as_me:$LINENO: result: yes" >&5
     19422echo "${ECHO_T}yes" >&6
     19423  else
     19424    rm -f confauto.out
     19425    echo "$as_me:$LINENO: result: no" >&5
     19426echo "${ECHO_T}no" >&6
     19427    { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&5
     19428echo "$as_me: error: The autoconf executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&2;}
     19429   { (exit 1); exit 1; }; }
     19430  fi
     19431
    1941019432  # Check if we have automake
    1941119433  # Extract the first word of "automake", so it can be a program name with args.
     
    1947019492  rm -f confauto.out
    1947119493
     19494  # Check if the executable automake is picked up from the correct location
     19495  echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
     19496echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
     19497  automake_dir=`which automake | sed -e 's=/automake=='`
     19498  automake_dir=`cd $automake_dir; pwd`
     19499  if test x$AUTOTOOLS_DIR = x; then
     19500    want_dir=$HOME/bin
     19501  else
     19502    want_dir=$AUTOTOOLS_DIR/bin
     19503  fi
     19504  if test $automake_dir = `cd $want_dir; pwd`; then
     19505    echo "$as_me:$LINENO: result: yes" >&5
     19506echo "${ECHO_T}yes" >&6
     19507  else
     19508    rm -f confauto.out
     19509    echo "$as_me:$LINENO: result: no" >&5
     19510echo "${ECHO_T}no" >&6
     19511    { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&5
     19512echo "$as_me: error: The automake executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&2;}
     19513   { (exit 1); exit 1; }; }
     19514  fi
     19515
    1947219516  # Check if we can find the libtool file
    19473   if test "${LIBTOOLPREFIX:+set}" != set; then
    19474     for p in $HOME ; do
    19475       as_ac_File=`echo "ac_cv_file_$p/share/aclocal/libtool.m4" | $as_tr_sh`
    19476 echo "$as_me:$LINENO: checking for $p/share/aclocal/libtool.m4" >&5
    19477 echo $ECHO_N "checking for $p/share/aclocal/libtool.m4... $ECHO_C" >&6
     19517  if test x$AUTOTOOLS_DIR = x; then
     19518    want_dir=$HOME/share
     19519  else
     19520    want_dir=$AUTOTOOLS_DIR/share
     19521  fi
     19522  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
     19523echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
     19524echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
    1947819525if eval "test \"\${$as_ac_File+set}\" = set"; then
    1947919526  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    1948319530echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    1948419531   { (exit 1); exit 1; }; }
    19485 if test -r "$p/share/aclocal/libtool.m4"; then
     19532if test -r "$want_dir/aclocal/libtool.m4"; then
    1948619533  eval "$as_ac_File=yes"
    1948719534else
     
    1949219539echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    1949319540if test `eval echo '${'$as_ac_File'}'` = yes; then
    19494   LIBTOOLM4="$p/share/aclocal/libtool.m4"
    19495                      LIBTOOLPREFIX="$p"
    19496 fi
    19497 
    19498       if test x"$LIBTOOLM4" != x; then
    19499         break;
    19500       fi
    19501     done
    19502     if test x"$LIBTOOLM4" = x; then
    19503       { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find the file libtool.m4 on your system.  Please set the prefix of the location of the correct file with the LIBTOOLPREFIX variable, so that it is in $LIBTOOLPREFIX/share/aclocal.  We assume here that it is the plain version obtained from the GNU tarball." >&5
    19504 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find the file libtool.m4 on your system.  Please set the prefix of the location of the correct file with the LIBTOOLPREFIX variable, so that it is in $LIBTOOLPREFIX/share/aclocal.  We assume here that it is the plain version obtained from the GNU tarball." >&2;}
     19541  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
     19542else
     19543  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
     19544echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
    1950519545   { (exit 1); exit 1; }; }
    19506     fi
    19507   else
    19508     as_ac_File=`echo "ac_cv_file_$LIBTOOLPREFIX/share/aclocal/libtool.m4" | $as_tr_sh`
    19509 echo "$as_me:$LINENO: checking for $LIBTOOLPREFIX/share/aclocal/libtool.m4" >&5
    19510 echo $ECHO_N "checking for $LIBTOOLPREFIX/share/aclocal/libtool.m4... $ECHO_C" >&6
     19546fi
     19547
     19548
     19549  # Check if this is the correct version of libtool (with escaped dots)
     19550  correct_version='1.5.22'
     19551  grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
     19552  as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
     19553echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
     19554echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
    1951119555if eval "test \"\${$as_ac_File+set}\" = set"; then
    1951219556  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    1951619560echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    1951719561   { (exit 1); exit 1; }; }
    19518 if test -r "$LIBTOOLPREFIX/share/aclocal/libtool.m4"; then
    19519   eval "$as_ac_File=yes"
    19520 else
    19521   eval "$as_ac_File=no"
    19522 fi
    19523 fi
    19524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    19525 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    19526 if test `eval echo '${'$as_ac_File'}'` = yes; then
    19527   LIBTOOLM4="$LIBTOOLPREFIX/share/aclocal/libtool.m4"
    19528 else
    19529   { { echo "$as_me:$LINENO: error: You specified LIBTOOLPREFIX, but I cannot find the file libtool.m4 in $LIBTOOLPREFIX/share/aclocal." >&5
    19530 echo "$as_me: error: You specified LIBTOOLPREFIX, but I cannot find the file libtool.m4 in $LIBTOOLPREFIX/share/aclocal." >&2;}
    19531    { (exit 1); exit 1; }; }
    19532 fi
    19533 
    19534   fi
    19535 
    19536   # Check if this is the correct version of libtool (with escaped dots)
    19537   correct_version='1.5.22'
    19538   grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
    19539   as_ac_File=`echo "ac_cv_file_$LIBTOOLPREFIX/share/libtool/ltmain.sh" | $as_tr_sh`
    19540 echo "$as_me:$LINENO: checking for $LIBTOOLPREFIX/share/libtool/ltmain.sh" >&5
    19541 echo $ECHO_N "checking for $LIBTOOLPREFIX/share/libtool/ltmain.sh... $ECHO_C" >&6
    19542 if eval "test \"\${$as_ac_File+set}\" = set"; then
    19543   echo $ECHO_N "(cached) $ECHO_C" >&6
    19544 else
    19545   test "$cross_compiling" = yes &&
    19546   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    19547 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    19548    { (exit 1); exit 1; }; }
    19549 if test -r "$LIBTOOLPREFIX/share/libtool/ltmain.sh"; then
     19562if test -r "$want_dir/libtool/ltmain.sh"; then
    1955019563  eval "$as_ac_File=yes"
    1955119564else
     
    1956419577echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
    1956519578  if test $have_ltmain = yes; then
    19566     if $EGREP $grep_version $LIBTOOLPREFIX/share/libtool/ltmain.sh >/dev/null 2>&1; then
     19579    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
    1956719580      echo "$as_me:$LINENO: result: yes" >&5
    1956819581echo "${ECHO_T}yes" >&6
     
    1957019583      echo "$as_me:$LINENO: result: no" >&5
    1957119584echo "${ECHO_T}no" >&6
    19572       { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool.  Please set LIBTOOLPREFIX to the correct installation prefix, so that the correct version of ltmain.sh is in $LIBTOOLPREFIX/share/libtool." >&5
    19573 echo "$as_me: error: You don't have the correct version of libtool.  Please set LIBTOOLPREFIX to the correct installation prefix, so that the correct version of ltmain.sh is in $LIBTOOLPREFIX/share/libtool." >&2;}
     19585      { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
     19586echo "$as_me: error: You don't have the correct version of libtool." >&2;}
    1957419587   { (exit 1); exit 1; }; }
    1957519588    fi
    1957619589  else
    19577     { { echo "$as_me:$LINENO: error: I cannot find the file ltmain.sh in $LIBTOOLPREFIX/share/libtool" >&5
    19578 echo "$as_me: error: I cannot find the file ltmain.sh in $LIBTOOLPREFIX/share/libtool" >&2;}
     19590    echo "$as_me:$LINENO: result: no" >&5
     19591echo "${ECHO_T}no" >&6
     19592    { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
     19593echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
    1957919594   { (exit 1); exit 1; }; }
    1958019595  fi
Note: See TracChangeset for help on using the changeset viewer.