Changeset 2179 for branches/blt4/gui
- Timestamp:
- Mar 30, 2011 9:49:25 PM (13 years ago)
- Location:
- branches/blt4/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/gui/configure
r2170 r2179 605 605 LIBOBJS 606 606 TK_VERSION 607 TK_INC_SPEC 608 TK_LIB_SPEC 607 609 TCL_LIB_SPEC 608 610 TCL_INC_SPEC … … 713 715 enable_gui 714 716 with_tclsh 717 with_tk 715 718 ' 716 719 ac_precious_vars='build_alias … … 1351 1354 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1352 1355 --with-tclsh=DIR location of tclsh [default=yes] 1356 --with-tcl=DIR path of tclConfig.sh [default=yes] 1357 --with-tk=DIR path of tkConfig.sh [default=yes] 1353 1358 1354 1359 Some influential environment variables: … … 5546 5551 5547 5552 5548 gui_with_tcl="" 5553 with_tcl="" 5554 with_tk="" 5549 5555 5550 5556 make_command="" … … 5586 5592 5587 5593 5594 with_tcl="yes" 5595 5596 # Check whether --with-tk was given. 5597 if test "${with_tk+set}" = set; then : 5598 withval=$with_tk; 5599 else 5600 with_tcl="yes" 5601 fi 5602 5603 5604 with_tk="yes" 5605 5606 # Check whether --with-tk was given. 5607 if test "${with_tk+set}" = set; then : 5608 withval=$with_tk; 5609 else 5610 with_tk=yes 5611 fi 5612 5588 5613 TCLSH= 5614 5589 5615 # ----------------------------------------------------------------------- 5590 5616 # … … 5592 5618 # 5593 5619 # ----------------------------------------------------------------------- 5594 5595 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5 5596 5621 $as_echo_n "checking for tclConfig.sh... " >&6; } 5597 5622 tcl_config_sh="" 5598 if test " x$gui_with_tcl" != "x" ; then5623 if test "$with_tcl" != "yes" ; then 5599 5624 5600 5625 # Verify that a tclConfig.sh file exists in the directory specified … … 5602 5627 5603 5628 for dir in \ 5604 $gui_with_tcl5629 $with_tcl 5605 5630 do 5606 5631 if test -r "$dir/tclConfig.sh" ; then … … 5641 5666 fi 5642 5667 . ${tcl_config_sh} 5643 TCL_INC_SPEC="$TCL_INCLUDE_SPEC" 5668 5669 5670 # ----------------------------------------------------------------------- 5671 # 5672 # Find the Tcl build configuration file "tclConfig.sh" 5673 # 5674 # ----------------------------------------------------------------------- 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkConfig.sh" >&5 5676 $as_echo_n "checking for tkConfig.sh... " >&6; } 5677 tk_config_sh="" 5678 if test "$with_tk" != "yes" ; then 5679 5680 # Verify that a tclConfig.sh file exists in the directory specified 5681 # by --with-tk. 5682 5683 for dir in \ 5684 $with_tk \ 5685 $with_tcl \ 5686 do 5687 if test -r "$dir/tkConfig.sh" ; then 5688 tcl_config_sh="$dir/tkConfig.sh" 5689 break 5690 elif test -r "$dir/lib/tkConfig.sh" ; then 5691 tcl_config_sh="$dir/lib/tkConfig.sh" 5692 break 5693 fi 5694 done 5695 else 5696 5697 # Otherwise, search for Tcl configuration file. 5698 5699 # 1. Search previously named locations. 5700 5701 for dir in \ 5702 $prefix \ 5703 $exec_prefix \ 5704 do 5705 if test -r "$dir/tkConfig.sh" ; then 5706 tcl_config_sh="$dir/tkConfig.sh" 5707 break 5708 elif test -r "$dir/lib/tkConfig.sh" ; then 5709 tcl_config_sh="$dir/lib/tkConfig.sh" 5710 break 5711 fi 5712 done 5713 fi 5714 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tk_config_sh}" >&5 5716 $as_echo "${tk_config_sh}" >&6; } 5717 5718 if test "x$tk_config_sh" = "x" ; then 5719 echo "can't find Tk configuration script \"tkConfig.sh\"" 5720 exit 1 5721 fi 5722 . ${tk_config_sh} 5723 5644 5724 5645 5725 case $target in … … 5666 5746 5667 5747 5668 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then 5669 . ${exec_prefix}/lib/tclConfig.sh 5670 fi 5671 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then 5672 . ${exec_prefix}/lib/tkConfig.sh 5673 fi 5748 5749 5674 5750 5675 5751 -
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) -
branches/blt4/gui/src/Makefile.in
r2170 r2179 28 28 TCL_VERSION = @TCL_VERSION@ 29 29 TCL_LIB_SPEC = @TCL_LIB_SPEC@ 30 TK_LIB_SPEC = @TK_LIB_SPEC@ 30 31 31 32 CC_SWITCHES = $(SHLIB_CFLAGS) $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) … … 46 47 LIBS = \ 47 48 -L../../src/core -lrappture \ 48 -L$(libdir) -ltcl8.4 -ltk8.4-lm49 -L$(libdir) $(TCL_LIB_SPEC) $(TK_LIB_SPEC) -lm 49 50 50 51 OBJS = \
Note: See TracChangeset
for help on using the changeset viewer.