Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Changeset 25783

Show
Ignore:
Timestamp:
06/01/07 11:48:14 (18 months ago)
Author:
sfiera@…
Message:

Merging in r25770

Location:
branches/dp2mp-move/base
Files:
2 added
6 modified

Legend:

Unmodified
Added
Removed
  • branches/dp2mp-move/base/Mk/macports.autoconf.mk.in

    r25399 r25783  
    2525LIBS                    = @LIBS@ 
    2626MD5_LIBS                = @MD5_LIBS@ 
     27SQLITE3_LIBS            = @SQLITE3_LIBS@ 
    2728INSTALL                 = @INSTALL@ 
    2829MTREE                   = @MTREE@ 
  • branches/dp2mp-move/base/Mk/macports.tea.mk

    r24454 r25783  
    33 
    44$(SHLIB_NAME):: ${OBJS} 
    5         ${SHLIB_LD} ${OBJS} -o ${SHLIB_NAME} ${TCL_STUB_LIB_SPEC} ${SHLIB_LDFLAGS} ${LIBS} ${MD5_LIBS} 
     5        ${SHLIB_LD} ${OBJS} -o ${SHLIB_NAME} ${TCL_STUB_LIB_SPEC} ${SHLIB_LDFLAGS} ${LIBS} ${MD5_LIBS} ${SQLITE3_LIBS} 
    66 
    77all:: ${SHLIB_NAME} 
  • branches/dp2mp-move/base/aclocal.m4

    r24454 r25783  
    728728 
    729729 
    730 # MP_PATH_SQLITE3 
    731 #       Specify sqlite3 location 
    732 # 
    733 # Arguments: 
    734 #       None. 
    735 # 
    736 # Requires: 
    737 #   System or user-specified --with-sqlite=dir to specify 
    738 # 
    739 # Results: 
    740 #   Sets SQLITE3_DIR to the directory where sqlite3 tcl pkgIndex.tcl is 
    741 #--------------------------------------- 
    742 AC_DEFUN([MP_PATH_SQLITE3],[ 
    743  
    744         AC_ARG_WITH([sqlite], 
    745                 AS_HELP_STRING([--with-sqlite3=DIR], 
    746                         [directory for sqlite3 (default /usr/lib/sqlite3)]),             
    747                 [mp_sqlite3_dir=$withval], [mp_sqlite3_dir=/usr/lib/sqlite3]) 
    748                  
    749         AC_CACHE_CHECK([for sqlite3 location], [mp_cv_sqlite3_dir], 
    750                 [mp_cv_sqlite3_dir= 
    751                 test -r "${mp_sqlite3_dir}/pkgIndex.tcl" && mp_cv_sqlite3_dir=$mp_sqlite3_dir 
    752                 ]) 
    753                  
    754         SQLITE3_DIR=$mp_cv_sqlite3_dir 
    755         AC_SUBST(SQLITE3_DIR) 
    756 ]) 
    757  
    758730dnl This macro tests if the compiler supports GCC's 
    759731dnl __attribute__ syntax for unused variables/parameters 
  • branches/dp2mp-move/base/configure

    r25352 r25783  
    700700PORTSDIR 
    701701MPCONFIGDIR 
    702 SQLITE3_DIR 
    703702DSTUSR 
    704703DSTGRP 
     
    730729LDFLAGS_LIBCURL 
    731730subdirs 
     731SQLITE3_LIBS 
     732SQLITE3_DIR 
    732733OUR_INCLUDED_PACKAGES 
    733734INCLUDES 
     
    766767CPP 
    767768XMKMF' 
    768 ac_subdirs_all='src/thread2.6' 
     769ac_subdirs_all='src/thread2.6 
     770src/sqlite-3.1.3' 
    769771 
    770772# Initialize some variables set by options. 
     
    13511353  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) 
    13521354  --with-ports-dir=DIR    Specify alternate ports directory 
    1353   --with-sqlite3=DIR      directory for sqlite3 (default /usr/lib/sqlite3) 
    13541355  --with-install-user=USER 
    13551356                          Specify user ownership of installed files 
     
    13631364  --with-tclpackage       Tcl package installation directory. 
    13641365  --with-curlprefix       base directory for the cURL install '/usr', '/usr/local',... 
    1365   --with-included-tclthread install included Thread package. 
     1366  --with-included-tclthread 
     1367                          install included Thread package. 
     1368  --with-included-sqlite3 build using bundled sqlite3 package 
     1369  --with-tcl-sqlite3=DIR  directory for Tcl sqlite3 (default /usr/lib/sqlite3) 
    13661370 
    13671371Some influential environment variables: 
     
    40534057 
    40544058 
    4055  
    4056  
    4057 # Check whether --with-sqlite was given. 
    4058 if test "${with_sqlite+set}" = set; then 
    4059   withval=$with_sqlite; mp_sqlite3_dir=$withval 
    4060 else 
    4061   mp_sqlite3_dir=/usr/lib/sqlite3 
    4062 fi 
    4063  
    4064  
    4065         { echo "$as_me:$LINENO: checking for sqlite3 location" >&5 
    4066 echo $ECHO_N "checking for sqlite3 location... $ECHO_C" >&6; } 
    4067 if test "${mp_cv_sqlite3_dir+set}" = set; then 
    4068   echo $ECHO_N "(cached) $ECHO_C" >&6 
    4069 else 
    4070   mp_cv_sqlite3_dir= 
    4071                 test -r "${mp_sqlite3_dir}/pkgIndex.tcl" && mp_cv_sqlite3_dir=$mp_sqlite3_dir 
    4072  
    4073 fi 
    4074 { echo "$as_me:$LINENO: result: $mp_cv_sqlite3_dir" >&5 
    4075 echo "${ECHO_T}$mp_cv_sqlite3_dir" >&6; } 
    4076  
    4077         SQLITE3_DIR=$mp_cv_sqlite3_dir 
    4078  
    4079  
    4080  
    40814059# Check for install ownership 
    40824060 
     
    94929470        patch -p0 < src/thread2.6.diff 
    94939471fi 
     9472 
     9473## sqlite3 package. 
     9474 
     9475# Check whether --with-included-sqlite3 was given. 
     9476if test "${with_included_sqlite3+set}" = set; then 
     9477  withval=$with_included_sqlite3; with_included_sqlite3=$withval 
     9478else 
     9479  with_included_sqlite3="unspecified" 
     9480fi 
     9481 
     9482 
     9483# Check if sqlite3 package is already installed. 
     9484if test "x$with_included_sqlite3" = "xunspecified" ; then 
     9485        { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5 
     9486echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; } 
     9487if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then 
     9488  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9489else 
     9490  ac_check_lib_save_LIBS=$LIBS 
     9491LIBS="-lsqlite3  $LIBS" 
     9492cat >conftest.$ac_ext <<_ACEOF 
     9493/* confdefs.h.  */ 
     9494_ACEOF 
     9495cat confdefs.h >>conftest.$ac_ext 
     9496cat >>conftest.$ac_ext <<_ACEOF 
     9497/* end confdefs.h.  */ 
     9498 
     9499/* Override any GCC internal prototype to avoid an error. 
     9500   Use char because int might match the return type of a GCC 
     9501   builtin and then its argument prototype would still apply.  */ 
     9502#ifdef __cplusplus 
     9503extern "C" 
     9504#endif 
     9505char sqlite3_open (); 
     9506int 
     9507main () 
     9508{ 
     9509return sqlite3_open (); 
     9510  ; 
     9511  return 0; 
     9512} 
     9513_ACEOF 
     9514rm -f conftest.$ac_objext conftest$ac_exeext 
     9515if { (ac_try="$ac_link" 
     9516case "(($ac_try" in 
     9517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     9518  *) ac_try_echo=$ac_try;; 
     9519esac 
     9520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 
     9521  (eval "$ac_link") 2>conftest.er1 
     9522  ac_status=$? 
     9523  grep -v '^ *+' conftest.er1 >conftest.err 
     9524  rm -f conftest.er1 
     9525  cat conftest.err >&5 
     9526  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     9527  (exit $ac_status); } && { 
     9528         test -z "$ac_c_werror_flag" || 
     9529         test ! -s conftest.err 
     9530       } && test -s conftest$ac_exeext && 
     9531       $as_test_x conftest$ac_exeext; then 
     9532  ac_cv_lib_sqlite3_sqlite3_open=yes 
     9533else 
     9534  echo "$as_me: failed program was:" >&5 
     9535sed 's/^/| /' conftest.$ac_ext >&5 
     9536 
     9537        ac_cv_lib_sqlite3_sqlite3_open=no 
     9538fi 
     9539 
     9540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     9541      conftest$ac_exeext conftest.$ac_ext 
     9542LIBS=$ac_check_lib_save_LIBS 
     9543fi 
     9544{ echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 
     9545echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 
     9546if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then 
     9547  with_included_sqlite3=no 
     9548else 
     9549  with_included_sqlite3=yes 
     9550fi 
     9551 
     9552fi 
     9553 
     9554 
     9555# Check whether --with-tcl-sqlite3 was given. 
     9556if test "${with_tcl_sqlite3+set}" = set; then 
     9557  withval=$with_tcl_sqlite3; mp_sqlite3_dir=$withval 
     9558else 
     9559  mp_sqlite3_dir=/usr/lib/sqlite3 
     9560fi 
     9561 
     9562 
     9563# If sqlite3 package isn't installed, configure and install sqlite3 package. 
     9564if test "$with_included_sqlite3" = "yes"; then 
     9565        OUR_INCLUDED_PACKAGES="$OUR_INCLUDED_PACKAGES sqlite-3.1.3" 
     9566        subdirs="$subdirs src/sqlite-3.1.3" 
     9567 
     9568        # Extract sqlite3 package 
     9569        (cd src/; gzip -d < sqlite-3.1.3.tar.gz | tar xf -) 
     9570        # patch sqlite3 with desired configure options 
     9571        patch -p0 < src/sqlite-3.1.3.diff 
     9572        # the new tclinstaller.tcl needs to have substitution occur 
     9573        mv src/sqlite-3.1.3/tclinstaller.tcl src/sqlite-3.1.3/tclinstaller.tcl.in 
     9574        SQLITE3_LIBS=`pwd`"/src/sqlite-3.1.3/.libs/libsqlite3.a" 
     9575        if test "x$prefix" = "xNONE" ; then 
     9576                SQLITE3_DIR=$ac_default_prefix/share/macports/Tcl/sqlite3 
     9577        else 
     9578                SQLITE3_DIR=$prefix/share/macports/Tcl/sqlite3 
     9579        fi 
     9580else 
     9581        SQLITE3_LIBS="-lsqlite3" 
     9582 
     9583        { echo "$as_me:$LINENO: checking for Tcl sqlite3 location" >&5 
     9584echo $ECHO_N "checking for Tcl sqlite3 location... $ECHO_C" >&6; } 
     9585if test "${mp_cv_sqlite3_dir+set}" = set; then 
     9586  echo $ECHO_N "(cached) $ECHO_C" >&6 
     9587else 
     9588  mp_cv_sqlite3_dir= 
     9589                test -r "${mp_sqlite3_dir}/pkgIndex.tcl" && mp_cv_sqlite3_dir=$mp_sqlite3_dir 
     9590 
     9591fi 
     9592{ echo "$as_me:$LINENO: result: $mp_cv_sqlite3_dir" >&5 
     9593echo "${ECHO_T}$mp_cv_sqlite3_dir" >&6; } 
     9594 
     9595        SQLITE3_DIR=$mp_cv_sqlite3_dir 
     9596fi 
     9597 
     9598 
     9599 
    94949600 
    94959601 
     
    1028610392PORTSDIR!$PORTSDIR$ac_delim 
    1028710393MPCONFIGDIR!$MPCONFIGDIR$ac_delim 
    10288 SQLITE3_DIR!$SQLITE3_DIR$ac_delim 
    1028910394DSTUSR!$DSTUSR$ac_delim 
    1029010395DSTGRP!$DSTGRP$ac_delim 
     
    1030010405X_LIBS!$X_LIBS$ac_delim 
    1030110406X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 
     10407TCL_VERSION!$TCL_VERSION$ac_delim 
    1030210408_ACEOF 
    1030310409 
     
    1034110447for ac_last_try in false false false false false :; do 
    1034210448  cat >conf$$subs.sed <<_ACEOF 
    10343 TCL_VERSION!$TCL_VERSION$ac_delim 
    1034410449TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 
    1034510450TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 
     
    1035710462LDFLAGS_LIBCURL!$LDFLAGS_LIBCURL$ac_delim 
    1035810463subdirs!$subdirs$ac_delim 
     10464SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim 
     10465SQLITE3_DIR!$SQLITE3_DIR$ac_delim 
    1035910466OUR_INCLUDED_PACKAGES!$OUR_INCLUDED_PACKAGES$ac_delim 
    1036010467INCLUDES!$INCLUDES$ac_delim 
     
    1037510482_ACEOF 
    1037610483 
    10377   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then 
     10484  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then 
    1037810485    break 
    1037910486  elif $ac_last_try; then 
  • branches/dp2mp-move/base/configure.ac

    r25352 r25783  
    5959MP_PATH_PORTSDIR([$PORTS_DIR_DEFAULT]) 
    6060MP_PATH_MPCONFIGDIR 
    61 MP_PATH_SQLITE3 
    6261 
    6362# Check for install ownership 
     
    136135AC_ARG_WITH( 
    137136                included-tclthread, 
    138                 [  --with-included-tclthread install included Thread package.], 
     137                AS_HELP_STRING([--with-included-tclthread], 
     138                        [install included Thread package.]), 
    139139                [with_included_tclthread=$withval], 
    140140                [with_included_tclthread="unspecified"]) 
     
    157157        patch -p0 < src/thread2.6.diff 
    158158fi 
     159 
     160## sqlite3 package. 
     161AC_ARG_WITH( 
     162                included-sqlite3, 
     163                AS_HELP_STRING([--with-included-sqlite3], 
     164                        [build using bundled sqlite3 package]), 
     165                [with_included_sqlite3=$withval], 
     166                [with_included_sqlite3="unspecified"]) 
     167 
     168# Check if sqlite3 package is already installed. 
     169if test "x$with_included_sqlite3" = "xunspecified" ; then 
     170        AC_CHECK_LIB([sqlite3],[sqlite3_open], 
     171                [with_included_sqlite3=no], 
     172                [with_included_sqlite3=yes]) 
     173fi 
     174 
     175AC_ARG_WITH( 
     176                tcl-sqlite3, 
     177                AS_HELP_STRING([--with-tcl-sqlite3=DIR], 
     178                        [directory for Tcl sqlite3 (default /usr/lib/sqlite3)]), 
     179                [mp_sqlite3_dir=$withval], 
     180                [mp_sqlite3_dir=/usr/lib/sqlite3]) 
     181 
     182# If sqlite3 package isn't installed, configure and install sqlite3 package. 
     183if test "$with_included_sqlite3" = "yes"; then 
     184        OUR_INCLUDED_PACKAGES="$OUR_INCLUDED_PACKAGES sqlite-3.1.3" 
     185        AC_CONFIG_SUBDIRS([src/sqlite-3.1.3]) 
     186        # Extract sqlite3 package 
     187        (cd src/; gzip -d < sqlite-3.1.3.tar.gz | tar xf -) 
     188        # patch sqlite3 with desired configure options 
     189        patch -p0 < src/sqlite-3.1.3.diff 
     190        # the new tclinstaller.tcl needs to have substitution occur 
     191        mv src/sqlite-3.1.3/tclinstaller.tcl src/sqlite-3.1.3/tclinstaller.tcl.in 
     192        SQLITE3_LIBS=`pwd`"/src/sqlite-3.1.3/.libs/libsqlite3.a" 
     193        if test "x$prefix" = "xNONE" ; then 
     194                SQLITE3_DIR=$ac_default_prefix/share/macports/Tcl/sqlite3 
     195        else 
     196                SQLITE3_DIR=$prefix/share/macports/Tcl/sqlite3 
     197        fi 
     198else 
     199        SQLITE3_LIBS="-lsqlite3" 
     200 
     201        AC_CACHE_CHECK([for Tcl sqlite3 location], [mp_cv_sqlite3_dir], 
     202                [mp_cv_sqlite3_dir= 
     203                test -r "${mp_sqlite3_dir}/pkgIndex.tcl" && mp_cv_sqlite3_dir=$mp_sqlite3_dir 
     204                ]) 
     205 
     206        SQLITE3_DIR=$mp_cv_sqlite3_dir 
     207fi 
     208 
     209AC_SUBST(SQLITE3_LIBS) 
     210AC_SUBST(SQLITE3_DIR) 
    159211 
    160212AC_SUBST(OUR_INCLUDED_PACKAGES) 
  • branches/dp2mp-move/base/src/Makefile.in

    r24454 r25783  
    1 TCLPKG=         macports1.0 port1.0 package1.0 pextlib1.0 registry1.0 \ 
    2                         darwintracelib1.0 @OUR_INCLUDED_PACKAGES@ 
     1TCLPKG=         @OUR_INCLUDED_PACKAGES@ macports1.0 port1.0 package1.0 \ 
     2                        pextlib1.0 registry1.0 darwintracelib1.0  
    33SUBDIR=         ${TCLPKG} port programs 
    44