Browse Source

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

Jeremy T. Bouse 23 years ago
parent
commit
704b1e2dca
1 changed files with 4 additions and 1 deletions
  1. 4 1
      configure.in

+ 4 - 1
configure.in

@@ -327,6 +327,7 @@ AC_ARG_ENABLE([emulate-getaddrinfo],
                              [enable getaddrinfo emulation (default=no)]),
                              [enable getaddrinfo emulation (default=no)]),
               ,
               ,
               enable_emulate_getaddrinfo=no)
               enable_emulate_getaddrinfo=no)
+
 AC_ARG_WITH(lwres,
 AC_ARG_WITH(lwres,
             ACX_HELP_STRING([--with-lwres=DIR],
             ACX_HELP_STRING([--with-lwres=DIR],
                            [use lwres library for getaddrinfo (default=no)]),
                            [use lwres library for getaddrinfo (default=no)]),
@@ -384,7 +385,9 @@ if test x$have_getaddrinfo != xno ; then
                   [Does system provide RFC 2553/Posix getaddrinfo?])
                   [Does system provide RFC 2553/Posix getaddrinfo?])
 else
 else
         if test x$enable_emulate_getaddrinfo != xyes ; then
         if test x$enable_emulate_getaddrinfo != xyes ; then
-                AC_MSG_ERROR([getaddrinfo not found: try --with-lwres or --enable-emulate-getaddrinfo])
+dnl                AC_MSG_ERROR([getaddrinfo not found: try --with-lwres or --enable-emulate-getaddrinfo])
+               enable_emulate_getaddrinfo=yes
+               AC_MSG_WARN([enabling getaddrinfo emulation])
         fi
         fi
 	EXTRA_NETOBJS="$EXTRA_NETOBJS getaddrinfo.o"
 	EXTRA_NETOBJS="$EXTRA_NETOBJS getaddrinfo.o"
 fi
 fi