mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-21 22:40:37 +01:00
build: put test source code into AC_LANG_PROGRAM (bgo #655225)
This change silences autotools warnings about source code not being inside AC_LANG_SOURCE in AC_LANG_CONFTEST.
This commit is contained in:
parent
f742b06304
commit
c2fffd76d2
1 changed files with 4 additions and 7 deletions
|
|
@ -4,14 +4,12 @@ AC_DEFUN([NM_LIBNL_CHECK], [
|
|||
save_LDFLAGS="$LDFLAGS"
|
||||
CFLAGS="$CFLAGS $LIBNL_CFLAGS"
|
||||
LDFLAGS="$LDFLAGS $LIBNL_LIBS"
|
||||
AC_RUN_IFELSE([
|
||||
AC_RUN_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <stdio.h>
|
||||
#include <netlink/route/addr.h>
|
||||
#include <netlink/object-api.h>
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
]],
|
||||
[[
|
||||
struct nl_handle *nlh;
|
||||
struct nl_cache *cache;
|
||||
struct nl_object *obj;
|
||||
|
|
@ -37,8 +35,7 @@ main (int argc, char **argv)
|
|||
return 1;
|
||||
else
|
||||
return 2;
|
||||
}
|
||||
], libnl_bug=$?, libnl_bug=$?, libnl_bug=cross)
|
||||
]])], libnl_bug=$?, libnl_bug=$?, libnl_bug=cross)
|
||||
|
||||
CFLAGS="$save_CFLAGS"
|
||||
LDFLAGS="$save_LDFLAGS"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue