public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Steve Dickson <steved@redhat.com>
To: Libtirpc-devel Mailing List <libtirpc-devel@lists.sourceforge.net>
Cc: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] configure.ac: Using autoupdate updated to the latest autoconf macros
Date: Thu, 17 Oct 2024 03:48:20 -0400	[thread overview]
Message-ID: <e9775c8b-a43e-460a-858d-441def9b03e4@redhat.com> (raw)
In-Reply-To: <20241016175121.85450-1-steved@redhat.com>



On 10/16/24 1:51 PM, Steve Dickson wrote:
> Signed-off-by: Steve Dickson <steved@redhat.com>
Committed..

steved.

> ---
>   configure.ac | 54 +++++++++++++++++++---------------------------------
>   1 file changed, 20 insertions(+), 34 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index ee2433f..bd099ff 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1,4 +1,4 @@
> -AC_INIT(libtirpc, 1.3.5)
> +AC_INIT([libtirpc],[1.3.5])
>   AM_INIT_AUTOMAKE([silent-rules])
>   AM_SILENT_RULES([yes])
>   AC_CONFIG_SRCDIR([src/auth_des.c])
> @@ -35,7 +35,7 @@ AC_SUBST([LT_VERSION_INFO])
>   AC_CHECK_HEADER([gssapi/gssapi.h], [HAVE_GSSAPI_H=yes], [HAVE_GSSAPI_H=no])
>   
>   AC_ARG_ENABLE(gssapi,
> -	[AC_HELP_STRING([--disable-gssapi], [Disable GSSAPI support @<:@default=no@:>@])],
> +	[AS_HELP_STRING([--disable-gssapi],[Disable GSSAPI support @<:@default=no@:>@])],
>         [],[enable_gssapi=yes])
>   AM_CONDITIONAL(GSS, test "x$enable_gssapi" = xyes)
>   
> @@ -62,7 +62,7 @@ if test "x$enable_gssapi" = xyes; then
>   fi
>   
>   AC_ARG_ENABLE(authdes,
> -	[AC_HELP_STRING([--enable-authdes], [Enable AUTH_DES support @<:@default=no@:>@])],
> +	[AS_HELP_STRING([--enable-authdes],[Enable AUTH_DES support @<:@default=no@:>@])],
>         [],[enable_authdes=no])
>   AM_CONDITIONAL(AUTHDES, test "x$enable_authdes" = xyes)
>   if test "x$enable_authdes" != xno; then
> @@ -70,7 +70,7 @@ if test "x$enable_authdes" != xno; then
>   fi
>   
>   AC_ARG_ENABLE(ipv6,
> -	[AC_HELP_STRING([--disable-ipv6], [Disable IPv6 support @<:@default=no@:>@])],
> +	[AS_HELP_STRING([--disable-ipv6],[Disable IPv6 support @<:@default=no@:>@])],
>   	[],[enable_ipv6=yes])
>   AM_CONDITIONAL(INET6, test "x$enable_ipv6" != xno)
>   if test "x$enable_ipv6" != xno; then
> @@ -78,7 +78,7 @@ if test "x$enable_ipv6" != xno; then
>   fi
>   
>   AC_ARG_ENABLE(symvers,
> -	[AC_HELP_STRING([--disable-symvers], [Disable symbol versioning @<:@default=no@:>@])],
> +	[AS_HELP_STRING([--disable-symvers],[Disable symbol versioning @<:@default=no@:>@])],
>         [],[enable_symvers=maybe])
>   
>   if test "x$enable_symvers" = xmaybe; then
> @@ -113,63 +113,48 @@ esac
>   
>   
>   AC_MSG_CHECKING(for SOL_IP)
> -AC_TRY_COMPILE([#include <netdb.h>], [
> +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]], [[
>       int ipproto = SOL_IP;
> -], [
> +]])],[
>       AC_MSG_RESULT(yes)
>       AC_DEFINE(HAVE_SOL_IP, 1, [Have SOL_IP])
> -], [
> +],[
>       AC_MSG_RESULT(no)
>   ])
>   
>   AC_MSG_CHECKING(for SOL_IPV6)
> -AC_TRY_COMPILE([#include <netdb.h>], [
> +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <netdb.h>]], [[
>       int ipproto = SOL_IPV6;
> -], [
> +]])],[
>       AC_MSG_RESULT(yes)
>       AC_DEFINE(HAVE_SOL_IPV6, 1, [Have SOL_IPV6])
> -], [
> +],[
>       AC_MSG_RESULT(no)
>   ])
>   
>   AC_MSG_CHECKING(for IPPROTO_IP)
> -AC_TRY_COMPILE([#include <netinet/in.h>], [
> +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <netinet/in.h>]], [[
>       int ipproto = IPPROTO_IP;
> -], [
> +]])],[
>       AC_MSG_RESULT(yes)
>       AC_DEFINE(HAVE_IPPROTO_IP, 1, [Have IPPROTO_IP])
> -], [
> +],[
>       AC_MSG_RESULT(no)
>   ])
>   
>   AC_MSG_CHECKING(for IPPROTO_IPV6)
> -AC_TRY_COMPILE([#include <netinet/in.h>], [
> +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <netinet/in.h>]], [[
>       int ipproto = IPPROTO_IPV6;
> -], [
> +]])],[
>       AC_MSG_RESULT(yes)
>       AC_DEFINE(HAVE_IPPROTO_IPV6, 1, [Have IPPROTO_IPV6])
> -], [
> +],[
>       AC_MSG_RESULT(no)
>   ])
>   AC_MSG_CHECKING([for IPV6_PKTINFO])
> -AC_TRY_COMPILE([#include <netdb.h>], [
> -  int opt = IPV6_PKTINFO;
> -], [
> -  AC_MSG_RESULT([yes])
> -], [
> -AC_TRY_COMPILE([#define __APPLE_USE_RFC_3542
> -            #include <netdb.h>], [
> -  int opt = IPV6_PKTINFO;
> -], [
> -  AC_MSG_RESULT([yes with __APPLE_USE_RFC_3542])
> -  AC_DEFINE([__APPLE_USE_RFC_3542], [1], [show IPV6_PKTINFO internals on macos])
> -], [
> -  AC_MSG_RESULT([no])
> -])
> -])
>   
>   AC_CONFIG_HEADERS([config.h])
> -AC_PROG_LIBTOOL
> +LT_INIT
>   AC_HEADER_DIRENT
>   AC_PREFIX_DEFAULT(/usr)
>   AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h locale.h
> @@ -182,6 +167,7 @@ AC_CHECK_FUNCS([getpeereid getrpcbyname getrpcbynumber setrpcent endrpcent getrp
>   AC_CHECK_TYPES(struct rpcent,,, [
>         #include <netdb.h>])
>   AC_CONFIG_FILES([Makefile src/Makefile man/Makefile doc/Makefile])
> -AC_OUTPUT(libtirpc.pc)
> +AC_CONFIG_FILES([libtirpc.pc])
> +AC_OUTPUT
>   
>   


      parent reply	other threads:[~2024-10-17  7:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-16 17:51 [PATCH] configure.ac: Using autoupdate updated to the latest autoconf macros Steve Dickson
2024-10-16 17:56 ` Steve Dickson
2024-10-17  7:48 ` Steve Dickson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e9775c8b-a43e-460a-858d-441def9b03e4@redhat.com \
    --to=steved@redhat.com \
    --cc=libtirpc-devel@lists.sourceforge.net \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox