3 # -- I N I T --------------------------------------------------
5 . $srcdir/config/build.cfg
7 AC_INIT(@PACKAGE_NAME@,@PACKAGE_VERSION@,@PACKAGE_BUGREPORT@,@PACKAGE_TARNAME@)
10 AC_CONFIG_AUX_DIR(config)
11 AM_CONFIG_HEADER(config.h)
13 dnl AC_CANONICAL_TARGET
18 API_VERSION=@API_VERSION@
20 # -- V A R I A B L E S ----------------------------------------
22 SVN_REPOSITORY=@SVN_REPOSITORY@
24 # -- P R O G R A M S ------------------------------------------
39 AC_ARG_BRANCH_PROBABILITIES
44 --enable-g5opt enable optimizations specific to G5 proc],[
45 G5OPTFLAGS="-mpowerpc-gpopt -mno-multiple -mno-update -mcpu=970 -mtune=970 -falign-loops=16 -falign-functions=16"
58 AC_SUBST(LIBTOOL_DEPS)
65 dnl AC_PROG_INTLTOOL(0.11)
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)
161 VERSION_MAJ=@VERSION_MAJ@
162 VERSION_MIN=@VERSION_MIN@
163 VERSION_REV=@VERSION_REV@
164 AC_SUBST(VERSION_MAJ)
165 AC_SUBST(VERSION_MIN)
166 AC_SUBST(VERSION_REV)
174 imagedir="${datadir}/pixmaps/synfigstudio"
183 synfigstudio-thumbnailer.schemas
186 src/synfigapp/Makefile
189 pkg-info/macosx/synfig-studio.info
192 # -- S U M M A R Y --------------------------------------------
195 $PACKAGE_NAME v.$VERSION
196 Configuration Summary
199 Install Prefix -------------------> $prefix
200 Host Platform --------------------> $host
201 Icon Format ----------------------> $imageext
202 Debug Mode -----------------------> $debug
203 Profiling Mode -------------------> $profiling
204 Optimizations --------------------> $optimization
205 Window System --------------------> $windowsys
206 FMOD Enabled ---------------------> $with_libfmod
208 "'$'"CXX ------------------------------> '$CXX'
209 "'$'"CXXFLAGS -------------------------> '$CXXFLAGS'
210 "'$'"LDFLAGS --------------------------> '$LDFLAGS'
211 "'$'"SYNFIG_CFLAGS ---------------------> '$SYNFIG_CFLAGS'
212 "'$'"SYNFIG_LIBS -----------------------> '$SYNFIG_LIBS'
213 "'$'"GTKMM_CFLAGS ---------------------> '$GTKMM_CFLAGS'
214 "'$'"GTKMM_LIBS -----------------------> '$GTKMM_LIBS'