Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 83 lines (62 sloc) 2.77 kb
a96ec4d9 »
2009-09-11 Initial revision of Gource.
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.61)
5
875ad9b6 »
2013-05-14 Full screen mode now uses desktop resolution by default.
6 AC_INIT(Gource, 0.41, [acaudwell@gmail.com])
90b3dfcc »
2014-03-19 Moved build system files into build-aux dir.
7 AC_CONFIG_AUX_DIR([build-aux])
a96ec4d9 »
2009-09-11 Initial revision of Gource.
8 AC_CONFIG_SRCDIR([src/main.h])
d88aa92c »
2010-01-18 Transform the build system from custom to proper autotools.
9 AM_INIT_AUTOMAKE([dist-bzip2 foreign subdir-objects])
10
cd9cc0cf »
2009-11-10 Default with_x to 'no' on Darwin to avoid AX_CHECK_GL
11 AC_CANONICAL_HOST
12
a96ec4d9 »
2009-09-11 Initial revision of Gource.
13 # Checks for programs.
14 AC_PROG_CXX
d88aa92c »
2010-01-18 Transform the build system from custom to proper autotools.
15 AC_LANG(C++)
a96ec4d9 »
2009-09-11 Initial revision of Gource.
16
efd434a5 »
2013-03-03 build: use a single call to AC_CHECK_FUNCS.
17 AC_CHECK_FUNCS([timegm unsetenv])
1e12d583 »
2011-09-16 Check for unsetenv.
18
cd9cc0cf »
2009-11-10 Default with_x to 'no' on Darwin to avoid AX_CHECK_GL
19 #Disable X11 on Macs unless required
20 AS_IF([test "$with_x" != yes], [
21 case "$host_os" in
22 darwin*)
23 with_x="no"
e7dbdd7b »
2013-12-02 Fixed building with SDL2 on Mavericks by linking Core Foundation.
24 LIBS="$LIBS -framework CoreFoundation"
cd9cc0cf »
2009-11-10 Default with_x to 'no' on Darwin to avoid AX_CHECK_GL
25 ;;
26 esac
27 ], [])
28
b4ea48dd »
2009-10-02 Check for JPEG and PNG libraries.
29 #GL
3a3504da »
2010-05-05 Link against GL directly instead of indirectly via GLU.
30 AX_CHECK_GL
5cf2b5c1 »
2009-10-30 Revert "AX_CHECK_GLU is possibly not needed since FTGL will link"
31 AX_CHECK_GLU
3a3504da »
2010-05-05 Link against GL directly instead of indirectly via GLU.
32 CXXFLAGS="$CXXFLAGS $GL_CFLAGS $GLU_CFLAGS"
33 CPPFLAGS="$CPPFLAGS $GL_CFLAGS $GLU_CFLAGS"
34 LIBS="$LIBS $GL_LIBS $GLU_LIBS"
ffa11e78 »
2009-09-30 Using sdl.m4 to get SDL configuration.
35
639c3f29 »
2013-03-03 build: use pkg-config to find dependencies.
36 PKG_CHECK_MODULES([FT2], [freetype2 >= 9.0.3])
37 PKG_CHECK_MODULES([PCRE], [libpcre])
38 PKG_CHECK_MODULES([GLEW], [glew])
a96ec4d9 »
2009-09-11 Initial revision of Gource.
39
36cfcd9b »
2013-08-02 Multi-monitor support using SDL 2.0 when available.
40 PKG_CHECK_MODULES([SDL2], [sdl2 SDL2_image], [have_sdl2=yes], [have_sdl2=no])
41
42 # use SDL 2 if available, otherwise use SDL 1.2
43 if test "x$have_sdl2" = xno; then
279bd24a »
2014-02-12 Deprecated SDL 1.2 and silenced GLM header warning messages.
44 AC_MSG_WARN([SDL 2.0 libraries not found. Trying SDL 1.2. Please note SDL 1.2 support is deprecated])
36cfcd9b »
2013-08-02 Multi-monitor support using SDL 2.0 when available.
45 PKG_CHECK_MODULES([SDL], [sdl >= 1.2.10 SDL_image])
46 fi
47
96f49835 »
2014-03-16 Check for libpng.
48 PKG_CHECK_MODULES([PNG], [libpng >= 1.2])
49
50 CPPFLAGS="${CPPFLAGS} ${FT2_CFLAGS} ${PCRE_CFLAGS} ${GLEW_CFLAGS} ${SDL2_CFLAGS} ${SDL_CFLAGS} ${PNG_CFLAGS}"
51 LIBS="${LIBS} ${FT2_LIBS} ${PCRE_LIBS} ${GLEW_LIBS} ${SDL2_LIBS} ${SDL_LIBS} ${PNG_LIBS}"
a96ec4d9 »
2009-09-11 Initial revision of Gource.
52
639c3f29 »
2013-03-03 build: use pkg-config to find dependencies.
53 AC_CHECK_FUNCS([IMG_LoadPNG_RW], , AC_MSG_ERROR([SDL_image with PNG support required. Please see INSTALL]))
54 AC_CHECK_FUNCS([IMG_LoadJPG_RW], , AC_MSG_ERROR([SDL_image with JPEG support required. Please see INSTALL]))
b4ea48dd »
2009-10-02 Check for JPEG and PNG libraries.
55
f1e6c66e »
2012-01-01 Put Boost checks back where they were as moving them didn't help.
56 #BOOST
57 AX_BOOST_BASE([1.46], , AC_MSG_ERROR(Boost Filesystem >= 1.46 is required. Please see INSTALL))
58 AX_BOOST_SYSTEM
59 AX_BOOST_FILESYSTEM
60
61 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
62 LIBS="$LIBS $BOOST_SYSTEM_LIB $BOOST_FILESYSTEM_LIB"
63
cbfebfd0 »
2012-01-27 Tweaks to configure error messages.
64 #GLM
65 AC_CHECK_HEADER([glm/glm.hpp],, AC_MSG_ERROR(GLM headers are required. Please see INSTALL))
66
ffa11e78 »
2009-09-30 Using sdl.m4 to get SDL configuration.
67 #see if ttf-font-dir option is enabled
bbf6850f »
2010-02-01 Refer to font package rather than the specific font file
68 AC_ARG_ENABLE(ttf-font-dir,[AS_HELP_STRING([--enable-ttf-font-dir=DIR],[directory containing GNU FreeFont TTF fonts])],[gourcefontdir="$enableval"],[gourcefontdir=""])
d88aa92c »
2010-01-18 Transform the build system from custom to proper autotools.
69 AM_CONDITIONAL([FONTDIR], [test "x$gourcefontdir" != "x"])
ffa11e78 »
2009-09-30 Using sdl.m4 to get SDL configuration.
70 AC_SUBST(gourcefontdir)
71
e539326d »
2011-02-17 Added --with-tinyxml option to configure (use the system TinyXML libr…
72
73 #see if building against system TinyXML library
74 use_tinyxml_system_library=no
75 AC_ARG_WITH(tinyxml, AC_HELP_STRING([--with-tinyxml], [Use system installed TinyXML library]), use_tinyxml_system_library=$withval)
76 if test "x$use_tinyxml_system_library" = "xyes"; then
77 AC_HAVE_LIBRARY(tinyxml,, AC_MSG_ERROR([TinyXML library was requested but not found]))
78 fi
79 AM_CONDITIONAL(USE_BUNDLED_TINYXML, test "x$use_tinyxml_system_library" != "xyes")
80
d88aa92c »
2010-01-18 Transform the build system from custom to proper autotools.
81 AC_CONFIG_FILES([Makefile])
a96ec4d9 »
2009-09-11 Initial revision of Gource.
82 AC_OUTPUT
Something went wrong with that request. Please try again.