3 m4_esyscmd([build-tools/git-version .]),
4 [openafs-bugs@openafs.org],,
5 [http://www.openafs.org/])
6 AC_CONFIG_AUX_DIR([build-tools])
7 AC_CONFIG_MACRO_DIR([src/cf])
8 AC_CONFIG_SRCDIR([src/config/stds.h])
11 AC_CONFIG_HEADER(src/config/afsconfig.h)
16 dnl Debian wants the release candidate version in the main upstream version,
17 dnl and wants ~ before it.
18 DEB_PKGVER=m4_esyscmd([build-tools/git-version .])
19 if echo "$LINUX_PKGREL" | grep pre >/dev/null 2>/dev/null ; then
20 DEB_PKGVER="$DEB_PKGVER"`echo "$LINUX_PKGREL" | sed 's/0.pre/~rc/'`
23 AC_SUBST(MACOS_VERSION)
26 dnl If the user hasn't specified CFLAGS don't let configure pick -g -O2
27 AS_IF([test -z "$CFLAGS"], [CFLAGS=" "], [])
29 AC_USE_SYSTEM_EXTENSIONS
36 AC_PATH_PROGS([PATH_CPP], [cpp], [${CC-cc} -E], [$PATH:/lib:/usr/ccs/lib])
38 OPENAFS_CONFIGURE_COMMON
40 dnl Probe for Kerberos. We have a few platform-specific overrides due to
41 dnl weird Kerberos implementations and installation locations.
42 AS_CASE([$AFS_SYSNAME],
44 [KRB5_CPPFLAGS="-I/usr/include/kerberosV"],
47 [KRB5_CPPFLAGS="-I/usr/include"
48 KRB5_LDFLAGS="-L/usr/lib -Wl,-search_paths_first"])
50 AS_CASE([$AFS_SYSNAME],
52 [KRB5_LIBS="-l:libkrb5.sl -l:libcom_err.sl"])
54 dnl Check for the characteristics of whatever Kerberos we found, if we found
58 AS_IF([test x"$KRB5_LIBS" != x],
62 AC_CHECK_FUNCS([add_error_table \
64 encode_krb5_enc_tkt_part \
66 krb5_524_conv_principal \
67 krb5_allow_weak_crypto \
71 krb5_get_init_creds_opt_alloc \
72 krb5_get_prompt_types \
74 krb5_principal_get_comp_string])
75 AC_CHECK_FUNCS([krb5_524_convert_creds], ,
76 [AC_CHECK_FUNCS([krb524_convert_creds_kdc], ,
77 [AC_CHECK_LIB([krb524], [krb524_convert_creds_kdc],
78 [LIBS="-lkrb524 $LIBS"
79 KRB5_LIBS="-lkrb524 $KRB5_LIBS"
80 AC_CHECK_LIB([krb524], [krb5_524_conv_principal],
81 [AC_DEFINE([HAVE_KRB5_524_CONV_PRINCIPAL], 1,
82 [Define to 1 if you have the `krb5_524_conv_principal' function.])])
83 AC_DEFINE([HAVE_KRB524_CONVERT_CREDS_KDC], 1,
84 [Define to 1 if you have the `krb524_convert_creds_kdc' function.])])])])
85 AC_CHECK_HEADERS([kerberosIV/krb.h])
86 AC_CHECK_HEADERS([kerberosV/heim_err.h])
87 AC_CHECK_MEMBERS([krb5_creds.keyblock, krb5_creds.keyblock.enctype, krb5_creds.session,
88 krb5_prompt.type], , , [#include <krb5.h>])
89 dnl If we have krb5_creds.session, we are using heimdal
90 dnl If we're using heimdal, aklog needs libasn1 for encode_EncTicketPart and a
91 dnl few other functions. But just aklog; not any of the other stuff that uses
93 AS_IF([test x"$ac_cv_member_krb5_creds_session" = xyes],
94 [AC_CHECK_LIB([asn1], [encode_EncTicketPart],
95 [AKLOG_KRB5_LIBS="-lasn1"])])
96 RRA_LIB_KRB5_RESTORE])
97 AC_SUBST([BUILD_KRB5])
99 AC_SUBST([AKLOG_KRB5_LIBS])
104 if test -d 'doc/man-pages' ; then
105 MAN_MAKEFILE="doc/man-pages/Makefile doc/man-pages/install-man"
109 if test -f 'doc/xml/AdminGuide/Makefile.in' ; then
110 ADMINGUIDE_MAKEFILE="doc/xml/AdminGuide/Makefile"
114 if test -f 'doc/xml/QuickStartUnix/Makefile.in' ; then
115 QSUNIX_MAKEFILE="doc/xml/QuickStartUnix/Makefile"
119 if test -f 'doc/xml/UserGuide/Makefile.in' ; then
120 USERGUIDE_MAKEFILE="doc/xml/UserGuide/Makefile"
124 if test -f 'doc/xml/AdminRef/Makefile.in' ; then
125 ADMINREF_MAKEFILE="doc/xml/AdminRef/Makefile"
129 if test -f 'doc/xml/mobi-fixup.xsl.in' ; then
130 MOBI_FIXUP_XSL="doc/xml/mobi-fixup.xsl"
138 ${ADMINGUIDE_MAKEFILE} \
140 ${USERGUIDE_MAKEFILE} \
141 ${ADMINREF_MAKEFILE} \
145 src/afsmonitor/Makefile \
146 src/afsweb/Makefile \
150 src/auth/test/Makefile \
152 src/bozo/test/Makefile \
153 src/bu_utils/Makefile \
154 src/bubasics/Makefile \
155 src/bucoord/Makefile \
161 src/cmd/test/Makefile \
162 src/comerr/Makefile \
163 src/comerr/test/Makefile \
164 src/config/Makefile \
165 src/config/Makefile.config \
166 src/config/Makefile.libtool \
167 src/config/Makefile.lwp \
168 src/config/Makefile.lwptool \
169 src/config/Makefile.pthread \
170 src/config/Makefile.shared \
171 src/config/Makefile.version-CML \
172 src/config/Makefile.version-NOCML \
173 src/config/shlib-build \
174 src/config/shlib-install \
175 src/crypto/hcrypto/Makefile \
176 src/crypto/rfc3961/Makefile \
178 src/dir/test/Makefile \
179 src/dviced/Makefile \
180 src/dvolser/Makefile \
181 src/export/Makefile \
182 src/finale/Makefile \
184 src/fsprobe/Makefile \
186 src/JAVA/libjafs/Makefile \
188 src/kauth/test/Makefile \
189 src/kopenafs/Makefile \
190 src/libacl/Makefile \
191 src/libacl/test/Makefile \
192 src/libadmin/Makefile \
193 src/libadmin/adminutil/Makefile \
194 src/libadmin/bos/Makefile \
195 src/libadmin/cfg/Makefile \
196 src/libadmin/cfg/test/Makefile \
197 src/libadmin/client/Makefile \
198 src/libadmin/kas/Makefile \
199 src/libadmin/pts/Makefile \
200 src/libadmin/samples/Makefile \
201 src/libadmin/test/Makefile \
202 src/libadmin/vos/Makefile \
203 src/libafs/Makefile.common \
204 src/libafs/MakefileProto.${MKAFS_OSTYPE} \
206 src/libafsauthent/Makefile \
207 src/libafsrpc/Makefile \
208 src/libuafs/Makefile.common \
209 src/libuafs/MakefileProto.${MKAFS_OSTYPE} \
211 src/log/test/Makefile \
213 src/lwp/test/Makefile \
215 src/packaging/Debian/changelog \
216 src/packaging/MacOS/OpenAFS-debug.Description.plist \
217 src/packaging/MacOS/OpenAFS-debug.Info.plist \
218 src/packaging/MacOS/OpenAFS.Description.plist \
219 src/packaging/MacOS/OpenAFS.Info.plist \
220 src/packaging/MacOS/OpenAFS.info \
221 src/packaging/MacOS/buildpkg.sh \
223 src/platform/Makefile \
224 src/platform/${MKAFS_OSTYPE}/Makefile \
225 src/platform/DARWIN/growlagent/Makefile \
226 src/procmgmt/Makefile \
227 src/procmgmt/test/Makefile \
228 src/ptserver/Makefile \
229 src/tptserver/Makefile \
232 src/rx/bulk.example/Makefile \
233 src/rx/bulktest/Makefile \
234 src/rx/multi.example/Makefile \
235 src/rx/simple.example/Makefile \
236 src/rx/test/Makefile \
237 src/rxdebug/Makefile \
240 src/rxkad/test/Makefile \
242 src/rxstat/Makefile \
244 src/sgistuff/Makefile \
248 src/tests/run-tests \
250 src/tools/dumpscan/Makefile \
251 src/tools/rxperf/Makefile \
252 src/tsalvaged/Makefile \
254 src/tvolser/Makefile \
257 src/update/Makefile \
259 src/usd/test/Makefile \
262 src/util/test/Makefile \
263 src/libafscp/Makefile \
265 src/venus/test/Makefile \
268 src/vlserver/Makefile \
269 src/tvlserver/Makefile \
271 src/vol/test/Makefile \
272 src/volser/Makefile \
274 src/helper-splint.sh \
276 tests/auth/Makefile \
278 tests/common/Makefile \
280 tests/rpctestlib/Makefile \
283 tests/util/Makefile \
284 tests/volser/Makefile,
286 [chmod a+x src/config/shlib-build
287 chmod a+x src/config/shlib-install])
289 # print a final summary