Changeset 823d8e1 for configure.in


Ignore:
Timestamp:
06/29/18 09:49:20 (2 years ago)
Author:
Alistair King <alistair@…>
Branches:
cachetimestamps, develop, master, rc-4.0.4, ringdecrementfix, ringperformance
Children:
47d64ce
Parents:
c7f1faf
Message:

Replace AC_CHECK_FUNCS with AC_CHECK_DECLS

It seems that AC_CHECK_FUNCS does not correctly detect when these "functions" are implemented as macros. (I've seen this happening on macOS, and Ubuntu 16.04 with snprintf and strndup respectively.) Replacing AC_CHECK_FUNCS (and the similar AC_REPLACE_FUNCS) with AC_CHECK_DECLS seems to solve this problem, though I don't have access to any systems that do not have these functions to be sure that it correctly detects them as missing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    re8e9052 r823d8e1  
    8787AC_FUNC_REALLOC
    8888
    89 # *BSD doesn't have strndup. Currently provide our own.
    90 AC_REPLACE_FUNCS(strndup)
    91 
    92 
    9389# Checks for typedefs, structures, and compiler characteristics.
    9490AC_C_CONST
     
    126122
    127123# Fail if any of these functions are missing
    128 AC_CHECK_FUNCS(socket strdup strlcpy strcasecmp strncasecmp snprintf vsnprintf recvmmsg)
     124AC_CHECK_DECLS([socket, strdup, strlcpy, strcasecmp, strncasecmp, snprintf, vsnprintf, recvmmsg, strndup])
    129125
    130126AC_CHECK_SIZEOF([long int])
Note: See TracChangeset for help on using the changeset viewer.