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

📄 configure.in

📁 很少见的linux下的红外口的工具
💻 IN
📖 第 1 页 / 共 2 页
字号:
  lircmd_conf="pixelview/lircmd.conf.playtv_pro"fiif test "$driver" = "bestbuy"; then  lirc_driver="lirc_dev lirc_gpio"  lircd_conf="bestbuy/lircd.conf.bestbuy"  lircmd_conf="bestbuy/lircmd.conf.bestbuy"fiif test "$driver" = "winfast_tv2000"; then  lirc_driver="lirc_dev lirc_gpio"  lircd_conf="winfast/lircd.conf.tv2000"  lircmd_conf="winfast/lircmd.conf.tv2000"fiif test "$driver" = "bestbuy2"; then  lirc_driver="lirc_dev lirc_gpio"  lircd_conf="bestbuy/lircd.conf.bestbuy2"  lircmd_conf="bestbuy/lircmd.conf.bestbuy2"fiif test "$driver" = "lpt1"; then  lirc_driver=lirc_parallel  port=0x378  irq=7fiif test "$driver" = "lpt2"; then  lirc_driver=lirc_parallel  port=0x278  irq=5fiif test "$driver" = "remotemaster"; then  lirc_driver="none"  hw_module="hw_pixelview.o serial.o"  HW_DEFAULT="hw_pixelview"  lircd_conf="pixelview/lircd.conf.remotemaster"  lircmd_conf="pixelview/lircmd.conf.remotemaster"fiif test "$driver" = "realmagic"; then  lirc_driver="none"  hw_module="hw_pixelview.o serial.o"  HW_DEFAULT="hw_pixelview"  lircd_conf="sigma_designs/lircd.conf.realmagic"#  lircmd_conf="sigma_designs/lircmd.conf.realmagic"fiif test "$driver" = "pctv"; then  lirc_driver="none"  hw_module="hw_pinsys.o serial.o"  HW_DEFAULT="hw_pinsys"  lircd_conf="pinnacle_systems/lircd.conf.pctv"#  lircmd_conf="pinnacle_systems/lircmd.conf.pctv"fiif test "$driver" = "logitech"; then  lirc_driver="none"  hw_module="hw_logitech.o serial.o"  HW_DEFAULT="hw_logitech"  lircd_conf="logitech/lircd.conf.logitech"  lircmd_conf="logitech/lircmd.conf.logitech"fiif test "$driver" = "caraca"; then  lirc_driver="caraca"  hw_module="hw_caraca.o"  HW_DEFAULT="hw_caraca"  caraca_lib=-lcaraca_client  lircd_conf= "caraca/lircd.conf.caraca"#  lircmd_conf="caraca/lircmd.conf.caraca"fiif test "$driver" = "slinke"; then  echo  echo "Please use lirc-0.6.5. The Slink-e is no longer supported."  echo  exit 1  lirc_driver="none"  hw_module="hw_slinke.o serial.o receive.o"  HW_DEFAULT="hw_slinke"fiif test "$driver" = "silitek"; then  lirc_driver="none"  hw_module="hw_silitek.o serial.o"  HW_DEFAULT="hw_silitek"  lircd_conf="silitek/lircd.conf.silitek"  lircmd_conf="silitek/lircmd.conf.silitek"fiif test "$driver" = "irreal"; then  lirc_driver="none"  hw_module="hw_irreal.o serial.o receive.o transmit.o"  HW_DEFAULT="hw_irreal"fiif test "$driver" = "irdeo"; then  lirc_driver=lirc_serial  AC_DEFINE(LIRC_SERIAL_IRDEO)fiif test "$driver" = "irdeo_remote"; then  lirc_driver=lirc_serial  AC_DEFINE(LIRC_SERIAL_IRDEO_REMOTE)fiif test "$driver" = "mediafocusI"; then  lirc_driver="none"  lircd_conf="technisat/lircd.conf.mediafocusI"#  lircmd_conf="technisat/lircmd.conf.mediafocusI"fiif test "$driver" = "creative"; then  lirc_driver="none"  hw_module="hw_creative.o serial.o"  HW_DEFAULT="hw_creative"  lircd_conf="creative/lircd.conf.creative"#  lircmd_conf="creative/lircmd.conf.creative"fiif test "$driver" = "knc_one"; then  lirc_driver="lirc_dev lirc_i2c"  lircd_conf="knc_one/lircd.conf.knc_one"#  lircmd_conf="knc_one/lircmd.conf.knc_one"fiif test "$driver" = "dsp"; then  lirc_driver="none"  hw_module="hw_dsp.o receive.o"  HW_DEFAULT="hw_dsp"fiif test "$driver" = "udp"; then  lirc_driver="none"  hw_module="hw_udp.o receive.o"  HW_DEFAULT="hw_udp"fi#END HARDWARE HEURISTICAC_DEFINE_UNQUOTED(HW_DEFAULT, ${HW_DEFAULT})dnl now check to see if the user is behaving himselfif test "$lirc_driver" = "unset"; then  AC_MSG_ERROR([no driver specified, try ./configure --help])fiif echo ${possible_drivers} | grep "($lirc_driver)" >/dev/null 2>&1; then  dummy=else  case $lirc_driver in  irman*)    AC_MSG_ERROR([*** you need to first install the libirman package	(libirman-0.4.2 or better) before you can use this driver])    ;;  caraca*)    AC_MSG_ERROR([*** you need to first install the caraca package	before you can use this driver])    ;;  lirc_*)    AC_MSG_ERROR([*** you need to have the Linux kernel source installed	for this driver])    ;;  *)    AC_MSG_ERROR([*** it is not possible to install the specified driver	on this system])    ;;  esacfidnl now we've checked, we can rename things for the drivers/Makefileif test "$lirc_driver" = "none" || test "$lirc_driver" = "irman" || test "$lirc_driver" = "irman_sw" || test "$lirc_driver" = "caraca"; then  lirc_driver=fiif test "$lirc_driver" = "lirc_dev lirc_gpio"; then  kernel_module="lirc_gpio"elif test "$lirc_driver" = "lirc_dev lirc_i2c"; then  kernel_module="lirc_i2c"elif test "$lirc_driver" = "lirc_dev lirc_bt829"; then  kernel_module="lirc_bt829"elif test "$lirc_driver" != ""; then  kernel_module=$lirc_driverfidnl slightly more advanced optionsdnl maintainer mode optionsmaintmode_daemons_extra=AC_ARG_ENABLE(maintainer-mode,[  --enable-maintainer-mode    enable maintainer specific things],[AC_DEFINE(MAINTAINER_MODE)maintmode_daemons_extra="lircd.simrec lircd.simsend slinke"])dnl don't create nor destroy devices when installing and uninstallingAC_ARG_ENABLE(manage_devices,[  --disable-manage-devices    don't create and destroy devices automatically],[ enable_manage_devices="${enableval}" ],[ enable_manage_devices="yes"])AM_CONDITIONAL(MANAGE_DEVICES, test x$enable_manage_devices = xyes)AC_ARG_WITH(devdir,[  --with-devdir=DIR       Install device files in DIR (/dev)],devdir=${withval},devdir=/dev)default_moduledir=/lib/modules/`uname -r`/miscAC_ARG_WITH(moduledir,[  --with-moduledir=DIR    kernel modules in DIR (/lib/modules/`uname -r`/misc)], moduledir=${withval},moduledir=${default_moduledir})AC_ARG_ENABLE(long-codes,[  --disable-long-codes    use this if your compiler won't do long long],test x${enableval} = xyes && AC_DEFINE(LONG_IR_CODE),AC_DEFINE(LONG_IR_CODE))AC_ARG_WITH(major,[  --with-major=value      specify the device major for the driver (61)],lirc_major=${withval},lirc_major=61)AC_ARG_WITH(port,[  --with-port=port        specify the port number for the lirc device.],port=${withval},[case $lirc_driver inlirc_serial)   port=${port:-0x3f8} ;;lirc_sir)   port=${port:-0x3f8} ;;lirc_parallel) port=${port:-0x378} ;;esac])AC_ARG_WITH(irq,[  --with-irq=irq          specify the irq line for the lirc device.],irq=${withval},[case $lirc_driver inlirc_serial)   irq=${irq:-4} ;;lirc_sir)   irq=${irq:-4} ;;lirc_parallel) irq=${irq:-7} ;;esac])AC_ARG_WITH(timer,[  --with-timer=value      specify the timer value for the parallel driver],timer=${withval},timer=65536)dnl I dont think libirman  will accept this at the momentAC_ARG_WITH(tty,[  --with-tty=file         specify the tty to use (Irman, RemoteMaster, etc.)],irtty=${withval})AC_ARG_WITH(soft-carrier,[  --without-soft-carrier  use this if your serial hw generates carrier],test x${withval} = xyes && AC_DEFINE(LIRC_SERIAL_SOFTCARRIER),AC_DEFINE(LIRC_SERIAL_SOFTCARRIER))AC_ARG_WITH(transmitter,[  --with-transmitter      use this if you use a transmitter diode],test x${withval} = xyes && AC_DEFINE(LIRC_SERIAL_TRANSMITTER))AC_ARG_ENABLE(debug,[  --enable-debug          enable debugging features],test x${enableval} = xyes && AC_DEFINE(DEBUG))AC_ARG_ENABLE(daemonize,[  --disable-daemonize     disable daemons from daemonizing],test x${enableval} = xyes && AC_DEFINE(DAEMONIZE),AC_DEFINE(DAEMONIZE))AC_ARG_WITH(syslog,[  --with-syslog=facility  use syslog instead of logfile],if test -n "${withval}"; then  facility="${withval}"  if test "${withval}" = yes; then    facility=LOG_DAEMON;  elif test "${withval}" = LOG_AUTH; then    true;  elif test "${withval}" = LOG_AUTHPRIV; then    true;  elif test "${withval}" = LOG_DAEMON; then    true;  elif test "${withval}" = LOG_LOCAL0; then    true;  elif test "${withval}" = LOG_LOCAL1; then    true;  elif test "${withval}" = LOG_LOCAL2; then    true;  elif test "${withval}" = LOG_LOCAL3; then    true;  elif test "${withval}" = LOG_LOCAL4; then    true;  elif test "${withval}" = LOG_LOCAL5; then    true;  elif test "${withval}" = LOG_LOCAL6; then    true;  elif test "${withval}" = LOG_LOCAL7; then    true;  elif test "${withval}" = LOG_USER; then    true;  else    AC_MSG_ERROR([*** invalid facility (see syslog(3) for possible facilities) ])  fi  AC_DEFINE(USE_SYSLOG)fi)dnl if --prefix is not specified, then $prefix is still set to NONE bydnl configure.  That's bad here where we want to expand it!cur_prefix=$prefixtest "x${prefix}" = "xNONE" && prefix=$ac_default_prefix test "${sysconfdir}" = "\${prefix}/etc" && sysconfdir=/etctest "${localstatedir}" = "\${prefix}/var" && localstatedir=/varsysconfdir_exp=`eval "echo ${sysconfdir}"`localstatedir_exp=`eval "echo ${localstatedir}"`prefix=$cur_prefixdnl tell the Makefiles what we decidedAC_SUBST(daemon)AC_SUBST(forkpty)AC_SUBST(devdir)AC_SUBST(sysconfdir)AC_SUBST(moduledir)AC_SUBST(lirc_major)AC_SUBST(driver)AC_SUBST(lirc_driver)AC_SUBST(irman_lib)AC_SUBST(caraca_lib)AC_SUBST(vga_progs) AC_SUBST(x_progs)AC_SUBST(hw_module)AC_SUBST(irtty)AC_SUBST(lircd_conf)AC_SUBST(lircmd_conf)AC_SUBST(maintmode_daemons_extra)dnl tell the C code what we decidedAC_DEFINE_UNQUOTED(DEVDIR, "$devdir")AC_DEFINE_UNQUOTED(SYSCONFDIR, "$sysconfdir_exp")AC_DEFINE_UNQUOTED(LOCALSTATEDIR, "$localstatedir_exp")AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")AC_DEFINE_UNQUOTED(VERSION, "$VERSION")AC_DEFINE_UNQUOTED(LIRC_DRIVER, "$driver")AC_DEFINE_UNQUOTED(LIRC_MAJOR, $lirc_major)AC_DEFINE_UNQUOTED(LIRC_PORT, $port)AC_DEFINE_UNQUOTED(LIRC_IRQ, $irq)AC_DEFINE_UNQUOTED(LIRC_TIMER, $timer)AC_DEFINE_UNQUOTED(LIRC_IRTTY, "$irtty")AC_DEFINE_UNQUOTED(LIRC_SYSLOG, $facility)dnl bug in automake/autoconf?dnl SHELL=/bin/sh AC_SUBST(SHELL)dnl write these decisions out to the MakefilesAC_OUTPUT([  Makefile  drivers/Makefile  drivers/lirc_serial/Makefile  drivers/lirc_sir/Makefile  drivers/lirc_parallel/Makefile  drivers/lirc_i2c/Makefile  drivers/lirc_gpio/Makefile  drivers/lirc_dev/Makefile  drivers/lirc_it87/Makefile  drivers/lirc_bt829/Makefile  daemons/Makefile  tools/Makefile  doc/Makefile  doc/man/Makefile])echoif test "$driver" = "mediafocusI"; then  echo "You will have to use the MediaFocus driver from:"  echo "http://www.uni-giessen.de/~gej2/"elif test "$driver" = "hauppauge_dvb"; then  echo "You will have to use the DVB driver from:"  echo "http://www.linuxtv.org"elif test "$kernel_module" = ""; then  echo "Your hardware does not require a kernel module."else  echo "You will have to use the $kernel_module kernel module."fiechoecho "Now enter 'make' and 'make install' to compile and install the package."echo

⌨️ 快捷键说明

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