mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-28 06:55:27 +00:00
These changes add basic support for a autoconf/automake based build system.
* .cvsignore: Ignore autoconf files. * AUTHORS: New file. * ChangeLog: New file. * Makefile: Removed file. * Makefile.am: New file. * NEWS: New file. * README: New file. * bootstrap: New file. * configure.ac: New file. * avr.c: Include ac_cfg.h (generated by autoconf). * config.c: Include ac_cfg.h. Include config_gram.h instead of y.tab.h. * config.h: If HAS_YYSTYPE is not defined, define YYSTYPE. * config_gram.y: Include ac_cfg.h. * fileio.c: Include ac_cfg.h. * lexer.l: Include config_gram.h instead of y.tab.h. * lists.c: Include ac_cfg.h. * main.c: Include ac_cfg.h. * par.c: Include ac_cfg.h. * pgm.c: Include ac_cfg.h. * ppi.c: Include ac_cfg.h. * stk500.c: Include ac_cfg.h. * term.c: Include ac_cfg.h. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@192 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
32
configure.ac
Normal file
32
configure.ac
Normal file
@@ -0,0 +1,32 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(avrdude, 3.1.0cvs, avrdude-dev@nongnu.org)
|
||||
AC_PREREQ(2.53)
|
||||
AC_CONFIG_SRCDIR([main.c])
|
||||
AM_INIT_AUTOMAKE
|
||||
AM_CONFIG_HEADER([ac_cfg.h])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_YACC
|
||||
AM_PROG_LEX
|
||||
|
||||
# Checks for libraries.
|
||||
AC_CHECK_LIB([termcap], [tputs])
|
||||
AC_CHECK_LIB([readline], [readline])
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_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_CONST
|
||||
AC_HEADER_TIME
|
||||
|
||||
# Checks for library functions.
|
||||
AC_PROG_GCC_TRADITIONAL
|
||||
AC_FUNC_MALLOC
|
||||
AC_CHECK_FUNCS([memset select strcasecmp strdup strerror strncasecmp strtol strtoul])
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
Reference in New Issue
Block a user