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])
9 AM_INIT_AUTOMAKE([foreign])
11 AC_CONFIG_HEADER([src/config/afsconfig.h])
12 MACOS_VERSION=1.8.0fc1
13 LINUX_PKGREL=1.8.0pre1
15 AC_SUBST([MACOS_VERSION])
17 dnl If the user hasn't specified CFLAGS don't let configure pick -g -O2
18 AS_IF([test -z "$CFLAGS"], [CFLAGS=" "])
20 AC_USE_SYSTEM_EXTENSIONS
27 AC_PATH_PROGS([PATH_CPP], [cpp], [${CC-cc} -E], [$PATH:/lib:/usr/ccs/lib])
29 OPENAFS_CONFIGURE_COMMON
31 dnl Probe for Kerberos. We have a few platform-specific overrides due to
32 dnl weird Kerberos implementations and installation locations.
33 AS_CASE([$AFS_SYSNAME],
35 [KRB5_CPPFLAGS="-I/usr/include/kerberosV"],
38 [KRB5_CPPFLAGS="-I/usr/include"
39 KRB5_LDFLAGS="-L/usr/lib -Wl,-search_paths_first"])
41 AS_CASE([$AFS_SYSNAME],
43 [KRB5_LIBS="-l:libkrb5.sl -l:libcom_err.sl"])
45 dnl Check for the characteristics of whatever Kerberos we found, if we found
49 AS_IF([test x"$KRB5_LIBS" != x],
53 AC_CHECK_FUNCS([add_error_table \
55 encode_krb5_enc_tkt_part \
57 krb5_524_conv_principal \
58 krb5_allow_weak_crypto \
62 krb5_free_keytab_entry_contents \
63 krb5_free_unparsed_name \
64 krb5_get_init_creds_opt_alloc \
65 krb5_get_prompt_types \
67 krb5_principal_get_comp_string])
68 AC_CHECK_FUNCS([krb5_524_convert_creds], [],
69 [AC_CHECK_FUNCS([krb524_convert_creds_kdc], [],
70 [AC_CHECK_LIB([krb524], [krb524_convert_creds_kdc],
71 [LIBS="-lkrb524 $LIBS"
72 KRB5_LIBS="-lkrb524 $KRB5_LIBS"
73 AC_CHECK_LIB([krb524], [krb5_524_conv_principal],
74 [AC_DEFINE([HAVE_KRB5_524_CONV_PRINCIPAL], [1],
75 [Define to 1 if you have the `krb5_524_conv_principal' function.])
77 AC_DEFINE([HAVE_KRB524_CONVERT_CREDS_KDC], [1],
78 [Define to 1 if you have the `krb524_convert_creds_kdc' function.])
82 AC_CHECK_HEADERS([kerberosIV/krb.h])
83 AC_CHECK_HEADERS([kerberosV/heim_err.h])
84 AC_CHECK_HEADERS([com_err.h et/com_err.h krb5/com_err.h])
85 AS_IF([test x"$ac_cv_header_com_err_h" != xyes \
86 && test x"$ac_cv_header_et_com_err_h" != xyes \
87 && test x"$ac_cv_header_krb5_com_err_h" != xyes],
88 [AC_MSG_ERROR([Cannot find a usable com_err.h])])
89 AC_CHECK_MEMBERS([krb5_creds.keyblock, krb5_creds.keyblock.enctype, krb5_creds.session,
90 krb5_prompt.type], [], [], [#include <krb5.h>])
91 AC_CHECK_MEMBERS([krb5_keytab_entry.key, krb5_keytab_entry.keyblock],
92 [], [], [#include <krb5.h>])
93 dnl If we have krb5_creds.session, we are using heimdal
94 dnl If we're using heimdal, aklog needs libasn1 for encode_EncTicketPart and a
95 dnl few other functions. But just aklog; not any of the other stuff that uses
97 AS_IF([test x"$ac_cv_member_krb5_creds_session" = xyes],
98 [AC_CHECK_LIB([asn1], [encode_EncTicketPart],
99 [AKLOG_KRB5_LIBS="-lasn1"])
103 AC_SUBST([BUILD_KRB5])
104 AC_SUBST([MAKE_KRB5])
105 AC_SUBST([AKLOG_KRB5_LIBS])
109 dnl Check for the characteristics of whatever GSSAPI we found, if we found one
111 AS_IF([test x"$GSSAPI_LIBS" != x],
113 RRA_LIB_GSSAPI_SWITCH
114 AC_CHECK_FUNCS([gss_pseudo_random \
115 krb5_gss_register_acceptor_identity \
116 gss_krb5_ccache_name \
118 dnl We only need gssapi for rxgk (at this point). rxgk requires pseudo_random.
119 AS_IF([test x"$ac_cv_func_gss_pseudo_random" != xyes],
121 RRA_LIB_GSSAPI_RESTORE
123 AC_SUBST([BUILD_GSSAPI])
125 dnl Checks for summary
126 OPENAFS_SUMMARY_CHECK_NAMEI
128 AS_IF([test -d 'doc/man-pages'],
129 [MAN_MAKEFILE="doc/man-pages/Makefile doc/man-pages/install-man"],
131 AS_IF([test -f 'doc/xml/AdminGuide/Makefile.in'],
132 [ADMINGUIDE_MAKEFILE="doc/xml/AdminGuide/Makefile"],
133 [ADMINGUIDE_MAKEFILE=])
134 AS_IF([test -f 'doc/xml/QuickStartUnix/Makefile.in'],
135 [QSUNIX_MAKEFILE="doc/xml/QuickStartUnix/Makefile"],
137 AS_IF([test -f 'doc/xml/UserGuide/Makefile.in'],
138 [USERGUIDE_MAKEFILE="doc/xml/UserGuide/Makefile"],
139 [USERGUIDE_MAKEFILE=])
140 AS_IF([test -f 'doc/xml/AdminRef/Makefile.in'],
141 [ADMINREF_MAKEFILE="doc/xml/AdminRef/Makefile"],
142 [ADMINREF_MAKEFILE=])
143 AS_IF([test -f 'doc/xml/mobi-fixup.xsl.in'],
144 [MOBI_FIXUP_XSL="doc/xml/mobi-fixup.xsl"],
146 AS_IF([test -f 'doc/doxygen/Doxyfile.in'],
147 [DOXYFILE="doc/doxygen/Doxyfile"],
153 ${ADMINGUIDE_MAKEFILE}
155 ${USERGUIDE_MAKEFILE}
161 src/afsmonitor/Makefile
166 src/auth/test/Makefile
168 src/bozo/test/Makefile
169 src/bu_utils/Makefile
170 src/bubasics/Makefile
177 src/cmd/test/Makefile
179 src/comerr/test/Makefile
181 src/config/Makefile.config
182 src/config/Makefile.libtool
183 src/config/Makefile.lwp
184 src/config/Makefile.lwptool
185 src/config/Makefile.pthread
186 src/config/Makefile.version-CML
187 src/config/Makefile.version-NOCML
188 src/config/shlib-build
189 src/config/shlib-install
190 src/crypto/hcrypto/Makefile
191 src/crypto/rfc3961/Makefile
193 src/dir/test/Makefile
201 src/JAVA/libjafs/Makefile
203 src/kauth/test/Makefile
204 src/kopenafs/Makefile
206 src/libacl/test/Makefile
207 src/libadmin/Makefile
208 src/libadmin/adminutil/Makefile
209 src/libadmin/bos/Makefile
210 src/libadmin/cfg/Makefile
211 src/libadmin/cfg/test/Makefile
212 src/libadmin/client/Makefile
213 src/libadmin/kas/Makefile
214 src/libadmin/pts/Makefile
215 src/libadmin/samples/Makefile
216 src/libadmin/test/Makefile
217 src/libadmin/vos/Makefile
218 src/libafs/Makefile.common
219 src/libafs/MakefileProto.${MKAFS_OSTYPE}
221 src/libafsauthent/Makefile
222 src/libafsrpc/Makefile
223 src/libuafs/Makefile.common
224 src/libuafs/MakefileProto.${MKAFS_OSTYPE}
226 src/log/test/Makefile
228 src/lwp/test/Makefile
230 src/packaging/MacOS/OpenAFS-debug.Description.plist
231 src/packaging/MacOS/OpenAFS-debug.Info.plist
232 src/packaging/MacOS/OpenAFS.Description.plist
233 src/packaging/MacOS/OpenAFS.Info.plist
234 src/packaging/MacOS/OpenAFS.info
235 src/packaging/MacOS/buildpkg.sh
236 src/packaging/MacOS/pkgbuild.sh
238 src/platform/Makefile
239 src/platform/${MKAFS_OSTYPE}/Makefile
240 src/platform/DARWIN/growlagent/Makefile
241 src/procmgmt/Makefile
242 src/procmgmt/test/Makefile
243 src/ptserver/Makefile
244 src/tptserver/Makefile
247 src/rx/bulk.example/Makefile
248 src/rx/bulktest/Makefile
249 src/rx/multi.example/Makefile
250 src/rx/simple.example/Makefile
256 src/rxkad/test/Makefile
265 src/tools/dumpscan/Makefile
266 src/tools/rxperf/Makefile
267 src/tsalvaged/Makefile
274 src/usd/test/Makefile
277 src/util/test/Makefile
278 src/libafscp/Makefile
280 src/venus/test/Makefile
283 src/vlserver/Makefile
284 src/tvlserver/Makefile
286 src/vol/test/Makefile
293 tests/common/Makefile
295 tests/rpctestlib/Makefile
299 tests/volser/Makefile],
300 [chmod a+x src/config/shlib-build
301 chmod a+x src/config/shlib-install])
303 # print a final summary