anchor.diff:  LICENSE = "PHP"
   DEPENDS = "zlib libxml2 mysql libiconv"
   SRC_URI = "http://us2.php.net/distributions/php-${PV}.tar.bz2\
  -	       	file://autotools.patch;patch=1 \
  -		file://acinclude-xml2-config.patch;patch=1 \
   	 "
  +
   S = "${WORKDIR}/php-${PV}"
   PR = "r0"
   
  
positive.code: export LIBS=" -lpthread "
  
  CFLAGS += " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED"
  EXTRA_OECONF = "    --without-iconv \
   		    --enable-discard-path \
  		    --enable-sockets \
  
negative.code: 
  acpaths = ""
  
  do_configure () {
  	autoreconf
  ac_cv_php_xml2_config_path=${STAGING_BINDIR_CROSS}/xml2-config oe_runconf
  }
  
  
  do_configure_append() {
      find ${S} -type f | xargs sed -i 's:I/usr/include:I${STAGING_INCDIR}:g'
  }
  