"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "configure.ac" between
liboping-1.9.0.tar.gz and liboping-1.10.0.tar.gz

About: liboping is a C library to generate ICMP echo requests, better known as "ping packets". It can "ping" multiple hosts in parallel using IPv4 or IPv6 transparently. A commandline and a ncurses-based application are included.

configure.ac  (liboping-1.9.0):configure.ac  (liboping-1.10.0)
# Process this file with autoconf to produce a configure script. # Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65]) AC_PREREQ([2.65])
AC_INIT([liboping], AC_INIT([liboping],
[1.9.0], [1.10.0],
[liboping@verplant.org], [liboping@verplant.org],
[], [],
[http://noping.cc/]) [http://noping.cc/])
AC_CONFIG_SRCDIR([src/liboping.c]) AC_CONFIG_SRCDIR([src/liboping.c])
AC_CONFIG_HEADERS([src/config.h]) AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([dist-bzip2]) AM_INIT_AUTOMAKE([dist-bzip2])
AC_LANG([C]) AC_LANG([C])
AC_PREFIX_DEFAULT("/opt/oping") AC_PREFIX_DEFAULT("/opt/oping")
# API version # API version
LIBOPING_MAJOR=`echo $PACKAGE_VERSION | cut -d'.' -f1` LIBOPING_MAJOR=`echo $PACKAGE_VERSION | cut -d'.' -f1`
LIBOPING_MINOR=`echo $PACKAGE_VERSION | cut -d'.' -f2` LIBOPING_MINOR=`echo $PACKAGE_VERSION | cut -d'.' -f2`
LIBOPING_PATCH=`echo $PACKAGE_VERSION | cut -d'.' -f3` LIBOPING_PATCH=`echo $PACKAGE_VERSION | cut -d'.' -f3`
AC_SUBST(LIBOPING_MAJOR) AC_SUBST(LIBOPING_MAJOR)
AC_SUBST(LIBOPING_MINOR) AC_SUBST(LIBOPING_MINOR)
AC_SUBST(LIBOPING_PATCH) AC_SUBST(LIBOPING_PATCH)
# ABI version # ABI version
LIBOPING_CURRENT=2 LIBOPING_CURRENT=3
LIBOPING_REVISION=11 LIBOPING_REVISION=0
LIBOPING_AGE=2 LIBOPING_AGE=3
AC_SUBST(LIBOPING_CURRENT) AC_SUBST(LIBOPING_CURRENT)
AC_SUBST(LIBOPING_REVISION) AC_SUBST(LIBOPING_REVISION)
AC_SUBST(LIBOPING_AGE) AC_SUBST(LIBOPING_AGE)
# #
# Check for programs/utilities # Check for programs/utilities
# #
AC_PROG_CC AC_PROG_CC
AC_PROG_CPP AC_PROG_CPP
AC_PROG_INSTALL AC_PROG_INSTALL
skipping to change at line 53 skipping to change at line 53
if test "x$PERL" = "x" if test "x$PERL" = "x"
then then
PERL="perl" PERL="perl"
fi fi
AC_ARG_VAR(PERL, [Perl interpreter command]) AC_ARG_VAR(PERL, [Perl interpreter command])
# configure libtool # configure libtool
LT_INIT([dlopen]) LT_INIT([dlopen])
# pkg-config interface # pkg-config interface
PKG_INSTALLDIR # PKG_INSTALLDIR is only available for pkg-config >= 0.27
m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], [])
AC_ARG_WITH(pkgconfigdir, AC_ARG_WITH(pkgconfigdir,
AC_HELP_STRING([--with-pkgconfigdir], [Use the specified pkgconfig di r (default is libdir/pkgconfig)]), AC_HELP_STRING([--with-pkgconfigdir], [Use the specified pkgconfig di r (default is libdir/pkgconfig)]),
[pkgconfigdir="${withval}"], [pkgconfigdir="${withval}"],
[pkgconfigdir='${libdir}/pkgconfig']) [pkgconfigdir='${libdir}/pkgconfig'])
AC_SUBST([pkgconfigdir]) AC_SUBST([pkgconfigdir])
# Checks for header files. # Checks for header files.
AC_HEADER_STDC AC_HEADER_STDC
AC_HEADER_TIME AC_HEADER_TIME
skipping to change at line 202 skipping to change at line 203
if test "x$with_libxnet" = "xyes" if test "x$with_libxnet" = "xyes"
then then
CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__" CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
fi fi
if test "x$with_libxnet" = "xyes"; then if test "x$with_libxnet" = "xyes"; then
LIBOPING_PC_LIBS_PRIVATE="${LIBOPING_PC_LIBS_PRIVATE} -lxnet" LIBOPING_PC_LIBS_PRIVATE="${LIBOPING_PC_LIBS_PRIVATE} -lxnet"
fi fi
AC_SUBST(LIBOPING_PC_LIBS_PRIVATE) AC_SUBST(LIBOPING_PC_LIBS_PRIVATE)
nanosleep_needs_rt="no" AC_SEARCH_LIBS([nanosleep],[rt],[],
AC_CHECK_FUNCS(nanosleep, [], [AC_MSG_ERROR([cannot find nanosleep])])
AC_CHECK_LIB(rt, nanosleep,
[nanosleep_needs_rt="yes"], AC_ARG_WITH(ncurses, AS_HELP_STRING([--with-ncurses], [Build oping CLI tool with
AC_MSG_ERROR(cannot find nanosleep))) ncurses support]))
AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$nanosleep_needs_rt" = "xyes") AS_IF([test "x$with_ncurses" != "xno"], [
can_build_with_ncurses="no"
with_ncurses="no" PKG_CHECK_MODULES([NCURSES], [ncursesw], [can_build_with_ncurses=yes], [
AC_CHECK_HEADERS(ncursesw/ncurses.h ncurses.h, [with_ncurses="yes"], []) PKG_CHECK_MODULES([NCURSES], [ncurses], [can_build_with_ncurses=y
if test "x$with_ncurses" = "xyes" es], [
then AC_CHECK_LIB(ncursesw, mvwprintw, [NCURSES_LIBS="-lncurse
have_ncursesw="no" sw"; can_build_with_ncurses=yes], [
have_ncurses="no" AC_CHECK_LIB(ncurses, mvwprintw, [NCURSES_LIBS="-
NCURSES_LIB="" lncurses"; can_build_with_ncurses=yes])
])
AC_CHECK_LIB(ncursesw, mvwprintw, [have_ncursesw="yes"], [have_ncursesw=" ])
no"]) ])
AC_CHECK_LIB(ncurses, mvwprintw, [have_ncurses="yes"], [have_ncurses="no"
]) AS_IF([test "x$can_build_with_ncurses" = "xyes"], [
AC_CHECK_HEADERS([ncursesw/curses.h ncursesw.h ncurses/curses.h n
if test "x$have_ncursesw" = "xyes"; then curses.h], [can_build_with_ncurses=yes; break;], [can_build_with_ncurses=no])
NCURSES_LIB="-lncursesw" ])
else if test "x$have_ncurses" = "xyes"; then
NCURSES_LIB="-lncurses" AS_IF([test "x$can_build_with_ncurses" = "xno" && test "x$with_ncurses" =
else "xyes"], [
with_ncurses="no" AC_MSG_ERROR([ncurses not found but explicit enabled])
fi; fi ],
AC_SUBST(NCURSES_LIB) [test "x$can_build_with_ncurses" = "xno"], [
fi AC_MSG_WARN([Will not build oping with ncurses support -- no suit
AM_CONDITIONAL(BUILD_WITH_LIBNCURSES, test "x$with_ncurses" = "xyes") eable ncurses installation found])
])
])
AM_CONDITIONAL(BUILD_WITH_LIBNCURSES, test "x$with_ncurses" != "xno" && test "x$
can_build_with_ncurses" = "xyes")
AC_FUNC_STRERROR_R AC_FUNC_STRERROR_R
AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug], [Enable extensive debuggi ng output.])], AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug], [Enable extensive debuggi ng output.])],
[ [
if test "x$enable_debug" = "xyes" if test "x$enable_debug" = "xyes"
then then
AC_DEFINE(WITH_DEBUG, 1, [Define to 1 if you want to get debuggin g output.]) AC_DEFINE(WITH_DEBUG, 1, [Define to 1 if you want to get debuggin g output.])
fi fi
], []) ], [])
 End of changes. 4 change blocks. 
35 lines changed or deleted 41 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS