3 # -- I N I T --------------------------------------------------
5 AC_INIT([Synfig Studio],[0.61.07],[http://sourceforge.net/tracker/?group_id=144022&atid=757416],[synfigstudio])
8 AC_CONFIG_AUX_DIR(config)
9 AM_CONFIG_HEADER(config.h)
11 dnl AC_CANONICAL_TARGET
18 # -- V A R I A B L E S ----------------------------------------
20 SVN_REPOSITORY=http://svn.voria.com/code/synfig-studio
22 # -- P R O G R A M S ------------------------------------------
38 AC_ARG_BRANCH_PROBABILITIES
42 --enable-g5opt enable optimizations specific to G5 proc],[
43 G5OPTFLAGS="-mpowerpc-gpopt -mno-multiple -mno-update -mcpu=970 -mtune=970 -falign-loops=16 -falign-functions=16"
56 AC_SUBST(LIBTOOL_DEPS)
59 ## FIXME: add i18n for .desktop and other non-compiled files
60 ## AM_GLIB_GNU_GETTEXT([external])
61 ## AC_PROG_INTLTOOL(0.11)
63 AM_GNU_GETTEXT([external])
64 # This is here so autoreconf will run autopoint
65 AM_GNU_GETTEXT_VERSION([0.14.4])
69 AM_CONDITIONAL(WIN32_PKG, true)
70 AM_CONDITIONAL(MACOSX_PKG, false)
73 AM_CONDITIONAL(WIN32_PKG, false)
74 AM_CONDITIONAL(MACOSX_PKG, true)
77 AM_CONDITIONAL(WIN32_PKG, false)
78 AM_CONDITIONAL(MACOSX_PKG, false)
81 # -- L I B R A R I E S ----------------------------------------
83 PKG_CHECK_MODULES(GTKMM, gtkmm-2.4 gthread-2.0,[],[
84 AC_MSG_ERROR([ ** Gtkmm-2.4 Is a required library, aborting.])
86 AC_SUBST(GTKMM_CFLAGS)
89 PKG_CHECK_MODULES(SYNFIG, [synfig >= 0.61.07] [ETL >= 0.04.10] sigc++-2.0,,[
90 AC_MSG_ERROR([ ** Unable to set up dependent libraries (synfig >= 0.61.07, ETL >= 0.04.10)])
92 AC_SUBST(SYNFIG_CFLAGS)
96 AC_DEFINE(STUDIO_WINSYS_H,"gtkmm/winsys.h",[blah])
97 AM_CONDITIONAL(WINDOWSYS_GTKMM,true)
100 --with-userdir=(dirname) Relative path to user directory],[
104 with_userdir="Synfig"
107 with_userdir="Library/Synfig"
110 with_userdir=".synfig"
114 AC_DEFINE_UNQUOTED(SYNFIG_USER_APP_DIR,"$with_userdir",[Synfig User Data Directory])
116 # --- FMOD CHECK -------------
117 AC_ARG_WITH(libfmod,[
118 --with-libfmod Enable support for FMOD],[
120 AC_CHECK_LIB(fmod, FSOUND_Init,[
126 if test $with_libfmod = "yes" ; then {
127 AM_CONDITIONAL(WITH_FMOD,true)
128 FMOD_LIBS="/usr/lib/libfmod.so"
129 AC_DEFINE(WITH_FMOD,"I'm here damnit",[blah])
131 AM_CONDITIONAL(WITH_FMOD,false)
135 # -- H E A D E R S --------------------------------------------
137 AC_CHECK_HEADERS([unistd.h signal.h fcntl.h])
138 AC_CHECK_HEADERS([sys/types.h sys/wait.h sys/stat.h sys/time.h sys/resource.h sys/errno.h])
140 # -- T Y P E S & S T R U C T S --------------------------------
142 # -- F U N C T I O N S ----------------------------------------
144 AC_CHECK_FUNCS([fork])
145 AC_CHECK_FUNCS([kill])
146 AC_CHECK_FUNCS([pipe])
147 AC_CHECK_FUNCS([setpriority mkfifo stat])
149 # -- A R G U M E N T S ----------------------------------------
151 # -- O U T P U T ----------------------------------------------
157 AC_SUBST(SVN_REPOSITORY)
159 AC_SUBST(API_VERSION)
167 imagedir="${datadir}/pixmaps/synfigstudio"
178 synfigstudio-thumbnailer.schemas
181 src/synfigapp/Makefile
184 pkg-info/macosx/synfig-studio.info
187 # -- S U M M A R Y --------------------------------------------
190 $PACKAGE_NAME v.$VERSION
191 Configuration Summary
194 Install Prefix -------------------> $prefix
195 Host Platform --------------------> $host
196 Icon Format ----------------------> $imageext
197 Debug Mode -----------------------> $debug
198 Profiling Mode -------------------> $profiling
199 Optimizations --------------------> $optimization
200 Window System --------------------> $windowsys
201 FMOD Enabled ---------------------> $with_libfmod
203 "'$'"CXX ------------------------------> '$CXX'
204 "'$'"CXXFLAGS -------------------------> '$CXXFLAGS'
205 "'$'"LDFLAGS --------------------------> '$LDFLAGS'
206 "'$'"SYNFIG_CFLAGS ---------------------> '$SYNFIG_CFLAGS'
207 "'$'"SYNFIG_LIBS -----------------------> '$SYNFIG_LIBS'
208 "'$'"GTKMM_CFLAGS ---------------------> '$GTKMM_CFLAGS'
209 "'$'"GTKMM_LIBS -----------------------> '$GTKMM_LIBS'