source: SVN/cambria/redboot/host/infra/aclocal.m4 @ 1

Last change on this file since 1 was 1, checked in by Tim Harvey, 2 years ago

restored latest version of files from server backup

Signed-off-by: Tim Harvey <tharvey@…>

File size: 7.0 KB
Line 
1dnl aclocal.m4 generated automatically by aclocal 1.4-p5
2
3dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11dnl PARTICULAR PURPOSE.
12
13dnl Process this file with aclocal to get an aclocal.m4 file. Then
14dnl process that with autoconf.
15dnl ====================================================================
16dnl
17dnl     acinclude.m4
18dnl
19dnl     Host side implementation of the eCos infrastructure.
20dnl
21dnl ====================================================================
22dnl ####ECOSHOSTGPLCOPYRIGHTBEGIN####
23dnl ----------------------------------------------------------------------------
24dnl Copyright (C) 2002 Bart Veer
25dnl Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc.
26dnl
27dnl This file is part of the eCos host tools.
28dnl
29dnl This program is free software; you can redistribute it and/or modify it
30dnl under the terms of the GNU General Public License as published by the Free
31dnl Software Foundation; either version 2 of the License, or (at your option)
32dnl any later version.
33dnl
34dnl This program is distributed in the hope that it will be useful, but WITHOUT
35dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
36dnl FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
37dnl more details.
38dnl
39dnl You should have received a copy of the GNU General Public License along with
40dnl this program; if not, write to the Free Software Foundation, Inc.,
41dnl 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
42dnl
43dnl ----------------------------------------------------------------------------
44dnl ####ECOSHOSTGPLCOPYRIGHTEND####
45dnl ====================================================================
46dnl#####DESCRIPTIONBEGIN####
47dnl
48dnl Author(s):  bartv
49dnl Contact(s): bartv
50dnl Date:       1998/07/14
51dnl Version:    0.01
52dnl
53dnl####DESCRIPTIONEND####
54dnl ====================================================================
55
56dnl Access shared macros.
57dnl AM_CONDITIONAL needs to be mentioned here or else aclocal does not
58dnl incorporate the macro into aclocal.m4
59sinclude(../../acsupport/acinclude.m4)
60
61# Define a conditional.
62
63AC_DEFUN([AM_CONDITIONAL],
64[AC_SUBST($1_TRUE)
65AC_SUBST($1_FALSE)
66if $2; then
67  $1_TRUE=
68  $1_FALSE='#'
69else
70  $1_TRUE='#'
71  $1_FALSE=
72fi])
73
74# Do all the work for Automake.  This macro actually does too much --
75# some checks are only needed if your package does certain things.
76# But this isn't really a big deal.
77
78# serial 1
79
80dnl Usage:
81dnl AM_INIT_AUTOMAKE(package,version, [no-define])
82
83AC_DEFUN([AM_INIT_AUTOMAKE],
84[AC_REQUIRE([AC_PROG_INSTALL])
85PACKAGE=[$1]
86AC_SUBST(PACKAGE)
87VERSION=[$2]
88AC_SUBST(VERSION)
89dnl test to see if srcdir already configured
90if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
91  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
92fi
93ifelse([$3],,
94AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
95AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
96AC_REQUIRE([AM_SANITY_CHECK])
97AC_REQUIRE([AC_ARG_PROGRAM])
98dnl FIXME This is truly gross.
99missing_dir=`cd $ac_aux_dir && pwd`
100AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
101AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
102AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
103AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
104AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
105AC_REQUIRE([AC_PROG_MAKE_SET])])
106
107#
108# Check to make sure that the build environment is sane.
109#
110
111AC_DEFUN([AM_SANITY_CHECK],
112[AC_MSG_CHECKING([whether build environment is sane])
113# Just in case
114sleep 1
115echo timestamp > conftestfile
116# Do `set' in a subshell so we don't clobber the current shell's
117# arguments.  Must try -L first in case configure is actually a
118# symlink; some systems play weird games with the mod time of symlinks
119# (eg FreeBSD returns the mod time of the symlink's containing
120# directory).
121if (
122   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
123   if test "[$]*" = "X"; then
124      # -L didn't work.
125      set X `ls -t $srcdir/configure conftestfile`
126   fi
127   if test "[$]*" != "X $srcdir/configure conftestfile" \
128      && test "[$]*" != "X conftestfile $srcdir/configure"; then
129
130      # If neither matched, then we have a broken ls.  This can happen
131      # if, for instance, CONFIG_SHELL is bash and it inherits a
132      # broken ls alias from the environment.  This has actually
133      # happened.  Such a system could not be considered "sane".
134      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
135alias in your environment])
136   fi
137
138   test "[$]2" = conftestfile
139   )
140then
141   # Ok.
142   :
143else
144   AC_MSG_ERROR([newly created file is older than distributed files!
145Check your system clock])
146fi
147rm -f conftest*
148AC_MSG_RESULT(yes)])
149
150dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
151dnl The program must properly implement --version.
152AC_DEFUN([AM_MISSING_PROG],
153[AC_MSG_CHECKING(for working $2)
154# Run test in a subshell; some versions of sh will print an error if
155# an executable is not found, even if stderr is redirected.
156# Redirect stdin to placate older versions of autoconf.  Sigh.
157if ($2 --version) < /dev/null > /dev/null 2>&1; then
158   $1=$2
159   AC_MSG_RESULT(found)
160else
161   $1="$3/missing $2"
162   AC_MSG_RESULT(missing)
163fi
164AC_SUBST($1)])
165
166# Add --enable-maintainer-mode option to configure.
167# From Jim Meyering
168
169# serial 1
170
171AC_DEFUN([AM_MAINTAINER_MODE],
172[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
173  dnl maintainer-mode is disabled by default
174  AC_ARG_ENABLE(maintainer-mode,
175[  --enable-maintainer-mode enable make rules and dependencies not useful
176                          (and sometimes confusing) to the casual installer],
177      USE_MAINTAINER_MODE=$enableval,
178      USE_MAINTAINER_MODE=no)
179  AC_MSG_RESULT($USE_MAINTAINER_MODE)
180  AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
181  MAINT=$MAINTAINER_MODE_TRUE
182  AC_SUBST(MAINT)dnl
183]
184)
185
186# Like AC_CONFIG_HEADER, but automatically create stamp file.
187
188AC_DEFUN([AM_CONFIG_HEADER],
189[AC_PREREQ([2.12])
190AC_CONFIG_HEADER([$1])
191dnl When config.status generates a header, we must update the stamp-h file.
192dnl This file resides in the same directory as the config header
193dnl that is generated.  We must strip everything past the first ":",
194dnl and everything past the last "/".
195AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
196ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
197<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
198<<am_indx=1
199for am_file in <<$1>>; do
200  case " <<$>>CONFIG_HEADERS " in
201  *" <<$>>am_file "*<<)>>
202    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
203    ;;
204  esac
205  am_indx=`expr "<<$>>am_indx" + 1`
206done<<>>dnl>>)
207changequote([,]))])
208
Note: See TracBrowser for help on using the repository browser.