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

📄 configure.ac

📁 这是一个非常有价值的参考代码
💻 AC
字号:
## avrdude - A Downloader/Uploader for AVR device programmers# Copyright (C) 2003, 2004  Theodore A. Roth  <troth@openavr.org>## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA### $Id: configure.ac,v 1.27 2005/09/21 01:37:02 bdean Exp $## Process this file with autoconf to produce a configure script.AC_PREREQ(2.57)AC_INIT(avrdude, 5.0, avrdude-dev@nongnu.org)AC_CANONICAL_BUILDAC_CANONICAL_HOSTAC_CANONICAL_TARGETAC_CONFIG_SRCDIR([main.c])AM_INIT_AUTOMAKEAM_CONFIG_HEADER([ac_cfg.h]) # Checks for programs.AC_PROG_CCAC_PROG_INSTALLAC_PROG_YACCAM_PROG_LEX# Checks for libraries.AC_CHECK_LIB([termcap], [tputs])AC_CHECK_LIB([ncurses], [tputs])AC_CHECK_LIB([readline], [readline])# usb_get_string_simple is only available in recent enough# versions of libusb, so use that as a decision base.AC_CHECK_LIB([usb], [usb_get_string_simple])# Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h sys/ioctl.h sys/time.h termios.h unistd.h])# Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_HEADER_TIME# Checks for library functions.AC_PROG_GCC_TRADITIONALAC_FUNC_MALLOCAC_CHECK_FUNCS([memset select strcasecmp strdup strerror strncasecmp strtol strtoul])# Checks for misc stuff.AC_ARG_ENABLE(	[versioned-doc],	AC_HELP_STRING(		[--enable-versioned-doc],		[install docs in directory with version name (default)]),	[case "${enableval}" in		yes) versioned_doc=yes ;;		no)  versioned_doc=no ;;		*)   AC_MSG_ERROR(bad value ${enableval} for versioned-doc option) ;;		esac],	[versioned_doc=yes])if test "$versioned_doc" = "yes"; then    DOC_INST_DIR='$(DESTDIR)$(datadir)/doc/avrdude-$(VERSION)'else    DOC_INST_DIR='$(DESTDIR)$(datadir)/doc/avrdude'fiAC_ARG_ENABLE(	[doc],	AC_HELP_STRING(		[--enable-doc],		[Enable building documents(default)]),	[case "${enableval}" in		yes) enabled_doc=yes ;;		no)  enabled_doc=no ;;		*)   AC_MSG_ERROR(bad value ${enableval} for disable-doc option) ;;		esac],	[enabled_doc=no])if test "$enabled_doc" = "yes"; thenSUBDIRS_AC='doc @WINDOWS_DIRS@'DIST_SUBDIRS_AC='doc windows'elseSUBDIRS_AC='@WINDOWS_DIRS@'DIST_SUBDIRS_AC='windows'fiAC_SUBST(DOC_INST_DIR, $DOC_INST_DIR)AC_SUBST(SUBDIRS_AC, $SUBDIRS_AC)	AC_SUBST(DIST_SUBDIRS_AC, $DIST_SUBDIRS_AC)# Find the parallel serial device files based on target system# If a system doesn't have a PC style parallel, mark it as unknown.case $target in	i[[3456]]86-*-linux*)		DEFAULT_PAR_PORT="/dev/parport0"		DEFAULT_SER_PORT="/dev/ttyS0"		;;	*-*-linux*)		DEFAULT_PAR_PORT="unknown"		DEFAULT_SER_PORT="/dev/ttyS0"		;;	i[[3456]]86-*-freebsd*)		DEFAULT_PAR_PORT="/dev/ppi0"		DEFAULT_SER_PORT="/dev/cuaa0"		;;	*-*-freebsd*)		DEFAULT_PAR_PORT="unknown"		DEFAULT_SER_PORT="/dev/cuaa0"		;;	*-*-msdos* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)		DEFAULT_PAR_PORT="lpt1"		DEFAULT_SER_PORT="com1"		;;	*)		DEFAULT_PAR_PORT="unknown"		DEFAULT_SER_PORT="unknown"		;;esacAC_MSG_CHECKING([for parallel device])AC_MSG_RESULT([$DEFAULT_PAR_PORT])AC_SUBST(DEFAULT_PAR_PORT, $DEFAULT_PAR_PORT)AC_MSG_CHECKING([for serial device])AC_MSG_RESULT([$DEFAULT_SER_PORT])AC_SUBST(DEFAULT_SER_PORT, $DEFAULT_SER_PORT)# See if we need to drop into the windows subdir.case $target in        *-*-mingw32* | *-*-cygwin* | *-*-windows*)		WINDOWS_DIRS="windows"		CFLAGS="-mno-cygwin -DWIN32NATIVE"		LDFLAGS="-static"		;;esacAC_SUBST(WINDOWS_DIRS,$WINDOWS_DIRS)# If we are compiling with gcc, enable all warning and make warnings errors.if test "$GCC" = yes; then    ENABLE_WARNINGS="-Wall"fiAC_SUBST(ENABLE_WARNINGS,$ENABLE_WARNINGS)if test "$enabled_doc" = "yes"; thenAC_CONFIG_FILES([doc/Makefile])fiAC_CONFIG_FILES([       windows/Makefile       avrdude.spec       avrdude.conf       Makefile])AC_OUTPUT

⌨️ 快捷键说明

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