tbudb depends on tubik ...
[openafs.git] / configure.ac
1 AC_PREREQ([2.60])
2 AC_INIT([OpenAFS], m4_esyscmd([build-tools/git-version .]))
3 AC_CONFIG_AUX_DIR([build-tools])
4 AC_CONFIG_SRCDIR([src/config/stds.h])
5 AM_INIT_AUTOMAKE
6
7 AC_CONFIG_HEADER(src/config/afsconfig.h)
8 MACOS_VERSION=1.5.76
9 #LINUX_PKGREL=0.pre3
10 LINUX_PKGREL=1.1
11
12 dnl Debian wants the release candidate version in the main upstream version,
13 dnl and wants ~ before it.
14 DEB_PKGVER=m4_esyscmd([build-tools/git-version .])
15 if echo "$LINUX_PKGREL" | grep pre >/dev/null 2>/dev/null ; then
16     DEB_PKGVER="$DEB_PKGVER"`echo "$LINUX_PKGREL" | sed 's/0.pre/~rc/'`
17 fi
18
19 AC_SUBST(MACOS_VERSION)
20 AC_SUBST(DEB_PKGVER)
21
22 dnl If the user hasn't specified CFLAGS don't let configure pick -g -O2
23 AS_IF([test -z "$CFLAGS"], [CFLAGS=" "], [])
24
25 AC_USE_SYSTEM_EXTENSIONS
26
27 AC_PROG_CC
28
29 AC_PATH_PROGS([PATH_CPP], [cpp], [${CC-cc} -E], [$PATH:/lib:/usr/ccs/lib])
30 AC_SUBST([PATH_CPP])
31 OPENAFS_CONFIGURE_COMMON
32
33 dnl Probe for Kerberos.  We have a few platform-specific overrides due to
34 dnl weird Kerberos implementations and installation locations.
35 AS_CASE([$AFS_SYSNAME],
36     [*_obsd*],
37     [KRB5_CPPFLAGS="-I/usr/include/kerberosV"],
38
39     [ppc_darwin_70],
40     [KRB5_CPPFLAGS="-I/usr/include"
41      KRB5_LDFLAGS="-L/usr/lib -Wl,-search_paths_first"])
42 RRA_LIB_KRB5_OPTIONAL
43 AS_CASE([$AFS_SYSNAME],
44     [hp_ux*|*_hpux*],
45     [KRB5_LIBS="-l:libkrb5.sl -l:libcom_err.sl"])
46
47 dnl Check for the characteristics of whatever Kerberos we found, if we found
48 dnl one.
49 BUILD_KRB5=no
50 MAKE_KRB5="#"
51 AS_IF([test x"$KRB5_LIBS" != x],
52     [BUILD_KRB5=yes
53      MAKE_KRB5=
54      RRA_LIB_KRB5_SWITCH
55      AC_CHECK_FUNCS([add_error_table \
56         add_to_error_table \
57         encode_krb5_enc_tkt_part \
58         encode_krb5_ticket \
59         krb5_allow_weak_crypto \
60         krb5_c_encrypt \
61         krb5_decode_ticket \
62         krb5_enctype_enable \
63         krb5_get_init_creds_opt_alloc \
64         krb5_get_prompt_types \
65         krb5_princ_size \
66         krb5_principal_get_comp_string])
67      AC_CHECK_FUNCS([krb5_524_convert_creds], ,
68          [AC_CHECK_FUNCS([krb524_convert_creds_kdc], ,
69              [AC_CHECK_LIB([krb524], [krb524_convert_creds_kdc],
70                  [LIBS="-lkrb524 $LIBS"
71                   KRB5_LIBS="-lkrb524 $KRB5_LIBS"
72                   AC_DEFINE([HAVE_KRB524_CONVERT_CREDS_KDC], 1,
73                      [Define to 1 if you have the `krb524_convert_creds_kdc' function.])])])])
74      AC_CHECK_HEADERS([kerberosIV/krb.h])
75      AC_CHECK_HEADERS([kerberosV/heim_err.h])
76      AC_CHECK_MEMBERS([krb5_creds.keyblock, krb5_creds.keyblock.enctype, krb5_creds.session,
77                        krb5_prompt.type], , , [#include <krb5.h>])
78      RRA_LIB_KRB5_RESTORE])
79 AC_SUBST([BUILD_KRB5])
80 AC_SUBST([MAKE_KRB5])
81
82 dnl Probe for GSSAPI
83 RRA_LIB_GSSAPI
84
85 if test -d 'doc/man-pages' ; then
86     MAN_MAKEFILE="doc/man-pages/Makefile doc/man-pages/install-man"
87 else
88     MAN_MAKEFILE=
89 fi
90 if test -f 'doc/xml/AdminGuide/Makefile.in' ; then
91    ADMINGUIDE_MAKEFILE="doc/xml/AdminGuide/Makefile"
92 else
93    ADMINGUIDE_MAKEFILE=
94 fi
95 if test -f 'doc/xml/QuickStartUnix/Makefile.in' ; then
96    QSUNIX_MAKEFILE="doc/xml/QuickStartUnix/Makefile"
97 else
98    QSUNIX_MAKEFILE=
99 fi
100 if test -f 'doc/xml/UserGuide/Makefile.in' ; then
101    USERGUIDE_MAKEFILE="doc/xml/UserGuide/Makefile"
102 else
103    USERGUIDE_MAKEFILE=
104 fi
105 if test -f 'doc/xml/mobi-fixup.xsl.in' ; then
106    MOBI_FIXUP_XSL="doc/xml/mobi-fixup.xsl"
107 else
108    MOBI_FIXUP_XSL=
109 fi
110
111 AC_OUTPUT(             \
112 Makefile               \
113 ${MAN_MAKEFILE} \
114 ${ADMINGUIDE_MAKEFILE} \
115 ${QSUNIX_MAKEFILE} \
116 ${USERGUIDE_MAKEFILE} \
117 ${MOBI_FIXUP_XSL} \
118 src/afs/Makefile \
119 src/afsd/Makefile \
120 src/afsmonitor/Makefile \
121 src/afsweb/Makefile \
122 src/aklog/Makefile \
123 src/audit/Makefile \
124 src/auth/Makefile \
125 src/auth/test/Makefile \
126 src/bozo/Makefile \
127 src/bozo/test/Makefile \
128 src/bu_utils/Makefile \
129 src/bubasics/Makefile \
130 src/bucoord/Makefile \
131 src/budb/Makefile \
132 src/tbudb/Makefile \
133 src/butc/Makefile \
134 src/butm/Makefile \
135 src/cmd/Makefile \
136 src/cmd/test/Makefile \
137 src/comerr/Makefile \
138 src/comerr/test/Makefile \
139 src/config/Makefile \
140 src/config/Makefile.config \
141 src/config/Makefile.lwp \
142 src/config/Makefile.pthread \
143 src/config/Makefile.shared \
144 src/config/Makefile.version-CML \
145 src/config/Makefile.version-NOCML \
146 src/config/shlib-build \
147 src/config/shlib-install \
148 src/crypto/hcrypto/Makefile \
149 src/crypto/rfc3961/Makefile \
150 src/dir/Makefile \
151 src/dir/test/Makefile \
152 src/dviced/Makefile \
153 src/dvolser/Makefile \
154 src/export/Makefile \
155 src/finale/Makefile \
156 src/fsint/Makefile \
157 src/fsprobe/Makefile \
158 src/gtx/Makefile \
159 src/JAVA/libjafs/Makefile \
160 src/kauth/Makefile \
161 src/kauth/test/Makefile \
162 src/kopenafs/Makefile \
163 src/libacl/Makefile \
164 src/libacl/test/Makefile \
165 src/libadmin/Makefile \
166 src/libadmin/adminutil/Makefile \
167 src/libadmin/bos/Makefile \
168 src/libadmin/cfg/Makefile \
169 src/libadmin/cfg/test/Makefile \
170 src/libadmin/client/Makefile \
171 src/libadmin/kas/Makefile \
172 src/libadmin/pts/Makefile \
173 src/libadmin/samples/Makefile \
174 src/libadmin/test/Makefile \
175 src/libadmin/vos/Makefile \
176 src/libafs/Makefile.common \
177 src/libafs/MakefileProto.${MKAFS_OSTYPE} \
178 ${DARWIN_PLIST} \
179 src/libafsauthent/Makefile \
180 src/libafsrpc/Makefile \
181 src/libuafs/Makefile.common \
182 src/libuafs/MakefileProto.${MKAFS_OSTYPE} \
183 src/log/Makefile \
184 src/log/test/Makefile \
185 src/lwp/Makefile \
186 src/lwp/test/Makefile \
187 src/packaging/Debian/changelog \
188 src/packaging/MacOS/OpenAFS-debug.Description.plist \
189 src/packaging/MacOS/OpenAFS-debug.Info.plist \
190 src/packaging/MacOS/OpenAFS.Description.plist \
191 src/packaging/MacOS/OpenAFS.Info.plist \
192 src/packaging/MacOS/OpenAFS.info \
193 src/packaging/MacOS/buildpkg.sh \
194 src/pam/Makefile \
195 src/platform/Makefile \
196 src/platform/${MKAFS_OSTYPE}/Makefile \
197 src/platform/DARWIN/growlagent/Makefile \
198 src/procmgmt/Makefile \
199 src/procmgmt/test/Makefile \
200 src/ptserver/Makefile \
201 src/tptserver/Makefile \
202 src/roken/Makefile \
203 src/rx/Makefile \
204 src/rx/bulk.example/Makefile \
205 src/rx/bulktest/Makefile \
206 src/rx/multi.example/Makefile \
207 src/rx/simple.example/Makefile \
208 src/rx/test/Makefile \
209 src/rxdebug/Makefile \
210 src/rxgen/Makefile \
211 src/rxkad/Makefile \
212 src/rxkad/test/Makefile \
213 src/rxosd/Makefile \
214 src/rxstat/Makefile \
215 src/scout/Makefile \
216 src/sgistuff/Makefile \
217 src/shlibafsauthent/Makefile \
218 src/shlibafsrpc/Makefile \
219 src/sys/Makefile \
220 src/tbutc/Makefile \
221 src/tests/Makefile \
222 src/tests/run-tests \
223 src/tsalvaged/Makefile \
224 src/tsm41/Makefile \
225 src/tviced/Makefile \
226 src/tvolser/Makefile \
227 src/ubik/Makefile \
228 src/tubik/Makefile \
229 src/update/Makefile \
230 src/usd/Makefile \
231 src/usd/test/Makefile \
232 src/uss/Makefile \
233 src/util/Makefile \
234 src/util/test/Makefile \
235 src/libafscp/Makefile \
236 src/venus/Makefile \
237 src/venus/test/Makefile \
238 src/vfsck/Makefile \
239 src/viced/Makefile \
240 src/vlserver/Makefile \
241 src/tvlserver/Makefile \
242 src/vol/Makefile \
243 src/vol/test/Makefile \
244 src/volser/Makefile \
245 src/xstat/Makefile \
246 src/helper-splint.sh \
247 tests/Makefile \
248 tests/auth/Makefile \
249 tests/cmd/Makefile \
250 tests/common/Makefile \
251 tests/rpctestlib/Makefile \
252 tests/tap/Makefile \
253 tests/util/Makefile \
254 tests/volser/Makefile,
255
256 [chmod a+x src/config/shlib-build
257  chmod a+x src/config/shlib-install])
258
259 # print a final summary
260 SUMMARY