From 9db88ce113701a6fb600a67aaa65764d800e25b0 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 5 Sep 2007 07:36:04 +0000 Subject: [PATCH] 2188. [contrib] queryperf: autoconf changes to make the seach for libresolv or libbind more robust. [RT #16299] --- contrib/queryperf/config.h.in | 37 +++++++++++++++++++++++++++++++++++ contrib/queryperf/queryperf.c | 7 +++++-- 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 contrib/queryperf/config.h.in diff --git a/contrib/queryperf/config.h.in b/contrib/queryperf/config.h.in new file mode 100644 index 0000000000..744afdde31 --- /dev/null +++ b/contrib/queryperf/config.h.in @@ -0,0 +1,37 @@ +/* config.h.in. Generated from configure.in by autoheader. */ + +/* Define to 1 if you have the `getaddrinfo' function. */ +#undef HAVE_GETADDRINFO + +/* Define to 1 if you have the `gethostbyname2' function. */ +#undef HAVE_GETHOSTBYNAME2 + +/* Define to 1 if you have the `getnameinfo' function. */ +#undef HAVE_GETNAMEINFO + +/* Define to 1 if you have the `nsl' library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define to 1 if you have the `socket' library (-lsocket). */ +#undef HAVE_LIBSOCKET + +/* Define to 1 if `struct sockaddr' has element `sa_len'. */ +#undef HAVE_SA_LEN + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to `int' if `socklen_t' does not exist. */ +#undef socklen_t diff --git a/contrib/queryperf/queryperf.c b/contrib/queryperf/queryperf.c index 7134288112..d15b7c4081 100644 --- a/contrib/queryperf/queryperf.c +++ b/contrib/queryperf/queryperf.c @@ -18,7 +18,7 @@ /*** *** DNS Query Performance Testing Tool (queryperf.c) *** - *** Version $Id: queryperf.c,v 1.11 2005/10/29 00:18:10 jinmei Exp $ + *** Version $Id: queryperf.c,v 1.12 2007/09/05 07:36:04 marka Exp $ *** *** Stephen Jacob ***/ @@ -39,9 +39,12 @@ #include #include +#ifdef HAVE_CONFIG_H +#include "config.h" #ifndef HAVE_GETADDRINFO #include "missing/addrinfo.h" #endif +#endif /* * Configuration defaults @@ -217,7 +220,7 @@ void show_startup_info(void) { printf("\n" "DNS Query Performance Testing Tool\n" -"Version: $Id: queryperf.c,v 1.11 2005/10/29 00:18:10 jinmei Exp $\n" +"Version: $Id: queryperf.c,v 1.12 2007/09/05 07:36:04 marka Exp $\n" "\n"); }