1# GLTT configure.in
2
3AC_INIT(FTBitmapFont.C)
4
5AM_INIT_AUTOMAKE(gltt, 2.5.2)
6
7dnl make $GLTT_DIR the default for the installation
8AC_PREFIX_DEFAULT(${GLTT_DIR:-/usr/local})
9
10dnl generate the config header
11AM_CONFIG_HEADER(config.h) dnl at the distribution this done
12
13dnl Checks for programs.
14dnl (breaks under newer autoconf - AC_CHECK_COMPILERS)
15AC_PROG_CPP
16AC_PROG_CXX
17AC_PROG_LIBTOOL
18AC_PROG_RANLIB
19AC_PROG_INSTALL
20
21dnl Checks for header files.
22AC_HEADER_STDC
23AC_CHECK_HEADERS(sys/time.h unistd.h)
24
25dnl Checks for typedefs, structures, and compiler characteristics.
26AC_C_CONST
27AC_HEADER_TIME
28
29dnl Checks for library functions.
30AC_CHECK_FUNCS(gettimeofday select usleep)
31
32AC_PATH_TTF
33
34dnl I need to check for libsocket before testing X
35AC_CHECK_LIB(socket, socket, [LIBSOCKET="-lsocket -lnsl"]) dnl for Solaris
36AC_SUBST(LIBSOCKET)
37AC_CHECK_LIB(ucb, killpg, [LIBUCB="-lucb"]) dnl for Solaris2.4
38AC_SUBST(LIBUCB)
39
40AC_PATH_X
41AC_PATH_XTRA
42
43GLTT_PATH_X
44
45dnl Checks for libraries.
46
47dnl Replace `main' with a function in -lm:
48AC_CHECK_LIB(m, sin)
49dnl Replace `main' with a function in -lX11:
50AC_CHECK_LIB(X11, XOpenDisplay)
51dnl Replace `main' with a function in -lXext:
52AC_CHECK_LIB(Xext, XShmCreateImage)
53dnl Replace `main' with a function in -lICE:
54AC_CHECK_LIB(ICE, IceSetIOErrorHandler)
55#dnl Replace `main' with a function in -lMesaGL:
56#dnl AC_CHECK_LIB(MesaGL, glEnd)
57#dnl Replace `main' with a function in -lMesaGLU:
58#dnl AC_CHECK_LIB(MesaGLU, gluNewNurbsRenderer)
59dnl Replace `main' with a function in -lSM:
60AC_CHECK_LIB(SM, SmsSetErrorHandler)
61dnl Replace `main' with a function in -lXt:
62AC_CHECK_LIB(Xt, XtDisplay)
63dnl Replace `main' with a function in -lXi:
64AC_CHECK_LIB(Xi, XOpenDevice)
65dnl Replace `main' with a function in -lXmu:
66AC_CHECK_LIB(Xmu, XmuSimpleErrorHandler,,,-lXt)
67
68dnl Replace `main' with a function in -lglut:
69dnl AC_CHECK_LIB(glut, glutInit,,,$GL_INCLUDES $GL_LDFLAGS -l${GL_LIBNAME}GL -l${GL_LIBNAME}GLU $LIBSOCKET)
70
71AC_HAVE_GL
72
73AC_PATH_GLUT
74
75dnl output files
76topdir=`pwd`
77AC_SUBST(topdir)
78
79AC_OUTPUT([
80Makefile
81gltt.spec
82])
83