From: Tiziano Müller Date: Wed, 8 Apr 2015 11:29:42 +0000 (+0200) Subject: Use AS_IF instead of plain if/then/fi X-Git-Tag: v3.1.2pre1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bc319766d1b00da3989b5cf05bc5669fef54aec;p=thirdparty%2Frsync.git Use AS_IF instead of plain if/then/fi --- diff --git a/configure.ac b/configure.ac index 23cbd661..ca0c6fa7 100644 --- a/configure.ac +++ b/configure.ac @@ -511,7 +511,7 @@ AC_CACHE_CHECK([whether defines needed by getaddrinfo exist], #endif], rsync_cv_HAVE_GETADDR_DEFINES=yes, rsync_cv_HAVE_GETADDR_DEFINES=no)]) -if test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" -a x"$ac_cv_type_struct_addrinfo" = x"yes"; then +AS_IF([test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" -a x"$ac_cv_type_struct_addrinfo" = x"yes"],[ # Tru64 UNIX has getaddrinfo() but has it renamed in libc as # something else so we must include to get the # redefinition. @@ -525,9 +525,7 @@ if test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" -a x"$ac_cv_type_struct_addri [Define to 1 if you have the "getaddrinfo" function and required types.])], [AC_MSG_RESULT([no]) AC_LIBOBJ([getaddrinfo])])]) -else - AC_LIBOBJ([getaddrinfo]) -fi + ],[AC_LIBOBJ([getaddrinfo])]) AC_CHECK_MEMBER([struct sockaddr.sa_len], [ AC_DEFINE(HAVE_SOCKADDR_LEN, 1, [Do we have sockaddr.sa_len?]) ],