Note the possible buffer overflow in window_title
[freeglut] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(Makefile.am)
3
4 AM_INIT_AUTOMAKE(freeglut,2.0.0)
5 AM_CONFIG_HEADER(config.h)
6
7 dnl Checks for programs.
8 AC_PROG_CC
9 AC_C_CONST
10 AC_EXEEXT
11 AC_LIBTOOL_DLOPEN
12 AM_PROG_LIBTOOL
13 AC_SUBST(LIBTOOL_DEPS)
14
15 dnl Checks for libraries.
16 AC_PATH_XTRA
17
18 AC_CHECK_LIB(Xxf86vm,XF86VidModeSwitchToMode,
19         LIBXXF86VM=-lXxf86vm,LIBXXF86VM=,$X_LIBS -lXext -lX11)
20 AC_SUBST(LIBXXF86VM)
21
22 dnl Checks for header files.
23 AC_STDC_HEADERS
24 AC_HAVE_HEADERS( GL/gl.h GL/glu.h GL/glx.h )
25
26 save_CFLAGS="$CFLAGS"
27 CFLAGS="$CFLAGS $X_CFLAGS"
28 AC_CHECK_HEADERS(X11/extensions/xf86vmode.h,,,[#include <X11/Xlib.h>])
29 CFLAGS="$save_CFLAGS"
30
31 dnl Checks for typedefs, structures, and compiler characteristics.
32
33 dnl Checks for library functions.
34
35 AC_CHECK_LIBM
36 AC_SUBST(LIBM)
37
38 AC_OUTPUT(\
39         Makefile \
40         doc/Makefile \
41         progs/Makefile \
42         progs/demos/Makefile \
43         progs/demos/Fractals/Makefile \
44         progs/demos/Fractals_random/Makefile \
45         progs/demos/Lorenz/Makefile \
46         progs/demos/One/Makefile \
47         src/Makefile \
48         include/Makefile \
49         include/GL/Makefile \
50         )