2011-04-14 05:05:41 +04:00
|
|
|
# -*- Autoconf -*-
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
2011-04-14 23:02:51 +04:00
|
|
|
AC_PREREQ([2.53])
|
2020-01-21 22:47:48 +03:00
|
|
|
AC_INIT([xsp], [4.8], [http://bugzilla.xamarin.com/])
|
2004-02-12 20:07:13 +03:00
|
|
|
AC_CANONICAL_SYSTEM
|
2011-04-14 05:05:41 +04:00
|
|
|
AC_CONFIG_MACRO_DIR([build/m4])
|
|
|
|
AM_INIT_AUTOMAKE([foreign])
|
2003-10-05 01:23:32 +04:00
|
|
|
AM_MAINTAINER_MODE
|
2003-09-23 01:09:37 +04:00
|
|
|
|
2011-04-14 05:05:41 +04:00
|
|
|
AC_SUBST([ACLOCAL_AMFLAGS], ["-I build/m4/shamrock -I build/m4/shave \${ACLOCAL_FLAGS}"])
|
|
|
|
|
|
|
|
SHAMROCK_EXPAND_LIBDIR
|
|
|
|
SHAMROCK_EXPAND_BINDIR
|
|
|
|
SHAMROCK_EXPAND_DATADIR
|
|
|
|
|
|
|
|
# Checks for programs.
|
2003-09-23 01:09:37 +04:00
|
|
|
AC_PROG_INSTALL
|
2011-04-14 05:05:41 +04:00
|
|
|
AC_PROG_AWK
|
|
|
|
AC_PROG_MKDIR_P
|
2013-07-12 00:12:08 +04:00
|
|
|
AC_PROG_LIBTOOL
|
2003-09-23 01:09:37 +04:00
|
|
|
|
2011-04-14 05:05:41 +04:00
|
|
|
# Options
|
2007-03-30 11:30:49 +04:00
|
|
|
AC_ARG_ENABLE([tracing],
|
2011-04-14 05:05:41 +04:00
|
|
|
AC_HELP_STRING([--enable-tracing],[enable producing tracing messages]),
|
|
|
|
[enable_tracing=yes],
|
2007-03-30 11:30:49 +04:00
|
|
|
[enable_tracing=no])
|
|
|
|
|
|
|
|
if test "x$enable_tracing" != "xno" ; then
|
2007-03-30 14:34:40 +04:00
|
|
|
WEBTRACING="-define:WEBTRACE -define:TRACE"
|
2007-03-30 11:30:49 +04:00
|
|
|
else
|
|
|
|
WEBTRACING=""
|
|
|
|
fi
|
|
|
|
|
2009-01-08 16:24:39 +03:00
|
|
|
AC_ARG_WITH([runtime],
|
|
|
|
AC_HELP_STRING([--with-runtime],[use the specified runtime when xsp is installed]),
|
|
|
|
[RUNTIME=$withval])
|
|
|
|
|
2011-02-17 07:13:15 +03:00
|
|
|
AC_ARG_WITH([unit-tests],
|
|
|
|
AC_HELP_STRING([--with-unit-tests],[build the unit tests]),
|
|
|
|
[UNIT_TESTS=$withval])
|
|
|
|
|
2013-09-04 16:30:31 +04:00
|
|
|
AC_CHECK_FUNCS(send recv bind listen accept \
|
|
|
|
chmod unlink fork execv exit \
|
|
|
|
getpid getuid geteuid getgid getegid setreuid setregid \
|
2013-09-06 23:23:19 +04:00
|
|
|
strlen strncpy strncmp printf fprintf snprintf vprintf strftime time \
|
2013-09-04 16:30:31 +04:00
|
|
|
perror,, AC_MSG_ERROR("Cannot find standard functions"))
|
|
|
|
|
2011-04-14 05:05:41 +04:00
|
|
|
# Mono
|
|
|
|
SHAMROCK_CHECK_MONO_MODULE(2.10.0)
|
|
|
|
SHAMROCK_FIND_MONO_4_0_COMPILER
|
|
|
|
SHAMROCK_FIND_MONO_RUNTIME
|
|
|
|
SHAMROCK_FIND_PROGRAM_OR_BAIL(GACUTIL, gacutil)
|
|
|
|
SHAMROCK_FIND_PROGRAM_OR_BAIL(SN, sn)
|
|
|
|
SHAMROCK_CHECK_MONO_4_0_GAC_ASSEMBLIES([
|
|
|
|
System.Core
|
|
|
|
System.Configuration
|
|
|
|
System.Data
|
|
|
|
System.Web
|
|
|
|
Mono.Posix
|
|
|
|
Mono.Security
|
|
|
|
])
|
2011-02-17 07:13:15 +03:00
|
|
|
|
2011-04-14 05:05:41 +04:00
|
|
|
SAVED_DMCS="$DMCS"
|
2009-01-08 16:24:39 +03:00
|
|
|
|
|
|
|
if test "x$RUNTIME" = "x" ; then
|
2011-04-14 05:05:41 +04:00
|
|
|
RUNTIME="$MONO"
|
2009-01-08 16:24:39 +03:00
|
|
|
fi
|
2011-04-14 05:05:41 +04:00
|
|
|
|
2003-09-23 01:09:37 +04:00
|
|
|
CS="C#"
|
2014-11-06 00:10:04 +03:00
|
|
|
if test "x$DMCS" = "xno" ; then
|
|
|
|
AC_MSG_ERROR([No $CS compiler found. dmcs must be installed.])
|
2003-09-23 01:09:37 +04:00
|
|
|
fi
|
|
|
|
|
2019-09-01 18:48:59 +03:00
|
|
|
AC_MSG_CHECKING([for Mono 4.5 GAC for Mono.Data.Sqlite.dll])
|
|
|
|
if test -e "$($PKG_CONFIG --variable=libdir mono)/mono/4.5/Mono.Data.Sqlite.dll" -o \
|
|
|
|
-e "$($PKG_CONFIG --variable=prefix mono)/lib/mono/4.5/Mono.Data.Sqlite.dll"; then
|
2011-04-14 05:05:41 +04:00
|
|
|
AC_MSG_RESULT([found])
|
|
|
|
HAVE_MONO_SQLITE=yes
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([not found])
|
|
|
|
HAVE_MONO_SQLITE=no
|
|
|
|
fi
|
2005-02-12 00:54:22 +03:00
|
|
|
|
2011-04-14 05:05:41 +04:00
|
|
|
AM_CONDITIONAL(USE_SQLITE, test x${HAVE_MONO_SQLITE} = xyes)
|
2005-02-12 00:54:22 +03:00
|
|
|
|
2011-04-14 05:05:41 +04:00
|
|
|
SHAMROCK_CHECK_MONODOC
|
2005-02-12 00:54:22 +03:00
|
|
|
|
2011-04-14 05:05:41 +04:00
|
|
|
GACUTIL_FLAGS='-root $(DESTDIR)$(prefix)/lib'
|
2005-02-12 00:54:22 +03:00
|
|
|
|
2004-04-06 15:18:14 +04:00
|
|
|
case "$host" in
|
|
|
|
*-*-mingw*|*-*-cygwin*)
|
|
|
|
platform_win32=yes
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2011-02-17 07:13:15 +03:00
|
|
|
AM_CONDITIONAL(UNITTESTS, test x${UNIT_TESTS} = xyes)
|
2004-04-06 15:18:14 +04:00
|
|
|
AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes)
|
2006-05-17 22:43:54 +04:00
|
|
|
AM_CONDITIONAL(XSP_ONLY, test x$platform_win32 = xyes)
|
2004-04-06 15:18:14 +04:00
|
|
|
|
2007-10-28 04:52:16 +03:00
|
|
|
# Put the version in the new required format (for svn revisions)
|
|
|
|
export VERSION
|
|
|
|
[XSP_VERSION=$($AWK 'BEGIN {
|
|
|
|
split (ENVIRON["VERSION"] ".0.0.0", vsplit, ".")
|
|
|
|
if(length(vsplit [1]) > 4) {
|
|
|
|
split (substr(ENVIRON["VERSION"], 0, 4) "." substr(ENVIRON["VERSION"], 5) ".0.0", vsplit, ".")
|
|
|
|
}
|
|
|
|
print vsplit [1] "." vsplit [2] "." vsplit [3] "." vsplit [4]
|
|
|
|
}')]
|
|
|
|
|
2007-03-30 11:30:49 +04:00
|
|
|
AC_SUBST(WEBTRACING)
|
2009-12-02 Marek Habersack <mhabersack@novell.com>
* configure.in, scripts/Makefile.am,
src/Mono.WebServer.Apache/Makefile.am,
src/Mono.WebServer.FastCgi/Makefile.am,
src/Mono.WebServer.XSP/Makefile.am,
src/Mono.WebServer/AssemblyInfo4.cs.in,
src/Mono.WebServer/Makefile.am,
src/Mono.WebServer/xsp-4.pc.in,
tools/asp_state/Makefile.am,
tools/asp_state/asp-state4.exe.config,
tools/dbsessmgr/Makefile.am,
tools/dbsessmgr/dbsessmgr4.exe.config: added support for compiling
.NET 4.0 versions of the assemblies and tools.
svn path=/trunk/xsp/; revision=147416
2009-12-02 14:24:05 +03:00
|
|
|
AC_SUBST(DMCS)
|
2005-05-09 03:57:58 +04:00
|
|
|
AC_SUBST(RUNTIME)
|
2006-08-17 00:14:39 +04:00
|
|
|
AC_SUBST(GACUTIL)
|
2006-08-24 00:46:48 +04:00
|
|
|
AC_SUBST(GACUTIL_FLAGS)
|
2006-08-17 00:14:39 +04:00
|
|
|
AC_SUBST(SN)
|
2007-03-02 23:15:06 +03:00
|
|
|
AC_SUBST(VERSION)
|
2007-10-28 04:52:16 +03:00
|
|
|
AC_SUBST(XSP_VERSION)
|
2011-04-14 05:05:41 +04:00
|
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile
|
|
|
|
build/Makefile
|
|
|
|
build/m4/Makefile
|
|
|
|
build/m4/shave/shave
|
|
|
|
build/m4/shave/shave-libtool
|
|
|
|
docs/Makefile
|
|
|
|
docs/Mono.FastCGI/Makefile
|
|
|
|
docs/Mono.WebServer/Makefile
|
2005-01-20 04:18:42 +03:00
|
|
|
man/Makefile
|
2007-11-07 17:50:00 +03:00
|
|
|
packaging/Makefile
|
|
|
|
packaging/opensuse/Makefile
|
2004-08-03 01:04:13 +04:00
|
|
|
scripts/Makefile
|
2013-07-12 00:12:08 +04:00
|
|
|
lib/Makefile
|
2013-08-22 21:28:38 +04:00
|
|
|
shim/Makefile
|
2005-05-31 01:58:30 +04:00
|
|
|
src/Makefile
|
2007-10-22 02:09:08 +04:00
|
|
|
src/Mono.WebServer.Apache/Makefile
|
|
|
|
src/Mono.WebServer.FastCgi/Makefile
|
|
|
|
src/Mono.WebServer.XSP/Makefile
|
2011-04-14 05:05:41 +04:00
|
|
|
src/Mono.WebServer/Makefile
|
2013-07-11 19:14:10 +04:00
|
|
|
src/Mono.WebServer.Fpm/Makefile
|
2005-01-20 20:28:57 +03:00
|
|
|
test/1.1/Makefile
|
|
|
|
test/1.1/asp.net/Makefile
|
2011-04-14 05:05:41 +04:00
|
|
|
test/1.1/authtest/Makefile
|
|
|
|
test/1.1/customcontrol/Makefile
|
2005-01-20 20:28:57 +03:00
|
|
|
test/1.1/databind/Makefile
|
|
|
|
test/1.1/handlers/Makefile
|
2011-04-14 05:05:41 +04:00
|
|
|
test/1.1/html/Makefile
|
|
|
|
test/1.1/webcontrols/Makefile
|
|
|
|
test/1.1/webservice/Makefile
|
2005-01-20 20:28:57 +03:00
|
|
|
test/2.0/Makefile
|
2009-04-02 08:47:22 +04:00
|
|
|
test/2.0/gridview/Makefile
|
2005-01-26 16:32:07 +03:00
|
|
|
test/2.0/masterpages/Makefile
|
2011-04-14 05:05:41 +04:00
|
|
|
test/2.0/menu/Makefile
|
|
|
|
test/2.0/treeview/Makefile
|
|
|
|
test/App_Code/Makefile
|
|
|
|
test/Makefile
|
|
|
|
test/controls/Makefile
|
2005-01-26 16:32:07 +03:00
|
|
|
tools/Makefile
|
|
|
|
tools/asp_state/Makefile
|
|
|
|
tools/dbsessmgr/Makefile
|
2007-11-07 17:50:00 +03:00
|
|
|
tools/mono-asp-apps/Makefile
|
2007-11-15 00:34:53 +03:00
|
|
|
unittests/Makefile
|
|
|
|
unittests/Tests.XSP.Security/Makefile
|
|
|
|
unittests/webroot/Makefile
|
2011-04-14 05:05:41 +04:00
|
|
|
xsp.spec
|
|
|
|
man/xsp.1
|
|
|
|
man/dbsessmgr.1
|
|
|
|
man/asp-state.1
|
|
|
|
man/mono-asp-apps.1
|
|
|
|
src/Mono.WebServer/AssemblyInfo2.cs
|
|
|
|
src/Mono.WebServer/AssemblyInfo4.cs
|
|
|
|
src/Mono.WebServer.Apache/AssemblyInfo.cs
|
|
|
|
src/Mono.WebServer.FastCgi/AssemblyInfo.cs
|
2013-07-11 19:14:10 +04:00
|
|
|
src/Mono.WebServer.Fpm/AssemblyInfo.cs
|
2011-04-14 05:05:41 +04:00
|
|
|
src/Mono.WebServer.XSP/AssemblyInfo.cs
|
|
|
|
src/Mono.WebServer.XSP/xsp.pc
|
|
|
|
src/Mono.WebServer.XSP/xsp-2.pc
|
|
|
|
src/Mono.WebServer.XSP/xsp-4.pc
|
|
|
|
tools/asp_state/AssemblyInfo.cs
|
|
|
|
tools/dbsessmgr/AssemblyInfo.cs
|
2004-04-06 06:07:09 +04:00
|
|
|
])
|
2003-10-05 01:23:32 +04:00
|
|
|
|
2011-04-14 05:05:41 +04:00
|
|
|
SHAVE_INIT([build/m4/shave], [enable])
|
|
|
|
AC_OUTPUT
|
|
|
|
|
|
|
|
TARGET_FRAMEWORKS=""
|
|
|
|
|
|
|
|
if test "x$SAVED_DMCS" = "xno"; then
|
|
|
|
DMCS_STRING="not found"
|
|
|
|
else
|
|
|
|
DMCS_STRING="$SAVED_DMCS"
|
|
|
|
if test -n "$TARGET_FRAMEWORKS"; then
|
2014-12-04 20:41:17 +03:00
|
|
|
TARGET_FRAMEWORKS="$TARGET_FRAMEWORKS, .NET 4.5"
|
2011-04-14 05:05:41 +04:00
|
|
|
else
|
2014-12-04 20:41:17 +03:00
|
|
|
TARGET_FRAMEWORKS=".NET 4.5"
|
2011-04-14 05:05:41 +04:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
${PACKAGE}-${VERSION}
|
2009-10-02 12:26:02 +04:00
|
|
|
|
2011-04-14 05:05:41 +04:00
|
|
|
Build Environment
|
|
|
|
Install prefix: ${prefix}
|
|
|
|
Datadir: ${expanded_datadir}
|
|
|
|
Libdir: ${expanded_libdir}
|
|
|
|
Build documentation: ${enable_docs}
|
2014-12-04 20:41:17 +03:00
|
|
|
Mono compiler: ${DMCS_STRING}
|
2011-04-14 05:05:41 +04:00
|
|
|
Target frameworks: ${TARGET_FRAMEWORKS}
|
|
|
|
Build SQLite samples: ${HAVE_MONO_SQLITE}
|
|
|
|
EOF
|