I posted too quick... I found answers to my math.h and custom library problem on another forum. That's fixed.

I still sure would like to learn what all these makefiles and configure files are, and what all that weird code means. Maybe I don't need to know.