Texturing a sphere

Hello, is it possible to change the texture coordinates for gluSphere? I have some textures that I would like to tile the sphere with but no matter what I do it just covers the sphere a single time. Since my sphere is pretty large the texture looks extremely pixillated. I know I could probably manually tile the texture in photoshop or something but I would really like to do it in code so I have the greatest flexibility.

Thanks for any help!

Nevermind, I just created my own sphere function instead of using gluSphere.