Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/shared_lib/configure.ac @ 7269

Last change on this file since 7269 was 7269, checked in by bensch, 18 years ago

creating and linking ltdl… hmm.. lets see if this works

File size: 20.0 KB
Line 
1
2##########################################################################
3#   orxonox - the future of 3D-vertical-scrollers                        #
4#                                                                        #
5#   Copyright (C) 2004 orx                                               #
6#                                                                        #
7#   This program is free software; you can redistribute it and/or modify #
8#   it under the terms of the GNU General Public License as published by #
9#   the Free Software Foundation; either version 2, or (at your option)  #
10#   any later version.                                                   #
11#                                                                        #
12#   ### File Specific:                                                   #
13#   main-programmer: Benjamin Grauer                                     #
14#   co-programmer: ...                                                   #
15#                                                                        #
16#   This is the main configuration File of autoconf.                     #
17#   Please edit this file only, if you exactly know what you are doing.  #
18#   It is quite fragile, and compiling orxonox on different Platforms    #
19#   is only guarantied, if build with the right config.                  #
20#                                                                        #
21#   You might also have a look at the acinclude.m4, where many macros    #
22#   for this configuration files are stored                              #
23#                                                                        #
24#   be sure to visit us at http://www.orxonox.net                        #
25##########################################################################
26
27#########################
28## AUTOCONF INIT PHASE ##
29#########################
30AC_PREREQ(2.59)
31AC_INIT([orxonox], [0.3.4_alpha], [orxonox-dev at mail.datacore.ch])
32
33## Detect the canonical host and target build environment.
34AC_CANONICAL_BUILD
35AC_CANONICAL_HOST
36AC_CANONICAL_TARGET
37
38AM_INIT_AUTOMAKE
39
40AC_CONFIG_SRCDIR([./src])
41AC_CONFIG_HEADER([config.h])
42
43#########################
44## Checks for programs ##
45#########################
46AC_PROG_CXX
47
48AC_LIBLTDL_CONVENIENCE
49AC_LIBTOOL_DLOPEN
50AC_PROG_LIBTOOL
51AC_HEADER_STDC
52AC_CONFIG_SUBDIRS(libltdl)
53
54## THIS IS OUR DEFAULT-DATA-DIRECTORY
55
56##################################
57## CHECKING  OPTIONAL ARGUMENTS ##
58##################################
59#----------------#
60# Data-Directory #
61#----------------#
62DATA_DIR=$datadir
63if test $DATA_DIR = \$\{prefix\}/share ; then
64        echo "not given"
65        DATA_DIR=/usr/share
66else
67        echo "given: $DATA_DIR"
68fi
69AC_DEFINE_UNQUOTED([DATADIR], ["$DATA_DIR"],
70                   [Define to the read-only architecture-independent
71                    data directory.])
72
73#-----------------#
74# shared-lib-path #
75#-----------------#
76SHARED_LIB_PATH=no
77AC_MSG_CHECKING([shared lib path])
78AC_ARG_WITH([shared-lib-path],
79        AS_HELP_STRING(--with-shared-lib-path,Tells the executable, where to look for the shared libraries.),
80         SHARED_LIB_PATH=$withval)
81if test x$SHARED_LIB_PATH != xno; then
82        echo "set to $SHARED_LIB_PATH"
83else
84        echo "no"
85fi
86
87
88#-----------------#
89# DEBUG-statement #
90#-----------------#
91DEBUG=no
92AC_MSG_CHECKING([if DEBUG-mode should be enabled])
93AC_ARG_ENABLE([debug],
94        AS_HELP_STRING(--enable-debug,compiles in debug mode. Lots of debug info about the game.),
95         DEBUG=$enableval)
96
97if test x$DEBUG = xno; then
98        echo "no"
99        echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed."
100        DEBUG=4
101elif test x$DEBUG = xyes; then
102        echo "yes"
103        echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!."
104        DEBUG=4
105else
106  if test x$DEBUG = x0 || test x$DEBUG = x1 || test x$DEBUG = x2 || test x$DEBUG = x3 || test x$DEBUG = x4 || test x$DEBUG = x5 ; then
107        echo "yes: setting debuglevel to to $DEBUG"
108  else
109        echo "yes: invalid Value for Debug ($DEBUG). setting to 4(DEBUG)"
110        DEBUG=4
111  fi
112fi
113AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are])
114AC_SUBST(DEBUG)
115
116#---------------#
117# Modular Debug #
118#---------------#
119MODULAR_DEBUG=yes
120AC_MSG_CHECKING([if Modular-DEBUG-mode should be ebabled])
121AC_ARG_ENABLE([modular-debug],
122        AS_HELP_STRING(--disable-modular-debug,compiles in modular-debug mode, that logs differently on the many modules of orxonox.),
123         MODULAR_DEBUG=$enableval)
124
125if test x$MODULAR_DEBUG = xno; then
126        echo "no"
127elif test x$MODULAR_DEBUG = xyes; then
128        echo "yes"
129        AC_DEFINE_UNQUOTED(MODULAR_DEBUG, 1, [if Modular-DUBUG mode is enabled])
130fi
131
132#--------------#
133# GTK-disabled #
134#--------------#
135AC_MSG_CHECKING([if gtk should be enabled])
136AC_ARG_ENABLE([gtk],
137        AS_HELP_STRING(--disable-gtk,Prevents GTK from being loaded), [def_gtk=no], [def_gtk=yes])
138if test x$def_gtk = xyes; then
139  echo "yes"
140fi
141if test x$def_gtk = xno; then
142  echo "no"
143fi
144
145#------------------#
146# libCurl-disabled #
147#------------------#
148AC_MSG_CHECKING([if libcURL should be enabled])
149AC_ARG_ENABLE([curl],
150        AS_HELP_STRING(--disable-curl,Prevents libcURL from being loaded), [def_curl=no], [def_curl=yes])
151if test x$def_curl = xyes; then
152  echo "yes"
153fi
154if test x$def_curl = xno; then
155  echo "no"
156fi
157
158#-------------------#
159# SubProject-enable #
160#-------------------#
161def_sub_projects=no
162AC_MSG_CHECKING([if the SubProjects should be built])
163AC_ARG_WITH([sub-projects],
164        AS_HELP_STRING(--with-sub-projects,also builds the subProjects while make from srcdir), [def_sub_projects=yes])
165if test x$def_sub_projects = xyes; then
166  echo "yes"
167fi
168if test x$def_sub_projects = xno; then
169  echo "no"
170fi
171AM_CONDITIONAL(SUB_PROJECTS, test x$def_sub_projects = xyes)
172
173#-------------------#
174# Profiling Enabled #
175#-------------------#
176def_profiling=no
177AC_MSG_CHECKING([if Profiling should be enabled])
178AC_ARG_ENABLE([profile],
179        AS_HELP_STRING(--enable-profile,builds orxonox with profiling support), [def_profiling=yes])
180if test x$def_profiling = xyes; then
181  echo "yes"
182  CXXFLAGS="$CXXFLAGS -pg"
183fi
184if test x$def_profiling = xno; then
185  echo "no"
186fi
187
188#----------------#
189# efence Enabled #
190#----------------#
191def_efence=no
192AC_MSG_CHECKING([if efence should be enabled])
193AC_ARG_ENABLE([efence],
194        AS_HELP_STRING(--enable-efence,builds orxonox with efence support), [def_efence=yes])
195if test x$def_efence = xyes; then
196  echo "yes"
197fi
198if test x$def_efence = xno; then
199  echo "no"
200fi
201
202#----------------------#
203# Documentation-enable #
204#----------------------#
205def_documentation=no
206AC_MSG_CHECKING([if the Documentation should be build by default])
207AC_ARG_ENABLE([documentation],
208        AS_HELP_STRING(--enable-documentation,also builds the sDocumentation while make from srcdir), [def_documentation=yes])
209if test x$def_documentation = xyes; then
210  echo "yes"
211fi
212if test x$def_documentation = xno; then
213  echo "no"
214fi
215AM_CONDITIONAL(DOCUMENTATION, test x$def_documentation = xyes)
216
217
218
219#---------------------------#
220# WITH TARDIS (convenience) #
221#---------------------------#
222def_tardis=no
223GTKPATH=""
224AC_MSG_CHECKING([convenience flag for working at the taris in the ETH zurich])
225AC_ARG_WITH([tardis],
226        AS_HELP_STRING(--with-tardis,sets all the necesary environment flags for linux-TARDIS boxes at the ETH Zurich), [def_tardis=yes])
227if test x$def_tardis = xyes; then
228  ARCH=i686-debian-linux3.1
229   ## GAMELIBS
230  PREFIX=/usr/pack/gamelibs-1.0-to
231  CPPFLAGS="${CPPFLAGS} -I${PREFIX}/include"
232  LDFLAGS="${LDFLAGS} -L$PREFIX/${ARCH}/lib -Wl,-rpath -Wl,${PREFIX}/${ARCH}/lib"
233  ## GTK
234  GTKPREFIX=/usr/pack/gtk-2.8.3-mo
235  GTKPATH=${GTKPREFIX}/${ARCH}/bin
236  CPPFLAGS="${CPPFLAGS} -I${GTKPREFIX}/include"
237  LDFLAGS="${LDFLAGS} -L${GTKPREFIX}/${ARCH}/lib -Wl,-rpath -Wl,${GTKPREFIX}/${ARCH}/lib"
238  echo "yes"
239fi
240if test x$def_tardis = xno; then
241  echo "no"
242fi
243
244#######################
245## PROGRAMM CHECKING ##
246## 3. party Programs ##
247#######################
248
249#----------------------#
250# checking for Doxygen #
251#----------------------#
252AC_PATH_PROG(DOXYGEN, doxygen)
253AM_CONDITIONAL(DOXYGEN, test $DOXYGEN)
254
255#--------------------#
256# checking for gprof #
257#--------------------#
258AC_PATH_PROG(GPROF, gprof)
259
260#-------------------------#
261# checking for pkg-config #
262#-------------------------#
263if test x$def_gtk = xyes; then
264 if test x${GTKPATH} != x; then
265   AC_PATH_PROG([PKG_CONFIG], [pkg-config],[], $GTKPATH )
266 else
267   AC_PATH_PROG(PKG_CONFIG, pkg-config )
268 fi
269fi
270
271
272#########################
273## CHECKING FOR SYSTEM ##
274#########################
275## here the system is checked, and openGL is included
276## also checking for SDL on differen Systems
277
278CPPFLAGS="$CPPFLAGS -g"
279
280
281AC_MSG_CHECKING([for System])
282## checking for openGL-environment and other sys-specific parameters
283case "$target" in
284
285###########
286#---------#
287# WINDOWS #
288#---------#
289###########
290  *-*-mingw32*)
291echo "mingw-WINDOWS detected"
292
293CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS"
294
295    mingw="yes"
296    MSBITFIELDS="-mms-bitfields"
297    MWINDOWS="-mwindows"
298#--------#
299# MIN-GW #
300#--------#
301# checking for mingw32
302    AC_CHECK_LIB([mingw32], [main], FOUND_mingw32=yes)
303    if test x$FOUND_mingw32 = xyes; then
304        LIBS="$LIBS -lmingw32"
305    fi
306
307#---------------#
308# open-GL (win) #
309#---------------#
310# checking gl header
311   AC_CHECK_HEADERS(GL/gl.h ,,
312      [AC_MSG_ERROR([cannot find opengl headers])])
313#   checking for Windows openGl library
314    AC_CHECK_LIB([opengl32], [main], [FOUND_GL=yes; LIBS="$LIBS -lopengl32"])
315    if test x$FOUND_GL != xyes ; then
316         echo "------------------"
317         echo "opengl not found."
318         echo "please install the opengl package which can be found at http://www.opengl.org"
319         echo "------------------"
320         exit -1
321    fi
322
323# cheking for GLU-header
324    AC_CHECK_HEADERS([GL/glu.h] ,,
325      [AC_MSG_ERROR([cannot find opengl headers]) ])
326
327# checking for libGLU
328    AC_CHECK_LIB([glu32], [main], [FOUND_GLU=yes; LIBS="$LIBS -lGLU32"])
329    if test x$FOUND_GLU != xyes ; then
330         echo "------------------"
331         echo "GLU library not found."
332         echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"
333         echo "------------------"
334         exit -1
335    fi
336
337# checking glew header
338   AC_CHECK_HEADERS(GL/glew.h ,,
339      [AC_MSG_ERROR([cannot find opengl extension wrangler headers]) ])
340#   checking for Windows glew library
341    AC_CHECK_LIB([glew32], [main], [FOUND_GLEW=yes; LIBS="$LIBS -lglew32"])
342    if test x$FOUND_GLEW != xyes ; then
343         echo "------------------"
344         echo "opengl extension wrangler not found."
345         echo "please install the glew package which can be found at http://glew.sourceforge.net"
346         echo "------------------"
347         exit -1
348    fi
349
350#--------#
351# openAL #
352#--------#
353AX_CHECK_REQUIRED_HEADER_LIB([AL/al.h], [OpenAL32], [main],,, [http://www.openal.org])
354
355#-----------#
356# SDL(win) #
357#-----------#
358# checking for SDL-headers
359    AC_CHECK_HEADERS([SDL/SDL.h] ,,
360      [AC_MSG_ERROR([cannot find SDL headers]) ])
361
362#checking for libSDL
363    AC_CHECK_LIB([sdlmain], [main], [FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain"])
364    if test x$FOUND_sdlmain != xyes ; then
365        echo "------------------"
366        echo "SDL library not found."
367        echo "please install the SDL library, which can be found at http://www.libsdl.org"
368        echo "------------------"
369        exit 1
370    fi
371    AC_CHECK_LIB([sdl], [main], [FOUND_SDL=yes; LIBS="$LIBS -lsdl"])
372    if test x$FOUND_SDL != xyes ; then
373        echo "------------------"
374        echo "SDL library not found."
375        echo "please install the SDL library, which can be found at http://www.libsdl.org"
376        echo "------------------"
377        exit -1
378    fi
379
380  ;;
381
382#########
383#-------#
384# LINUX #
385#-------#
386#########
387 *-*-linux*)
388echo "Linux detected"
389
390 Linux="yes"
391
392##CPPFLAGS="-I/usr/include $CPPFLAGS"
393##LDFLAGS="-L/usr/lib $LDFLAGS"
394if test x$SHARED_LIB_PATH != xno; then
395        echo "setting new LDFLAGS with $SHARED_LIB_PATH"
396        LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS"
397fi
398
399#--------#
400# openGL #
401#--------#
402AX_CHECK_REQUIRED_HEADER_LIB([GL/gl.h], [GL], [main],,, [http://www.opengl.org])
403AX_CHECK_REQUIRED_HEADER_LIB([GL/glu.h], [GLU], [main],,, [http://www.opengl.org])
404AX_CHECK_REQUIRED_HEADER_LIB([GL/glew.h], [GLEW], [main],,, [http://glew.sourceforge.net])
405
406#--------#
407# openAL #
408#--------#
409AX_CHECK_REQUIRED_HEADER_LIB([AL/al.h], [openal], [main],,, [http://www.openal.org])
410
411#-----#
412# SDL #
413#-----#
414# checking for SDL
415  AC_MSG_CHECKING([for SDL-version])
416  SDL_VERSION=`sdl-config --version`
417  echo $SDL_VERSION
418   CPPFLAGS="$CPPFLAGS `sdl-config --cflags`"
419
420  AX_CHECK_REQUIRED_HEADER_LIB([SDL.h SDL/SDL.h], [SDL], [main],,, [http://www.libsdl.org])
421
422    ;;
423
424#############
425#-----------#
426# MAC -OS X #
427#-----------#
428#############
429 *darwin*)
430 echo "OS X detected"
431
432 osX="yes"
433
434 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS"
435 LDFLAGS="$LDFLAGS -L/sw/lib"
436# checking gl header
437   AC_CHECK_HEADERS([OpenGL/gl.h] ,,
438      [AC_MSG_ERROR([cannot find opengl headers]) ])
439# cheking for GLU-header
440    AC_CHECK_HEADERS([OpenGL/glu.h] ,,
441      [AC_MSG_ERROR([cannot find opengl headers]) ])
442
443   LIBS="$LIBS -framework OpenGL"
444
445
446
447# checking for GLEW-headers
448   AC_CHECK_HEADERS([GL/glew.h] ,,
449      [AC_MSG_ERROR([cannot find glew headers]) ])
450# checking for GLEW-lib
451  AC_CHECK_LIB([GLEW], [main], [FOUND_GLEW=yes; LIBS="$LIBS -lGLEW"])
452   if test x$FOUND_GLEW != xyes ; then
453         echo "------------------"
454         echo "glew not found."
455         echo "please install the glew package which can be found at http://glew.sourceforge.net"
456         echo "------------------"
457         exit -1
458   fi
459
460
461   AC_CHECK_HEADERS([OpenAL/al.h] ,,
462      [AC_MSG_ERROR([cannot find opengl headers]) ])
463  HAVE_OPENAL=yes
464  LIBS="$LIBS -framework OpenAL"
465
466
467## SDL-check
468       SDL_CFLAGS=`sdl-config --cflags`
469       SDL_LIBS=`sdl-config --libs`
470       CXXFL\AGS="$CXXFLAGS $SDL_CFLAGS"
471       LIBS="$LIBS $SDL_LIBS"
472   AC_CHECK_HEADERS([SDL/SDL.h] ,,
473      [AC_MSG_ERROR([cannot find SDL headers]) ])
474   HAVE_SDL=yes
475#   LIBS="$LIBS -framework SDL"
476
477# checking for SDL-headers
478#    AC_CHECK_HEADERS(SDL/SDL.h ,,
479#      [AC_MSG_ERROR([cannot find SDL headers]) ])
480
481## checking for SDL
482#    SDL_VERSION=1.2.7
483#    AM_PATH_SDL($SDL_VERSION,
484#      :,
485#      AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
486#      )
487
488
489    ;;
490
491  *)
492    ;;
493esac
494
495AC_SUBST(MSBITFIELDS)
496
497###################################
498## CHECKING FOR HEADERS AND LIBS ##
499###################################
500
501
502AX_CHECK_REQUIRED_HEADER_LIB([ltdl.h], [ltdl], [main],,, [http://www.gnu.org/software/libtool])
503
504#---------#
505# SDL_ttf #
506#---------#
507AX_CHECK_REQUIRED_HEADER_LIB([SDL_ttf.h SDL/SDL_ttf.h], [SDL_ttf], [TTF_OpenFont],,, [http://www.libsdl.org/projects/SDL_ttf])
508#-----------#
509# SDL_Image #
510#-----------#
511AX_CHECK_REQUIRED_HEADER_LIB([SDL_image.h SDL/SDL_image.h], [SDL_image], [main],,, [http://www.libsdl.org/projects/SDL_image])
512#---------#
513# SDL_Net #
514#---------#
515AX_CHECK_REQUIRED_HEADER_LIB([SDL_net.h SDL/SDL_net.h], [SDL_net], [main],,, [http://www.libsdl.org/projects/SDL_net])
516
517#--------#
518# FFmpeg #
519#--------#
520# checking for FFmpeg-headers
521  AC_CHECK_HEADERS([avformat.h] ,,
522      [AC_CHECK_HEADERS([ffmpeg/avformat.h] ,,AC_MSG_ERROR([cannot find FFmpeg header.])]))
523# checking for ffmpeg-lib
524  AC_CHECK_LIB([avformat], [main], [FOUND_avformat=yes; LIBS="$LIBS -lavformat"])
525     if test x$FOUND_avformat != xyes ; then
526        echo "------------------"
527        echo "avformat library not found."
528        echo "please install the FFmpeg library, which can be found at http://ffmpeg.sourceforge.net"
529        echo "------------------"
530        exit -1
531     fi
532  AC_CHECK_HEADERS([avcodec.h] ,,
533      [AC_CHECK_HEADERS([ffmpeg/avcodec.h] ,,AC_MSG_ERROR([cannot find FFmpeg header.])]))
534  AC_CHECK_LIB([avcodec], [main], [FOUND_avcodec=yes; LIBS="$LIBS -lavcodec"])
535     if test x$FOUND_avcodec != xyes ; then
536        echo "------------------"
537        echo "avcodec library not found."
538        echo "please install the FFmpeg library, which can be found at http://ffmpeg.sourceforge.net"
539        echo "------------------"
540        exit -1
541     fi
542  AC_CHECK_LIB([avutil], [main], [FOUND_avutil=yes; LIBS="$LIBS -lavutil"])
543  AC_CHECK_LIB([xvid], [main], [FOUND_xvid=yes; LIBS="$LIBS -lxvid"])
544  AC_CHECK_LIB([gcj], [main], [FOUND_gcj=yes; LIBS="$LIBS -lgcj"])
545  AC_CHECK_LIB([theora], [main], [FOUND_theora=yes; LIBS="$LIBS -ltheora"])
546  AC_CHECK_LIB([dts], [main], [FOUND_dts=yes; LIBS="$LIBS -ldts"])
547  AC_CHECK_LIB([gsm], [main], [FOUND_gsm=yes; LIBS="$LIBS -lgsm"])
548  AC_CHECK_LIB([dc1394_control], [main], [FOUND_dc1394_control=yes; LIBS="$LIBS -ldc1394_control"])
549  AC_CHECK_LIB([vorbisenc], [main], [FOUND_vorbisenc=yes; LIBS="$LIBS -lvorbisenc"])
550
551
552#--------#
553# vorbis #
554#--------#
555AX_CHECK_REQUIRED_HEADER_LIB([vorbis/vorbisfile.h], [vorbisfile], [main],,, [http://www.xiph.org/ogg/vorbis/index.html])
556AX_CHECK_REQUIRED_HEADER_LIB([vorbis/codec.h], [vorbis], [main],,, [http://www.xiph.org/ogg/vorbis/index.html])
557
558#-----#
559# ogg #
560#-----#
561AX_CHECK_REQUIRED_HEADER_LIB([ogg/ogg.h], [ogg], [main],,, [http://www.xiph.org/ogg/vorbis/index.html])
562
563
564#---------#
565# libcURL #
566#---------#
567AX_CHECK_HEADER_LIB([curl/curl.h], [curl], [main], [
568 have_curl=yes
569  CURL_LIBS=`curl-config --libs`
570  CURLCFLAGS=`curl-config --cflags`
571  AC_DEFINE_UNQUOTED(HAVE_CURL, 1, [if we have CURL]) ]
572  ,, [http://curl.haxx.se/])
573
574AC_SUBST(CURL_LIBS)
575AC_SUBST(CURL_CFLAGS)
576AM_CONDITIONAL(HAVE_CURL, test "x$have_curl" = "xyes")
577
578#--------#
579# efence #
580#--------#
581if test x$def_efence = xyes ; then
582  AC_CHECK_LIB([efence], [main], [FOUND_efence=yes; LIBS="$LIBS -lefence"])
583   if test x$FOUND_efence != xyes ; then
584     echo "efence was requested, but is not installed!! going on"
585   fi
586
587fi
588
589#-----#
590# GTK #
591#-----#
592if test x$def_gtk = xyes; then
593#PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no)
594        AC_MSG_CHECKING([for gtk2.0])
595        if `$PKG_CONFIG --exists gtk+-2.0`; then
596                echo "yes"
597                have_gtk2=yes
598                GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
599                GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
600                AC_DEFINE_UNQUOTED(HAVE_GTK2, 1, [if we have GTK2])
601                if test $DEBUG -ge 3; then
602                 echo "cflags: $GTK2_CFLAGS"
603                 echo "libs: $GTK2_LIBS"
604                fi
605        else
606                echo "no"
607        fi
608
609fi
610AC_SUBST(GTK2_LIBS)
611AC_SUBST(GTK2_CFLAGS)
612AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes)
613
614
615# FIXME: Replace `main' with a function in `-lm':
616 AC_CHECK_LIB([m], [main])
617
618
619# Checks for header files.
620AC_HEADER_STDC
621AC_CHECK_HEADERS([stdlib.h string.h])
622
623# Checks for typedefs, structures, and compiler characteristics.
624AC_HEADER_STDBOOL
625
626# Checks for library functions.
627AC_FUNC_MALLOC
628AC_CHECK_FUNCS([bzero sqrt])
629
630######################
631## OUTPUT CONFIGURE ##
632######################
633AC_CONFIG_FILES([Makefile
634                 src/Makefile
635                 src/lib/Makefile
636                 src/lib/math/Makefile
637                 src/lib/graphics/Makefile
638                 src/lib/graphics/importer/Makefile
639                 src/lib/graphics/spatial_separation/Makefile
640                 src/lib/sound/Makefile
641                 src/lib/event/Makefile
642                 src/lib/physics/Makefile
643                 src/lib/particles/Makefile
644                 src/lib/collision_detection/Makefile
645                 src/lib/network/Makefile
646                 src/lib/shell/Makefile
647                 src/lib/gui/Makefile
648                 src/lib/gui/gtk_gui/Makefile
649                 src/lib/gui/gl_gui/Makefile
650                 src/lib/parser/Makefile
651                 src/lib/parser/tinyxml/Makefile
652                 src/lib/parser/ini_parser/Makefile
653                 src/lib/parser/cmdline_parser/Makefile
654                 src/lib/parser/preferences/Makefile
655                 src/util/Makefile
656                 src/world_entities/Makefile
657                 src/subprojects/Makefile
658                 src/subprojects/testmain/Makefile
659                 src/subprojects/importer/Makefile
660                 src/subprojects/particles/Makefile
661                 src/subprojects/collision_detection/Makefile
662                 src/subprojects/network/Makefile
663                 ])
664AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.