Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
78bb5761
Commit
78bb5761
authored
Sep 05, 2018
by
Ondřej Surý
Browse files
Replace custom HAVE_SYSCTLBYNAME define with AC_CHECK_FUNCS call
parent
4a5ecad0
Changes
4
Hide whitespace changes
Inline
Side-by-side
acconfig.h
View file @
78bb5761
...
...
@@ -17,9 +17,6 @@
***/
@
TOP
@
/** define if sysctlbyname() is available */
#undef HAVE_SYSCTLBYNAME
/** define if catgets() is available */
#undef HAVE_CATGETS
...
...
config.h.in
View file @
78bb5761
...
...
@@ -17,9 +17,6 @@
*** it does not get installed.
***/
/** define if sysctlbyname() is available */
#undef HAVE_SYSCTLBYNAME
/** define if catgets() is available */
#undef HAVE_CATGETS
...
...
@@ -410,6 +407,9 @@
/* Define to 1 if you have the `sysconf' function. */
#undef HAVE_SYSCONF
/* Define to 1 if you have the `sysctlbyname' function. */
#undef HAVE_SYSCTLBYNAME
/* Define to 1 if you have the <sys/capability.h> header file. */
#undef HAVE_SYS_CAPABILITY_H
...
...
configure
View file @
78bb5761
...
...
@@ -13573,12 +13573,6 @@ if test $ac_cv_c_volatile = no; then
$as_echo "#define volatile /**/" >>confdefs.h
fi
ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
if test "x$ac_cv_func_sysctlbyname" = xyes; then :
$as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
fi
...
...
@@ -13624,6 +13618,18 @@ $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
fi
for ac_func in sysctlbyname
do :
ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
if test "x$ac_cv_func_sysctlbyname" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_SYSCTLBYNAME 1
_ACEOF
fi
done
#
# Check for the existence of mmap to enable the fast format zones
#
...
...
configure.in
View file @
78bb5761
...
...
@@ -458,9 +458,10 @@ AC_CHECK_HEADERS([threads.h],
AC_C_CONST
AC_C_INLINE
AC_C_VOLATILE
AC_CHECK_FUNC(sysctlbyname, AC_DEFINE(HAVE_SYSCTLBYNAME))
AC_C_FLEXIBLE_ARRAY_MEMBER
AC_CHECK_FUNCS([sysctlbyname])
#
# Check for the existence of mmap to enable the fast format zones
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment