Anomalous U(1), gaugino condensation and supergravity