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

📄 configure.in

📁 很少见的linux下的红外口的工具
💻 IN
📖 第 1 页 / 共 2 页
字号:
dnl $Id: configure.in,v 5.87 2002/10/06 09:21:08 lirc Exp $dnl Process this file with autoconf to produce a configure script.dnl configure.in, (c)1999 Tom Wheeley <tw104@york.ac.uk>AC_INIT(daemons/lircd.c)if test "$#" = "0"; then  if ! ./setup.sh; then    echo "Please read the documentation!!!"    exit 1  fi  trap - EXIT  exit 0fiAM_INIT_AUTOMAKE(lirc, 0.6.6)AM_CONFIG_HEADER(config.h)CFLAGS="-O2 -g -Wall"dnl Checks for programs.AC_PROG_CCAC_PROG_INSTALLAC_PROG_MAKE_SETAC_PATH_PROG(mknod, mknod, /bin/mknod)AC_PATH_PROG(depmod, depmod, /sbin/depmod, $PATH:/sbin)AC_PROG_LN_SAM_PROG_LIBTOOLdnl Checks for header files.AC_HEADER_STDCAC_HEADER_TIMEAC_CHECK_HEADERS(fcntl.h limits.h sys/ioctl.h sys/time.h syslog.h unistd.h)dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_C_INLINEAC_TYPE_OFF_TAC_TYPE_PID_TAC_TYPE_SIZE_TAC_STRUCT_TMdnl Checks for library functions.AC_TYPE_SIGNALAC_FUNC_VPRINTFAC_CHECK_FUNCS(gethostname gettimeofday mkfifo select socket strdup \	strerror strtoul snprintf strsep vsyslog)daemon=""AC_CHECK_FUNCS(daemon)if test "$ac_cv_func_daemon" != yes; then  AC_CHECK_LIB(bsd,daemon,daemon="-lbsd")  if test "$daemon" = ""; then    AC_MSG_ERROR([*** daemon() function not available on this system])  fififorkpty=""AC_CHECK_FUNCS(forkpty)if test "$ac_cv_func_forkpty" != yes; then  AC_CHECK_LIB(util,forkpty,[	  forkpty="-lutil"	  AC_DEFINE(HAVE_FORKPTY)])fivga_progs=AC_CHECK_HEADER(vga.h,  [AC_CHECK_HEADER(vgagl.h,    [AC_CHECK_LIB(vga, vga_init,      [AC_CHECK_LIB(vgagl, gl_setcontextvga,        [AC_DEFINE(HAVE_LIBVGA)]        vga_progs=smode2,,        -lvga      )]    )]  )])x_progs="irxevent xmode2"AC_PATH_XTRAif test "$no_x" = "yes"; then  x_progs=fidnl look for Linux kernel sourceAC_PATH_KERNEL_SOURCEdnl here we see what drivers we could possibly even hope to run.dnl this could be _much_ more sophisticated!  especially the lirc ones.AC_MSG_CHECKING([for which drivers can be installed on this system])AC_MSG_RESULT()possible_drivers="(none) (udp) (dsp) (remotemaster) (pctv) (logitech) \	(slinke) (silitek) (mediafocusI) (irreal)"if test x${no_kernel} != xyes; then  possible_drivers="${possible_drivers} (lirc_serial) (lirc_sir) \	(lirc_parallel) (lirc_dev lirc_i2c) (lirc_dev lirc_gpio) \	(lirc_dev) (lirc_it87) (lirc_dev lirc_bt829)"fiAC_CHECK_LIB(caraca_client, caraca_init,  AC_DEFINE(HAVE_LIBCARACA)  possible_drivers="${possible_drivers} (caraca)")AC_CHECK_LIB(irman, ir_strerror,  AC_DEFINE(HAVE_LIBIRMAN)  possible_drivers="${possible_drivers} (irman)")AC_CHECK_LIB(irman_sw, ir_strerror,  AC_DEFINE(HAVE_LIBIRMAN_SW)  possible_drivers="${possible_drivers} (irman_sw)")dnl here we see what driver the user wants.AC_ARG_WITH(driver,[  --with-driver=X         specify the driver to use, where X is one of:                          none, any, act200l, animax, avermedia,			  avermedia98, bestbuy, bestbuy2, caraca,			  chronos, comX, dsp, cph03x, cph06x,			  creative, fly98, flyvideo, hauppauge,			  hauppauge_dvb, irdeo, irdeo_remote, irman,			  irreal, it87, knc_one, logitech, lptX,			  mediafocusI, packard_bell, parallel, pctv,			  pixelview_bt878, pixelview_pak,			  pixelview_pro, provideo, realmagic,			  remotemaster, sa1100, serial, silitek, sir,			  slinke, tekram, tekram_bt829, udp, 			  winfast_tv2000],driver=${withval},driver="unset")#START HARDWARE HEURISTIClirc_driver="$driver"lircd_conf=""lircmd_conf=""irman_lib=""caraca_lib=""hw_module="hw_default.o receive.o transmit.o"HW_DEFAULT="hw_default"kernel_module=""if test "$driver" = "none"; then  lirc_driver=none  hw_module=""  HW_DEFAULT="hw_null"fiif test "$driver" = "any"; then  AC_DEFINE(LIRC_DRIVER_ANY)  lirc_driver="none"  #include creative driver  hw_module="${hw_module} hw_creative.o serial.o"    any_possible_drivers=`echo ${possible_drivers} | sed -e's/ /-/g' \			  -e's/)-(/ /g'  -e's/(//g' -e's/)//g' \			  -e's/-$//g'`  for any_driver in ${any_possible_drivers}; do  case ${any_driver} in	  remotemaster)	  hw_module="${hw_module} hw_pixelview.o serial.o"	  ;;	  pctv)	  hw_module="${hw_module} hw_pinsys.o serial.o"	  ;;	  logitech)	  hw_module="${hw_module} hw_logitech.o serial.o"	  ;;	  slinke)	  hw_module="${hw_module} hw_slinke.o serial.o receive.o"	  ;;	  silitek)	  hw_module="${hw_module} hw_silitek.o serial.o"	  ;;	  mediafocusI)	  ;;	  irreal)	  #hw_module="${hw_module} hw_irreal.o serial.o receive.o transmit.o"	  ;;	  lirc_serial)	  ;;	  lirc_sir)	  ;;	  lirc_it87)	  ;;	  lirc_parallel)	  ;;	  lirc_aver)	  ;;	  lirc_dev-lirc_i2c)	  #lirc_driver="${lirc_driver} lirc_dev lirc_i2c"	  ;;	  lirc_flyvideo)	  ;;	  lirc_fly98)	  ;;	  lirc_dev-lirc_gpio)	  #lirc_driver="${lirc_driver} lirc_dev lirc_gpio"	  ;;	  caraca)	  hw_module="${hw_module} hw_caraca.o"	  caraca_lib=-lcaraca_client	  ;;	  irman)	  hw_module="${hw_module} hw_irman.o serial.o"	  irman_lib=-lirman	  ;;	  #There is not much sence in using 'irman_sw' with driver 'any' and	  #that would conflict with 'irman' which will probably also be	  #available.	  #	  #irman_sw)	  #hw_module="${hw_module} hw_irman.o serial.o"	  #irman_lib=-lirman_sw	  #;;	  dsp)	  hw_module="${hw_module} hw_dsp.o receive.o"	  ;;	  udp)	  hw_module="${hw_module} hw_udp.o receive.o"	  ;;  esac  done  #remove duplicates  #hw_module=`echo ${hw_module}| tr ' ' '\n' | sort -u | tr '\n' ' '`  hw_module=`echo ${hw_module}| sed \  			-e':again' \			-e's/\(.*\)\(\<.*\) \(.*\) \2\(.*\)$/\1\2 \3\4/' \			-e'tagain'`fiif test "$driver" = "irman"; then  lirc_driver="irman"  hw_module="hw_irman.o serial.o"  HW_DEFAULT="hw_irman"  irman_lib=-lirmanfiif test "$driver" = "irman_sw"; then  lirc_driver="irman_sw"  hw_module="hw_irman.o serial.o"  HW_DEFAULT="hw_irman"  irman_lib=-lirman_swfiif test "$driver" = "serial"; then  lirc_driver=lirc_serialfiif test "$driver" = "it87"; then  lirc_driver=lirc_it87fiif test "$driver" = "sir"; then  lirc_driver=lirc_sirfiif test "$driver" = "sa1100"; then  lirc_driver=lirc_sir  AC_DEFINE(LIRC_ON_SA1100)fiif test "$driver" = "tekram"; then  lirc_driver=lirc_sir  AC_DEFINE(LIRC_SIR_TEKRAM)fiif test "$driver" = "act200l"; then  lirc_driver=lirc_sir  AC_DEFINE(LIRC_SIR_ACTISYS_ACT200L)fiif test "$driver" = "tekram_bt829"; then  lirc_driver="lirc_dev lirc_bt829"  lircd_conf="tekram/lircd.conf.m230"  lircmd_conf="tekram/lircmd.conf.m230"fiif test "$driver" = "animax"; then  lirc_driver=lirc_serial  lircd_conf="animax/lircd.conf.animax"  lircmd_conf="animax/lircmd.conf.animax"  AC_DEFINE(LIRC_SERIAL_ANIMAX)fiif test "$driver" = "packard_bell"; then  lirc_driver=lirc_serial  lircd_conf="packard_bell/lircd.conf.packard_bell"fiif test "$driver" = "com1"; then  lirc_driver=lirc_serial  port=0x3f8  irq=4fiif test "$driver" = "com2"; then  lirc_driver=lirc_serial  port=0x2f8  irq=3fiif test "$driver" = "com3"; then  lirc_driver=lirc_serial  port=0x3e8  irq=4fiif test "$driver" = "sir_com3"; then  lirc_driver=lirc_sir  port=0x3e8  irq=4fiif test "$driver" = "com4"; then  lirc_driver=lirc_serial  port=0x2e8  irq=3fiif test "$driver" = "parallel"; then  lirc_driver=lirc_parallelfiif test "$driver" = "avermedia"; then  lirc_driver="lirc_dev lirc_gpio"  lircd_conf="avermedia/lircd.conf.avermedia"  lircmd_conf="avermedia/lircmd.conf.avermedia"fiif test "$driver" = "avermedia98"; then  lirc_driver="lirc_dev lirc_gpio"  lircd_conf="avermedia/lircd.conf.avermedia98"  lircmd_conf="avermedia/lircmd.conf.avermedia98"fiif test "$driver" = "hauppauge"; then  lirc_driver="lirc_dev lirc_i2c"  lircd_conf="hauppauge/lircd.conf.hauppauge"  lircmd_conf="hauppauge/lircmd.conf.hauppauge"fiif test "$driver" = "hauppauge_dvb"; then  lirc_driver="lirc_dev"  lircd_conf="hauppauge/lircd.conf.hauppauge"  lircmd_conf="hauppauge/lircmd.conf.hauppauge"fiif test "$driver" = "pixelview_bt878"; then  lirc_driver="lirc_dev lirc_i2c"  lircd_conf="pixelview/lircd.conf.pixelview_bt878"#  lircmd_conf="pixelview/lircmd.conf.pixelview_bt878"fiif test "$driver" = "fly98"; then  lirc_driver="lirc_dev lirc_gpio"  lircd_conf="life-view/lircd.conf.fly98"  lircmd_conf="life-view/lircmd.conf.fly98"fiif test "$driver" = "flyvideo"; then  lirc_driver="lirc_dev lirc_gpio"  lircd_conf="life-view/lircd.conf.FlyVideo_II"#  lircmd_conf="life-view/lircmd.conf.FlyVideo_II"fiif test "$driver" = "cph03x"; then  lirc_driver="lirc_dev lirc_gpio"  lircd_conf="cph03x/lircd.conf.cph03x"#  lircmd_conf="cph03x/lircmd.conf.cph03x"fiif test "$driver" = "cph06x"; then  lirc_driver="lirc_dev lirc_gpio"  lircd_conf="cph03x/lircd.conf.cph03x"#  lircmd_conf="cph03x/lircmd.conf.cph03x"fiif test "$driver" = "pixelview_pro"; then  lirc_driver="lirc_dev lirc_gpio"  lircd_conf="pixelview/lircd.conf.playtv_pro"  lircmd_conf="pixelview/lircmd.conf.playtv_pro"fiif test "$driver" = "provideo"; then  lirc_driver="lirc_dev lirc_i2c"  lircd_conf="provideo/lircd.conf.pv951"#  lircmd_conf="provideo/lircmd.conf.pv951"fiif test "$driver" = "chronos"; then  lirc_driver="lirc_dev lirc_gpio"  lircd_conf="chronos/lircd.conf.chronos"#  lircmd_conf="chronos/lircmd.conf.chronos"fiif test "$driver" = "pixelview_pak"; then  lirc_driver="lirc_dev lirc_gpio"# the config files are the same as for the PlayTV pro  lircd_conf="pixelview/lircd.conf.playtv_pro"

⌨️ 快捷键说明

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