Abstract
This paper presents the necessary and sufficient optimality conditions for fractional variational problems involving the right and the left fractional integrals and fractional derivatives defined in the sense of Riemman-Liouville with a Lagrangian depending on the free end-points. To illustrate our approach, two examples are discussed in detail.