Changeset 2179 for branches/blt4/gui/configure.in
- Timestamp:
- Mar 30, 2011, 9:49:25 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/gui/configure.in
r2170 r2179 40 40 AC_SUBST(SHLIB_SUFFIX) 41 41 42 gui_with_tcl="" 42 with_tcl="" 43 with_tk="" 43 44 44 45 make_command="" … … 75 76 [with_tclsh=yes]) 76 77 78 with_tcl="yes" 79 AC_ARG_WITH( 80 [tk], 81 [AS_HELP_STRING([--with-tcl[=DIR]], 82 [path of tclConfig.sh @<:@default=yes@:>@])], 83 [], 84 [with_tcl="yes"]) 85 86 with_tk="yes" 87 AC_ARG_WITH( 88 [tk], 89 [AS_HELP_STRING([--with-tk[=DIR]], 90 [path of tkConfig.sh @<:@default=yes@:>@])], 91 [], 92 [with_tk=yes]) 77 93 TCLSH= 94 78 95 # ----------------------------------------------------------------------- 79 96 # … … 81 98 # 82 99 # ----------------------------------------------------------------------- 83 84 100 AC_MSG_CHECKING([for tclConfig.sh]) 85 101 tcl_config_sh="" 86 if test " x$gui_with_tcl" != "x" ; then102 if test "$with_tcl" != "yes" ; then 87 103 88 104 # Verify that a tclConfig.sh file exists in the directory specified … … 90 106 91 107 for dir in \ 92 $gui_with_tcl108 $with_tcl 93 109 do 94 110 if test -r "$dir/tclConfig.sh" ; then … … 128 144 fi 129 145 . ${tcl_config_sh} 130 TCL_INC_SPEC="$TCL_INCLUDE_SPEC" 146 147 148 # ----------------------------------------------------------------------- 149 # 150 # Find the Tcl build configuration file "tclConfig.sh" 151 # 152 # ----------------------------------------------------------------------- 153 AC_MSG_CHECKING([for tkConfig.sh]) 154 tk_config_sh="" 155 if test "$with_tk" != "yes" ; then 156 157 # Verify that a tclConfig.sh file exists in the directory specified 158 # by --with-tk. 159 160 for dir in \ 161 $with_tk \ 162 $with_tcl \ 163 do 164 if test -r "$dir/tkConfig.sh" ; then 165 tcl_config_sh="$dir/tkConfig.sh" 166 break 167 elif test -r "$dir/lib/tkConfig.sh" ; then 168 tcl_config_sh="$dir/lib/tkConfig.sh" 169 break 170 fi 171 done 172 else 173 174 # Otherwise, search for Tcl configuration file. 175 176 # 1. Search previously named locations. 177 178 for dir in \ 179 $prefix \ 180 $exec_prefix \ 181 do 182 if test -r "$dir/tkConfig.sh" ; then 183 tcl_config_sh="$dir/tkConfig.sh" 184 break 185 elif test -r "$dir/lib/tkConfig.sh" ; then 186 tcl_config_sh="$dir/lib/tkConfig.sh" 187 break 188 fi 189 done 190 fi 191 192 AC_MSG_RESULT([${tk_config_sh}]) 193 194 if test "x$tk_config_sh" = "x" ; then 195 echo "can't find Tk configuration script \"tkConfig.sh\"" 196 exit 1 197 fi 198 . ${tk_config_sh} 199 131 200 132 201 case $target in … … 148 217 AC_SUBST(TCLSH) 149 218 219 150 220 AC_SUBST(TCL_VERSION) 151 221 AC_SUBST(TCL_INC_SPEC) 152 222 AC_SUBST(TCL_LIB_SPEC) 153 154 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then 155 . ${exec_prefix}/lib/tclConfig.sh 156 fi 157 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then 158 . ${exec_prefix}/lib/tkConfig.sh 159 fi 223 AC_SUBST(TK_LIB_SPEC) 224 AC_SUBST(TK_INC_SPEC) 160 225 AC_SUBST(TCL_VERSION) 161 226 AC_SUBST(TK_VERSION)
Note: See TracChangeset
for help on using the changeset viewer.