dnl Process this file with autoconf to produce a configure script. AC_INIT(WP_2D.C) AM_INIT_AUTOMAKE(libWPCG, 0.9.3) dnl Checks for programs. AC_PROG_CC AC_PROG_CXX AC_PROG_RANLIB dnl Checks for libraries. AC_CHECK_LIB(GL, glPushMatrix, ,[AC_MSG_ERROR([libGL not found])],) AC_CHECK_LIB(GLU, gluLookAt, ,[AC_MSG_ERROR([libGLU not found])],) AC_CHECK_LIB(glut, glutInit, ,[AC_MSG_ERROR([libglut not found])],) AC_CHECK_LIB(m, abs, , [AC_MSG_ERROR([libm not found])],) #file OPC_TreeCollider.cpp of OPCODE-1.2 generates run-time errors when compiled with optimization -O2 when #using gcc >= 3.0. Therefore this check is made, so when gcc >= 3.0, file OPC_TreeCollider.cpp is compiled with -O1 AC_MSG_CHECKING(checking gcc version) AM_CONDITIONAL(GCCVERSION3, gcc -dumpversion | grep ^3. > /dev/null) AC_MSG_RESULT() dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(GL/gl.h GL/glu.h GL/glut.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST dnl Checks for library functions. AC_OUTPUT(Makefile OPCODE-1.2/Makefile)