Changeset 2690 for branches/blt4/gui/configure.in
- Timestamp:
- Nov 17, 2011, 8:40:07 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/gui/configure.in
r2528 r2690 2 2 AC_INIT([RapptureGUI],[1.1],[rappture@nanohub.org]) 3 3 AC_CONFIG_AUX_DIR(cf) 4 5 4 #------------------------------------------------------------------------ 6 5 # Handle the --prefix=... option … … 20 19 fi 21 20 AC_CANONICAL_TARGET 21 AC_SUBST(LIB_SEARCH_DIRS) 22 22 23 23 AC_PROG_INSTALL … … 32 32 SC_ENABLE_SHARED 33 33 34 with_tcl="" 35 with_tk="" 34 AC_SUBST(CFLAGS_DEBUG) 35 AC_SUBST(CFLAGS_OPTIMIZE) 36 AC_SUBST(STLIB_LD) 37 AC_SUBST(SHLIB_LD) 38 AC_SUBST(SHLIB_CFLAGS) 39 AC_SUBST(SHLIB_LDFLAGS) 40 AC_SUBST(SHLIB_SUFFIX) 41 42 gui_with_tcl="" 36 43 37 44 make_command="" … … 46 53 AC_MSG_ERROR([Requires GNU make. You can specify a version with \$MAKE]) 47 54 fi 55 AC_SUBST(MAKE, ${make_command}) 48 56 49 57 AC_ARG_ENABLE( … … 57 65 ENABLE_GUI="yes" 58 66 fi 67 AC_SUBST(ENABLE_GUI) 59 68 60 69 with_tclsh="yes" … … 66 75 [with_tclsh=yes]) 67 76 68 with_tcl="yes"69 AC_ARG_WITH(70 [tk],71 [AS_HELP_STRING([--with-tcl[=DIR]],72 [path of tclConfig.sh @<:@default=yes@:>@])],73 [],74 [with_tcl="yes"])75 76 with_tk="yes"77 AC_ARG_WITH(78 [tk],79 [AS_HELP_STRING([--with-tk[=DIR]],80 [path of tkConfig.sh @<:@default=yes@:>@])],81 [],82 [with_tk=yes])83 77 TCLSH= 84 85 78 # ----------------------------------------------------------------------- 86 79 # … … 88 81 # 89 82 # ----------------------------------------------------------------------- 83 90 84 AC_MSG_CHECKING([for tclConfig.sh]) 91 85 tcl_config_sh="" 92 if test " $with_tcl" != "yes" ; then86 if test "x$gui_with_tcl" != "x" ; then 93 87 94 88 # Verify that a tclConfig.sh file exists in the directory specified 95 89 # by --with-tcl. 96 90 97 for dir in $with_tcl ; do 91 for dir in \ 92 $gui_with_tcl 93 do 98 94 if test -r "$dir/tclConfig.sh" ; then 99 95 tcl_config_sh="$dir/tclConfig.sh" … … 110 106 # 1. Search previously named locations. 111 107 112 for dir in $prefix $exec_prefix $gui_cv_tcl_lib ; do 108 for dir in \ 109 $prefix \ 110 $exec_prefix \ 111 $gui_cv_tcl_lib 112 do 113 113 if test -r "$dir/tclConfig.sh" ; then 114 114 tcl_config_sh="$dir/tclConfig.sh" … … 128 128 fi 129 129 . ${tcl_config_sh} 130 131 132 # ----------------------------------------------------------------------- 133 # 134 # Find the Tcl build configuration file "tclConfig.sh" 135 # 136 # ----------------------------------------------------------------------- 137 138 AC_MSG_CHECKING([for tkConfig.sh]) 139 tk_config_sh="" 140 if test "$with_tk" != "yes" ; then 141 142 # Verify that a tclConfig.sh file exists in the directory specified 143 # by --with-tk. 144 145 for dir in $with_tk $with_tcl ; do 146 if test -r "$dir/tkConfig.sh" ; then 147 tk_config_sh="$dir/tkConfig.sh" 148 break 149 elif test -r "$dir/lib/tkConfig.sh" ; then 150 tk_config_sh="$dir/lib/tkConfig.sh" 151 break 152 fi 153 done 154 else 155 156 # Otherwise, search for Tcl configuration file. 157 158 # 1. Search previously named locations. 159 160 for dir in $prefix $exec_prefix ; do 161 if test -r "$dir/tkConfig.sh" ; then 162 tk_config_sh="$dir/tkConfig.sh" 163 break 164 elif test -r "$dir/lib/tkConfig.sh" ; then 165 tk_config_sh="$dir/lib/tkConfig.sh" 166 break 167 fi 168 done 169 fi 170 171 AC_MSG_RESULT([${tk_config_sh}]) 172 173 if test "x$tk_config_sh" = "x" ; then 174 echo "can't find Tk configuration script \"tkConfig.sh\"" 175 exit 1 176 fi 177 . ${tk_config_sh} 130 TCL_INC_SPEC="$TCL_INCLUDE_SPEC" 178 131 179 132 case $target in … … 193 146 194 147 AC_MSG_RESULT([${TCLSH}]) 148 AC_SUBST(TCLSH) 195 149 196 AC_SUBST(CFLAGS_DEBUG) 197 AC_SUBST(CFLAGS_OPTIMIZE) 198 AC_SUBST(ENABLE_GUI) 199 AC_SUBST(LIB_SEARCH_DIRS) 200 AC_SUBST(MAKE, ${make_command}) 201 AC_SUBST(SHLIB_CFLAGS, ${TCL_SHLIB_CFLAGS}) 202 AC_SUBST(SHLIB_LD, ${TCL_SHLIB_LD}) 203 AC_SUBST(SHLIB_LDFLAGS, ${TCL_SHLIB_LDFLAGS}) 204 AC_SUBST(SHLIB_SUFFIX, ${TCL_SHLIB_SUFFIX}) 205 AC_SUBST(STLIB_LD, ${TCL_STLIB_LD}) 206 AC_SUBST(TCLSH) 150 AC_SUBST(TCL_VERSION) 207 151 AC_SUBST(TCL_INC_SPEC) 208 152 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/tkConfig.sh" ; then 158 . ${exec_prefix}/lib/tkConfig.sh 159 fi 209 160 AC_SUBST(TCL_VERSION) 210 AC_SUBST(TCL_VERSION)211 AC_SUBST(TK_INC_SPEC)212 AC_SUBST(TK_LIB_SPEC)213 AC_SUBST(TK_XLIBSW)214 161 AC_SUBST(TK_VERSION) 215 162
Note: See TracChangeset
for help on using the changeset viewer.