Questions about autoconf...
Not sure if this is the appropriate forum to post this, but maybe someone here knows the answer....
I'm starting to get into learning how to use the GNU build tools like automake, autoconf, etc. and I'm running into a little problem.
My configure.in file contains these lines:
AC_PATH_XTRA
AC_CHECK_LIB(X11, XOpenDisplay)
AC_CHECK_LIB(GL, glBegin)
AC_CHECK_LIB(GLU, gluLookAt)
I get the following results:
checking for XOpenDisplay in -lX11... no
checking for glBegin in -lGL... yes
checking for gluLookAt in -lGLU... no
I belive that it finds the GL library and not the others because there is a symbolic link in /usr/lib/ to the GL library in /usr/X11R6/lib, but not for the others.
Now... when I put the following line after AC_PATH_EXTRA:
CFLAGS="$CFLAGS -I$x_includes -L$x_libraries"
Then I get yes for both the X11 and GLU libraries. This seems to be sort of an ugly hack to get it to work to me, though. Plus, when I try and do the same thing in another project in which I'm trying to add OpenGL support, the CFLAGS trick isn't working for me.
Any thoughts, or suggestions on where I should go to try and find a solution to my problem? I'd really like to try and get a good understanding of the GNU build tools.
|