OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [io/] [usb/] [slave/] [v2_0/] [host/] [aclocal.m4] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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