- Timestamp:
- Aug 19, 2008, 2:10:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r1111 r1122 726 726 ENABLE_GUI 727 727 TCLSH 728 MATLAB 728 729 MEX 729 M ATLAB730 MEXEXT 730 731 MEX_ARCH 731 MEXEXT732 732 MKOCTFILE 733 733 PERL … … 8632 8632 if test "$with_matlab" != "no" ; then 8633 8633 if test "$with_matlab" = "yes" ; then 8634 # Extract the first word of "mex", so it can be a program name with args. 8634 # Extract the first word of "matlab", so it can be a program name with args. 8635 set dummy matlab; ac_word=$2 8636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8637 $as_echo_n "checking for $ac_word... " >&6; } 8638 if test "${ac_cv_path_MATLAB+set}" = set; then 8639 $as_echo_n "(cached) " >&6 8640 else 8641 case $MATLAB in 8642 [\\/]* | ?:[\\/]*) 8643 ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path. 8644 ;; 8645 *) 8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8647 for as_dir in $PATH 8648 do 8649 IFS=$as_save_IFS 8650 test -z "$as_dir" && as_dir=. 8651 for ac_exec_ext in '' $ac_executable_extensions; do 8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8653 ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext" 8654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8655 break 2 8656 fi 8657 done 8658 done 8659 IFS=$as_save_IFS 8660 8661 ;; 8662 esac 8663 fi 8664 MATLAB=$ac_cv_path_MATLAB 8665 if test -n "$MATLAB"; then 8666 { $as_echo "$as_me:$LINENO: result: $MATLAB" >&5 8667 $as_echo "$MATLAB" >&6; } 8668 else 8669 { $as_echo "$as_me:$LINENO: result: no" >&5 8670 $as_echo "no" >&6; } 8671 fi 8672 8673 8674 else 8675 # Extract the first word of "matlab", so it can be a program name with args. 8676 set dummy matlab; ac_word=$2 8677 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8678 $as_echo_n "checking for $ac_word... " >&6; } 8679 if test "${ac_cv_path_MATLAB+set}" = set; then 8680 $as_echo_n "(cached) " >&6 8681 else 8682 case $MATLAB in 8683 [\\/]* | ?:[\\/]*) 8684 ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path. 8685 ;; 8686 *) 8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8688 for as_dir in $PATH 8689 do 8690 IFS=$as_save_IFS 8691 test -z "$as_dir" && as_dir=. 8692 for ac_exec_ext in '' $ac_executable_extensions; do 8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8694 ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext" 8695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8696 break 2 8697 fi 8698 done 8699 done 8700 IFS=$as_save_IFS 8701 8702 test -z "$ac_cv_path_MATLAB" && ac_cv_path_MATLAB="${with_matlab}/bin:${with_matlab}" 8703 ;; 8704 esac 8705 fi 8706 MATLAB=$ac_cv_path_MATLAB 8707 if test -n "$MATLAB"; then 8708 { $as_echo "$as_me:$LINENO: result: $MATLAB" >&5 8709 $as_echo "$MATLAB" >&6; } 8710 else 8711 { $as_echo "$as_me:$LINENO: result: no" >&5 8712 $as_echo "no" >&6; } 8713 fi 8714 8715 8716 fi 8717 fi 8718 8719 if test "x$MATLAB" != "x" ; then 8720 matlab_bindir=$as_dirname -- ${MATLAB} || 8721 $as_expr X${MATLAB} : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8722 X${MATLAB} : 'X\(//\)[^/]' \| \ 8723 X${MATLAB} : 'X\(//\)$' \| \ 8724 X${MATLAB} : 'X\(/\)' \| . 2>/dev/null || 8725 $as_echo X${MATLAB} | 8726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8727 s//\1/ 8728 q 8729 } 8730 /^X\(\/\/\)[^/].*/{ 8731 s//\1/ 8732 q 8733 } 8734 /^X\(\/\/\)$/{ 8735 s//\1/ 8736 q 8737 } 8738 /^X\(\/\).*/{ 8739 s//\1/ 8740 q 8741 } 8742 s/.*/./; q' 8743 # Extract the first word of "mex", so it can be a program name with args. 8635 8744 set dummy mex; ac_word=$2 8636 8745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 … … 8659 8768 IFS=$as_save_IFS 8660 8769 8770 test -z "$ac_cv_path_MEX" && ac_cv_path_MEX="${matlab_bindir}" 8661 8771 ;; 8662 8772 esac … … 8672 8782 8673 8783 8674 # Extract the first word of "matlab", so it can be a program name with args.8675 set dummy m atlab; ac_word=$28784 # Extract the first word of "mexext", so it can be a program name with args. 8785 set dummy mexext; ac_word=$2 8676 8786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8677 8787 $as_echo_n "checking for $ac_word... " >&6; } 8678 if test "${ac_cv_path_M ATLAB+set}" = set; then8788 if test "${ac_cv_path_MEXEXT+set}" = set; then 8679 8789 $as_echo_n "(cached) " >&6 8680 8790 else 8681 case $M ATLABin8791 case $MEXEXT in 8682 8792 [\\/]* | ?:[\\/]*) 8683 ac_cv_path_M ATLAB="$MATLAB" # Let the user override the test with a path.8793 ac_cv_path_MEXEXT="$MEXEXT" # Let the user override the test with a path. 8684 8794 ;; 8685 8795 *) … … 8691 8801 for ac_exec_ext in '' $ac_executable_extensions; do 8692 8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8693 ac_cv_path_M ATLAB="$as_dir/$ac_word$ac_exec_ext"8803 ac_cv_path_MEXEXT="$as_dir/$ac_word$ac_exec_ext" 8694 8804 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8695 8805 break 2 … … 8699 8809 IFS=$as_save_IFS 8700 8810 8811 test -z "$ac_cv_path_MEXEXT" && ac_cv_path_MEXEXT="${matlab_bindir}" 8701 8812 ;; 8702 8813 esac 8703 8814 fi 8704 M ATLAB=$ac_cv_path_MATLAB8705 if test -n "$M ATLAB"; then8706 { $as_echo "$as_me:$LINENO: result: $M ATLAB" >&58707 $as_echo "$M ATLAB" >&6; }8815 MEXEXT=$ac_cv_path_MEXEXT 8816 if test -n "$MEXEXT"; then 8817 { $as_echo "$as_me:$LINENO: result: $MEXEXT" >&5 8818 $as_echo "$MEXEXT" >&6; } 8708 8819 else 8709 8820 { $as_echo "$as_me:$LINENO: result: no" >&5 … … 8712 8823 8713 8824 8825 { $as_echo "$as_me:$LINENO: checking for mex extension" >&5 8826 $as_echo_n "checking for mex extension... " >&6; } 8827 if test "x$MEXEXT" != "x" ; then 8828 mexext=`$MEXEXT` 8714 8829 else 8715 # Extract the first word of "mex", so it can be a program name with args. 8716 set dummy mex; ac_word=$2 8717 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8718 $as_echo_n "checking for $ac_word... " >&6; } 8719 if test "${ac_cv_path_MEX+set}" = set; then 8720 $as_echo_n "(cached) " >&6 8721 else 8722 case $MEX in 8723 [\\/]* | ?:[\\/]*) 8724 ac_cv_path_MEX="$MEX" # Let the user override the test with a path. 8725 ;; 8726 *) 8727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8728 for as_dir in $PATH 8729 do 8730 IFS=$as_save_IFS 8731 test -z "$as_dir" && as_dir=. 8732 for ac_exec_ext in '' $ac_executable_extensions; do 8733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8734 ac_cv_path_MEX="$as_dir/$ac_word$ac_exec_ext" 8735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8736 break 2 8830 mexext="mexglx" 8737 8831 fi 8738 done 8739 done 8740 IFS=$as_save_IFS 8741 8742 test -z "$ac_cv_path_MEX" && ac_cv_path_MEX="${with_matlab}/bin/mex:${with_matlab}" 8743 ;; 8744 esac 8745 fi 8746 MEX=$ac_cv_path_MEX 8747 if test -n "$MEX"; then 8748 { $as_echo "$as_me:$LINENO: result: $MEX" >&5 8749 $as_echo "$MEX" >&6; } 8750 else 8751 { $as_echo "$as_me:$LINENO: result: no" >&5 8752 $as_echo "no" >&6; } 8753 fi 8754 8755 8756 # Extract the first word of "matlab", so it can be a program name with args. 8757 set dummy matlab; ac_word=$2 8758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8759 $as_echo_n "checking for $ac_word... " >&6; } 8760 if test "${ac_cv_path_MATLAB+set}" = set; then 8761 $as_echo_n "(cached) " >&6 8762 else 8763 case $MATLAB in 8764 [\\/]* | ?:[\\/]*) 8765 ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path. 8766 ;; 8767 *) 8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8769 for as_dir in $PATH 8770 do 8771 IFS=$as_save_IFS 8772 test -z "$as_dir" && as_dir=. 8773 for ac_exec_ext in '' $ac_executable_extensions; do 8774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8775 ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext" 8776 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8777 break 2 8778 fi 8779 done 8780 done 8781 IFS=$as_save_IFS 8782 8783 test -z "$ac_cv_path_MATLAB" && ac_cv_path_MATLAB="${with_matlab}/bin/mex:${with_matlab}" 8784 ;; 8785 esac 8786 fi 8787 MATLAB=$ac_cv_path_MATLAB 8788 if test -n "$MATLAB"; then 8789 { $as_echo "$as_me:$LINENO: result: $MATLAB" >&5 8790 $as_echo "$MATLAB" >&6; } 8791 else 8792 { $as_echo "$as_me:$LINENO: result: no" >&5 8793 $as_echo "no" >&6; } 8794 fi 8795 8796 8797 fi 8798 fi 8799 if test "x$MATLAB" = "x" ; then 8800 # No matlab, no mex. Debian 3.1 has mex script that calls mkoctfile. 8801 MEX="" 8802 fi 8832 { $as_echo "$as_me:$LINENO: result: $mexext" >&5 8833 $as_echo "$mexext" >&6; } 8834 MEXEXT=$mexext 8835 fi 8836 8803 8837 8804 8838
Note: See TracChangeset
for help on using the changeset viewer.