GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / toolchains / hndtools-arm-linux-2.6.36-uclibc-4.5.3 / share / automake-1.11 / am / configure.am
blobe9299d64b8df099d3f5092fc5bfff49709f7a013
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009  Free
3 ## Software Foundation, Inc.
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 2, or (at your option)
8 ## any later version.
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 ## This dummy rule is called from subdirectories whenever one of the
20 ## top-level Makefile's dependencies must be updated.  It does not
21 ## need to depend on %MAKEFILE% because GNU make will always make sure
22 ## %MAKEFILE% is updated before considering the am--refresh target.
23 if %?TOPDIR_P%
24 .PHONY: am--refresh
25 am--refresh:
26         @:
27 endif %?TOPDIR_P%
29 ## --------------------- ##
30 ## Building Makefile.*.  ##
31 ## --------------------- ##
33 ## This rule remakes the Makefile.in.
34 %MAKEFILE-IN%: %MAINTAINER-MODE% %MAKEFILE-AM% %MAKEFILE-IN-DEPS% $(am__configure_deps)
35 ## If configure.ac or one of configure's dependencies has changed, all
36 ## Makefile.in are to be updated; it is then more efficient to run
37 ## automake on all the Makefiles at once.  It also allow Automake to be
38 ## run for newly added directories.
39         @for dep in $?; do \
40           case '$(am__configure_deps)' in \
41             *$$dep*) \
42 ?TOPDIR_P?            echo ' cd $(srcdir) && $(AUTOMAKE) %AUTOMAKE-OPTIONS%'; \
43 ?TOPDIR_P?            $(am__cd) $(srcdir) && $(AUTOMAKE) %AUTOMAKE-OPTIONS% \
44 ?TOPDIR_P?              && exit 0; \
45 ?!TOPDIR_P?           ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
46 ## If on the other hand, subdir/Makefile.in has been removed, then toplevel
47 ## am--refresh will not be aware of any need to run.  We still invoke it
48 ## due to $? listing all prerequisites.  Fix up for it by running the rebuild
49 ## rule for this file only, below.
50 ?!TOPDIR_P?             && { if test -f $@; then exit 0; else break; fi; }; \
51               exit 1;; \
52           esac; \
53         done; \
54 ## Otherwise, rebuild only this file.
55         echo ' cd $(top_srcdir) && $(AUTOMAKE) %AUTOMAKE-OPTIONS% %MAKEFILE-AM-SOURCES%'; \
56         $(am__cd) $(top_srcdir) && \
57           $(AUTOMAKE) %AUTOMAKE-OPTIONS% %MAKEFILE-AM-SOURCES%
59 ## Ensure that GNU make doesn't remove Makefile if ./config.status (below)
60 ## is interrupted.  Otherwise, the user would need to know to rerun
61 ## ./config.status to recreate the lost Makefile.
62 .PRECIOUS: %MAKEFILE%
63 ## This rule remakes the Makefile.
64 %MAKEFILE%: %MAKEFILE-DEPS% $(top_builddir)/config.status
65 ## If Makefile is to be updated because of config.status, then run
66 ## config.status without argument in order to (i) rerun all the
67 ## AC_CONFIG_COMMANDS including those that are not visible to
68 ## Automake, and (ii) to save time by running config.status all with
69 ## all the files, instead of once per file (iii) generate Makefiles
70 ## in newly added directories.
71         @case '$?' in \
72 ## Don't prefix $(top_builddir), because GNU make will strip it out
73 ## when it's `.'.
74           *config.status*) \
75 ?TOPDIR_P?          echo ' $(SHELL) ./config.status'; \
76 ?TOPDIR_P?          $(SHELL) ./config.status;; \
77 ?!TOPDIR_P?         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
78           *) \
79 ## FIXME: $(am__depfiles_maybe) lets us re-run the rule to create the
80 ## .P files.  Ideally we wouldn't have to do this by hand.
81             echo ' cd $(top_builddir) && $(SHELL) ./config.status %CONFIG-MAKEFILE% $(am__depfiles_maybe)'; \
82             cd $(top_builddir) && $(SHELL) ./config.status %CONFIG-MAKEFILE% $(am__depfiles_maybe);; \
83         esac;
85 DIST_COMMON += %MAKEFILE-AM%
88 ## --------------------------- ##
89 ## config.status & configure.  ##
90 ## --------------------------- ##
92 if %?TOPDIR_P%
93 ## Always require configure.ac and configure at top level, even if they
94 ## don't exist.  This is especially important for configure, since it
95 ## won't be created until autoconf is run -- which might be after
96 ## automake is run.
97 DIST_COMMON += $(top_srcdir)/configure $(am__configure_deps)
98 endif %?TOPDIR_P%
100 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
101 ?TOPDIR_P?      $(SHELL) ./config.status --recheck
102 ?!TOPDIR_P?     cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
104 $(top_srcdir)/configure: %MAINTAINER-MODE% $(am__configure_deps)
105 ?TOPDIR_P?      $(am__cd) $(srcdir) && $(AUTOCONF)
106 ?!TOPDIR_P?     cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
109 ## ------------ ##
110 ## aclocal.m4.  ##
111 ## ------------ ##
113 ## aclocal.m4 must be built by the top-level Makefile, because this is
114 ## where the user is expected to define $(ACLOCAL_AMFLAGS).
116 ## Whenever a configure dependency changes we need to rebuild
117 ## aclocal.m4 too.  Changing configure.ac, or any file included by
118 ## aclocal.m4 might require adding more files to aclocal.m4.  Hence
119 ## the $(am__configure_deps) dependency.
120 if %?REGEN-ACLOCAL-M4%
121 $(ACLOCAL_M4): %MAINTAINER-MODE% $(am__aclocal_m4_deps)
122 ?TOPDIR_P?      $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
123 ?!TOPDIR_P?     cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
125 ## Avoid the "deleted header file" problem for the dependencies.
126 $(am__aclocal_m4_deps):
127 endif %?REGEN-ACLOCAL-M4%
130 ## --------- ##
131 ## cleanup.  ##
132 ## --------- ##
134 ## We special-case config.status here.  If we do it as part of the
135 ## normal clean processing for this directory, then it might be
136 ## removed before some subdir is cleaned.  However, that subdir's
137 ## Makefile depends on config.status.
139 if %?TOPDIR_P%
140 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
141  configure.lineno config.status.lineno
142 distclean:
143         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
145 ## Note: you might think we should remove Makefile.in, configure, or
146 ## aclocal.m4 here in a maintainer-clean rule.  However, the GNU
147 ## Coding Standards explicitly prohibit this.
149 maintainer-clean:
150         -rm -f $(am__CONFIG_DISTCLEAN_FILES)
151 ## autom4te.cache is created by Autoconf; the only valid target to
152 ## remove it is maintainer-clean, not distclean.
153 ## If you have an autom4te.cache that cause distcheck to fail, then
154 ## it is good news: you finally discovered that autoconf and/or
155 ## autoheader is needed to use your tarball, which is wrong.
156         -rm -rf $(top_srcdir)/autom4te.cache
159 endif %?TOPDIR_P%