mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-05-13 07:03:33 +00:00
Done through sed -e 's/strcmp \([(][^()]*[)]\) != 0/!streq \1/' * tests/**/*.[hc]: Use !streq instead of strcmp ... != 0. * modules/*-tests (Dependencies): Add streq.
24 lines
526 B
Plaintext
24 lines
526 B
Plaintext
Files:
|
|
tests/test-net_if-h.c
|
|
tests/signature.h
|
|
|
|
Depends-on:
|
|
net_if-h-c++-tests
|
|
streq
|
|
|
|
configure.ac:
|
|
NET_IF_LIB=
|
|
gl_saved_libs="$LIBS"
|
|
AC_SEARCH_LIBS([if_nameindex], [socket],
|
|
[AC_DEFINE([HAVE_IF_NAMEINDEX], [1], [Define if you have if_nameindex.])
|
|
if test "$ac_cv_search_if_nameindex" != "none required"; then
|
|
NET_IF_LIB="$ac_cv_search_if_nameindex"
|
|
fi])
|
|
LIBS="$gl_saved_libs"
|
|
AC_SUBST([NET_IF_LIB])
|
|
|
|
Makefile.am:
|
|
TESTS += test-net_if-h
|
|
check_PROGRAMS += test-net_if-h
|
|
test_net_if_h_LDADD = $(LDADD) @NET_IF_LIB@
|