Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/configure.ac @ 5278

Last change on this file since 5278 was 5278, checked in by bensch, 19 years ago

orxonox/trunk: cheap mac compatibility

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