We performed a combined X-ray and optical analysis of the two clusters A539 and A2319, based on ROSAT PSPC 0.4-2.4 keV images of the public archive and F band photometry from microdensitometric scans of Palomar 48 inch plates (Trèvese et al. 1992, A&AS, 94, 327). Assuming spherical symmetry and following the methods adopted in Cirimele, Nesci, and Trèvese (1997, ApJ, 475, 11 (CNT97)) we derived the radial distribution of gas and galaxy densities ρgas and ρgal and we have computed the morphological parameter βxo ≡ d ln ρgas(r)/d ln ρgal(r), introduced in CNT97. This allows to check the validity of the hydrostatic equilibrium condition, which reads, for an isotropic and uniform velocity distribution of r.m.s. dispersion σr. In the case of A539, adopting σr=629 km s−1 from Fadda et al. (1996, ApJ, 473, 670) and T=1.57 keV David et al. (1996, ApJ, 473, 692), we obtained marginally consistent values of βspec= 1.54±0.50 and βxo=1.08±0.11. In the case of A2319 we took into account the presence of the secondary component A2319B (Oegerle et al. 1995, AJ, 110, 32) and the temperature gradient (Markevitch M. 1996, ApJ, 465, L1). The resulting radial increase of βspec is consistent with that of (βxo(r) + d ln T(r)/d ln ρgal), suggesting that the hydrostatic equilibrium holds also in the presence of a temperature gradient. The radial distribution of the total binding mass, the mass in galaxies and intergalactic gas show that in both clusters the gas mass profile is steeper than galaxies and total masses consistently with our previous results (CNT97). Adopting a constant gas temperature, the relevant baryon fractions are larger than 20 %, adding new evidence to the “baryon catastrophe”. Taking into account the radial decrease of gas temperature, the baryon fraction is further increased. This implies that either Ωo < 0.25, or that large halos of dark matter surround galaxy clusters, as suggested by White & Fabian (1995, MNRAS, 273, 72).