AC_DEFINE(STUDIO_WINSYS_H,"gtkmm/winsys.h",[blah])
AM_CONDITIONAL(WINDOWSYS_GTKMM,true)
+AC_ARG_WITH(userdir,[
+ --with-userdir=(dirname) Relative path to user directory],[
+],[
+case "$host" in
+ *mingw* | *cygwin*)
+ with_userdir="Synfig"
+ ;;
+ *darwin*)
+ with_userdir="Library/Synfig"
+ ;;
+ *)
+ with_userdir="Synfig"
+ ;;
+esac
+])
+AC_DEFINE_UNQUOTED(SYNFIG_USER_APP_DIR,"$with_userdir",[Synfig User Data Directory])
# --- FMOD CHECK -------------
AC_ARG_WITH(libfmod,[
/* === M A C R O S ========================================================= */
+#ifndef SYNFIG_USER_APP_DIR
+#ifdef __APPLE__
+#define SYNFIG_USER_APP_DIR "Library/Synfig"
+#else
+#define SYNFIG_USER_APP_DIR "Synfig"
+#endif
+#endif
+
#ifndef DPM2DPI
#define DPM2DPI(x) (float(x)/39.3700787402f)
#define DPI2DPM(x) (float(x)*39.3700787402f)
String
App::get_user_app_directory()
{
-#ifdef __APPLE__
- return Glib::build_filename(Glib::get_home_dir(),"Library/Synfig");
-#else
- return Glib::build_filename(Glib::get_home_dir(),"Synfig");
-#endif
+ return Glib::build_filename(Glib::get_home_dir(),SYNFIG_USER_APP_DIR);
}
synfig::String