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.in

    r1867 r1869  
    2727AC_PROG_MKDIR_P
    2828AC_PROG_MAKE_SET
     29
     30gui_with_tcl=""
    2931
    3032make_command=""
     
    7880    fi
    7981fi
     82
     83# -----------------------------------------------------------------------
     84#
     85#       Find the Tcl build configuration file "tclConfig.sh"
     86#
     87# -----------------------------------------------------------------------
     88
     89AC_MSG_CHECKING([for tclConfig.sh])
     90tcl_config_sh=""
     91if test "x$gui_with_tcl" != "x" ; then
     92
     93  # Verify that a tclConfig.sh file exists in the directory specified
     94  # by --with-tcl.
     95
     96  for dir in \
     97   $gui_with_tcl
     98  do
     99    if test -r "$dir/tclConfig.sh" ; then
     100      tcl_config_sh="$dir/tclConfig.sh"
     101      break
     102    elif test -r "$dir/lib/tclConfig.sh" ; then
     103      tcl_config_sh="$dir/lib/tclConfig.sh"
     104      break
     105    fi
     106  done
     107else
     108
     109  # Otherwise, search for Tcl configuration file. 
     110
     111  #  1. Search previously named locations.
     112
     113  for dir in \
     114   $prefix \
     115   $exec_prefix \
     116   $gui_cv_tcl_lib
     117  do
     118    if test -r "$dir/tclConfig.sh" ; then
     119      tcl_config_sh="$dir/tclConfig.sh"
     120      break
     121    elif test -r "$dir/lib/tclConfig.sh" ; then
     122      tcl_config_sh="$dir/lib/tclConfig.sh"
     123      break
     124    fi
     125  done
     126fi
     127
     128AC_MSG_RESULT([${tcl_config_sh}])
     129
     130if test "x$tcl_config_sh" = "x" ; then
     131  echo "can't find Tcl configuration script \"tclConfig.sh\""
     132  exit 1
     133fi
     134
     135. ${tcl_config_sh}
     136
     137TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    80138AC_MSG_RESULT([${TCLSH}])
    81139AC_SUBST(TCLSH)
    82 
    83 TCL_VERSION="8.4"
    84 for dir in \
    85  ${exec_prefix} \
    86  ${exec_prefix}/lib ; do
    87   tclconfig="${dir}/tclConfig.sh"
    88   if test -f "$tclconfig" ; then
    89     . $tclconfig
    90     break
    91   fi
    92 done
    93 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
    94 
    95 if test "x$with_tcllib" != "x" ; then
    96    tclconfig="${with_tcllib}/tclConfig.sh"
    97    if test -f "$tclconfig" ; then
    98     . $tclconfig
    99    fi
    100    TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}"
    101 fi
    102 if test "x$with_tclinclude" != "x" ; then
    103    TCL_INC_SPEC="-I${with_tclinclude}"
    104 fi
    105140
    106141AC_SUBST(TCL_VERSION)
Note: See TracChangeset for help on using the changeset viewer.