Ticket #12231: macports-tclsqlite3.2.patch
File macports-tclsqlite3.2.patch, 1.7 KB (added by afb@…, 17 years ago) |
---|
-
configure.ac
185 189 [with_included_sqlite3=yes]) 186 190 fi 187 191 192 case $host_os in 193 darwin*) 194 mp_sqlite3_default_dir="/usr/lib/sqlite3" 195 ;; 196 freebsd*) 197 mp_sqlite3_default_dir="/usr/local/lib/sqlite" 198 ;; 199 linux*) 200 mp_sqlite3_default_dir="/usr/share/tcl${TCL_VERSION}/sqlite3" 201 ;; 202 *) 203 mp_sqlite3_default_dir="unspecified" 204 ;; 205 esac 206 188 207 AC_ARG_WITH( 189 208 tcl-sqlite3, 190 209 AS_HELP_STRING([--with-tcl-sqlite3=DIR], 191 210 [directory for Tcl sqlite3 (default /usr/lib/sqlite3)]), 192 211 [mp_sqlite3_dir=$withval], 193 [mp_sqlite3_dir= /usr/lib/sqlite3])212 [mp_sqlite3_dir=$mp_sqlite3_default_dir]) 194 213 214 # Check if mp_sqlite3_dir contains pkgIndex.tcl. 215 if test "x$mp_sqlite3_dir" != "xunspecified" ; then 216 AC_CACHE_CHECK([for Tcl sqlite3 location], [mp_cv_sqlite3_dir], 217 [mp_cv_sqlite3_dir= 218 test -r "${mp_sqlite3_dir}/pkgIndex.tcl" && mp_cv_sqlite3_dir=$mp_sqlite3_dir 219 ]) 220 fi 221 222 if test "$with_included_sqlite3" = "no" -a "x$mp_cv_sqlite3_dir" = "x" ; then 223 AC_MSG_WARN([Tcl sqlite3 not found, falling back on internal sqlite3]) 224 with_included_sqlite3=yes 225 fi 226 195 227 # If sqlite3 package isn't installed, configure and install sqlite3 package. 196 228 if test "$with_included_sqlite3" = "yes"; then 197 229 OUR_INCLUDED_PACKAGES="$OUR_INCLUDED_PACKAGES sqlite-3.1.3" … … 210 242 fi 211 243 else 212 244 SQLITE3_LIBS="-lsqlite3" 213 214 AC_CACHE_CHECK([for Tcl sqlite3 location], [mp_cv_sqlite3_dir],215 [mp_cv_sqlite3_dir=216 test -r "${mp_sqlite3_dir}/pkgIndex.tcl" && mp_cv_sqlite3_dir=$mp_sqlite3_dir217 ])218 219 245 SQLITE3_DIR=$mp_cv_sqlite3_dir 220 246 fi 221 247