📄 ost_daemon.m4
字号:
dnl Copyright (C) 1999-2000 Open Source Telecom Corporation.dnl dnl This program is free software; you can redistribute it and/or modifydnl it under the terms of the GNU General Public License as published bydnl the Free Software Foundation; either version 2 of the License, ordnl (at your option) any later version.dnl dnl This program is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See thednl GNU General Public License for more details.dnl dnl You should have received a copy of the GNU General Public Licensednl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a configuration dnl script generated by Autoconf, you may include it under the same dnl distribution terms that you use for the rest of that program.AC_DEFUN(OST_CC_DAEMON,[ AC_REQUIRE([OST_SYS_POSIX]) AC_REQUIRE([OST_CC_SIGNAL]) AC_REQUIRE([AC_TYPE_PID_T]) AC_CHECK_HEADERS(sys/resource.h sysexits.h) AC_CHECK_FUNCS(pdetach)])AC_DEFUN(OST_LIB_WRAPPER,[ AC_REQUIRE([OST_LIB_SOCKET]) AC_CHECK_HEADERS(tcpd.h) AC_CHECK_LIB(wrap, request_init, [ LIBS="-lwrap $LIBS"])])AC_DEFUN(OST_LIB_DYNAMIC,[ DYN_LOADER='' AC_REQUIRE([OST_SYS_POSIX]) AC_CHECK_HEADERS(dlfcn.h) AC_CHECK_LIB(dl, dlopen, [DYN_LOADER=-ldl]) if test ! -z "$DYN_LOADER" ; then AC_DEFINE(HAVE_MODULES) fi AC_SUBST(DYN_LOADER) ])dnl ACCONFIG TEMPLATEdnl #undef HAVE_SYS_RESOURCE_Hdnl #undef HAVE_PDETACHdnl #undef HAVE_SYSEXITS_Hdnl #undef HAVE_TCPD_Hdnl #undef HAVE_DLOPENdnl #undef HAVE_MODULESdnl END ACCONFIGdnl ACCONFIG BOTTOMdnl dnl #ifdef HAVE_SYS_RESOURCE_Hdnl #include <sys/resource.h>dnl #endifdnl dnl #ifdef HAVE_DLFCN_Hdnl #include <dlfcn.h>dnl #endifdnl dnl #ifdef HAVE_SYSEXITS_Hdnl #include <sysexits.h>dnl #endifdnl dnl #ifdef HAVE_TCPD_Hdnl #include <tcpd.h>dnl #endifdnl dnl #ifndef EX_OKdnl #define EX_OK 0dnl #endifdnl #ifndef EX_USAGEdnl #define EX_USAGE 64dnl #endifdnl #ifndef EX_DATAERRdnl #define EX_DATAERR 65dnl #endifdnl #ifndef EX_NOINPUTdnl #define EX_NOINPUT 66dnl #endifdnl #ifndef EX_NOUSERdnl #define EX_NOUSER 67dnl #endifdnl #ifndef EX_NOHOSTdnl #define EX_NOHOST 68dnl #endifdnl #ifndef EX_UNAVAILABLEdnl #define EX_UNAVAILABLE 69dnl #endifdnl #ifndef EX_SOFTWAREdnl #define EX_SOFTWARE 70dnl #endifdnl #ifndef EX_OSERRdnl #define EX_OSERR 71dnl #endifdnl #ifndef EX_OSFILEdnl #define EX_OSFILE 72dnl #endifdnl #ifndef EX_CANTCREATdnl #define EX_CANTCREAT 73dnl #endifdnl #ifndef EX_IOERRdnl #define EX_IOERR 74dnl #endifdnl #ifndef EX_TEMPFAILdnl #define EX_TEMPFAIL 75dnl #endifdnl #ifndef EX_PROTOCOLdnl #define EX_PROTOCOL 76dnl #endifdnl #ifndef EX_NOPERMdnl #define EX_NOPERM 77dnl #endifdnl #ifndef EX_CONFIGdnl #define EX_CONFIG 78dnl #endifdnl #ifndef EX__MAXdnl #define EX__MAX 78dnl #endifdnl dnl END ACCONFIG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -