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