Changeset 1869 for trunk/gui/configure


Ignore:
Timestamp:
Aug 22, 2010 4:46:24 PM (14 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/configure

    r1867 r1869  
    19791979
    19801980
     1981gui_with_tcl=""
     1982
    19811983make_command=""
    19821984for m in "$MAKE" make gmake gnumake ; do
     
    20742076    fi
    20752077fi
     2078
     2079# -----------------------------------------------------------------------
     2080#
     2081#       Find the Tcl build configuration file "tclConfig.sh"
     2082#
     2083# -----------------------------------------------------------------------
     2084
     2085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
     2086$as_echo_n "checking for tclConfig.sh... " >&6; }
     2087tcl_config_sh=""
     2088if test "x$gui_with_tcl" != "x" ; then
     2089
     2090  # Verify that a tclConfig.sh file exists in the directory specified
     2091  # by --with-tcl.
     2092
     2093  for dir in \
     2094   $gui_with_tcl
     2095  do
     2096    if test -r "$dir/tclConfig.sh" ; then
     2097      tcl_config_sh="$dir/tclConfig.sh"
     2098      break
     2099    elif test -r "$dir/lib/tclConfig.sh" ; then
     2100      tcl_config_sh="$dir/lib/tclConfig.sh"
     2101      break
     2102    fi
     2103  done
     2104else
     2105
     2106  # Otherwise, search for Tcl configuration file.
     2107
     2108  #  1. Search previously named locations.
     2109
     2110  for dir in \
     2111   $prefix \
     2112   $exec_prefix \
     2113   $gui_cv_tcl_lib
     2114  do
     2115    if test -r "$dir/tclConfig.sh" ; then
     2116      tcl_config_sh="$dir/tclConfig.sh"
     2117      break
     2118    elif test -r "$dir/lib/tclConfig.sh" ; then
     2119      tcl_config_sh="$dir/lib/tclConfig.sh"
     2120      break
     2121    fi
     2122  done
     2123fi
     2124
     2125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5
     2126$as_echo "${tcl_config_sh}" >&6; }
     2127
     2128if test "x$tcl_config_sh" = "x" ; then
     2129  echo "can't find Tcl configuration script \"tclConfig.sh\""
     2130  exit 1
     2131fi
     2132
     2133. ${tcl_config_sh}
     2134
     2135TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    20762136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH}" >&5
    20772137$as_echo "${TCLSH}" >&6; }
    20782138
    2079 
    2080 TCL_VERSION="8.4"
    2081 for dir in \
    2082  ${exec_prefix} \
    2083  ${exec_prefix}/lib ; do
    2084   tclconfig="${dir}/tclConfig.sh"
    2085   if test -f "$tclconfig" ; then
    2086     . $tclconfig
    2087     break
    2088   fi
    2089 done
    2090 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    2091 
    2092 if test "x$with_tcllib" != "x" ; then
    2093    tclconfig="${with_tcllib}/tclConfig.sh"
    2094    if test -f "$tclconfig" ; then
    2095     . $tclconfig
    2096    fi
    2097    TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}"
    2098 fi
    2099 if test "x$with_tclinclude" != "x" ; then
    2100    TCL_INC_SPEC="-I${with_tclinclude}"
    2101 fi
    21022139
    21032140
Note: See TracChangeset for help on using the changeset viewer.