diff options
author | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-16 23:54:24 +0000 |
---|---|---|
committer | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | 2003-03-16 23:54:24 +0000 |
commit | 704b1e2dca00007d7310c129e29e708107e12f1d (patch) | |
tree | de4b90f829ec9d776ad6ca59d73156a395305837 | |
parent | 33cce285cbfd1d7ca79f2369f9bb735c1720e673 (diff) | |
download | monitoring-plugins-704b1e2dca00007d7310c129e29e708107e12f1d.tar.gz |
Modified to automatically enable getaddrinfo emulation if lwres is not used and
getaddrinfo is not found in the system.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@427 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | configure.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 1b1ef3d7..24f66d20 100644 --- a/configure.in +++ b/configure.in | |||
@@ -327,6 +327,7 @@ AC_ARG_ENABLE([emulate-getaddrinfo], | |||
327 | [enable getaddrinfo emulation (default=no)]), | 327 | [enable getaddrinfo emulation (default=no)]), |
328 | , | 328 | , |
329 | enable_emulate_getaddrinfo=no) | 329 | enable_emulate_getaddrinfo=no) |
330 | |||
330 | AC_ARG_WITH(lwres, | 331 | AC_ARG_WITH(lwres, |
331 | ACX_HELP_STRING([--with-lwres=DIR], | 332 | ACX_HELP_STRING([--with-lwres=DIR], |
332 | [use lwres library for getaddrinfo (default=no)]), | 333 | [use lwres library for getaddrinfo (default=no)]), |
@@ -384,7 +385,9 @@ if test x$have_getaddrinfo != xno ; then | |||
384 | [Does system provide RFC 2553/Posix getaddrinfo?]) | 385 | [Does system provide RFC 2553/Posix getaddrinfo?]) |
385 | else | 386 | else |
386 | if test x$enable_emulate_getaddrinfo != xyes ; then | 387 | if test x$enable_emulate_getaddrinfo != xyes ; then |
387 | AC_MSG_ERROR([getaddrinfo not found: try --with-lwres or --enable-emulate-getaddrinfo]) | 388 | dnl AC_MSG_ERROR([getaddrinfo not found: try --with-lwres or --enable-emulate-getaddrinfo]) |
389 | enable_emulate_getaddrinfo=yes | ||
390 | AC_MSG_WARN([enabling getaddrinfo emulation]) | ||
388 | fi | 391 | fi |
389 | EXTRA_NETOBJS="$EXTRA_NETOBJS getaddrinfo.o" | 392 | EXTRA_NETOBJS="$EXTRA_NETOBJS getaddrinfo.o" |
390 | fi | 393 | fi |