Changeset 905
- Timestamp:
- Feb 26, 2008, 12:47:21 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.in
r833 r905 37 37 38 38 build_gui: 39 make -C gui 39 @if test "x@ENABLE_GUI@" == "xyes" ; then \ 40 make -C gui; \ 41 fi 40 42 41 43 install_gui: 42 make -C gui install 44 @if test "x@ENABLE_GUI@" == "xyes" ; then \ 45 make -C gui install; \ 46 fi 43 47 44 48 rplib: … … 82 86 83 87 #tcl bindings 88 #cd tcl; @TCLSH@ install.tcl 84 89 install_tcl: 85 cd tcl; $(bindir)/tclsh install.tcl 86 # cd tcl; @TCLSH@ install.tcl 87 make -C src/tcl install 90 @if test "x@TCLSH@" != "x" ; then \ 91 cd tcl; $(bindir)/tclsh install.tcl; \ 92 make -C src/tcl install; \ 93 fi 88 94 89 95 # matlab bindings … … 163 169 164 170 distclean: 165 rm examples/demo.bash171 rm -f examples/demo.bash 166 172 make -C examples/app-fermi/cee distclean 167 173 make -C examples/app-fermi/fortran distclean … … 177 183 make -C src2/core distclean 178 184 make -C test distclean 179 rm gui/apps/rappture gui/apps/simsim gui/apps/rappture.env;185 rm -f gui/apps/rappture gui/apps/simsim gui/apps/rappture.env; 180 186 rm -rf Makefile config.status config.log bin; 181 187 rm -f include/* -
trunk/configure
r872 r905 675 675 FFLAGS 676 676 ac_ct_F77 677 ENABLE_GUI 678 TCLSH 677 679 MEX 678 680 MEX_ARCH … … 1275 1277 cat <<\_ACEOF 1276 1278 1279 Optional Features: 1280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1282 --enable-gui build code related to the graphical user interface 1283 [default=yes] 1284 1277 1285 Optional Packages: 1278 1286 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1279 1287 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1288 --with-tclsh=DIR location of tclsh [default=check] 1280 1289 --with-matlab=DIR location of matlab and mex compiler [default=check] 1281 1290 --with-matlab-arch=ARCH build Matlab bindings for ARCH architecture … … 5077 5086 5078 5087 5088 # Check whether --enable-gui was given. 5089 if test "${enable_gui+set}" = set; then 5090 enableval=$enable_gui; 5091 else 5092 enable_gui=yes 5093 fi 5094 5095 5096 ENABLE_GUI= 5097 if test "$enable_gui" != "no" ; then 5098 ENABLE_GUI="yes" 5099 fi 5100 5101 5102 5103 5104 # Check whether --with-tclsh was given. 5105 if test "${with_tclsh+set}" = set; then 5106 withval=$with_tclsh; 5107 else 5108 with_tclsh=check 5109 fi 5110 5111 5112 TCLSH= 5113 if test "$with_tclsh" != "no" ; then 5114 { echo "$as_me:$LINENO: checking for tclsh" >&5 5115 echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 5116 if test -x "$with_tclsh/bin/tclsh" 5117 then 5118 echo Found tclsh in $with_tclsh/bin/tclsh 5119 TCLSH="$with_tclsh/bin/tclsh" 5120 else 5121 if test -x "$with_tclsh" 5122 then 5123 echo Found tclsh in $with_tclsh 5124 TCLSH="$with_tclsh" 5125 else 5126 # Extract the first word of "tclsh", so it can be a program name with args. 5127 set dummy tclsh; ac_word=$2 5128 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5130 if test "${ac_cv_path_TCLSH+set}" = set; then 5131 echo $ECHO_N "(cached) $ECHO_C" >&6 5132 else 5133 case $TCLSH in 5134 [\\/]* | ?:[\\/]*) 5135 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. 5136 ;; 5137 *) 5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5139 for as_dir in $PATH 5140 do 5141 IFS=$as_save_IFS 5142 test -z "$as_dir" && as_dir=. 5143 for ac_exec_ext in '' $ac_executable_extensions; do 5144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5145 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" 5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5147 break 2 5148 fi 5149 done 5150 done 5151 IFS=$as_save_IFS 5152 5153 ;; 5154 esac 5155 fi 5156 TCLSH=$ac_cv_path_TCLSH 5157 if test -n "$TCLSH"; then 5158 { echo "$as_me:$LINENO: result: $TCLSH" >&5 5159 echo "${ECHO_T}$TCLSH" >&6; } 5160 else 5161 { echo "$as_me:$LINENO: result: no" >&5 5162 echo "${ECHO_T}no" >&6; } 5163 fi 5164 5165 5166 fi 5167 fi 5168 fi 5169 { echo "$as_me:$LINENO: result: ${TCLSH}" >&5 5170 echo "${ECHO_T}${TCLSH}" >&6; } 5171 5079 5172 5080 5173 … … 5486 5579 5487 5580 5488 subdirs="$subdirs gui" 5489 5490 subdirs="$subdirs src/tcl" 5491 5581 if test "$ENABLE_GUI" == "yes" ; then 5582 subdirs="$subdirs gui" 5583 5584 fi 5585 5586 if test "$TCLSH" != "" ; then 5587 subdirs="$subdirs src/tcl" 5588 5589 fi 5492 5590 5493 5591 ac_config_files="$ac_config_files Makefile examples/demo.bash examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/wrapper/cee/Makefile examples/c-example/Makefile perl/Makefile.PL python/setup.py src/Makefile src/matlab/Makefile src/octave/Makefile src2/core/Makefile test/Makefile gui/apps/simsim gui/apps/rappture gui/apps/rappture.env" … … 6197 6295 FFLAGS!$FFLAGS$ac_delim 6198 6296 ac_ct_F77!$ac_ct_F77$ac_delim 6297 ENABLE_GUI!$ENABLE_GUI$ac_delim 6298 TCLSH!$TCLSH$ac_delim 6199 6299 MEX!$MEX$ac_delim 6200 6300 MEX_ARCH!$MEX_ARCH$ac_delim … … 6215 6315 _ACEOF 6216 6316 6217 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7 6; then6317 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then 6218 6318 break 6219 6319 elif $ac_last_try; then -
trunk/configure.in
r872 r905 46 46 47 47 48 49 AC_ARG_ENABLE( 50 [gui], 51 [AS_HELP_STRING([--enable-gui], [build code related to the graphical user interface @<:@default=yes@:>@])], 52 [], 53 [enable_gui=yes]) 54 55 ENABLE_GUI= 56 if test "$enable_gui" != "no" ; then 57 ENABLE_GUI="yes" 58 fi 59 AC_SUBST(ENABLE_GUI) 48 60 49 61 dnl AC_ARG_ENABLE( … … 55 67 dnl BUILD_TCL=yes 56 68 dnl AC_SUBST(BUILD_TCL) 69 70 AC_ARG_WITH( 71 [tclsh], 72 [AS_HELP_STRING([--with-tclsh[=DIR]], 73 [location of tclsh @<:@default=check@:>@])], 74 [], 75 [with_tclsh=check]) 76 77 TCLSH= 78 if test "$with_tclsh" != "no" ; then 79 AC_MSG_CHECKING([for tclsh]) 80 if test -x "$with_tclsh/bin/tclsh" 81 then 82 echo Found tclsh in $with_tclsh/bin/tclsh 83 TCLSH="$with_tclsh/bin/tclsh" 84 else 85 if test -x "$with_tclsh" 86 then 87 echo Found tclsh in $with_tclsh 88 TCLSH="$with_tclsh" 89 else 90 AC_PATH_PROG(TCLSH, tclsh) 91 fi 92 fi 93 fi 94 AC_MSG_RESULT([${TCLSH}]) 95 AC_SUBST(TCLSH) 57 96 58 97 … … 342 381 AC_SUBST(RP_BASE) 343 382 344 AC_CONFIG_SUBDIRS( gui ) 345 AC_CONFIG_SUBDIRS( src/tcl ) 383 if test "$ENABLE_GUI" == "yes" ; then 384 AC_CONFIG_SUBDIRS( gui ) 385 fi 386 387 if test "$TCLSH" != "" ; then 388 AC_CONFIG_SUBDIRS( src/tcl ) 389 fi 346 390 347 391 dnl read Makefile.in and write Makefile
Note: See TracChangeset
for help on using the changeset viewer.