Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Copyright (c) 2005-2008 Wind River Systems, Inc. |
| 3 | # |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame^] | 4 | # SPDX-License-Identifier: GPL-2.0-only |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | # |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | |
| 7 | cat << EOF |
| 8 | AC_PREREQ(2.57) |
| 9 | AC_INIT([site_wide],[1.0.0]) |
| 10 | |
| 11 | EOF |
| 12 | |
| 13 | # Disable as endian is set in the default config |
| 14 | #echo AC_C_BIGENDIAN |
| 15 | #echo |
| 16 | |
| 17 | if [ -e $1/types ] ; then |
| 18 | while read type ; do |
| 19 | echo "AC_CHECK_SIZEOF([$type])" |
| 20 | done < $1/types |
| 21 | |
| 22 | echo |
| 23 | fi |
| 24 | |
| 25 | if [ -e $1/funcs ]; then |
| 26 | while read func ; do |
| 27 | echo "AC_CHECK_FUNCS([$func])" |
| 28 | done < $1/funcs |
| 29 | |
| 30 | echo |
| 31 | fi |
| 32 | |
| 33 | if [ -e $1/headers ]; then |
| 34 | while read header ; do |
| 35 | echo "AC_CHECK_HEADERS([$header])" |
| 36 | done < $1/headers |
| 37 | |
| 38 | echo |
| 39 | fi |
| 40 | |
| 41 | cat << EOF |
| 42 | AC_OUTPUT |
| 43 | EOF |