Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/qt_gui/configure.ac @ 7143

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

orxonox/qt_gui: compiling the QT-app

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