Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
fa9aa1fa
Unverified
Commit
fa9aa1fa
authored
May 13, 2019
by
Christian Brauner
Committed by
GitHub
May 13, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3000 from Rachid-Koucha/patch-11
Config: check for %m availability
parents
ad4dddd8
720bbb31
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
configure.ac
configure.ac
+27
-0
No files found.
configure.ac
View file @
fa9aa1fa
...
@@ -637,6 +637,33 @@ AC_CHECK_FUNCS([setns pivot_root sethostname unshare rand_r confstr faccessat ge
...
@@ -637,6 +637,33 @@ AC_CHECK_FUNCS([setns pivot_root sethostname unshare rand_r confstr faccessat ge
# - STRERROR_R_CHAR_P if it returns char *
# - STRERROR_R_CHAR_P if it returns char *
AC_FUNC_STRERROR_R
AC_FUNC_STRERROR_R
# Check if "%m" is supported by printf and Co
AC_MSG_CHECKING([%m format])
AC_TRY_RUN([
#include <stdio.h>
int main(void)
{
char msg[256];
int rc;
rc = snprintf(msg, sizeof(msg), "%m\n");
if ((rc > 1) && (msg[0] != '%'))
{
return 0;
}
else
{
return 1;
}
}],
[fmt_m=yes], [fmt_m=no])
if test "x$fmt_m" = "xyes"; then
AC_DEFINE([HAVE_M_FORMAT], 1, [Have %m format])
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
# Check for some functions
# Check for some functions
AC_CHECK_LIB(pthread, main)
AC_CHECK_LIB(pthread, main)
AC_CHECK_FUNCS(statvfs)
AC_CHECK_FUNCS(statvfs)
...
...
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