Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/shared_lib: this should compile on Windows, and link together the libraries, acording to the libtool docu

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