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