2 AC_INIT([OpenAFS],[m4_esyscmd(build-tools/git-version .)],[openafs-bugs@openafs.org],[],[http://www.openafs.org/])
3 AC_CONFIG_AUX_DIR([build-tools])
4 AC_CONFIG_MACRO_DIR([src/cf])
5 AC_CONFIG_SRCDIR([src/config/stds.h])
7 AC_CONFIG_HEADER([src/config/afsconfig.h])
11 AC_SUBST([MACOS_VERSION])
13 dnl If the user hasn't specified CFLAGS don't let configure pick -g -O2
14 AS_IF([test -z "$CFLAGS"], [CFLAGS=" "])
16 AC_USE_SYSTEM_EXTENSIONS
22 AC_PATH_PROGS([PATH_CPP], [cpp], [${CC-cc} -E], [$PATH:/lib:/usr/ccs/lib])
24 OPENAFS_CONFIGURE_COMMON
26 dnl Probe for Kerberos. We have a few platform-specific overrides due to
27 dnl weird Kerberos implementations and installation locations.
28 AS_CASE([$AFS_SYSNAME],
30 [KRB5_CPPFLAGS="-I/usr/include/kerberosV"],
33 [KRB5_CPPFLAGS="-I/usr/include"
34 KRB5_LDFLAGS="-L/usr/lib -Wl,-search_paths_first"])
36 AS_CASE([$AFS_SYSNAME],
38 [KRB5_LIBS="-l:libkrb5.sl -l:libcom_err.sl"])
40 dnl Check for the characteristics of whatever Kerberos we found, if we found
44 AS_IF([test x"$KRB5_LIBS" != x],
48 AC_CHECK_FUNCS([add_error_table \
50 encode_krb5_enc_tkt_part \
52 krb5_524_conv_principal \
53 krb5_allow_weak_crypto \
57 krb5_free_keytab_entry_contents \
58 krb5_free_unparsed_name \
59 krb5_get_init_creds_opt_alloc \
60 krb5_get_prompt_types \
62 krb5_principal_get_comp_string])
63 AC_CHECK_FUNCS([krb5_524_convert_creds], [],
64 [AC_CHECK_FUNCS([krb524_convert_creds_kdc], [],
65 [AC_CHECK_LIB([krb524], [krb524_convert_creds_kdc],
66 [LIBS="-lkrb524 $LIBS"
67 KRB5_LIBS="-lkrb524 $KRB5_LIBS"
68 AC_CHECK_LIB([krb524], [krb5_524_conv_principal],
69 [AC_DEFINE([HAVE_KRB5_524_CONV_PRINCIPAL], [1],
70 [Define to 1 if you have the `krb5_524_conv_principal' function.])
72 AC_DEFINE([HAVE_KRB524_CONVERT_CREDS_KDC], [1],
73 [Define to 1 if you have the `krb524_convert_creds_kdc' function.])
77 AC_CHECK_HEADERS([kerberosIV/krb.h])
78 AC_CHECK_HEADERS([kerberosV/heim_err.h])
79 AC_CHECK_HEADERS([com_err.h et/com_err.h krb5/com_err.h])
80 AS_IF([test x"$ac_cv_header_com_err_h" != xyes \
81 && test x"$ac_cv_header_et_com_err_h" != xyes \
82 && test x"$ac_cv_header_krb5_com_err_h" != xyes],
83 [AC_MSG_ERROR([Cannot find a usable com_err.h])])
84 AC_CHECK_MEMBERS([krb5_creds.keyblock, krb5_creds.keyblock.enctype, krb5_creds.session,
85 krb5_prompt.type], [], [], [#include <krb5.h>])
86 AC_CHECK_MEMBERS([krb5_keytab_entry.key, krb5_keytab_entry.keyblock],
87 [], [], [#include <krb5.h>])
88 dnl If we have krb5_creds.session, we are using heimdal
89 dnl If we're using heimdal, aklog needs libasn1 for encode_EncTicketPart and a
90 dnl few other functions. But just aklog; not any of the other stuff that uses
92 AS_IF([test x"$ac_cv_member_krb5_creds_session" = xyes],
93 [AC_CHECK_LIB([asn1], [encode_EncTicketPart],
94 [AKLOG_KRB5_LIBS="-lasn1"])
98 AC_SUBST([BUILD_KRB5])
100 AC_SUBST([AKLOG_KRB5_LIBS])
104 dnl Check for the characteristics of whatever GSSAPI we found, if we found one
106 AS_IF([test x"$GSSAPI_LIBS" != x],
108 RRA_LIB_GSSAPI_SWITCH
109 AC_CHECK_FUNCS([gss_pseudo_random \
110 krb5_gss_register_acceptor_identity \
111 gss_krb5_ccache_name \
113 dnl We only need gssapi for rxgk (at this point). rxgk requires pseudo_random.
114 AS_IF([test x"$ac_cv_func_gss_pseudo_random" != xyes],
116 RRA_LIB_GSSAPI_RESTORE
118 AC_SUBST([BUILD_GSSAPI])
120 dnl Checks for summary
121 OPENAFS_SUMMARY_CHECK_NAMEI
123 AS_IF([test -d 'doc/man-pages'],
124 [MAN_MAKEFILE="doc/man-pages/Makefile doc/man-pages/install-man"],
126 AS_IF([test -f 'doc/xml/AdminGuide/Makefile.in'],
127 [ADMINGUIDE_MAKEFILE="doc/xml/AdminGuide/Makefile"],
128 [ADMINGUIDE_MAKEFILE=])
129 AS_IF([test -f 'doc/xml/QuickStartUnix/Makefile.in'],
130 [QSUNIX_MAKEFILE="doc/xml/QuickStartUnix/Makefile"],
132 AS_IF([test -f 'doc/xml/UserGuide/Makefile.in'],
133 [USERGUIDE_MAKEFILE="doc/xml/UserGuide/Makefile"],
134 [USERGUIDE_MAKEFILE=])
135 AS_IF([test -f 'doc/xml/AdminRef/Makefile.in'],
136 [ADMINREF_MAKEFILE="doc/xml/AdminRef/Makefile"],
137 [ADMINREF_MAKEFILE=])
138 AS_IF([test -f 'doc/xml/mobi-fixup.xsl.in'],
139 [MOBI_FIXUP_XSL="doc/xml/mobi-fixup.xsl"],
141 AS_IF([test -f 'doc/doxygen/Doxyfile.in'],
142 [DOXYFILE="doc/doxygen/Doxyfile"],
148 ${ADMINGUIDE_MAKEFILE}
150 ${USERGUIDE_MAKEFILE}
156 src/afsmonitor/Makefile
161 src/auth/test/Makefile
163 src/bozo/test/Makefile
164 src/bu_utils/Makefile
165 src/bubasics/Makefile
172 src/cmd/test/Makefile
174 src/comerr/test/Makefile
176 src/config/Makefile.config
177 src/config/Makefile.libtool
178 src/config/Makefile.lwp
179 src/config/Makefile.lwptool
180 src/config/Makefile.pthread
181 src/config/Makefile.version-CML
182 src/config/Makefile.version-NOCML
183 src/config/shlib-build
184 src/config/shlib-install
185 src/crypto/hcrypto/Makefile
186 src/crypto/rfc3961/Makefile
188 src/dir/test/Makefile
196 src/JAVA/libjafs/Makefile
198 src/kauth/test/Makefile
199 src/kopenafs/Makefile
201 src/libacl/test/Makefile
202 src/libadmin/Makefile
203 src/libadmin/adminutil/Makefile
204 src/libadmin/bos/Makefile
205 src/libadmin/cfg/Makefile
206 src/libadmin/cfg/test/Makefile
207 src/libadmin/client/Makefile
208 src/libadmin/kas/Makefile
209 src/libadmin/pts/Makefile
210 src/libadmin/samples/Makefile
211 src/libadmin/test/Makefile
212 src/libadmin/vos/Makefile
213 src/libafs/Makefile.common
214 src/libafs/MakefileProto.${MKAFS_OSTYPE}
216 src/libafsauthent/Makefile
217 src/libafsrpc/Makefile
218 src/libuafs/Makefile.common
219 src/libuafs/MakefileProto.${MKAFS_OSTYPE}
221 src/log/test/Makefile
223 src/lwp/test/Makefile
225 src/packaging/MacOS/OpenAFS-debug.Description.plist
226 src/packaging/MacOS/OpenAFS-debug.Info.plist
227 src/packaging/MacOS/OpenAFS.Description.plist
228 src/packaging/MacOS/OpenAFS.Info.plist
229 src/packaging/MacOS/OpenAFS.info
230 src/packaging/MacOS/buildpkg.sh
231 src/packaging/MacOS/pkgbuild.sh
233 src/platform/Makefile
234 src/platform/${MKAFS_OSTYPE}/Makefile
235 src/platform/DARWIN/growlagent/Makefile
236 src/procmgmt/Makefile
237 src/procmgmt/test/Makefile
238 src/ptserver/Makefile
239 src/tptserver/Makefile
242 src/rx/bulk.example/Makefile
243 src/rx/bulktest/Makefile
244 src/rx/multi.example/Makefile
245 src/rx/simple.example/Makefile
251 src/rxkad/test/Makefile
260 src/tools/dumpscan/Makefile
261 src/tools/rxperf/Makefile
262 src/tsalvaged/Makefile
269 src/usd/test/Makefile
272 src/util/test/Makefile
273 src/libafscp/Makefile
275 src/venus/test/Makefile
278 src/vlserver/Makefile
279 src/tvlserver/Makefile
281 src/vol/test/Makefile
288 tests/common/Makefile
290 tests/rpctestlib/Makefile
294 tests/volser/Makefile])
295 AC_CONFIG_COMMANDS([default],[chmod a+x src/config/shlib-build
296 chmod a+x src/config/shlib-install],[])
299 # print a final summary