"Fossies" - the Fresh Open Source Software Archive

Member "tcpflow-1.6.1/src/be13_api/be13_configure.m4" (19 Feb 2021, 1306 Bytes) of package /linux/misc/tcpflow-1.6.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "be13_configure.m4": 1.4.4_vs_1.4.5.

    1 #
    2 # mix-ins for be13
    3 #
    4 
    5 AC_MSG_NOTICE([Including be13_configure.m4 from be13_api])
    6 AC_CHECK_HEADERS([err.h pwd.h sys/cdefs.h sys/mman.h sys/resource.h sys/utsname.h unistd.h sqlite3.h ])
    7 AC_CHECK_FUNCS([gmtime_r ishexnumber isxdigit localtime_r unistd.h mmap err errx warn warnx pread64 pread strptime _lseeki64 utimes ])
    8 
    9 AC_CHECK_LIB([sqlite3],[sqlite3_libversion])
   10 AC_CHECK_FUNCS([sqlite3_create_function_v2])
   11 
   12 AC_TRY_COMPILE([#pragma GCC diagnostic ignored "-Wredundant-decls"],[int a=3;],
   13   [AC_DEFINE(HAVE_DIAGNOSTIC_REDUNDANT_DECLS,1,[define 1 if GCC supports -Wredundant-decls])]
   14 )
   15 AC_TRY_COMPILE([#pragma GCC diagnostic ignored "-Wcast-align"],[int a=3;],
   16   [AC_DEFINE(HAVE_DIAGNOSTIC_CAST_ALIGN,1,[define 1 if GCC supports -Wcast-align])]
   17 )
   18 
   19 AC_TRY_LINK([#include <inttypes.h>],
   20                [uint64_t ul; __sync_add_and_fetch(&ul,0);],
   21                AC_DEFINE(HAVE___SYNC_ADD_AND_FETCH,1,[define 1 if __sync_add_and_fetch works on 64-bit numbers]))
   22 
   23 #
   24 # Figure out which version of unordered_map we are going to use
   25 #
   26 AC_LANG_PUSH(C++)
   27   AC_MSG_NOTICE([checking for unordered_map])
   28   AC_MSG_NOTICE([  CXXFLAGS:           $CXXFLAGS])
   29   AC_CHECK_HEADERS([unordered_map unordered_set],[],[
   30     AC_CHECK_HEADERS([tr1/unordered_map tr1/unordered_set])])
   31   AC_MSG_NOTICE([done])
   32 AC_LANG_POP()    
   33