Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a6fc8f6c
Commit
a6fc8f6c
authored
May 03, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Check for the necessary data structure for if_nameindex().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5bb77b4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
2 deletions
+51
-2
configure
configure
+38
-1
configure.ac
configure.ac
+13
-1
No files found.
configure
View file @
a6fc8f6c
...
...
@@ -15284,7 +15284,6 @@ for ac_func in \
getpwuid
\
gettimeofday
\
getuid
\
if_nameindex
\
isnanf
\
kqueue
\
lstat
\
...
...
@@ -16150,6 +16149,44 @@ _ACEOF
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for if_nameindex"
>
&5
$as_echo_n
"checking for if_nameindex... "
>
&6
;
}
if
${
wine_cv_have_if_nameindex
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NET_IF_H
# include <net/if.h>
#endif
int
main ()
{
struct if_nameindex *p = if_nameindex(); return p->if_index;
;
return 0;
}
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
wine_cv_have_if_nameindex
=
yes
else
wine_cv_have_if_nameindex
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$wine_cv_have_if_nameindex
"
>
&5
$as_echo
"
$wine_cv_have_if_nameindex
"
>
&6
;
}
if
test
"
$wine_cv_have_if_nameindex
"
=
"yes"
then
$as_echo
"#define HAVE_IF_NAMEINDEX 1"
>>
confdefs.h
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for sigaddset"
>
&5
$as_echo_n
"checking for sigaddset... "
>
&6
;
}
if
${
wine_cv_have_sigaddset
+
:
}
false
;
then
:
...
...
configure.ac
View file @
a6fc8f6c
...
...
@@ -2015,7 +2015,6 @@ AC_CHECK_FUNCS(\
getpwuid \
gettimeofday \
getuid \
if_nameindex \
isnanf \
kqueue \
lstat \
...
...
@@ -2203,6 +2202,19 @@ AC_CHECK_MEMBERS([struct ff_effect.direction],,,
#include <linux/input.h>
#endif])
AC_CACHE_CHECK([for if_nameindex],wine_cv_have_if_nameindex,
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NET_IF_H
# include <net/if.h>
#endif]],
[[struct if_nameindex *p = if_nameindex(); return p->if_index;]])],[wine_cv_have_if_nameindex=yes],[wine_cv_have_if_nameindex=no]))
if test "$wine_cv_have_if_nameindex" = "yes"
then
AC_DEFINE(HAVE_IF_NAMEINDEX, 1, [Define to 1 if you have the `if_nameindex' function.])
fi
AC_CACHE_CHECK([for sigaddset],wine_cv_have_sigaddset,
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <signal.h>]], [[sigset_t set; sigaddset(&set,SIGTERM);]])],[wine_cv_have_sigaddset=yes],[wine_cv_have_sigaddset=no]))
if test "$wine_cv_have_sigaddset" = "yes"
...
...
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