configure.ac 4.24 KB
Newer Older
1 2 3
dnl Warning: This is an automatically generated file, do not edit!
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.54])
Xavier de Blas's avatar
Xavier de Blas committed
4
AC_INIT([chronojump], [1.6.2])
5 6
AM_INIT_AUTOMAKE([foreign])

7 8 9 10 11 12 13 14
AC_CONFIG_MACRO_DIR([build/m4])
AC_SUBST([ACLOCAL_AMFLAGS], ["-I build/m4/shamrock -I build/m4/shave \${ACLOCAL_FLAGS}"])

AM_PROG_CC_STDC
AC_ISC_POSIX
AC_PROG_CC
AC_C_CONST
AC_HEADER_STDC
15
AM_PROG_LIBTOOL
16
AM_PATH_PYTHON
17
LT_INIT
18

19
dnl Check for pkg-config
20 21 22 23 24
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
        AC_MSG_ERROR([You need to install pkg-config])
fi

25 26 27 28 29
SHAMROCK_EXPAND_LIBDIR
SHAMROCK_EXPAND_BINDIR
SHAMROCK_EXPAND_DATADIR


30 31
AC_PROG_INSTALL

32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
#*******************************************************************************
# Internationalization
#*******************************************************************************
GETTEXT_PACKAGE=chronojump
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])

dnl Check for gettext utils
AC_PATH_PROG(MSGFMT, msgfmt, no)
if test "x$MSGFMT" = "xno"; then
	AC_MSG_ERROR([gettext not found])
else 
	AC_SUBST(MSGFMT,[msgfmt])
fi

IT_PROG_INTLTOOL([0.40.0])
AM_GLIB_GNU_GETTEXT


51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
dnl Mono and C# compiler
dnl Check first for a 4.0 compiler or than fallback to 2.0
SHAMROCK_CHECK_MONO_MODULE(2.4.0)
PKG_CHECK_EXISTS([mono >= 2.8],
		[SHAMROCK_FIND_MONO_4_0_COMPILER
		SHAMROCK_CHECK_MONO_4_0_GAC_ASSEMBLIES([
			System.Data
			Mono.Cairo
			Mono.Posix
			Mono.Data.Sqlite
		])]
,
		[SHAMROCK_FIND_MONO_2_0_COMPILER
		SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES([
			System.Data
			Mono.Cairo
			Mono.Posix
			Mono.Data.Sqlite
		])])
AC_SUBST(MCS, ["$MCS"])
SHAMROCK_FIND_MONO_RUNTIME
72

73
dnl Check for gettext utils
74 75 76 77 78 79
AC_PATH_PROG(MSGFMT, msgfmt, no)
if test "x$MSGFMT" = "xno"; then
	AC_MSG_ERROR([gettext not found])
else 
	AC_SUBST(MSGFMT,[msgfmt])
fi
80

81 82 83 84 85 86 87
AC_MSG_CHECKING([for the OS type])
ostype=""

case "$host" in
  *-*-mingw*|*-*-cygwin*)
    ostype=Windows
    AC_DEFINE(OSTYPE_WINDOWS)
88
    GMCS_FLAGS="$GMCS_FLAGS -define:OSTYPE_WINDOWS"
89 90 91 92 93 94 95 96 97 98 99 100 101
    ;;
  *-*-darwin*)
    AC_DEFINE(OSTYPE_OS_X)
    ostype=OS_X
    ;;
  *-*-linux*)
    AC_DEFINE(OSTYPE_LINUX)
    ostype=Linux
    ;;
esac
AM_CONDITIONAL(OSTYPE_WINDOWS, test x$ostype = xWindows)
AM_CONDITIONAL(OSTYPE_OS_X, test x$ostype = xOS_X)
AM_CONDITIONAL(OSTYPE_LINUX, test x$ostype = xLinux)
Xavier de Blas's avatar
Xavier de Blas committed
102
AC_SUBST(GMCS_FLAGS, ["$GMCS_FLAGS"])
103 104
AC_MSG_RESULT($ostype)

105

106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
AC_ARG_ENABLE(debug,
	AC_HELP_STRING([--enable-debug],
		[Use 'DEBUG' Configuration [default=NO]]),
		enable_debug=yes, enable_debug=no)
AM_CONDITIONAL(ENABLE_DEBUG, test x$enable_debug = xyes)
if test "x$enable_debug" = "xyes" ; then
	CONFIG_REQUESTED="yes"
fi
AC_ARG_ENABLE(release,
	AC_HELP_STRING([--enable-release],
		[Use 'RELEASE' Configuration [default=YES]]),
		enable_release=yes, enable_release=no)
AM_CONDITIONAL(ENABLE_RELEASE, test x$enable_release = xyes)
if test "x$enable_release" = "xyes" ; then
	CONFIG_REQUESTED="yes"
fi
if test -z "$CONFIG_REQUESTED" ; then
	AM_CONDITIONAL(ENABLE_RELEASE, true)
	enable_release=yes
fi

127 128 129
dnl Disable tests
AM_CONDITIONAL(ENABLE_TESTS, test x = y)

130 131 132 133 134 135

dnl package checks, common for all configs
PKG_CHECK_MODULES([GLIB_SHARP_20], [glib-sharp-2.0])
PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0])
PKG_CHECK_MODULES([GLADE_SHARP_20], [glade-sharp-2.0])

Andoni Morales's avatar
Andoni Morales committed
136
PKG_CHECK_MODULES(CESARPLAYER, [gtk+-2.0 >= 2.8 gdk-2.0 gio-2.0 glib-2.0 gstreamer-0.10 gstreamer-audio-0.10 gstreamer-video-0.10 gstreamer-pbutils-0.10 gobject-2.0 gstreamer-interfaces-0.10 gstreamer-app-0.10 gstreamer-tag-0.10])
137 138 139
AC_SUBST(CESARPLAYER_CFLAGS)
AC_SUBST(CESARPLAYER_LIBS)

140 141
AC_CONFIG_FILES([
Makefile
Andoni Morales's avatar
Andoni Morales committed
142 143
build/Makefile
build/m4/Makefile
144 145
build/m4/shave/shave
build/m4/shave/shave-libtool
146 147 148 149
chronopic-firmware/Makefile
chronopic-firmware/chronopic-firmwarecord/Makefile
chronopic-firmware/chronopic-firmwarecord/libIris/Makefile
chronopic-firmware/chronopic-firmwarecord/chronopic-firmwarecord
150 151
chronopic-tests/Makefile
src/Makefile
152
src/Mini/Makefile
Andoni Morales's avatar
Andoni Morales committed
153
po/Makefile.in
154
chronojump_server/Makefile
155
encoder/Makefile
Andoni Morales's avatar
Andoni Morales committed
156
manual/Makefile
157
src/AssemblyInfo.cs
158 159
src/chronojump
src/chronojump.desktop
160
src/Mini/chronojump_mini
161 162
libcesarplayer/Makefile
CesarPlayer/Makefile
163 164
CesarPlayer/AssemblyInfo.cs
CesarPlayer/CesarPlayer.dll.config
165 166
win32/chronojump_innosetup.iss
win32/Makefile
167
deb-pkg.sh
168 169 170
])

AC_OUTPUT