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

📄 configure.in

📁 Debian Linux下的通讯程序
💻 IN
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(crctab.c)AC_CONFIG_HEADER(config.h)test $prefix = NONE && prefix=/usrAC_CANONICAL_HOSTAC_SUBST(host_os)AC_SUBST(host_cpu)AC_ARG_ENABLE(timesync,	[--disable-timesync   exclude support for timesync protocol],	[ENABLE_TIMESYNC=-DENABLE_TIMESYNC ; if test "$withval" = "no" ; then 		ENABLE_TIMESYNC= ; fi],	[ENABLE_TIMESYNC=-DENABLE_TIMESYNC])AC_SUBST(ENABLE_TIMESYNC)AC_ARG_ENABLE(pubdir,	[--enable-pubdir=/path   include support for a public writeable directory],	[PUBDIR="$withval" ; if test "$withval" = "no" ; then 		PUDIR= ; fi],	[PUBDIR=])AC_SUBST(PUBDIR)AC_ARG_ENABLE(mkdir,	[--disable-mkdir   disable support for creating directories (lrz)],	[ENABLE_MKDIR=-DENABLE_MKDIR ; if test "$withval" = "no" ; then 		ENABLE_MKDIR= ; fi],	[ENABLE_MKDIR=-DENABLE_MKDIR])AC_SUBST(ENABLE_MKDIR)dnl Checks for programs.AC_PROG_CCAC_PROG_GCC_TRADITIONALAC_PROG_INSTALLAC_PROG_LN_SAC_PROG_MAKE_SETAC_C_CROSSdnl Checks for libraries.dnl Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS(fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h sys/times.h)AC_CHECK_HEADERS(termio.h sys/termio.h sgtty.h)AC_CHECK_HEADERS(sys/mman.h)dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_TYPE_SIZE_TAC_STRUCT_ST_RDEVAC_HEADER_TIMEAC_STRUCT_TMdnl Checks for library functions.if test $cross_compiling = no ; then	AC_FUNC_SETVBUF_REVERSEDfiAC_TYPE_SIGNALAC_FUNC_UTIME_NULLAC_FUNC_MMAPAC_CHECK_FUNCS(gettimeofday settimeofday strftime)AC_CHECK_FUNCS(strchr memcpy)AC_CHECK_FUNCS(times)AC_REPLACE_FUNCS(mkdir strerror strstr)dnl special testsdnl this is taken from taylor uucp.dnl Check for the SCO buggy ftime; the code can cope with the bug,dnl though it would prefer not to, so if we're cross-configuring wednl accept that ftime exists.AC_CHECK_FUNC(ftime,[AC_MSG_CHECKING(that ftime works correctly)AC_CACHE_VAL(lrzsz_cv_sys_ftime_ok,[AC_TRY_RUN([#include <sys/types.h>#include <sys/timeb.h>#include <stdio.h>main (){  struct timeb s, slast;  int c = 0;  ftime (&slast);  while (c < 10)    {      ftime (&s);      if (s.time < slast.time      || (s.time == slast.time && s.millitm < slast.millitm)) {      fprintf(stderr,"s: %ld, %ld, slast: %ld, %ld\n",      	s.time,s.millitm, slast.time,slast.millitm);    exit (1);	}      if (s.time != slast.time)    ++c;      slast.time = s.time;      slast.millitm = s.millitm;    }  exit (0);}],lrzsz_cv_sys_ftime_ok=yes,lrzsz_cv_sys_ftime_ok=no,lrzsz_cv_sys_ftime_ok=runtime)])case $lrzsz_cv_sys_ftime_ok inyes) AC_DEFINE(HAVE_FTIME) AC_MSG_RESULT(yes) ;;no)  AC_MSG_RESULT(no)	AC_MSG_WARN(ftime seems to be buggy) ;;runtime) AC_DEFINE(HAVE_FTIME)	AC_MSG_RESULT(will check at run time) ;;esac])dnlAC_MSG_CHECKING([for timezone])AC_CACHE_VAL(libquark_cv_var_timezone,[AC_TRY_LINK([#include <time.h>],[return(int)(timezone/2);],	[libquark_cv_var_timezone=yes],	[libquark_cv_var_timezone=no])])if test $libquark_cv_var_timezone = yes ; then	AC_MSG_RESULT(yes)	AC_DEFINE(HAVE_TIMEZONE_VAR)else	AC_MSG_RESULT(no)fiAC_SUBST(CFLAGS)AC_SUBST(LDFLAGS)AC_SUBST(LIBS)AC_OUTPUT(Makefile)

⌨️ 快捷键说明

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