📄 configure.in
字号:
dnl Autoconfigure script for bogusappdnl Kurt Wall <kwall@kurtwerks.com>dnldnl Process this file with `autoconf' to produce a `configure' scriptAC_INIT(bogusapp.c)AC_CONFIG_HEADER(config.h)test -z "$LDFLAGS" && LDFLAGS="-I/usr/include" AC_SUBST(LDFLAGS)dnl Tests for UNIX variantsdnlAC_CANONICAL_HOSTdnl Tests for programsdnlAC_PROG_CCAC_PROG_LEXAC_PROG_AWKAC_PROG_YACCAC_CHECK_PROG(SHELL, bash, /bin/bash, /bin/sh)dnl Tests for librariesdnlAC_CHECK_LIB(socket, socket)AC_CHECK_LIB(resolv, res_init, [echo "res_init() not in libresolv"], [echo "res_init() found in libresolv"])dnl Tests for header filesdnlAC_CHECK_HEADER(killer.h)AC_CHECK_HEADERS([resolv.h termio.h curses.h sys/time.h fcntl.h \sys/fcntl.h memory.h])AC_DECL_SYS_SIGLISTAC_HEADER_STDCdnl Tests for typedefsdnlAC_TYPE_GETGROUPSAC_TYPE_SIZE_TAC_TYPE_PID_Tdnl Tests for structuresAC_HEADER_TIMEAC_STRUCT_TIMEZONEdnl Tests of compiler behaviordnlAC_C_BIGENDIANAC_C_INLINEAC_CHECK_SIZEOF(int, 32)dnl Tests for library functionsdnlAC_FUNC_GETLOADAVGAC_FUNC_MMAPAC_FUNC_UTIME_NULLAC_FUNC_VFORKdnl Tests of system servicesdnlAC_SYS_INTERPRETERAC_PATH_XAC_SYS_RESTARTABLE_SYSCALLSdnl Tests in this section exercise a few of `autoconf''s generic macrosdnldnl First, let's see if we have a usable void pointer typednlAC_MSG_CHECKING(for a usable void pointer type)AC_TRY_COMPILE([], [char *ptr; void *xmalloc(); ptr = (char *) xmalloc(1); ], [AC_DEFINE(HAVE_VOID_POINTER) AC_MSG_RESULT(usable void pointer)], AC_MSG_RESULT(no usable void pointer type))dnl dnl Now, let's exercise the preprocessordnlAC_TRY_CPP(math.h, echo 'found math.h', echo 'no math.h - deep doo doo!')dnldnl Next, we test the linkerdnlAC_TRY_LINK([#ifndef HAVE_UNISTD_H #include <signal.h> #endif], [char *ret = *(sys_siglist + 1);], [AC_DEFINE(HAVE_SYS_SIGLIST), AC_MSG_RESULT(got sys_siglist)], [AC_MSG_RESULT(no sys_siglist)])dnldnl Finally, set a default value for a ridiculous typednlAC_CHECK_TYPE(short_short_t, unsigned short)dnl Okay, we're done. Create the output files and get out of herednlAC_OUTPUT(Makefile)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -