Compiling blender on redhat 9

For some strange reason the blender compile can not find opengl on my system. glxiinfo tells me I have direct rendering, is there something I am missing?

checking for printf in -lstdc++… yes
checking for dlopen in -ldl… yes
checking for pthread_exit in -lpthread… yes
checking for png_get_header_version in -lpng… no
checking for jpeg_destroy in -ljpeg… no
checking for openpty in -lutil… yes
checking for SDL_Init in -lSDL… no
checking for openpty in -lutil… (cached) yes
checking for SMPEG_getinfo in -lsmpeg… no
checking for esd_close in -lesd… no
checking for ogg_stream_destroy in -logg… no
checking for vorbis_info_init in -lvorbis… no
checking for ov_open in -lvorbisfile… no
checking for alutInit in -lopenal… no
checking for XextFindDisplay in -lXext… no
checking for XOpenDisplay in -lX11… no
checking for glIsTexture in -lGL… no
configure: error: OpenGL not found on your system - cannot continue

More to the point, it can’t find any libraries on your system - have you installed the -devel packages for everything blender needs?