diff --git a/configure b/configure index e303eda..f437803 100755 --- a/configure +++ b/configure @@ -13095,6 +13095,20 @@ fi done +# Check for getline support, used as a part of authenticated +# connections. +for ac_func in getline +do : + ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" +if test "x$ac_cv_func_getline" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETLINE 1 +_ACEOF + +fi +done + + # Check for packet pacing socket option (Linux only for now). { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5 $as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; } diff --git a/src/iperf_config.h.in b/src/iperf_config.h.in index a9e51ec..20ddd26 100644 --- a/src/iperf_config.h.in +++ b/src/iperf_config.h.in @@ -15,6 +15,9 @@ /* Have IPv6 flowlabel support. */ #undef HAVE_FLOWLABEL +/* Define to 1 if you have the `getline' function. */ +#undef HAVE_GETLINE + /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H