Ignore:
Timestamp:
Dec 2, 2010, 9:47:26 PM (14 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/configure.in

    r1972 r1973  
    114114AC_SUBST(ENABLE_GUI)
    115115
    116 with_tclsh="yes"
     116rp_with_tclsh="yes"
    117117AC_ARG_WITH(
    118118    [tclsh],
     
    120120        [location of tclsh @<:@default=yes@:>@])],
    121121    [],
    122     [with_tclsh=yes])
     122    [rp_with_tclsh=$withval])
    123123
    124124TCLSH=
    125 if test "$with_tclsh" != "no" ; then
     125if test "${rp_with_tclsh}" != "no" ; then
    126126    AC_MSG_CHECKING([for tclsh])
    127     if test -x "$with_tclsh/bin/tclsh"
     127    if test -x "${rp_with_tclsh}/bin/tclsh"
    128128    then
    129         echo Found tclsh in $with_tclsh/bin/tclsh
    130         TCLSH="$with_tclsh/bin/tclsh"
     129        echo Found tclsh in ${rp_with_tclsh}/bin/tclsh
     130        TCLSH="${rp_with_tclsh}/bin/tclsh"
    131131    else
    132        if test -x "$with_tclsh"
     132       if test -x "${rp_with_tclsh}"
    133133        then
    134             echo Found tclsh in $with_tclsh
    135             TCLSH="$with_tclsh"
     134            echo "Found tclsh in ${rp_with_tclsh}"
     135            TCLSH="${rp_with_tclsh}"
    136136        else
    137137            if test -x "${exec_prefix}/bin/tclsh"
     
    172172TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    173173
    174 if test "x$with_tcllib" != "x" ; then
    175    tclconfig="${with_tcllib}/tclConfig.sh"
     174if test "x$rp_with_tcllib" != "x" ; then
     175   tclconfig="${rp_with_tcllib}/tclConfig.sh"
    176176   if test -f "$tclconfig" ; then
    177177    . $tclconfig
    178178   fi
    179    TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}"
    180 fi
    181 if test "x$with_tclinclude" != "x" ; then
    182    TCL_INC_SPEC="-I${with_tclinclude}"
     179   TCL_LIB_SPEC="-L${rp_with_tcllib} -ltcl${TCL_VERSION}"
     180fi
     181if test "x$rp_with_tclinclude" != "x" ; then
     182   TCL_INC_SPEC="-I${rp_with_tclinclude}"
    183183fi
    184184
     
    191191    [AS_HELP_STRING([--with-vtk[=DIR]],
    192192        [location of vtk library @<:@default=yes@:>@])],
    193     [with_vtk=$withval], [with_vtk=yes])
     193    [rp_with_vtk=$withval], [rp_with_vtk=yes])
    194194
    195195AC_MSG_CHECKING([for vtk])
    196196VTKDIR=""
    197197
    198 if test "$with_vtk" != "no" ; then
    199   if test "$with_vtk" = "yes" ; then
     198if test "$rp_with_vtk" != "no" ; then
     199  if test "$rp_with_vtk" = "yes" ; then
    200200    for path in \
    201201     $libdir \
     
    223223    [AS_HELP_STRING([--with-matlab[=DIR]],
    224224        [location of matlab and mex compiler @<:@default=yes@:>@])],
    225     [with_matlab=$withval],
    226     [with_matlab=yes])
     225    [rp_with_matlab=$withval],
     226    [rp_with_matlab=yes])
    227227
    228228MCC=""
     
    231231MEXEXT=""
    232232MATLAB=
    233 if test "$with_matlab" != "no" ; then
    234   if test "$with_matlab" = "yes" ; then
     233if test "$rp_with_matlab" != "no" ; then
     234  if test "$rp_with_matlab" = "yes" ; then
    235235    AC_PATH_PROG(MATLAB, matlab)
    236236  else
    237     AC_PATH_PROG(MATLAB, matlab, [], [${with_matlab}/bin:${with_matlab}])
     237    AC_PATH_PROG(MATLAB, matlab, [], [${rp_with_matlab}/bin:${rp_with_matlab}])
    238238  fi
    239239fi
     
    272272    [AS_HELP_STRING([--with-octave[=DIR]],
    273273        [location of octave compiler MKOCTFILE @<:@default=yes@:>@])],
    274     [with_octave=$withval],
    275     [with_octave=yes])
     274    [rp_with_octave=$withval],
     275    [rp_with_octave=yes])
    276276
    277277OCTAVE=
     
    283283MKOCTFILE2=
    284284MKOCTFILE3=
    285 if test "$with_octave" != "no" ; then
     285if test "$rp_with_octave" != "no" ; then
    286286  AC_MSG_CHECKING([for octave and mkoctfile])
    287   if test "$with_octave" = "yes" ; then
     287  if test "$rp_with_octave" = "yes" ; then
    288288    AC_PATH_PROG(OCTAVE, octave)
    289289    AC_PATH_PROG(MKOCTFILE, mkoctfile)
    290290  else
    291     MKOCTFILE=$with_octave
    292     OCTAVE=$with_octave
     291    MKOCTFILE=$rp_with_octave
     292    OCTAVE=$rp_with_octave
    293293  fi
    294294fi
     
    311311    [AS_HELP_STRING([--with-octave2[=DIR]],
    312312        [location of octave compiler MKOCTFILE @<:@default=no@:>@])],
    313     [with_octave2=$withval],
    314     [with_octave2=no])
    315 
    316 if test "$with_octave2" != "no" ; then
    317   if test "$with_octave2" = "yes" ; then
     313    [rp_with_octave2=$withval],
     314    [rp_with_octave2=no])
     315
     316if test "$rp_with_octave2" != "no" ; then
     317  if test "$rp_with_octave2" = "yes" ; then
    318318    AC_MSG_CHECKING([for octave and mkoctfile])
    319319    AC_PATH_PROG(octave2, octave)
    320320    AC_PATH_PROG(mkoctfile2, mkoctfile)
    321321  else
    322     octave2=$with_octave2
    323     mkoctfile2=`dirname $with_octave2`/mkoctfile
     322    octave2=$rp_with_octave2
     323    mkoctfile2=`dirname $rp_with_octave2`/mkoctfile
    324324  fi
    325325fi
     
    339339    [AS_HELP_STRING([--with-octave3[=DIR]],
    340340        [location of octave compiler MKOCTFILE @<:@default=no@:>@])],
    341     [with_octave3=$withval],
    342     [with_octave3=no])
    343 
    344 echo with_octave3=$with_octave3
    345 if test "$with_octave3" != "no" ; then
    346   if test "$with_octave3" = "yes" ; then
     341    [rp_with_octave3=$withval],
     342    [rp_with_octave3=no])
     343
     344echo rp_with_octave3=$rp_with_octave3
     345if test "$rp_with_octave3" != "no" ; then
     346  if test "$rp_with_octave3" = "yes" ; then
    347347    AC_MSG_CHECKING([for octave and mkoctfile])
    348348    AC_PATH_PROG(octave3, octave)
    349349    AC_PATH_PROG(mkoctfile3, mkoctfile)
    350350  else
    351     octave3=$with_octave3
    352     mkoctfile3=`dirname $with_octave3`/mkoctfile
     351    octave3=$rp_with_octave3
     352    mkoctfile3=`dirname $rp_with_octave3`/mkoctfile
    353353  fi
    354354fi
     
    362362  echo version_major=$version_major
    363363  if test "$version_major" = "3" ; then
    364     OCTAVE3=$with_octave3
     364    OCTAVE3=$rp_with_octave3
    365365    MKOCTFILE3=$mkoctfile3
    366366  fi
     
    380380    [AS_HELP_STRING([--with-perl[=DIR]], [location of perl @<:@default=yes@:>@])],
    381381    [],
    382     [with_perl=yes])
     382    [rp_with_perl=yes])
    383383
    384384PERL=
     
    393393PERL_VERSION_RV=
    394394PERL_LIBSPEC=
    395 if test "$with_perl" != "no" ; then
     395if test "$rp_with_perl" != "no" ; then
    396396  AC_MSG_CHECKING([for perl])
    397   if test "$with_perl" != "yes" ; then
    398     AC_PATH_PROG(PERL, perl, [], [$with_perl/bin:$with_perl])
     397  if test "$rp_with_perl" != "yes" ; then
     398    AC_PATH_PROG(PERL, perl, [], [$rp_with_perl/bin:$rp_with_perl])
    399399  else
    400400    AC_PATH_PROG(PERL, perl)
     
    448448    [AS_HELP_STRING([--with-python[=DIR]],[location of python @<:@default=yes@:>@])],
    449449    [],
    450     [with_python=yes])
    451 
    452 if test "$with_python" != "no" ; then
     450    [rp_with_python=yes])
     451
     452if test "$rp_with_python" != "no" ; then
    453453  AC_MSG_CHECKING([for python])
    454   if test -x "$with_python/bin/python"; then
    455     echo Found python in $with_python/bin/python
    456     PYTHON="$with_python/bin/python"
    457   elif test -x "$with_python"; then
    458     echo Found python in $with_python
    459     PYTHON="$with_python"
     454  if test -x "$rp_with_python/bin/python"; then
     455    echo Found python in $rp_with_python/bin/python
     456    PYTHON="$rp_with_python/bin/python"
     457  elif test -x "$rp_with_python"; then
     458    echo Found python in $rp_with_python
     459    PYTHON="$rp_with_python"
    460460  else
    461461    AC_PATH_PROG(PYTHON, python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5)
     
    466466  fi
    467467  if test "x${PYTHON_VERSION}" != "x"; then
    468     if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
    469      -d $with_python/lib/python$PYTHON_VERSION/site-packages; then
    470       PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
    471       PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages
     468    if test -r $rp_with_python/include/python$PYTHON_VERSION/Python.h -a \
     469     -d $rp_with_python/lib/python$PYTHON_VERSION/site-packages; then
     470      PYTHON_INCLUDES=$rp_with_python/include/python$PYTHON_VERSION
     471      PYTHON_SITE_PACKAGES=$rp_with_python/lib/python$PYTHON_VERSION/site-packages
    472472    else
    473473      if test -r $prefix/include/python$PYTHON_VERSION/Python.h; then
     
    487487    fi
    488488  fi
    489   if test "x$with_python" != "x" ;  then
     489  if test "x$rp_with_python" != "x" ;  then
    490490    pythondir='$(PYTHON_SITE_PACKAGES)'
    491491  else
     
    538538AC_SUBST(HAVE_PYTHON_DISTUTILS)
    539539
    540 rappture_with_ruby="yes"
     540rp_with_ruby="yes"
    541541
    542542RUBY=""
    543543RUBY_DEV_PKG="no"
    544544
    545 AC_ARG_WITH(ruby,
    546   AS_HELP_STRING([--with-ruby=PATH], [absolute path to ruby executable]),
    547   [rappture_with_ruby=$with_val])
    548 if test "${rappture_with_ruby}" != "no" ; then
    549   if test "${rappture_with_ruby}" = "yes" ; then
     545AC_ARG_WITH(
     546    [ruby],
     547    [AS_HELP_STRING([--with-ruby=DIR], [location of ruby @<:@default=yes@:>@])],
     548    [rp_with_ruby=$withval])
     549
     550if test "${rp_with_ruby}" != "no" ; then
     551  if test "${rp_with_ruby}" = "yes" ; then
    550552    AC_PATH_PROG(RUBY, ruby)
    551553  else
    552     AC_PATH_PROG(RUBY, ruby, [],
    553       [${rappture_with_ruby}/bin/ruby:${rappture_with_ruby}])
     554    AC_PATH_PROG(RUBY, ruby, [], [${rp_with_ruby}/bin:${rp_with_ruby}])
    554555  fi
    555556fi
Note: See TracChangeset for help on using the changeset viewer.