-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure.ac: Move header and function checks to the end of the file #860
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,25 +35,6 @@ LT_INIT | |
|
||
dnl Checks for libraries. | ||
|
||
dnl Checks for header files. | ||
AC_CHECK_HEADERS(crypt.h utmp.h \ | ||
termio.h sgtty.h sys/ioctl.h paths.h \ | ||
sys/capability.h sys/random.h \ | ||
gshadow.h lastlog.h rpc/key_prot.h acl/libacl.h \ | ||
attr/libattr.h attr/error_context.h) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here -- these attr/ probes should be deleted since libattr is detected below, including these headers |
||
|
||
dnl shadow now uses the libc's shadow implementation | ||
AC_CHECK_HEADER([shadow.h],,[AC_MSG_ERROR([You need a libc with shadow.h])]) | ||
|
||
AC_CHECK_FUNCS(arc4random_buf futimes \ | ||
getentropy getrandom getspnam getusershell \ | ||
initgroups lckpwdf lutimes \ | ||
setgroups updwtmp updwtmpx innetgr \ | ||
getspnam_r \ | ||
rpmatch \ | ||
memset_explicit explicit_bzero stpecpy stpeprintf) | ||
AC_SYS_LARGEFILE | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
dnl Checks for typedefs, structures, and compiler characteristics. | ||
|
||
AC_CHECK_MEMBERS([struct utmp.ut_type, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think some of these tests below could be affected by which headers are detected. worth double checking config.log to see what the generated tests are with the default set of header includes. |
||
|
@@ -704,6 +685,25 @@ if test "$with_skey" = "yes"; then | |
]])],[AC_DEFINE(SKEY_BSD_STYLE, 1, [Define to support newer BSD S/Key API])],[]) | ||
fi | ||
|
||
dnl Checks for header files. | ||
AC_CHECK_HEADERS(crypt.h utmp.h \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not exactly a new issue, but this (and funcs below) should ideally be using the |
||
termio.h sgtty.h sys/ioctl.h paths.h \ | ||
sys/capability.h sys/random.h \ | ||
gshadow.h lastlog.h rpc/key_prot.h acl/libacl.h \ | ||
attr/libattr.h attr/error_context.h) | ||
|
||
dnl shadow now uses the libc's shadow implementation | ||
AC_CHECK_HEADER([shadow.h],,[AC_MSG_ERROR([You need a libc with shadow.h])]) | ||
|
||
AC_CHECK_FUNCS(arc4random_buf futimes \ | ||
getentropy getrandom getspnam getusershell \ | ||
initgroups lckpwdf lutimes \ | ||
setgroups updwtmp updwtmpx innetgr \ | ||
getspnam_r \ | ||
rpmatch \ | ||
memset_explicit explicit_bzero stpecpy stpeprintf) | ||
AC_SYS_LARGEFILE | ||
|
||
PKG_CHECK_MODULES([CMOCKA], [cmocka], [have_cmocka="yes"], | ||
[AC_MSG_WARN([libcmocka not found, cmocka tests will not be built])]) | ||
AM_CONDITIONAL([HAVE_CMOCKA], [test x$have_cmocka = xyes]) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
acl/libacl.h
shouldn't be probed like this. plus, it's already probed below as part of the larger libacl detection. ideally all of that would be deleted in favor of PKG_CHECK_MODULES calls ... doing that would also help cut down on noise by turning ~30 lines into like <5.