小编dev*_*ero的帖子

autoconf:错误:可能未定义的宏:AC_LIBOBJ

给出以下autoconf片段:

if test x"$rsync_cv_HAVE_GETADDR_DEFINES" = x"yes" -a x"$ac_cv_type_struct_addrinfo" = x"yes"; then
    # Tru64 UNIX has getaddrinfo() but has it renamed in libc as
    # something else so we must include <netdb.h> to get the
    # redefinition.
    AC_CHECK_FUNCS(getaddrinfo, ,
            [AC_MSG_CHECKING([for getaddrinfo by including <netdb.h>])
            AC_TRY_LINK([#include <sys/types.h>
            #include <sys/socket.h>
            #include <netdb.h>],[getaddrinfo(NULL, NULL, NULL, NULL);],
                    [AC_MSG_RESULT([yes])
                    AC_DEFINE(HAVE_GETADDRINFO, 1,
                            [Define to 1 if you have the "getaddrinfo" function and required types.])],
                    [AC_MSG_RESULT([no])
                    AC_LIBOBJ([getaddrinfo])])])
else
    AC_LIBOBJ([getaddrinfo])
fi
Run Code Online (Sandbox Code Playgroud)

当运行一个autoconfautoreconf -fi那个项目时,出现错误:

configure.ac:529: error: …
Run Code Online (Sandbox Code Playgroud)

autoconf

0
推荐指数
1
解决办法
1937
查看次数

标签 统计

autoconf ×1