anchor.diff:  file://run-ptest \
   "
   
  -EXTRA_OECONF = "--with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \ 
  -		--without-odbc \
  -		--without-pgsql \
  -		--with-dbm=gdbm \
  -		--with-gdbm=${STAGING_DIR_HOST}${prefix} \
  -		--without-sqlite2 \
  -		--without-sqlite3 \
  -		--with-expat=${STAGING_DIR_HOST}${prefix}"
  +# base on debian/rules
  +EXTRA_OECONF = " \
  +    LTFLAGS=--no-silent \
  +    --with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \
  +    --enable-layout=Debian \
  +    --includedir=${includedir}/apr-1.0 \
  +    --with-expat=${STAGING_DIR_HOST}${prefix} \
  +"
  +CACHED_CONFIGUREVARS += "ac_cv_prog_AWK=mawk"
  +CACHED_CONFIGUREVARS += " \
  +    ${@base_conditional('DPKG_ARCH','i386',\
  +      'apr_lock_method=USE_PROC_PTHREAD_SERIALIZE',\
  +      'ac_cv_func_pthread_mutexattr_setpshared=no \
  +       ac_cv_func_sem_open=no'\
  +      ,d)}"
  +
  +PACKAGECONFIG ??= "db53 ldap mysql odbc openssl pgsql sqlite3"
  +PACKAGECONFIG[db53] = " \
  +    --with-dbm=db53 --with-berkeley-db=${STAGING_DIR_HOST}${prefix}, \
  +    --without-berkeley-db,db"
  +PACKAGECONFIG[gdbm] = " \
  +    --with-dbm=gdbm --with-gdbm=${STAGING_DIR_HOST}${prefix}, \
  +    --without-gdbm,gdbm"
  +PACKAGECONFIG[ldap] = " \
  +    --with-ldap=yes --with-ldap-include=${STAGING_INCDIR}/ --with-ldap-lib=${STAGING_LIBDIR}, \
  +    --with-ldap=no,libldap openldap"
  +PACKAGECONFIG[mysql] = " \
  +    --with-mysql=${STAGING_DIR_HOST}${prefix} MYSQL_CONFIG=${STAGING_BINDIR_CROSS}/mysql_config, \
  +    --without-mysql,mysql"
  +PACKAGECONFIG[odbc] = "--with-odbc=${STAGING_DIR_HOST}${prefix},--without-odbc,unixodbc"
  +PACKAGECONFIG[openssl] = " \
  +    --with-crypto --with-openssl=${STAGING_DIR_HOST}${prefix}, \
  +    --without-openssl,openssl"
  +PACKAGECONFIG[pgsql] = "--with-pgsql=${STAGING_DIR_HOST}${prefix},--without-pgsql,postgresql"
  +PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_DIR_HOST}${prefix},--without-sqlite3,sqlite3"
  +PACKAGECONFIG[sqlite2] = "--with-sqlite2=${STAGING_DIR_HOST}${prefix},--without-sqlite2,sqlite"
   
   inherit autotools-brokensep lib_package binconfig
   
   OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
   
  -do_configure_append() {
  -	if [ "${CLASSOVERRIDE}" = "class-target" ]; then
  -		cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk
  -	fi
  -}
  -
  -do_configure_prepend_class-native() {
  -	cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${S}/build/rules.mk
  +do_configure_prepend() {
  +	./buildconf --with-apr=$(apr-1-config --srcdir)
   }
   
   do_configure_append_class-native() {
  
positive.code: 	sed -i "s#LIBTOOL=\$(apr_builddir)#LIBTOOL=${STAGING_BINDIR_NATIVE}#" ${S}/build/rules.mk
  }
  
  FILES_${PN}     += "${libdir}/apr-util-1/apr_dbm_gdbm-1.so"
  FILES_${PN}-dev += "${libdir}/aprutil.exp ${libdir}/apr-util-1/apr_dbm_gdbm.so* ${libdir}/apr-util-1/apr_dbm_gdbm.la"
  FILES_${PN}-dbg += "${libdir}/apr-util-1/.debug/*"
  FILES_${PN}-staticdev += "${libdir}/apr-util-1/apr_dbm_gdbm.a"
  
  inherit ptest
  
  
negative.code: # base branch: daisy
  #
  
  SUMMARY = "Apache Portable Runtime Utility Library"
  DESCRIPTION = "APR is Apache's Portable Runtime Library, designed to be a support library \
  that provides a predictable and consistent interface to underlying \
  platform-specific implementations."
  HOMEPAGE = "http://apr.apache.org/"
  
  PR = "r1"
  
  inherit debian-package
  
  DEPENDS = "apr expat"
  
  BBCLASSEXTEND = "native"
  
  