Commit | Line | Data |
---|---|---|
805e021f CE |
1 | dnl |
2 | dnl configure summary | |
3 | dnl | |
4 | dnl | |
5 | dnl OPENAFS_SUMMARY_CHECK_NAME | |
6 | dnl | |
7 | dnl Check whether namei fileserver is enabled for this platform/configure options. | |
8 | dnl When namei is enabled with a configure option, the AFS_NAMEI_ENV will be defined | |
9 | dnl for the test program. AFS_NAMEI_ENV can also be defined in the platform and sysname | |
10 | dnl param headers for this platform. Avoid including the afs/afs_sysnames.h header since | |
11 | dnl it has not been installed to the `include/afs' system directory yet (and is not | |
12 | dnl needed for this namei check). | |
13 | dnl | |
14 | dnl Note that, if set, AFS_PARAM_COMMON is the header filename, including the .h suffix. | |
15 | dnl | |
16 | AC_DEFUN([OPENAFS_SUMMARY_CHECK_NAMEI], | |
17 | [AC_CACHE_CHECK([whether namei fileserver is enabled], [openafs_cv_summary_check_namei], | |
18 | [rm -f conftestparam.h; touch conftestparam.h; # automatically cleaned up by configure | |
19 | AS_IF([test "x${AFS_PARAM_COMMON}" != "x" && test -f "src/config/${AFS_PARAM_COMMON}"], | |
20 | [grep -v '#include <afs/afs_sysnames.h>' "src/config/${AFS_PARAM_COMMON}" >> conftestparam.h]) | |
21 | AS_IF([test "x${AFS_SYSNAME}" != "x" && test -f "src/config/param.${AFS_SYSNAME}.h"], | |
22 | [grep -v '#include <afs/afs_sysnames.h>' "src/config/param.${AFS_SYSNAME}.h" >> conftestparam.h]) | |
23 | AC_COMPILE_IFELSE( | |
24 | [AC_LANG_PROGRAM([[ | |
25 | #define IGNORE_STDS_H | |
26 | #include "conftestparam.h" | |
27 | ]], [[ | |
28 | #ifndef AFS_NAMEI_ENV | |
29 | namei_disabled | |
30 | #endif | |
31 | ]])], | |
32 | [openafs_cv_summary_check_namei="yes"], | |
33 | [openafs_cv_summary_check_namei="no"]) | |
34 | ]) | |
35 | ]) | |
36 | dnl | |
37 | dnl OPENAFS_SUMMARY | |
38 | dnl | |
39 | dnl Print the configure summary. | |
40 | dnl | |
41 | AC_DEFUN([OPENAFS_SUMMARY],[ | |
42 | AS_IF([test "x${LIB_curses}" = "x"], | |
43 | [summary_build_scout="no"], | |
44 | [summary_build_scout="yes"]) | |
45 | AS_IF([test "x${DOCBOOK_STYLESHEETS}" = "x"], | |
46 | [summary_docbook_stylesheets="no"], | |
47 | [summary_docbook_stylesheets="yes"]) | |
48 | AS_IF([test "x${DOXYGEN}" = "x"], | |
49 | [summary_doxygen="no"], | |
50 | [summary_doxygen="yes"]) | |
51 | AS_IF([test "${summary_doxygen}" = "yes" -a "${HAVE_DOT}" = "yes"], | |
52 | [summary_doxygen_graphs="yes"], | |
53 | [summary_doxygen_graphs="no"]) | |
54 | AS_IF([test "x$CTFCONVERT" != "x" -a "x$CTFMERGE" != "x"], | |
55 | [summary_ctf_tools="yes"], | |
56 | [summary_ctf_tools="no"]) | |
57 | ||
58 | cat <<EOF | |
59 | *************************************************************** | |
60 | OpenAFS configure summary | |
61 | ||
62 | version : ${PACKAGE_VERSION} | |
63 | sysname : ${AFS_SYSNAME} | |
64 | ||
65 | debug: | |
66 | userspace : ${enable_debug} | |
67 | kernel : ${enable_debug_kernel} | |
68 | ctf-tools : ${summary_ctf_tools} | |
69 | options: | |
70 | transarc paths : ${enable_transarc_paths} | |
71 | namei fileserver : ${openafs_cv_summary_check_namei} | |
72 | use unix sockets : ${USE_UNIX_SOCKETS} | |
73 | ptserver supergroups : ${enable_supergroups} | |
74 | pthreaded ubik : ${enable_pthreaded_ubik} | |
75 | install kauth : ${INSTALL_KAUTH} | |
76 | ubik read while write : ${enable_ubik_read_while_write} | |
77 | build: | |
78 | kernel module : ${enable_kernel_module} | |
79 | scout/afsmonitor : ${summary_build_scout} | |
80 | pam : ${HAVE_PAM} | |
81 | login : ${BUILD_LOGIN} | |
82 | doc generation: | |
83 | docbook stylesheets : ${summary_docbook_stylesheets} | |
84 | doxygen : ${summary_doxygen} | |
85 | doxygen graphs : ${summary_doxygen_graphs} | |
86 | libraries: | |
87 | krb5 : ${KRB5_LIBS} | |
88 | curses : ${LIB_curses} | |
89 | afsdb : ${LIB_AFSDB} | |
90 | crypt : ${LIB_crypt} | |
91 | hcrypto : ${LIB_hcrypto} | |
92 | intl : ${LIB_libintl} | |
93 | *************************************************************** | |
94 | EOF | |
95 | ]) |