]> granicus.if.org Git - curl/commitdiff
Andrés García's problems on the mailing list made me realize that we can't
authorDaniel Stenberg <daniel@haxx.se>
Thu, 22 Mar 2001 08:51:24 +0000 (08:51 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 22 Mar 2001 08:51:24 +0000 (08:51 +0000)
allow this script to simply detect a gethostbyname_r() if it can't figure
out how to use it. From now on, this script will fail when that happens.

configure.in

index 6fe9953bd633d6d280491871fffe189a3896812a..84637b236a99d776f9067ded4e87a1dfc6134581 100644 (file)
@@ -295,6 +295,14 @@ exit (rc != 0 ? 1 : 0); }],[
        [ac_cv_gethostbyname_args=0])],
       [ac_cv_gethostbyname_args=0])])
 
+if test "$ac_cv_func_gethostbyname_r" = "yes"; then
+  if test "$ac_cv_gethostbyname_args" = "0"; then
+    dnl there's a gethostbyname_r() function, but we don't know how
+    dnl many arguments it wants!
+    AC_MSG_ERROR([couldn't figure out how to use gethostbyname_r()])
+  fi
+fi
+
 ])
 
 dnl **********************************************************************