]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Use AS_IF instead of plain if/then/fi
authorTiziano Müller <tiziano.mueller@stepping-stone.ch>
Wed, 8 Apr 2015 11:29:42 +0000 (13:29 +0200)
committerWayne Davison <wayned@samba.org>
Fri, 1 May 2015 21:26:21 +0000 (14:26 -0700)
configure.ac

index 23cbd6611e14590eba9ecf2d1250daf1b950073f..ca0c6fa7e3f95fa3abfc875d4b938786f3a4522d 100644 (file)
@@ -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 <netdb.h> 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?]) ],