2010-06-17 16:35:33 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2013-10-09 16:36:34 +00:00
|
|
|
m4_define([sparkleshare_version], [1.3])
|
2010-08-03 08:40:10 +00:00
|
|
|
|
2010-06-17 16:35:33 +00:00
|
|
|
AC_PREREQ([2.54])
|
2010-08-03 08:40:10 +00:00
|
|
|
AC_INIT([SparkleShare], sparkleshare_version)
|
2012-01-22 19:50:20 +00:00
|
|
|
AM_INIT_AUTOMAKE([1.11 dist-bzip2 dist-zip foreign tar-pax])
|
2010-06-17 16:35:33 +00:00
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2010-08-03 08:40:10 +00:00
|
|
|
dnl Export Version Info
|
2012-07-26 14:48:23 +00:00
|
|
|
AC_SUBST([ASM_VERSION], [sparkleshare_version])
|
2010-08-03 08:40:10 +00:00
|
|
|
|
2010-06-17 16:35:33 +00:00
|
|
|
dnl pkg-config
|
|
|
|
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
|
|
|
|
|
|
|
|
AC_SUBST([ACLOCAL_AMFLAGS], ["-I build/m4/sparkleshare -I build/m4/shamrock -I build/m4/shave \${ACLOCAL_FLAGS}"])
|
|
|
|
|
|
|
|
SHAMROCK_EXPAND_LIBDIR
|
|
|
|
SHAMROCK_EXPAND_BINDIR
|
|
|
|
SHAMROCK_EXPAND_DATADIR
|
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
2010-10-21 18:52:42 +00:00
|
|
|
dnl Mono and gmcs
|
2012-04-04 16:15:53 +00:00
|
|
|
SHAMROCK_CHECK_MONO_MODULE(2.8)
|
2010-10-21 18:52:42 +00:00
|
|
|
SHAMROCK_FIND_MONO_RUNTIME
|
2011-06-26 17:51:50 +00:00
|
|
|
|
2012-04-04 22:33:21 +00:00
|
|
|
PKG_CHECK_EXISTS([mono >= 2.8],
|
|
|
|
[SHAMROCK_FIND_MONO_4_0_COMPILER
|
|
|
|
SHAMROCK_CHECK_MONO_4_0_GAC_ASSEMBLIES([
|
|
|
|
System
|
|
|
|
System.Security
|
|
|
|
Mono.Posix
|
|
|
|
])]
|
|
|
|
)
|
2010-06-17 16:35:33 +00:00
|
|
|
|
2010-11-20 21:50:54 +00:00
|
|
|
SPARKLESHARE_CHECK_NOTIFY_SHARP
|
|
|
|
|
2010-06-17 16:35:33 +00:00
|
|
|
AC_ARG_ENABLE(debug,
|
|
|
|
AC_HELP_STRING([--enable-debug],
|
|
|
|
[Use 'DEBUG' Configuration [default=YES]]),
|
|
|
|
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=NO]]),
|
|
|
|
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_DEBUG, true)
|
|
|
|
enable_debug=yes
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
dnl package checks, common for all configs
|
2010-11-13 22:25:17 +00:00
|
|
|
#PKG_CHECK_MODULES([NDESK_DBUS], [ndesk-dbus-1.0])
|
|
|
|
#AC_SUBST(NDESK_DBUS_LIBS)
|
|
|
|
#PKG_CHECK_MODULES([NDESK_DBUS_GLIB], [ndesk-dbus-glib-1.0])
|
|
|
|
#AC_SUBST(NDESK_DBUS_GLIB_LIBS)
|
2010-06-17 16:35:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
SPARKLESHARE_CHECK_GTK_SHARP
|
2011-06-08 19:31:28 +00:00
|
|
|
|
2011-06-12 15:10:29 +00:00
|
|
|
AC_ARG_ENABLE(appindicator,
|
2011-07-01 20:39:14 +00:00
|
|
|
AS_HELP_STRING([--enable-appindicator[=@<:@no/auto/yes@:>@]],[Build support for application indicators ]),
|
|
|
|
[enable_appindicator=$enableval],
|
|
|
|
[enable_appindicator="auto"])
|
|
|
|
|
2012-06-19 19:23:50 +00:00
|
|
|
OSNAME=`uname -s`
|
2012-06-19 19:37:10 +00:00
|
|
|
if test "$OSNAME" = "Linux" ; then
|
2011-07-01 20:39:14 +00:00
|
|
|
dnl check for webkit-sharp
|
|
|
|
PKG_CHECK_MODULES(WEBKIT_SHARP, webkit-sharp-1.0, have_webkit_sharp=yes, have_webkit_sharp=no)
|
|
|
|
if test "x$have_webkit_sharp" = "xno" ; then
|
|
|
|
AC_ERROR("webkit-sharp is a required dependency: you need to install the appropriate devel package before you can compile")
|
|
|
|
fi
|
|
|
|
AC_SUBST(WEBKIT_SHARP_LIBS)
|
|
|
|
|
|
|
|
dnl check for notify-sharp
|
|
|
|
PKG_CHECK_MODULES(NOTIFY_SHARP, notify-sharp, have_notify_sharp=yes, have_notify_sharp=no)
|
|
|
|
if test "x$have_notify_sharp" = "xno" ; then
|
|
|
|
AC_ERROR("notify-sharp is a required dependency: you need to install the appropriate devel package before you can compile")
|
|
|
|
fi
|
|
|
|
AC_SUBST(NOTIFY_SHARP_LIBS)
|
|
|
|
|
2013-10-09 13:23:33 +00:00
|
|
|
APPINDICATOR_REQUIRED=0.1
|
2011-07-01 20:39:14 +00:00
|
|
|
|
|
|
|
if test x$enable_appindicator = xauto ; then
|
2013-10-09 13:23:33 +00:00
|
|
|
PKG_CHECK_EXISTS([appindicator3-sharp-0.1 >= $APPINDICATOR_REQUIRED],
|
2011-07-01 20:39:14 +00:00
|
|
|
enable_appindicator="yes",
|
|
|
|
enable_appindicator="no")
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x$enable_appindicator = xyes ; then
|
2013-10-09 13:23:33 +00:00
|
|
|
PKG_CHECK_EXISTS([appindicator3-sharp-0.1 >= $APPINDICATOR_REQUIRED],,
|
|
|
|
AC_MSG_ERROR([appindicator3-sharp-0.1 is not installed]))
|
2011-07-01 20:39:14 +00:00
|
|
|
PKG_CHECK_MODULES(APP_INDICATOR,
|
2013-10-09 13:23:33 +00:00
|
|
|
appindicator3-sharp-0.1 >= $APPINDICATOR_REQUIRED)
|
2011-07-01 20:39:14 +00:00
|
|
|
AC_SUBST(APP_INDICATOR_CFLAGS)
|
|
|
|
AC_SUBST(APP_INDICATOR_LIBS)
|
|
|
|
AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
|
|
|
|
fi
|
|
|
|
|
|
|
|
GUISUBDIRS=SparkleShare
|
|
|
|
else
|
|
|
|
GUISUBDIRS=
|
2011-06-12 15:10:29 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL(HAVE_APP_INDICATOR, test x"$enable_appindicator" = xyes)
|
2011-07-01 20:39:14 +00:00
|
|
|
AC_SUBST([GUISUBDIRS])
|
|
|
|
|
|
|
|
SHAMROCK_CHECK_NUNIT
|
2011-06-12 15:10:29 +00:00
|
|
|
|
2010-06-18 21:24:43 +00:00
|
|
|
SHAVE_INIT([build/m4/shave], [enable])
|
2010-06-17 16:35:33 +00:00
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
build/Makefile
|
|
|
|
build/m4/Makefile
|
2010-06-18 21:24:43 +00:00
|
|
|
build/m4/shave/shave
|
|
|
|
build/m4/shave/shave-libtool
|
2010-08-02 15:42:42 +00:00
|
|
|
SparkleLib/Defines.cs
|
|
|
|
SparkleLib/Makefile
|
2012-02-28 14:34:23 +00:00
|
|
|
SparkleLib/Git/Makefile
|
2012-06-19 16:21:33 +00:00
|
|
|
SparkleShare/Common/Makefile
|
|
|
|
SparkleShare/Common/HTML/Makefile
|
|
|
|
SparkleShare/Common/Plugins/Makefile
|
|
|
|
SparkleShare/Common/Pixmaps/Makefile
|
2012-03-03 19:43:49 +00:00
|
|
|
SparkleShare/Linux/Makefile
|
2012-06-19 16:21:33 +00:00
|
|
|
SparkleShare/Linux/Pixmaps/Makefile
|
|
|
|
SparkleShare/Linux/Pixmaps/icons/Makefile
|
2012-10-10 12:13:48 +00:00
|
|
|
SparkleShare/Linux/Pixmaps/icons/gnome/Makefile
|
2012-06-20 11:07:10 +00:00
|
|
|
SparkleShare/Linux/Pixmaps/icons/ubuntu-mono-dark/Makefile
|
|
|
|
SparkleShare/Linux/Pixmaps/icons/ubuntu-mono-light/Makefile
|
2012-03-03 19:43:49 +00:00
|
|
|
SparkleShare/Linux/sparkleshare
|
2010-06-17 21:56:43 +00:00
|
|
|
SparkleShare/Makefile
|
2010-06-17 16:35:33 +00:00
|
|
|
Makefile
|
|
|
|
])
|
|
|
|
|
2010-08-30 14:48:50 +00:00
|
|
|
echo "
|
|
|
|
SparkleShare ${VERSION}
|
|
|
|
|
|
|
|
Configuration:
|
2012-10-09 13:25:27 +00:00
|
|
|
Prefix : ${prefix}
|
2010-08-30 15:13:45 +00:00
|
|
|
|
2010-08-30 14:48:50 +00:00
|
|
|
"
|
|
|
|
|