Composition of interstellar clouds in the disk and halo. 3: HD 149881