📄 configure.ac
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(src/atak.c)AC_PREREQ(2.13)AM_INIT_AUTOMAKE(gnuchess, 5.07)AM_CONFIG_HEADER(src/config.h)dnl Checks for programs.AC_PROG_CCAC_PROG_INSTALLAC_PROG_AWKAC_PROG_LN_SAC_STRUCT_TMAM_PROG_LEXdnl --with and --enable thingsAC_ARG_WITH(readline, AC_HELP_STRING([--with-readline], [use readline library if available (default is YES)]), ac_cv_use_readline=$withval, ac_cv_use_readline=yes)dnl Check for readline library _and_ headersif test x"$ac_cv_use_readline" = "xyes"; then AC_CHECK_LIB(ncurses, tputs) AC_CHECK_LIB(readline, readline) AC_CHECK_HEADERS(readline/readline.h readline/history.h)fidnl Checks for header files.AC_HEADER_STDCdnl Either we should make these checks fail with andnl AC_MSG_ERROR or we should treat missing headersdnl with #ifdef somehow. (As it stands, it still givesdnl valuable debugging info for bug reports, but not more.)AC_CHECK_HEADERS(time.h sys/time.h unistd.h errno.h fcntl.h libintl.h)dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_C_VOLATILEAC_FUNC_REALLOCAC_HEADER_STDBOOLAC_C_INLINEAC_TYPE_SIZE_TAC_HEADER_TIMEAX_CREATE_STDINT_H(src/GCint.h)dnl Checks for library functions.AC_TYPE_SIGNALAC_FUNC_MALLOCAC_FUNC_MEMCMPdnl See above, how do we treat failure here?AC_CHECK_FUNCS(gettimeofday strchr strcspn strstr strerror memset strdup strtol)dnl Don't Check for getopt_long dnl just use bundled version like hello doesdnl AC_SUBST(LIBOBJS)dnl AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] )ACX_PTHREAD()AC_CONFIG_FILES(Makefile src/Makefile)AC_OUTPUT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -