⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 实现了poll/epoll/devpoll等C++封装
💻 IN
字号:
dnl Process this file with autoconf to produce a configure script.AC_INITAC_PREREQ(2.52)AC_CONFIG_SRCDIR([Sked.h])AC_CONFIG_AUX_DIR(config)AC_CANONICAL_TARGET([])dnl -------------------------------------------------------------------dnl       Automake supportdnl To use automake to build Makefile.in from Makefile.am, rundnl  'aclocal; autoconf; automake; ./configure' AM_INIT_AUTOMAKE(dkftpbench, 0.45)AC_PROG_RANLIBMYCFLAGS="-Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings"AC_ARG_ENABLE(dprint, [--enable-dprint turns on debug logging], MYCFLAGS="$MYCFLAGS -DUSE_DPRINT")AC_ARG_ENABLE(debug, [--enable-debug turns -g on and -O2 off], MYCFLAGS="$MYCFLAGS -g", MYCFLAGS="$MYCFLAGS -O2")AC_ARG_ENABLE(profile, [--enable-profile turns on -pg], MYCFLAGS="$MYCFLAGS -pg")AC_ARG_ENABLE(ndebug, [--enable-ndebug turns on -DNDEBUG], MYCFLAGS="$MYCFLAGS -DNDEBUG")AC_ARG_ENABLE(urgent, [--enable-urgent turns on -DPoller_URGENT], MYCFLAGS="$MYCFLAGS -DPoller_URGENT")AC_ARG_ENABLE(asm, [--enable-asm turns on -S], MYCFLAGS="$MYCFLAGS -S")CFLAGS="$CFLAGS $MYCFLAGS"CXXFLAGS="$CXXFLAGS $MYCFLAGS"dnl -------------------------------------------------------------------dnl Checks for programs.AC_PROG_CCAC_PROG_CXXdnl checks for librariesdnl note: buggy.  Says you need -lnsl even if you don't sometimes.AC_CHECK_LIB(nsl, gethostbyname)AC_CHECK_LIB(socket, connect)dnl If sys/socket.h doesn't give you socklen_t, assume it's an int.AC_EGREP_HEADER(socklen_t, sys/socket.h,, AC_DEFINE(socklen_t,int))dnl If netinet/in.h doesn't give you in_addr_t, assume it's an int.AC_EGREP_HEADER(in_addr_t, netinet/in.h,, AC_DEFINE(in_addr_t,int))dnl If you can't just use inet_aton, plug in our source file for it.AC_TRY_LINK_FUNC(inet_aton,AC_DEFINE(HAVE_INET_ATON), LIBS="$LIBS inet_aton.c")dnl check for kqueue under FreeBSD 4.1 - note that if you have a stockdnl kernel you need to apply the fbsd-41-kqueue.diff to your kernel fordnl the the Poller_test program to work.AC_CHECK_FUNCS(kqueue)dnl check for getifaddrs.  This library call was introduced by bsdi,dnl and will be part of Linux's ipv6 support.  If not present in thednl OS, we emulate it.AC_CHECK_FUNCS(getifaddrs)dnl check for /dev/poll device under Linux or Solarisif test -c /dev/poll; then    AC_DEFINE(HAVE_DEVPOLL, 1)else    AC_DEFINE(HAVE_DEVPOLL, 0)fidnl check for /dev/epoll device under Linuxif test -c /dev/epoll; then    AC_DEFINE(HAVE_DEVEPOLL, 1)else    AC_DEFINE(HAVE_DEVEPOLL, 0)fidnl Must turn on _GNU_SOURCE to enable F_SETSIGAC_DEFINE(_GNU_SOURCE)dnl check for rtsig readiness notification under Linuxdnl (but don't use it unless kernel 2.4 or higher)AC_EGREP_CPP(YUP_HAVE_F_SETSIG, [#define _GNU_SOURCE#include <fcntl.h>#ifdef F_SETSIG YUP_HAVE_F_SETSIG#endif],AC_DEFINE(HAVE_F_SETSIG))dnl check for Vitaly Luban's signal-per-fd hackAC_EGREP_CPP(YUP_HAVE_F_SETAUXFL, [#define _GNU_SOURCE#include <fcntl.h>#ifdef F_SETAUXFL YUP_HAVE_F_SETAUXFL#endif],AC_DEFINE(HAVE_F_SETAUXFL))dnl Check for CorbaRSSH_CHECK_ORBAC_CONFIG_FILES([Makefile])AC_OUTPUT

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -