Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a58420

Browse files
committed
Cleanup configure.in. Specifically:
- Don't call both AC_CHECK_FUNCS and AC_REPLACE_FUNC for 'hypot', as the latter already does everything the former does (because it's implemented as a call to the former.) - Don't call AC_CHECK_FUNC() without any 'action' clauses or with an action clause that just defines HAVE_<function>. Instead, call AC_CHECK_FUNCS, which defines 'HAVE_<function>' of itself, possibly with aditional 'action' clauses. No checks are removed by this patch, only moved around, and some duplicates are removed.
1 parent e8643c4 commit 3a58420

3 files changed

Lines changed: 242 additions & 266 deletions

File tree

config.h.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@
109109
/* Define this if your time.h defines altzone */
110110
#undef HAVE_ALTZONE
111111

112-
/* Define this if you have gethostbyname() */
113-
#undef HAVE_GETHOSTBYNAME
114-
115112
/* Define this if you have some version of gethostbyname_r() */
116113
#undef HAVE_GETHOSTBYNAME_R
117114

@@ -335,6 +332,9 @@
335332
/* Define if you have the getgroups function. */
336333
#undef HAVE_GETGROUPS
337334

335+
/* Define if you have the gethostbyname function. */
336+
#undef HAVE_GETHOSTBYNAME
337+
338338
/* Define if you have the getlogin function. */
339339
#undef HAVE_GETLOGIN
340340

0 commit comments

Comments
 (0)