Lines Matching +refs:cc +refs:check +refs:function +refs:in +refs:lib
17 # 2015-12-11 FLTO check for new OSX, clang.
18 # 2015-11-18 spelling check fix.
27 # 2012-02-09 Fix AHX_MEMCMP_BROKEN with undef in compat/memcmp.h.
32 # 2011-11-10 Fix FLTO test to not drop a.out in current directory.
36 # 2011-06-23 Add ACX_CHECK_FLTO to check -flto.
37 # 2010-08-16 Fix FLAG_OMITTED for AS_TR_CPP changes in autoconf-2.66.
38 # 2010-07-02 Add check for ss_family (for minix).
54 # the following macro's are provided in this file:
57 # ACX_ESCAPE_BACKSLASH - escape backslashes in var for C-preproc.
59 # ACX_CHECK_COMPILER_FLAG - see if cc supports a flag.
62 # ACX_DEPFLAG - find cc dependency flags.
64 # ACX_CHECK_FORMAT_ATTRIBUTE - find cc printf format syntax.
65 # ACX_CHECK_UNUSED_ATTRIBUTE - find cc variable unused syntax.
66 # ACX_CHECK_FLTO - see if cc supports -flto and use it if so.
84 # ACX_FUNC_MALLOC - check malloc, define replacement .
109 # ACX_CHECK_MEMCMP_SIGNED - check if memcmp uses signed characters.
111 # ACX_CHECK_SS_FAMILY - check for sockaddr_storage.ss_family
112 # ACX_CHECK_PIE - add --enable-pie option and check if works
113 # ACX_CHECK_RELRO_NOW - add --enable-relro-now option and check it
130 dnl Routine to help check for compiler flags.
132 dnl $1: the flag without a - in front, so g to check -g.
170 dnl Routine to help check for needed compiler flags.
353 #include <netinet/in.h>
362 # check again for GNU_SOURCE for setresgid. May fail if setresgid
363 # is not available at all. -D_FRSRESGID is to make this check unique.
429 dnl in a way that supports clang and suncc (that flag does something else,
430 dnl but fails to link). It sets it in CFLAGS if it works.
438 …if $CC $CFLAGS -o conftest conftest.c 2>&1 | $GREP -e "warning: no debug symbols in executable" -e…
450 dnl result in HAVE_ATTR_FORMAT.
454 AC_MSG_CHECKING(whether the C compiler (${CC-cc}) accepts the "format" attribute)
483 dnl Check how to mark function arguments as unused.
484 dnl result in HAVE_ATTR_UNUSED.
488 AC_MSG_CHECKING(whether the C compiler (${CC-cc}) accepts the "unused" attribute)
546 dnl Perform libtool check, portably, only for C
550 dnl this function contents.
597 # include <netinet/in.h>
609 # include <netinet/in.h>
644 dnl Takes one argument; the withval checked in those 2 functions
651 … withval="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr"
653 for dir in $withval; do
658 dnl assume /usr/include is already in the include-path.
667 AC_MSG_ERROR(Cannot find the SSL libraries in $withval)
669 AC_MSG_RESULT(found in $ssldir)
671 dnl assume /usr is already in the lib and dynlib paths.
673 if test ! -d "$ssldir/lib" -a -d "$ssldir/lib64"; then
678 LDFLAGS="$LDFLAGS -L$ssldir/lib"
679 LIBSSL_LDFLAGS="$LIBSSL_LDFLAGS -L$ssldir/lib"
680 ACX_RUNTIME_PATH_ADD([$ssldir/lib])
684 AC_MSG_CHECKING([for EVP_sha256 in -lcrypto])
696 # check if -lwsock32 or -lgdi32 are needed.
739 … AC_MSG_ERROR([OpenSSL found in $ssldir, but version 0.9.7 or higher is required])
760 AC_ARG_WITH(ssl, AS_HELP_STRING([--with-ssl=pathname],[enable SSL (will check /usr/local/ssl
761 /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr)]),[
778 AC_ARG_WITH(ssl, AS_HELP_STRING([--with-ssl=pathname],[enable SSL (will check /usr/local/ssl
779 … /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /opt/local /usr/sfw /usr)]),[
790 # check if libssl needs libdl
887 dnl check if a function is deprecated. defines DEPRECATED_func in config.h.
888 dnl $1: function name
889 dnl $2: C-statement that calls the function.
921 dnl check if select and nonblocking sockets actually work.
946 #include <netinet/in.h>
1004 /* no handler, causes exit in 10 seconds */
1087 dnl Check for ioctlsocket function. works on mingw32 too.
1090 # check ioctlsocket
1100 AC_DEFINE(HAVE_IOCTLSOCKET, 1, [if the function 'ioctlsocket' is available])
1119 AC_DEFINE_UNQUOTED([malloc], [rpl_malloc_$1], [Define if replacement function should be used.])] ,
1124 AC_DEFINE_UNQUOTED([malloc], [rpl_malloc_$1], [Define if replacement function should be used.])] )
1303 AC_DEFINE(m4_bpatsubst(OMITTED_$1,[[-=]],_), 1, Put $1 define in config.h)
1307 dnl Remove EXT flags from the CFLAGS and set them to be defined in config.h
1351 dnl check if memcmp is using signed characters and replace if so.
1383 dnl ACX_CHECK_SS_FAMILY - check for sockaddr_storage.ss_family
1387 …AC_DEFINE([ss_family], [__ss_family], [Fallback member name for socket family in struct sockaddr_s…
1390 #include <netinet/in.h>
1404 #include <netinet/in.h>
1418 dnl If so, sets them in CFLAGS / LDFLAGS.
1428 …if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executabl…
1448 …if $CC $CFLAGS $LDFLAGS -o conftest conftest.c 2>&1 | grep "warning: no debug symbols in executabl…