The casting of the two lead roles became a complex, two-year endeavor. For the role of Rhett Butler, Selznick wanted Clark Gable from the start, but Gable was under contract to MGM, which never loaned him to other studios. Gary Cooper was considered, but Samuel Goldwyn—to whom Cooper was under contract—refused to loan him out. Warner offered a package of Bette Davis, Errol Flynn, and Olivia de Havilland for lead roles in return for the distribution rights. By this time, Selznick was determined to get Gable and in August 1938 he eventually struck a deal with his father-in-law, MGM chief Louis B. Mayer: MGM would provide Gable and $1,250,000 for half of the film's budget, and in return, Selznick would have to pay Gable's weekly salary; half the profits would go to MGM while Loew's, Inc—MGM's parent company—would release the film.