|
17 | 17 |
|
18 | 18 | # Process this file with autoreconf |
19 | 19 | AC_PREREQ(2.50) |
20 | | -AC_INIT([[XML-Security-C]],[2.0.4],[dev@shibboleth.net],[xml-security-c]) |
| 20 | +AC_INIT([[XML-Security-C]],[3.0.0],[dev@shibboleth.net],[xml-security-c]) |
21 | 21 | AC_CONFIG_SRCDIR(xsec) |
22 | 22 | AC_CONFIG_AUX_DIR(build-aux) |
23 | 23 | AC_CONFIG_MACRO_DIR(m4) |
@@ -95,77 +95,6 @@ xerces_CXXFLAGS=$xerces_CFLAGS |
95 | 95 | xerces_CFLAGS="" |
96 | 96 | AC_SUBST([xerces_CXXFLAGS]) |
97 | 97 |
|
98 | | -# Get user options |
99 | | - |
100 | | -AC_ARG_WITH(xalan, |
101 | | - AS_HELP_STRING([--with-xalan],[Enable Xalan integration. Values = 'yes' or installation directory (Default = yes)]), |
102 | | - use_xalan=$withval, use_xalan=yes) |
103 | | - |
104 | | -if test x"$use_xalan" != "xyes" ; then |
105 | | - if test x"$use_xalan" != "xno" ; then |
106 | | - XALANCROOT=$use_xalan |
107 | | - fi |
108 | | -fi |
109 | | - |
110 | | -# Now check for Xalan |
111 | | - |
112 | | -if test x"$use_xalan" != x"no" ; then |
113 | | - |
114 | | - if test $XALANCROOT; then |
115 | | - |
116 | | - AC_MSG_NOTICE([looking for Xalan headers in $XALANCROOT]) |
117 | | - |
118 | | - # Updated to include nls/include as this is generally needed for |
119 | | - # compilation against non-installed xalan. |
120 | | - # Also now include XALANCROOT/include to cater for installed xalan |
121 | | - xalan_CXXFLAGS="-I${XALANCROOT}/src -I${XALANCROOT}/include -I${XALANCROOT}/nls/include" |
122 | | - xalan_LIBS="-L${XALANCROOT}/lib -lxalan-c" |
123 | | - AX_SAVE_FLAGS_WITH_PREFIX([xalan],[[CXXFLAGS]]) |
124 | | - AC_CHECK_HEADER([xalanc/Include/XalanVersion.hpp], |
125 | | - [xalan_found=yes]) |
126 | | - AX_RESTORE_FLAGS_WITH_PREFIX([xalan],[[CXXFLAGS]]) |
127 | | - |
128 | | - fi |
129 | | - |
130 | | - if test -z "$xalan_found" ; then |
131 | | - |
132 | | - AC_MSG_NOTICE([looking for Xalan in system includes]) |
133 | | - unset ac_cv_header_xalanc_Include_XalanVersion_hpp |
134 | | - AC_CHECK_HEADER([xalanc/Include/XalanVersion.hpp], |
135 | | - [xalan_found=yes |
136 | | - xalan_CXXFLAGS="" |
137 | | - xalan_LIBS="-lxalan-c"], |
138 | | - [AC_MSG_NOTICE([WARNING - configuring without Xalan])]) |
139 | | - |
140 | | - fi |
141 | | -fi |
142 | | - |
143 | | -if test "${xalan_found}" = "yes" ; then |
144 | | -AX_SAVE_FLAGS_WITH_PREFIX([xalan],[[CXXFLAGS],[LIBS]]) |
145 | | - |
146 | | -AC_MSG_CHECKING([Xalan version]) |
147 | | -AC_COMPILE_IFELSE( |
148 | | - [AC_LANG_PROGRAM([#include <xalanc/Include/XalanVersion.hpp>], |
149 | | -[#if _XALAN_VERSION >= 11100 |
150 | | -int i = 0; |
151 | | -#else |
152 | | -#error requires Xalan version 1.11+ |
153 | | -#endif])], |
154 | | - [AC_MSG_RESULT(OK)], |
155 | | - [AC_MSG_FAILURE([Xalan-C 1.11+ is required])]) |
156 | | - |
157 | | - # Do we need xalanMsg.so? |
158 | | - AC_SEARCH_LIBS([XalanInitialize],[xalanMsg],[xalan_LIBS="$LIBS"]) |
159 | | - |
160 | | - AC_DEFINE([XSEC_HAVE_XALAN],[1],[Define to 1 if Xalan is available.]) |
161 | | - AC_SUBST([xalan_CXXFLAGS]) |
162 | | - AC_SUBST([xalan_LIBS]) |
163 | | - |
164 | | -AX_RESTORE_FLAGS_WITH_PREFIX([xalan],[[CXXFLAGS],[LIBS]]) |
165 | | -else |
166 | | - AC_MSG_NOTICE([Xalan not included in build - XPath and XSLT will not be available]) |
167 | | -fi |
168 | | - |
169 | 98 | AC_LANG(C) |
170 | 99 |
|
171 | 100 | # Crypto provider options (OpenSSL / NSS) |
@@ -239,30 +168,8 @@ AS_IF([test x"$with_openssl" != xno], |
239 | 168 | ],[AS_IF([test "x$with_openssl" != xcheck],[AC_MSG_ERROR([Unable to find OpenSSL])])]) |
240 | 169 | ]) |
241 | 170 |
|
242 | | -AC_ARG_WITH([nss], |
243 | | - [AS_HELP_STRING([--with-nss],[use the NSS crypto provider @<:@default=check@:>@])],, |
244 | | - [with_nss=check]) |
245 | | - |
246 | | -AS_IF([test x"$with_nss" != xno], |
247 | | - [AX_PKG_CHECK_MODULES([nss],,[nss], |
248 | | - [with_nss=found |
249 | | - AC_DEFINE([XSEC_HAVE_NSS],[1],[Define if NSS is in use]) |
250 | | - AC_MSG_WARN([NSS is no longer officially supported]) |
251 | | - ],[AS_IF([test "x$with_nss" != "xcheck"],[AC_MSG_ERROR([Unable to find NSS])])]) |
252 | | - ]) |
253 | | - |
254 | | -AC_ARG_ENABLE(xkms, |
255 | | - AS_HELP_STRING([--disable-xkms],[disable XKMS support]), |
256 | | - [have_xkms=${enableval}], |
257 | | - [have_xkms=yes]) |
258 | | -if test x"$have_xkms" = "xyes" ; then |
259 | | - AC_DEFINE([XSEC_XKMS_ENABLED],[1],[Define to 1 if XKMS support is included.]) |
260 | | -fi |
261 | | - |
262 | 171 | # Populate the Makefile conditionals |
263 | 172 | AM_CONDITIONAL([XSEC_AM_HAVE_OPENSSL],[test "x$with_openssl" = xfound]) |
264 | | -AM_CONDITIONAL([XSEC_AM_HAVE_NSS],[test "x$with_nss" = xfound]) |
265 | | -AM_CONDITIONAL(XSEC_AM_HAVE_XKMS, test x"$have_xkms" = "xyes") |
266 | 173 |
|
267 | 174 | # output the Makefiles |
268 | 175 | AC_OUTPUT |
0 commit comments