OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [infra/] [aclocal.m4] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 unneback
dnl aclocal.m4 generated automatically by aclocal 1.4-p5
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     Host side implementation of the eCos infrastructure.
20
dnl
21
dnl ====================================================================
22
dnl ####ECOSHOSTGPLCOPYRIGHTBEGIN####
23
dnl ----------------------------------------------------------------------------
24
dnl Copyright (C) 2002 Bart Veer
25
dnl Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc.
26
dnl
27
dnl This file is part of the eCos host tools.
28
dnl
29
dnl This program is free software; you can redistribute it and/or modify it
30
dnl under the terms of the GNU General Public License as published by the Free
31
dnl Software Foundation; either version 2 of the License, or (at your option)
32
dnl any later version.
33
dnl
34
dnl This program is distributed in the hope that it will be useful, but WITHOUT
35
dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
36
dnl FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
37
dnl more details.
38
dnl
39
dnl You should have received a copy of the GNU General Public License along with
40
dnl this program; if not, write to the Free Software Foundation, Inc.,
41
dnl 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
42
dnl
43
dnl ----------------------------------------------------------------------------
44
dnl ####ECOSHOSTGPLCOPYRIGHTEND####
45
dnl ====================================================================
46
dnl#####DESCRIPTIONBEGIN####
47
dnl
48
dnl Author(s):  bartv
49
dnl Contact(s): bartv
50
dnl Date:       1998/07/14
51
dnl Version:    0.01
52
dnl
53
dnl####DESCRIPTIONEND####
54
dnl ====================================================================
55
 
56
dnl Access shared macros.
57
dnl AM_CONDITIONAL needs to be mentioned here or else aclocal does not
58
dnl incorporate the macro into aclocal.m4
59
sinclude(../../acsupport/acinclude.m4)
60
 
61
# Define a conditional.
62
 
63
AC_DEFUN([AM_CONDITIONAL],
64
[AC_SUBST($1_TRUE)
65
AC_SUBST($1_FALSE)
66
if $2; then
67
  $1_TRUE=
68
  $1_FALSE='#'
69
else
70
  $1_TRUE='#'
71
  $1_FALSE=
72
fi])
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
 
80
dnl Usage:
81
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
82
 
83
AC_DEFUN([AM_INIT_AUTOMAKE],
84
[AC_REQUIRE([AC_PROG_INSTALL])
85
PACKAGE=[$1]
86
AC_SUBST(PACKAGE)
87
VERSION=[$2]
88
AC_SUBST(VERSION)
89
dnl test to see if srcdir already configured
90
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
91
  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
92
fi
93
ifelse([$3],,
94
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
95
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
96
AC_REQUIRE([AM_SANITY_CHECK])
97
AC_REQUIRE([AC_ARG_PROGRAM])
98
dnl FIXME This is truly gross.
99
missing_dir=`cd $ac_aux_dir && pwd`
100
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
101
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
102
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
103
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
104
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
105
AC_REQUIRE([AC_PROG_MAKE_SET])])
106
 
107
#
108
# Check to make sure that the build environment is sane.
109
#
110
 
111
AC_DEFUN([AM_SANITY_CHECK],
112
[AC_MSG_CHECKING([whether build environment is sane])
113
# Just in case
114
sleep 1
115
echo 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).
121
if (
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
135
alias in your environment])
136
   fi
137
 
138
   test "[$]2" = conftestfile
139
   )
140
then
141
   # Ok.
142
   :
143
else
144
   AC_MSG_ERROR([newly created file is older than distributed files!
145
Check your system clock])
146
fi
147
rm -f conftest*
148
AC_MSG_RESULT(yes)])
149
 
150
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
151
dnl The program must properly implement --version.
152
AC_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.
157
if ($2 --version) < /dev/null > /dev/null 2>&1; then
158
   $1=$2
159
   AC_MSG_RESULT(found)
160
else
161
   $1="$3/missing $2"
162
   AC_MSG_RESULT(missing)
163
fi
164
AC_SUBST($1)])
165
 
166
# Add --enable-maintainer-mode option to configure.
167
# From Jim Meyering
168
 
169
# serial 1
170
 
171
AC_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
 
188
AC_DEFUN([AM_CONFIG_HEADER],
189
[AC_PREREQ([2.12])
190
AC_CONFIG_HEADER([$1])
191
dnl When config.status generates a header, we must update the stamp-h file.
192
dnl This file resides in the same directory as the config header
193
dnl that is generated.  We must strip everything past the first ":",
194
dnl and everything past the last "/".
195
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
196
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
197
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
198
<<am_indx=1
199
for 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`
206
done<<>>dnl>>)
207
changequote([,]))])
208
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.