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