Changeset 1092 for trunk/configure


Ignore:
Timestamp:
Aug 5, 2008, 6:36:22 PM (11 years ago)
Author:
gah
Message:

yet another fix for perl language binding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r1090 r1092  
    734734PERL_ARCHLIB
    735735PERL_VERSION
     736PERL_CCFLAGS
     737PERL_CPPFLAGS
     738PERL_VENDORLIB
     739PERL_PRIVLIB
    736740PERL_VERSION_RV
    737741PYTHON
     
    86658669
    86668670  else
    8667     { $as_echo "$as_me:$LINENO: checking for matlab mex compiler" >&5
    8668 $as_echo_n "checking for matlab mex compiler... " >&6; }
    8669     for i in "${with_matlab}/bin/mex" "${with_matlab}" ; do
    8670       if test -x "$i" ; then
    8671         MEX="$i"; break
    8672       fi
    8673       if test "x${MEX}" = "x" ; then
    8674         { { $as_echo "$as_me:$LINENO: error: cannot find mex in $with_matlab" >&5
    8675 $as_echo "$as_me: error: cannot find mex in $with_matlab" >&2;}
    8676    { (exit 1); exit 1; }; }
    8677       fi
    8678     done
    8679     { $as_echo "$as_me:$LINENO: result: ${MEX}" >&5
    8680 $as_echo "${MEX}" >&6; }
     8671    # Extract the first word of "mex", so it can be a program name with args.
     8672set dummy mex; ac_word=$2
     8673{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
     8674$as_echo_n "checking for $ac_word... " >&6; }
     8675if test "${ac_cv_path_MEX+set}" = set; then
     8676  $as_echo_n "(cached) " >&6
     8677else
     8678  case $MEX in
     8679  [\\/]* | ?:[\\/]*)
     8680  ac_cv_path_MEX="$MEX" # Let the user override the test with a path.
     8681  ;;
     8682  *)
     8683  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     8684for as_dir in $PATH
     8685do
     8686  IFS=$as_save_IFS
     8687  test -z "$as_dir" && as_dir=.
     8688  for ac_exec_ext in '' $ac_executable_extensions; do
     8689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
     8690    ac_cv_path_MEX="$as_dir/$ac_word$ac_exec_ext"
     8691    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     8692    break 2
     8693  fi
     8694done
     8695done
     8696IFS=$as_save_IFS
     8697
     8698  test -z "$ac_cv_path_MEX" && ac_cv_path_MEX="${with_matlab}/bin/mex:${with_matlab}"
     8699  ;;
     8700esac
     8701fi
     8702MEX=$ac_cv_path_MEX
     8703if test -n "$MEX"; then
     8704  { $as_echo "$as_me:$LINENO: result: $MEX" >&5
     8705$as_echo "$MEX" >&6; }
     8706else
     8707  { $as_echo "$as_me:$LINENO: result: no" >&5
     8708$as_echo "no" >&6; }
     8709fi
     8710
     8711
    86818712  fi
    86828713fi
     
    87858816
    87868817
     8818
    87878819# Check whether --with-perl was given.
    87888820if test "${with_perl+set}" = set; then
     
    87978829PERL_ARCHLIB=
    87988830PERL_VERSION=
     8831PERL_VENDORLIB=
     8832PERL_PRIVLIB=
     8833PERL_CPPFLAGS=
     8834PERL_CCFlAGS=
    87998835PERL_VERSION_RV=
    88008836if test "$with_perl" != "no" ; then
     
    88888924      PERL_ARCHLIB=`${PERL} -MConfig -e 'print $Config{archlib}'`
    88898925      PERL_VERSION=`${PERL} -MConfig -e 'print $Config{version}'`
     8926      PERL_CCFLAGS=`${PERL} -MConfig -e 'print $Config{ccflags}'`
     8927      PERL_CPPFLAGS=`${PERL} -MConfig -e 'print $Config{cppflags}'`
     8928      PERL_VENDORLIB=`${PERL} -MConfig -e 'print $Config{vendorlib}'`
     8929      PERL_PRIVLIB=`${PERL} -MConfig -e 'print $Config{privlib}'`
    88908930      PERL_VERSION_RV=`echo ${PERL_VERSION} | cut -d'.' -f1-2`
    88918931    fi
     
    88938933{ $as_echo "$as_me:$LINENO: result: ${PERL}" >&5
    88948934$as_echo "${PERL}" >&6; }
     8935
     8936
     8937
     8938
    88958939
    88968940
Note: See TracChangeset for help on using the changeset viewer.