1#                                               -*- Autoconf -*-
2#
3# Copyright (c) 2004,  Theodore A. Roth
4# Copyright (c) 2005,2006,2007,2009  Anatoly Sokolov
5# Copyright (c) 2005,2008  Joerg Wunsch
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions are met:
10#
11# * Redistributions of source code must retain the above copyright
12#   notice, this list of conditions and the following disclaimer.
13# * Redistributions in binary form must reproduce the above copyright
14#   notice, this list of conditions and the following disclaimer in
15#   the documentation and/or other materials provided with the
16#   distribution.
17# * Neither the name of the copyright holders nor the names of
18#   contributors may be used to endorse or promote products derived
19#   from this software without specific prior written permission.
20#
21# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31# POSSIBILITY OF SUCH DAMAGE.
32#
33# $Id: configure.ac 2512 2016-02-08 21:07:48Z joerg_wunsch $
34#
35# Process this file with autoconf to produce a configure script.
36#
37
38dnl library versioning -- modify these on releases
39dnl        macro name           value            description
40m4_define([avr_libc_major],    [2])dnl           major version
41m4_define([avr_libc_minor],    [0])dnl           minor version
42m4_define([avr_libc_revision], [0])dnl           revision (dot-dot version)
43m4_define([avr_libc_revision_suffix], [])dnl     revision suffix (if any)
44m4_define([avr_libc_reldate],  [20150208])dnl    release date
45dnl end of library versioning data
46
47m4_define([avr_libc_version],
48          avr_libc_major.avr_libc_minor.avr_libc_revision()avr_libc_revision_suffix)dnl
49m4_define([avr_libc_version_numeric],
50          m4_eval(10000 * avr_libc_major + dnl
51                    100 * avr_libc_minor + dnl
52                          avr_libc_revision))dnl
53
54AC_INIT(avr-libc, avr_libc_version, avr-libc-dev@nongnu.org)
55
56AC_PREREQ(2.59)
57AC_REVISION($Revision: 2512 $)
58
59AC_CONFIG_SRCDIR([doc/examples/demo/demo.c])
60AC_CONFIG_HEADER([config.h])
61
62dnl substitute M4 macros into shell variables
63AVR_LIBC_MAJOR=avr_libc_major
64AVR_LIBC_MINOR=avr_libc_minor
65AVR_LIBC_REVISION=avr_libc_revision
66AVR_LIBC_RELDATE=avr_libc_reldate
67AVR_LIBC_VERSION=avr_libc_version
68AVR_LIBC_VERSION_NUMERIC=avr_libc_version_numeric
69dnl ...and trigger Makefile.in substitutions
70AC_SUBST(AVR_LIBC_MAJOR)
71AC_SUBST(AVR_LIBC_MINOR)
72AC_SUBST(AVR_LIBC_REVISION)
73AC_SUBST(AVR_LIBC_RELDATE)
74AC_SUBST(AVR_LIBC_VERSION)
75AC_SUBST(AVR_LIBC_VERSION_NUMERIC)
76
77AC_CANONICAL_BUILD
78AC_CANONICAL_HOST
79
80# See if the user specified '--build=`../config.guess` --host=avr' when
81# running ../configure.
82
83AC_MSG_CHECKING([if configuring for cross compile])
84if test "x${build_alias}" = "x${host_alias}"; then
85	if test "x${build_alias}" = "x" ; then
86		build_alias='`./config.guess`'
87	fi
88	AC_MSG_RESULT(no)
89	AC_MSG_WARN()
90	AC_MSG_WARN(AVR-LIBC must be built using an avr cross-compiler.)
91	AC_MSG_WARN(Try configuring with:)
92	AC_MSG_WARN("$0 --build=$build_alias --host=avr")
93	AC_MSG_WARN()
94	AC_MSG_ERROR(aborting configure)
95else
96	AC_MSG_RESULT([yes])
97fi
98
99AC_MSG_CHECKING([if target host is avr])
100case "$host" in
101	avr* )
102		AC_MSG_RESULT([yes])
103		;;
104	* )
105		AC_MSG_RESULT(no)
106		AC_MSG_WARN()
107		AC_MSG_WARN(Avr-libc must be built using an avr cross-compiler.)
108		AC_MSG_WARN(Try configuring with:)
109		AC_MSG_WARN("$0 --build=$build --host=avr")
110		AC_MSG_WARN()
111		AC_MSG_ERROR(aborting configure)
112		;;
113esac
114
115## TODO: Write a check for GNU Make
116
117dnl The default check whether the C compiler can create an executable
118dnl is inappropriate for us as it requires an existing library.
119AC_NO_EXECUTABLES
120
121dnl Minimum version of Automake is 1.8.
122dnl We don't want the gzip distribution tarball anymore.
123AM_INIT_AUTOMAKE([1.8 dist-bzip2 no-dist-gzip])
124
125# We don't want touse the cflags from the environment since we need control
126# of this when we're building the libs.
127CFLAGS=""
128
129
130dnl This fix is from Newlib in config/override.m4.
131dnl Fix 2.64 cross compile detection for AVR by not trying to compile fopen.
132m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.64],
133  [m4_foreach([_GCC_LANG], [C, C++, Fortran, Fortran 77],
134     [m4_define([_AC_LANG_IO_PROGRAM(]_GCC_LANG[)], m4_defn([AC_LANG_PROGRAM(]_GCC_LANG[)]))])])
135
136
137# Checks for programs.
138
139AC_PROG_CC
140AC_CHECK_TOOL(AS, as, as)
141AM_PROG_AS
142AC_PROG_RANLIB
143AC_CHECK_TOOL(AR, ar, ar)
144
145# Make sure that we found the right avr cross-compiler.
146
147case "${CC}" in
148   *gcc*)
149       case "X`${CC} -dumpmachine`X" in
150           XavrX) ;;
151           *) AC_MSG_ERROR(Wrong C compiler found; check the PATH!) ;;
152       esac
153       ;;
154   *) AC_MSG_ERROR(Wrong C compiler found; check the PATH!) ;;
155esac
156case "${AS}" in
157   *avr*as*) ;;
158   *) AC_MSG_ERROR(Wrong assembler found; check the PATH!) ;;
159esac
160case "${AR}" in
161   *avr*ar*) ;;
162   *) AC_MSG_ERROR(Wrong archiver found; check the PATH!) ;;
163esac
164case "${RANLIB}" in
165   *avr*ranlib*) ;;
166   *) AC_MSG_ERROR(Wrong ranlib found; check the PATH!) ;;
167esac
168
169AC_PROG_INSTALL
170AC_PROG_LN_S
171AC_PROG_MAKE_SET
172
173dnl Check if avr-gcc >= 5.1.0 as they expect device library
174GCC_VER=`${CC} -dumpversion`
175AS_VERSION_COMPARE(${GCC_VER},"5.1.0",[DEV_LIB="no"],[DEV_LIB="yes"],[DEV_LIB="yes"])
176AM_CONDITIONAL(HAS_GCC_5_1, test "x${GCC_VER}" = "x5.1.0")
177
178dnl Enable device library when specified. If not specified and
179dnl gcc expects (e.g. >= 5) device lib then enable device library.
180AC_ARG_ENABLE(device-lib,
181[  --enable-device-lib     build separate device library],
182[enable_device_lib=true],
183[case "${DEV_LIB}" in
184  yes) enable_device_lib=true
185       AC_MSG_NOTICE(Enabled device library) ;;
186  *) ;;
187 esac])
188
189dnl define HAS_DEV_LIB if device library enabled
190AM_CONDITIONAL(HAS_DEV_LIB, [test x$enable_device_lib = xtrue])
191
192dnl TODO: Check for various tools used to build the documentation. If anything
193dnl is missing, don't build the docs by default.
194
195dnl Disable building of dox by default since it they may not build properly on
196dnl all systems. This isn't optimal, but how do we work around the user not
197dnl having fig2dev and still build all the formats?
198
199AC_ARG_ENABLE(doc,
200[  --enable-doc            build all doc formats (disabled is default)],
201[case "${enableval}" in
202  yes) enable_doc=yes ;;
203  no)  enable_doc=no ;;
204  *)   AC_MSG_ERROR(bad value ${enableval} for global doc option) ;;
205 esac], [enable_doc=no])dnl
206dnl Various documentation options.  By default, we enable all of them,
207dnl i. e. HTML, Postscript, PDF, and Unix-style man pages.
208AC_ARG_ENABLE(html-doc,
209[  --enable-html-doc       build HTML documentation (default)],
210[case "${enableval}" in
211  yes) html_doc=yes ;;
212  no)  html_doc=no ;;
213  *)   AC_MSG_ERROR(bad value ${enableval} for html-doc option) ;;
214 esac], [html_doc=yes])dnl
215
216AC_ARG_ENABLE(pdf-doc,
217[  --enable-pdf-doc        build PDF documentation (default)],
218[case "${enableval}" in
219  yes) pdf_doc=yes ;;
220  no)  pdf_doc=no ;;
221  *)   AC_MSG_ERROR(bad value ${enableval} for pdf-doc option) ;;
222 esac], [pdf_doc=yes])dnl
223
224dnl Man pages are currently not tunable; they'll be built whenever
225dnl the HTML documentation is built.  However, it can be configured
226dnl whether the result is about to be installed or not.
227AC_ARG_ENABLE(man-doc,
228[  --enable-man-doc        build Unix-style manual pages (default)],
229[case "${enableval}" in
230  yes) man_doc=yes ;;
231  no)  man_doc=no ;;
232  *)   AC_MSG_ERROR(bad value ${enableval} for man-doc option) ;;
233 esac], [man_doc=yes])dnl
234
235AC_ARG_ENABLE(versioned-doc,
236[  --enable-versioned-doc  install docs in directory with version name (default)],
237[case "${enableval}" in
238  yes) versioned_doc=yes ;;
239  no)  versioned_doc=no ;;
240  *)   AC_MSG_ERROR(bad value ${enableval} for versioned-doc option) ;;
241 esac], [versioned_doc=yes])dnl
242
243dnl troth/2002-07-12: The CHECK_DOXYGEN macro should be moved to a config
244dnl dir. I put it here until I figure out how to integrate the config dir.
245
246dnl
247dnl @synopsis CHECK_DOXYGEN
248dnl
249dnl This macro checks if doxygen is installed on the build system
250dnl
251dnl @version Id: check_doxygen.m4,v 1.2 2002/02/10 23:22:40 troth Exp
252dnl @author Theodore A. Roth <troth@openavr.org>
253dnl
254AC_DEFUN([CHECK_DOXYGEN],[dnl
255dnl
256AC_MSG_CHECKING([for doxygen])
257dox_ver=`doxygen --version 2>/dev/null`
258if test "x$dox_ver" = "x"; then
259	AC_MSG_RESULT(no)
260else
261	# FIXME: should also check for dox_ver >= 1.4.1
262	AC_MSG_RESULT(yes)
263	if test "$pdf_doc" = "yes"; then
264		AC_MSG_NOTICE([Enabling PDF docs])
265		TARGET_DOX_PDF=dox-pdf
266		INSTALL_DOX_PDF=install-dox-pdf
267	fi
268	if test "$html_doc" = "yes"; then
269		AC_MSG_NOTICE([Enabling HTML docs])
270		TARGET_DOX_HTML=dox-html
271		INSTALL_DOX_HTML=install-dox-html
272	fi
273dnl The creation of man pages is a side-effect of the HTML
274dnl generation, so a different target is only needed for installation.
275	if test "$man_doc" = "yes"; then
276		AC_MSG_NOTICE([Enabling man pages])
277		TARGET_DOX_HTML=dox-html
278		INSTALL_DOX_MAN=install-dox-man
279	fi
280fi
281dnl
282AC_SUBST(TARGET_DOX_PDF)
283AC_SUBST(TARGET_DOX_HTML)
284AC_SUBST(INSTALL_DOX_PDF)
285AC_SUBST(INSTALL_DOX_HTML)
286AC_SUBST(INSTALL_DOX_MAN)
287])dnl
288
289CHECK_DOXYGEN
290
291dnl
292dnl @synopsis CHECK_PNG_UTILS
293dnl
294dnl This macro checks if pngtopnm and pnmtopng are installed. If they are not
295dnl installed we just fake it with "cat".
296dnl
297dnl We use these in the dox to insert transparency into the png images as such:
298dnl
299dnl   $ pngtopnm foo.png > tmp.pnm
300dnl   $ pnmtopng -transparent white tmp.pnm > foo.png
301dnl
302dnl @version
303dnl @author Theodore A. Roth <troth@openavr.org> and Eric B. Weddington <eweddington@cso.atmel.com>
304dnl
305AC_DEFUN([CHECK_PNG_UTILS],[dnl
306dnl
307AC_MSG_CHECKING([for pngtopnm])
308has_pngtopnm=`pngtopnm --version 2>&1 | grep -c -i Version`
309if test "$has_pngtopnm" = "1"; then
310	AC_MSG_RESULT(yes)
311	PNGTOPNM="pngtopnm"
312else
313	AC_MSG_RESULT(no)
314	PNGTOPNM="cat"
315fi
316dnl
317AC_MSG_CHECKING([for pnmtopng])
318has_pnmtopng=`pnmtopng --version 2>&1 | grep -c -i Version`
319if test "$has_pnmtopng" = "1"; then
320	AC_MSG_RESULT(yes)
321	PNMTOPNG="pnmtopng"
322else
323	AC_MSG_RESULT(no)
324	PNMTOPNG="cat"
325    PNGTOPNM="cat"
326fi
327AC_SUBST(PNGTOPNM)
328AC_SUBST(PNMTOPNG)
329])dnl
330
331CHECK_PNG_UTILS
332
333if test "$versioned_doc" = "yes"; then
334	DOC_INST_DIR='${DESTDIR}${datadir}/doc/avr-libc-$(VERSION)'
335	AVR_LIBC_USER_MANUAL="avr-libc-user-manual-${VERSION}"
336else
337	DOC_INST_DIR='${DESTDIR}${datadir}/doc/avr-libc'
338	AVR_LIBC_USER_MANUAL="avr-libc-user-manual"
339fi
340
341dnl We only want to build the docs if the user has passed
342dnl "--enable-doc" to configure.
343if test "$enable_doc" = "yes"; then
344	DOCSDIR='api'
345else
346	DOCSDIR=''
347fi
348
349AC_SUBST(DOCSDIR)
350AC_SUBST(AVR_LIBC_USER_MANUAL)
351AC_SUBST(DOC_INST_DIR)
352
353dnl Let the user decide which debug information to generate.
354dnl Default is nothing, suitable for binary distributions of the
355dnl compiled library.  Alternative options include stabs, dwarf-2,
356dnl dwarf-4 or [compiler's default version] dwarf.
357AC_ARG_ENABLE(debug-info,
358[  --enable-debug-info=stabs|dwarf-2|dwarf-4  Enable generation of debugging information],
359[case "${enableval}" in
360  yes|dwarf2|dwarf-2) debuginfo=dwarf2 ;;
361  no)                 debuginfo="" ;;
362  stabs)              debuginfo=stabs ;;
363  dwarf4|dwarf-4)     debuginfo=dwarf4 ;;
364  dwarf)              debuginfo=dwarf ;;
365  *)                  AC_MSG_ERROR([bad value ${enableval} for --enable-debug-info option; should be either stabs, dwarf-2, or dwarf-4]) ;;
366 esac], [debuginfo=""])
367
368dnl Decide which debuginfo information to include
369case "$debuginfo" in
370"")      CDEBUG=""; ASDEBUG="" ;;
371stabs)   CDEBUG="-gstabs"; ASDEBUG="-Wa,-gstabs" ;;
372dwarf2)  CDEBUG="-gdwarf-2"; ASDEBUG="-Wa,-gdwarf-2" ;;
373dwarf4)  CDEBUG="-gdwarf-4"; ASDEBUG="-Wa,-gdwarf-2" ;;
374dwarf)   CDEBUG="-gdwarf"; ASDEBUG="-Wa,-gdwarf-2" ;;
375esac
376
377AC_SUBST(CDEBUG)
378AC_SUBST(ASDEBUG)
379
380FNO_JUMP_TABLES=""
381AC_SUBST(FNO_JUMP_TABLES)
382
383HAS_DELAY_CYCLES=0
384AC_SUBST(HAS_DELAY_CYCLES)
385
386AC_DEFUN(
387  CHECK_MNO_TABLEJUMP,
388  [
389    old_CC=${CC}
390    old_CFLAGS=${CFLAGS}
391    CFLAGS="-mno-tablejump"
392    CC=`echo "${CC}" | sed 's/-mmcu=avr.//'`
393    AC_MSG_CHECKING(whether ${CC} supports -mno-tablejump)
394    AC_COMPILE_IFELSE(
395      [AC_LANG_SOURCE([],[])],
396      [has_mno_tablejump=yes],
397      [has_mno_tablejump=no]
398    )
399    if test "x$has_mno_tablejump" = "xyes"
400    then
401      FNO_JUMP_TABLES="-mno-tablejump"
402    fi
403    AC_MSG_RESULT($has_mno_tablejump)
404    CC=${old_CC}
405    CFLAGS=${old_CFLAGS}
406  ]
407)
408
409AC_DEFUN(
410  CHECK_FNO_JUMP_TABLES,
411  [
412    old_CC=${CC}
413    old_CFLAGS=${CFLAGS}
414    CFLAGS="-fno-jump-tables"
415    CC=`echo "${CC}" | sed 's/-mmcu=avr.//'`
416    AC_MSG_CHECKING(whether ${CC} supports -fno-jump-tables)
417    AC_COMPILE_IFELSE(
418      [AC_LANG_SOURCE([],[])],
419      [has_fno_jump_tables=yes],
420      [has_fno_jump_tables=no]
421    )
422    if test "x$has_fno_jump_tables" = "xyes"
423    then
424      FNO_JUMP_TABLES="-fno-jump-tables"
425    fi
426    AC_MSG_RESULT($has_fno_jump_tables)
427    CC=${old_CC}
428    CFLAGS=${old_CFLAGS}
429  ]
430)
431
432AC_DEFUN(
433  CHECK_BUILTIN_DELAY_CYCLES,
434  [
435    CC=`echo "${CC}" | sed 's/-mmcu=avr.//'`
436    AC_MSG_CHECKING(whether ${CC} supports __builtin_avr_delay_cycles)
437    echo "extern void __builtin_avr_delay_cycles(unsigned long);\
438    int main(void) { __builtin_avr_delay_cycles(42); return 0; }" |\
439    ${CC} -S -xc -o - - |\
440    grep __builtin_avr_delay_cycles >/dev/null
441    if test "$?" != "0"
442    then
443      HAS_DELAY_CYCLES=1
444      has_delay_cycles="yes"
445    else
446      has_delay_cycles="no"
447    fi
448    AC_MSG_RESULT($has_delay_cycles)
449    CC=${old_CC}
450  ]
451)
452
453CHECK_MNO_TABLEJUMP
454CHECK_FNO_JUMP_TABLES
455CHECK_BUILTIN_DELAY_CYCLES
456
457dnl Some devices are only handled by newer version of gcc. This macro lets us
458dnl probe to see if the installed avr-gcc supports a questionable device.
459AC_DEFUN(
460  CHECK_AVR_DEVICE,
461  [
462    old_CC=${CC}
463    old_CFLAGS=${CFLAGS}
464    CFLAGS="-mmcu=$1"
465    CC=`echo "${CC}" | sed 's/-mmcu=avr.//'`
466    AC_MSG_CHECKING(if ${CC} has support for $1)
467    AC_COMPILE_IFELSE(
468      [AC_LANG_SOURCE([],[])],
469      [has_dev_support=yes],
470      [has_dev_support=no]
471    )
472    if test "x$has_dev_support" = "xyes"
473    then
474      HAS_$1=yes
475    fi
476    AC_MSG_RESULT($has_dev_support)
477    CC=${old_CC}
478    CFLAGS=${old_CFLAGS}
479  ]
480)
481
482
483# avr1
484AM_CONDITIONAL(HAS_avr1, true)
485AM_CONDITIONAL(HAS_at90s1200, true)
486AM_CONDITIONAL(HAS_attiny11, true)
487AM_CONDITIONAL(HAS_attiny12, true)
488AM_CONDITIONAL(HAS_attiny15, true)
489AM_CONDITIONAL(HAS_attiny28, true)
490
491
492# avr2
493AM_CONDITIONAL(HAS_avr2, true)
494AM_CONDITIONAL(HAS_at90s2313, true)
495AM_CONDITIONAL(HAS_at90s2323, true)
496AM_CONDITIONAL(HAS_at90s2333, true)
497AM_CONDITIONAL(HAS_at90s2343, true)
498AM_CONDITIONAL(HAS_at90s4414, true)
499AM_CONDITIONAL(HAS_at90s4433, true)
500AM_CONDITIONAL(HAS_at90s4434, true)
501AM_CONDITIONAL(HAS_at90s8515, true)
502AM_CONDITIONAL(HAS_at90c8534, true)
503AM_CONDITIONAL(HAS_at90s8535, true)
504AM_CONDITIONAL(HAS_attiny22, true)
505AM_CONDITIONAL(HAS_attiny26, true)
506
507
508#avr25
509CHECK_AVR_DEVICE(avr25)
510AM_CONDITIONAL(HAS_avr25, test "x$HAS_avr25" = "xyes")
511
512CHECK_AVR_DEVICE(ata5272)
513AM_CONDITIONAL(HAS_ata5272, test "x$HAS_ata5272" = "xyes")
514
515CHECK_AVR_DEVICE(ata6616c)
516AM_CONDITIONAL(HAS_ata6616c, test "x$HAS_ata6616c" = "xyes")
517
518CHECK_AVR_DEVICE(attiny13)
519AM_CONDITIONAL(HAS_attiny13, test "x$HAS_attiny13" = "xyes")
520
521CHECK_AVR_DEVICE(attiny13a)
522AM_CONDITIONAL(HAS_attiny13a, test "x$HAS_attiny13a" = "xyes")
523
524CHECK_AVR_DEVICE(attiny2313)
525AM_CONDITIONAL(HAS_attiny2313, test "x$HAS_attiny2313" = "xyes")
526
527CHECK_AVR_DEVICE(attiny2313a)
528AM_CONDITIONAL(HAS_attiny2313a, test "x$HAS_attiny2313a" = "xyes")
529
530CHECK_AVR_DEVICE(attiny24)
531AM_CONDITIONAL(HAS_attiny24, test "x$HAS_attiny24" = "xyes")
532
533CHECK_AVR_DEVICE(attiny24a)
534AM_CONDITIONAL(HAS_attiny24a, test "x$HAS_attiny24a" = "xyes")
535
536CHECK_AVR_DEVICE(attiny25)
537AM_CONDITIONAL(HAS_attiny25, test "x$HAS_attiny25" = "xyes")
538
539CHECK_AVR_DEVICE(attiny261)
540AM_CONDITIONAL(HAS_attiny261, test "x$HAS_attiny261" = "xyes")
541
542CHECK_AVR_DEVICE(attiny261a)
543AM_CONDITIONAL(HAS_attiny261a, test "x$HAS_attiny261a" = "xyes")
544
545CHECK_AVR_DEVICE(attiny43u)
546AM_CONDITIONAL(HAS_attiny43u, test "x$HAS_attiny43u" = "xyes")
547
548CHECK_AVR_DEVICE(attiny4313)
549AM_CONDITIONAL(HAS_attiny4313, test "x$HAS_attiny4313" = "xyes")
550
551CHECK_AVR_DEVICE(attiny44)
552AM_CONDITIONAL(HAS_attiny44, test "x$HAS_attiny44" = "xyes")
553
554CHECK_AVR_DEVICE(attiny441)
555AM_CONDITIONAL(HAS_attiny441, test "x$HAS_attiny441" = "xyes")
556
557CHECK_AVR_DEVICE(attiny44a)
558AM_CONDITIONAL(HAS_attiny44a, test "x$HAS_attiny44a" = "xyes")
559
560CHECK_AVR_DEVICE(attiny45)
561AM_CONDITIONAL(HAS_attiny45, test "x$HAS_attiny45" = "xyes")
562
563CHECK_AVR_DEVICE(attiny461)
564AM_CONDITIONAL(HAS_attiny461, test "x$HAS_attiny461" = "xyes")
565
566CHECK_AVR_DEVICE(attiny461a)
567AM_CONDITIONAL(HAS_attiny461a, test "x$HAS_attiny461a" = "xyes")
568
569CHECK_AVR_DEVICE(attiny48)
570AM_CONDITIONAL(HAS_attiny48, test "x$HAS_attiny48" = "xyes")
571
572CHECK_AVR_DEVICE(attiny828)
573AM_CONDITIONAL(HAS_attiny828, test "x$HAS_attiny828" = "xyes")
574
575CHECK_AVR_DEVICE(attiny84)
576AM_CONDITIONAL(HAS_attiny84, test "x$HAS_attiny84" = "xyes")
577
578CHECK_AVR_DEVICE(attiny841)
579AM_CONDITIONAL(HAS_attiny841, test "x$HAS_attiny841" = "xyes")
580
581CHECK_AVR_DEVICE(attiny84a)
582AM_CONDITIONAL(HAS_attiny84a, test "x$HAS_attiny84a" = "xyes")
583
584CHECK_AVR_DEVICE(attiny85)
585AM_CONDITIONAL(HAS_attiny85, test "x$HAS_attiny85" = "xyes")
586
587CHECK_AVR_DEVICE(attiny861)
588AM_CONDITIONAL(HAS_attiny861, test "x$HAS_attiny861" = "xyes")
589
590CHECK_AVR_DEVICE(attiny861a)
591AM_CONDITIONAL(HAS_attiny861a, test "x$HAS_attiny861a" = "xyes")
592
593CHECK_AVR_DEVICE(attiny87)
594AM_CONDITIONAL(HAS_attiny87, test "x$HAS_attiny87" = "xyes")
595
596CHECK_AVR_DEVICE(attiny88)
597AM_CONDITIONAL(HAS_attiny88, test "x$HAS_attiny88" = "xyes")
598
599CHECK_AVR_DEVICE(at86rf401)
600AM_CONDITIONAL(HAS_at86rf401, test "x$HAS_at86rf401" = "xyes")
601
602
603# avr3
604AM_CONDITIONAL(HAS_avr3, true)
605AM_CONDITIONAL(HAS_at43usb320, true)
606AM_CONDITIONAL(HAS_at43usb355, true)
607AM_CONDITIONAL(HAS_at76c711, true)
608
609#avr31
610CHECK_AVR_DEVICE(avr31)
611AM_CONDITIONAL(HAS_avr31, test "x$HAS_avr31" = "xyes")
612
613AM_CONDITIONAL(HAS_atmega103, true)
614
615
616#avr35
617CHECK_AVR_DEVICE(avr35)
618AM_CONDITIONAL(HAS_avr35, test "x$HAS_avr35" = "xyes")
619
620CHECK_AVR_DEVICE(at90usb82)
621AM_CONDITIONAL(HAS_at90usb82, test "x$HAS_at90usb82" = "xyes")
622
623CHECK_AVR_DEVICE(at90usb162)
624AM_CONDITIONAL(HAS_at90usb162, test "x$HAS_at90usb162" = "xyes")
625
626CHECK_AVR_DEVICE(ata5505)
627AM_CONDITIONAL(HAS_ata5505, test "x$HAS_ata5505" = "xyes")
628
629CHECK_AVR_DEVICE(ata6617c)
630AM_CONDITIONAL(HAS_ata6617c, test "x$HAS_ata6617c" = "xyes")
631
632CHECK_AVR_DEVICE(ata664251)
633AM_CONDITIONAL(HAS_ata664251, test "x$HAS_ata664251" = "xyes")
634
635CHECK_AVR_DEVICE(atmega8u2)
636AM_CONDITIONAL(HAS_atmega8u2, test "x$HAS_atmega8u2" = "xyes")
637
638CHECK_AVR_DEVICE(atmega16u2)
639AM_CONDITIONAL(HAS_atmega16u2, test "x$HAS_atmega16u2" = "xyes")
640
641CHECK_AVR_DEVICE(atmega32u2)
642AM_CONDITIONAL(HAS_atmega32u2, test "x$HAS_atmega32u2" = "xyes")
643
644CHECK_AVR_DEVICE(attiny167)
645AM_CONDITIONAL(HAS_attiny167, test "x$HAS_attiny167" = "xyes")
646
647CHECK_AVR_DEVICE(attiny1634)
648AM_CONDITIONAL(HAS_attiny1634, test "x$HAS_attiny1634" = "xyes")
649
650
651# avr4
652AM_CONDITIONAL(HAS_avr4, true)
653AM_CONDITIONAL(HAS_atmega8, true)
654AM_CONDITIONAL(HAS_atmega8515, true)
655AM_CONDITIONAL(HAS_atmega8535, true)
656
657CHECK_AVR_DEVICE(ata6285)
658AM_CONDITIONAL(HAS_ata6285, test "x$HAS_ata6285" = "xyes")
659
660CHECK_AVR_DEVICE(ata6286)
661AM_CONDITIONAL(HAS_ata6286, test "x$HAS_ata6286" = "xyes")
662
663CHECK_AVR_DEVICE(ata6289)
664AM_CONDITIONAL(HAS_ata6289, test "x$HAS_ata6289" = "xyes")
665
666CHECK_AVR_DEVICE(ata6612c)
667AM_CONDITIONAL(HAS_ata6612c, test "x$HAS_ata6612c" = "xyes")
668
669CHECK_AVR_DEVICE(atmega8a)
670AM_CONDITIONAL(HAS_atmega8a, test "x$HAS_atmega8a" = "xyes")
671
672CHECK_AVR_DEVICE(atmega48)
673AM_CONDITIONAL(HAS_atmega48, test "x$HAS_atmega48" = "xyes")
674
675CHECK_AVR_DEVICE(atmega48a)
676AM_CONDITIONAL(HAS_atmega48a, test "x$HAS_atmega48a" = "xyes")
677
678CHECK_AVR_DEVICE(atmega48pa)
679AM_CONDITIONAL(HAS_atmega48pa, test "x$HAS_atmega48pa" = "xyes")
680
681CHECK_AVR_DEVICE(atmega48pb)
682AM_CONDITIONAL(HAS_atmega48pb, test "x$HAS_atmega48pb" = "xyes")
683
684CHECK_AVR_DEVICE(atmega48p)
685AM_CONDITIONAL(HAS_atmega48p, test "x$HAS_atmega48p" = "xyes")
686
687CHECK_AVR_DEVICE(atmega88)
688AM_CONDITIONAL(HAS_atmega88, test "x$HAS_atmega88" = "xyes")
689
690CHECK_AVR_DEVICE(atmega88a)
691AM_CONDITIONAL(HAS_atmega88a, test "x$HAS_atmega88a" = "xyes")
692
693CHECK_AVR_DEVICE(atmega88p)
694AM_CONDITIONAL(HAS_atmega88p, test "x$HAS_atmega88p" = "xyes")
695
696CHECK_AVR_DEVICE(atmega88pa)
697AM_CONDITIONAL(HAS_atmega88pa, test "x$HAS_atmega88pa" = "xyes")
698
699CHECK_AVR_DEVICE(atmega88pb)
700AM_CONDITIONAL(HAS_atmega88pb, test "x$HAS_atmega88pb" = "xyes")
701
702CHECK_AVR_DEVICE(atmega8hva)
703AM_CONDITIONAL(HAS_atmega8hva, test "x$HAS_atmega8hva" = "xyes")
704
705CHECK_AVR_DEVICE(at90pwm1)
706AM_CONDITIONAL(HAS_at90pwm1, test "x$HAS_at90pwm1" = "xyes")
707
708CHECK_AVR_DEVICE(at90pwm2)
709AM_CONDITIONAL(HAS_at90pwm2, test "x$HAS_at90pwm2" = "xyes")
710
711CHECK_AVR_DEVICE(at90pwm2b)
712AM_CONDITIONAL(HAS_at90pwm2b, test "x$HAS_at90pwm2b" = "xyes")
713
714CHECK_AVR_DEVICE(at90pwm3)
715AM_CONDITIONAL(HAS_at90pwm3, test "x$HAS_at90pwm3" = "xyes")
716
717CHECK_AVR_DEVICE(at90pwm3b)
718AM_CONDITIONAL(HAS_at90pwm3b, test "x$HAS_at90pwm3b" = "xyes")
719
720CHECK_AVR_DEVICE(at90pwm81)
721AM_CONDITIONAL(HAS_at90pwm81, test "x$HAS_at90pwm81" = "xyes")
722
723
724# avr5
725AM_CONDITIONAL(HAS_avr5, true)
726
727CHECK_AVR_DEVICE(at90can32)
728AM_CONDITIONAL(HAS_at90can32, test "x$HAS_at90can32" = "xyes")
729
730CHECK_AVR_DEVICE(at90can64)
731AM_CONDITIONAL(HAS_at90can64, test "x$HAS_at90can64" = "xyes")
732
733CHECK_AVR_DEVICE(at90scr100)
734AM_CONDITIONAL(HAS_at90scr100, test "x$HAS_at90scr100" = "xyes")
735
736CHECK_AVR_DEVICE(at90usb646)
737AM_CONDITIONAL(HAS_at90usb646, test "x$HAS_at90usb646" = "xyes")
738
739CHECK_AVR_DEVICE(at90usb647)
740AM_CONDITIONAL(HAS_at90usb647, test "x$HAS_at90usb647" = "xyes")
741
742CHECK_AVR_DEVICE(at90pwm316)
743AM_CONDITIONAL(HAS_at90pwm316, test "x$HAS_at90pwm316" = "xyes")
744
745CHECK_AVR_DEVICE(at90pwm216)
746AM_CONDITIONAL(HAS_at90pwm216, test "x$HAS_at90pwm216" = "xyes")
747
748CHECK_AVR_DEVICE(at90pwm161)
749AM_CONDITIONAL(HAS_at90pwm161, test "x$HAS_at90pwm161" = "xyes")
750
751CHECK_AVR_DEVICE(at94k)
752AM_CONDITIONAL(HAS_at94k, test "x$HAS_at94k" = "xyes")
753
754CHECK_AVR_DEVICE(ata5702m322)
755AM_CONDITIONAL(HAS_ata5702m322, test "x$HAS_ata5702m322" = "xyes")
756
757CHECK_AVR_DEVICE(ata5782)
758AM_CONDITIONAL(HAS_ata5782, test "x$HAS_ata5782" = "xyes")
759
760CHECK_AVR_DEVICE(ata5790)
761AM_CONDITIONAL(HAS_ata5790, test "x$HAS_ata5790" = "xyes")
762
763CHECK_AVR_DEVICE(ata5790n)
764AM_CONDITIONAL(HAS_ata5790n, test "x$HAS_ata5790n" = "xyes")
765
766CHECK_AVR_DEVICE(ata5795)
767AM_CONDITIONAL(HAS_ata5795, test "x$HAS_ata5795" = "xyes")
768
769CHECK_AVR_DEVICE(ata5831)
770AM_CONDITIONAL(HAS_ata5831, test "x$HAS_ata5831" = "xyes")
771
772CHECK_AVR_DEVICE(ata6613c)
773AM_CONDITIONAL(HAS_ata6613c, test "x$HAS_ata6613c" = "xyes")
774
775CHECK_AVR_DEVICE(ata6614q)
776AM_CONDITIONAL(HAS_ata6614q, test "x$HAS_ata6614q" = "xyes")
777
778CHECK_AVR_DEVICE(atmega16)
779AM_CONDITIONAL(HAS_atmega16, test "x$HAS_atmega16" = "xyes")
780
781CHECK_AVR_DEVICE(atmega16a)
782AM_CONDITIONAL(HAS_atmega16a, test "x$HAS_atmega16a" = "xyes")
783
784CHECK_AVR_DEVICE(atmega161)
785AM_CONDITIONAL(HAS_atmega161, test "x$HAS_atmega161" = "xyes")
786
787CHECK_AVR_DEVICE(atmega162)
788AM_CONDITIONAL(HAS_atmega162, test "x$HAS_atmega162" = "xyes")
789
790CHECK_AVR_DEVICE(atmega163)
791AM_CONDITIONAL(HAS_atmega163, test "x$HAS_atmega163" = "xyes")
792
793CHECK_AVR_DEVICE(atmega164a)
794AM_CONDITIONAL(HAS_atmega164a, test "x$HAS_atmega164a" = "xyes")
795
796CHECK_AVR_DEVICE(atmega164p)
797AM_CONDITIONAL(HAS_atmega164p, test "x$HAS_atmega164p" = "xyes")
798
799CHECK_AVR_DEVICE(atmega164pa)
800AM_CONDITIONAL(HAS_atmega164pa, test "x$HAS_atmega164pa" = "xyes")
801
802CHECK_AVR_DEVICE(atmega165)
803AM_CONDITIONAL(HAS_atmega165, test "x$HAS_atmega165" = "xyes")
804
805CHECK_AVR_DEVICE(atmega165a)
806AM_CONDITIONAL(HAS_atmega165a, test "x$HAS_atmega165a" = "xyes")
807
808CHECK_AVR_DEVICE(atmega165p)
809AM_CONDITIONAL(HAS_atmega165p, test "x$HAS_atmega165p" = "xyes")
810
811CHECK_AVR_DEVICE(atmega165pa)
812AM_CONDITIONAL(HAS_atmega165pa, test "x$HAS_atmega165pa" = "xyes")
813
814CHECK_AVR_DEVICE(atmega168)
815AM_CONDITIONAL(HAS_atmega168, test "x$HAS_atmega168" = "xyes")
816
817CHECK_AVR_DEVICE(atmega168a)
818AM_CONDITIONAL(HAS_atmega168a, test "x$HAS_atmega168a" = "xyes")
819
820CHECK_AVR_DEVICE(atmega168p)
821AM_CONDITIONAL(HAS_atmega168p, test "x$HAS_atmega168p" = "xyes")
822
823CHECK_AVR_DEVICE(atmega168pa)
824AM_CONDITIONAL(HAS_atmega168pa, test "x$HAS_atmega168pa" = "xyes")
825
826CHECK_AVR_DEVICE(atmega169)
827AM_CONDITIONAL(HAS_atmega169, test "x$HAS_atmega169" = "xyes")
828
829CHECK_AVR_DEVICE(atmega169a)
830AM_CONDITIONAL(HAS_atmega169a, test "x$HAS_atmega169a" = "xyes")
831
832CHECK_AVR_DEVICE(atmega169p)
833AM_CONDITIONAL(HAS_atmega169p, test "x$HAS_atmega169p" = "xyes")
834
835CHECK_AVR_DEVICE(atmega169pa)
836AM_CONDITIONAL(HAS_atmega169pa, test "x$HAS_atmega169pa" = "xyes")
837
838CHECK_AVR_DEVICE(atmega16hva)
839AM_CONDITIONAL(HAS_atmega16hva, test "x$HAS_atmega16hva" = "xyes")
840
841CHECK_AVR_DEVICE(atmega16hva2)
842AM_CONDITIONAL(HAS_atmega16hva2, test "x$HAS_atmega16hva2" = "xyes")
843
844CHECK_AVR_DEVICE(atmega16hvb)
845AM_CONDITIONAL(HAS_atmega16hvb, test "x$HAS_atmega16hvb" = "xyes")
846
847CHECK_AVR_DEVICE(atmega16hvbrevb)
848AM_CONDITIONAL(HAS_atmega16hvbrevb, test "x$HAS_atmega16hvbrevb" = "xyes")
849
850CHECK_AVR_DEVICE(atmega16m1)
851AM_CONDITIONAL(HAS_atmega16m1, test "x$HAS_atmega16m1" = "xyes")
852
853CHECK_AVR_DEVICE(atmega16u4)
854AM_CONDITIONAL(HAS_atmega16u4, test "x$HAS_atmega16u4" = "xyes")
855
856CHECK_AVR_DEVICE(atmega32)
857AM_CONDITIONAL(HAS_atmega32, test "x$HAS_atmega32" = "xyes")
858
859CHECK_AVR_DEVICE(atmega32a)
860AM_CONDITIONAL(HAS_atmega32a, test "x$HAS_atmega32a" = "xyes")
861
862CHECK_AVR_DEVICE(atmega323)
863AM_CONDITIONAL(HAS_atmega323, test "x$HAS_atmega323" = "xyes")
864
865CHECK_AVR_DEVICE(atmega324a)
866AM_CONDITIONAL(HAS_atmega324a, test "x$HAS_atmega324a" = "xyes")
867
868CHECK_AVR_DEVICE(atmega324p)
869AM_CONDITIONAL(HAS_atmega324p, test "x$HAS_atmega324p" = "xyes")
870
871CHECK_AVR_DEVICE(atmega324pa)
872AM_CONDITIONAL(HAS_atmega324pa, test "x$HAS_atmega324pa" = "xyes")
873
874CHECK_AVR_DEVICE(atmega325)
875AM_CONDITIONAL(HAS_atmega325, test "x$HAS_atmega325" = "xyes")
876
877CHECK_AVR_DEVICE(atmega325a)
878AM_CONDITIONAL(HAS_atmega325a, test "x$HAS_atmega325a" = "xyes")
879
880CHECK_AVR_DEVICE(atmega325p)
881AM_CONDITIONAL(HAS_atmega325p, test "x$HAS_atmega325p" = "xyes")
882
883CHECK_AVR_DEVICE(atmega325pa)
884AM_CONDITIONAL(HAS_atmega325pa, test "x$HAS_atmega325pa" = "xyes")
885
886CHECK_AVR_DEVICE(atmega3250)
887AM_CONDITIONAL(HAS_atmega3250, test "x$HAS_atmega3250" = "xyes")
888
889CHECK_AVR_DEVICE(atmega3250a)
890AM_CONDITIONAL(HAS_atmega3250a, test "x$HAS_atmega3250a" = "xyes")
891
892CHECK_AVR_DEVICE(atmega3250p)
893AM_CONDITIONAL(HAS_atmega3250p, test "x$HAS_atmega3250p" = "xyes")
894
895CHECK_AVR_DEVICE(atmega3250pa)
896AM_CONDITIONAL(HAS_atmega3250pa, test "x$HAS_atmega3250pa" = "xyes")
897
898CHECK_AVR_DEVICE(atmega328)
899AM_CONDITIONAL(HAS_atmega328, test "x$HAS_atmega328" = "xyes")
900
901CHECK_AVR_DEVICE(atmega328p)
902AM_CONDITIONAL(HAS_atmega328p, test "x$HAS_atmega328p" = "xyes")
903
904CHECK_AVR_DEVICE(atmega329)
905AM_CONDITIONAL(HAS_atmega329, test "x$HAS_atmega329" = "xyes")
906
907CHECK_AVR_DEVICE(atmega329a)
908AM_CONDITIONAL(HAS_atmega329a, test "x$HAS_atmega329a" = "xyes")
909
910CHECK_AVR_DEVICE(atmega329p)
911AM_CONDITIONAL(HAS_atmega329p, test "x$HAS_atmega329p" = "xyes")
912
913CHECK_AVR_DEVICE(atmega329pa)
914AM_CONDITIONAL(HAS_atmega329pa, test "x$HAS_atmega329pa" = "xyes")
915
916CHECK_AVR_DEVICE(atmega3290)
917AM_CONDITIONAL(HAS_atmega3290, test "x$HAS_atmega3290" = "xyes")
918
919CHECK_AVR_DEVICE(atmega3290a)
920AM_CONDITIONAL(HAS_atmega3290a, test "x$HAS_atmega3290a" = "xyes")
921
922CHECK_AVR_DEVICE(atmega3290p)
923AM_CONDITIONAL(HAS_atmega3290p, test "x$HAS_atmega3290p" = "xyes")
924
925CHECK_AVR_DEVICE(atmega3290pa)
926AM_CONDITIONAL(HAS_atmega3290pa, test "x$HAS_atmega3290pa" = "xyes")
927
928CHECK_AVR_DEVICE(atmega32c1)
929AM_CONDITIONAL(HAS_atmega32c1, test "x$HAS_atmega32c1" = "xyes")
930
931CHECK_AVR_DEVICE(atmega32hvb)
932AM_CONDITIONAL(HAS_atmega32hvb, test "x$HAS_atmega32hvb" = "xyes")
933
934CHECK_AVR_DEVICE(atmega32hvbrevb)
935AM_CONDITIONAL(HAS_atmega32hvbrevb, test "x$HAS_atmega32hvbrevb" = "xyes")
936
937CHECK_AVR_DEVICE(atmega32m1)
938AM_CONDITIONAL(HAS_atmega32m1, test "x$HAS_atmega32m1" = "xyes")
939
940CHECK_AVR_DEVICE(atmega32u4)
941AM_CONDITIONAL(HAS_atmega32u4, test "x$HAS_atmega32u4" = "xyes")
942
943CHECK_AVR_DEVICE(atmega32u6)
944AM_CONDITIONAL(HAS_atmega32u6, test "x$HAS_atmega32u6" = "xyes")
945
946CHECK_AVR_DEVICE(atmega406)
947AM_CONDITIONAL(HAS_atmega406, test "x$HAS_atmega406" = "xyes")
948
949CHECK_AVR_DEVICE(atmega644rfr2)
950AM_CONDITIONAL(HAS_atmega644rfr2, test "x$HAS_atmega644rfr2" = "xyes")
951
952CHECK_AVR_DEVICE(atmega64rfr2)
953AM_CONDITIONAL(HAS_atmega64rfr2, test "x$HAS_atmega64rfr2" = "xyes")
954
955CHECK_AVR_DEVICE(atmega64)
956AM_CONDITIONAL(HAS_atmega64, test "x$HAS_atmega64" = "xyes")
957
958CHECK_AVR_DEVICE(atmega64a)
959AM_CONDITIONAL(HAS_atmega64a, test "x$HAS_atmega64a" = "xyes")
960
961CHECK_AVR_DEVICE(atmega640)
962AM_CONDITIONAL(HAS_atmega640, test "x$HAS_atmega640" = "xyes")
963
964CHECK_AVR_DEVICE(atmega644)
965AM_CONDITIONAL(HAS_atmega644, test "x$HAS_atmega644" = "xyes")
966
967CHECK_AVR_DEVICE(atmega644a)
968AM_CONDITIONAL(HAS_atmega644a, test "x$HAS_atmega644a" = "xyes")
969
970CHECK_AVR_DEVICE(atmega644p)
971AM_CONDITIONAL(HAS_atmega644p, test "x$HAS_atmega644p" = "xyes")
972
973CHECK_AVR_DEVICE(atmega644pa)
974AM_CONDITIONAL(HAS_atmega644pa, test "x$HAS_atmega644pa" = "xyes")
975
976CHECK_AVR_DEVICE(atmega645)
977AM_CONDITIONAL(HAS_atmega645, test "x$HAS_atmega645" = "xyes")
978
979CHECK_AVR_DEVICE(atmega645a)
980AM_CONDITIONAL(HAS_atmega645a, test "x$HAS_atmega645a" = "xyes")
981
982CHECK_AVR_DEVICE(atmega645p)
983AM_CONDITIONAL(HAS_atmega645p, test "x$HAS_atmega645p" = "xyes")
984
985CHECK_AVR_DEVICE(atmega6450)
986AM_CONDITIONAL(HAS_atmega6450, test "x$HAS_atmega6450" = "xyes")
987
988CHECK_AVR_DEVICE(atmega6450a)
989AM_CONDITIONAL(HAS_atmega6450a, test "x$HAS_atmega6450a" = "xyes")
990
991CHECK_AVR_DEVICE(atmega6450p)
992AM_CONDITIONAL(HAS_atmega6450p, test "x$HAS_atmega6450p" = "xyes")
993
994CHECK_AVR_DEVICE(atmega649)
995AM_CONDITIONAL(HAS_atmega649, test "x$HAS_atmega649" = "xyes")
996
997CHECK_AVR_DEVICE(atmega649a)
998AM_CONDITIONAL(HAS_atmega649a, test "x$HAS_atmega649a" = "xyes")
999
1000CHECK_AVR_DEVICE(atmega649p)
1001AM_CONDITIONAL(HAS_atmega649p, test "x$HAS_atmega649p" = "xyes")
1002
1003CHECK_AVR_DEVICE(atmega6490)
1004AM_CONDITIONAL(HAS_atmega6490, test "x$HAS_atmega6490" = "xyes")
1005
1006CHECK_AVR_DEVICE(atmega6490a)
1007AM_CONDITIONAL(HAS_atmega6490a, test "x$HAS_atmega6490a" = "xyes")
1008
1009CHECK_AVR_DEVICE(atmega6490p)
1010AM_CONDITIONAL(HAS_atmega6490p, test "x$HAS_atmega6490p" = "xyes")
1011
1012CHECK_AVR_DEVICE(atmega64c1)
1013AM_CONDITIONAL(HAS_atmega64c1, test "x$HAS_atmega64c1" = "xyes")
1014
1015CHECK_AVR_DEVICE(atmega64hve)
1016AM_CONDITIONAL(HAS_atmega64hve, test "x$HAS_atmega64hve" = "xyes")
1017
1018CHECK_AVR_DEVICE(atmega64hve2)
1019AM_CONDITIONAL(HAS_atmega64hve2, test "x$HAS_atmega64hve2" = "xyes")
1020
1021CHECK_AVR_DEVICE(atmega64m1)
1022AM_CONDITIONAL(HAS_atmega64m1, test "x$HAS_atmega64m1" = "xyes")
1023
1024CHECK_AVR_DEVICE(atmega128rfa1)
1025AM_CONDITIONAL(HAS_atmega128rfa1, test "x$HAS_atmega128rfa1" = "xyes")
1026
1027CHECK_AVR_DEVICE(m3000)
1028AM_CONDITIONAL(HAS_m3000, test "x$HAS_m3000" = "xyes")
1029
1030
1031
1032#avr51
1033CHECK_AVR_DEVICE(avr51)
1034AM_CONDITIONAL(HAS_avr51, test "x$HAS_avr51" = "xyes")
1035
1036AM_CONDITIONAL(HAS_atmega128, true)
1037
1038CHECK_AVR_DEVICE(atmega128a)
1039AM_CONDITIONAL(HAS_atmega128a, test "x$HAS_atmega128a" = "xyes")
1040
1041CHECK_AVR_DEVICE(atmega1280)
1042AM_CONDITIONAL(HAS_atmega1280, test "x$HAS_atmega1280" = "xyes")
1043
1044CHECK_AVR_DEVICE(atmega1281)
1045AM_CONDITIONAL(HAS_atmega1281, test "x$HAS_atmega1281" = "xyes")
1046
1047CHECK_AVR_DEVICE(atmega1284)
1048AM_CONDITIONAL(HAS_atmega1284, test "x$HAS_atmega1284" = "xyes")
1049
1050CHECK_AVR_DEVICE(atmega1284p)
1051AM_CONDITIONAL(HAS_atmega1284p, test "x$HAS_atmega1284p" = "xyes")
1052
1053CHECK_AVR_DEVICE(at90can128)
1054AM_CONDITIONAL(HAS_at90can128, test "x$HAS_at90can128" = "xyes")
1055
1056CHECK_AVR_DEVICE(at90usb1286)
1057AM_CONDITIONAL(HAS_at90usb1286, test "x$HAS_at90usb1286" = "xyes")
1058
1059CHECK_AVR_DEVICE(at90usb1287)
1060AM_CONDITIONAL(HAS_at90usb1287, test "x$HAS_at90usb1287" = "xyes")
1061
1062CHECK_AVR_DEVICE(atmega1284rfr2)
1063AM_CONDITIONAL(HAS_atmega1284rfr2, test "x$HAS_atmega1284rfr2" = "xyes")
1064
1065CHECK_AVR_DEVICE(atmega128rfr2)
1066AM_CONDITIONAL(HAS_atmega128rfr2, test "x$HAS_atmega128rfr2" = "xyes")
1067
1068
1069# avr6
1070CHECK_AVR_DEVICE(avr6)
1071AM_CONDITIONAL(HAS_avr6, test "x$HAS_avr6" = "xyes")
1072
1073CHECK_AVR_DEVICE(atmega2560)
1074AM_CONDITIONAL(HAS_atmega2560, test "x$HAS_atmega2560" = "xyes")
1075
1076CHECK_AVR_DEVICE(atmega2561)
1077AM_CONDITIONAL(HAS_atmega2561, test "x$HAS_atmega2561" = "xyes")
1078
1079CHECK_AVR_DEVICE(atmega2564rfr2)
1080AM_CONDITIONAL(HAS_atmega2564rfr2, test "x$HAS_atmega2564rfr2" = "xyes")
1081
1082CHECK_AVR_DEVICE(atmega256rfr2)
1083AM_CONDITIONAL(HAS_atmega256rfr2, test "x$HAS_atmega256rfr2" = "xyes")
1084
1085
1086# avrxmega2
1087CHECK_AVR_DEVICE(avrxmega2)
1088AM_CONDITIONAL(HAS_avrxmega2, test "x$HAS_avrxmega2" = "xyes")
1089
1090CHECK_AVR_DEVICE(atxmega8e5)
1091AM_CONDITIONAL(HAS_atxmega8e5, test "x$HAS_atxmega8e5" = "xyes")
1092
1093CHECK_AVR_DEVICE(atxmega16a4)
1094AM_CONDITIONAL(HAS_atxmega16a4, test "x$HAS_atxmega16a4" = "xyes")
1095
1096CHECK_AVR_DEVICE(atxmega16a4u)
1097AM_CONDITIONAL(HAS_atxmega16a4u, test "x$HAS_atxmega16a4u" = "xyes")
1098
1099CHECK_AVR_DEVICE(atxmega16c4)
1100AM_CONDITIONAL(HAS_atxmega16c4, test "x$HAS_atxmega16c4" = "xyes")
1101
1102CHECK_AVR_DEVICE(atxmega16d4)
1103AM_CONDITIONAL(HAS_atxmega16d4, test "x$HAS_atxmega16d4" = "xyes")
1104
1105CHECK_AVR_DEVICE(atxmega32a4)
1106AM_CONDITIONAL(HAS_atxmega32a4, test "x$HAS_atxmega32a4" = "xyes")
1107
1108CHECK_AVR_DEVICE(atxmega32a4u)
1109AM_CONDITIONAL(HAS_atxmega32a4u, test "x$HAS_atxmega32a4u" = "xyes")
1110
1111CHECK_AVR_DEVICE(atxmega32c3)
1112AM_CONDITIONAL(HAS_atxmega32c3, test "x$HAS_atxmega32c3" = "xyes")
1113
1114CHECK_AVR_DEVICE(atxmega32c4)
1115AM_CONDITIONAL(HAS_atxmega32c4, test "x$HAS_atxmega32c4" = "xyes")
1116
1117CHECK_AVR_DEVICE(atxmega32d3)
1118AM_CONDITIONAL(HAS_atxmega32d3, test "x$HAS_atxmega32d3" = "xyes")
1119
1120CHECK_AVR_DEVICE(atxmega32d4)
1121AM_CONDITIONAL(HAS_atxmega32d4, test "x$HAS_atxmega32d4" = "xyes")
1122
1123CHECK_AVR_DEVICE(atxmega32e5)
1124AM_CONDITIONAL(HAS_atxmega32e5, test "x$HAS_atxmega32e5" = "xyes")
1125
1126
1127# avrxmega4
1128CHECK_AVR_DEVICE(avrxmega4)
1129AM_CONDITIONAL(HAS_avrxmega4, test "x$HAS_avrxmega4" = "xyes")
1130
1131CHECK_AVR_DEVICE(atxmega64a3)
1132AM_CONDITIONAL(HAS_atxmega64a3, test "x$HAS_atxmega64a3" = "xyes")
1133
1134CHECK_AVR_DEVICE(atxmega64a3u)
1135AM_CONDITIONAL(HAS_atxmega64a3u, test "x$HAS_atxmega64a3u" = "xyes")
1136
1137CHECK_AVR_DEVICE(atxmega64a4u)
1138AM_CONDITIONAL(HAS_atxmega64a4u, test "x$HAS_atxmega64a4u" = "xyes")
1139
1140CHECK_AVR_DEVICE(atxmega64b1)
1141AM_CONDITIONAL(HAS_atxmega64b1, test "x$HAS_atxmega64b1" = "xyes")
1142
1143CHECK_AVR_DEVICE(atxmega64b3)
1144AM_CONDITIONAL(HAS_atxmega64b3, test "x$HAS_atxmega64b3" = "xyes")
1145
1146CHECK_AVR_DEVICE(atxmega64c3)
1147AM_CONDITIONAL(HAS_atxmega64c3, test "x$HAS_atxmega64c3" = "xyes")
1148
1149CHECK_AVR_DEVICE(atxmega64d3)
1150AM_CONDITIONAL(HAS_atxmega64d3, test "x$HAS_atxmega64d3" = "xyes")
1151
1152CHECK_AVR_DEVICE(atxmega64d4)
1153AM_CONDITIONAL(HAS_atxmega64d4, test "x$HAS_atxmega64d4" = "xyes")
1154
1155
1156# avrxmega5
1157CHECK_AVR_DEVICE(avrxmega5)
1158AM_CONDITIONAL(HAS_avrxmega5, test "x$HAS_avrxmega5" = "xyes")
1159
1160CHECK_AVR_DEVICE(atxmega64a1)
1161AM_CONDITIONAL(HAS_atxmega64a1, test "x$HAS_atxmega64a1" = "xyes")
1162
1163CHECK_AVR_DEVICE(atxmega64a1u)
1164AM_CONDITIONAL(HAS_atxmega64a1u, test "x$HAS_atxmega64a1u" = "xyes")
1165
1166
1167# avrxmega6
1168CHECK_AVR_DEVICE(avrxmega6)
1169AM_CONDITIONAL(HAS_avrxmega6, test "x$HAS_avrxmega6" = "xyes")
1170
1171CHECK_AVR_DEVICE(atxmega128a3)
1172AM_CONDITIONAL(HAS_atxmega128a3, test "x$HAS_atxmega128a3" = "xyes")
1173
1174CHECK_AVR_DEVICE(atxmega128a3u)
1175AM_CONDITIONAL(HAS_atxmega128a3u, test "x$HAS_atxmega128a3u" = "xyes")
1176
1177CHECK_AVR_DEVICE(atxmega128b1)
1178AM_CONDITIONAL(HAS_atxmega128b1, test "x$HAS_atxmega128b1" = "xyes")
1179
1180CHECK_AVR_DEVICE(atxmega128b3)
1181AM_CONDITIONAL(HAS_atxmega128b3, test "x$HAS_atxmega128b3" = "xyes")
1182
1183CHECK_AVR_DEVICE(atxmega128c3)
1184AM_CONDITIONAL(HAS_atxmega128c3, test "x$HAS_atxmega128c3" = "xyes")
1185
1186CHECK_AVR_DEVICE(atxmega128d3)
1187AM_CONDITIONAL(HAS_atxmega128d3, test "x$HAS_atxmega128d3" = "xyes")
1188
1189CHECK_AVR_DEVICE(atxmega128d4)
1190AM_CONDITIONAL(HAS_atxmega128d4, test "x$HAS_atxmega128d4" = "xyes")
1191
1192CHECK_AVR_DEVICE(atxmega192a3)
1193AM_CONDITIONAL(HAS_atxmega192a3, test "x$HAS_atxmega192a3" = "xyes")
1194
1195CHECK_AVR_DEVICE(atxmega192a3u)
1196AM_CONDITIONAL(HAS_atxmega192a3u, test "x$HAS_atxmega192a3u" = "xyes")
1197
1198CHECK_AVR_DEVICE(atxmega192c3)
1199AM_CONDITIONAL(HAS_atxmega192c3, test "x$HAS_atxmega192c3" = "xyes")
1200
1201CHECK_AVR_DEVICE(atxmega192d3)
1202AM_CONDITIONAL(HAS_atxmega192d3, test "x$HAS_atxmega192d3" = "xyes")
1203
1204CHECK_AVR_DEVICE(atxmega256a3)
1205AM_CONDITIONAL(HAS_atxmega256a3, test "x$HAS_atxmega256a3" = "xyes")
1206
1207CHECK_AVR_DEVICE(atxmega256a3u)
1208AM_CONDITIONAL(HAS_atxmega256a3u, test "x$HAS_atxmega256a3u" = "xyes")
1209
1210CHECK_AVR_DEVICE(atxmega256a3b)
1211AM_CONDITIONAL(HAS_atxmega256a3b, test "x$HAS_atxmega256a3b" = "xyes")
1212
1213CHECK_AVR_DEVICE(atxmega256a3bu)
1214AM_CONDITIONAL(HAS_atxmega256a3bu, test "x$HAS_atxmega256a3bu" = "xyes")
1215
1216CHECK_AVR_DEVICE(atxmega256c3)
1217AM_CONDITIONAL(HAS_atxmega256c3, test "x$HAS_atxmega256c3" = "xyes")
1218
1219CHECK_AVR_DEVICE(atxmega256d3)
1220AM_CONDITIONAL(HAS_atxmega256d3, test "x$HAS_atxmega256d3" = "xyes")
1221
1222CHECK_AVR_DEVICE(atxmega384c3)
1223AM_CONDITIONAL(HAS_atxmega384c3, test "x$HAS_atxmega384c3" = "xyes")
1224
1225CHECK_AVR_DEVICE(atxmega384d3)
1226AM_CONDITIONAL(HAS_atxmega384d3, test "x$HAS_atxmega384d3" = "xyes")
1227
1228# avrxmega7
1229CHECK_AVR_DEVICE(avrxmega7)
1230AM_CONDITIONAL(HAS_avrxmega7, test "x$HAS_avrxmega7" = "xyes")
1231
1232CHECK_AVR_DEVICE(atxmega128a1)
1233AM_CONDITIONAL(HAS_atxmega128a1, test "x$HAS_atxmega128a1" = "xyes")
1234
1235CHECK_AVR_DEVICE(atxmega128a1u)
1236AM_CONDITIONAL(HAS_atxmega128a1u, test "x$HAS_atxmega128a1u" = "xyes")
1237
1238CHECK_AVR_DEVICE(atxmega128a4u)
1239AM_CONDITIONAL(HAS_atxmega128a4u, test "x$HAS_atxmega128a4u" = "xyes")
1240
1241
1242# avrtiny
1243CHECK_AVR_DEVICE(avrtiny)
1244AM_CONDITIONAL(HAS_avrtiny, test "x$HAS_avrtiny" = "xyes")
1245
1246CHECK_AVR_DEVICE(attiny4)
1247AM_CONDITIONAL(HAS_attiny4, test "x$HAS_attiny4" = "xyes")
1248
1249CHECK_AVR_DEVICE(attiny5)
1250AM_CONDITIONAL(HAS_attiny5, test "x$HAS_attiny5" = "xyes")
1251
1252CHECK_AVR_DEVICE(attiny9)
1253AM_CONDITIONAL(HAS_attiny9, test "x$HAS_attiny9" = "xyes")
1254
1255CHECK_AVR_DEVICE(attiny10)
1256AM_CONDITIONAL(HAS_attiny10, test "x$HAS_attiny10" = "xyes")
1257
1258CHECK_AVR_DEVICE(attiny20)
1259AM_CONDITIONAL(HAS_attiny20, test "x$HAS_attiny20" = "xyes")
1260
1261CHECK_AVR_DEVICE(attiny40)
1262AM_CONDITIONAL(HAS_attiny40, test "x$HAS_attiny40" = "xyes")
1263
1264
1265
1266
1267# Generate all files from *.in sources.
1268
1269AC_CONFIG_FILES([
1270	Makefile
1271	avr-libc.spec
1272	avr/Makefile
1273	avr/lib/Makefile
1274	common/Makefile
1275	crt1/Makefile
1276	crt1/iosym/Makefile
1277	doc/Makefile
1278	doc/api/Makefile
1279	doc/examples/Makefile
1280	include/Makefile
1281	include/avr/Makefile
1282	include/avr/builtins.h
1283	include/compat/Makefile
1284	include/util/Makefile
1285	include/util/delay.h
1286	include/sys/Makefile
1287	libc/Makefile
1288	libc/misc/Makefile
1289	libc/pmstring/Makefile
1290	libc/stdio/Makefile
1291	libc/stdlib/Makefile
1292	libc/string/Makefile
1293	libc/time/Makefile
1294	libm/Makefile
1295	libm/fplib/Makefile
1296	scripts/Makefile
1297	devtools/Makefile
1298])
1299
1300#avr1 and avr2
1301AC_CONFIG_FILES([
1302	avr/lib/avr2/Makefile
1303	avr/lib/avr2/at90s1200/Makefile
1304	avr/lib/avr2/at90s4414/Makefile
1305	avr/lib/avr2/at90s4434/Makefile
1306	avr/lib/avr2/at90s8515/Makefile
1307	avr/lib/avr2/at90c8534/Makefile
1308	avr/lib/avr2/at90s8535/Makefile
1309	avr/lib/avr2/attiny11/Makefile
1310	avr/lib/avr2/attiny12/Makefile
1311	avr/lib/avr2/attiny15/Makefile
1312	avr/lib/avr2/attiny28/Makefile
1313])
1314
1315#avr2/tiny-stack
1316AC_CONFIG_FILES([
1317	avr/lib/avr2/tiny-stack/Makefile
1318	avr/lib/avr2/tiny-stack/at90s2313/Makefile
1319	avr/lib/avr2/tiny-stack/at90s2323/Makefile
1320	avr/lib/avr2/tiny-stack/at90s2333/Makefile
1321	avr/lib/avr2/tiny-stack/at90s2343/Makefile
1322	avr/lib/avr2/tiny-stack/attiny22/Makefile
1323	avr/lib/avr2/tiny-stack/attiny26/Makefile
1324	avr/lib/avr2/tiny-stack/at90s4433/Makefile
1325])
1326
1327#avr25
1328AC_CONFIG_FILES([
1329	avr/lib/avr25/Makefile
1330	avr/lib/avr25/at86rf401/Makefile
1331	avr/lib/avr25/ata5272/Makefile
1332	avr/lib/avr25/ata6616c/Makefile
1333	avr/lib/avr25/attiny4313/Makefile
1334	avr/lib/avr25/attiny43u/Makefile
1335	avr/lib/avr25/attiny44/Makefile
1336	avr/lib/avr25/attiny44a/Makefile
1337	avr/lib/avr25/attiny441/Makefile
1338	avr/lib/avr25/attiny45/Makefile
1339	avr/lib/avr25/attiny461/Makefile
1340	avr/lib/avr25/attiny461a/Makefile
1341	avr/lib/avr25/attiny48/Makefile
1342	avr/lib/avr25/attiny828/Makefile
1343	avr/lib/avr25/attiny84/Makefile
1344	avr/lib/avr25/attiny84a/Makefile
1345	avr/lib/avr25/attiny841/Makefile
1346	avr/lib/avr25/attiny85/Makefile
1347	avr/lib/avr25/attiny861/Makefile
1348	avr/lib/avr25/attiny861a/Makefile
1349	avr/lib/avr25/attiny87/Makefile
1350	avr/lib/avr25/attiny88/Makefile
1351])
1352
1353#avr25/tiny-stack
1354AC_CONFIG_FILES([
1355	avr/lib/avr25/tiny-stack/Makefile
1356	avr/lib/avr25/tiny-stack/attiny13/Makefile
1357	avr/lib/avr25/tiny-stack/attiny13a/Makefile
1358	avr/lib/avr25/tiny-stack/attiny2313/Makefile
1359	avr/lib/avr25/tiny-stack/attiny2313a/Makefile
1360	avr/lib/avr25/tiny-stack/attiny24/Makefile
1361	avr/lib/avr25/tiny-stack/attiny24a/Makefile
1362	avr/lib/avr25/tiny-stack/attiny25/Makefile
1363	avr/lib/avr25/tiny-stack/attiny261/Makefile
1364	avr/lib/avr25/tiny-stack/attiny261a/Makefile
1365])
1366
1367#avr3
1368AC_CONFIG_FILES([
1369	avr/lib/avr3/Makefile
1370	avr/lib/avr3/at43usb355/Makefile
1371	avr/lib/avr3/at76c711/Makefile
1372])
1373
1374#avr31
1375AC_CONFIG_FILES([
1376	avr/lib/avr31/Makefile
1377	avr/lib/avr31/atmega103/Makefile
1378	avr/lib/avr31/at43usb320/Makefile
1379])
1380
1381#avr35
1382AC_CONFIG_FILES([
1383	avr/lib/avr35/Makefile
1384	avr/lib/avr35/at90usb82/Makefile
1385	avr/lib/avr35/at90usb162/Makefile
1386	avr/lib/avr35/ata5505/Makefile
1387	avr/lib/avr35/ata6617c/Makefile
1388	avr/lib/avr35/ata664251/Makefile
1389	avr/lib/avr35/atmega8u2/Makefile
1390	avr/lib/avr35/atmega16u2/Makefile
1391	avr/lib/avr35/atmega32u2/Makefile
1392	avr/lib/avr35/attiny167/Makefile
1393	avr/lib/avr35/attiny1634/Makefile
1394])
1395
1396#avr4
1397AC_CONFIG_FILES([
1398	avr/lib/avr4/Makefile
1399	avr/lib/avr4/ata6285/Makefile
1400	avr/lib/avr4/ata6286/Makefile
1401	avr/lib/avr4/ata6289/Makefile
1402	avr/lib/avr4/ata6612c/Makefile
1403	avr/lib/avr4/atmega48/Makefile
1404	avr/lib/avr4/atmega48a/Makefile
1405	avr/lib/avr4/atmega48pa/Makefile
1406	avr/lib/avr4/atmega48pb/Makefile
1407	avr/lib/avr4/atmega48p/Makefile
1408	avr/lib/avr4/atmega8/Makefile
1409	avr/lib/avr4/atmega8a/Makefile
1410	avr/lib/avr4/atmega88/Makefile
1411	avr/lib/avr4/atmega88a/Makefile
1412	avr/lib/avr4/atmega88p/Makefile
1413	avr/lib/avr4/atmega88pa/Makefile
1414	avr/lib/avr4/atmega88pb/Makefile
1415	avr/lib/avr4/atmega8515/Makefile
1416	avr/lib/avr4/atmega8535/Makefile
1417	avr/lib/avr4/atmega8hva/Makefile
1418	avr/lib/avr4/at90pwm1/Makefile
1419	avr/lib/avr4/at90pwm2/Makefile
1420	avr/lib/avr4/at90pwm2b/Makefile
1421	avr/lib/avr4/at90pwm3/Makefile
1422	avr/lib/avr4/at90pwm3b/Makefile
1423	avr/lib/avr4/at90pwm81/Makefile
1424])
1425
1426#avr5
1427AC_CONFIG_FILES([
1428	avr/lib/avr5/Makefile
1429	avr/lib/avr5/at90can32/Makefile
1430	avr/lib/avr5/at90can64/Makefile
1431	avr/lib/avr5/at90pwm216/Makefile
1432	avr/lib/avr5/at90pwm316/Makefile
1433	avr/lib/avr5/at90pwm161/Makefile
1434	avr/lib/avr5/at90scr100/Makefile
1435	avr/lib/avr5/at90usb646/Makefile
1436	avr/lib/avr5/at90usb647/Makefile
1437	avr/lib/avr5/at94k/Makefile
1438	avr/lib/avr5/ata5702m322/Makefile
1439	avr/lib/avr5/ata5782/Makefile
1440	avr/lib/avr5/ata5790/Makefile
1441	avr/lib/avr5/ata5790n/Makefile
1442	avr/lib/avr5/ata5795/Makefile
1443	avr/lib/avr5/ata5831/Makefile
1444	avr/lib/avr5/ata6613c/Makefile
1445	avr/lib/avr5/ata6614q/Makefile
1446	avr/lib/avr5/atmega16/Makefile
1447	avr/lib/avr5/atmega16a/Makefile
1448	avr/lib/avr5/atmega161/Makefile
1449	avr/lib/avr5/atmega162/Makefile
1450	avr/lib/avr5/atmega163/Makefile
1451	avr/lib/avr5/atmega164a/Makefile
1452	avr/lib/avr5/atmega164p/Makefile
1453	avr/lib/avr5/atmega164pa/Makefile
1454	avr/lib/avr5/atmega165/Makefile
1455	avr/lib/avr5/atmega165a/Makefile
1456	avr/lib/avr5/atmega165p/Makefile
1457	avr/lib/avr5/atmega165pa/Makefile
1458	avr/lib/avr5/atmega168/Makefile
1459	avr/lib/avr5/atmega168a/Makefile
1460	avr/lib/avr5/atmega168p/Makefile
1461	avr/lib/avr5/atmega168pa/Makefile
1462	avr/lib/avr5/atmega169/Makefile
1463	avr/lib/avr5/atmega169a/Makefile
1464	avr/lib/avr5/atmega169p/Makefile
1465	avr/lib/avr5/atmega169pa/Makefile
1466	avr/lib/avr5/atmega16hva/Makefile
1467	avr/lib/avr5/atmega16hva2/Makefile
1468	avr/lib/avr5/atmega16hvb/Makefile
1469	avr/lib/avr5/atmega16hvbrevb/Makefile
1470	avr/lib/avr5/atmega16m1/Makefile
1471	avr/lib/avr5/atmega16u4/Makefile
1472	avr/lib/avr5/atmega32/Makefile
1473	avr/lib/avr5/atmega32a/Makefile
1474	avr/lib/avr5/atmega323/Makefile
1475	avr/lib/avr5/atmega324a/Makefile
1476	avr/lib/avr5/atmega324p/Makefile
1477	avr/lib/avr5/atmega324pa/Makefile
1478	avr/lib/avr5/atmega325/Makefile
1479	avr/lib/avr5/atmega325a/Makefile
1480	avr/lib/avr5/atmega325p/Makefile
1481	avr/lib/avr5/atmega325pa/Makefile
1482	avr/lib/avr5/atmega3250/Makefile
1483	avr/lib/avr5/atmega3250a/Makefile
1484	avr/lib/avr5/atmega3250p/Makefile
1485	avr/lib/avr5/atmega3250pa/Makefile
1486	avr/lib/avr5/atmega328/Makefile
1487	avr/lib/avr5/atmega328p/Makefile
1488	avr/lib/avr5/atmega329/Makefile
1489	avr/lib/avr5/atmega329a/Makefile
1490	avr/lib/avr5/atmega329p/Makefile
1491	avr/lib/avr5/atmega329pa/Makefile
1492	avr/lib/avr5/atmega3290/Makefile
1493	avr/lib/avr5/atmega3290a/Makefile
1494	avr/lib/avr5/atmega3290p/Makefile
1495	avr/lib/avr5/atmega3290pa/Makefile
1496	avr/lib/avr5/atmega32c1/Makefile
1497	avr/lib/avr5/atmega32hvb/Makefile
1498	avr/lib/avr5/atmega32hvbrevb/Makefile
1499	avr/lib/avr5/atmega32m1/Makefile
1500	avr/lib/avr5/atmega32u4/Makefile
1501	avr/lib/avr5/atmega32u6/Makefile
1502	avr/lib/avr5/atmega406/Makefile
1503	avr/lib/avr5/atmega64rfr2/Makefile
1504	avr/lib/avr5/atmega644rfr2/Makefile
1505	avr/lib/avr5/atmega64/Makefile
1506	avr/lib/avr5/atmega64a/Makefile
1507	avr/lib/avr5/atmega640/Makefile
1508	avr/lib/avr5/atmega644/Makefile
1509	avr/lib/avr5/atmega644a/Makefile
1510	avr/lib/avr5/atmega644p/Makefile
1511	avr/lib/avr5/atmega644pa/Makefile
1512	avr/lib/avr5/atmega645/Makefile
1513	avr/lib/avr5/atmega645a/Makefile
1514	avr/lib/avr5/atmega645p/Makefile
1515	avr/lib/avr5/atmega6450/Makefile
1516	avr/lib/avr5/atmega6450a/Makefile
1517	avr/lib/avr5/atmega6450p/Makefile
1518	avr/lib/avr5/atmega649/Makefile
1519	avr/lib/avr5/atmega649a/Makefile
1520	avr/lib/avr5/atmega649p/Makefile
1521	avr/lib/avr5/atmega6490/Makefile
1522	avr/lib/avr5/atmega6490a/Makefile
1523	avr/lib/avr5/atmega6490p/Makefile
1524	avr/lib/avr5/atmega64c1/Makefile
1525	avr/lib/avr5/atmega64hve/Makefile
1526	avr/lib/avr5/atmega64hve2/Makefile
1527	avr/lib/avr5/atmega64m1/Makefile
1528	avr/lib/avr5/m3000/Makefile
1529])
1530
1531#avr51
1532AC_CONFIG_FILES([
1533	avr/lib/avr51/Makefile
1534	avr/lib/avr51/atmega128/Makefile
1535	avr/lib/avr51/atmega128a/Makefile
1536	avr/lib/avr51/atmega1280/Makefile
1537	avr/lib/avr51/atmega1281/Makefile
1538	avr/lib/avr51/atmega1284/Makefile
1539	avr/lib/avr51/atmega1284p/Makefile
1540	avr/lib/avr51/atmega128rfa1/Makefile
1541	avr/lib/avr51/atmega128rfr2/Makefile
1542	avr/lib/avr51/atmega1284rfr2/Makefile
1543	avr/lib/avr51/at90can128/Makefile
1544	avr/lib/avr51/at90usb1286/Makefile
1545	avr/lib/avr51/at90usb1287/Makefile
1546])
1547
1548#avr6
1549AC_CONFIG_FILES([
1550	avr/lib/avr6/Makefile
1551	avr/lib/avr6/atmega2560/Makefile
1552	avr/lib/avr6/atmega2561/Makefile
1553	avr/lib/avr6/atmega256rfr2/Makefile
1554	avr/lib/avr6/atmega2564rfr2/Makefile
1555])
1556
1557# avrxmega2
1558AC_CONFIG_FILES([
1559	avr/lib/avrxmega2/Makefile
1560	avr/lib/avrxmega2/atxmega8e5/Makefile
1561	avr/lib/avrxmega2/atxmega16a4/Makefile
1562	avr/lib/avrxmega2/atxmega16a4u/Makefile
1563	avr/lib/avrxmega2/atxmega16c4/Makefile
1564	avr/lib/avrxmega2/atxmega16d4/Makefile
1565	avr/lib/avrxmega2/atxmega32a4/Makefile
1566	avr/lib/avrxmega2/atxmega32a4u/Makefile
1567	avr/lib/avrxmega2/atxmega32c3/Makefile
1568	avr/lib/avrxmega2/atxmega32c4/Makefile
1569	avr/lib/avrxmega2/atxmega32d3/Makefile
1570	avr/lib/avrxmega2/atxmega32d4/Makefile
1571	avr/lib/avrxmega2/atxmega32e5/Makefile
1572])
1573
1574# avrxmega4
1575AC_CONFIG_FILES([
1576	avr/lib/avrxmega4/Makefile
1577	avr/lib/avrxmega4/atxmega64a3/Makefile
1578	avr/lib/avrxmega4/atxmega64a3u/Makefile
1579	avr/lib/avrxmega4/atxmega64a4u/Makefile
1580	avr/lib/avrxmega4/atxmega64b1/Makefile
1581	avr/lib/avrxmega4/atxmega64b3/Makefile
1582	avr/lib/avrxmega4/atxmega64c3/Makefile
1583	avr/lib/avrxmega4/atxmega64d3/Makefile
1584	avr/lib/avrxmega4/atxmega64d4/Makefile
1585])
1586
1587# avrxmega5
1588AC_CONFIG_FILES([
1589	avr/lib/avrxmega5/Makefile
1590	avr/lib/avrxmega5/atxmega64a1/Makefile
1591	avr/lib/avrxmega5/atxmega64a1u/Makefile
1592])
1593
1594# avrxmega6
1595AC_CONFIG_FILES([
1596	avr/lib/avrxmega6/Makefile
1597	avr/lib/avrxmega6/atxmega128a3/Makefile
1598	avr/lib/avrxmega6/atxmega128a3u/Makefile
1599	avr/lib/avrxmega6/atxmega128b1/Makefile
1600	avr/lib/avrxmega6/atxmega128b3/Makefile
1601	avr/lib/avrxmega6/atxmega128c3/Makefile
1602	avr/lib/avrxmega6/atxmega128d3/Makefile
1603	avr/lib/avrxmega6/atxmega128d4/Makefile
1604	avr/lib/avrxmega6/atxmega192a3/Makefile
1605	avr/lib/avrxmega6/atxmega192a3u/Makefile
1606	avr/lib/avrxmega6/atxmega192c3/Makefile
1607	avr/lib/avrxmega6/atxmega192d3/Makefile
1608	avr/lib/avrxmega6/atxmega256a3/Makefile
1609	avr/lib/avrxmega6/atxmega256a3u/Makefile
1610	avr/lib/avrxmega6/atxmega256a3b/Makefile
1611	avr/lib/avrxmega6/atxmega256a3bu/Makefile
1612	avr/lib/avrxmega6/atxmega256c3/Makefile
1613	avr/lib/avrxmega6/atxmega256d3/Makefile
1614	avr/lib/avrxmega6/atxmega384c3/Makefile
1615	avr/lib/avrxmega6/atxmega384d3/Makefile
1616])
1617
1618# avrxmega7
1619AC_CONFIG_FILES([
1620	avr/lib/avrxmega7/Makefile
1621	avr/lib/avrxmega7/atxmega128a1/Makefile
1622	avr/lib/avrxmega7/atxmega128a1u/Makefile
1623	avr/lib/avrxmega7/atxmega128a4u/Makefile
1624])
1625
1626
1627# avrtiny
1628AC_CONFIG_FILES([
1629	avr/lib/avrtiny/Makefile
1630	avr/lib/avrtiny/attiny4/Makefile
1631	avr/lib/avrtiny/attiny5/Makefile
1632	avr/lib/avrtiny/attiny9/Makefile
1633	avr/lib/avrtiny/attiny10/Makefile
1634	avr/lib/avrtiny/attiny20/Makefile
1635	avr/lib/avrtiny/attiny40/Makefile
1636])
1637
1638
1639AC_OUTPUT
1640