mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 06:50:12 +00:00
2a659ba160
Autoconf 2.70 (released in 2020-12) produces warning messages about obsolete constructs by default. Running regen.sh with autoconf 2.70 installed produces the following warnings: .. configure.ac:7: warning: The macro `AC_CONFIG_HEADER' is obsolete. configure.ac:21: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete configure.ac:21: warning: The macro `AC_HEADER_STDC' is obsolete. configure.ac:21: warning: The macro `AC_HEADER_TIME' is obsolete. .. Replace AC_CONFIG_HEADER with AC_CONFIG_HEADERS Add the noyywrap parameter to AC_PROG_LEX. Use the noyywrap option since we already provide a yywrap function in the .l sources. Remove AC_HEADER_STDC. There are no references to the the autoconf variable set by this macro. This macro was marked as obsolete prior to autoconf 2.64 with the following note: "This macro is obsolescent, as current systems have conforming header files. New programs need not use this macro." AC_HEADER_TIME was marked as obsolete prior to autoconf 2.64 with the following note: "This macro is obsolescent, as current systems can include both files when they exist. New programs need not use this macro." The only reference that requires AC_HEADER_TIME is within the external roken code pulled from heimdal. Compiles that use the external upstream heimdal packages result in a build error if TIME_WITH_SYS_TIME is not defined: building src/crypto/hcrypto src/external/heimdal/hcrypto/camellia.c include/roken.h:803:58: error: ‘struct tm’ declared inside Update autoheader.m4 so a define for TIME_WITH_SYS_TIME is created. This avoids modifying the external heimdal/roken code. Change-Id: If4d6c0650aac617f535b35f81994b54a3b8ac021 Reviewed-on: https://gerrit.openafs.org/14838 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Andrew Deason <adeason@sinenomine.net> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
83 lines
1.7 KiB
Plaintext
83 lines
1.7 KiB
Plaintext
dnl This file contains the common configuration code which would
|
|
dnl otherwise be duplicated between configure and configure-libafs.
|
|
dnl
|
|
dnl NB: Because this code is a macro, references to positional shell
|
|
dnl parameters must be done like $[]1 instead of $1
|
|
|
|
AC_DEFUN([OPENAFS_CONFIGURE_COMMON],[
|
|
OPENAFS_AUTOHEADER_TOP
|
|
OPENAFS_AUTOHEADER_BOTTOM
|
|
AC_CANONICAL_HOST
|
|
SRCDIR_PARENT=`pwd`
|
|
|
|
#BOZO_SAVE_CORES pam
|
|
OPENAFS_OPTIONS
|
|
OPENAFS_DOC
|
|
|
|
dnl Checks for UNIX variants.
|
|
AC_SEARCH_LIBS([strerror],[cposix])
|
|
|
|
dnl Various compiler setup.
|
|
AC_TYPE_PID_T
|
|
AC_TYPE_SIZE_T
|
|
|
|
dnl Checks for programs.
|
|
AC_PROG_INSTALL
|
|
AC_PROG_LN_S
|
|
AC_PROG_RANLIB
|
|
AC_PROG_YACC
|
|
OPENAFS_LEX
|
|
|
|
dnl Checks
|
|
OPENAFS_FORCE_ABS_INSTALL
|
|
OPENAFS_CHECK_BIGENDIAN
|
|
OPENAFS_PRINTF_TAKES_Z_LEN
|
|
OPENAFS_OSTYPE
|
|
OPENAFS_SYSNAME
|
|
OPENAFS_OSCONF
|
|
OPENAFS_LINUX_CHECKS
|
|
OPENAFS_C_ATOMIC_CHECKS
|
|
OPENAFS_SOCKET_CHECKS
|
|
OPENAFS_LIBRARY_CHECKS
|
|
AC_CHECK_RESOLV_RETRANS
|
|
OPENAFS_SOCKOPT_CHECK
|
|
OPENAFS_PTHREAD_CHECKS
|
|
HOST_CPU="$host_cpu"
|
|
OPENAFS_BSD_CHECKS
|
|
OPENAFS_OPTION_TESTS
|
|
OPENAFS_TIVOLI_TESTS
|
|
OPENAFS_HEADER_CHECKS
|
|
OPENAFS_MEMBER_CHECKS
|
|
OPENAFS_LIBINTL_CHECKS
|
|
OPENAFS_MORE_OPTION_TESTS
|
|
OPENAFS_FUNCTION_CHECKS
|
|
OPENAFS_ROKEN
|
|
OPENAFS_HCRYPTO
|
|
OPENAFS_CURSES
|
|
OPENAFS_C_ATTRIBUTE
|
|
OPENAFS_C_PRAGMA
|
|
OPENAFS_MORE_ROKEN_CHECKS
|
|
OPENAFS_NETDB_CHECKS
|
|
OPENAFS_ROKEN_HEADERS
|
|
OPENAFS_BSWAP_CHECKS
|
|
OPENAFS_PIO_CHECKS
|
|
OPENAFS_REGEX_CHECKS
|
|
OPENAFS_MORE_PTHREAD_CHECKS
|
|
OPENAFS_TYPE_CHECKS
|
|
RRA_HEADER_PAM_CONST
|
|
OPENAFS_DIRECTORY_PATHS
|
|
OPENAFS_YET_MORE_OPTION_TESTS
|
|
OPENAFS_OUTPUT_VARIABLES
|
|
OPENAFS_FUSE
|
|
OPENAFS_SWIG
|
|
OPENAFS_TOPDIRS
|
|
OPENAFS_CROSSTOOLS
|
|
OPENAFS_LINT
|
|
OPENAFS_CRYPT_CHECKS
|
|
OPENAFS_C_STRUCT_LABEL_CHECK
|
|
OPENAFS_DIRENT_CHECKS
|
|
OPENAFS_SYS_RESOURCE_CHECKS
|
|
OPENAFS_UUID_CHECKS
|
|
OPENAFS_CTF_TOOLS_CHECKS
|
|
])
|