Codebase list x11-apps / 601e6e8
xlogo 1.0.5. Timo Aaltonen 4 years ago
19 changed file(s) with 4696 addition(s) and 3416 deletion(s). Raw diff Collapse all Expand all
1515 * xclock 1.0.9.
1616 * xcursorgen 1.0.7.
1717 * xditview 1.0.5.
18 * xlogo 1.0.5.
1819
1920 -- Julien Cristau <jcristau@debian.org> Sun, 18 Mar 2018 17:10:35 +0100
2021
0 commit 793ce3bb509853c4fab8e04a38ba7ec752176a27
1 Author: Alan Coopersmith <alan.coopersmith@oracle.com>
2 Date: Sun Mar 3 12:20:21 2019 -0800
3
4 xlogo 1.0.5
5
6 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
7
8 commit 24af373f14cc666285a46b7c8eb6540781c6f519
9 Author: Alan Coopersmith <alan.coopersmith@oracle.com>
10 Date: Sun Feb 24 14:05:06 2019 -0800
11
12 xlogo should not require hitting *both* q and Escape to quit
13
14 Fixes: https://gitlab.freedesktop.org/xorg/app/xlogo/issues/1
15 Introduced by commit 28ffd14fbae70a5e01cdcbe2cb9342d3c8816b76
16
17 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
18
19 commit 66ea3f5a4df0ade8bb95e1772102d98e875c2893
20 Author: Alan Coopersmith <alan.coopersmith@oracle.com>
21 Date: Wed Nov 21 17:13:17 2018 -0800
22
23 Update configure.ac bug URL for gitlab migration
24
25 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
26
27 commit 809e3882d90056eadb1c2cd4acac40b3f4d04345
28 Author: Alan Coopersmith <alan.coopersmith@oracle.com>
29 Date: Fri Nov 16 22:32:48 2018 -0800
30
31 Update README for gitlab migration
32
33 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
34
35 commit bbe0915ba7fdc3c82c03c8db4926c7ec58b62852
36 Author: Mihail Konev <k.mvc@ya.ru>
37 Date: Thu Jan 26 14:00:21 2017 +1000
38
39 autogen: add default patch prefix
40
41 Signed-off-by: Mihail Konev <k.mvc@ya.ru>
42
43 commit b2f5c520a7e382e7e823e07e41a953b3325bf89a
44 Author: Emil Velikov <emil.l.velikov@gmail.com>
45 Date: Mon Mar 9 12:00:52 2015 +0000
46
47 autogen.sh: use quoted string variables
48
49 Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
50 fall-outs, when they contain space.
51
52 Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
53 Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
54 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
55
56 commit 98d403a4efa3dc388fe21aaebba367b4f80453aa
57 Author: Peter Hutterer <peter.hutterer@who-t.net>
58 Date: Tue Jan 24 10:32:07 2017 +1000
59
60 autogen.sh: use exec instead of waiting for configure to finish
61
62 Syncs the invocation of configure with the one from the server.
63
64 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
65 Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
66
67 commit d4c214ff65ec98989335642780890f1b3fd580db
68 Author: Alan Coopersmith <alan.coopersmith@oracle.com>
69 Date: Sat May 31 22:24:37 2014 -0700
70
71 config: Add missing AC_CONFIG_SRCDIR
72
73 Regroup AC statements under the Autoconf initialization section.
74 Regroup AM statements under the Automake initialization section.
75
76 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
77
78 commit 4ecb39ce273745f29bd4c310bdce9d75761e96f9
79 Author: Alan Coopersmith <alan.coopersmith@oracle.com>
80 Date: Sat May 31 21:39:32 2014 -0700
81
82 autogen.sh: Honor NOCONFIGURE=1
83
84 See http://people.gnome.org/~walters/docs/build-api.txt
85
86 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
87
88 commit 376d7eeb080af8f03f9940ea40f5ca59bad561bf
89 Author: Alan Coopersmith <alan.coopersmith@oracle.com>
90 Date: Sat May 31 21:38:41 2014 -0700
91
92 configure: Drop AM_MAINTAINER_MODE
93
94 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
95
96 commit 84c0386d7c3db6307566219cbe7fe58d9587585a
97 Author: Eric S. Raymond <esr@thyrsus.com>
98 Date: Thu Aug 23 12:17:12 2012 -0400
99
100 Eliminate use of tab stops. Helps with structural translation to DocBook.
101
102 Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
103
0104 commit 81f58b56464520fde4e64c0764bc58d5d197b849
1105 Author: Alan Coopersmith <alan.coopersmith@oracle.com>
2106 Date: Thu Mar 22 22:49:50 2012 -0700
00 Installation Instructions
11 *************************
22
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
4 2006, 2007, 2008 Free Software Foundation, Inc.
5
6 This file is free documentation; the Free Software Foundation gives
7 unlimited permission to copy, distribute and modify it.
3 Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
4 Inc.
5
6 Copying and distribution of this file, with or without modification,
7 are permitted in any medium without royalty provided the copyright
8 notice and this notice are preserved. This file is offered as-is,
9 without warranty of any kind.
810
911 Basic Installation
1012 ==================
1214 Briefly, the shell commands `./configure; make; make install' should
1315 configure, build, and install this package. The following
1416 more-detailed instructions are generic; see the `README' file for
15 instructions specific to this package.
17 instructions specific to this package. Some packages provide this
18 `INSTALL' file but do not implement all of the features documented
19 below. The lack of an optional feature in a given package is not
20 necessarily a bug. More recommendations for GNU packages can be found
21 in *note Makefile Conventions: (standards)Makefile Conventions.
1622
1723 The `configure' shell script attempts to guess correct values for
1824 various system-dependent variables used during compilation. It uses
4147 you want to change it or regenerate `configure' using a newer version
4248 of `autoconf'.
4349
44 The simplest way to compile this package is:
50 The simplest way to compile this package is:
4551
4652 1. `cd' to the directory containing the package's source code and type
4753 `./configure' to configure the package for your system.
5258 2. Type `make' to compile the package.
5359
5460 3. Optionally, type `make check' to run any self-tests that come with
55 the package.
61 the package, generally using the just-built uninstalled binaries.
5662
5763 4. Type `make install' to install the programs and any data files and
58 documentation.
59
60 5. You can remove the program binaries and object files from the
64 documentation. When installing into a prefix owned by root, it is
65 recommended that the package be configured and built as a regular
66 user, and only the `make install' phase executed with root
67 privileges.
68
69 5. Optionally, type `make installcheck' to repeat any self-tests, but
70 this time using the binaries in their final installed location.
71 This target does not install anything. Running this target as a
72 regular user, particularly if the prior `make install' required
73 root privileges, verifies that the installation completed
74 correctly.
75
76 6. You can remove the program binaries and object files from the
6177 source code directory by typing `make clean'. To also remove the
6278 files that `configure' created (so you can compile the package for
6379 a different kind of computer), type `make distclean'. There is
6682 all sorts of other programs in order to regenerate files that came
6783 with the distribution.
6884
69 6. Often, you can also type `make uninstall' to remove the installed
70 files again.
85 7. Often, you can also type `make uninstall' to remove the installed
86 files again. In practice, not all packages have tested that
87 uninstallation works correctly, even though it is required by the
88 GNU Coding Standards.
89
90 8. Some packages, particularly those that use Automake, provide `make
91 distcheck', which can by used by developers to test that all other
92 targets like `make install' and `make uninstall' work correctly.
93 This target is generally not run by end users.
7194
7295 Compilers and Options
7396 =====================
92115 own directory. To do this, you can use GNU `make'. `cd' to the
93116 directory where you want the object files and executables to go and run
94117 the `configure' script. `configure' automatically checks for the
95 source code in the directory that `configure' is in and in `..'.
118 source code in the directory that `configure' is in and in `..'. This
119 is known as a "VPATH" build.
96120
97121 With a non-GNU `make', it is safer to compile the package for one
98122 architecture at a time in the source code directory. After you have
119143 By default, `make install' installs the package's commands under
120144 `/usr/local/bin', include files under `/usr/local/include', etc. You
121145 can specify an installation prefix other than `/usr/local' by giving
122 `configure' the option `--prefix=PREFIX'.
146 `configure' the option `--prefix=PREFIX', where PREFIX must be an
147 absolute file name.
123148
124149 You can specify separate installation prefixes for
125150 architecture-specific files and architecture-independent files. If you
130155 In addition, if you use an unusual directory layout you can give
131156 options like `--bindir=DIR' to specify different values for particular
132157 kinds of files. Run `configure --help' for a list of the directories
133 you can set and what kinds of files go in them.
158 you can set and what kinds of files go in them. In general, the
159 default for these options is expressed in terms of `${prefix}', so that
160 specifying just `--prefix' will affect all of the other directory
161 specifications that were not explicitly provided.
162
163 The most portable way to affect installation locations is to pass the
164 correct locations to `configure'; however, many packages provide one or
165 both of the following shortcuts of passing variable assignments to the
166 `make install' command line to change installation locations without
167 having to reconfigure or recompile.
168
169 The first method involves providing an override variable for each
170 affected directory. For example, `make install
171 prefix=/alternate/directory' will choose an alternate location for all
172 directory configuration variables that were expressed in terms of
173 `${prefix}'. Any directories that were specified during `configure',
174 but not in terms of `${prefix}', must each be overridden at install
175 time for the entire installation to be relocated. The approach of
176 makefile variable overrides for each directory variable is required by
177 the GNU Coding Standards, and ideally causes no recompilation.
178 However, some platforms have known limitations with the semantics of
179 shared libraries that end up requiring recompilation when using this
180 method, particularly noticeable in packages that use GNU Libtool.
181
182 The second method involves providing the `DESTDIR' variable. For
183 example, `make install DESTDIR=/alternate/directory' will prepend
184 `/alternate/directory' before all installation names. The approach of
185 `DESTDIR' overrides is not required by the GNU Coding Standards, and
186 does not work on platforms that have drive letters. On the other hand,
187 it does better at avoiding recompilation issues, and works well even
188 when some directory options were not specified in terms of `${prefix}'
189 at `configure' time.
190
191 Optional Features
192 =================
134193
135194 If the package supports it, you can cause programs to be installed
136195 with an extra prefix or suffix on their names by giving `configure' the
137196 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
138
139 Optional Features
140 =================
141197
142198 Some packages pay attention to `--enable-FEATURE' options to
143199 `configure', where FEATURE indicates an optional part of the package.
151207 you can use the `configure' options `--x-includes=DIR' and
152208 `--x-libraries=DIR' to specify their locations.
153209
210 Some packages offer the ability to configure how verbose the
211 execution of `make' will be. For these packages, running `./configure
212 --enable-silent-rules' sets the default to minimal output, which can be
213 overridden with `make V=1'; while running `./configure
214 --disable-silent-rules' sets the default to verbose, which can be
215 overridden with `make V=0'.
216
154217 Particular systems
155218 ==================
156219
158221 CC is not installed, it is recommended to use the following options in
159222 order to use an ANSI C compiler:
160223
161 ./configure CC="cc -Ae"
224 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
162225
163226 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227
228 HP-UX `make' updates targets which have the same time stamps as
229 their prerequisites, which makes it generally unusable when shipped
230 generated files such as `configure' are involved. Use GNU `make'
231 instead.
164232
165233 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
166234 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
172240 and if that doesn't work, try
173241
174242 ./configure CC="cc -nodtk"
243
244 On Solaris, don't put `/usr/ucb' early in your `PATH'. This
245 directory contains several dysfunctional programs; working variants of
246 these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
247 in your `PATH', put it _after_ `/usr/bin'.
248
249 On Haiku, software installed for all users goes in `/boot/common',
250 not `/usr/local'. It is recommended to use the following options:
251
252 ./configure --prefix=/boot/common
175253
176254 Specifying the System Type
177255 ==========================
188266
189267 where SYSTEM can have one of these forms:
190268
191 OS KERNEL-OS
269 OS
270 KERNEL-OS
192271
193272 See the file `config.sub' for the possible values of each field. If
194273 `config.sub' isn't included in this package, then this package doesn't
276355 `configure' can determine that directory automatically.
277356
278357 `--prefix=DIR'
279 Use DIR as the installation prefix. *Note Installation Names::
358 Use DIR as the installation prefix. *note Installation Names::
280359 for more details, including other options available for fine-tuning
281360 the installation locations.
282361
5656 $(CHANGELOG_CMD)
5757
5858 dist-hook: ChangeLog INSTALL
59
60 EXTRA_DIST = README.md
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
3635
3736
3837 VPATH = @srcdir@
38 am__is_gnu_make = { \
39 if test -z '$(MAKELEVEL)'; then \
40 false; \
41 elif test -n '$(MAKE_HOST)'; then \
42 true; \
43 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
44 true; \
45 else \
46 false; \
47 fi; \
48 }
49 am__make_running_with_option = \
50 case $${target_option-} in \
51 ?) ;; \
52 *) echo "am__make_running_with_option: internal error: invalid" \
53 "target option '$${target_option-}' specified" >&2; \
54 exit 1;; \
55 esac; \
56 has_opt=no; \
57 sane_makeflags=$$MAKEFLAGS; \
58 if $(am__is_gnu_make); then \
59 sane_makeflags=$$MFLAGS; \
60 else \
61 case $$MAKEFLAGS in \
62 *\\[\ \ ]*) \
63 bs=\\; \
64 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
65 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
66 esac; \
67 fi; \
68 skip_next=no; \
69 strip_trailopt () \
70 { \
71 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
72 }; \
73 for flg in $$sane_makeflags; do \
74 test $$skip_next = yes && { skip_next=no; continue; }; \
75 case $$flg in \
76 *=*|--*) continue;; \
77 -*I) strip_trailopt 'I'; skip_next=yes;; \
78 -*I?*) strip_trailopt 'I';; \
79 -*O) strip_trailopt 'O'; skip_next=yes;; \
80 -*O?*) strip_trailopt 'O';; \
81 -*l) strip_trailopt 'l'; skip_next=yes;; \
82 -*l?*) strip_trailopt 'l';; \
83 -[dEDm]) skip_next=yes;; \
84 -[JT]) skip_next=yes;; \
85 esac; \
86 case $$flg in \
87 *$$target_option*) has_opt=yes; break;; \
88 esac; \
89 done; \
90 test $$has_opt = yes
91 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
92 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
3993 pkgdatadir = $(datadir)/@PACKAGE@
4094 pkgincludedir = $(includedir)/@PACKAGE@
4195 pkglibdir = $(libdir)/@PACKAGE@
60114 @USE_RENDER_TRUE@ RenderLogo.h
61115
62116 subdir = .
63 DIST_COMMON = README $(am__configure_deps) $(dist_appdefault_DATA) \
64 $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
65 $(srcdir)/config.h.in $(top_srcdir)/configure COPYING \
66 ChangeLog INSTALL config.guess config.sub depcomp install-sh \
67 missing
68117 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
69118 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
70119 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
71120 $(ACLOCAL_M4)
121 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
122 $(am__configure_deps) $(dist_appdefault_DATA) \
123 $(am__DIST_COMMON)
72124 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
73125 configure.lineno config.status.lineno
74126 mkinstalldirs = $(install_sh) -d
84136 xlogo_OBJECTS = $(am_xlogo_OBJECTS)
85137 am__DEPENDENCIES_1 =
86138 xlogo_DEPENDENCIES = $(am__DEPENDENCIES_1)
139 AM_V_P = $(am__v_P_@AM_V@)
140 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
141 am__v_P_0 = false
142 am__v_P_1 = :
143 AM_V_GEN = $(am__v_GEN_@AM_V@)
144 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
145 am__v_GEN_0 = @echo " GEN " $@;
146 am__v_GEN_1 =
147 AM_V_at = $(am__v_at_@AM_V@)
148 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
149 am__v_at_0 = @
150 am__v_at_1 =
87151 DEFAULT_INCLUDES = -I.@am__isrc@
88152 depcomp = $(SHELL) $(top_srcdir)/depcomp
89153 am__depfiles_maybe = depfiles
90154 am__mv = mv -f
91155 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
92156 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
93 AM_V_CC = $(am__v_CC_$(V))
94 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
95 am__v_CC_0 = @echo " CC " $@;
96 AM_V_at = $(am__v_at_$(V))
97 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
98 am__v_at_0 = @
157 AM_V_CC = $(am__v_CC_@AM_V@)
158 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
159 am__v_CC_0 = @echo " CC " $@;
160 am__v_CC_1 =
99161 CCLD = $(CC)
100162 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
101 AM_V_CCLD = $(am__v_CCLD_$(V))
102 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
103 am__v_CCLD_0 = @echo " CCLD " $@;
104 AM_V_GEN = $(am__v_GEN_$(V))
105 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
106 am__v_GEN_0 = @echo " GEN " $@;
163 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
164 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
165 am__v_CCLD_0 = @echo " CCLD " $@;
166 am__v_CCLD_1 =
107167 SOURCES = $(xlogo_SOURCES)
108168 DIST_SOURCES = $(am__xlogo_SOURCES_DIST)
109 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
110 html-recursive info-recursive install-data-recursive \
111 install-dvi-recursive install-exec-recursive \
112 install-html-recursive install-info-recursive \
113 install-pdf-recursive install-ps-recursive install-recursive \
114 installcheck-recursive installdirs-recursive pdf-recursive \
115 ps-recursive uninstall-recursive
169 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
170 ctags-recursive dvi-recursive html-recursive info-recursive \
171 install-data-recursive install-dvi-recursive \
172 install-exec-recursive install-html-recursive \
173 install-info-recursive install-pdf-recursive \
174 install-ps-recursive install-recursive installcheck-recursive \
175 installdirs-recursive pdf-recursive ps-recursive \
176 tags-recursive uninstall-recursive
177 am__can_run_installinfo = \
178 case $$AM_UPDATE_INFO_DIR in \
179 n|no|NO) false;; \
180 *) (install-info --version) >/dev/null 2>&1;; \
181 esac
116182 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
117183 am__vpath_adj = case $$p in \
118184 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
134200 am__base_list = \
135201 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
136202 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
203 am__uninstall_files_from_dir = { \
204 test -z "$$files" \
205 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
206 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
207 $(am__cd) "$$dir" && rm -f $$files; }; \
208 }
137209 DATA = $(dist_appdefault_DATA)
138210 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
139211 distclean-recursive maintainer-clean-recursive
140 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
141 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
142 distdir dist dist-all distcheck
212 am__recursive_targets = \
213 $(RECURSIVE_TARGETS) \
214 $(RECURSIVE_CLEAN_TARGETS) \
215 $(am__extra_recursive_targets)
216 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
217 cscope distdir dist dist-all distcheck
218 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
219 $(LISP)config.h.in
220 # Read a list of newline-separated strings from the standard input,
221 # and print each of them once, without duplicates. Input order is
222 # *not* preserved.
223 am__uniquify_input = $(AWK) '\
224 BEGIN { nonempty = 0; } \
225 { items[$$0] = 1; nonempty = 1; } \
226 END { if (nonempty) { for (i in items) print i; }; } \
227 '
228 # Make sure the list of sources is unique. This is necessary because,
229 # e.g., the same source file might be shared among _SOURCES variables
230 # for different programs/libraries.
231 am__define_uniq_tagged_files = \
232 list='$(am__tagged_files)'; \
233 unique=`for i in $$list; do \
234 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
235 done | $(am__uniquify_input)`
143236 ETAGS = etags
144237 CTAGS = ctags
238 CSCOPE = cscope
145239 DIST_SUBDIRS = $(SUBDIRS)
240 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in COPYING \
241 ChangeLog INSTALL compile config.guess config.sub depcomp \
242 install-sh missing
146243 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
147244 distdir = $(PACKAGE)-$(VERSION)
148245 top_distdir = $(distdir)
149246 am__remove_distdir = \
150 { test ! -d "$(distdir)" \
151 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
152 && rm -fr "$(distdir)"; }; }
247 if test -d "$(distdir)"; then \
248 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
249 && rm -rf "$(distdir)" \
250 || { sleep 5 && rm -rf "$(distdir)"; }; \
251 else :; fi
252 am__post_remove_distdir = $(am__remove_distdir)
153253 am__relativize = \
154254 dir0=`pwd`; \
155255 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
177277 reldir="$$dir2"
178278 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
179279 GZIP_ENV = --best
280 DIST_TARGETS = dist-bzip2 dist-gzip
180281 distuninstallcheck_listfiles = find . -type f -print
282 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
283 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
181284 distcleancheck_listfiles = find . -type f -print
182285 ACLOCAL = @ACLOCAL@
183286 ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
225328 LIB_MAN_DIR = @LIB_MAN_DIR@
226329 LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
227330 LTLIBOBJS = @LTLIBOBJS@
228 MAINT = @MAINT@
229331 MAKEINFO = @MAKEINFO@
230332 MAN_SUBSTS = @MAN_SUBSTS@
231333 MISC_MAN_DIR = @MISC_MAN_DIR@
241343 PACKAGE_VERSION = @PACKAGE_VERSION@
242344 PATH_SEPARATOR = @PATH_SEPARATOR@
243345 PKG_CONFIG = @PKG_CONFIG@
346 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
347 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
244348 SED = @SED@
245349 SET_MAKE = @SET_MAKE@
246350 SHELL = @SHELL@
313417 app-defaults/XLogo-color
314418
315419 MAINTAINERCLEANFILES = ChangeLog INSTALL
420 EXTRA_DIST = README.md
316421 all: config.h
317422 $(MAKE) $(AM_MAKEFLAGS) all-recursive
318423
319424 .SUFFIXES:
320425 .SUFFIXES: .c .o .obj
321 am--refresh:
426 am--refresh: Makefile
322427 @:
323 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
428 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
324429 @for dep in $?; do \
325430 case '$(am__configure_deps)' in \
326431 *$$dep*) \
333438 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
334439 $(am__cd) $(top_srcdir) && \
335440 $(AUTOMAKE) --foreign Makefile
336 .PRECIOUS: Makefile
337441 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
338442 @case '$?' in \
339443 *config.status*) \
347451 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
348452 $(SHELL) ./config.status --recheck
349453
350 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
454 $(top_srcdir)/configure: $(am__configure_deps)
351455 $(am__cd) $(srcdir) && $(AUTOCONF)
352 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
456 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
353457 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
354458 $(am__aclocal_m4_deps):
355459
356460 config.h: stamp-h1
357 @if test ! -f $@; then \
358 rm -f stamp-h1; \
359 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
360 else :; fi
461 @test -f $@ || rm -f stamp-h1
462 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
361463
362464 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
363465 @rm -f stamp-h1
364466 cd $(top_builddir) && $(SHELL) ./config.status config.h
365 $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
467 $(srcdir)/config.h.in: $(am__configure_deps)
366468 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
367469 rm -f stamp-h1
368470 touch $@
371473 -rm -f config.h stamp-h1
372474 install-binPROGRAMS: $(bin_PROGRAMS)
373475 @$(NORMAL_INSTALL)
374 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
375476 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
477 if test -n "$$list"; then \
478 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
479 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
480 fi; \
376481 for p in $$list; do echo "$$p $$p"; done | \
377482 sed 's/$(EXEEXT)$$//' | \
378 while read p p1; do if test -f $$p; \
379 then echo "$$p"; echo "$$p"; else :; fi; \
483 while read p p1; do if test -f $$p \
484 ; then echo "$$p"; echo "$$p"; else :; fi; \
380485 done | \
381 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
486 sed -e 'p;s,.*/,,;n;h' \
487 -e 's|.*|.|' \
382488 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
383489 sed 'N;N;N;s,\n, ,g' | \
384490 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
399505 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
400506 files=`for p in $$list; do echo "$$p"; done | \
401507 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
402 -e 's/$$/$(EXEEXT)/' `; \
508 -e 's/$$/$(EXEEXT)/' \
509 `; \
403510 test -n "$$list" || exit 0; \
404511 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
405512 cd "$(DESTDIR)$(bindir)" && rm -f $$files
406513
407514 clean-binPROGRAMS:
408515 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
409 xlogo$(EXEEXT): $(xlogo_OBJECTS) $(xlogo_DEPENDENCIES)
516
517 xlogo$(EXEEXT): $(xlogo_OBJECTS) $(xlogo_DEPENDENCIES) $(EXTRA_xlogo_DEPENDENCIES)
410518 @rm -f xlogo$(EXEEXT)
411519 $(AM_V_CCLD)$(LINK) $(xlogo_OBJECTS) $(xlogo_LDADD) $(LIBS)
412520
423531 .c.o:
424532 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
425533 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
426 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
427 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
534 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
428535 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
429 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
536 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
430537
431538 .c.obj:
432539 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
433540 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
434 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
435 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
541 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
436542 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
437 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
543 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
438544 install-dist_appdefaultDATA: $(dist_appdefault_DATA)
439545 @$(NORMAL_INSTALL)
440 test -z "$(appdefaultdir)" || $(MKDIR_P) "$(DESTDIR)$(appdefaultdir)"
441546 @list='$(dist_appdefault_DATA)'; test -n "$(appdefaultdir)" || list=; \
547 if test -n "$$list"; then \
548 echo " $(MKDIR_P) '$(DESTDIR)$(appdefaultdir)'"; \
549 $(MKDIR_P) "$(DESTDIR)$(appdefaultdir)" || exit 1; \
550 fi; \
442551 for p in $$list; do \
443552 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
444553 echo "$$d$$p"; \
452561 @$(NORMAL_UNINSTALL)
453562 @list='$(dist_appdefault_DATA)'; test -n "$(appdefaultdir)" || list=; \
454563 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
455 test -n "$$files" || exit 0; \
456 echo " ( cd '$(DESTDIR)$(appdefaultdir)' && rm -f" $$files ")"; \
457 cd "$(DESTDIR)$(appdefaultdir)" && rm -f $$files
564 dir='$(DESTDIR)$(appdefaultdir)'; $(am__uninstall_files_from_dir)
458565
459566 # This directory's subdirectories are mostly independent; you can cd
460 # into them and run `make' without going through this Makefile.
461 # To change the values of `make' variables: instead of editing Makefiles,
462 # (1) if the variable is set in `config.status', edit `config.status'
463 # (which will cause the Makefiles to be regenerated when you run `make');
464 # (2) otherwise, pass the desired values on the `make' command line.
465 $(RECURSIVE_TARGETS):
466 @fail= failcom='exit 1'; \
467 for f in x $$MAKEFLAGS; do \
468 case $$f in \
469 *=* | --[!k]*);; \
470 *k*) failcom='fail=yes';; \
471 esac; \
472 done; \
567 # into them and run 'make' without going through this Makefile.
568 # To change the values of 'make' variables: instead of editing Makefiles,
569 # (1) if the variable is set in 'config.status', edit 'config.status'
570 # (which will cause the Makefiles to be regenerated when you run 'make');
571 # (2) otherwise, pass the desired values on the 'make' command line.
572 $(am__recursive_targets):
573 @fail=; \
574 if $(am__make_keepgoing); then \
575 failcom='fail=yes'; \
576 else \
577 failcom='exit 1'; \
578 fi; \
473579 dot_seen=no; \
474580 target=`echo $@ | sed s/-recursive//`; \
475 list='$(SUBDIRS)'; for subdir in $$list; do \
581 case "$@" in \
582 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
583 *) list='$(SUBDIRS)' ;; \
584 esac; \
585 for subdir in $$list; do \
476586 echo "Making $$target in $$subdir"; \
477587 if test "$$subdir" = "."; then \
478588 dot_seen=yes; \
487597 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
488598 fi; test -z "$$fail"
489599
490 $(RECURSIVE_CLEAN_TARGETS):
491 @fail= failcom='exit 1'; \
492 for f in x $$MAKEFLAGS; do \
493 case $$f in \
494 *=* | --[!k]*);; \
495 *k*) failcom='fail=yes';; \
496 esac; \
497 done; \
498 dot_seen=no; \
499 case "$@" in \
500 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
501 *) list='$(SUBDIRS)' ;; \
502 esac; \
503 rev=''; for subdir in $$list; do \
504 if test "$$subdir" = "."; then :; else \
505 rev="$$subdir $$rev"; \
506 fi; \
507 done; \
508 rev="$$rev ."; \
509 target=`echo $@ | sed s/-recursive//`; \
510 for subdir in $$rev; do \
511 echo "Making $$target in $$subdir"; \
512 if test "$$subdir" = "."; then \
513 local_target="$$target-am"; \
514 else \
515 local_target="$$target"; \
516 fi; \
517 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
518 || eval $$failcom; \
519 done && test -z "$$fail"
520 tags-recursive:
521 list='$(SUBDIRS)'; for subdir in $$list; do \
522 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
523 done
524 ctags-recursive:
525 list='$(SUBDIRS)'; for subdir in $$list; do \
526 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
527 done
528
529 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
530 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
531 unique=`for i in $$list; do \
532 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
533 done | \
534 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
535 END { if (nonempty) { for (i in files) print i; }; }'`; \
536 mkid -fID $$unique
537 tags: TAGS
538
539 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
540 $(TAGS_FILES) $(LISP)
600 ID: $(am__tagged_files)
601 $(am__define_uniq_tagged_files); mkid -fID $$unique
602 tags: tags-recursive
603 TAGS: tags
604
605 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
541606 set x; \
542607 here=`pwd`; \
543608 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
553618 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
554619 fi; \
555620 done; \
556 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
557 unique=`for i in $$list; do \
558 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
559 done | \
560 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
561 END { if (nonempty) { for (i in files) print i; }; }'`; \
621 $(am__define_uniq_tagged_files); \
562622 shift; \
563623 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
564624 test -n "$$unique" || unique=$$empty_fix; \
570630 $$unique; \
571631 fi; \
572632 fi
573 ctags: CTAGS
574 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
575 $(TAGS_FILES) $(LISP)
576 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
577 unique=`for i in $$list; do \
578 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
579 done | \
580 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
581 END { if (nonempty) { for (i in files) print i; }; }'`; \
633 ctags: ctags-recursive
634
635 CTAGS: ctags
636 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
637 $(am__define_uniq_tagged_files); \
582638 test -z "$(CTAGS_ARGS)$$unique" \
583639 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
584640 $$unique
587643 here=`$(am__cd) $(top_builddir) && pwd` \
588644 && $(am__cd) $(top_srcdir) \
589645 && gtags -i $(GTAGS_ARGS) "$$here"
646 cscope: cscope.files
647 test ! -s cscope.files \
648 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
649 clean-cscope:
650 -rm -f cscope.files
651 cscope.files: clean-cscope cscopelist
652 cscopelist: cscopelist-recursive
653
654 cscopelist-am: $(am__tagged_files)
655 list='$(am__tagged_files)'; \
656 case "$(srcdir)" in \
657 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
658 *) sdir=$(subdir)/$(srcdir) ;; \
659 esac; \
660 for i in $$list; do \
661 if test -f "$$i"; then \
662 echo "$(subdir)/$$i"; \
663 else \
664 echo "$$sdir/$$i"; \
665 fi; \
666 done >> $(top_builddir)/cscope.files
590667
591668 distclean-tags:
592669 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
670 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
593671
594672 distdir: $(DISTFILES)
595673 $(am__remove_distdir)
625703 done
626704 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
627705 if test "$$subdir" = .; then :; else \
628 test -d "$(distdir)/$$subdir" \
629 || $(MKDIR_P) "$(distdir)/$$subdir" \
630 || exit 1; \
631 fi; \
632 done
633 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
634 if test "$$subdir" = .; then :; else \
706 $(am__make_dryrun) \
707 || test -d "$(distdir)/$$subdir" \
708 || $(MKDIR_P) "$(distdir)/$$subdir" \
709 || exit 1; \
635710 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
636711 $(am__relativize); \
637712 new_distdir=$$reldir; \
663738 || chmod -R a+r "$(distdir)"
664739 dist-gzip: distdir
665740 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
666 $(am__remove_distdir)
741 $(am__post_remove_distdir)
667742 dist-bzip2: distdir
668 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
669 $(am__remove_distdir)
670
671 dist-lzma: distdir
672 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
673 $(am__remove_distdir)
743 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
744 $(am__post_remove_distdir)
745
746 dist-lzip: distdir
747 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
748 $(am__post_remove_distdir)
674749
675750 dist-xz: distdir
676 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
677 $(am__remove_distdir)
751 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
752 $(am__post_remove_distdir)
678753
679754 dist-tarZ: distdir
755 @echo WARNING: "Support for distribution archives compressed with" \
756 "legacy program 'compress' is deprecated." >&2
757 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
680758 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
681 $(am__remove_distdir)
759 $(am__post_remove_distdir)
682760
683761 dist-shar: distdir
762 @echo WARNING: "Support for shar distribution archives is" \
763 "deprecated." >&2
764 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
684765 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
685 $(am__remove_distdir)
766 $(am__post_remove_distdir)
686767
687768 dist-zip: distdir
688769 -rm -f $(distdir).zip
689770 zip -rq $(distdir).zip $(distdir)
690 $(am__remove_distdir)
691
692 dist dist-all: distdir
693 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
694 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
695 $(am__remove_distdir)
771 $(am__post_remove_distdir)
772
773 dist dist-all:
774 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
775 $(am__post_remove_distdir)
696776
697777 # This target untars the dist file and tries a VPATH configuration. Then
698778 # it guarantees that the distribution is self-contained by making another
703783 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
704784 *.tar.bz2*) \
705785 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
706 *.tar.lzma*) \
707 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
786 *.tar.lz*) \
787 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
708788 *.tar.xz*) \
709789 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
710790 *.tar.Z*) \
714794 *.zip*) \
715795 unzip $(distdir).zip ;;\
716796 esac
717 chmod -R a-w $(distdir); chmod a+w $(distdir)
718 mkdir $(distdir)/_build
719 mkdir $(distdir)/_inst
797 chmod -R a-w $(distdir)
798 chmod u+w $(distdir)
799 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
720800 chmod a-w $(distdir)
721801 test -d $(distdir)/_build || exit 0; \
722802 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
723803 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
724804 && am__cwd=`pwd` \
725 && $(am__cd) $(distdir)/_build \
726 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
805 && $(am__cd) $(distdir)/_build/sub \
806 && ../../configure \
807 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
727808 $(DISTCHECK_CONFIGURE_FLAGS) \
809 --srcdir=../.. --prefix="$$dc_install_base" \
728810 && $(MAKE) $(AM_MAKEFLAGS) \
729811 && $(MAKE) $(AM_MAKEFLAGS) dvi \
730812 && $(MAKE) $(AM_MAKEFLAGS) check \
747829 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
748830 && cd "$$am__cwd" \
749831 || exit 1
750 $(am__remove_distdir)
832 $(am__post_remove_distdir)
751833 @(echo "$(distdir) archives ready for distribution: "; \
752834 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
753835 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
754836 distuninstallcheck:
755 @$(am__cd) '$(distuninstallcheck_dir)' \
756 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
837 @test -n '$(distuninstallcheck_dir)' || { \
838 echo 'ERROR: trying to run $@ with an empty' \
839 '$$(distuninstallcheck_dir)' >&2; \
840 exit 1; \
841 }; \
842 $(am__cd) '$(distuninstallcheck_dir)' || { \
843 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
844 exit 1; \
845 }; \
846 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
757847 || { echo "ERROR: files left after uninstall:" ; \
758848 if test -n "$(DESTDIR)"; then \
759849 echo " (check DESTDIR support)"; \
787877
788878 installcheck: installcheck-recursive
789879 install-strip:
790 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
791 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
792 `test -z '$(STRIP)' || \
793 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
880 if test -z '$(STRIP)'; then \
881 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
882 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
883 install; \
884 else \
885 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
886 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
887 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
888 fi
794889 mostlyclean-generic:
795890
796891 clean-generic:
875970
876971 uninstall-am: uninstall-binPROGRAMS uninstall-dist_appdefaultDATA
877972
878 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
879 ctags-recursive install-am install-strip tags-recursive
880
881 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
882 all all-am am--refresh check check-am clean clean-binPROGRAMS \
883 clean-generic ctags ctags-recursive dist dist-all dist-bzip2 \
884 dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \
885 dist-zip distcheck distclean distclean-compile \
886 distclean-generic distclean-hdr distclean-tags distcleancheck \
887 distdir distuninstallcheck dvi dvi-am html html-am info \
888 info-am install install-am install-binPROGRAMS install-data \
889 install-data-am install-dist_appdefaultDATA install-dvi \
890 install-dvi-am install-exec install-exec-am install-html \
891 install-html-am install-info install-info-am install-man \
892 install-pdf install-pdf-am install-ps install-ps-am \
893 install-strip installcheck installcheck-am installdirs \
894 installdirs-am maintainer-clean maintainer-clean-generic \
895 mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
896 ps ps-am tags tags-recursive uninstall uninstall-am \
897 uninstall-binPROGRAMS uninstall-dist_appdefaultDATA
973 .MAKE: $(am__recursive_targets) all install-am install-strip
974
975 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
976 am--refresh check check-am clean clean-binPROGRAMS \
977 clean-cscope clean-generic cscope cscopelist-am ctags ctags-am \
978 dist dist-all dist-bzip2 dist-gzip dist-hook dist-lzip \
979 dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
980 distclean-compile distclean-generic distclean-hdr \
981 distclean-tags distcleancheck distdir distuninstallcheck dvi \
982 dvi-am html html-am info info-am install install-am \
983 install-binPROGRAMS install-data install-data-am \
984 install-dist_appdefaultDATA install-dvi install-dvi-am \
985 install-exec install-exec-am install-html install-html-am \
986 install-info install-info-am install-man install-pdf \
987 install-pdf-am install-ps install-ps-am install-strip \
988 installcheck installcheck-am installdirs installdirs-am \
989 maintainer-clean maintainer-clean-generic mostlyclean \
990 mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
991 tags tags-am uninstall uninstall-am uninstall-binPROGRAMS \
992 uninstall-dist_appdefaultDATA
993
994 .PRECIOUS: Makefile
898995
899996
900997 .PHONY: ChangeLog INSTALL
+0
-25
xlogo/README less more
0 The xlogo program simply displays the X Window System logo.
1
2 All questions regarding this software should be directed at the
3 Xorg mailing list:
4
5 http://lists.freedesktop.org/mailman/listinfo/xorg
6
7 Please submit bug reports to the Xorg bugzilla:
8
9 https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
10
11 The master development code repository can be found at:
12
13 git://anongit.freedesktop.org/git/xorg/app/xlogo
14
15 http://cgit.freedesktop.org/xorg/app/xlogo
16
17 For patch submission instructions, see:
18
19 http://www.x.org/wiki/Development/Documentation/SubmittingPatches
20
21 For more information on the git code manager, see:
22
23 http://wiki.x.org/wiki/GitPage
24
0 The xlogo program simply displays the X Window System logo.
1
2 All questions regarding this software should be directed at the
3 Xorg mailing list:
4
5 https://lists.x.org/mailman/listinfo/xorg
6
7 The master development code repository can be found at:
8
9 https://gitlab.freedesktop.org/xorg/app/xlogo
10
11 Please submit bug reports and requests to merge patches there.
12
13 For patch submission instructions, see:
14
15 https://www.x.org/wiki/Development/Documentation/SubmittingPatches
16
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.15 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
3
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
1212
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1314 m4_ifndef([AC_AUTOCONF_VERSION],
1415 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
16 [m4_warning([this file was generated for autoconf 2.68.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
1718 You have another version of autoconf. It may work, but is not guaranteed to.
1819 If you have problems, you may need to regenerate the build system entirely.
19 To do so, use the procedure documented by the package, typically `autoreconf'.])])
20
21 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
22 #
23 # This file is free software; the Free Software Foundation
24 # gives unlimited permission to copy and/or distribute it,
25 # with or without modifications, as long as this notice is preserved.
26
27 # AM_AUTOMAKE_VERSION(VERSION)
28 # ----------------------------
29 # Automake X.Y traces this macro to ensure aclocal.m4 has been
30 # generated from the m4 files accompanying Automake X.Y.
31 # (This private macro should not be called outside this file.)
32 AC_DEFUN([AM_AUTOMAKE_VERSION],
33 [am__api_version='1.11'
34 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
35 dnl require some minimum version. Point them to the right macro.
36 m4_if([$1], [1.11.1], [],
37 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
38 ])
39
40 # _AM_AUTOCONF_VERSION(VERSION)
41 # -----------------------------
42 # aclocal traces this macro to find the Autoconf version.
43 # This is a private macro too. Using m4_define simplifies
44 # the logic in aclocal, which can simply ignore this definition.
45 m4_define([_AM_AUTOCONF_VERSION], [])
46
47 # AM_SET_CURRENT_AUTOMAKE_VERSION
48 # -------------------------------
49 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
50 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
51 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
52 [AM_AUTOMAKE_VERSION([1.11.1])dnl
53 m4_ifndef([AC_AUTOCONF_VERSION],
54 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
55 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
56
57 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
58
59 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
60 #
61 # This file is free software; the Free Software Foundation
62 # gives unlimited permission to copy and/or distribute it,
63 # with or without modifications, as long as this notice is preserved.
64
65 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
66 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
67 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
68 #
69 # Of course, Automake must honor this variable whenever it calls a
70 # tool from the auxiliary directory. The problem is that $srcdir (and
71 # therefore $ac_aux_dir as well) can be either absolute or relative,
72 # depending on how configure is run. This is pretty annoying, since
73 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
74 # source directory, any form will work fine, but in subdirectories a
75 # relative path needs to be adjusted first.
76 #
77 # $ac_aux_dir/missing
78 # fails when called from a subdirectory if $ac_aux_dir is relative
79 # $top_srcdir/$ac_aux_dir/missing
80 # fails if $ac_aux_dir is absolute,
81 # fails when called from a subdirectory in a VPATH build with
82 # a relative $ac_aux_dir
83 #
84 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
85 # are both prefixed by $srcdir. In an in-source build this is usually
86 # harmless because $srcdir is `.', but things will broke when you
87 # start a VPATH build or use an absolute $srcdir.
88 #
89 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
90 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
91 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
92 # and then we would define $MISSING as
93 # MISSING="\${SHELL} $am_aux_dir/missing"
94 # This will work as long as MISSING is not called from configure, because
95 # unfortunately $(top_srcdir) has no meaning in configure.
96 # However there are other variables, like CC, which are often used in
97 # configure, and could therefore not use this "fixed" $ac_aux_dir.
98 #
99 # Another solution, used here, is to always expand $ac_aux_dir to an
100 # absolute PATH. The drawback is that using absolute paths prevent a
101 # configured tree to be moved without reconfiguration.
102
103 AC_DEFUN([AM_AUX_DIR_EXPAND],
104 [dnl Rely on autoconf to set up CDPATH properly.
105 AC_PREREQ([2.50])dnl
106 # expand $ac_aux_dir to an absolute path
107 am_aux_dir=`cd $ac_aux_dir && pwd`
108 ])
109
110 # AM_CONDITIONAL -*- Autoconf -*-
111
112 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
113 # Free Software Foundation, Inc.
114 #
115 # This file is free software; the Free Software Foundation
116 # gives unlimited permission to copy and/or distribute it,
117 # with or without modifications, as long as this notice is preserved.
118
119 # serial 9
120
121 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
122 # -------------------------------------
123 # Define a conditional.
124 AC_DEFUN([AM_CONDITIONAL],
125 [AC_PREREQ(2.52)dnl
126 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
127 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
128 AC_SUBST([$1_TRUE])dnl
129 AC_SUBST([$1_FALSE])dnl
130 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
131 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
132 m4_define([_AM_COND_VALUE_$1], [$2])dnl
133 if $2; then
134 $1_TRUE=
135 $1_FALSE='#'
136 else
137 $1_TRUE='#'
138 $1_FALSE=
139 fi
140 AC_CONFIG_COMMANDS_PRE(
141 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
142 AC_MSG_ERROR([[conditional "$1" was never defined.
143 Usually this means the macro was only invoked conditionally.]])
144 fi])])
145
146 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
147 # Free Software Foundation, Inc.
148 #
149 # This file is free software; the Free Software Foundation
150 # gives unlimited permission to copy and/or distribute it,
151 # with or without modifications, as long as this notice is preserved.
152
153 # serial 10
154
155 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
156 # written in clear, in which case automake, when reading aclocal.m4,
157 # will think it sees a *use*, and therefore will trigger all it's
158 # C support machinery. Also note that it means that autoscan, seeing
159 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
160
161
162 # _AM_DEPENDENCIES(NAME)
163 # ----------------------
164 # See how the compiler implements dependency checking.
165 # NAME is "CC", "CXX", "GCJ", or "OBJC".
166 # We try a few techniques and use that to set a single cache variable.
167 #
168 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
169 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
170 # dependency, and given that the user is not expected to run this macro,
171 # just rely on AC_PROG_CC.
172 AC_DEFUN([_AM_DEPENDENCIES],
173 [AC_REQUIRE([AM_SET_DEPDIR])dnl
174 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
175 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
176 AC_REQUIRE([AM_DEP_TRACK])dnl
177
178 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
179 [$1], CXX, [depcc="$CXX" am_compiler_list=],
180 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
181 [$1], UPC, [depcc="$UPC" am_compiler_list=],
182 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
183 [depcc="$$1" am_compiler_list=])
184
185 AC_CACHE_CHECK([dependency style of $depcc],
186 [am_cv_$1_dependencies_compiler_type],
187 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
188 # We make a subdir and do the tests there. Otherwise we can end up
189 # making bogus files that we don't know about and never remove. For
190 # instance it was reported that on HP-UX the gcc test will end up
191 # making a dummy file named `D' -- because `-MD' means `put the output
192 # in D'.
193 mkdir conftest.dir
194 # Copy depcomp to subdir because otherwise we won't find it if we're
195 # using a relative directory.
196 cp "$am_depcomp" conftest.dir
197 cd conftest.dir
198 # We will build objects and dependencies in a subdirectory because
199 # it helps to detect inapplicable dependency modes. For instance
200 # both Tru64's cc and ICC support -MD to output dependencies as a
201 # side effect of compilation, but ICC will put the dependencies in
202 # the current directory while Tru64 will put them in the object
203 # directory.
204 mkdir sub
205
206 am_cv_$1_dependencies_compiler_type=none
207 if test "$am_compiler_list" = ""; then
208 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
209 fi
210 am__universal=false
211 m4_case([$1], [CC],
212 [case " $depcc " in #(
213 *\ -arch\ *\ -arch\ *) am__universal=true ;;
214 esac],
215 [CXX],
216 [case " $depcc " in #(
217 *\ -arch\ *\ -arch\ *) am__universal=true ;;
218 esac])
219
220 for depmode in $am_compiler_list; do
221 # Setup a source with many dependencies, because some compilers
222 # like to wrap large dependency lists on column 80 (with \), and
223 # we should not choose a depcomp mode which is confused by this.
224 #
225 # We need to recreate these files for each test, as the compiler may
226 # overwrite some of them when testing with obscure command lines.
227 # This happens at least with the AIX C compiler.
228 : > sub/conftest.c
229 for i in 1 2 3 4 5 6; do
230 echo '#include "conftst'$i'.h"' >> sub/conftest.c
231 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
232 # Solaris 8's {/usr,}/bin/sh.
233 touch sub/conftst$i.h
234 done
235 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
236
237 # We check with `-c' and `-o' for the sake of the "dashmstdout"
238 # mode. It turns out that the SunPro C++ compiler does not properly
239 # handle `-M -o', and we need to detect this. Also, some Intel
240 # versions had trouble with output in subdirs
241 am__obj=sub/conftest.${OBJEXT-o}
242 am__minus_obj="-o $am__obj"
243 case $depmode in
244 gcc)
245 # This depmode causes a compiler race in universal mode.
246 test "$am__universal" = false || continue
247 ;;
248 nosideeffect)
249 # after this tag, mechanisms are not by side-effect, so they'll
250 # only be used when explicitly requested
251 if test "x$enable_dependency_tracking" = xyes; then
252 continue
253 else
254 break
255 fi
256 ;;
257 msvisualcpp | msvcmsys)
258 # This compiler won't grok `-c -o', but also, the minuso test has
259 # not run yet. These depmodes are late enough in the game, and
260 # so weak that their functioning should not be impacted.
261 am__obj=conftest.${OBJEXT-o}
262 am__minus_obj=
263 ;;
264 none) break ;;
265 esac
266 if depmode=$depmode \
267 source=sub/conftest.c object=$am__obj \
268 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
269 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
270 >/dev/null 2>conftest.err &&
271 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
272 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
273 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
274 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
275 # icc doesn't choke on unknown options, it will just issue warnings
276 # or remarks (even with -Werror). So we grep stderr for any message
277 # that says an option was ignored or not supported.
278 # When given -MP, icc 7.0 and 7.1 complain thusly:
279 # icc: Command line warning: ignoring option '-M'; no argument required
280 # The diagnosis changed in icc 8.0:
281 # icc: Command line remark: option '-MP' not supported
282 if (grep 'ignoring option' conftest.err ||
283 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
284 am_cv_$1_dependencies_compiler_type=$depmode
285 break
286 fi
287 fi
288 done
289
290 cd ..
291 rm -rf conftest.dir
292 else
293 am_cv_$1_dependencies_compiler_type=none
294 fi
295 ])
296 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
297 AM_CONDITIONAL([am__fastdep$1], [
298 test "x$enable_dependency_tracking" != xno \
299 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
300 ])
301
302
303 # AM_SET_DEPDIR
304 # -------------
305 # Choose a directory name for dependency files.
306 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
307 AC_DEFUN([AM_SET_DEPDIR],
308 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
309 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
310 ])
311
312
313 # AM_DEP_TRACK
314 # ------------
315 AC_DEFUN([AM_DEP_TRACK],
316 [AC_ARG_ENABLE(dependency-tracking,
317 [ --disable-dependency-tracking speeds up one-time build
318 --enable-dependency-tracking do not reject slow dependency extractors])
319 if test "x$enable_dependency_tracking" != xno; then
320 am_depcomp="$ac_aux_dir/depcomp"
321 AMDEPBACKSLASH='\'
322 fi
323 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
324 AC_SUBST([AMDEPBACKSLASH])dnl
325 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
326 ])
327
328 # Generate code to set up dependency tracking. -*- Autoconf -*-
329
330 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
331 # Free Software Foundation, Inc.
332 #
333 # This file is free software; the Free Software Foundation
334 # gives unlimited permission to copy and/or distribute it,
335 # with or without modifications, as long as this notice is preserved.
336
337 #serial 5
338
339 # _AM_OUTPUT_DEPENDENCY_COMMANDS
340 # ------------------------------
341 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
342 [{
343 # Autoconf 2.62 quotes --file arguments for eval, but not when files
344 # are listed without --file. Let's play safe and only enable the eval
345 # if we detect the quoting.
346 case $CONFIG_FILES in
347 *\'*) eval set x "$CONFIG_FILES" ;;
348 *) set x $CONFIG_FILES ;;
349 esac
350 shift
351 for mf
352 do
353 # Strip MF so we end up with the name of the file.
354 mf=`echo "$mf" | sed -e 's/:.*$//'`
355 # Check whether this is an Automake generated Makefile or not.
356 # We used to match only the files named `Makefile.in', but
357 # some people rename them; so instead we look at the file content.
358 # Grep'ing the first line is not enough: some people post-process
359 # each Makefile.in and add a new line on top of each file to say so.
360 # Grep'ing the whole file is not good either: AIX grep has a line
361 # limit of 2048, but all sed's we know have understand at least 4000.
362 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
363 dirpart=`AS_DIRNAME("$mf")`
364 else
365 continue
366 fi
367 # Extract the definition of DEPDIR, am__include, and am__quote
368 # from the Makefile without running `make'.
369 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
370 test -z "$DEPDIR" && continue
371 am__include=`sed -n 's/^am__include = //p' < "$mf"`
372 test -z "am__include" && continue
373 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
374 # When using ansi2knr, U may be empty or an underscore; expand it
375 U=`sed -n 's/^U = //p' < "$mf"`
376 # Find all dependency output files, they are included files with
377 # $(DEPDIR) in their names. We invoke sed twice because it is the
378 # simplest approach to changing $(DEPDIR) to its actual value in the
379 # expansion.
380 for file in `sed -n "
381 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
382 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
383 # Make sure the directory exists.
384 test -f "$dirpart/$file" && continue
385 fdir=`AS_DIRNAME(["$file"])`
386 AS_MKDIR_P([$dirpart/$fdir])
387 # echo "creating $dirpart/$file"
388 echo '# dummy' > "$dirpart/$file"
389 done
390 done
391 }
392 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
393
394
395 # AM_OUTPUT_DEPENDENCY_COMMANDS
396 # -----------------------------
397 # This macro should only be invoked once -- use via AC_REQUIRE.
398 #
399 # This code is only required when automatic dependency tracking
400 # is enabled. FIXME. This creates each `.P' file that we will
401 # need in order to bootstrap the dependency handling code.
402 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
403 [AC_CONFIG_COMMANDS([depfiles],
404 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
405 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
406 ])
407
408 # Do all the work for Automake. -*- Autoconf -*-
409
410 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
411 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
412 #
413 # This file is free software; the Free Software Foundation
414 # gives unlimited permission to copy and/or distribute it,
415 # with or without modifications, as long as this notice is preserved.
416
417 # serial 16
418
419 # This macro actually does too much. Some checks are only needed if
420 # your package does certain things. But this isn't really a big deal.
421
422 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
423 # AM_INIT_AUTOMAKE([OPTIONS])
424 # -----------------------------------------------
425 # The call with PACKAGE and VERSION arguments is the old style
426 # call (pre autoconf-2.50), which is being phased out. PACKAGE
427 # and VERSION should now be passed to AC_INIT and removed from
428 # the call to AM_INIT_AUTOMAKE.
429 # We support both call styles for the transition. After
430 # the next Automake release, Autoconf can make the AC_INIT
431 # arguments mandatory, and then we can depend on a new Autoconf
432 # release and drop the old call support.
433 AC_DEFUN([AM_INIT_AUTOMAKE],
434 [AC_PREREQ([2.62])dnl
435 dnl Autoconf wants to disallow AM_ names. We explicitly allow
436 dnl the ones we care about.
437 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
438 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
439 AC_REQUIRE([AC_PROG_INSTALL])dnl
440 if test "`cd $srcdir && pwd`" != "`pwd`"; then
441 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
442 # is not polluted with repeated "-I."
443 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
444 # test to see if srcdir already configured
445 if test -f $srcdir/config.status; then
446 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
447 fi
448 fi
449
450 # test whether we have cygpath
451 if test -z "$CYGPATH_W"; then
452 if (cygpath --version) >/dev/null 2>/dev/null; then
453 CYGPATH_W='cygpath -w'
454 else
455 CYGPATH_W=echo
456 fi
457 fi
458 AC_SUBST([CYGPATH_W])
459
460 # Define the identity of the package.
461 dnl Distinguish between old-style and new-style calls.
462 m4_ifval([$2],
463 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
464 AC_SUBST([PACKAGE], [$1])dnl
465 AC_SUBST([VERSION], [$2])],
466 [_AM_SET_OPTIONS([$1])dnl
467 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
468 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
469 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
470 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
471 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
472
473 _AM_IF_OPTION([no-define],,
474 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
475 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
476
477 # Some tools Automake needs.
478 AC_REQUIRE([AM_SANITY_CHECK])dnl
479 AC_REQUIRE([AC_ARG_PROGRAM])dnl
480 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
481 AM_MISSING_PROG(AUTOCONF, autoconf)
482 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
483 AM_MISSING_PROG(AUTOHEADER, autoheader)
484 AM_MISSING_PROG(MAKEINFO, makeinfo)
485 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
486 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
487 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
488 # We need awk for the "check" target. The system "awk" is bad on
489 # some platforms.
490 AC_REQUIRE([AC_PROG_AWK])dnl
491 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
492 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
493 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
494 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
495 [_AM_PROG_TAR([v7])])])
496 _AM_IF_OPTION([no-dependencies],,
497 [AC_PROVIDE_IFELSE([AC_PROG_CC],
498 [_AM_DEPENDENCIES(CC)],
499 [define([AC_PROG_CC],
500 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
501 AC_PROVIDE_IFELSE([AC_PROG_CXX],
502 [_AM_DEPENDENCIES(CXX)],
503 [define([AC_PROG_CXX],
504 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
505 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
506 [_AM_DEPENDENCIES(OBJC)],
507 [define([AC_PROG_OBJC],
508 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
509 ])
510 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
511 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
512 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
513 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
514 AC_CONFIG_COMMANDS_PRE(dnl
515 [m4_provide_if([_AM_COMPILER_EXEEXT],
516 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
517 ])
518
519 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
520 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
521 dnl mangled by Autoconf and run in a shell conditional statement.
522 m4_define([_AC_COMPILER_EXEEXT],
523 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
524
525
526 # When config.status generates a header, we must update the stamp-h file.
527 # This file resides in the same directory as the config header
528 # that is generated. The stamp files are numbered to have different names.
529
530 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
531 # loop where config.status creates the headers, so we can generate
532 # our stamp files there.
533 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
534 [# Compute $1's index in $config_headers.
535 _am_arg=$1
536 _am_stamp_count=1
537 for _am_header in $config_headers :; do
538 case $_am_header in
539 $_am_arg | $_am_arg:* )
540 break ;;
541 * )
542 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
543 esac
544 done
545 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
546
547 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
548 #
549 # This file is free software; the Free Software Foundation
550 # gives unlimited permission to copy and/or distribute it,
551 # with or without modifications, as long as this notice is preserved.
552
553 # AM_PROG_INSTALL_SH
554 # ------------------
555 # Define $install_sh.
556 AC_DEFUN([AM_PROG_INSTALL_SH],
557 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
558 if test x"${install_sh}" != xset; then
559 case $am_aux_dir in
560 *\ * | *\ *)
561 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
562 *)
563 install_sh="\${SHELL} $am_aux_dir/install-sh"
564 esac
565 fi
566 AC_SUBST(install_sh)])
567
568 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
569 #
570 # This file is free software; the Free Software Foundation
571 # gives unlimited permission to copy and/or distribute it,
572 # with or without modifications, as long as this notice is preserved.
573
574 # serial 2
575
576 # Check whether the underlying file-system supports filenames
577 # with a leading dot. For instance MS-DOS doesn't.
578 AC_DEFUN([AM_SET_LEADING_DOT],
579 [rm -rf .tst 2>/dev/null
580 mkdir .tst 2>/dev/null
581 if test -d .tst; then
582 am__leading_dot=.
583 else
584 am__leading_dot=_
585 fi
586 rmdir .tst 2>/dev/null
587 AC_SUBST([am__leading_dot])])
588
589 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
590 # From Jim Meyering
591
592 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
593 # Free Software Foundation, Inc.
594 #
595 # This file is free software; the Free Software Foundation
596 # gives unlimited permission to copy and/or distribute it,
597 # with or without modifications, as long as this notice is preserved.
598
599 # serial 5
600
601 # AM_MAINTAINER_MODE([DEFAULT-MODE])
602 # ----------------------------------
603 # Control maintainer-specific portions of Makefiles.
604 # Default is to disable them, unless `enable' is passed literally.
605 # For symmetry, `disable' may be passed as well. Anyway, the user
606 # can override the default with the --enable/--disable switch.
607 AC_DEFUN([AM_MAINTAINER_MODE],
608 [m4_case(m4_default([$1], [disable]),
609 [enable], [m4_define([am_maintainer_other], [disable])],
610 [disable], [m4_define([am_maintainer_other], [enable])],
611 [m4_define([am_maintainer_other], [enable])
612 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
613 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
614 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
615 AC_ARG_ENABLE([maintainer-mode],
616 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
617 (and sometimes confusing) to the casual installer],
618 [USE_MAINTAINER_MODE=$enableval],
619 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
620 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
621 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
622 MAINT=$MAINTAINER_MODE_TRUE
623 AC_SUBST([MAINT])dnl
624 ]
625 )
626
627 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
628
629 # Check to see how 'make' treats includes. -*- Autoconf -*-
630
631 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
632 #
633 # This file is free software; the Free Software Foundation
634 # gives unlimited permission to copy and/or distribute it,
635 # with or without modifications, as long as this notice is preserved.
636
637 # serial 4
638
639 # AM_MAKE_INCLUDE()
640 # -----------------
641 # Check to see how make treats includes.
642 AC_DEFUN([AM_MAKE_INCLUDE],
643 [am_make=${MAKE-make}
644 cat > confinc << 'END'
645 am__doit:
646 @echo this is the am__doit target
647 .PHONY: am__doit
648 END
649 # If we don't find an include directive, just comment out the code.
650 AC_MSG_CHECKING([for style of include used by $am_make])
651 am__include="#"
652 am__quote=
653 _am_result=none
654 # First try GNU make style include.
655 echo "include confinc" > confmf
656 # Ignore all kinds of additional output from `make'.
657 case `$am_make -s -f confmf 2> /dev/null` in #(
658 *the\ am__doit\ target*)
659 am__include=include
660 am__quote=
661 _am_result=GNU
662 ;;
663 esac
664 # Now try BSD make style include.
665 if test "$am__include" = "#"; then
666 echo '.include "confinc"' > confmf
667 case `$am_make -s -f confmf 2> /dev/null` in #(
668 *the\ am__doit\ target*)
669 am__include=.include
670 am__quote="\""
671 _am_result=BSD
672 ;;
673 esac
674 fi
675 AC_SUBST([am__include])
676 AC_SUBST([am__quote])
677 AC_MSG_RESULT([$_am_result])
678 rm -f confinc confmf
679 ])
680
681 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
682
683 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
684 # Free Software Foundation, Inc.
685 #
686 # This file is free software; the Free Software Foundation
687 # gives unlimited permission to copy and/or distribute it,
688 # with or without modifications, as long as this notice is preserved.
689
690 # serial 6
691
692 # AM_MISSING_PROG(NAME, PROGRAM)
693 # ------------------------------
694 AC_DEFUN([AM_MISSING_PROG],
695 [AC_REQUIRE([AM_MISSING_HAS_RUN])
696 $1=${$1-"${am_missing_run}$2"}
697 AC_SUBST($1)])
698
699
700 # AM_MISSING_HAS_RUN
701 # ------------------
702 # Define MISSING if not defined so far and test if it supports --run.
703 # If it does, set am_missing_run to use it, otherwise, to nothing.
704 AC_DEFUN([AM_MISSING_HAS_RUN],
705 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
706 AC_REQUIRE_AUX_FILE([missing])dnl
707 if test x"${MISSING+set}" != xset; then
708 case $am_aux_dir in
709 *\ * | *\ *)
710 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
711 *)
712 MISSING="\${SHELL} $am_aux_dir/missing" ;;
713 esac
714 fi
715 # Use eval to expand $SHELL
716 if eval "$MISSING --run true"; then
717 am_missing_run="$MISSING --run "
718 else
719 am_missing_run=
720 AC_MSG_WARN([`missing' script is too old or missing])
721 fi
722 ])
723
724 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
725 #
726 # This file is free software; the Free Software Foundation
727 # gives unlimited permission to copy and/or distribute it,
728 # with or without modifications, as long as this notice is preserved.
729
730 # AM_PROG_MKDIR_P
731 # ---------------
732 # Check for `mkdir -p'.
733 AC_DEFUN([AM_PROG_MKDIR_P],
734 [AC_PREREQ([2.60])dnl
735 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
736 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
737 dnl while keeping a definition of mkdir_p for backward compatibility.
738 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
739 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
740 dnl Makefile.ins that do not define MKDIR_P, so we do our own
741 dnl adjustment using top_builddir (which is defined more often than
742 dnl MKDIR_P).
743 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
744 case $mkdir_p in
745 [[\\/$]]* | ?:[[\\/]]*) ;;
746 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
747 esac
748 ])
749
750 # Helper functions for option handling. -*- Autoconf -*-
751
752 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
753 #
754 # This file is free software; the Free Software Foundation
755 # gives unlimited permission to copy and/or distribute it,
756 # with or without modifications, as long as this notice is preserved.
757
758 # serial 4
759
760 # _AM_MANGLE_OPTION(NAME)
761 # -----------------------
762 AC_DEFUN([_AM_MANGLE_OPTION],
763 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
764
765 # _AM_SET_OPTION(NAME)
766 # ------------------------------
767 # Set option NAME. Presently that only means defining a flag for this option.
768 AC_DEFUN([_AM_SET_OPTION],
769 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
770
771 # _AM_SET_OPTIONS(OPTIONS)
772 # ----------------------------------
773 # OPTIONS is a space-separated list of Automake options.
774 AC_DEFUN([_AM_SET_OPTIONS],
775 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
776
777 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
778 # -------------------------------------------
779 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
780 AC_DEFUN([_AM_IF_OPTION],
781 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
782
783 # Check to make sure that the build environment is sane. -*- Autoconf -*-
784
785 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
786 # Free Software Foundation, Inc.
787 #
788 # This file is free software; the Free Software Foundation
789 # gives unlimited permission to copy and/or distribute it,
790 # with or without modifications, as long as this notice is preserved.
791
792 # serial 5
793
794 # AM_SANITY_CHECK
795 # ---------------
796 AC_DEFUN([AM_SANITY_CHECK],
797 [AC_MSG_CHECKING([whether build environment is sane])
798 # Just in case
799 sleep 1
800 echo timestamp > conftest.file
801 # Reject unsafe characters in $srcdir or the absolute working directory
802 # name. Accept space and tab only in the latter.
803 am_lf='
804 '
805 case `pwd` in
806 *[[\\\"\#\$\&\'\`$am_lf]]*)
807 AC_MSG_ERROR([unsafe absolute working directory name]);;
808 esac
809 case $srcdir in
810 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
811 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
812 esac
813
814 # Do `set' in a subshell so we don't clobber the current shell's
815 # arguments. Must try -L first in case configure is actually a
816 # symlink; some systems play weird games with the mod time of symlinks
817 # (eg FreeBSD returns the mod time of the symlink's containing
818 # directory).
819 if (
820 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
821 if test "$[*]" = "X"; then
822 # -L didn't work.
823 set X `ls -t "$srcdir/configure" conftest.file`
824 fi
825 rm -f conftest.file
826 if test "$[*]" != "X $srcdir/configure conftest.file" \
827 && test "$[*]" != "X conftest.file $srcdir/configure"; then
828
829 # If neither matched, then we have a broken ls. This can happen
830 # if, for instance, CONFIG_SHELL is bash and it inherits a
831 # broken ls alias from the environment. This has actually
832 # happened. Such a system could not be considered "sane".
833 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
834 alias in your environment])
835 fi
836
837 test "$[2]" = conftest.file
838 )
839 then
840 # Ok.
841 :
842 else
843 AC_MSG_ERROR([newly created file is older than distributed files!
844 Check your system clock])
845 fi
846 AC_MSG_RESULT(yes)])
847
848 # Copyright (C) 2009 Free Software Foundation, Inc.
849 #
850 # This file is free software; the Free Software Foundation
851 # gives unlimited permission to copy and/or distribute it,
852 # with or without modifications, as long as this notice is preserved.
853
854 # serial 1
855
856 # AM_SILENT_RULES([DEFAULT])
857 # --------------------------
858 # Enable less verbose build rules; with the default set to DEFAULT
859 # (`yes' being less verbose, `no' or empty being verbose).
860 AC_DEFUN([AM_SILENT_RULES],
861 [AC_ARG_ENABLE([silent-rules],
862 [ --enable-silent-rules less verbose build output (undo: `make V=1')
863 --disable-silent-rules verbose build output (undo: `make V=0')])
864 case $enable_silent_rules in
865 yes) AM_DEFAULT_VERBOSITY=0;;
866 no) AM_DEFAULT_VERBOSITY=1;;
867 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
868 esac
869 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
870 AM_BACKSLASH='\'
871 AC_SUBST([AM_BACKSLASH])dnl
872 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
873 ])
874
875 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
876 #
877 # This file is free software; the Free Software Foundation
878 # gives unlimited permission to copy and/or distribute it,
879 # with or without modifications, as long as this notice is preserved.
880
881 # AM_PROG_INSTALL_STRIP
882 # ---------------------
883 # One issue with vendor `install' (even GNU) is that you can't
884 # specify the program used to strip binaries. This is especially
885 # annoying in cross-compiling environments, where the build's strip
886 # is unlikely to handle the host's binaries.
887 # Fortunately install-sh will honor a STRIPPROG variable, so we
888 # always use install-sh in `make install-strip', and initialize
889 # STRIPPROG with the value of the STRIP variable (set by the user).
890 AC_DEFUN([AM_PROG_INSTALL_STRIP],
891 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
892 # Installed binaries are usually stripped using `strip' when the user
893 # run `make install-strip'. However `strip' might not be the right
894 # tool to use in cross-compilation environments, therefore Automake
895 # will honor the `STRIP' environment variable to overrule this program.
896 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
897 if test "$cross_compiling" != no; then
898 AC_CHECK_TOOL([STRIP], [strip], :)
899 fi
900 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
901 AC_SUBST([INSTALL_STRIP_PROGRAM])])
902
903 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
904 #
905 # This file is free software; the Free Software Foundation
906 # gives unlimited permission to copy and/or distribute it,
907 # with or without modifications, as long as this notice is preserved.
908
909 # serial 2
910
911 # _AM_SUBST_NOTMAKE(VARIABLE)
912 # ---------------------------
913 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
914 # This macro is traced by Automake.
915 AC_DEFUN([_AM_SUBST_NOTMAKE])
916
917 # AM_SUBST_NOTMAKE(VARIABLE)
918 # ---------------------------
919 # Public sister of _AM_SUBST_NOTMAKE.
920 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
921
922 # Check how to create a tarball. -*- Autoconf -*-
923
924 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
925 #
926 # This file is free software; the Free Software Foundation
927 # gives unlimited permission to copy and/or distribute it,
928 # with or without modifications, as long as this notice is preserved.
929
930 # serial 2
931
932 # _AM_PROG_TAR(FORMAT)
933 # --------------------
934 # Check how to create a tarball in format FORMAT.
935 # FORMAT should be one of `v7', `ustar', or `pax'.
936 #
937 # Substitute a variable $(am__tar) that is a command
938 # writing to stdout a FORMAT-tarball containing the directory
939 # $tardir.
940 # tardir=directory && $(am__tar) > result.tar
941 #
942 # Substitute a variable $(am__untar) that extract such
943 # a tarball read from stdin.
944 # $(am__untar) < result.tar
945 AC_DEFUN([_AM_PROG_TAR],
946 [# Always define AMTAR for backward compatibility.
947 AM_MISSING_PROG([AMTAR], [tar])
948 m4_if([$1], [v7],
949 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
950 [m4_case([$1], [ustar],, [pax],,
951 [m4_fatal([Unknown tar format])])
952 AC_MSG_CHECKING([how to create a $1 tar archive])
953 # Loop over all known methods to create a tar archive until one works.
954 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
955 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
956 # Do not fold the above two line into one, because Tru64 sh and
957 # Solaris sh will not grok spaces in the rhs of `-'.
958 for _am_tool in $_am_tools
959 do
960 case $_am_tool in
961 gnutar)
962 for _am_tar in tar gnutar gtar;
963 do
964 AM_RUN_LOG([$_am_tar --version]) && break
965 done
966 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
967 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
968 am__untar="$_am_tar -xf -"
969 ;;
970 plaintar)
971 # Must skip GNU tar: if it does not support --format= it doesn't create
972 # ustar tarball either.
973 (tar --version) >/dev/null 2>&1 && continue
974 am__tar='tar chf - "$$tardir"'
975 am__tar_='tar chf - "$tardir"'
976 am__untar='tar xf -'
977 ;;
978 pax)
979 am__tar='pax -L -x $1 -w "$$tardir"'
980 am__tar_='pax -L -x $1 -w "$tardir"'
981 am__untar='pax -r'
982 ;;
983 cpio)
984 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
985 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
986 am__untar='cpio -i -H $1 -d'
987 ;;
988 none)
989 am__tar=false
990 am__tar_=false
991 am__untar=false
992 ;;
993 esac
994
995 # If the value was cached, stop now. We just wanted to have am__tar
996 # and am__untar set.
997 test -n "${am_cv_prog_tar_$1}" && break
998
999 # tar/untar a dummy directory, and stop if the command works
1000 rm -rf conftest.dir
1001 mkdir conftest.dir
1002 echo GrepMe > conftest.dir/file
1003 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1004 rm -rf conftest.dir
1005 if test -s conftest.tar; then
1006 AM_RUN_LOG([$am__untar <conftest.tar])
1007 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1008 fi
1009 done
1010 rm -rf conftest.dir
1011
1012 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1013 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1014 AC_SUBST([am__tar])
1015 AC_SUBST([am__untar])
1016 ]) # _AM_PROG_TAR
1017
1018 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1019 #
1020 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1021 #
1022 # This program is free software; you can redistribute it and/or modify
1023 # it under the terms of the GNU General Public License as published by
1024 # the Free Software Foundation; either version 2 of the License, or
1025 # (at your option) any later version.
1026 #
1027 # This program is distributed in the hope that it will be useful, but
1028 # WITHOUT ANY WARRANTY; without even the implied warranty of
1029 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1030 # General Public License for more details.
1031 #
1032 # You should have received a copy of the GNU General Public License
1033 # along with this program; if not, write to the Free Software
1034 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1035 #
1036 # As a special exception to the GNU General Public License, if you
1037 # distribute this file as part of a program that contains a
1038 # configuration script generated by Autoconf, you may include it under
1039 # the same distribution terms that you use for the rest of that program.
1040
1041 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
1042 # ----------------------------------
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22 dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23 dnl serial 11 (pkg-config-0.29)
24 dnl
25 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
26 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
27 dnl
28 dnl This program is free software; you can redistribute it and/or modify
29 dnl it under the terms of the GNU General Public License as published by
30 dnl the Free Software Foundation; either version 2 of the License, or
31 dnl (at your option) any later version.
32 dnl
33 dnl This program is distributed in the hope that it will be useful, but
34 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
35 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
36 dnl General Public License for more details.
37 dnl
38 dnl You should have received a copy of the GNU General Public License
39 dnl along with this program; if not, write to the Free Software
40 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
41 dnl 02111-1307, USA.
42 dnl
43 dnl As a special exception to the GNU General Public License, if you
44 dnl distribute this file as part of a program that contains a
45 dnl configuration script generated by Autoconf, you may include it under
46 dnl the same distribution terms that you use for the rest of that
47 dnl program.
48
49 dnl PKG_PREREQ(MIN-VERSION)
50 dnl -----------------------
51 dnl Since: 0.29
52 dnl
53 dnl Verify that the version of the pkg-config macros are at least
54 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
55 dnl installed version of pkg-config, this checks the developer's version
56 dnl of pkg.m4 when generating configure.
57 dnl
58 dnl To ensure that this macro is defined, also add:
59 dnl m4_ifndef([PKG_PREREQ],
60 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
61 dnl
62 dnl See the "Since" comment for each macro you use to see what version
63 dnl of the macros you require.
64 m4_defun([PKG_PREREQ],
65 [m4_define([PKG_MACROS_VERSION], [0.29])
66 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
67 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
68 ])dnl PKG_PREREQ
69
70 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
71 dnl ----------------------------------
72 dnl Since: 0.16
73 dnl
74 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
75 dnl first found in the path. Checks that the version of pkg-config found
76 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
77 dnl used since that's the first version where most current features of
78 dnl pkg-config existed.
104379 AC_DEFUN([PKG_PROG_PKG_CONFIG],
104480 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1045 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
1046 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
81 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
82 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
83 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
84 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
85 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
86
104787 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
104888 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
104989 fi
105696 AC_MSG_RESULT([no])
105797 PKG_CONFIG=""
105898 fi
1059
106099 fi[]dnl
1061 ])# PKG_PROG_PKG_CONFIG
1062
1063 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1064 #
1065 # Check to see whether a particular set of modules exists. Similar
1066 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
1067 #
1068 #
1069 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
1070 # this or PKG_CHECK_MODULES is called, or make sure to call
1071 # PKG_CHECK_EXISTS manually
1072 # --------------------------------------------------------------
100 ])dnl PKG_PROG_PKG_CONFIG
101
102 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
103 dnl -------------------------------------------------------------------
104 dnl Since: 0.18
105 dnl
106 dnl Check to see whether a particular set of modules exists. Similar to
107 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
108 dnl
109 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
110 dnl only at the first occurence in configure.ac, so if the first place
111 dnl it's called might be skipped (such as if it is within an "if", you
112 dnl have to call PKG_CHECK_EXISTS manually
1073113 AC_DEFUN([PKG_CHECK_EXISTS],
1074114 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1075115 if test -n "$PKG_CONFIG" && \
1076116 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1077 m4_ifval([$2], [$2], [:])
117 m4_default([$2], [:])
1078118 m4_ifvaln([$3], [else
1079119 $3])dnl
1080120 fi])
1081121
1082
1083 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1084 # ---------------------------------------------
122 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
123 dnl ---------------------------------------------
124 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
125 dnl pkg_failed based on the result.
1085126 m4_define([_PKG_CONFIG],
1086127 [if test -n "$$1"; then
1087128 pkg_cv_[]$1="$$1"
1088129 elif test -n "$PKG_CONFIG"; then
1089130 PKG_CHECK_EXISTS([$3],
1090 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
131 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
132 test "x$?" != "x0" && pkg_failed=yes ],
1091133 [pkg_failed=yes])
1092134 else
1093135 pkg_failed=untried
1094136 fi[]dnl
1095 ])# _PKG_CONFIG
1096
1097 # _PKG_SHORT_ERRORS_SUPPORTED
1098 # -----------------------------
137 ])dnl _PKG_CONFIG
138
139 dnl _PKG_SHORT_ERRORS_SUPPORTED
140 dnl ---------------------------
141 dnl Internal check to see if pkg-config supports short errors.
1099142 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1100143 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1101144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1103146 else
1104147 _pkg_short_errors_supported=no
1105148 fi[]dnl
1106 ])# _PKG_SHORT_ERRORS_SUPPORTED
1107
1108
1109 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1110 # [ACTION-IF-NOT-FOUND])
1111 #
1112 #
1113 # Note that if there is a possibility the first call to
1114 # PKG_CHECK_MODULES might not happen, you should be sure to include an
1115 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1116 #
1117 #
1118 # --------------------------------------------------------------
149 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
150
151
152 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
153 dnl [ACTION-IF-NOT-FOUND])
154 dnl --------------------------------------------------------------
155 dnl Since: 0.4.0
156 dnl
157 dnl Note that if there is a possibility the first call to
158 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
159 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1119160 AC_DEFUN([PKG_CHECK_MODULES],
1120161 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1121162 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1132173 See the pkg-config man page for more details.])
1133174
1134175 if test $pkg_failed = yes; then
176 AC_MSG_RESULT([no])
1135177 _PKG_SHORT_ERRORS_SUPPORTED
1136178 if test $_pkg_short_errors_supported = yes; then
1137 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
179 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
1138180 else
1139 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
181 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
1140182 fi
1141183 # Put the nasty error message in config.log where it belongs
1142184 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1143185
1144 ifelse([$4], , [AC_MSG_ERROR(dnl
186 m4_default([$4], [AC_MSG_ERROR(
1145187 [Package requirements ($2) were not met:
1146188
1147189 $$1_PKG_ERRORS
1149191 Consider adjusting the PKG_CONFIG_PATH environment variable if you
1150192 installed software in a non-standard prefix.
1151193
1152 _PKG_TEXT
1153 ])],
1154 [AC_MSG_RESULT([no])
1155 $4])
194 _PKG_TEXT])[]dnl
195 ])
1156196 elif test $pkg_failed = untried; then
1157 ifelse([$4], , [AC_MSG_FAILURE(dnl
197 AC_MSG_RESULT([no])
198 m4_default([$4], [AC_MSG_FAILURE(
1158199 [The pkg-config script could not be found or is too old. Make sure it
1159200 is in your PATH or set the PKG_CONFIG environment variable to the full
1160201 path to pkg-config.
1161202
1162203 _PKG_TEXT
1163204
1164 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
1165 [$4])
205 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
206 ])
1166207 else
1167208 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1168209 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1169210 AC_MSG_RESULT([yes])
1170 ifelse([$3], , :, [$3])
211 $3
1171212 fi[]dnl
1172 ])# PKG_CHECK_MODULES
213 ])dnl PKG_CHECK_MODULES
214
215
216 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
217 dnl [ACTION-IF-NOT-FOUND])
218 dnl ---------------------------------------------------------------------
219 dnl Since: 0.29
220 dnl
221 dnl Checks for existence of MODULES and gathers its build flags with
222 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
223 dnl and VARIABLE-PREFIX_LIBS from --libs.
224 dnl
225 dnl Note that if there is a possibility the first call to
226 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
227 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
228 dnl configure.ac.
229 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
230 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
231 _save_PKG_CONFIG=$PKG_CONFIG
232 PKG_CONFIG="$PKG_CONFIG --static"
233 PKG_CHECK_MODULES($@)
234 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
235 ])dnl PKG_CHECK_MODULES_STATIC
236
237
238 dnl PKG_INSTALLDIR([DIRECTORY])
239 dnl -------------------------
240 dnl Since: 0.27
241 dnl
242 dnl Substitutes the variable pkgconfigdir as the location where a module
243 dnl should install pkg-config .pc files. By default the directory is
244 dnl $libdir/pkgconfig, but the default can be changed by passing
245 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
246 dnl parameter.
247 AC_DEFUN([PKG_INSTALLDIR],
248 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
249 m4_pushdef([pkg_description],
250 [pkg-config installation directory @<:@]pkg_default[@:>@])
251 AC_ARG_WITH([pkgconfigdir],
252 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
253 [with_pkgconfigdir=]pkg_default)
254 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
255 m4_popdef([pkg_default])
256 m4_popdef([pkg_description])
257 ])dnl PKG_INSTALLDIR
258
259
260 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
261 dnl --------------------------------
262 dnl Since: 0.27
263 dnl
264 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
265 dnl module should install arch-independent pkg-config .pc files. By
266 dnl default the directory is $datadir/pkgconfig, but the default can be
267 dnl changed by passing DIRECTORY. The user can override through the
268 dnl --with-noarch-pkgconfigdir parameter.
269 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
270 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
271 m4_pushdef([pkg_description],
272 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
273 AC_ARG_WITH([noarch-pkgconfigdir],
274 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
275 [with_noarch_pkgconfigdir=]pkg_default)
276 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
277 m4_popdef([pkg_default])
278 m4_popdef([pkg_description])
279 ])dnl PKG_NOARCH_INSTALLDIR
280
281
282 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
283 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
284 dnl -------------------------------------------
285 dnl Since: 0.28
286 dnl
287 dnl Retrieves the value of the pkg-config variable for the given module.
288 AC_DEFUN([PKG_CHECK_VAR],
289 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
290 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
291
292 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
293 AS_VAR_COPY([$1], [pkg_cv_][$1])
294
295 AS_VAR_IF([$1], [""], [$5], [$4])dnl
296 ])dnl PKG_CHECK_VAR
1173297
1174298 dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
1175299 dnl
1176 dnl Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
1177 dnl
300 dnl Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
301 dnl
1178302 dnl Permission is hereby granted, free of charge, to any person obtaining a
1179303 dnl copy of this software and associated documentation files (the "Software"),
1180304 dnl to deal in the Software without restriction, including without limitation
1207331 # [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])])
1208332 #
1209333 #
1210 # See the "minimum version" comment for each macro you use to see what
334 # See the "minimum version" comment for each macro you use to see what
1211335 # version you require.
1212336 m4_defun([XORG_MACROS_VERSION],[
1213 m4_define([vers_have], [1.17])
337 m4_define([vers_have], [1.19.0])
1214338 m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
1215339 m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
1216340 m4_if(m4_cmp(maj_have, maj_needed), 0,,
1230354 # such as man pages and config files
1231355 AC_DEFUN([XORG_PROG_RAWCPP],[
1232356 AC_REQUIRE([AC_PROG_CPP])
1233 AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
357 AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
1234358 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
1235359
1236360 # Check for flag to avoid builtin definitions - assumes unix is predefined,
1260384 AC_MSG_RESULT([no])
1261385 else
1262386 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
387 TRADITIONALCPPFLAGS="-traditional"
1263388 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
1264389 AC_MSG_RESULT([yes])
1265390 else
1268393 fi
1269394 rm -f conftest.$ac_ext
1270395 AC_SUBST(RAWCPPFLAGS)
396 AC_SUBST(TRADITIONALCPPFLAGS)
1271397 ]) # XORG_PROG_RAWCPP
1272398
1273399 # XORG_MANPAGE_SECTIONS()
1301427
1302428 if test x$FILE_MAN_SUFFIX = x ; then
1303429 case $host_os in
1304 solaris*) FILE_MAN_SUFFIX=4 ;;
1305 *) FILE_MAN_SUFFIX=5 ;;
430 # Solaris 2.0 - 11 use SysV man page sections
431 solaris2.?|solaris2.1[[01]]) FILE_MAN_SUFFIX=4 ;;
432 *) FILE_MAN_SUFFIX=5 ;;
1306433 esac
1307434 fi
1308435 if test x$FILE_MAN_DIR = x ; then
1311438
1312439 if test x$MISC_MAN_SUFFIX = x ; then
1313440 case $host_os in
1314 solaris*) MISC_MAN_SUFFIX=5 ;;
1315 *) MISC_MAN_SUFFIX=7 ;;
441 # Solaris 2.0 - 11 use SysV man page sections
442 solaris2.?|solaris2.1[[01]]) MISC_MAN_SUFFIX=5 ;;
443 *) MISC_MAN_SUFFIX=7 ;;
1316444 esac
1317445 fi
1318446 if test x$MISC_MAN_DIR = x ; then
1321449
1322450 if test x$DRIVER_MAN_SUFFIX = x ; then
1323451 case $host_os in
1324 solaris*) DRIVER_MAN_SUFFIX=7 ;;
1325 *) DRIVER_MAN_SUFFIX=4 ;;
452 # Solaris 2.0 - 11 use SysV man page sections
453 solaris2.?|solaris2.1[[01]]) DRIVER_MAN_SUFFIX=7 ;;
454 *) DRIVER_MAN_SUFFIX=4 ;;
1326455 esac
1327456 fi
1328457 if test x$DRIVER_MAN_DIR = x ; then
1331460
1332461 if test x$ADMIN_MAN_SUFFIX = x ; then
1333462 case $host_os in
1334 solaris*) ADMIN_MAN_SUFFIX=1m ;;
1335 *) ADMIN_MAN_SUFFIX=8 ;;
463 # Solaris 2.0 - 11 use SysV man page sections
464 solaris2.?|solaris2.1[[01]]) ADMIN_MAN_SUFFIX=1m ;;
465 *) ADMIN_MAN_SUFFIX=8 ;;
1336466 esac
1337467 fi
1338468 if test x$ADMIN_MAN_DIR = x ; then
1593723 fi])
1594724
1595725 # Test for the ability of xmlto to generate a text target
726 #
727 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
728 # following test for empty XML docbook files.
729 # For compatibility reasons use the following empty XML docbook file and if
730 # it fails try it again with a non-empty XML file.
1596731 have_xmlto_text=no
1597732 cat > conftest.xml << "EOF"
1598733 EOF
1599734 AS_IF([test "$have_xmlto" = yes],
1600735 [AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1],
1601736 [have_xmlto_text=yes],
1602 [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])])
737 [# Try it again with a non-empty XML file.
738 cat > conftest.xml << "EOF"
739 <x></x>
740 EOF
741 AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1],
742 [have_xmlto_text=yes],
743 [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])])])
1603744 rm -f conftest.xml
1604745 AM_CONDITIONAL([HAVE_XMLTO_TEXT], [test $have_xmlto_text = yes])
1605746 AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes])
1792933 ]) # XORG_WITH_ASCIIDOC
1793934
1794935 # XORG_WITH_DOXYGEN([MIN-VERSION], [DEFAULT])
1795 # --------------------------------
936 # -------------------------------------------
1796937 # Minimum version: 1.5.0
1797938 # Minimum version for optional DEFAULT argument: 1.11.0
939 # Minimum version for optional DOT checking: 1.18.0
1798940 #
1799941 # Documentation tools are not always available on all platforms and sometimes
1800942 # not at the appropriate level. This macro enables a module to test for the
1814956 #
1815957 AC_DEFUN([XORG_WITH_DOXYGEN],[
1816958 AC_ARG_VAR([DOXYGEN], [Path to doxygen command])
959 AC_ARG_VAR([DOT], [Path to the dot graphics utility])
1817960 m4_define([_defopt], m4_default([$2], [auto]))
1818961 AC_ARG_WITH(doxygen,
1819962 AS_HELP_STRING([--with-doxygen],
18571000 AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed])
18581001 fi])
18591002 fi])
1003
1004 dnl Check for DOT if we have doxygen. The caller decides if it is mandatory
1005 dnl HAVE_DOT is a variable that can be used in your doxygen.in config file:
1006 dnl HAVE_DOT = @HAVE_DOT@
1007 HAVE_DOT=no
1008 if test "x$have_doxygen" = "xyes"; then
1009 AC_PATH_PROG([DOT], [dot])
1010 if test "x$DOT" != "x"; then
1011 HAVE_DOT=yes
1012 fi
1013 fi
1014
1015 AC_SUBST([HAVE_DOT])
1016 AM_CONDITIONAL([HAVE_DOT], [test "$HAVE_DOT" = "yes"])
18601017 AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes])
18611018 ]) # XORG_WITH_DOXYGEN
18621019
20381195 fi])
20391196 AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes])
20401197 ]) # XORG_WITH_FOP
1198
1199 # XORG_WITH_M4([MIN-VERSION])
1200 # ---------------------------
1201 # Minimum version: 1.19.0
1202 #
1203 # This macro attempts to locate an m4 macro processor which supports
1204 # -I option and is only useful for modules relying on M4 in order to
1205 # expand macros in source code files.
1206 #
1207 # Interface to module:
1208 # M4: returns the path of the m4 program found
1209 # returns the path set by the user in the environment
1210 #
1211 AC_DEFUN([XORG_WITH_M4], [
1212 AC_CACHE_CHECK([for m4 that supports -I option], [ac_cv_path_M4],
1213 [AC_PATH_PROGS_FEATURE_CHECK([M4], [m4 gm4],
1214 [[$ac_path_M4 -I. /dev/null > /dev/null 2>&1 && \
1215 ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:]],
1216 [AC_MSG_ERROR([could not find m4 that supports -I option])],
1217 [$PATH:/usr/gnu/bin])])
1218
1219 AC_SUBST([M4], [$ac_cv_path_M4])
1220 ]) # XORG_WITH_M4
20411221
20421222 # XORG_WITH_PS2PDF([DEFAULT])
20431223 # ----------------
24931673
24941674 AC_MSG_CHECKING([whether malloc(0) returns NULL])
24951675 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
2496 AC_RUN_IFELSE([AC_LANG_PROGRAM([
1676 AC_CACHE_VAL([xorg_cv_malloc0_returns_null],
1677 [AC_RUN_IFELSE([AC_LANG_PROGRAM([
24971678 #include <stdlib.h>
24981679 ],[
24991680 char *m0, *r0, *c0, *p;
25031684 c0 = calloc(0,10);
25041685 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
25051686 ])],
2506 [MALLOC_ZERO_RETURNS_NULL=yes],
2507 [MALLOC_ZERO_RETURNS_NULL=no],
2508 [MALLOC_ZERO_RETURNS_NULL=yes])
1687 [xorg_cv_malloc0_returns_null=yes],
1688 [xorg_cv_malloc0_returns_null=no])])
1689 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
25091690 fi
25101691 AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
25111692
27161897 found="no"
27171898 m4_foreach([flag], m4_cdr($@), [
27181899 if test $found = "no" ; then
2719 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
1900 if test "x$xorg_testset_]CACHE_PREFIX[_unknown_warning_option" = "xyes" ; then
27201901 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unknown-warning-option"
27211902 fi
27221903
2723 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
1904 if test "x$xorg_testset_]CACHE_PREFIX[_unused_command_line_argument" = "xyes" ; then
27241905 PREFIX[FLAGS]="$PREFIX[FLAGS] -Werror=unused-command-line-argument"
27251906 fi
27261907
27271908 PREFIX[FLAGS]="$PREFIX[FLAGS] ]flag["
27281909
27291910 dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname
2730 AC_MSG_CHECKING([if ]COMPILER[ supports]flag[])
1911 AC_MSG_CHECKING([if ]COMPILER[ supports ]flag[])
27311912 cacheid=AS_TR_SH([xorg_cv_]CACHE_PREFIX[_flag_]flag[])
27321913 AC_CACHE_VAL($cacheid,
27331914 [AC_LINK_IFELSE([AC_LANG_PROGRAM([int i;])],
27941975 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-prototypes])
27951976 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wnested-externs])
27961977 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wbad-function-cast])
2797 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wold-style-definition])
1978 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wold-style-definition], [-fd])
27981979 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wdeclaration-after-statement])
27991980 ]
28001981 )
28031984 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wunused])
28041985 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wuninitialized])
28051986 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wshadow])
2806 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
28071987 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-noreturn])
28081988 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wmissing-format-attribute])
28091989 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
1990 XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
28101991
28111992 # These are currently disabled because they are noisy. They will be enabled
28121993 # in the future once the codebase is sufficiently modernized to silence
28131994 # them. For now, I don't want them to drown out the other warnings.
2814 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
28151995 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
28161996 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
1997 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
28171998
28181999 # Turn some warnings into errors, so we don't accidently get successful builds
28192000 # when there are problems that should be fixed.
29872168 # XORG_RELEASE_VERSION
29882169 # --------------------
29892170 # Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
2990
2171
29912172 AC_DEFUN([XORG_RELEASE_VERSION],[
29922173 AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
29932174 [`echo $PACKAGE_VERSION | cut -d . -f 1`],
30242205 AC_SUBST([CHANGELOG_CMD])
30252206 ]) # XORG_CHANGELOG
30262207
2208 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
2209 #
2210 # This file is free software; the Free Software Foundation
2211 # gives unlimited permission to copy and/or distribute it,
2212 # with or without modifications, as long as this notice is preserved.
2213
2214 # AM_AUTOMAKE_VERSION(VERSION)
2215 # ----------------------------
2216 # Automake X.Y traces this macro to ensure aclocal.m4 has been
2217 # generated from the m4 files accompanying Automake X.Y.
2218 # (This private macro should not be called outside this file.)
2219 AC_DEFUN([AM_AUTOMAKE_VERSION],
2220 [am__api_version='1.15'
2221 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
2222 dnl require some minimum version. Point them to the right macro.
2223 m4_if([$1], [1.15], [],
2224 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
2225 ])
2226
2227 # _AM_AUTOCONF_VERSION(VERSION)
2228 # -----------------------------
2229 # aclocal traces this macro to find the Autoconf version.
2230 # This is a private macro too. Using m4_define simplifies
2231 # the logic in aclocal, which can simply ignore this definition.
2232 m4_define([_AM_AUTOCONF_VERSION], [])
2233
2234 # AM_SET_CURRENT_AUTOMAKE_VERSION
2235 # -------------------------------
2236 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
2237 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
2238 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
2239 [AM_AUTOMAKE_VERSION([1.15])dnl
2240 m4_ifndef([AC_AUTOCONF_VERSION],
2241 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
2242 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
2243
2244 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
2245
2246 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
2247 #
2248 # This file is free software; the Free Software Foundation
2249 # gives unlimited permission to copy and/or distribute it,
2250 # with or without modifications, as long as this notice is preserved.
2251
2252 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
2253 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
2254 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
2255 #
2256 # Of course, Automake must honor this variable whenever it calls a
2257 # tool from the auxiliary directory. The problem is that $srcdir (and
2258 # therefore $ac_aux_dir as well) can be either absolute or relative,
2259 # depending on how configure is run. This is pretty annoying, since
2260 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
2261 # source directory, any form will work fine, but in subdirectories a
2262 # relative path needs to be adjusted first.
2263 #
2264 # $ac_aux_dir/missing
2265 # fails when called from a subdirectory if $ac_aux_dir is relative
2266 # $top_srcdir/$ac_aux_dir/missing
2267 # fails if $ac_aux_dir is absolute,
2268 # fails when called from a subdirectory in a VPATH build with
2269 # a relative $ac_aux_dir
2270 #
2271 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
2272 # are both prefixed by $srcdir. In an in-source build this is usually
2273 # harmless because $srcdir is '.', but things will broke when you
2274 # start a VPATH build or use an absolute $srcdir.
2275 #
2276 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
2277 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
2278 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
2279 # and then we would define $MISSING as
2280 # MISSING="\${SHELL} $am_aux_dir/missing"
2281 # This will work as long as MISSING is not called from configure, because
2282 # unfortunately $(top_srcdir) has no meaning in configure.
2283 # However there are other variables, like CC, which are often used in
2284 # configure, and could therefore not use this "fixed" $ac_aux_dir.
2285 #
2286 # Another solution, used here, is to always expand $ac_aux_dir to an
2287 # absolute PATH. The drawback is that using absolute paths prevent a
2288 # configured tree to be moved without reconfiguration.
2289
2290 AC_DEFUN([AM_AUX_DIR_EXPAND],
2291 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
2292 # Expand $ac_aux_dir to an absolute path.
2293 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2294 ])
2295
2296 # AM_CONDITIONAL -*- Autoconf -*-
2297
2298 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
2299 #
2300 # This file is free software; the Free Software Foundation
2301 # gives unlimited permission to copy and/or distribute it,
2302 # with or without modifications, as long as this notice is preserved.
2303
2304 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
2305 # -------------------------------------
2306 # Define a conditional.
2307 AC_DEFUN([AM_CONDITIONAL],
2308 [AC_PREREQ([2.52])dnl
2309 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
2310 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
2311 AC_SUBST([$1_TRUE])dnl
2312 AC_SUBST([$1_FALSE])dnl
2313 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
2314 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
2315 m4_define([_AM_COND_VALUE_$1], [$2])dnl
2316 if $2; then
2317 $1_TRUE=
2318 $1_FALSE='#'
2319 else
2320 $1_TRUE='#'
2321 $1_FALSE=
2322 fi
2323 AC_CONFIG_COMMANDS_PRE(
2324 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
2325 AC_MSG_ERROR([[conditional "$1" was never defined.
2326 Usually this means the macro was only invoked conditionally.]])
2327 fi])])
2328
2329 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
2330 #
2331 # This file is free software; the Free Software Foundation
2332 # gives unlimited permission to copy and/or distribute it,
2333 # with or without modifications, as long as this notice is preserved.
2334
2335
2336 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
2337 # written in clear, in which case automake, when reading aclocal.m4,
2338 # will think it sees a *use*, and therefore will trigger all it's
2339 # C support machinery. Also note that it means that autoscan, seeing
2340 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
2341
2342
2343 # _AM_DEPENDENCIES(NAME)
2344 # ----------------------
2345 # See how the compiler implements dependency checking.
2346 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
2347 # We try a few techniques and use that to set a single cache variable.
2348 #
2349 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
2350 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
2351 # dependency, and given that the user is not expected to run this macro,
2352 # just rely on AC_PROG_CC.
2353 AC_DEFUN([_AM_DEPENDENCIES],
2354 [AC_REQUIRE([AM_SET_DEPDIR])dnl
2355 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
2356 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
2357 AC_REQUIRE([AM_DEP_TRACK])dnl
2358
2359 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
2360 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
2361 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
2362 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
2363 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
2364 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
2365 [depcc="$$1" am_compiler_list=])
2366
2367 AC_CACHE_CHECK([dependency style of $depcc],
2368 [am_cv_$1_dependencies_compiler_type],
2369 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2370 # We make a subdir and do the tests there. Otherwise we can end up
2371 # making bogus files that we don't know about and never remove. For
2372 # instance it was reported that on HP-UX the gcc test will end up
2373 # making a dummy file named 'D' -- because '-MD' means "put the output
2374 # in D".
2375 rm -rf conftest.dir
2376 mkdir conftest.dir
2377 # Copy depcomp to subdir because otherwise we won't find it if we're
2378 # using a relative directory.
2379 cp "$am_depcomp" conftest.dir
2380 cd conftest.dir
2381 # We will build objects and dependencies in a subdirectory because
2382 # it helps to detect inapplicable dependency modes. For instance
2383 # both Tru64's cc and ICC support -MD to output dependencies as a
2384 # side effect of compilation, but ICC will put the dependencies in
2385 # the current directory while Tru64 will put them in the object
2386 # directory.
2387 mkdir sub
2388
2389 am_cv_$1_dependencies_compiler_type=none
2390 if test "$am_compiler_list" = ""; then
2391 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
2392 fi
2393 am__universal=false
2394 m4_case([$1], [CC],
2395 [case " $depcc " in #(
2396 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2397 esac],
2398 [CXX],
2399 [case " $depcc " in #(
2400 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2401 esac])
2402
2403 for depmode in $am_compiler_list; do
2404 # Setup a source with many dependencies, because some compilers
2405 # like to wrap large dependency lists on column 80 (with \), and
2406 # we should not choose a depcomp mode which is confused by this.
2407 #
2408 # We need to recreate these files for each test, as the compiler may
2409 # overwrite some of them when testing with obscure command lines.
2410 # This happens at least with the AIX C compiler.
2411 : > sub/conftest.c
2412 for i in 1 2 3 4 5 6; do
2413 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2414 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
2415 # Solaris 10 /bin/sh.
2416 echo '/* dummy */' > sub/conftst$i.h
2417 done
2418 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2419
2420 # We check with '-c' and '-o' for the sake of the "dashmstdout"
2421 # mode. It turns out that the SunPro C++ compiler does not properly
2422 # handle '-M -o', and we need to detect this. Also, some Intel
2423 # versions had trouble with output in subdirs.
2424 am__obj=sub/conftest.${OBJEXT-o}
2425 am__minus_obj="-o $am__obj"
2426 case $depmode in
2427 gcc)
2428 # This depmode causes a compiler race in universal mode.
2429 test "$am__universal" = false || continue
2430 ;;
2431 nosideeffect)
2432 # After this tag, mechanisms are not by side-effect, so they'll
2433 # only be used when explicitly requested.
2434 if test "x$enable_dependency_tracking" = xyes; then
2435 continue
2436 else
2437 break
2438 fi
2439 ;;
2440 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
2441 # This compiler won't grok '-c -o', but also, the minuso test has
2442 # not run yet. These depmodes are late enough in the game, and
2443 # so weak that their functioning should not be impacted.
2444 am__obj=conftest.${OBJEXT-o}
2445 am__minus_obj=
2446 ;;
2447 none) break ;;
2448 esac
2449 if depmode=$depmode \
2450 source=sub/conftest.c object=$am__obj \
2451 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2452 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
2453 >/dev/null 2>conftest.err &&
2454 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2455 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2456 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
2457 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2458 # icc doesn't choke on unknown options, it will just issue warnings
2459 # or remarks (even with -Werror). So we grep stderr for any message
2460 # that says an option was ignored or not supported.
2461 # When given -MP, icc 7.0 and 7.1 complain thusly:
2462 # icc: Command line warning: ignoring option '-M'; no argument required
2463 # The diagnosis changed in icc 8.0:
2464 # icc: Command line remark: option '-MP' not supported
2465 if (grep 'ignoring option' conftest.err ||
2466 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2467 am_cv_$1_dependencies_compiler_type=$depmode
2468 break
2469 fi
2470 fi
2471 done
2472
2473 cd ..
2474 rm -rf conftest.dir
2475 else
2476 am_cv_$1_dependencies_compiler_type=none
2477 fi
2478 ])
2479 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
2480 AM_CONDITIONAL([am__fastdep$1], [
2481 test "x$enable_dependency_tracking" != xno \
2482 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
2483 ])
2484
2485
2486 # AM_SET_DEPDIR
2487 # -------------
2488 # Choose a directory name for dependency files.
2489 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
2490 AC_DEFUN([AM_SET_DEPDIR],
2491 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2492 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
2493 ])
2494
2495
2496 # AM_DEP_TRACK
2497 # ------------
2498 AC_DEFUN([AM_DEP_TRACK],
2499 [AC_ARG_ENABLE([dependency-tracking], [dnl
2500 AS_HELP_STRING(
2501 [--enable-dependency-tracking],
2502 [do not reject slow dependency extractors])
2503 AS_HELP_STRING(
2504 [--disable-dependency-tracking],
2505 [speeds up one-time build])])
2506 if test "x$enable_dependency_tracking" != xno; then
2507 am_depcomp="$ac_aux_dir/depcomp"
2508 AMDEPBACKSLASH='\'
2509 am__nodep='_no'
2510 fi
2511 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
2512 AC_SUBST([AMDEPBACKSLASH])dnl
2513 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
2514 AC_SUBST([am__nodep])dnl
2515 _AM_SUBST_NOTMAKE([am__nodep])dnl
2516 ])
2517
2518 # Generate code to set up dependency tracking. -*- Autoconf -*-
2519
2520 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
2521 #
2522 # This file is free software; the Free Software Foundation
2523 # gives unlimited permission to copy and/or distribute it,
2524 # with or without modifications, as long as this notice is preserved.
2525
2526
2527 # _AM_OUTPUT_DEPENDENCY_COMMANDS
2528 # ------------------------------
2529 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
2530 [{
2531 # Older Autoconf quotes --file arguments for eval, but not when files
2532 # are listed without --file. Let's play safe and only enable the eval
2533 # if we detect the quoting.
2534 case $CONFIG_FILES in
2535 *\'*) eval set x "$CONFIG_FILES" ;;
2536 *) set x $CONFIG_FILES ;;
2537 esac
2538 shift
2539 for mf
2540 do
2541 # Strip MF so we end up with the name of the file.
2542 mf=`echo "$mf" | sed -e 's/:.*$//'`
2543 # Check whether this is an Automake generated Makefile or not.
2544 # We used to match only the files named 'Makefile.in', but
2545 # some people rename them; so instead we look at the file content.
2546 # Grep'ing the first line is not enough: some people post-process
2547 # each Makefile.in and add a new line on top of each file to say so.
2548 # Grep'ing the whole file is not good either: AIX grep has a line
2549 # limit of 2048, but all sed's we know have understand at least 4000.
2550 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
2551 dirpart=`AS_DIRNAME("$mf")`
2552 else
2553 continue
2554 fi
2555 # Extract the definition of DEPDIR, am__include, and am__quote
2556 # from the Makefile without running 'make'.
2557 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
2558 test -z "$DEPDIR" && continue
2559 am__include=`sed -n 's/^am__include = //p' < "$mf"`
2560 test -z "$am__include" && continue
2561 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
2562 # Find all dependency output files, they are included files with
2563 # $(DEPDIR) in their names. We invoke sed twice because it is the
2564 # simplest approach to changing $(DEPDIR) to its actual value in the
2565 # expansion.
2566 for file in `sed -n "
2567 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
2568 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
2569 # Make sure the directory exists.
2570 test -f "$dirpart/$file" && continue
2571 fdir=`AS_DIRNAME(["$file"])`
2572 AS_MKDIR_P([$dirpart/$fdir])
2573 # echo "creating $dirpart/$file"
2574 echo '# dummy' > "$dirpart/$file"
2575 done
2576 done
2577 }
2578 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
2579
2580
2581 # AM_OUTPUT_DEPENDENCY_COMMANDS
2582 # -----------------------------
2583 # This macro should only be invoked once -- use via AC_REQUIRE.
2584 #
2585 # This code is only required when automatic dependency tracking
2586 # is enabled. FIXME. This creates each '.P' file that we will
2587 # need in order to bootstrap the dependency handling code.
2588 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
2589 [AC_CONFIG_COMMANDS([depfiles],
2590 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
2591 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
2592 ])
2593
2594 # Do all the work for Automake. -*- Autoconf -*-
2595
2596 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
2597 #
2598 # This file is free software; the Free Software Foundation
2599 # gives unlimited permission to copy and/or distribute it,
2600 # with or without modifications, as long as this notice is preserved.
2601
2602 # This macro actually does too much. Some checks are only needed if
2603 # your package does certain things. But this isn't really a big deal.
2604
2605 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
2606 m4_define([AC_PROG_CC],
2607 m4_defn([AC_PROG_CC])
2608 [_AM_PROG_CC_C_O
2609 ])
2610
2611 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
2612 # AM_INIT_AUTOMAKE([OPTIONS])
2613 # -----------------------------------------------
2614 # The call with PACKAGE and VERSION arguments is the old style
2615 # call (pre autoconf-2.50), which is being phased out. PACKAGE
2616 # and VERSION should now be passed to AC_INIT and removed from
2617 # the call to AM_INIT_AUTOMAKE.
2618 # We support both call styles for the transition. After
2619 # the next Automake release, Autoconf can make the AC_INIT
2620 # arguments mandatory, and then we can depend on a new Autoconf
2621 # release and drop the old call support.
2622 AC_DEFUN([AM_INIT_AUTOMAKE],
2623 [AC_PREREQ([2.65])dnl
2624 dnl Autoconf wants to disallow AM_ names. We explicitly allow
2625 dnl the ones we care about.
2626 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
2627 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
2628 AC_REQUIRE([AC_PROG_INSTALL])dnl
2629 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2630 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2631 # is not polluted with repeated "-I."
2632 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
2633 # test to see if srcdir already configured
2634 if test -f $srcdir/config.status; then
2635 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
2636 fi
2637 fi
2638
2639 # test whether we have cygpath
2640 if test -z "$CYGPATH_W"; then
2641 if (cygpath --version) >/dev/null 2>/dev/null; then
2642 CYGPATH_W='cygpath -w'
2643 else
2644 CYGPATH_W=echo
2645 fi
2646 fi
2647 AC_SUBST([CYGPATH_W])
2648
2649 # Define the identity of the package.
2650 dnl Distinguish between old-style and new-style calls.
2651 m4_ifval([$2],
2652 [AC_DIAGNOSE([obsolete],
2653 [$0: two- and three-arguments forms are deprecated.])
2654 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
2655 AC_SUBST([PACKAGE], [$1])dnl
2656 AC_SUBST([VERSION], [$2])],
2657 [_AM_SET_OPTIONS([$1])dnl
2658 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
2659 m4_if(
2660 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
2661 [ok:ok],,
2662 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
2663 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
2664 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
2665
2666 _AM_IF_OPTION([no-define],,
2667 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
2668 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
2669
2670 # Some tools Automake needs.
2671 AC_REQUIRE([AM_SANITY_CHECK])dnl
2672 AC_REQUIRE([AC_ARG_PROGRAM])dnl
2673 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
2674 AM_MISSING_PROG([AUTOCONF], [autoconf])
2675 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
2676 AM_MISSING_PROG([AUTOHEADER], [autoheader])
2677 AM_MISSING_PROG([MAKEINFO], [makeinfo])
2678 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
2679 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
2680 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
2681 # For better backward compatibility. To be removed once Automake 1.9.x
2682 # dies out for good. For more background, see:
2683 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2684 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2685 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
2686 # We need awk for the "check" target (and possibly the TAP driver). The
2687 # system "awk" is bad on some platforms.
2688 AC_REQUIRE([AC_PROG_AWK])dnl
2689 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
2690 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2691 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
2692 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
2693 [_AM_PROG_TAR([v7])])])
2694 _AM_IF_OPTION([no-dependencies],,
2695 [AC_PROVIDE_IFELSE([AC_PROG_CC],
2696 [_AM_DEPENDENCIES([CC])],
2697 [m4_define([AC_PROG_CC],
2698 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
2699 AC_PROVIDE_IFELSE([AC_PROG_CXX],
2700 [_AM_DEPENDENCIES([CXX])],
2701 [m4_define([AC_PROG_CXX],
2702 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
2703 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
2704 [_AM_DEPENDENCIES([OBJC])],
2705 [m4_define([AC_PROG_OBJC],
2706 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
2707 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
2708 [_AM_DEPENDENCIES([OBJCXX])],
2709 [m4_define([AC_PROG_OBJCXX],
2710 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
2711 ])
2712 AC_REQUIRE([AM_SILENT_RULES])dnl
2713 dnl The testsuite driver may need to know about EXEEXT, so add the
2714 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
2715 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
2716 AC_CONFIG_COMMANDS_PRE(dnl
2717 [m4_provide_if([_AM_COMPILER_EXEEXT],
2718 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
2719
2720 # POSIX will say in a future version that running "rm -f" with no argument
2721 # is OK; and we want to be able to make that assumption in our Makefile
2722 # recipes. So use an aggressive probe to check that the usage we want is
2723 # actually supported "in the wild" to an acceptable degree.
2724 # See automake bug#10828.
2725 # To make any issue more visible, cause the running configure to be aborted
2726 # by default if the 'rm' program in use doesn't match our expectations; the
2727 # user can still override this though.
2728 if rm -f && rm -fr && rm -rf; then : OK; else
2729 cat >&2 <<'END'
2730 Oops!
2731
2732 Your 'rm' program seems unable to run without file operands specified
2733 on the command line, even when the '-f' option is present. This is contrary
2734 to the behaviour of most rm programs out there, and not conforming with
2735 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2736
2737 Please tell bug-automake@gnu.org about your system, including the value
2738 of your $PATH and any error possibly output before this message. This
2739 can help us improve future automake versions.
2740
2741 END
2742 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2743 echo 'Configuration will proceed anyway, since you have set the' >&2
2744 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2745 echo >&2
2746 else
2747 cat >&2 <<'END'
2748 Aborting the configuration process, to ensure you take notice of the issue.
2749
2750 You can download and install GNU coreutils to get an 'rm' implementation
2751 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2752
2753 If you want to complete the configuration process using your problematic
2754 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2755 to "yes", and re-run configure.
2756
2757 END
2758 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
2759 fi
2760 fi
2761 dnl The trailing newline in this macro's definition is deliberate, for
2762 dnl backward compatibility and to allow trailing 'dnl'-style comments
2763 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
2764 ])
2765
2766 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
2767 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
2768 dnl mangled by Autoconf and run in a shell conditional statement.
2769 m4_define([_AC_COMPILER_EXEEXT],
2770 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
2771
2772 # When config.status generates a header, we must update the stamp-h file.
2773 # This file resides in the same directory as the config header
2774 # that is generated. The stamp files are numbered to have different names.
2775
2776 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
2777 # loop where config.status creates the headers, so we can generate
2778 # our stamp files there.
2779 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
2780 [# Compute $1's index in $config_headers.
2781 _am_arg=$1
2782 _am_stamp_count=1
2783 for _am_header in $config_headers :; do
2784 case $_am_header in
2785 $_am_arg | $_am_arg:* )
2786 break ;;
2787 * )
2788 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
2789 esac
2790 done
2791 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
2792
2793 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
2794 #
2795 # This file is free software; the Free Software Foundation
2796 # gives unlimited permission to copy and/or distribute it,
2797 # with or without modifications, as long as this notice is preserved.
2798
2799 # AM_PROG_INSTALL_SH
2800 # ------------------
2801 # Define $install_sh.
2802 AC_DEFUN([AM_PROG_INSTALL_SH],
2803 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2804 if test x"${install_sh+set}" != xset; then
2805 case $am_aux_dir in
2806 *\ * | *\ *)
2807 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2808 *)
2809 install_sh="\${SHELL} $am_aux_dir/install-sh"
2810 esac
2811 fi
2812 AC_SUBST([install_sh])])
2813
2814 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
2815 #
2816 # This file is free software; the Free Software Foundation
2817 # gives unlimited permission to copy and/or distribute it,
2818 # with or without modifications, as long as this notice is preserved.
2819
2820 # Check whether the underlying file-system supports filenames
2821 # with a leading dot. For instance MS-DOS doesn't.
2822 AC_DEFUN([AM_SET_LEADING_DOT],
2823 [rm -rf .tst 2>/dev/null
2824 mkdir .tst 2>/dev/null
2825 if test -d .tst; then
2826 am__leading_dot=.
2827 else
2828 am__leading_dot=_
2829 fi
2830 rmdir .tst 2>/dev/null
2831 AC_SUBST([am__leading_dot])])
2832
2833 # Check to see how 'make' treats includes. -*- Autoconf -*-
2834
2835 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
2836 #
2837 # This file is free software; the Free Software Foundation
2838 # gives unlimited permission to copy and/or distribute it,
2839 # with or without modifications, as long as this notice is preserved.
2840
2841 # AM_MAKE_INCLUDE()
2842 # -----------------
2843 # Check to see how make treats includes.
2844 AC_DEFUN([AM_MAKE_INCLUDE],
2845 [am_make=${MAKE-make}
2846 cat > confinc << 'END'
2847 am__doit:
2848 @echo this is the am__doit target
2849 .PHONY: am__doit
2850 END
2851 # If we don't find an include directive, just comment out the code.
2852 AC_MSG_CHECKING([for style of include used by $am_make])
2853 am__include="#"
2854 am__quote=
2855 _am_result=none
2856 # First try GNU make style include.
2857 echo "include confinc" > confmf
2858 # Ignore all kinds of additional output from 'make'.
2859 case `$am_make -s -f confmf 2> /dev/null` in #(
2860 *the\ am__doit\ target*)
2861 am__include=include
2862 am__quote=
2863 _am_result=GNU
2864 ;;
2865 esac
2866 # Now try BSD make style include.
2867 if test "$am__include" = "#"; then
2868 echo '.include "confinc"' > confmf
2869 case `$am_make -s -f confmf 2> /dev/null` in #(
2870 *the\ am__doit\ target*)
2871 am__include=.include
2872 am__quote="\""
2873 _am_result=BSD
2874 ;;
2875 esac
2876 fi
2877 AC_SUBST([am__include])
2878 AC_SUBST([am__quote])
2879 AC_MSG_RESULT([$_am_result])
2880 rm -f confinc confmf
2881 ])
2882
2883 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
2884
2885 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
2886 #
2887 # This file is free software; the Free Software Foundation
2888 # gives unlimited permission to copy and/or distribute it,
2889 # with or without modifications, as long as this notice is preserved.
2890
2891 # AM_MISSING_PROG(NAME, PROGRAM)
2892 # ------------------------------
2893 AC_DEFUN([AM_MISSING_PROG],
2894 [AC_REQUIRE([AM_MISSING_HAS_RUN])
2895 $1=${$1-"${am_missing_run}$2"}
2896 AC_SUBST($1)])
2897
2898 # AM_MISSING_HAS_RUN
2899 # ------------------
2900 # Define MISSING if not defined so far and test if it is modern enough.
2901 # If it is, set am_missing_run to use it, otherwise, to nothing.
2902 AC_DEFUN([AM_MISSING_HAS_RUN],
2903 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2904 AC_REQUIRE_AUX_FILE([missing])dnl
2905 if test x"${MISSING+set}" != xset; then
2906 case $am_aux_dir in
2907 *\ * | *\ *)
2908 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2909 *)
2910 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2911 esac
2912 fi
2913 # Use eval to expand $SHELL
2914 if eval "$MISSING --is-lightweight"; then
2915 am_missing_run="$MISSING "
2916 else
2917 am_missing_run=
2918 AC_MSG_WARN(['missing' script is too old or missing])
2919 fi
2920 ])
2921
2922 # Helper functions for option handling. -*- Autoconf -*-
2923
2924 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
2925 #
2926 # This file is free software; the Free Software Foundation
2927 # gives unlimited permission to copy and/or distribute it,
2928 # with or without modifications, as long as this notice is preserved.
2929
2930 # _AM_MANGLE_OPTION(NAME)
2931 # -----------------------
2932 AC_DEFUN([_AM_MANGLE_OPTION],
2933 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
2934
2935 # _AM_SET_OPTION(NAME)
2936 # --------------------
2937 # Set option NAME. Presently that only means defining a flag for this option.
2938 AC_DEFUN([_AM_SET_OPTION],
2939 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
2940
2941 # _AM_SET_OPTIONS(OPTIONS)
2942 # ------------------------
2943 # OPTIONS is a space-separated list of Automake options.
2944 AC_DEFUN([_AM_SET_OPTIONS],
2945 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
2946
2947 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
2948 # -------------------------------------------
2949 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
2950 AC_DEFUN([_AM_IF_OPTION],
2951 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
2952
2953 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
2954 #
2955 # This file is free software; the Free Software Foundation
2956 # gives unlimited permission to copy and/or distribute it,
2957 # with or without modifications, as long as this notice is preserved.
2958
2959 # _AM_PROG_CC_C_O
2960 # ---------------
2961 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
2962 # to automatically call this.
2963 AC_DEFUN([_AM_PROG_CC_C_O],
2964 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2965 AC_REQUIRE_AUX_FILE([compile])dnl
2966 AC_LANG_PUSH([C])dnl
2967 AC_CACHE_CHECK(
2968 [whether $CC understands -c and -o together],
2969 [am_cv_prog_cc_c_o],
2970 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
2971 # Make sure it works both with $CC and with simple cc.
2972 # Following AC_PROG_CC_C_O, we do the test twice because some
2973 # compilers refuse to overwrite an existing .o file with -o,
2974 # though they will create one.
2975 am_cv_prog_cc_c_o=yes
2976 for am_i in 1 2; do
2977 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
2978 && test -f conftest2.$ac_objext; then
2979 : OK
2980 else
2981 am_cv_prog_cc_c_o=no
2982 break
2983 fi
2984 done
2985 rm -f core conftest*
2986 unset am_i])
2987 if test "$am_cv_prog_cc_c_o" != yes; then
2988 # Losing compiler, so override with the script.
2989 # FIXME: It is wrong to rewrite CC.
2990 # But if we don't then we get into trouble of one sort or another.
2991 # A longer-term fix would be to have automake use am__CC in this case,
2992 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2993 CC="$am_aux_dir/compile $CC"
2994 fi
2995 AC_LANG_POP([C])])
2996
2997 # For backward compatibility.
2998 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
2999
3000 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
3001 #
3002 # This file is free software; the Free Software Foundation
3003 # gives unlimited permission to copy and/or distribute it,
3004 # with or without modifications, as long as this notice is preserved.
3005
3006 # AM_RUN_LOG(COMMAND)
3007 # -------------------
3008 # Run COMMAND, save the exit status in ac_status, and log it.
3009 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
3010 AC_DEFUN([AM_RUN_LOG],
3011 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
3012 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3015 (exit $ac_status); }])
3016
3017 # Check to make sure that the build environment is sane. -*- Autoconf -*-
3018
3019 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
3020 #
3021 # This file is free software; the Free Software Foundation
3022 # gives unlimited permission to copy and/or distribute it,
3023 # with or without modifications, as long as this notice is preserved.
3024
3025 # AM_SANITY_CHECK
3026 # ---------------
3027 AC_DEFUN([AM_SANITY_CHECK],
3028 [AC_MSG_CHECKING([whether build environment is sane])
3029 # Reject unsafe characters in $srcdir or the absolute working directory
3030 # name. Accept space and tab only in the latter.
3031 am_lf='
3032 '
3033 case `pwd` in
3034 *[[\\\"\#\$\&\'\`$am_lf]]*)
3035 AC_MSG_ERROR([unsafe absolute working directory name]);;
3036 esac
3037 case $srcdir in
3038 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
3039 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
3040 esac
3041
3042 # Do 'set' in a subshell so we don't clobber the current shell's
3043 # arguments. Must try -L first in case configure is actually a
3044 # symlink; some systems play weird games with the mod time of symlinks
3045 # (eg FreeBSD returns the mod time of the symlink's containing
3046 # directory).
3047 if (
3048 am_has_slept=no
3049 for am_try in 1 2; do
3050 echo "timestamp, slept: $am_has_slept" > conftest.file
3051 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3052 if test "$[*]" = "X"; then
3053 # -L didn't work.
3054 set X `ls -t "$srcdir/configure" conftest.file`
3055 fi
3056 if test "$[*]" != "X $srcdir/configure conftest.file" \
3057 && test "$[*]" != "X conftest.file $srcdir/configure"; then
3058
3059 # If neither matched, then we have a broken ls. This can happen
3060 # if, for instance, CONFIG_SHELL is bash and it inherits a
3061 # broken ls alias from the environment. This has actually
3062 # happened. Such a system could not be considered "sane".
3063 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
3064 alias in your environment])
3065 fi
3066 if test "$[2]" = conftest.file || test $am_try -eq 2; then
3067 break
3068 fi
3069 # Just in case.
3070 sleep 1
3071 am_has_slept=yes
3072 done
3073 test "$[2]" = conftest.file
3074 )
3075 then
3076 # Ok.
3077 :
3078 else
3079 AC_MSG_ERROR([newly created file is older than distributed files!
3080 Check your system clock])
3081 fi
3082 AC_MSG_RESULT([yes])
3083 # If we didn't sleep, we still need to ensure time stamps of config.status and
3084 # generated files are strictly newer.
3085 am_sleep_pid=
3086 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3087 ( sleep 1 ) &
3088 am_sleep_pid=$!
3089 fi
3090 AC_CONFIG_COMMANDS_PRE(
3091 [AC_MSG_CHECKING([that generated files are newer than configure])
3092 if test -n "$am_sleep_pid"; then
3093 # Hide warnings about reused PIDs.
3094 wait $am_sleep_pid 2>/dev/null
3095 fi
3096 AC_MSG_RESULT([done])])
3097 rm -f conftest.file
3098 ])
3099
3100 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
3101 #
3102 # This file is free software; the Free Software Foundation
3103 # gives unlimited permission to copy and/or distribute it,
3104 # with or without modifications, as long as this notice is preserved.
3105
3106 # AM_SILENT_RULES([DEFAULT])
3107 # --------------------------
3108 # Enable less verbose build rules; with the default set to DEFAULT
3109 # ("yes" being less verbose, "no" or empty being verbose).
3110 AC_DEFUN([AM_SILENT_RULES],
3111 [AC_ARG_ENABLE([silent-rules], [dnl
3112 AS_HELP_STRING(
3113 [--enable-silent-rules],
3114 [less verbose build output (undo: "make V=1")])
3115 AS_HELP_STRING(
3116 [--disable-silent-rules],
3117 [verbose build output (undo: "make V=0")])dnl
3118 ])
3119 case $enable_silent_rules in @%:@ (((
3120 yes) AM_DEFAULT_VERBOSITY=0;;
3121 no) AM_DEFAULT_VERBOSITY=1;;
3122 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
3123 esac
3124 dnl
3125 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
3126 dnl do not support nested variable expansions.
3127 dnl See automake bug#9928 and bug#10237.
3128 am_make=${MAKE-make}
3129 AC_CACHE_CHECK([whether $am_make supports nested variables],
3130 [am_cv_make_support_nested_variables],
3131 [if AS_ECHO([['TRUE=$(BAR$(V))
3132 BAR0=false
3133 BAR1=true
3134 V=1
3135 am__doit:
3136 @$(TRUE)
3137 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
3138 am_cv_make_support_nested_variables=yes
3139 else
3140 am_cv_make_support_nested_variables=no
3141 fi])
3142 if test $am_cv_make_support_nested_variables = yes; then
3143 dnl Using '$V' instead of '$(V)' breaks IRIX make.
3144 AM_V='$(V)'
3145 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3146 else
3147 AM_V=$AM_DEFAULT_VERBOSITY
3148 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3149 fi
3150 AC_SUBST([AM_V])dnl
3151 AM_SUBST_NOTMAKE([AM_V])dnl
3152 AC_SUBST([AM_DEFAULT_V])dnl
3153 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
3154 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
3155 AM_BACKSLASH='\'
3156 AC_SUBST([AM_BACKSLASH])dnl
3157 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
3158 ])
3159
3160 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
3161 #
3162 # This file is free software; the Free Software Foundation
3163 # gives unlimited permission to copy and/or distribute it,
3164 # with or without modifications, as long as this notice is preserved.
3165
3166 # AM_PROG_INSTALL_STRIP
3167 # ---------------------
3168 # One issue with vendor 'install' (even GNU) is that you can't
3169 # specify the program used to strip binaries. This is especially
3170 # annoying in cross-compiling environments, where the build's strip
3171 # is unlikely to handle the host's binaries.
3172 # Fortunately install-sh will honor a STRIPPROG variable, so we
3173 # always use install-sh in "make install-strip", and initialize
3174 # STRIPPROG with the value of the STRIP variable (set by the user).
3175 AC_DEFUN([AM_PROG_INSTALL_STRIP],
3176 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
3177 # Installed binaries are usually stripped using 'strip' when the user
3178 # run "make install-strip". However 'strip' might not be the right
3179 # tool to use in cross-compilation environments, therefore Automake
3180 # will honor the 'STRIP' environment variable to overrule this program.
3181 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
3182 if test "$cross_compiling" != no; then
3183 AC_CHECK_TOOL([STRIP], [strip], :)
3184 fi
3185 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3186 AC_SUBST([INSTALL_STRIP_PROGRAM])])
3187
3188 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
3189 #
3190 # This file is free software; the Free Software Foundation
3191 # gives unlimited permission to copy and/or distribute it,
3192 # with or without modifications, as long as this notice is preserved.
3193
3194 # _AM_SUBST_NOTMAKE(VARIABLE)
3195 # ---------------------------
3196 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
3197 # This macro is traced by Automake.
3198 AC_DEFUN([_AM_SUBST_NOTMAKE])
3199
3200 # AM_SUBST_NOTMAKE(VARIABLE)
3201 # --------------------------
3202 # Public sister of _AM_SUBST_NOTMAKE.
3203 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
3204
3205 # Check how to create a tarball. -*- Autoconf -*-
3206
3207 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
3208 #
3209 # This file is free software; the Free Software Foundation
3210 # gives unlimited permission to copy and/or distribute it,
3211 # with or without modifications, as long as this notice is preserved.
3212
3213 # _AM_PROG_TAR(FORMAT)
3214 # --------------------
3215 # Check how to create a tarball in format FORMAT.
3216 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
3217 #
3218 # Substitute a variable $(am__tar) that is a command
3219 # writing to stdout a FORMAT-tarball containing the directory
3220 # $tardir.
3221 # tardir=directory && $(am__tar) > result.tar
3222 #
3223 # Substitute a variable $(am__untar) that extract such
3224 # a tarball read from stdin.
3225 # $(am__untar) < result.tar
3226 #
3227 AC_DEFUN([_AM_PROG_TAR],
3228 [# Always define AMTAR for backward compatibility. Yes, it's still used
3229 # in the wild :-( We should find a proper way to deprecate it ...
3230 AC_SUBST([AMTAR], ['$${TAR-tar}'])
3231
3232 # We'll loop over all known methods to create a tar archive until one works.
3233 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
3234
3235 m4_if([$1], [v7],
3236 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
3237
3238 [m4_case([$1],
3239 [ustar],
3240 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3241 # There is notably a 21 bits limit for the UID and the GID. In fact,
3242 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3243 # and bug#13588).
3244 am_max_uid=2097151 # 2^21 - 1
3245 am_max_gid=$am_max_uid
3246 # The $UID and $GID variables are not portable, so we need to resort
3247 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3248 # below are definitely unexpected, so allow the users to see them
3249 # (that is, avoid stderr redirection).
3250 am_uid=`id -u || echo unknown`
3251 am_gid=`id -g || echo unknown`
3252 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
3253 if test $am_uid -le $am_max_uid; then
3254 AC_MSG_RESULT([yes])
3255 else
3256 AC_MSG_RESULT([no])
3257 _am_tools=none
3258 fi
3259 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
3260 if test $am_gid -le $am_max_gid; then
3261 AC_MSG_RESULT([yes])
3262 else
3263 AC_MSG_RESULT([no])
3264 _am_tools=none
3265 fi],
3266
3267 [pax],
3268 [],
3269
3270 [m4_fatal([Unknown tar format])])
3271
3272 AC_MSG_CHECKING([how to create a $1 tar archive])
3273
3274 # Go ahead even if we have the value already cached. We do so because we
3275 # need to set the values for the 'am__tar' and 'am__untar' variables.
3276 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
3277
3278 for _am_tool in $_am_tools; do
3279 case $_am_tool in
3280 gnutar)
3281 for _am_tar in tar gnutar gtar; do
3282 AM_RUN_LOG([$_am_tar --version]) && break
3283 done
3284 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
3285 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
3286 am__untar="$_am_tar -xf -"
3287 ;;
3288 plaintar)
3289 # Must skip GNU tar: if it does not support --format= it doesn't create
3290 # ustar tarball either.
3291 (tar --version) >/dev/null 2>&1 && continue
3292 am__tar='tar chf - "$$tardir"'
3293 am__tar_='tar chf - "$tardir"'
3294 am__untar='tar xf -'
3295 ;;
3296 pax)
3297 am__tar='pax -L -x $1 -w "$$tardir"'
3298 am__tar_='pax -L -x $1 -w "$tardir"'
3299 am__untar='pax -r'
3300 ;;
3301 cpio)
3302 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
3303 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
3304 am__untar='cpio -i -H $1 -d'
3305 ;;
3306 none)
3307 am__tar=false
3308 am__tar_=false
3309 am__untar=false
3310 ;;
3311 esac
3312
3313 # If the value was cached, stop now. We just wanted to have am__tar
3314 # and am__untar set.
3315 test -n "${am_cv_prog_tar_$1}" && break
3316
3317 # tar/untar a dummy directory, and stop if the command works.
3318 rm -rf conftest.dir
3319 mkdir conftest.dir
3320 echo GrepMe > conftest.dir/file
3321 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
3322 rm -rf conftest.dir
3323 if test -s conftest.tar; then
3324 AM_RUN_LOG([$am__untar <conftest.tar])
3325 AM_RUN_LOG([cat conftest.dir/file])
3326 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3327 fi
3328 done
3329 rm -rf conftest.dir
3330
3331 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
3332 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
3333
3334 AC_SUBST([am__tar])
3335 AC_SUBST([am__untar])
3336 ]) # _AM_PROG_TAR
3337
00 XLogo*iconPixmap: xlogo32
11 XLogo*iconMask: xlogo32
22 XLogo*baseTranslations: #override \
3 <Key>q,<Key>Escape: quit()
3 <Key>q: quit() \n\
4 <Key>Escape: quit()
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 # This file is maintained in Automake, please report
27 # bugs to <bug-automake@gnu.org> or send patches to
28 # <automake-patches@gnu.org>.
29
30 nl='
31 '
32
33 # We need space, tab and new line, in precisely that order. Quoting is
34 # there to prevent tools from complaining about whitespace usage.
35 IFS=" "" $nl"
36
37 file_conv=
38
39 # func_file_conv build_file lazy
40 # Convert a $build file to $host form and store it in $file
41 # Currently only supports Windows hosts. If the determined conversion
42 # type is listed in (the comma separated) LAZY, no conversion will
43 # take place.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv/,$2, in
64 *,$file_conv,*)
65 ;;
66 mingw/*)
67 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
68 ;;
69 cygwin/*)
70 file=`cygpath -m "$file" || echo "$file"`
71 ;;
72 wine/*)
73 file=`winepath -w "$file" || echo "$file"`
74 ;;
75 esac
76 ;;
77 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
125 }
126
127 # func_cl_wrapper cl arg...
128 # Adjust compile command to suit cl
129 func_cl_wrapper ()
130 {
131 # Assume a capable shell
132 lib_path=
133 shared=:
134 linker_opts=
135 for arg
136 do
137 if test -n "$eat"; then
138 eat=
139 else
140 case $1 in
141 -o)
142 # configure might choose to run compile as 'compile cc -o foo foo.c'.
143 eat=1
144 case $2 in
145 *.o | *.[oO][bB][jJ])
146 func_file_conv "$2"
147 set x "$@" -Fo"$file"
148 shift
149 ;;
150 *)
151 func_file_conv "$2"
152 set x "$@" -Fe"$file"
153 shift
154 ;;
155 esac
156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
163 -I*)
164 func_file_conv "${1#-I}" mingw
165 set x "$@" -I"$file"
166 shift
167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -l*)
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
182 ;;
183 -L*)
184 func_cl_dashL "${1#-L}"
185 ;;
186 -static)
187 shared=false
188 ;;
189 -Wl,*)
190 arg=${1#-Wl,}
191 save_ifs="$IFS"; IFS=','
192 for flag in $arg; do
193 IFS="$save_ifs"
194 linker_opts="$linker_opts $flag"
195 done
196 IFS="$save_ifs"
197 ;;
198 -Xlinker)
199 eat=1
200 linker_opts="$linker_opts $2"
201 ;;
202 -*)
203 set x "$@" "$1"
204 shift
205 ;;
206 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
207 func_file_conv "$1"
208 set x "$@" -Tp"$file"
209 shift
210 ;;
211 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
212 func_file_conv "$1" mingw
213 set x "$@" "$file"
214 shift
215 ;;
216 *)
217 set x "$@" "$1"
218 shift
219 ;;
220 esac
221 fi
222 shift
223 done
224 if test -n "$linker_opts"; then
225 linker_opts="-link$linker_opts"
226 fi
227 exec "$@" $linker_opts
228 exit 1
229 }
230
231 eat=
232
233 case $1 in
234 '')
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
236 exit 1;
237 ;;
238 -h | --h*)
239 cat <<\EOF
240 Usage: compile [--help] [--version] PROGRAM [ARGS]
241
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
244 arguments, and rename the output as expected.
245
246 If you are trying to build a whole package this is not the
247 right script to run: please start by reading the file 'INSTALL'.
248
249 Report bugs to <bug-automake@gnu.org>.
250 EOF
251 exit $?
252 ;;
253 -v | --v*)
254 echo "compile $scriptversion"
255 exit $?
256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
258 func_cl_wrapper "$@" # Doesn't return...
259 ;;
260 esac
261
262 ofile=
263 cfile=
264
265 for arg
266 do
267 if test -n "$eat"; then
268 eat=
269 else
270 case $1 in
271 -o)
272 # configure might choose to run compile as 'compile cc -o foo foo.c'.
273 # So we strip '-o arg' only if arg is an object.
274 eat=1
275 case $2 in
276 *.o | *.obj)
277 ofile=$2
278 ;;
279 *)
280 set x "$@" -o "$2"
281 shift
282 ;;
283 esac
284 ;;
285 *.c)
286 cfile=$1
287 set x "$@" "$1"
288 shift
289 ;;
290 *)
291 set x "$@" "$1"
292 shift
293 ;;
294 esac
295 fi
296 shift
297 done
298
299 if test -z "$ofile" || test -z "$cfile"; then
300 # If no '-o' option was seen then we might have been invoked from a
301 # pattern rule where we don't need one. That is ok -- this is a
302 # normal compilation that the losing compiler can handle. If no
303 # '.c' file was seen then we are probably linking. That is also
304 # ok.
305 exec "$@"
306 fi
307
308 # Name of file we expect compiler to create.
309 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
310
311 # Create the lock directory.
312 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
313 # that we are using for the .o file. Also, base the name on the expected
314 # object file name, since that is what matters with a parallel build.
315 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
316 while true; do
317 if mkdir "$lockdir" >/dev/null 2>&1; then
318 break
319 fi
320 sleep 1
321 done
322 # FIXME: race condition here if user kills between mkdir and trap.
323 trap "rmdir '$lockdir'; exit 1" 1 2 15
324
325 # Run the compile.
326 "$@"
327 ret=$?
328
329 if test -f "$cofile"; then
330 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
331 elif test -f "${cofile}bj"; then
332 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
333 fi
334
335 rmdir "$lockdir"
336 exit $ret
337
338 # Local Variables:
339 # mode: shell-script
340 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # time-stamp-start: "scriptversion="
343 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-end: "; # UTC"
346 # End:
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 # Free Software Foundation, Inc.
5
6 timestamp='2010-08-21'
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-03-01'
75
86 # This file is free software; you can redistribute it and/or modify it
97 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
8 # the Free Software Foundation; either version 3 of the License, or
119 # (at your option) any later version.
1210 #
1311 # This program is distributed in the hope that it will be useful, but
1614 # General Public License for more details.
1715 #
1816 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
2218 #
2319 # As a special exception to the GNU General Public License, if you
2420 # distribute this file as part of a program that contains a
2521 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner. Please send patches (context
30 # diff format) to <config-patches@gnu.org> and include a ChangeLog
31 # entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
3225 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
26 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
3627 #
3728 # You can get the latest version of this script from:
38 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
29 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
30 #
31 # Please send patches to <config-patches@gnu.org>.
32
3933
4034 me=`echo "$0" | sed -e 's,.*/,,'`
4135
4438
4539 Output the configuration name of the system \`$me' is run on.
4640
47 Operation modes:
41 Options:
4842 -h, --help print this help, then exit
4943 -t, --time-stamp print date of last modification, then exit
5044 -v, --version print version number, then exit
5549 GNU config.guess ($timestamp)
5650
5751 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
60 Software Foundation, Inc.
52 Copyright 1992-2018 Free Software Foundation, Inc.
6153
6254 This is free software; see the source for copying conditions. There is NO
6355 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
9183 exit 1
9284 fi
9385
94 trap 'exit 1' HUP INT TERM
86 trap 'exit 1' 1 2 15
9587
9688 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
9789 # compiler to aid in system detection is discouraged as it requires
10597
10698 set_cc_for_build='
10799 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ;
100 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
109101 : ${TMPDIR=/tmp} ;
110102 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111103 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
114106 dummy=$tmp/dummy ;
115107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
116108 case $CC_FOR_BUILD,$HOST_CC,$CC in
117 ,,) echo "int x;" > $dummy.c ;
109 ,,) echo "int x;" > "$dummy.c" ;
118110 for c in cc gcc c89 c99 ; do
119 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
120112 CC_FOR_BUILD="$c"; break ;
121113 fi ;
122114 done ;
139131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141133
134 case "$UNAME_SYSTEM" in
135 Linux|GNU|GNU/*)
136 # If the system lacks a compiler, then just pick glibc.
137 # We could probably try harder.
138 LIBC=gnu
139
140 eval "$set_cc_for_build"
141 cat <<-EOF > "$dummy.c"
142 #include <features.h>
143 #if defined(__UCLIBC__)
144 LIBC=uclibc
145 #elif defined(__dietlibc__)
146 LIBC=dietlibc
147 #else
148 LIBC=gnu
149 #endif
150 EOF
151 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
152
153 # If ldd exists, use it to detect musl libc.
154 if command -v ldd >/dev/null && \
155 ldd --version 2>&1 | grep -q ^musl
156 then
157 LIBC=musl
158 fi
159 ;;
160 esac
161
142162 # Note: order is significant - the case branches are not exclusive.
143163
144 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
164 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
145165 *:NetBSD:*:*)
146166 # NetBSD (nbsd) targets should (where applicable) match one or
147 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
167 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
148168 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149169 # switched to ELF, *-*-netbsd* would select the old
150170 # object file format. This provides both forward
154174 # Note: NetBSD doesn't particularly care about the vendor
155175 # portion of the name. We always set it to "unknown".
156176 sysctl="sysctl -n hw.machine_arch"
157 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
158 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
159 case "${UNAME_MACHINE_ARCH}" in
177 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
178 "/sbin/$sysctl" 2>/dev/null || \
179 "/usr/sbin/$sysctl" 2>/dev/null || \
180 echo unknown)`
181 case "$UNAME_MACHINE_ARCH" in
160182 armeb) machine=armeb-unknown ;;
161183 arm*) machine=arm-unknown ;;
162184 sh3el) machine=shl-unknown ;;
163185 sh3eb) machine=sh-unknown ;;
164186 sh5el) machine=sh5le-unknown ;;
165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
187 earmv*)
188 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
189 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
190 machine="${arch}${endian}"-unknown
191 ;;
192 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
166193 esac
167194 # The Operating System including object format, if it has switched
168 # to ELF recently, or will in the future.
169 case "${UNAME_MACHINE_ARCH}" in
195 # to ELF recently (or will in the future) and ABI.
196 case "$UNAME_MACHINE_ARCH" in
197 earm*)
198 os=netbsdelf
199 ;;
170200 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
171 eval $set_cc_for_build
201 eval "$set_cc_for_build"
172202 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173203 | grep -q __ELF__
174204 then
180210 fi
181211 ;;
182212 *)
183 os=netbsd
213 os=netbsd
214 ;;
215 esac
216 # Determine ABI tags.
217 case "$UNAME_MACHINE_ARCH" in
218 earm*)
219 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
220 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
184221 ;;
185222 esac
186223 # The OS release
188225 # thus, need a distinct triplet. However, they do not need
189226 # kernel version information, so it can be replaced with a
190227 # suitable tag, in the style of linux-gnu.
191 case "${UNAME_VERSION}" in
228 case "$UNAME_VERSION" in
192229 Debian*)
193230 release='-gnu'
194231 ;;
195232 *)
196 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
233 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
197234 ;;
198235 esac
199236 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
200237 # contains redundant information, the shorter form:
201238 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
202 echo "${machine}-${os}${release}"
239 echo "$machine-${os}${release}${abi}"
240 exit ;;
241 *:Bitrig:*:*)
242 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
243 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
203244 exit ;;
204245 *:OpenBSD:*:*)
205246 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
247 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
248 exit ;;
249 *:LibertyBSD:*:*)
250 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
251 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
252 exit ;;
253 *:MidnightBSD:*:*)
254 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
207255 exit ;;
208256 *:ekkoBSD:*:*)
209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
257 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
210258 exit ;;
211259 *:SolidBSD:*:*)
212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
260 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
213261 exit ;;
214262 macppc:MirBSD:*:*)
215 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
263 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
216264 exit ;;
217265 *:MirBSD:*:*)
218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
219 exit ;;
266 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
267 exit ;;
268 *:Sortix:*:*)
269 echo "$UNAME_MACHINE"-unknown-sortix
270 exit ;;
271 *:Redox:*:*)
272 echo "$UNAME_MACHINE"-unknown-redox
273 exit ;;
274 mips:OSF1:*.*)
275 echo mips-dec-osf1
276 exit ;;
220277 alpha:OSF1:*:*)
221278 case $UNAME_RELEASE in
222279 *4.0)
223280 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
224281 ;;
225282 *5.*)
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
283 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
227284 ;;
228285 esac
229286 # According to Compaq, /usr/sbin/psrinfo has been available on
233290 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
234291 case "$ALPHA_CPU_TYPE" in
235292 "EV4 (21064)")
236 UNAME_MACHINE="alpha" ;;
293 UNAME_MACHINE=alpha ;;
237294 "EV4.5 (21064)")
238 UNAME_MACHINE="alpha" ;;
295 UNAME_MACHINE=alpha ;;
239296 "LCA4 (21066/21068)")
240 UNAME_MACHINE="alpha" ;;
297 UNAME_MACHINE=alpha ;;
241298 "EV5 (21164)")
242 UNAME_MACHINE="alphaev5" ;;
299 UNAME_MACHINE=alphaev5 ;;
243300 "EV5.6 (21164A)")
244 UNAME_MACHINE="alphaev56" ;;
301 UNAME_MACHINE=alphaev56 ;;
245302 "EV5.6 (21164PC)")
246 UNAME_MACHINE="alphapca56" ;;
303 UNAME_MACHINE=alphapca56 ;;
247304 "EV5.7 (21164PC)")
248 UNAME_MACHINE="alphapca57" ;;
305 UNAME_MACHINE=alphapca57 ;;
249306 "EV6 (21264)")
250 UNAME_MACHINE="alphaev6" ;;
307 UNAME_MACHINE=alphaev6 ;;
251308 "EV6.7 (21264A)")
252 UNAME_MACHINE="alphaev67" ;;
309 UNAME_MACHINE=alphaev67 ;;
253310 "EV6.8CB (21264C)")
254 UNAME_MACHINE="alphaev68" ;;
311 UNAME_MACHINE=alphaev68 ;;
255312 "EV6.8AL (21264B)")
256 UNAME_MACHINE="alphaev68" ;;
313 UNAME_MACHINE=alphaev68 ;;
257314 "EV6.8CX (21264D)")
258 UNAME_MACHINE="alphaev68" ;;
315 UNAME_MACHINE=alphaev68 ;;
259316 "EV6.9A (21264/EV69A)")
260 UNAME_MACHINE="alphaev69" ;;
317 UNAME_MACHINE=alphaev69 ;;
261318 "EV7 (21364)")
262 UNAME_MACHINE="alphaev7" ;;
319 UNAME_MACHINE=alphaev7 ;;
263320 "EV7.9 (21364A)")
264 UNAME_MACHINE="alphaev79" ;;
321 UNAME_MACHINE=alphaev79 ;;
265322 esac
266323 # A Pn.n version is a patched version.
267324 # A Vn.n version is a released version.
268325 # A Tn.n version is a released field test version.
269326 # A Xn.n version is an unreleased experimental baselevel.
270327 # 1.2 uses "1.2" for uname -r.
271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
272 exit ;;
273 Alpha\ *:Windows_NT*:*)
274 # How do we know it's Interix rather than the generic POSIX subsystem?
275 # Should we change UNAME_MACHINE based on the output of uname instead
276 # of the specific Alpha model?
277 echo alpha-pc-interix
278 exit ;;
279 21064:Windows_NT:50:3)
280 echo alpha-dec-winnt3.5
281 exit ;;
328 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
329 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
330 exitcode=$?
331 trap '' 0
332 exit $exitcode ;;
282333 Amiga*:UNIX_System_V:4.0:*)
283334 echo m68k-unknown-sysv4
284335 exit ;;
285336 *:[Aa]miga[Oo][Ss]:*:*)
286 echo ${UNAME_MACHINE}-unknown-amigaos
337 echo "$UNAME_MACHINE"-unknown-amigaos
287338 exit ;;
288339 *:[Mm]orph[Oo][Ss]:*:*)
289 echo ${UNAME_MACHINE}-unknown-morphos
340 echo "$UNAME_MACHINE"-unknown-morphos
290341 exit ;;
291342 *:OS/390:*:*)
292343 echo i370-ibm-openedition
295346 echo s390-ibm-zvmoe
296347 exit ;;
297348 *:OS400:*:*)
298 echo powerpc-ibm-os400
349 echo powerpc-ibm-os400
299350 exit ;;
300351 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
301 echo arm-acorn-riscix${UNAME_RELEASE}
302 exit ;;
303 arm:riscos:*:*|arm:RISCOS:*:*)
352 echo arm-acorn-riscix"$UNAME_RELEASE"
353 exit ;;
354 arm*:riscos:*:*|arm*:RISCOS:*:*)
304355 echo arm-unknown-riscos
305356 exit ;;
306357 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
325376 sparc) echo sparc-icl-nx7; exit ;;
326377 esac ;;
327378 s390x:SunOS:*:*)
328 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
379 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
329380 exit ;;
330381 sun4H:SunOS:5.*:*)
331 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
382 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
332383 exit ;;
333384 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
334 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
385 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
335386 exit ;;
336387 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
337 echo i386-pc-auroraux${UNAME_RELEASE}
388 echo i386-pc-auroraux"$UNAME_RELEASE"
338389 exit ;;
339390 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
340 eval $set_cc_for_build
341 SUN_ARCH="i386"
391 eval "$set_cc_for_build"
392 SUN_ARCH=i386
342393 # If there is a compiler, see if it is configured for 64-bit objects.
343394 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
344395 # This test works for both compilers.
345 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
396 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
346397 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
347 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
398 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
348399 grep IS_64BIT_ARCH >/dev/null
349400 then
350 SUN_ARCH="x86_64"
401 SUN_ARCH=x86_64
351402 fi
352403 fi
353 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
354405 exit ;;
355406 sun4*:SunOS:6*:*)
356407 # According to config.sub, this is the proper way to canonicalize
357408 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
358409 # it's likely to be more like Solaris than SunOS4.
359 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
410 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
360411 exit ;;
361412 sun4*:SunOS:*:*)
362413 case "`/usr/bin/arch -k`" in
365416 ;;
366417 esac
367418 # Japanese Language versions have a version number like `4.1.3-JL'.
368 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
419 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
369420 exit ;;
370421 sun3*:SunOS:*:*)
371 echo m68k-sun-sunos${UNAME_RELEASE}
422 echo m68k-sun-sunos"$UNAME_RELEASE"
372423 exit ;;
373424 sun*:*:4.2BSD:*)
374425 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
375 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
426 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
376427 case "`/bin/arch`" in
377428 sun3)
378 echo m68k-sun-sunos${UNAME_RELEASE}
429 echo m68k-sun-sunos"$UNAME_RELEASE"
379430 ;;
380431 sun4)
381 echo sparc-sun-sunos${UNAME_RELEASE}
432 echo sparc-sun-sunos"$UNAME_RELEASE"
382433 ;;
383434 esac
384435 exit ;;
385436 aushp:SunOS:*:*)
386 echo sparc-auspex-sunos${UNAME_RELEASE}
437 echo sparc-auspex-sunos"$UNAME_RELEASE"
387438 exit ;;
388439 # The situation for MiNT is a little confusing. The machine name
389440 # can be virtually everything (everything which is not
394445 # MiNT. But MiNT is downward compatible to TOS, so this should
395446 # be no problem.
396447 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
397 echo m68k-atari-mint${UNAME_RELEASE}
448 echo m68k-atari-mint"$UNAME_RELEASE"
398449 exit ;;
399450 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
400 echo m68k-atari-mint${UNAME_RELEASE}
401 exit ;;
451 echo m68k-atari-mint"$UNAME_RELEASE"
452 exit ;;
402453 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
403 echo m68k-atari-mint${UNAME_RELEASE}
454 echo m68k-atari-mint"$UNAME_RELEASE"
404455 exit ;;
405456 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
406 echo m68k-milan-mint${UNAME_RELEASE}
407 exit ;;
457 echo m68k-milan-mint"$UNAME_RELEASE"
458 exit ;;
408459 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
409 echo m68k-hades-mint${UNAME_RELEASE}
410 exit ;;
460 echo m68k-hades-mint"$UNAME_RELEASE"
461 exit ;;
411462 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
412 echo m68k-unknown-mint${UNAME_RELEASE}
413 exit ;;
463 echo m68k-unknown-mint"$UNAME_RELEASE"
464 exit ;;
414465 m68k:machten:*:*)
415 echo m68k-apple-machten${UNAME_RELEASE}
466 echo m68k-apple-machten"$UNAME_RELEASE"
416467 exit ;;
417468 powerpc:machten:*:*)
418 echo powerpc-apple-machten${UNAME_RELEASE}
469 echo powerpc-apple-machten"$UNAME_RELEASE"
419470 exit ;;
420471 RISC*:Mach:*:*)
421472 echo mips-dec-mach_bsd4.3
422473 exit ;;
423474 RISC*:ULTRIX:*:*)
424 echo mips-dec-ultrix${UNAME_RELEASE}
475 echo mips-dec-ultrix"$UNAME_RELEASE"
425476 exit ;;
426477 VAX*:ULTRIX*:*:*)
427 echo vax-dec-ultrix${UNAME_RELEASE}
478 echo vax-dec-ultrix"$UNAME_RELEASE"
428479 exit ;;
429480 2020:CLIX:*:* | 2430:CLIX:*:*)
430 echo clipper-intergraph-clix${UNAME_RELEASE}
481 echo clipper-intergraph-clix"$UNAME_RELEASE"
431482 exit ;;
432483 mips:*:*:UMIPS | mips:*:*:RISCos)
433 eval $set_cc_for_build
434 sed 's/^ //' << EOF >$dummy.c
484 eval "$set_cc_for_build"
485 sed 's/^ //' << EOF > "$dummy.c"
435486 #ifdef __cplusplus
436487 #include <stdio.h> /* for printf() prototype */
437488 int main (int argc, char *argv[]) {
440491 #endif
441492 #if defined (host_mips) && defined (MIPSEB)
442493 #if defined (SYSTYPE_SYSV)
443 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
494 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
444495 #endif
445496 #if defined (SYSTYPE_SVR4)
446 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
497 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
447498 #endif
448499 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
449 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
500 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
450501 #endif
451502 #endif
452503 exit (-1);
453504 }
454505 EOF
455 $CC_FOR_BUILD -o $dummy $dummy.c &&
456 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
457 SYSTEM_NAME=`$dummy $dummyarg` &&
506 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
507 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
508 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
458509 { echo "$SYSTEM_NAME"; exit; }
459 echo mips-mips-riscos${UNAME_RELEASE}
510 echo mips-mips-riscos"$UNAME_RELEASE"
460511 exit ;;
461512 Motorola:PowerMAX_OS:*:*)
462513 echo powerpc-motorola-powermax
480531 echo m88k-motorola-sysv3
481532 exit ;;
482533 AViiON:dgux:*:*)
483 # DG/UX returns AViiON for all architectures
484 UNAME_PROCESSOR=`/usr/bin/uname -p`
485 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
534 # DG/UX returns AViiON for all architectures
535 UNAME_PROCESSOR=`/usr/bin/uname -p`
536 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
486537 then
487 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
488 [ ${TARGET_BINARY_INTERFACE}x = x ]
538 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
539 [ "$TARGET_BINARY_INTERFACE"x = x ]
489540 then
490 echo m88k-dg-dgux${UNAME_RELEASE}
541 echo m88k-dg-dgux"$UNAME_RELEASE"
491542 else
492 echo m88k-dg-dguxbcs${UNAME_RELEASE}
543 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
493544 fi
494545 else
495 echo i586-dg-dgux${UNAME_RELEASE}
496 fi
497 exit ;;
546 echo i586-dg-dgux"$UNAME_RELEASE"
547 fi
548 exit ;;
498549 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
499550 echo m88k-dolphin-sysv3
500551 exit ;;
509560 echo m68k-tektronix-bsd
510561 exit ;;
511562 *:IRIX*:*:*)
512 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
563 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
513564 exit ;;
514565 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
515566 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
521572 if [ -x /usr/bin/oslevel ] ; then
522573 IBM_REV=`/usr/bin/oslevel`
523574 else
524 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
525 fi
526 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
575 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
576 fi
577 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
527578 exit ;;
528579 *:AIX:2:3)
529580 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
530 eval $set_cc_for_build
531 sed 's/^ //' << EOF >$dummy.c
581 eval "$set_cc_for_build"
582 sed 's/^ //' << EOF > "$dummy.c"
532583 #include <sys/systemcfg.h>
533584
534585 main()
539590 exit(0);
540591 }
541592 EOF
542 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
593 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
543594 then
544595 echo "$SYSTEM_NAME"
545596 else
553604 exit ;;
554605 *:AIX:*:[4567])
555606 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
556 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
607 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
557608 IBM_ARCH=rs6000
558609 else
559610 IBM_ARCH=powerpc
560611 fi
561 if [ -x /usr/bin/oslevel ] ; then
562 IBM_REV=`/usr/bin/oslevel`
612 if [ -x /usr/bin/lslpp ] ; then
613 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
614 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
563615 else
564 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
565 fi
566 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
616 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
617 fi
618 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
567619 exit ;;
568620 *:AIX:*:*)
569621 echo rs6000-ibm-aix
570622 exit ;;
571 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
623 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
572624 echo romp-ibm-bsd4.4
573625 exit ;;
574626 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
575 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
627 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
576628 exit ;; # report: romp-ibm BSD 4.3
577629 *:BOSX:*:*)
578630 echo rs6000-bull-bosx
587639 echo m68k-hp-bsd4.4
588640 exit ;;
589641 9000/[34678]??:HP-UX:*:*)
590 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
591 case "${UNAME_MACHINE}" in
592 9000/31? ) HP_ARCH=m68000 ;;
593 9000/[34]?? ) HP_ARCH=m68k ;;
642 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
643 case "$UNAME_MACHINE" in
644 9000/31?) HP_ARCH=m68000 ;;
645 9000/[34]??) HP_ARCH=m68k ;;
594646 9000/[678][0-9][0-9])
595647 if [ -x /usr/bin/getconf ]; then
596648 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
597 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
598 case "${sc_cpu_version}" in
599 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
600 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
601 532) # CPU_PA_RISC2_0
602 case "${sc_kernel_bits}" in
603 32) HP_ARCH="hppa2.0n" ;;
604 64) HP_ARCH="hppa2.0w" ;;
605 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
606 esac ;;
607 esac
649 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
650 case "$sc_cpu_version" in
651 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
652 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
653 532) # CPU_PA_RISC2_0
654 case "$sc_kernel_bits" in
655 32) HP_ARCH=hppa2.0n ;;
656 64) HP_ARCH=hppa2.0w ;;
657 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
658 esac ;;
659 esac
608660 fi
609 if [ "${HP_ARCH}" = "" ]; then
610 eval $set_cc_for_build
611 sed 's/^ //' << EOF >$dummy.c
612
613 #define _HPUX_SOURCE
614 #include <stdlib.h>
615 #include <unistd.h>
616
617 int main ()
618 {
619 #if defined(_SC_KERNEL_BITS)
620 long bits = sysconf(_SC_KERNEL_BITS);
621 #endif
622 long cpu = sysconf (_SC_CPU_VERSION);
623
624 switch (cpu)
625 {
626 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
627 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
628 case CPU_PA_RISC2_0:
629 #if defined(_SC_KERNEL_BITS)
630 switch (bits)
631 {
632 case 64: puts ("hppa2.0w"); break;
633 case 32: puts ("hppa2.0n"); break;
634 default: puts ("hppa2.0"); break;
635 } break;
636 #else /* !defined(_SC_KERNEL_BITS) */
637 puts ("hppa2.0"); break;
638 #endif
639 default: puts ("hppa1.0"); break;
640 }
641 exit (0);
642 }
661 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
663 sed 's/^ //' << EOF > "$dummy.c"
664
665 #define _HPUX_SOURCE
666 #include <stdlib.h>
667 #include <unistd.h>
668
669 int main ()
670 {
671 #if defined(_SC_KERNEL_BITS)
672 long bits = sysconf(_SC_KERNEL_BITS);
673 #endif
674 long cpu = sysconf (_SC_CPU_VERSION);
675
676 switch (cpu)
677 {
678 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
679 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
680 case CPU_PA_RISC2_0:
681 #if defined(_SC_KERNEL_BITS)
682 switch (bits)
683 {
684 case 64: puts ("hppa2.0w"); break;
685 case 32: puts ("hppa2.0n"); break;
686 default: puts ("hppa2.0"); break;
687 } break;
688 #else /* !defined(_SC_KERNEL_BITS) */
689 puts ("hppa2.0"); break;
690 #endif
691 default: puts ("hppa1.0"); break;
692 }
693 exit (0);
694 }
643695 EOF
644 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
696 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
645697 test -z "$HP_ARCH" && HP_ARCH=hppa
646698 fi ;;
647699 esac
648 if [ ${HP_ARCH} = "hppa2.0w" ]
700 if [ "$HP_ARCH" = hppa2.0w ]
649701 then
650 eval $set_cc_for_build
702 eval "$set_cc_for_build"
651703
652704 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
653705 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
658710 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
659711 # => hppa64-hp-hpux11.23
660712
661 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
713 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
662714 grep -q __LP64__
663715 then
664 HP_ARCH="hppa2.0w"
716 HP_ARCH=hppa2.0w
665717 else
666 HP_ARCH="hppa64"
718 HP_ARCH=hppa64
667719 fi
668720 fi
669 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
721 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
670722 exit ;;
671723 ia64:HP-UX:*:*)
672 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
673 echo ia64-hp-hpux${HPUX_REV}
724 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
725 echo ia64-hp-hpux"$HPUX_REV"
674726 exit ;;
675727 3050*:HI-UX:*:*)
676 eval $set_cc_for_build
677 sed 's/^ //' << EOF >$dummy.c
728 eval "$set_cc_for_build"
729 sed 's/^ //' << EOF > "$dummy.c"
678730 #include <unistd.h>
679731 int
680732 main ()
699751 exit (0);
700752 }
701753 EOF
702 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
754 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
703755 { echo "$SYSTEM_NAME"; exit; }
704756 echo unknown-hitachi-hiuxwe2
705757 exit ;;
706 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
758 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
707759 echo hppa1.1-hp-bsd
708760 exit ;;
709761 9000/8??:4.3bsd:*:*)
712764 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
713765 echo hppa1.0-hp-mpeix
714766 exit ;;
715 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
767 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
716768 echo hppa1.1-hp-osf
717769 exit ;;
718770 hp8??:OSF1:*:*)
720772 exit ;;
721773 i*86:OSF1:*:*)
722774 if [ -x /usr/sbin/sysversion ] ; then
723 echo ${UNAME_MACHINE}-unknown-osf1mk
775 echo "$UNAME_MACHINE"-unknown-osf1mk
724776 else
725 echo ${UNAME_MACHINE}-unknown-osf1
777 echo "$UNAME_MACHINE"-unknown-osf1
726778 fi
727779 exit ;;
728780 parisc*:Lites*:*:*)
730782 exit ;;
731783 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
732784 echo c1-convex-bsd
733 exit ;;
785 exit ;;
734786 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
735787 if getsysinfo -f scalar_acc
736788 then echo c32-convex-bsd
737789 else echo c2-convex-bsd
738790 fi
739 exit ;;
791 exit ;;
740792 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
741793 echo c34-convex-bsd
742 exit ;;
794 exit ;;
743795 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
744796 echo c38-convex-bsd
745 exit ;;
797 exit ;;
746798 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
747799 echo c4-convex-bsd
748 exit ;;
800 exit ;;
749801 CRAY*Y-MP:*:*:*)
750 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
802 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
751803 exit ;;
752804 CRAY*[A-Z]90:*:*:*)
753 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
805 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
754806 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
755807 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
756808 -e 's/\.[^.]*$/.X/'
757809 exit ;;
758810 CRAY*TS:*:*:*)
759 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
811 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
760812 exit ;;
761813 CRAY*T3E:*:*:*)
762 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
814 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
763815 exit ;;
764816 CRAY*SV1:*:*:*)
765 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
817 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
766818 exit ;;
767819 *:UNICOS/mp:*:*)
768 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
820 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
769821 exit ;;
770822 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
771 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
772 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
773 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
774 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
775 exit ;;
823 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
824 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
825 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
826 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
827 exit ;;
776828 5000:UNIX_System_V:4.*:*)
777 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
778 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
779 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
829 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
830 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
831 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
780832 exit ;;
781833 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
782 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
834 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
783835 exit ;;
784836 sparc*:BSD/OS:*:*)
785 echo sparc-unknown-bsdi${UNAME_RELEASE}
837 echo sparc-unknown-bsdi"$UNAME_RELEASE"
786838 exit ;;
787839 *:BSD/OS:*:*)
788 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
840 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
789841 exit ;;
790842 *:FreeBSD:*:*)
791 case ${UNAME_MACHINE} in
792 pc98)
793 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
843 UNAME_PROCESSOR=`/usr/bin/uname -p`
844 case "$UNAME_PROCESSOR" in
794845 amd64)
795 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
796 *)
797 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
846 UNAME_PROCESSOR=x86_64 ;;
847 i386)
848 UNAME_PROCESSOR=i586 ;;
798849 esac
850 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
799851 exit ;;
800852 i*:CYGWIN*:*)
801 echo ${UNAME_MACHINE}-pc-cygwin
853 echo "$UNAME_MACHINE"-pc-cygwin
854 exit ;;
855 *:MINGW64*:*)
856 echo "$UNAME_MACHINE"-pc-mingw64
802857 exit ;;
803858 *:MINGW*:*)
804 echo ${UNAME_MACHINE}-pc-mingw32
805 exit ;;
806 i*:windows32*:*)
807 # uname -m includes "-pc" on this system.
808 echo ${UNAME_MACHINE}-mingw32
859 echo "$UNAME_MACHINE"-pc-mingw32
860 exit ;;
861 *:MSYS*:*)
862 echo "$UNAME_MACHINE"-pc-msys
809863 exit ;;
810864 i*:PW*:*)
811 echo ${UNAME_MACHINE}-pc-pw32
865 echo "$UNAME_MACHINE"-pc-pw32
812866 exit ;;
813867 *:Interix*:*)
814 case ${UNAME_MACHINE} in
868 case "$UNAME_MACHINE" in
815869 x86)
816 echo i586-pc-interix${UNAME_RELEASE}
870 echo i586-pc-interix"$UNAME_RELEASE"
817871 exit ;;
818872 authenticamd | genuineintel | EM64T)
819 echo x86_64-unknown-interix${UNAME_RELEASE}
873 echo x86_64-unknown-interix"$UNAME_RELEASE"
820874 exit ;;
821875 IA64)
822 echo ia64-unknown-interix${UNAME_RELEASE}
876 echo ia64-unknown-interix"$UNAME_RELEASE"
823877 exit ;;
824878 esac ;;
825 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
826 echo i${UNAME_MACHINE}-pc-mks
827 exit ;;
828 8664:Windows_NT:*)
829 echo x86_64-pc-mks
830 exit ;;
831 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
832 # How do we know it's Interix rather than the generic POSIX subsystem?
833 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
834 # UNAME_MACHINE based on the output of uname instead of i386?
835 echo i586-pc-interix
836 exit ;;
837879 i*:UWIN*:*)
838 echo ${UNAME_MACHINE}-pc-uwin
880 echo "$UNAME_MACHINE"-pc-uwin
839881 exit ;;
840882 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
841883 echo x86_64-unknown-cygwin
842884 exit ;;
843 p*:CYGWIN*:*)
844 echo powerpcle-unknown-cygwin
845 exit ;;
846885 prep*:SunOS:5.*:*)
847 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
886 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
848887 exit ;;
849888 *:GNU:*:*)
850889 # the GNU system
851 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
890 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
852891 exit ;;
853892 *:GNU/*:*:*)
854893 # other systems with GNU libc and userland
855 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
894 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
856895 exit ;;
857896 i*86:Minix:*:*)
858 echo ${UNAME_MACHINE}-pc-minix
897 echo "$UNAME_MACHINE"-pc-minix
898 exit ;;
899 aarch64:Linux:*:*)
900 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
901 exit ;;
902 aarch64_be:Linux:*:*)
903 UNAME_MACHINE=aarch64_be
904 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
859905 exit ;;
860906 alpha:Linux:*:*)
861907 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
866912 EV6) UNAME_MACHINE=alphaev6 ;;
867913 EV67) UNAME_MACHINE=alphaev67 ;;
868914 EV68*) UNAME_MACHINE=alphaev68 ;;
869 esac
915 esac
870916 objdump --private-headers /bin/sh | grep -q ld.so.1
871 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
872 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
917 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
918 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
919 exit ;;
920 arc:Linux:*:* | arceb:Linux:*:*)
921 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
873922 exit ;;
874923 arm*:Linux:*:*)
875 eval $set_cc_for_build
924 eval "$set_cc_for_build"
876925 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
877926 | grep -q __ARM_EABI__
878927 then
879 echo ${UNAME_MACHINE}-unknown-linux-gnu
928 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
880929 else
881 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
930 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
931 | grep -q __ARM_PCS_VFP
932 then
933 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
934 else
935 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
936 fi
882937 fi
883938 exit ;;
884939 avr32*:Linux:*:*)
885 echo ${UNAME_MACHINE}-unknown-linux-gnu
940 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
886941 exit ;;
887942 cris:Linux:*:*)
888 echo cris-axis-linux-gnu
943 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
889944 exit ;;
890945 crisv32:Linux:*:*)
891 echo crisv32-axis-linux-gnu
946 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
947 exit ;;
948 e2k:Linux:*:*)
949 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
892950 exit ;;
893951 frv:Linux:*:*)
894 echo frv-unknown-linux-gnu
952 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
953 exit ;;
954 hexagon:Linux:*:*)
955 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
895956 exit ;;
896957 i*86:Linux:*:*)
897 LIBC=gnu
898 eval $set_cc_for_build
899 sed 's/^ //' << EOF >$dummy.c
900 #ifdef __dietlibc__
901 LIBC=dietlibc
902 #endif
903 EOF
904 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
905 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
958 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
906959 exit ;;
907960 ia64:Linux:*:*)
908 echo ${UNAME_MACHINE}-unknown-linux-gnu
961 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
962 exit ;;
963 k1om:Linux:*:*)
964 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
909965 exit ;;
910966 m32r*:Linux:*:*)
911 echo ${UNAME_MACHINE}-unknown-linux-gnu
967 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
912968 exit ;;
913969 m68*:Linux:*:*)
914 echo ${UNAME_MACHINE}-unknown-linux-gnu
970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
915971 exit ;;
916972 mips:Linux:*:* | mips64:Linux:*:*)
917 eval $set_cc_for_build
918 sed 's/^ //' << EOF >$dummy.c
973 eval "$set_cc_for_build"
974 sed 's/^ //' << EOF > "$dummy.c"
919975 #undef CPU
920976 #undef ${UNAME_MACHINE}
921977 #undef ${UNAME_MACHINE}el
929985 #endif
930986 #endif
931987 EOF
932 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
933 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
988 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
989 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
934990 ;;
935 or32:Linux:*:*)
936 echo or32-unknown-linux-gnu
991 mips64el:Linux:*:*)
992 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
993 exit ;;
994 openrisc*:Linux:*:*)
995 echo or1k-unknown-linux-"$LIBC"
996 exit ;;
997 or32:Linux:*:* | or1k*:Linux:*:*)
998 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
937999 exit ;;
9381000 padre:Linux:*:*)
939 echo sparc-unknown-linux-gnu
1001 echo sparc-unknown-linux-"$LIBC"
9401002 exit ;;
9411003 parisc64:Linux:*:* | hppa64:Linux:*:*)
942 echo hppa64-unknown-linux-gnu
1004 echo hppa64-unknown-linux-"$LIBC"
9431005 exit ;;
9441006 parisc:Linux:*:* | hppa:Linux:*:*)
9451007 # Look for CPU level
9461008 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
947 PA7*) echo hppa1.1-unknown-linux-gnu ;;
948 PA8*) echo hppa2.0-unknown-linux-gnu ;;
949 *) echo hppa-unknown-linux-gnu ;;
1009 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1010 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1011 *) echo hppa-unknown-linux-"$LIBC" ;;
9501012 esac
9511013 exit ;;
9521014 ppc64:Linux:*:*)
953 echo powerpc64-unknown-linux-gnu
1015 echo powerpc64-unknown-linux-"$LIBC"
9541016 exit ;;
9551017 ppc:Linux:*:*)
956 echo powerpc-unknown-linux-gnu
1018 echo powerpc-unknown-linux-"$LIBC"
1019 exit ;;
1020 ppc64le:Linux:*:*)
1021 echo powerpc64le-unknown-linux-"$LIBC"
1022 exit ;;
1023 ppcle:Linux:*:*)
1024 echo powerpcle-unknown-linux-"$LIBC"
1025 exit ;;
1026 riscv32:Linux:*:* | riscv64:Linux:*:*)
1027 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
9571028 exit ;;
9581029 s390:Linux:*:* | s390x:Linux:*:*)
959 echo ${UNAME_MACHINE}-ibm-linux
1030 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
9601031 exit ;;
9611032 sh64*:Linux:*:*)
962 echo ${UNAME_MACHINE}-unknown-linux-gnu
1033 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
9631034 exit ;;
9641035 sh*:Linux:*:*)
965 echo ${UNAME_MACHINE}-unknown-linux-gnu
1036 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
9661037 exit ;;
9671038 sparc:Linux:*:* | sparc64:Linux:*:*)
968 echo ${UNAME_MACHINE}-unknown-linux-gnu
1039 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
9691040 exit ;;
9701041 tile*:Linux:*:*)
971 echo ${UNAME_MACHINE}-tilera-linux-gnu
1042 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
9721043 exit ;;
9731044 vax:Linux:*:*)
974 echo ${UNAME_MACHINE}-dec-linux-gnu
1045 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
9751046 exit ;;
9761047 x86_64:Linux:*:*)
977 echo x86_64-unknown-linux-gnu
1048 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
9781049 exit ;;
9791050 xtensa*:Linux:*:*)
980 echo ${UNAME_MACHINE}-unknown-linux-gnu
1051 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
9811052 exit ;;
9821053 i*86:DYNIX/ptx:4*:*)
9831054 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
9861057 echo i386-sequent-sysv4
9871058 exit ;;
9881059 i*86:UNIX_SV:4.2MP:2.*)
989 # Unixware is an offshoot of SVR4, but it has its own version
990 # number series starting with 2...
991 # I am not positive that other SVR4 systems won't match this,
1060 # Unixware is an offshoot of SVR4, but it has its own version
1061 # number series starting with 2...
1062 # I am not positive that other SVR4 systems won't match this,
9921063 # I just have to hope. -- rms.
993 # Use sysv4.2uw... so that sysv4* matches it.
994 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1064 # Use sysv4.2uw... so that sysv4* matches it.
1065 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
9951066 exit ;;
9961067 i*86:OS/2:*:*)
9971068 # If we were able to find `uname', then EMX Unix compatibility
9981069 # is probably installed.
999 echo ${UNAME_MACHINE}-pc-os2-emx
1070 echo "$UNAME_MACHINE"-pc-os2-emx
10001071 exit ;;
10011072 i*86:XTS-300:*:STOP)
1002 echo ${UNAME_MACHINE}-unknown-stop
1073 echo "$UNAME_MACHINE"-unknown-stop
10031074 exit ;;
10041075 i*86:atheos:*:*)
1005 echo ${UNAME_MACHINE}-unknown-atheos
1076 echo "$UNAME_MACHINE"-unknown-atheos
10061077 exit ;;
10071078 i*86:syllable:*:*)
1008 echo ${UNAME_MACHINE}-pc-syllable
1079 echo "$UNAME_MACHINE"-pc-syllable
10091080 exit ;;
10101081 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1011 echo i386-unknown-lynxos${UNAME_RELEASE}
1082 echo i386-unknown-lynxos"$UNAME_RELEASE"
10121083 exit ;;
10131084 i*86:*DOS:*:*)
1014 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1015 exit ;;
1016 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1017 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1085 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1086 exit ;;
1087 i*86:*:4.*:*)
1088 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
10181089 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1019 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1090 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
10201091 else
1021 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1092 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
10221093 fi
10231094 exit ;;
10241095 i*86:*:5:[678]*)
1025 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1096 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10261097 case `/bin/uname -X | grep "^Machine"` in
10271098 *486*) UNAME_MACHINE=i486 ;;
10281099 *Pentium) UNAME_MACHINE=i586 ;;
10291100 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
10301101 esac
1031 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1102 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
10321103 exit ;;
10331104 i*86:*:3.2:*)
10341105 if test -f /usr/options/cb.name; then
10351106 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1036 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1107 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
10371108 elif /bin/uname -X 2>/dev/null >/dev/null ; then
10381109 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
10391110 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
10431114 && UNAME_MACHINE=i686
10441115 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
10451116 && UNAME_MACHINE=i686
1046 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1117 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
10471118 else
1048 echo ${UNAME_MACHINE}-pc-sysv32
1119 echo "$UNAME_MACHINE"-pc-sysv32
10491120 fi
10501121 exit ;;
10511122 pc:*:*:*)
10521123 # Left here for compatibility:
1053 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1054 # the processor, so we play safe by assuming i586.
1124 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1125 # the processor, so we play safe by assuming i586.
10551126 # Note: whatever this is, it MUST be the same as what config.sub
1056 # prints for the "djgpp" host, or else GDB configury will decide that
1127 # prints for the "djgpp" host, or else GDB configure will decide that
10571128 # this is a cross-build.
10581129 echo i586-pc-msdosdjgpp
1059 exit ;;
1130 exit ;;
10601131 Intel:Mach:3*:*)
10611132 echo i386-pc-mach3
10621133 exit ;;
10651136 exit ;;
10661137 i860:*:4.*:*) # i860-SVR4
10671138 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1068 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1139 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
10691140 else # Add other i860-SVR4 vendors below as they are discovered.
1070 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1141 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
10711142 fi
10721143 exit ;;
10731144 mini*:CTIX:SYS*5:*)
10871158 test -r /etc/.relid \
10881159 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
10891160 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1090 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1161 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
10911162 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1092 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1163 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
10931164 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1094 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1095 && { echo i486-ncr-sysv4; exit; } ;;
1165 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1166 && { echo i486-ncr-sysv4; exit; } ;;
10961167 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
10971168 OS_REL='.3'
10981169 test -r /etc/.relid \
10991170 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11001171 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1101 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1172 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11021173 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1103 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1174 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
11041175 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1105 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1176 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11061177 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1107 echo m68k-unknown-lynxos${UNAME_RELEASE}
1178 echo m68k-unknown-lynxos"$UNAME_RELEASE"
11081179 exit ;;
11091180 mc68030:UNIX_System_V:4.*:*)
11101181 echo m68k-atari-sysv4
11111182 exit ;;
11121183 TSUNAMI:LynxOS:2.*:*)
1113 echo sparc-unknown-lynxos${UNAME_RELEASE}
1184 echo sparc-unknown-lynxos"$UNAME_RELEASE"
11141185 exit ;;
11151186 rs6000:LynxOS:2.*:*)
1116 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1187 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
11171188 exit ;;
11181189 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1119 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1190 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
11201191 exit ;;
11211192 SM[BE]S:UNIX_SV:*:*)
1122 echo mips-dde-sysv${UNAME_RELEASE}
1193 echo mips-dde-sysv"$UNAME_RELEASE"
11231194 exit ;;
11241195 RM*:ReliantUNIX-*:*:*)
11251196 echo mips-sni-sysv4
11301201 *:SINIX-*:*:*)
11311202 if uname -p 2>/dev/null >/dev/null ; then
11321203 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1133 echo ${UNAME_MACHINE}-sni-sysv4
1204 echo "$UNAME_MACHINE"-sni-sysv4
11341205 else
11351206 echo ns32k-sni-sysv
11361207 fi
11371208 exit ;;
1138 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1139 # says <Richard.M.Bartel@ccMail.Census.GOV>
1140 echo i586-unisys-sysv4
1141 exit ;;
1209 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1210 # says <Richard.M.Bartel@ccMail.Census.GOV>
1211 echo i586-unisys-sysv4
1212 exit ;;
11421213 *:UNIX_System_V:4*:FTX*)
11431214 # From Gerald Hewes <hewes@openmarket.com>.
11441215 # How about differentiating between stratus architectures? -djm
11501221 exit ;;
11511222 i*86:VOS:*:*)
11521223 # From Paul.Green@stratus.com.
1153 echo ${UNAME_MACHINE}-stratus-vos
1224 echo "$UNAME_MACHINE"-stratus-vos
11541225 exit ;;
11551226 *:VOS:*:*)
11561227 # From Paul.Green@stratus.com.
11571228 echo hppa1.1-stratus-vos
11581229 exit ;;
11591230 mc68*:A/UX:*:*)
1160 echo m68k-apple-aux${UNAME_RELEASE}
1231 echo m68k-apple-aux"$UNAME_RELEASE"
11611232 exit ;;
11621233 news*:NEWS-OS:6*:*)
11631234 echo mips-sony-newsos6
11641235 exit ;;
11651236 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
11661237 if [ -d /usr/nec ]; then
1167 echo mips-nec-sysv${UNAME_RELEASE}
1238 echo mips-nec-sysv"$UNAME_RELEASE"
11681239 else
1169 echo mips-unknown-sysv${UNAME_RELEASE}
1170 fi
1171 exit ;;
1240 echo mips-unknown-sysv"$UNAME_RELEASE"
1241 fi
1242 exit ;;
11721243 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
11731244 echo powerpc-be-beos
11741245 exit ;;
11811252 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
11821253 echo i586-pc-haiku
11831254 exit ;;
1255 x86_64:Haiku:*:*)
1256 echo x86_64-unknown-haiku
1257 exit ;;
11841258 SX-4:SUPER-UX:*:*)
1185 echo sx4-nec-superux${UNAME_RELEASE}
1259 echo sx4-nec-superux"$UNAME_RELEASE"
11861260 exit ;;
11871261 SX-5:SUPER-UX:*:*)
1188 echo sx5-nec-superux${UNAME_RELEASE}
1262 echo sx5-nec-superux"$UNAME_RELEASE"
11891263 exit ;;
11901264 SX-6:SUPER-UX:*:*)
1191 echo sx6-nec-superux${UNAME_RELEASE}
1265 echo sx6-nec-superux"$UNAME_RELEASE"
11921266 exit ;;
11931267 SX-7:SUPER-UX:*:*)
1194 echo sx7-nec-superux${UNAME_RELEASE}
1268 echo sx7-nec-superux"$UNAME_RELEASE"
11951269 exit ;;
11961270 SX-8:SUPER-UX:*:*)
1197 echo sx8-nec-superux${UNAME_RELEASE}
1271 echo sx8-nec-superux"$UNAME_RELEASE"
11981272 exit ;;
11991273 SX-8R:SUPER-UX:*:*)
1200 echo sx8r-nec-superux${UNAME_RELEASE}
1274 echo sx8r-nec-superux"$UNAME_RELEASE"
1275 exit ;;
1276 SX-ACE:SUPER-UX:*:*)
1277 echo sxace-nec-superux"$UNAME_RELEASE"
12011278 exit ;;
12021279 Power*:Rhapsody:*:*)
1203 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1280 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
12041281 exit ;;
12051282 *:Rhapsody:*:*)
1206 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1283 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
12071284 exit ;;
12081285 *:Darwin:*:*)
12091286 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1210 case $UNAME_PROCESSOR in
1211 i386)
1212 eval $set_cc_for_build
1213 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1214 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1215 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1216 grep IS_64BIT_ARCH >/dev/null
1217 then
1218 UNAME_PROCESSOR="x86_64"
1219 fi
1220 fi ;;
1221 unknown) UNAME_PROCESSOR=powerpc ;;
1222 esac
1223 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1287 eval "$set_cc_for_build"
1288 if test "$UNAME_PROCESSOR" = unknown ; then
1289 UNAME_PROCESSOR=powerpc
1290 fi
1291 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1292 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
1293 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1294 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1295 grep IS_64BIT_ARCH >/dev/null
1296 then
1297 case $UNAME_PROCESSOR in
1298 i386) UNAME_PROCESSOR=x86_64 ;;
1299 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1300 esac
1301 fi
1302 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1303 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1304 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1305 grep IS_PPC >/dev/null
1306 then
1307 UNAME_PROCESSOR=powerpc
1308 fi
1309 fi
1310 elif test "$UNAME_PROCESSOR" = i386 ; then
1311 # Avoid executing cc on OS X 10.9, as it ships with a stub
1312 # that puts up a graphical alert prompting to install
1313 # developer tools. Any system running Mac OS X 10.7 or
1314 # later (Darwin 11 and later) is required to have a 64-bit
1315 # processor. This is not true of the ARM version of Darwin
1316 # that Apple uses in portable devices.
1317 UNAME_PROCESSOR=x86_64
1318 fi
1319 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
12241320 exit ;;
12251321 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12261322 UNAME_PROCESSOR=`uname -p`
1227 if test "$UNAME_PROCESSOR" = "x86"; then
1323 if test "$UNAME_PROCESSOR" = x86; then
12281324 UNAME_PROCESSOR=i386
12291325 UNAME_MACHINE=pc
12301326 fi
1231 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1327 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
12321328 exit ;;
12331329 *:QNX:*:4*)
12341330 echo i386-pc-qnx
12351331 exit ;;
1236 NSE-?:NONSTOP_KERNEL:*:*)
1237 echo nse-tandem-nsk${UNAME_RELEASE}
1238 exit ;;
1239 NSR-?:NONSTOP_KERNEL:*:*)
1240 echo nsr-tandem-nsk${UNAME_RELEASE}
1332 NEO-*:NONSTOP_KERNEL:*:*)
1333 echo neo-tandem-nsk"$UNAME_RELEASE"
1334 exit ;;
1335 NSE-*:NONSTOP_KERNEL:*:*)
1336 echo nse-tandem-nsk"$UNAME_RELEASE"
1337 exit ;;
1338 NSR-*:NONSTOP_KERNEL:*:*)
1339 echo nsr-tandem-nsk"$UNAME_RELEASE"
1340 exit ;;
1341 NSV-*:NONSTOP_KERNEL:*:*)
1342 echo nsv-tandem-nsk"$UNAME_RELEASE"
1343 exit ;;
1344 NSX-*:NONSTOP_KERNEL:*:*)
1345 echo nsx-tandem-nsk"$UNAME_RELEASE"
12411346 exit ;;
12421347 *:NonStop-UX:*:*)
12431348 echo mips-compaq-nonstopux
12461351 echo bs2000-siemens-sysv
12471352 exit ;;
12481353 DS/*:UNIX_System_V:*:*)
1249 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1354 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
12501355 exit ;;
12511356 *:Plan9:*:*)
12521357 # "uname -m" is not consistent, so use $cputype instead. 386
12531358 # is converted to i386 for consistency with other x86
12541359 # operating systems.
1255 if test "$cputype" = "386"; then
1360 if test "$cputype" = 386; then
12561361 UNAME_MACHINE=i386
12571362 else
12581363 UNAME_MACHINE="$cputype"
12591364 fi
1260 echo ${UNAME_MACHINE}-unknown-plan9
1365 echo "$UNAME_MACHINE"-unknown-plan9
12611366 exit ;;
12621367 *:TOPS-10:*:*)
12631368 echo pdp10-unknown-tops10
12781383 echo pdp10-unknown-its
12791384 exit ;;
12801385 SEI:*:*:SEIUX)
1281 echo mips-sei-seiux${UNAME_RELEASE}
1386 echo mips-sei-seiux"$UNAME_RELEASE"
12821387 exit ;;
12831388 *:DragonFly:*:*)
1284 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1389 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
12851390 exit ;;
12861391 *:*VMS:*:*)
1287 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1288 case "${UNAME_MACHINE}" in
1392 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1393 case "$UNAME_MACHINE" in
12891394 A*) echo alpha-dec-vms ; exit ;;
12901395 I*) echo ia64-dec-vms ; exit ;;
12911396 V*) echo vax-dec-vms ; exit ;;
12941399 echo i386-pc-xenix
12951400 exit ;;
12961401 i*86:skyos:*:*)
1297 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1402 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
12981403 exit ;;
12991404 i*86:rdos:*:*)
1300 echo ${UNAME_MACHINE}-pc-rdos
1405 echo "$UNAME_MACHINE"-pc-rdos
13011406 exit ;;
13021407 i*86:AROS:*:*)
1303 echo ${UNAME_MACHINE}-pc-aros
1408 echo "$UNAME_MACHINE"-pc-aros
1409 exit ;;
1410 x86_64:VMkernel:*:*)
1411 echo "$UNAME_MACHINE"-unknown-esx
1412 exit ;;
1413 amd64:Isilon\ OneFS:*:*)
1414 echo x86_64-unknown-onefs
13041415 exit ;;
13051416 esac
13061417
1307 #echo '(No uname command or uname output not recognized.)' 1>&2
1308 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1309
1310 eval $set_cc_for_build
1311 cat >$dummy.c <<EOF
1312 #ifdef _SEQUENT_
1313 # include <sys/types.h>
1314 # include <sys/utsname.h>
1315 #endif
1316 main ()
1317 {
1318 #if defined (sony)
1319 #if defined (MIPSEB)
1320 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1321 I don't know.... */
1322 printf ("mips-sony-bsd\n"); exit (0);
1323 #else
1324 #include <sys/param.h>
1325 printf ("m68k-sony-newsos%s\n",
1326 #ifdef NEWSOS4
1327 "4"
1328 #else
1329 ""
1330 #endif
1331 ); exit (0);
1332 #endif
1333 #endif
1334
1335 #if defined (__arm) && defined (__acorn) && defined (__unix)
1336 printf ("arm-acorn-riscix\n"); exit (0);
1337 #endif
1338
1339 #if defined (hp300) && !defined (hpux)
1340 printf ("m68k-hp-bsd\n"); exit (0);
1341 #endif
1342
1343 #if defined (NeXT)
1344 #if !defined (__ARCHITECTURE__)
1345 #define __ARCHITECTURE__ "m68k"
1346 #endif
1347 int version;
1348 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1349 if (version < 4)
1350 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1351 else
1352 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1353 exit (0);
1354 #endif
1355
1356 #if defined (MULTIMAX) || defined (n16)
1357 #if defined (UMAXV)
1358 printf ("ns32k-encore-sysv\n"); exit (0);
1359 #else
1360 #if defined (CMU)
1361 printf ("ns32k-encore-mach\n"); exit (0);
1362 #else
1363 printf ("ns32k-encore-bsd\n"); exit (0);
1364 #endif
1365 #endif
1366 #endif
1367
1368 #if defined (__386BSD__)
1369 printf ("i386-pc-bsd\n"); exit (0);
1370 #endif
1371
1372 #if defined (sequent)
1373 #if defined (i386)
1374 printf ("i386-sequent-dynix\n"); exit (0);
1375 #endif
1376 #if defined (ns32000)
1377 printf ("ns32k-sequent-dynix\n"); exit (0);
1378 #endif
1379 #endif
1380
1381 #if defined (_SEQUENT_)
1382 struct utsname un;
1383
1384 uname(&un);
1385
1386 if (strncmp(un.version, "V2", 2) == 0) {
1387 printf ("i386-sequent-ptx2\n"); exit (0);
1388 }
1389 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1390 printf ("i386-sequent-ptx1\n"); exit (0);
1391 }
1392 printf ("i386-sequent-ptx\n"); exit (0);
1393
1394 #endif
1395
1396 #if defined (vax)
1397 # if !defined (ultrix)
1398 # include <sys/param.h>
1399 # if defined (BSD)
1400 # if BSD == 43
1401 printf ("vax-dec-bsd4.3\n"); exit (0);
1402 # else
1403 # if BSD == 199006
1404 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1405 # else
1406 printf ("vax-dec-bsd\n"); exit (0);
1407 # endif
1408 # endif
1409 # else
1410 printf ("vax-dec-bsd\n"); exit (0);
1411 # endif
1412 # else
1413 printf ("vax-dec-ultrix\n"); exit (0);
1414 # endif
1415 #endif
1416
1417 #if defined (alliant) && defined (i860)
1418 printf ("i860-alliant-bsd\n"); exit (0);
1419 #endif
1420
1421 exit (1);
1422 }
1418 echo "$0: unable to guess system type" >&2
1419
1420 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1421 mips:Linux | mips64:Linux)
1422 # If we got here on MIPS GNU/Linux, output extra information.
1423 cat >&2 <<EOF
1424
1425 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1426 the system type. Please install a C compiler and try again.
14231427 EOF
1424
1425 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1426 { echo "$SYSTEM_NAME"; exit; }
1427
1428 # Apollos put the system type in the environment.
1429
1430 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1431
1432 # Convex versions that predate uname can use getsysinfo(1)
1433
1434 if [ -x /usr/convex/getsysinfo ]
1435 then
1436 case `getsysinfo -f cpu_type` in
1437 c1*)
1438 echo c1-convex-bsd
1439 exit ;;
1440 c2*)
1441 if getsysinfo -f scalar_acc
1442 then echo c32-convex-bsd
1443 else echo c2-convex-bsd
1444 fi
1445 exit ;;
1446 c34*)
1447 echo c34-convex-bsd
1448 exit ;;
1449 c38*)
1450 echo c38-convex-bsd
1451 exit ;;
1452 c4*)
1453 echo c4-convex-bsd
1454 exit ;;
1455 esac
1456 fi
1428 ;;
1429 esac
14571430
14581431 cat >&2 <<EOF
1459 $0: unable to guess system type
1460
1461 This script, last modified $timestamp, has failed to recognize
1462 the operating system you are using. It is advised that you
1463 download the most up to date version of the config scripts from
1464
1465 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1432
1433 This script (version $timestamp), has failed to recognize the
1434 operating system you are using. If your script is old, overwrite *all*
1435 copies of config.guess and config.sub with the latest versions from:
1436
1437 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
14661438 and
1467 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1468
1469 If the version you run ($0) is already up to date, please
1470 send the following data and any information you think might be
1471 pertinent to <config-patches@gnu.org> in order to provide the needed
1472 information to handle your system.
1439 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1440
1441 If $0 has already been updated, send the following data and any
1442 information you think might be pertinent to config-patches@gnu.org to
1443 provide the necessary information to handle your system.
14731444
14741445 config.guess timestamp = $timestamp
14751446
14881459 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
14891460 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
14901461
1491 UNAME_MACHINE = ${UNAME_MACHINE}
1492 UNAME_RELEASE = ${UNAME_RELEASE}
1493 UNAME_SYSTEM = ${UNAME_SYSTEM}
1494 UNAME_VERSION = ${UNAME_VERSION}
1462 UNAME_MACHINE = "$UNAME_MACHINE"
1463 UNAME_RELEASE = "$UNAME_RELEASE"
1464 UNAME_SYSTEM = "$UNAME_SYSTEM"
1465 UNAME_VERSION = "$UNAME_VERSION"
14951466 EOF
14961467
14971468 exit 1
14981469
14991470 # Local variables:
1500 # eval: (add-hook 'write-file-hooks 'time-stamp)
1471 # eval: (add-hook 'write-file-functions 'time-stamp)
15011472 # time-stamp-start: "timestamp='"
15021473 # time-stamp-format: "%:y-%02m-%02d"
15031474 # time-stamp-end: "'"
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
4 # Free Software Foundation, Inc.
5
6 timestamp='2010-09-11'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-28'
5
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
159 # (at your option) any later version.
1610 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
2115 #
2216 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
2618 #
2719 # As a special exception to the GNU General Public License, if you
2820 # distribute this file as part of a program that contains a
2921 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted GNU ChangeLog entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
25
26
27 # Please send patches to <config-patches@gnu.org>.
3528 #
3629 # Configuration subroutine to validate and canonicalize a configuration type.
3730 # Supply the specified configuration type as an argument.
3932 # Otherwise, we print the canonical config type on stdout and succeed.
4033
4134 # You can get the latest version of this script from:
42 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
35 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
4336
4437 # This file is supposed to be the same for all GNU packages
4538 # and recognize all the CPU types, system types and aliases
5952 me=`echo "$0" | sed -e 's,.*/,,'`
6053
6154 usage="\
62 Usage: $0 [OPTION] CPU-MFR-OPSYS
63 $0 [OPTION] ALIAS
55 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
6456
6557 Canonicalize a configuration name.
6658
67 Operation modes:
59 Options:
6860 -h, --help print this help, then exit
6961 -t, --time-stamp print date of last modification, then exit
7062 -v, --version print version number, then exit
7466 version="\
7567 GNU config.sub ($timestamp)
7668
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
79 Software Foundation, Inc.
69 Copyright 1992-2018 Free Software Foundation, Inc.
8070
8171 This is free software; see the source for copying conditions. There is NO
8272 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
10393
10494 *local*)
10595 # First pass through any local machine types.
106 echo $1
96 echo "$1"
10797 exit ;;
10898
10999 * )
121111
122112 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
123113 # Here we must recognize all the valid KERNEL-OS combinations.
124 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
114 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
125115 case $maybe_os in
126116 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
127 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
128 knetbsd*-gnu* | netbsd*-gnu* | \
129 kopensolaris*-gnu* | \
117 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
118 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
119 kopensolaris*-gnu* | cloudabi*-eabi* | \
130120 storm-chaos* | os2-emx* | rtmk-nova*)
131121 os=-$maybe_os
132 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
122 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123 ;;
124 android-linux)
125 os=-linux-android
126 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
133127 ;;
134128 *)
135 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
136 if [ $basic_machine != $1 ]
137 then os=`echo $1 | sed 's/.*-/-/'`
129 basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
130 if [ "$basic_machine" != "$1" ]
131 then os=`echo "$1" | sed 's/.*-/-/'`
138132 else os=; fi
139133 ;;
140134 esac
153147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
154148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
155149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
156 -apple | -axis | -knuth | -cray | -microblaze)
150 -apple | -axis | -knuth | -cray | -microblaze*)
157151 os=
158152 basic_machine=$1
159153 ;;
160 -bluegene*)
161 os=-cnk
154 -bluegene*)
155 os=-cnk
162156 ;;
163157 -sim | -cisco | -oki | -wec | -winbond)
164158 os=
174168 os=-chorusos
175169 basic_machine=$1
176170 ;;
177 -chorusrdb)
178 os=-chorusrdb
171 -chorusrdb)
172 os=-chorusrdb
179173 basic_machine=$1
180 ;;
174 ;;
181175 -hiux*)
182176 os=-hiuxwe2
183177 ;;
184178 -sco6)
185179 os=-sco5v6
186 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
180 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
187181 ;;
188182 -sco5)
189183 os=-sco3.2v5
190 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
184 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
191185 ;;
192186 -sco4)
193187 os=-sco3.2v4
194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
188 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
195189 ;;
196190 -sco3.2.[4-9]*)
197191 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
198 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
192 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
199193 ;;
200194 -sco3.2v[4-9]*)
201195 # Don't forget version if it is 3.2v4 or newer.
202 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
196 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
203197 ;;
204198 -sco5v6*)
205199 # Don't forget version if it is 3.2v4 or newer.
206 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
207201 ;;
208202 -sco*)
209203 os=-sco3.2v2
210 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
211205 ;;
212206 -udk*)
213 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
207 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
214208 ;;
215209 -isc)
216210 os=-isc2.2
217 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
211 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
218212 ;;
219213 -clix*)
220214 basic_machine=clipper-intergraph
221215 ;;
222216 -isc*)
223 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
217 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
218 ;;
219 -lynx*178)
220 os=-lynxos178
221 ;;
222 -lynx*5)
223 os=-lynxos5
224224 ;;
225225 -lynx*)
226226 os=-lynxos
227227 ;;
228228 -ptx*)
229 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
230 ;;
231 -windowsnt*)
232 os=`echo $os | sed -e 's/windowsnt/winnt/'`
229 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
233230 ;;
234231 -psos*)
235232 os=-psos
246243 # Some are omitted here because they have special meanings below.
247244 1750a | 580 \
248245 | a29k \
246 | aarch64 | aarch64_be \
249247 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
250248 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
251249 | am33_2.0 \
252 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
250 | arc | arceb \
251 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
252 | avr | avr32 \
253 | ba \
254 | be32 | be64 \
253255 | bfin \
254 | c4x | clipper \
256 | c4x | c8051 | clipper \
255257 | d10v | d30v | dlx | dsp16xx \
256 | fido | fr30 | frv \
258 | e2k | epiphany \
259 | fido | fr30 | frv | ft32 \
257260 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
258 | i370 | i860 | i960 | ia64 \
261 | hexagon \
262 | i370 | i860 | i960 | ia16 | ia64 \
259263 | ip2k | iq2000 \
264 | k1om \
265 | le32 | le64 \
260266 | lm32 \
261267 | m32c | m32r | m32rle | m68000 | m68k | m88k \
262 | maxq | mb | microblaze | mcore | mep | metag \
268 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
263269 | mips | mipsbe | mipseb | mipsel | mipsle \
264270 | mips16 \
265271 | mips64 | mips64el \
273279 | mips64vr5900 | mips64vr5900el \
274280 | mipsisa32 | mipsisa32el \
275281 | mipsisa32r2 | mipsisa32r2el \
282 | mipsisa32r6 | mipsisa32r6el \
276283 | mipsisa64 | mipsisa64el \
277284 | mipsisa64r2 | mipsisa64r2el \
285 | mipsisa64r6 | mipsisa64r6el \
278286 | mipsisa64sb1 | mipsisa64sb1el \
279287 | mipsisa64sr71k | mipsisa64sr71kel \
288 | mipsr5900 | mipsr5900el \
280289 | mipstx39 | mipstx39el \
281290 | mn10200 | mn10300 \
282291 | moxie \
283292 | mt \
284293 | msp430 \
285294 | nds32 | nds32le | nds32be \
286 | nios | nios2 \
295 | nios | nios2 | nios2eb | nios2el \
287296 | ns16k | ns32k \
288 | or32 \
289 | pdp10 | pdp11 | pj | pjl \
290 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
297 | open8 | or1k | or1knd | or32 \
298 | pdp10 | pj | pjl \
299 | powerpc | powerpc64 | powerpc64le | powerpcle \
300 | pru \
291301 | pyramid \
292 | rx \
302 | riscv32 | riscv64 \
303 | rl78 | rx \
293304 | score \
294 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
305 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
295306 | sh64 | sh64le \
296307 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
297308 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
298 | spu | strongarm \
299 | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
309 | spu \
310 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
300311 | ubicom32 \
301 | v850 | v850e \
302 | we32k \
303 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
312 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
313 | visium \
314 | wasm32 \
315 | x86 | xc16x | xstormy16 | xtensa \
304316 | z8k | z80)
305317 basic_machine=$basic_machine-unknown
306318 ;;
313325 c6x)
314326 basic_machine=tic6x-unknown
315327 ;;
316 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
317 # Motorola 68HC11/12.
328 leon|leon[3-9])
329 basic_machine=sparc-$basic_machine
330 ;;
331 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
318332 basic_machine=$basic_machine-unknown
319333 os=-none
320334 ;;
321 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
335 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
322336 ;;
323337 ms1)
324338 basic_machine=mt-unknown
339 ;;
340
341 strongarm | thumb | xscale)
342 basic_machine=arm-unknown
343 ;;
344 xgate)
345 basic_machine=$basic_machine-unknown
346 os=-none
347 ;;
348 xscaleeb)
349 basic_machine=armeb-unknown
350 ;;
351
352 xscaleel)
353 basic_machine=armel-unknown
325354 ;;
326355
327356 # We use `pc' rather than `unknown'
332361 ;;
333362 # Object if more than one company name word.
334363 *-*-*)
335 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
364 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
336365 exit 1
337366 ;;
338367 # Recognize the basic CPU types with company name.
339368 580-* \
340369 | a29k-* \
370 | aarch64-* | aarch64_be-* \
341371 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
342372 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
343 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
373 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
344374 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
345375 | avr-* | avr32-* \
376 | ba-* \
377 | be32-* | be64-* \
346378 | bfin-* | bs2000-* \
347379 | c[123]* | c30-* | [cjt]90-* | c4x-* \
348 | clipper-* | craynv-* | cydra-* \
380 | c8051-* | clipper-* | craynv-* | cydra-* \
349381 | d10v-* | d30v-* | dlx-* \
350 | elxsi-* \
382 | e2k-* | elxsi-* \
351383 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
352384 | h8300-* | h8500-* \
353385 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
354 | i*86-* | i860-* | i960-* | ia64-* \
386 | hexagon-* \
387 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
355388 | ip2k-* | iq2000-* \
389 | k1om-* \
390 | le32-* | le64-* \
356391 | lm32-* \
357392 | m32c-* | m32r-* | m32rle-* \
358393 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
359 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
394 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
395 | microblaze-* | microblazeel-* \
360396 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
361397 | mips16-* \
362398 | mips64-* | mips64el-* \
370406 | mips64vr5900-* | mips64vr5900el-* \
371407 | mipsisa32-* | mipsisa32el-* \
372408 | mipsisa32r2-* | mipsisa32r2el-* \
409 | mipsisa32r6-* | mipsisa32r6el-* \
373410 | mipsisa64-* | mipsisa64el-* \
374411 | mipsisa64r2-* | mipsisa64r2el-* \
412 | mipsisa64r6-* | mipsisa64r6el-* \
375413 | mipsisa64sb1-* | mipsisa64sb1el-* \
376414 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
415 | mipsr5900-* | mipsr5900el-* \
377416 | mipstx39-* | mipstx39el-* \
378417 | mmix-* \
379418 | mt-* \
380419 | msp430-* \
381420 | nds32-* | nds32le-* | nds32be-* \
382 | nios-* | nios2-* \
421 | nios-* | nios2-* | nios2eb-* | nios2el-* \
383422 | none-* | np1-* | ns16k-* | ns32k-* \
423 | open8-* \
424 | or1k*-* \
384425 | orion-* \
385426 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
386 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
427 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
428 | pru-* \
387429 | pyramid-* \
388 | romp-* | rs6000-* | rx-* \
430 | riscv32-* | riscv64-* \
431 | rl78-* | romp-* | rs6000-* | rx-* \
389432 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
390433 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
391434 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
392435 | sparclite-* \
393 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
394 | tahoe-* | thumb-* \
436 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
437 | tahoe-* \
395438 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
396 | tile-* | tilegx-* \
439 | tile*-* \
397440 | tron-* \
398441 | ubicom32-* \
399 | v850-* | v850e-* | vax-* \
442 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
443 | vax-* \
444 | visium-* \
445 | wasm32-* \
400446 | we32k-* \
401 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
447 | x86-* | x86_64-* | xc16x-* | xps100-* \
402448 | xstormy16-* | xtensa*-* \
403449 | ymp-* \
404450 | z8k-* | z80-*)
410456 # Recognize the various machine names and aliases which stand
411457 # for a CPU type and a company and sometimes even an OS.
412458 386bsd)
413 basic_machine=i386-unknown
459 basic_machine=i386-pc
414460 os=-bsd
415461 ;;
416462 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
423469 basic_machine=a29k-amd
424470 os=-udi
425471 ;;
426 abacus)
472 abacus)
427473 basic_machine=abacus-unknown
428474 ;;
429475 adobe68k)
444490 basic_machine=x86_64-pc
445491 ;;
446492 amd64-*)
447 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
493 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
448494 ;;
449495 amdahl)
450496 basic_machine=580-amdahl
473519 basic_machine=i386-pc
474520 os=-aros
475521 ;;
522 asmjs)
523 basic_machine=asmjs-unknown
524 ;;
476525 aux)
477526 basic_machine=m68k-apple
478527 os=-aux
486535 os=-linux
487536 ;;
488537 blackfin-*)
489 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
538 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
490539 os=-linux
491540 ;;
492541 bluegene*)
494543 os=-cnk
495544 ;;
496545 c54x-*)
497 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
546 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
498547 ;;
499548 c55x-*)
500 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
549 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
501550 ;;
502551 c6x-*)
503 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
552 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
504553 ;;
505554 c90)
506555 basic_machine=c90-cray
507556 os=-unicos
508557 ;;
509 cegcc)
558 cegcc)
510559 basic_machine=arm-unknown
511560 os=-cegcc
512561 ;;
538587 basic_machine=craynv-cray
539588 os=-unicosmp
540589 ;;
541 cr16)
590 cr16 | cr16-*)
542591 basic_machine=cr16-unknown
543592 os=-elf
544593 ;;
589638 basic_machine=rs6000-bull
590639 os=-bosx
591640 ;;
592 dpx2* | dpx2*-bull)
641 dpx2*)
593642 basic_machine=m68k-bull
594643 os=-sysv3
644 ;;
645 e500v[12])
646 basic_machine=powerpc-unknown
647 os=$os"spe"
648 ;;
649 e500v[12]-*)
650 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
651 os=$os"spe"
595652 ;;
596653 ebmon29k)
597654 basic_machine=a29k-amd
682739 hp9k8[0-9][0-9] | hp8[0-9][0-9])
683740 basic_machine=hppa1.0-hp
684741 ;;
685 hppa-next)
686 os=-nextstep3
687 ;;
688742 hppaosf)
689743 basic_machine=hppa1.1-hp
690744 os=-osf
696750 i370-ibm* | ibm*)
697751 basic_machine=i370-ibm
698752 ;;
699 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
700753 i*86v32)
701 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
754 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
702755 os=-sysv32
703756 ;;
704757 i*86v4*)
705 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
758 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
706759 os=-sysv4
707760 ;;
708761 i*86v)
709 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
762 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
710763 os=-sysv
711764 ;;
712765 i*86sol2)
713 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
766 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
714767 os=-solaris2
715768 ;;
716769 i386mach)
717770 basic_machine=i386-mach
718771 os=-mach
719772 ;;
720 i386-vsta | vsta)
773 vsta)
721774 basic_machine=i386-unknown
722775 os=-vsta
723776 ;;
735788 basic_machine=m68k-isi
736789 os=-sysv
737790 ;;
791 leon-*|leon[3-9]-*)
792 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
793 ;;
738794 m68knommu)
739795 basic_machine=m68k-unknown
740796 os=-linux
741797 ;;
742798 m68knommu-*)
743 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
799 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
744800 os=-linux
745 ;;
746 m88k-omron*)
747 basic_machine=m88k-omron
748801 ;;
749802 magnum | m3230)
750803 basic_machine=mips-mips
754807 basic_machine=ns32k-utek
755808 os=-sysv
756809 ;;
757 microblaze)
810 microblaze*)
758811 basic_machine=microblaze-xilinx
759812 ;;
813 mingw64)
814 basic_machine=x86_64-pc
815 os=-mingw64
816 ;;
760817 mingw32)
761 basic_machine=i386-pc
818 basic_machine=i686-pc
762819 os=-mingw32
763820 ;;
764821 mingw32ce)
773830 os=-mint
774831 ;;
775832 mips3*-*)
776 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
833 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
777834 ;;
778835 mips3*)
779 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
836 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
780837 ;;
781838 monitor)
782839 basic_machine=m68k-rom68k
786843 basic_machine=powerpc-unknown
787844 os=-morphos
788845 ;;
846 moxiebox)
847 basic_machine=moxie-unknown
848 os=-moxiebox
849 ;;
789850 msdos)
790851 basic_machine=i386-pc
791852 os=-msdos
792853 ;;
793854 ms1-*)
794 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
855 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
856 ;;
857 msys)
858 basic_machine=i686-pc
859 os=-msys
795860 ;;
796861 mvs)
797862 basic_machine=i370-ibm
798863 os=-mvs
799864 ;;
865 nacl)
866 basic_machine=le32-unknown
867 os=-nacl
868 ;;
800869 ncr3000)
801870 basic_machine=i486-ncr
802871 os=-sysv4
825894 basic_machine=v70-nec
826895 os=-sysv
827896 ;;
828 next | m*-next )
897 next | m*-next)
829898 basic_machine=m68k-next
830899 case $os in
831900 -nextstep* )
861930 np1)
862931 basic_machine=np1-gould
863932 ;;
864 neo-tandem)
933 neo-tandem)
865934 basic_machine=neo-tandem
866935 ;;
867 nse-tandem)
936 nse-tandem)
868937 basic_machine=nse-tandem
869938 ;;
870939 nsr-tandem)
871940 basic_machine=nsr-tandem
941 ;;
942 nsv-tandem)
943 basic_machine=nsv-tandem
944 ;;
945 nsx-tandem)
946 basic_machine=nsx-tandem
872947 ;;
873948 op50n-* | op60c-*)
874949 basic_machine=hppa1.1-oki
902977 os=-linux
903978 ;;
904979 parisc-*)
905 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
980 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
906981 os=-linux
907982 ;;
908983 pbd)
918993 basic_machine=i386-pc
919994 ;;
920995 pc98-*)
921 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
996 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
922997 ;;
923998 pentium | p5 | k5 | k6 | nexgen | viac3)
924999 basic_machine=i586-pc
9331008 basic_machine=i786-pc
9341009 ;;
9351010 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
936 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
1011 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
9371012 ;;
9381013 pentiumpro-* | p6-* | 6x86-* | athlon-*)
939 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1014 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
9401015 ;;
9411016 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
942 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1017 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
9431018 ;;
9441019 pentium4-*)
945 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
1020 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
9461021 ;;
9471022 pn)
9481023 basic_machine=pn-gould
9491024 ;;
9501025 power) basic_machine=power-ibm
9511026 ;;
952 ppc) basic_machine=powerpc-unknown
953 ;;
954 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
955 ;;
956 ppcle | powerpclittle | ppc-le | powerpc-little)
1027 ppc | ppcbe) basic_machine=powerpc-unknown
1028 ;;
1029 ppc-* | ppcbe-*)
1030 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1031 ;;
1032 ppcle | powerpclittle)
9571033 basic_machine=powerpcle-unknown
9581034 ;;
9591035 ppcle-* | powerpclittle-*)
960 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1036 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
9611037 ;;
9621038 ppc64) basic_machine=powerpc64-unknown
9631039 ;;
964 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
965 ;;
966 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
1040 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1041 ;;
1042 ppc64le | powerpc64little)
9671043 basic_machine=powerpc64le-unknown
9681044 ;;
9691045 ppc64le-* | powerpc64little-*)
970 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1046 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
9711047 ;;
9721048 ps2)
9731049 basic_machine=i386-ibm
9761052 basic_machine=i586-unknown
9771053 os=-pw32
9781054 ;;
979 rdos)
1055 rdos | rdos64)
1056 basic_machine=x86_64-pc
1057 os=-rdos
1058 ;;
1059 rdos32)
9801060 basic_machine=i386-pc
9811061 os=-rdos
9821062 ;;
10171097 sequent)
10181098 basic_machine=i386-sequent
10191099 ;;
1020 sh)
1021 basic_machine=sh-hitachi
1022 os=-hms
1023 ;;
10241100 sh5el)
10251101 basic_machine=sh5le-unknown
10261102 ;;
1027 sh64)
1028 basic_machine=sh64-unknown
1029 ;;
1030 sparclite-wrs | simso-wrs)
1103 simso-wrs)
10311104 basic_machine=sparclite-wrs
10321105 os=-vxworks
10331106 ;;
10451118 basic_machine=i860-stratus
10461119 os=-sysv4
10471120 ;;
1121 strongarm-* | thumb-*)
1122 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1123 ;;
10481124 sun2)
10491125 basic_machine=m68000-sun
10501126 ;;
11011177 basic_machine=t90-cray
11021178 os=-unicos
11031179 ;;
1104 # This must be matched before tile*.
1105 tilegx*)
1106 basic_machine=tilegx-unknown
1107 os=-linux-gnu
1108 ;;
11091180 tile*)
1110 basic_machine=tile-unknown
1181 basic_machine=$basic_machine-unknown
11111182 os=-linux-gnu
11121183 ;;
11131184 tx39)
11701241 basic_machine=hppa1.1-winbond
11711242 os=-proelf
11721243 ;;
1244 x64)
1245 basic_machine=x86_64-pc
1246 ;;
11731247 xbox)
11741248 basic_machine=i686-pc
11751249 os=-mingw32
11771251 xps | xps100)
11781252 basic_machine=xps100-honeywell
11791253 ;;
1254 xscale-* | xscalee[bl]-*)
1255 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1256 ;;
11801257 ymp)
11811258 basic_machine=ymp-cray
11821259 os=-unicos
1183 ;;
1184 z8k-*-coff)
1185 basic_machine=z8k-unknown
1186 os=-sim
1187 ;;
1188 z80-*-coff)
1189 basic_machine=z80-unknown
1190 os=-sim
11911260 ;;
11921261 none)
11931262 basic_machine=none-none
12171286 vax)
12181287 basic_machine=vax-dec
12191288 ;;
1220 pdp10)
1221 # there are many clones, so DEC is not a safe bet
1222 basic_machine=pdp10-unknown
1223 ;;
12241289 pdp11)
12251290 basic_machine=pdp11-dec
12261291 ;;
12301295 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
12311296 basic_machine=sh-unknown
12321297 ;;
1233 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1234 basic_machine=sparc-sun
1235 ;;
12361298 cydra)
12371299 basic_machine=cydra-cydrome
12381300 ;;
12521314 # Make sure to match an already-canonicalized machine name.
12531315 ;;
12541316 *)
1255 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1317 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
12561318 exit 1
12571319 ;;
12581320 esac
12601322 # Here we canonicalize certain aliases for manufacturers.
12611323 case $basic_machine in
12621324 *-digital*)
1263 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1325 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
12641326 ;;
12651327 *-commodore*)
1266 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1328 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
12671329 ;;
12681330 *)
12691331 ;;
12741336 if [ x"$os" != x"" ]
12751337 then
12761338 case $os in
1277 # First match some system type aliases
1278 # that might get confused with valid system types.
1339 # First match some system type aliases that might get confused
1340 # with valid system types.
12791341 # -solaris* is a basic system type, with this one exception.
1280 -auroraux)
1281 os=-auroraux
1342 -auroraux)
1343 os=-auroraux
12821344 ;;
12831345 -solaris1 | -solaris1.*)
12841346 os=`echo $os | sed -e 's|solaris1|sunos4|'`
12861348 -solaris)
12871349 os=-solaris2
12881350 ;;
1289 -svr4*)
1290 os=-sysv4
1291 ;;
12921351 -unixware*)
12931352 os=-sysv4.2uw
12941353 ;;
12951354 -gnu/linux*)
12961355 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
12971356 ;;
1298 # First accept the basic system types.
1357 # es1800 is here to avoid being matched by es* (a different OS)
1358 -es1800*)
1359 os=-ose
1360 ;;
1361 # Now accept the basic system types.
12991362 # The portable systems comes first.
1300 # Each alternative MUST END IN A *, to match a version number.
1363 # Each alternative MUST end in a * to match a version number.
13011364 # -sysv* is not here because it comes later, after sysvr4.
13021365 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
13031366 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
13041367 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1305 | -sym* | -kopensolaris* \
1368 | -sym* | -kopensolaris* | -plan9* \
13061369 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1307 | -aos* | -aros* \
1370 | -aos* | -aros* | -cloudabi* | -sortix* \
13081371 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13091372 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1310 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1311 | -openbsd* | -solidbsd* \
1373 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1374 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
13121375 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13131376 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13141377 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1315 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1316 | -chorusos* | -chorusrdb* | -cegcc* \
1317 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1318 | -mingw32* | -linux-gnu* | -linux-android* \
1319 | -linux-newlib* | -linux-uclibc* \
1320 | -uxpv* | -beos* | -mpeix* | -udk* \
1321 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1378 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \
1379 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
1380 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1381 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1382 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1383 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1384 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
13221385 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13231386 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
13241387 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1325 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1388 | -morphos* | -superux* | -rtmk* | -windiss* \
13261389 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1327 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1390 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1391 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1392 | -midnightbsd*)
13281393 # Remember, each alternative MUST END IN *, to match a version number.
13291394 ;;
13301395 -qnx*)
13411406 -nto*)
13421407 os=`echo $os | sed -e 's|nto|nto-qnx|'`
13431408 ;;
1344 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1345 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1409 -sim | -xray | -os68k* | -v88r* \
1410 | -windows* | -osx | -abug | -netware* | -os9* \
13461411 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
13471412 ;;
13481413 -mac*)
1349 os=`echo $os | sed -e 's|mac|macos|'`
1414 os=`echo "$os" | sed -e 's|mac|macos|'`
13501415 ;;
13511416 -linux-dietlibc)
13521417 os=-linux-dietlibc
13551420 os=`echo $os | sed -e 's|linux|linux-gnu|'`
13561421 ;;
13571422 -sunos5*)
1358 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1423 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
13591424 ;;
13601425 -sunos6*)
1361 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1426 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
13621427 ;;
13631428 -opened*)
13641429 os=-openedition
13651430 ;;
1366 -os400*)
1431 -os400*)
13671432 os=-os400
13681433 ;;
13691434 -wince*)
13701435 os=-wince
13711436 ;;
1372 -osfrose*)
1373 os=-osfrose
1374 ;;
1375 -osf*)
1376 os=-osf
1377 ;;
13781437 -utek*)
13791438 os=-bsd
13801439 ;;
13991458 -nova*)
14001459 os=-rtmk-nova
14011460 ;;
1402 -ns2 )
1461 -ns2)
14031462 os=-nextstep2
14041463 ;;
14051464 -nsk*)
14121471 -sinix*)
14131472 os=-sysv4
14141473 ;;
1415 -tpf*)
1474 -tpf*)
14161475 os=-tpf
14171476 ;;
14181477 -triton*)
14211480 -oss*)
14221481 os=-sysv3
14231482 ;;
1424 -svr4)
1483 -svr4*)
14251484 os=-sysv4
14261485 ;;
14271486 -svr3)
14361495 -ose*)
14371496 os=-ose
14381497 ;;
1439 -es1800*)
1440 os=-ose
1441 ;;
1442 -xenix)
1443 os=-xenix
1444 ;;
14451498 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
14461499 os=-mint
14471500 ;;
1448 -aros*)
1449 os=-aros
1450 ;;
1451 -kaos*)
1452 os=-kaos
1453 ;;
14541501 -zvmoe)
14551502 os=-zvmoe
14561503 ;;
14571504 -dicos*)
14581505 os=-dicos
14591506 ;;
1460 -nacl*)
1461 ;;
1507 -pikeos*)
1508 # Until real need of OS specific support for
1509 # particular features comes up, bare metal
1510 # configurations are quite functional.
1511 case $basic_machine in
1512 arm*)
1513 os=-eabi
1514 ;;
1515 *)
1516 os=-elf
1517 ;;
1518 esac
1519 ;;
1520 -nacl*)
1521 ;;
1522 -ios)
1523 ;;
14621524 -none)
14631525 ;;
14641526 *)
14651527 # Get rid of the `-' at the beginning of $os.
14661528 os=`echo $os | sed 's/[^-]*-//'`
1467 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1529 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
14681530 exit 1
14691531 ;;
14701532 esac
14811543 # system, and we'll never get to this point.
14821544
14831545 case $basic_machine in
1484 score-*)
1546 score-*)
14851547 os=-elf
14861548 ;;
1487 spu-*)
1549 spu-*)
14881550 os=-elf
14891551 ;;
14901552 *-acorn)
14961558 arm*-semi)
14971559 os=-aout
14981560 ;;
1499 c4x-* | tic4x-*)
1500 os=-coff
1561 c4x-* | tic4x-*)
1562 os=-coff
1563 ;;
1564 c8051-*)
1565 os=-elf
1566 ;;
1567 hexagon-*)
1568 os=-elf
15011569 ;;
15021570 tic54x-*)
15031571 os=-coff
15261594 ;;
15271595 m68000-sun)
15281596 os=-sunos3
1529 # This also exists in the configure program, but was not the
1530 # default.
1531 # os=-sunos4
15321597 ;;
15331598 m68*-cisco)
15341599 os=-aout
15351600 ;;
1536 mep-*)
1601 mep-*)
15371602 os=-elf
15381603 ;;
15391604 mips*-cisco)
15511616 sparc-* | *-sun)
15521617 os=-sunos4.1.1
15531618 ;;
1619 pru-*)
1620 os=-elf
1621 ;;
15541622 *-be)
15551623 os=-beos
15561624 ;;
1557 *-haiku)
1558 os=-haiku
1559 ;;
15601625 *-ibm)
15611626 os=-aix
15621627 ;;
1563 *-knuth)
1628 *-knuth)
15641629 os=-mmixware
15651630 ;;
15661631 *-wec)
15961661 m88k-omron*)
15971662 os=-luna
15981663 ;;
1599 *-next )
1664 *-next)
16001665 os=-nextstep
16011666 ;;
16021667 *-sequent)
16101675 ;;
16111676 i370-*)
16121677 os=-mvs
1613 ;;
1614 *-next)
1615 os=-nextstep3
16161678 ;;
16171679 *-gould)
16181680 os=-sysv
17231785 vendor=stratus
17241786 ;;
17251787 esac
1726 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1788 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
17271789 ;;
17281790 esac
17291791
1730 echo $basic_machine$os
1792 echo "$basic_machine$os"
17311793 exit
17321794
17331795 # Local variables:
1734 # eval: (add-hook 'write-file-hooks 'time-stamp)
1796 # eval: (add-hook 'write-file-functions 'time-stamp)
17351797 # time-stamp-start: "timestamp='"
17361798 # time-stamp-format: "%:y-%02m-%02d"
17371799 # time-stamp-end: "'"
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for xlogo 1.0.4.
2 # Generated by GNU Autoconf 2.69 for xlogo 1.0.5.
33 #
4 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
4 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/issues>.
55 #
66 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
9 # Foundation, Inc.
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
108 #
119 #
1210 # This configure script is free software; the Free Software Foundation
135133 # CDPATH.
136134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
138161 if test "x$CONFIG_SHELL" = x; then
139162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140163 emulate sh
168191 else
169192 exitcode=1; echo positional parameters were not saved.
170193 fi
171 test x\$exitcode = x0 || exit 1"
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
172196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
213237
214238
215239 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 # Preserve -v and -x to the replacement shell.
220 BASH_ENV=/dev/null
221 ENV=/dev/null
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 export CONFIG_SHELL
224 case $- in # ((((
225 *v*x* | *x*v* ) as_opts=-vx ;;
226 *v* ) as_opts=-v ;;
227 *x* ) as_opts=-x ;;
228 * ) as_opts= ;;
229 esac
230 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
231259 fi
232260
233261 if test x$as_have_required = xno; then :
238266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239267 else
240268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
241 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
269 $0: https://gitlab.freedesktop.org/xorg/app/xlogo/issues
242270 $0: about your system, including any error possibly output
243271 $0: before this message. Then install a modern shell, or
244272 $0: manually run the script under such a shell if you do
331359
332360
333361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
334370 # as_fn_append VAR VALUE
335371 # ----------------------
336372 # Append the text in VALUE to the end of the definition contained in VAR. Take
452488 chmod +x "$as_me.lineno" ||
453489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
455495 # Don't try to exec as it changes $[0], causing all sort of problems
456496 # (the dirname of $[0] is not the place where we might find the
457497 # original and so on. Autoconf is especially sensitive to this).
486526 # ... but there are two gotchas:
487527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
529 # In both cases, we have to default to `cp -pR'.
490530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
531 as_ln_s='cp -pR'
492532 elif ln conf$$.file conf$$ 2>/dev/null; then
493533 as_ln_s=ln
494534 else
495 as_ln_s='cp -p'
535 as_ln_s='cp -pR'
496536 fi
497537 else
498 as_ln_s='cp -p'
538 as_ln_s='cp -pR'
499539 fi
500540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501541 rmdir conf$$.dir 2>/dev/null
507547 as_mkdir_p=false
508548 fi
509549
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530 fi
531 as_executable_p=$as_test_x
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
532552
533553 # Sed expression to map a string onto a valid CPP name.
534554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560580 # Identity of this package.
561581 PACKAGE_NAME='xlogo'
562582 PACKAGE_TARNAME='xlogo'
563 PACKAGE_VERSION='1.0.4'
564 PACKAGE_STRING='xlogo 1.0.4'
565 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
583 PACKAGE_VERSION='1.0.5'
584 PACKAGE_STRING='xlogo 1.0.5'
585 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlogo/issues'
566586 PACKAGE_URL=''
567587
588 ac_unique_file="Makefile.am"
568589 # Factoring default headers for most tests.
569590 ac_includes_default="\
570591 #include <stdio.h>
612633 XLOGO_CFLAGS
613634 USE_RENDER_FALSE
614635 USE_RENDER_TRUE
615 AM_BACKSLASH
616 AM_DEFAULT_VERBOSITY
617636 MAN_SUBSTS
618637 XORG_MAN_PAGE
619638 ADMIN_MAN_DIR
638657 build_cpu
639658 build
640659 INSTALL_CMD
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
641662 PKG_CONFIG
642663 CHANGELOG_CMD
643664 STRICT_CFLAGS
649670 am__fastdepCC_FALSE
650671 am__fastdepCC_TRUE
651672 CCDEPMODE
673 am__nodep
652674 AMDEPBACKSLASH
653675 AMDEP_FALSE
654676 AMDEP_TRUE
662684 LDFLAGS
663685 CFLAGS
664686 CC
665 MAINT
666 MAINTAINER_MODE_FALSE
667 MAINTAINER_MODE_TRUE
687 AM_BACKSLASH
688 AM_DEFAULT_VERBOSITY
689 AM_DEFAULT_V
690 AM_V
668691 am__untar
669692 am__tar
670693 AMTAR
729752 ac_subst_files=''
730753 ac_user_opts='
731754 enable_option_checking
732 enable_maintainer_mode
755 enable_silent_rules
733756 enable_dependency_tracking
734757 enable_selective_werror
735758 enable_strict_compilation
736 enable_silent_rules
737759 with_render
738760 with_appdefaultdir
739761 '
747769 CPPFLAGS
748770 CPP
749771 PKG_CONFIG
772 PKG_CONFIG_PATH
773 PKG_CONFIG_LIBDIR
750774 XLOGO_CFLAGS
751775 XLOGO_LIBS
752776 APPDEFS_CFLAGS
12061230 if test "x$host_alias" != x; then
12071231 if test "x$build_alias" = x; then
12081232 cross_compiling=maybe
1209 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1210 If a cross compiler is detected then cross compile mode will be used" >&2
12111233 elif test "x$build_alias" != "x$host_alias"; then
12121234 cross_compiling=yes
12131235 fi
12931315 # Omit some internal or obsolete options to make the list less imposing.
12941316 # This message is too long to be a string in the A/UX 3.1 sh.
12951317 cat <<_ACEOF
1296 \`configure' configures xlogo 1.0.4 to adapt to many kinds of systems.
1318 \`configure' configures xlogo 1.0.5 to adapt to many kinds of systems.
12971319
12981320 Usage: $0 [OPTION]... [VAR=VALUE]...
12991321
13631385
13641386 if test -n "$ac_init_help"; then
13651387 case $ac_init_help in
1366 short | recursive ) echo "Configuration of xlogo 1.0.4:";;
1388 short | recursive ) echo "Configuration of xlogo 1.0.5:";;
13671389 esac
13681390 cat <<\_ACEOF
13691391
13711393 --disable-option-checking ignore unrecognized --enable/--with options
13721394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
13731395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1374 --enable-maintainer-mode enable make rules and dependencies not useful
1375 (and sometimes confusing) to the casual installer
1376 --disable-dependency-tracking speeds up one-time build
1377 --enable-dependency-tracking do not reject slow dependency extractors
1396 --enable-silent-rules less verbose build output (undo: "make V=1")
1397 --disable-silent-rules verbose build output (undo: "make V=0")
1398 --enable-dependency-tracking
1399 do not reject slow dependency extractors
1400 --disable-dependency-tracking
1401 speeds up one-time build
13781402 --disable-selective-werror
13791403 Turn off selective compiler errors. (default:
13801404 enabled)
13811405 --enable-strict-compilation
13821406 Enable all warnings from compiler and make them
13831407 errors (default: disabled)
1384 --enable-silent-rules less verbose build output (undo: `make V=1')
1385 --disable-silent-rules verbose build output (undo: `make V=0')
13861408
13871409 Optional Packages:
13881410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
14021424 you have headers in a nonstandard directory <include dir>
14031425 CPP C preprocessor
14041426 PKG_CONFIG path to pkg-config utility
1427 PKG_CONFIG_PATH
1428 directories to add to pkg-config's search path
1429 PKG_CONFIG_LIBDIR
1430 path overriding pkg-config's built-in search path
14051431 XLOGO_CFLAGS
14061432 C compiler flags for XLOGO, overriding pkg-config
14071433 XLOGO_LIBS linker flags for XLOGO, overriding pkg-config
14131439 Use these variables to override the choices made by `configure' or to help
14141440 it to find libraries and programs with nonstandard names/locations.
14151441
1416 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1442 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/issues>.
14171443 _ACEOF
14181444 ac_status=$?
14191445 fi
14761502 test -n "$ac_init_help" && exit $ac_status
14771503 if $ac_init_version; then
14781504 cat <<\_ACEOF
1479 xlogo configure 1.0.4
1480 generated by GNU Autoconf 2.68
1481
1482 Copyright (C) 2010 Free Software Foundation, Inc.
1505 xlogo configure 1.0.5
1506 generated by GNU Autoconf 2.69
1507
1508 Copyright (C) 2012 Free Software Foundation, Inc.
14831509 This configure script is free software; the Free Software Foundation
14841510 gives unlimited permission to copy, distribute and modify it.
14851511 _ACEOF
17111737 test ! -s conftest.err
17121738 } && test -s conftest$ac_exeext && {
17131739 test "$cross_compiling" = yes ||
1714 $as_test_x conftest$ac_exeext
1740 test -x conftest$ac_exeext
17151741 }; then :
17161742 ac_retval=0
17171743 else
17331759 This file contains any messages produced by compilers while
17341760 running configure, to aid debugging if configure makes a mistake.
17351761
1736 It was created by xlogo $as_me 1.0.4, which was
1737 generated by GNU Autoconf 2.68. Invocation command line was
1762 It was created by xlogo $as_me 1.0.5, which was
1763 generated by GNU Autoconf 2.69. Invocation command line was
17381764
17391765 $ $0 $@
17401766
20812107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20822108
20832109
2084 am__api_version='1.11'
2110
2111 ac_config_headers="$ac_config_headers config.h"
2112
2113
2114 # Initialize Automake
2115 am__api_version='1.15'
20852116
20862117 ac_aux_dir=
20872118 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
21492180 # by default.
21502181 for ac_prog in ginstall scoinst install; do
21512182 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2183 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
21532184 if test $ac_prog = install &&
21542185 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21552186 # AIX install. It has an incompatible calling convention.
22072238
22082239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
22092240 $as_echo_n "checking whether build environment is sane... " >&6; }
2210 # Just in case
2211 sleep 1
2212 echo timestamp > conftest.file
22132241 # Reject unsafe characters in $srcdir or the absolute working directory
22142242 # name. Accept space and tab only in the latter.
22152243 am_lf='
22202248 esac
22212249 case $srcdir in
22222250 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2223 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2251 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
22242252 esac
22252253
2226 # Do `set' in a subshell so we don't clobber the current shell's
2254 # Do 'set' in a subshell so we don't clobber the current shell's
22272255 # arguments. Must try -L first in case configure is actually a
22282256 # symlink; some systems play weird games with the mod time of symlinks
22292257 # (eg FreeBSD returns the mod time of the symlink's containing
22302258 # directory).
22312259 if (
2232 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2233 if test "$*" = "X"; then
2234 # -L didn't work.
2235 set X `ls -t "$srcdir/configure" conftest.file`
2236 fi
2237 rm -f conftest.file
2238 if test "$*" != "X $srcdir/configure conftest.file" \
2239 && test "$*" != "X conftest.file $srcdir/configure"; then
2240
2241 # If neither matched, then we have a broken ls. This can happen
2242 # if, for instance, CONFIG_SHELL is bash and it inherits a
2243 # broken ls alias from the environment. This has actually
2244 # happened. Such a system could not be considered "sane".
2245 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2246 alias in your environment" "$LINENO" 5
2247 fi
2248
2260 am_has_slept=no
2261 for am_try in 1 2; do
2262 echo "timestamp, slept: $am_has_slept" > conftest.file
2263 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2264 if test "$*" = "X"; then
2265 # -L didn't work.
2266 set X `ls -t "$srcdir/configure" conftest.file`
2267 fi
2268 if test "$*" != "X $srcdir/configure conftest.file" \
2269 && test "$*" != "X conftest.file $srcdir/configure"; then
2270
2271 # If neither matched, then we have a broken ls. This can happen
2272 # if, for instance, CONFIG_SHELL is bash and it inherits a
2273 # broken ls alias from the environment. This has actually
2274 # happened. Such a system could not be considered "sane".
2275 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2276 alias in your environment" "$LINENO" 5
2277 fi
2278 if test "$2" = conftest.file || test $am_try -eq 2; then
2279 break
2280 fi
2281 # Just in case.
2282 sleep 1
2283 am_has_slept=yes
2284 done
22492285 test "$2" = conftest.file
22502286 )
22512287 then
22572293 fi
22582294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22592295 $as_echo "yes" >&6; }
2296 # If we didn't sleep, we still need to ensure time stamps of config.status and
2297 # generated files are strictly newer.
2298 am_sleep_pid=
2299 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2300 ( sleep 1 ) &
2301 am_sleep_pid=$!
2302 fi
2303
2304 rm -f conftest.file
2305
22602306 test "$program_prefix" != NONE &&
22612307 program_transform_name="s&^&$program_prefix&;$program_transform_name"
22622308 # Use a double $ so make ignores it.
22672313 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
22682314 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
22692315
2270 # expand $ac_aux_dir to an absolute path
2271 am_aux_dir=`cd $ac_aux_dir && pwd`
2316 # Expand $ac_aux_dir to an absolute path.
2317 am_aux_dir=`cd "$ac_aux_dir" && pwd`
22722318
22732319 if test x"${MISSING+set}" != xset; then
22742320 case $am_aux_dir in
22792325 esac
22802326 fi
22812327 # Use eval to expand $SHELL
2282 if eval "$MISSING --run true"; then
2283 am_missing_run="$MISSING --run "
2328 if eval "$MISSING --is-lightweight"; then
2329 am_missing_run="$MISSING "
22842330 else
22852331 am_missing_run=
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2287 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2288 fi
2289
2290 if test x"${install_sh}" != xset; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2333 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2334 fi
2335
2336 if test x"${install_sh+set}" != xset; then
22912337 case $am_aux_dir in
22922338 *\ * | *\ *)
22932339 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
22962342 esac
22972343 fi
22982344
2299 # Installed binaries are usually stripped using `strip' when the user
2300 # run `make install-strip'. However `strip' might not be the right
2345 # Installed binaries are usually stripped using 'strip' when the user
2346 # run "make install-strip". However 'strip' might not be the right
23012347 # tool to use in cross-compilation environments, therefore Automake
2302 # will honor the `STRIP' environment variable to overrule this program.
2348 # will honor the 'STRIP' environment variable to overrule this program.
23032349 if test "$cross_compiling" != no; then
23042350 if test -n "$ac_tool_prefix"; then
23052351 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23182364 IFS=$as_save_IFS
23192365 test -z "$as_dir" && as_dir=.
23202366 for ac_exec_ext in '' $ac_executable_extensions; do
2321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23222368 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
23232369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23242370 break 2
23582404 IFS=$as_save_IFS
23592405 test -z "$as_dir" && as_dir=.
23602406 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23622408 ac_cv_prog_ac_ct_STRIP="strip"
23632409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23642410 break 2
24092455 test -z "$as_dir" && as_dir=.
24102456 for ac_prog in mkdir gmkdir; do
24112457 for ac_exec_ext in '' $ac_executable_extensions; do
2412 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2458 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
24132459 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
24142460 'mkdir (GNU coreutils) '* | \
24152461 'mkdir (coreutils) '* | \
24382484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
24392485 $as_echo "$MKDIR_P" >&6; }
24402486
2441 mkdir_p="$MKDIR_P"
2442 case $mkdir_p in
2443 [\\/$]* | ?:[\\/]*) ;;
2444 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2445 esac
2446
24472487 for ac_prog in gawk mawk nawk awk
24482488 do
24492489 # Extract the first word of "$ac_prog", so it can be a program name with args.
24622502 IFS=$as_save_IFS
24632503 test -z "$as_dir" && as_dir=.
24642504 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24662506 ac_cv_prog_AWK="$ac_prog"
24672507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24682508 break 2
25262566 fi
25272567 rmdir .tst 2>/dev/null
25282568
2569 # Check whether --enable-silent-rules was given.
2570 if test "${enable_silent_rules+set}" = set; then :
2571 enableval=$enable_silent_rules;
2572 fi
2573
2574 case $enable_silent_rules in # (((
2575 yes) AM_DEFAULT_VERBOSITY=0;;
2576 no) AM_DEFAULT_VERBOSITY=1;;
2577 *) AM_DEFAULT_VERBOSITY=1;;
2578 esac
2579 am_make=${MAKE-make}
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2581 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2582 if ${am_cv_make_support_nested_variables+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if $as_echo 'TRUE=$(BAR$(V))
2586 BAR0=false
2587 BAR1=true
2588 V=1
2589 am__doit:
2590 @$(TRUE)
2591 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2592 am_cv_make_support_nested_variables=yes
2593 else
2594 am_cv_make_support_nested_variables=no
2595 fi
2596 fi
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2598 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2599 if test $am_cv_make_support_nested_variables = yes; then
2600 AM_V='$(V)'
2601 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2602 else
2603 AM_V=$AM_DEFAULT_VERBOSITY
2604 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2605 fi
2606 AM_BACKSLASH='\'
2607
25292608 if test "`cd $srcdir && pwd`" != "`pwd`"; then
25302609 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
25312610 # is not polluted with repeated "-I."
25482627
25492628 # Define the identity of the package.
25502629 PACKAGE='xlogo'
2551 VERSION='1.0.4'
2630 VERSION='1.0.5'
25522631
25532632
25542633 cat >>confdefs.h <<_ACEOF
25762655
25772656 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
25782657
2579 # We need awk for the "check" target. The system "awk" is bad on
2580 # some platforms.
2581 # Always define AMTAR for backward compatibility.
2582
2583 AMTAR=${AMTAR-"${am_missing_run}tar"}
2584
2585 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2586
2587
2588
2589
2590
2591
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2593 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2594 # Check whether --enable-maintainer-mode was given.
2595 if test "${enable_maintainer_mode+set}" = set; then :
2596 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2597 else
2598 USE_MAINTAINER_MODE=no
2599 fi
2600
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2602 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2603 if test $USE_MAINTAINER_MODE = yes; then
2604 MAINTAINER_MODE_TRUE=
2605 MAINTAINER_MODE_FALSE='#'
2606 else
2607 MAINTAINER_MODE_TRUE='#'
2608 MAINTAINER_MODE_FALSE=
2609 fi
2610
2611 MAINT=$MAINTAINER_MODE_TRUE
2612
2658 # For better backward compatibility. To be removed once Automake 1.9.x
2659 # dies out for good. For more background, see:
2660 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2661 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2662 mkdir_p='$(MKDIR_P)'
2663
2664 # We need awk for the "check" target (and possibly the TAP driver). The
2665 # system "awk" is bad on some platforms.
2666 # Always define AMTAR for backward compatibility. Yes, it's still used
2667 # in the wild :-( We should find a proper way to deprecate it ...
2668 AMTAR='$${TAR-tar}'
2669
2670
2671 # We'll loop over all known methods to create a tar archive until one works.
2672 _am_tools='gnutar pax cpio none'
2673
2674 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2675
2676
2677
2678
2679
2680
2681 # POSIX will say in a future version that running "rm -f" with no argument
2682 # is OK; and we want to be able to make that assumption in our Makefile
2683 # recipes. So use an aggressive probe to check that the usage we want is
2684 # actually supported "in the wild" to an acceptable degree.
2685 # See automake bug#10828.
2686 # To make any issue more visible, cause the running configure to be aborted
2687 # by default if the 'rm' program in use doesn't match our expectations; the
2688 # user can still override this though.
2689 if rm -f && rm -fr && rm -rf; then : OK; else
2690 cat >&2 <<'END'
2691 Oops!
2692
2693 Your 'rm' program seems unable to run without file operands specified
2694 on the command line, even when the '-f' option is present. This is contrary
2695 to the behaviour of most rm programs out there, and not conforming with
2696 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2697
2698 Please tell bug-automake@gnu.org about your system, including the value
2699 of your $PATH and any error possibly output before this message. This
2700 can help us improve future automake versions.
2701
2702 END
2703 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2704 echo 'Configuration will proceed anyway, since you have set the' >&2
2705 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2706 echo >&2
2707 else
2708 cat >&2 <<'END'
2709 Aborting the configuration process, to ensure you take notice of the issue.
2710
2711 You can download and install GNU coreutils to get an 'rm' implementation
2712 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2713
2714 If you want to complete the configuration process using your problematic
2715 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2716 to "yes", and re-run configure.
2717
2718 END
2719 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2720 fi
2721 fi
26132722
26142723
26152724 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
26432752 _am_result=none
26442753 # First try GNU make style include.
26452754 echo "include confinc" > confmf
2646 # Ignore all kinds of additional output from `make'.
2755 # Ignore all kinds of additional output from 'make'.
26472756 case `$am_make -s -f confmf 2> /dev/null` in #(
26482757 *the\ am__doit\ target*)
26492758 am__include=include
26762785 if test "x$enable_dependency_tracking" != xno; then
26772786 am_depcomp="$ac_aux_dir/depcomp"
26782787 AMDEPBACKSLASH='\'
2788 am__nodep='_no'
26792789 fi
26802790 if test "x$enable_dependency_tracking" != xno; then
26812791 AMDEP_TRUE=
27082818 IFS=$as_save_IFS
27092819 test -z "$as_dir" && as_dir=.
27102820 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27122822 ac_cv_prog_CC="${ac_tool_prefix}gcc"
27132823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27142824 break 2
27482858 IFS=$as_save_IFS
27492859 test -z "$as_dir" && as_dir=.
27502860 for ac_exec_ext in '' $ac_executable_extensions; do
2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27522862 ac_cv_prog_ac_ct_CC="gcc"
27532863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27542864 break 2
28012911 IFS=$as_save_IFS
28022912 test -z "$as_dir" && as_dir=.
28032913 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28052915 ac_cv_prog_CC="${ac_tool_prefix}cc"
28062916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28072917 break 2
28422952 IFS=$as_save_IFS
28432953 test -z "$as_dir" && as_dir=.
28442954 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28462956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
28472957 ac_prog_rejected=yes
28482958 continue
29003010 IFS=$as_save_IFS
29013011 test -z "$as_dir" && as_dir=.
29023012 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29043014 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
29053015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29063016 break 2
29443054 IFS=$as_save_IFS
29453055 test -z "$as_dir" && as_dir=.
29463056 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29483058 ac_cv_prog_ac_ct_CC="$ac_prog"
29493059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29503060 break 2
33903500 /* end confdefs.h. */
33913501 #include <stdarg.h>
33923502 #include <stdio.h>
3393 #include <sys/types.h>
3394 #include <sys/stat.h>
3503 struct stat;
33953504 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
33963505 struct buf { int x; };
33973506 FILE * (*rcsopen) (struct buf *, struct stat *, int);
34763585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34773586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34783587
3588 ac_ext=c
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3594 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3595 if ${am_cv_prog_cc_c_o+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3600
3601 int
3602 main ()
3603 {
3604
3605 ;
3606 return 0;
3607 }
3608 _ACEOF
3609 # Make sure it works both with $CC and with simple cc.
3610 # Following AC_PROG_CC_C_O, we do the test twice because some
3611 # compilers refuse to overwrite an existing .o file with -o,
3612 # though they will create one.
3613 am_cv_prog_cc_c_o=yes
3614 for am_i in 1 2; do
3615 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3616 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } \
3620 && test -f conftest2.$ac_objext; then
3621 : OK
3622 else
3623 am_cv_prog_cc_c_o=no
3624 break
3625 fi
3626 done
3627 rm -f core conftest*
3628 unset am_i
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3631 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3632 if test "$am_cv_prog_cc_c_o" != yes; then
3633 # Losing compiler, so override with the script.
3634 # FIXME: It is wrong to rewrite CC.
3635 # But if we don't then we get into trouble of one sort or another.
3636 # A longer-term fix would be to have automake use am__CC in this case,
3637 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3638 CC="$am_aux_dir/compile $CC"
3639 fi
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
3646
34793647 depcc="$CC" am_compiler_list=
34803648
34813649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
34873655 # We make a subdir and do the tests there. Otherwise we can end up
34883656 # making bogus files that we don't know about and never remove. For
34893657 # instance it was reported that on HP-UX the gcc test will end up
3490 # making a dummy file named `D' -- because `-MD' means `put the output
3491 # in D'.
3658 # making a dummy file named 'D' -- because '-MD' means "put the output
3659 # in D".
3660 rm -rf conftest.dir
34923661 mkdir conftest.dir
34933662 # Copy depcomp to subdir because otherwise we won't find it if we're
34943663 # using a relative directory.
35223691 : > sub/conftest.c
35233692 for i in 1 2 3 4 5 6; do
35243693 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3525 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3526 # Solaris 8's {/usr,}/bin/sh.
3527 touch sub/conftst$i.h
3694 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3695 # Solaris 10 /bin/sh.
3696 echo '/* dummy */' > sub/conftst$i.h
35283697 done
35293698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
35303699
3531 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3700 # We check with '-c' and '-o' for the sake of the "dashmstdout"
35323701 # mode. It turns out that the SunPro C++ compiler does not properly
3533 # handle `-M -o', and we need to detect this. Also, some Intel
3534 # versions had trouble with output in subdirs
3702 # handle '-M -o', and we need to detect this. Also, some Intel
3703 # versions had trouble with output in subdirs.
35353704 am__obj=sub/conftest.${OBJEXT-o}
35363705 am__minus_obj="-o $am__obj"
35373706 case $depmode in
35403709 test "$am__universal" = false || continue
35413710 ;;
35423711 nosideeffect)
3543 # after this tag, mechanisms are not by side-effect, so they'll
3544 # only be used when explicitly requested
3712 # After this tag, mechanisms are not by side-effect, so they'll
3713 # only be used when explicitly requested.
35453714 if test "x$enable_dependency_tracking" = xyes; then
35463715 continue
35473716 else
35483717 break
35493718 fi
35503719 ;;
3551 msvisualcpp | msvcmsys)
3552 # This compiler won't grok `-c -o', but also, the minuso test has
3720 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3721 # This compiler won't grok '-c -o', but also, the minuso test has
35533722 # not run yet. These depmodes are late enough in the game, and
35543723 # so weak that their functioning should not be impacted.
35553724 am__obj=conftest.${OBJEXT-o}
37493918 return 0;
37503919 }
37513920 _ACEOF
3752 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3921 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
37533922 do
37543923 CC="$ac_save_CC $ac_arg"
37553924 if ac_fn_c_try_compile "$LINENO"; then :
39354104 for ac_prog in grep ggrep; do
39364105 for ac_exec_ext in '' $ac_executable_extensions; do
39374106 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3938 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4107 as_fn_executable_p "$ac_path_GREP" || continue
39394108 # Check for GNU ac_path_GREP and select it if it is found.
39404109 # Check for GNU $ac_path_GREP
39414110 case `"$ac_path_GREP" --version 2>&1` in
40014170 for ac_prog in egrep; do
40024171 for ac_exec_ext in '' $ac_executable_extensions; do
40034172 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4004 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4173 as_fn_executable_p "$ac_path_EGREP" || continue
40054174 # Check for GNU ac_path_EGREP and select it if it is found.
40064175 # Check for GNU $ac_path_EGREP
40074176 case `"$ac_path_EGREP" --version 2>&1` in
42064375
42074376
42084377
4378
4379
4380
4381
4382
42094383 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42104384 if test -n "$ac_tool_prefix"; then
42114385 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42264400 IFS=$as_save_IFS
42274401 test -z "$as_dir" && as_dir=.
42284402 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42304404 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42314405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42324406 break 2
42694443 IFS=$as_save_IFS
42704444 test -z "$as_dir" && as_dir=.
42714445 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42734447 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42744448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42754449 break 2
43184492 $as_echo "no" >&6; }
43194493 PKG_CONFIG=""
43204494 fi
4321
43224495 fi
43234496 # Make sure we can run config.sub.
43244497 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
44134586 for ac_prog in sed gsed; do
44144587 for ac_exec_ext in '' $ac_executable_extensions; do
44154588 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4416 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4589 as_fn_executable_p "$ac_path_SED" || continue
44174590 # Check for GNU ac_path_SED and select it if it is found.
44184591 # Check for GNU $ac_path_SED
44194592 case `"$ac_path_SED" --version 2>&1` in
45534726 found="no"
45544727
45554728 if test $found = "no" ; then
4556 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
45574730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
45584731 fi
45594732
4560 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
45614734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
45624735 fi
45634736
45644737 CFLAGS="$CFLAGS -Wall"
45654738
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4567 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4740 $as_echo_n "checking if $CC supports -Wall... " >&6; }
45684741 cacheid=xorg_cv_cc_flag__Wall
45694742 if eval \${$cacheid+:} false; then :
45704743 $as_echo_n "(cached) " >&6
46714844 found="no"
46724845
46734846 if test $found = "no" ; then
4674 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
46754848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
46764849 fi
46774850
4678 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4851 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
46794852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
46804853 fi
46814854
46824855 CFLAGS="$CFLAGS -Wpointer-arith"
46834856
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4685 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4858 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
46864859 cacheid=xorg_cv_cc_flag__Wpointer_arith
46874860 if eval \${$cacheid+:} false; then :
46884861 $as_echo_n "(cached) " >&6
47894962 found="no"
47904963
47914964 if test $found = "no" ; then
4792 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
47934966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
47944967 fi
47954968
4796 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
47974970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
47984971 fi
47994972
48004973 CFLAGS="$CFLAGS -Wmissing-declarations"
48014974
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4803 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4976 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
48044977 cacheid=xorg_cv_cc_flag__Wmissing_declarations
48054978 if eval \${$cacheid+:} false; then :
48064979 $as_echo_n "(cached) " >&6
49075080 found="no"
49085081
49095082 if test $found = "no" ; then
4910 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
49115084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49125085 fi
49135086
4914 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
49155088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
49165089 fi
49175090
49185091 CFLAGS="$CFLAGS -Wformat=2"
49195092
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4921 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4922 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5094 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5095 cacheid=xorg_cv_cc_flag__Wformat_2
49235096 if eval \${$cacheid+:} false; then :
49245097 $as_echo_n "(cached) " >&6
49255098 else
49565129 fi
49575130
49585131 if test $found = "no" ; then
4959 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
49605133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49615134 fi
49625135
4963 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
49645137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
49655138 fi
49665139
49675140 CFLAGS="$CFLAGS -Wformat"
49685141
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
4970 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5143 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
49715144 cacheid=xorg_cv_cc_flag__Wformat
49725145 if eval \${$cacheid+:} false; then :
49735146 $as_echo_n "(cached) " >&6
50765249 found="no"
50775250
50785251 if test $found = "no" ; then
5079 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
50805253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50815254 fi
50825255
5083 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
50845257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
50855258 fi
50865259
50875260 CFLAGS="$CFLAGS -Wstrict-prototypes"
50885261
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5090 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5263 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
50915264 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
50925265 if eval \${$cacheid+:} false; then :
50935266 $as_echo_n "(cached) " >&6
51945367 found="no"
51955368
51965369 if test $found = "no" ; then
5197 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51985371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51995372 fi
52005373
5201 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
52025375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52035376 fi
52045377
52055378 CFLAGS="$CFLAGS -Wmissing-prototypes"
52065379
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5208 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5381 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
52095382 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
52105383 if eval \${$cacheid+:} false; then :
52115384 $as_echo_n "(cached) " >&6
53125485 found="no"
53135486
53145487 if test $found = "no" ; then
5315 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
53165489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53175490 fi
53185491
5319 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
53205493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53215494 fi
53225495
53235496 CFLAGS="$CFLAGS -Wnested-externs"
53245497
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5326 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5499 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
53275500 cacheid=xorg_cv_cc_flag__Wnested_externs
53285501 if eval \${$cacheid+:} false; then :
53295502 $as_echo_n "(cached) " >&6
54305603 found="no"
54315604
54325605 if test $found = "no" ; then
5433 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54345607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54355608 fi
54365609
5437 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
54385611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54395612 fi
54405613
54415614 CFLAGS="$CFLAGS -Wbad-function-cast"
54425615
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5444 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5617 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
54455618 cacheid=xorg_cv_cc_flag__Wbad_function_cast
54465619 if eval \${$cacheid+:} false; then :
54475620 $as_echo_n "(cached) " >&6
55485721 found="no"
55495722
55505723 if test $found = "no" ; then
5551 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55525725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55535726 fi
55545727
5555 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
55565729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55575730 fi
55585731
55595732 CFLAGS="$CFLAGS -Wold-style-definition"
55605733
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5562 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5735 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
55635736 cacheid=xorg_cv_cc_flag__Wold_style_definition
55645737 if eval \${$cacheid+:} false; then :
55655738 $as_echo_n "(cached) " >&6
55925765 $as_echo "$supported" >&6; }
55935766 if test "$supported" = "yes" ; then
55945767 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5768 found="yes"
5769 fi
5770 fi
5771
5772 if test $found = "no" ; then
5773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5775 fi
5776
5777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5779 fi
5780
5781 CFLAGS="$CFLAGS -fd"
5782
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5784 $as_echo_n "checking if $CC supports -fd... " >&6; }
5785 cacheid=xorg_cv_cc_flag__fd
5786 if eval \${$cacheid+:} false; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 int i;
5792 int
5793 main ()
5794 {
5795
5796 ;
5797 return 0;
5798 }
5799 _ACEOF
5800 if ac_fn_c_try_link "$LINENO"; then :
5801 eval $cacheid=yes
5802 else
5803 eval $cacheid=no
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext \
5806 conftest$ac_exeext conftest.$ac_ext
5807 fi
5808
5809
5810 CFLAGS="$xorg_testset_save_CFLAGS"
5811
5812 eval supported=\$$cacheid
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5814 $as_echo "$supported" >&6; }
5815 if test "$supported" = "yes" ; then
5816 BASE_CFLAGS="$BASE_CFLAGS -fd"
55955817 found="yes"
55965818 fi
55975819 fi
56665888 found="no"
56675889
56685890 if test $found = "no" ; then
5669 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56705892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56715893 fi
56725894
5673 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
56745896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
56755897 fi
56765898
56775899 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
56785900
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5680 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5902 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
56815903 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
56825904 if eval \${$cacheid+:} false; then :
56835905 $as_echo_n "(cached) " >&6
57886010 found="no"
57896011
57906012 if test $found = "no" ; then
5791 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57926014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57936015 fi
57946016
5795 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
57966018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57976019 fi
57986020
57996021 CFLAGS="$CFLAGS -Wunused"
58006022
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5802 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6024 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
58036025 cacheid=xorg_cv_cc_flag__Wunused
58046026 if eval \${$cacheid+:} false; then :
58056027 $as_echo_n "(cached) " >&6
59066128 found="no"
59076129
59086130 if test $found = "no" ; then
5909 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59106132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59116133 fi
59126134
5913 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
59146136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59156137 fi
59166138
59176139 CFLAGS="$CFLAGS -Wuninitialized"
59186140
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5920 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6142 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
59216143 cacheid=xorg_cv_cc_flag__Wuninitialized
59226144 if eval \${$cacheid+:} false; then :
59236145 $as_echo_n "(cached) " >&6
60246246 found="no"
60256247
60266248 if test $found = "no" ; then
6027 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60286250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60296251 fi
60306252
6031 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
60326254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60336255 fi
60346256
60356257 CFLAGS="$CFLAGS -Wshadow"
60366258
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6038 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6260 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
60396261 cacheid=xorg_cv_cc_flag__Wshadow
60406262 if eval \${$cacheid+:} false; then :
60416263 $as_echo_n "(cached) " >&6
61426364 found="no"
61436365
61446366 if test $found = "no" ; then
6145 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61466368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61476369 fi
61486370
6149 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
61506372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
61516373 fi
61526374
6153 CFLAGS="$CFLAGS -Wcast-qual"
6154
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6156 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6157 cacheid=xorg_cv_cc_flag__Wcast_qual
6375 CFLAGS="$CFLAGS -Wmissing-noreturn"
6376
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6378 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6379 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
61586380 if eval \${$cacheid+:} false; then :
61596381 $as_echo_n "(cached) " >&6
61606382 else
61856407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
61866408 $as_echo "$supported" >&6; }
61876409 if test "$supported" = "yes" ; then
6188 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6410 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
61896411 found="yes"
61906412 fi
61916413 fi
62606482 found="no"
62616483
62626484 if test $found = "no" ; then
6263 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62646486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62656487 fi
62666488
6267 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
62686490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62696491 fi
62706492
6271 CFLAGS="$CFLAGS -Wmissing-noreturn"
6272
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6274 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6275 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6493 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6496 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6497 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
62766498 if eval \${$cacheid+:} false; then :
62776499 $as_echo_n "(cached) " >&6
62786500 else
63036525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
63046526 $as_echo "$supported" >&6; }
63056527 if test "$supported" = "yes" ; then
6306 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6528 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
63076529 found="yes"
63086530 fi
63096531 fi
63786600 found="no"
63796601
63806602 if test $found = "no" ; then
6381 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
63826604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63836605 fi
63846606
6385 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
63866608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63876609 fi
63886610
6389 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6390
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6392 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6393 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6611 CFLAGS="$CFLAGS -Wredundant-decls"
6612
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6614 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6615 cacheid=xorg_cv_cc_flag__Wredundant_decls
63946616 if eval \${$cacheid+:} false; then :
63956617 $as_echo_n "(cached) " >&6
63966618 else
64216643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
64226644 $as_echo "$supported" >&6; }
64236645 if test "$supported" = "yes" ; then
6424 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6646 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
64256647 found="yes"
64266648 fi
64276649 fi
64966718 found="no"
64976719
64986720 if test $found = "no" ; then
6499 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65006722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65016723 fi
65026724
6503 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
65046726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65056727 fi
65066728
6507 CFLAGS="$CFLAGS -Wredundant-decls"
6508
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6510 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6511 cacheid=xorg_cv_cc_flag__Wredundant_decls
6729 CFLAGS="$CFLAGS -Wlogical-op"
6730
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6732 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6733 cacheid=xorg_cv_cc_flag__Wlogical_op
65126734 if eval \${$cacheid+:} false; then :
65136735 $as_echo_n "(cached) " >&6
65146736 else
65396761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
65406762 $as_echo "$supported" >&6; }
65416763 if test "$supported" = "yes" ; then
6542 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6764 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
65436765 found="yes"
65446766 fi
65456767 fi
65496771 # These are currently disabled because they are noisy. They will be enabled
65506772 # in the future once the codebase is sufficiently modernized to silence
65516773 # them. For now, I don't want them to drown out the other warnings.
6552 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
65536774 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
65546775 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6776 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
65556777
65566778 # Turn some warnings into errors, so we don't accidently get successful builds
65576779 # when there are problems that should be fixed.
66266848 found="no"
66276849
66286850 if test $found = "no" ; then
6629 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66306852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66316853 fi
66326854
6633 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
66346856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66356857 fi
66366858
66376859 CFLAGS="$CFLAGS -Werror=implicit"
66386860
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6640 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6641 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6862 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6863 cacheid=xorg_cv_cc_flag__Werror_implicit
66426864 if eval \${$cacheid+:} false; then :
66436865 $as_echo_n "(cached) " >&6
66446866 else
66756897 fi
66766898
66776899 if test $found = "no" ; then
6678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66796901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66806902 fi
66816903
6682 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
66836905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66846906 fi
66856907
66866908 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
66876909
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6689 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6690 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6911 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6912 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
66916913 if eval \${$cacheid+:} false; then :
66926914 $as_echo_n "(cached) " >&6
66936915 else
67937015 found="no"
67947016
67957017 if test $found = "no" ; then
6796 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67977019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67987020 fi
67997021
6800 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
68017023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68027024 fi
68037025
68047026 CFLAGS="$CFLAGS -Werror=nonnull"
68057027
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6807 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6808 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7029 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7030 cacheid=xorg_cv_cc_flag__Werror_nonnull
68097031 if eval \${$cacheid+:} false; then :
68107032 $as_echo_n "(cached) " >&6
68117033 else
69117133 found="no"
69127134
69137135 if test $found = "no" ; then
6914 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69157137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69167138 fi
69177139
6918 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
69197141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69207142 fi
69217143
69227144 CFLAGS="$CFLAGS -Werror=init-self"
69237145
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6925 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6926 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7147 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7148 cacheid=xorg_cv_cc_flag__Werror_init_self
69277149 if eval \${$cacheid+:} false; then :
69287150 $as_echo_n "(cached) " >&6
69297151 else
70297251 found="no"
70307252
70317253 if test $found = "no" ; then
7032 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70337255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70347256 fi
70357257
7036 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
70377259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70387260 fi
70397261
70407262 CFLAGS="$CFLAGS -Werror=main"
70417263
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7043 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7044 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7265 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7266 cacheid=xorg_cv_cc_flag__Werror_main
70457267 if eval \${$cacheid+:} false; then :
70467268 $as_echo_n "(cached) " >&6
70477269 else
71477369 found="no"
71487370
71497371 if test $found = "no" ; then
7150 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71517373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71527374 fi
71537375
7154 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
71557377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71567378 fi
71577379
71587380 CFLAGS="$CFLAGS -Werror=missing-braces"
71597381
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7161 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7162 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7383 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7384 cacheid=xorg_cv_cc_flag__Werror_missing_braces
71637385 if eval \${$cacheid+:} false; then :
71647386 $as_echo_n "(cached) " >&6
71657387 else
72657487 found="no"
72667488
72677489 if test $found = "no" ; then
7268 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
72697491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72707492 fi
72717493
7272 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
72737495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
72747496 fi
72757497
72767498 CFLAGS="$CFLAGS -Werror=sequence-point"
72777499
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7279 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7280 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7501 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7502 cacheid=xorg_cv_cc_flag__Werror_sequence_point
72817503 if eval \${$cacheid+:} false; then :
72827504 $as_echo_n "(cached) " >&6
72837505 else
73837605 found="no"
73847606
73857607 if test $found = "no" ; then
7386 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73877609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73887610 fi
73897611
7390 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
73917613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73927614 fi
73937615
73947616 CFLAGS="$CFLAGS -Werror=return-type"
73957617
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7397 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7398 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7619 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7620 cacheid=xorg_cv_cc_flag__Werror_return_type
73997621 if eval \${$cacheid+:} false; then :
74007622 $as_echo_n "(cached) " >&6
74017623 else
74327654 fi
74337655
74347656 if test $found = "no" ; then
7435 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74367658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74377659 fi
74387660
7439 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
74407662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74417663 fi
74427664
74437665 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
74447666
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7446 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7447 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7668 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7669 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
74487670 if eval \${$cacheid+:} false; then :
74497671 $as_echo_n "(cached) " >&6
74507672 else
75507772 found="no"
75517773
75527774 if test $found = "no" ; then
7553 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75547776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75557777 fi
75567778
7557 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
75587780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75597781 fi
75607782
75617783 CFLAGS="$CFLAGS -Werror=trigraphs"
75627784
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7564 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7565 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7786 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7787 cacheid=xorg_cv_cc_flag__Werror_trigraphs
75667788 if eval \${$cacheid+:} false; then :
75677789 $as_echo_n "(cached) " >&6
75687790 else
76687890 found="no"
76697891
76707892 if test $found = "no" ; then
7671 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
76727894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76737895 fi
76747896
7675 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
76767898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76777899 fi
76787900
76797901 CFLAGS="$CFLAGS -Werror=array-bounds"
76807902
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7682 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7683 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7904 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7905 cacheid=xorg_cv_cc_flag__Werror_array_bounds
76847906 if eval \${$cacheid+:} false; then :
76857907 $as_echo_n "(cached) " >&6
76867908 else
77868008 found="no"
77878009
77888010 if test $found = "no" ; then
7789 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77908012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77918013 fi
77928014
7793 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
77948016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
77958017 fi
77968018
77978019 CFLAGS="$CFLAGS -Werror=write-strings"
77988020
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7800 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7801 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8022 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8023 cacheid=xorg_cv_cc_flag__Werror_write_strings
78028024 if eval \${$cacheid+:} false; then :
78038025 $as_echo_n "(cached) " >&6
78048026 else
79048126 found="no"
79058127
79068128 if test $found = "no" ; then
7907 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79088130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79098131 fi
79108132
7911 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
79128134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79138135 fi
79148136
79158137 CFLAGS="$CFLAGS -Werror=address"
79168138
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7918 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7919 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8140 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8141 cacheid=xorg_cv_cc_flag__Werror_address
79208142 if eval \${$cacheid+:} false; then :
79218143 $as_echo_n "(cached) " >&6
79228144 else
80228244 found="no"
80238245
80248246 if test $found = "no" ; then
8025 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80268248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80278249 fi
80288250
8029 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
80308252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80318253 fi
80328254
80338255 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
80348256
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8036 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8037 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8258 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8259 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
80388260 if eval \${$cacheid+:} false; then :
80398261 $as_echo_n "(cached) " >&6
80408262 else
80718293 fi
80728294
80738295 if test $found = "no" ; then
8074 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80758297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80768298 fi
80778299
8078 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
80798301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80808302 fi
80818303
80828304 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
80838305
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8085 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8086 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8307 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8308 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
80878309 if eval \${$cacheid+:} false; then :
80888310 $as_echo_n "(cached) " >&6
80898311 else
81898411 found="no"
81908412
81918413 if test $found = "no" ; then
8192 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81938415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81948416 fi
81958417
8196 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
81978419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81988420 fi
81998421
82008422 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
82018423
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8203 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8204 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8425 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8426 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
82058427 if eval \${$cacheid+:} false; then :
82068428 $as_echo_n "(cached) " >&6
82078429 else
83108532 found="no"
83118533
83128534 if test $found = "no" ; then
8313 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83148536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83158537 fi
83168538
8317 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
83188540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83198541 fi
83208542
83218543 CFLAGS="$CFLAGS -Wimplicit"
83228544
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8324 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8546 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
83258547 cacheid=xorg_cv_cc_flag__Wimplicit
83268548 if eval \${$cacheid+:} false; then :
83278549 $as_echo_n "(cached) " >&6
84288650 found="no"
84298651
84308652 if test $found = "no" ; then
8431 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84328654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84338655 fi
84348656
8435 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
84368658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84378659 fi
84388660
84398661 CFLAGS="$CFLAGS -Wnonnull"
84408662
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8442 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8664 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
84438665 cacheid=xorg_cv_cc_flag__Wnonnull
84448666 if eval \${$cacheid+:} false; then :
84458667 $as_echo_n "(cached) " >&6
85468768 found="no"
85478769
85488770 if test $found = "no" ; then
8549 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85508772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85518773 fi
85528774
8553 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
85548776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85558777 fi
85568778
85578779 CFLAGS="$CFLAGS -Winit-self"
85588780
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8560 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8782 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
85618783 cacheid=xorg_cv_cc_flag__Winit_self
85628784 if eval \${$cacheid+:} false; then :
85638785 $as_echo_n "(cached) " >&6
86648886 found="no"
86658887
86668888 if test $found = "no" ; then
8667 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86688890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86698891 fi
86708892
8671 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
86728894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86738895 fi
86748896
86758897 CFLAGS="$CFLAGS -Wmain"
86768898
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8678 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8900 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
86798901 cacheid=xorg_cv_cc_flag__Wmain
86808902 if eval \${$cacheid+:} false; then :
86818903 $as_echo_n "(cached) " >&6
87829004 found="no"
87839005
87849006 if test $found = "no" ; then
8785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87869008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87879009 fi
87889010
8789 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
87909012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87919013 fi
87929014
87939015 CFLAGS="$CFLAGS -Wmissing-braces"
87949016
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8796 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9018 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
87979019 cacheid=xorg_cv_cc_flag__Wmissing_braces
87989020 if eval \${$cacheid+:} false; then :
87999021 $as_echo_n "(cached) " >&6
89009122 found="no"
89019123
89029124 if test $found = "no" ; then
8903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89049126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89059127 fi
89069128
8907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
89089130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89099131 fi
89109132
89119133 CFLAGS="$CFLAGS -Wsequence-point"
89129134
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8914 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9136 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
89159137 cacheid=xorg_cv_cc_flag__Wsequence_point
89169138 if eval \${$cacheid+:} false; then :
89179139 $as_echo_n "(cached) " >&6
90189240 found="no"
90199241
90209242 if test $found = "no" ; then
9021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90229244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90239245 fi
90249246
9025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
90269248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90279249 fi
90289250
90299251 CFLAGS="$CFLAGS -Wreturn-type"
90309252
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9032 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9254 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
90339255 cacheid=xorg_cv_cc_flag__Wreturn_type
90349256 if eval \${$cacheid+:} false; then :
90359257 $as_echo_n "(cached) " >&6
91369358 found="no"
91379359
91389360 if test $found = "no" ; then
9139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91409362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91419363 fi
91429364
9143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
91449366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91459367 fi
91469368
91479369 CFLAGS="$CFLAGS -Wtrigraphs"
91489370
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9150 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9372 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
91519373 cacheid=xorg_cv_cc_flag__Wtrigraphs
91529374 if eval \${$cacheid+:} false; then :
91539375 $as_echo_n "(cached) " >&6
92549476 found="no"
92559477
92569478 if test $found = "no" ; then
9257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92589480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92599481 fi
92609482
9261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
92629484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92639485 fi
92649486
92659487 CFLAGS="$CFLAGS -Warray-bounds"
92669488
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9268 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9490 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
92699491 cacheid=xorg_cv_cc_flag__Warray_bounds
92709492 if eval \${$cacheid+:} false; then :
92719493 $as_echo_n "(cached) " >&6
93729594 found="no"
93739595
93749596 if test $found = "no" ; then
9375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93769598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93779599 fi
93789600
9379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
93809602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93819603 fi
93829604
93839605 CFLAGS="$CFLAGS -Wwrite-strings"
93849606
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9386 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9608 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
93879609 cacheid=xorg_cv_cc_flag__Wwrite_strings
93889610 if eval \${$cacheid+:} false; then :
93899611 $as_echo_n "(cached) " >&6
94909712 found="no"
94919713
94929714 if test $found = "no" ; then
9493 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
94949716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94959717 fi
94969718
9497 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
94989720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
94999721 fi
95009722
95019723 CFLAGS="$CFLAGS -Waddress"
95029724
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9504 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9726 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
95059727 cacheid=xorg_cv_cc_flag__Waddress
95069728 if eval \${$cacheid+:} false; then :
95079729 $as_echo_n "(cached) " >&6
96089830 found="no"
96099831
96109832 if test $found = "no" ; then
9611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96129834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96139835 fi
96149836
9615 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
96169838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96179839 fi
96189840
96199841 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
96209842
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9622 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9844 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
96239845 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
96249846 if eval \${$cacheid+:} false; then :
96259847 $as_echo_n "(cached) " >&6
97269948 found="no"
97279949
97289950 if test $found = "no" ; then
9729 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97309952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97319953 fi
97329954
9733 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
97349956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97359957 fi
97369958
97379959 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
97389960
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9740 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9962 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
97419963 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
97429964 if eval \${$cacheid+:} false; then :
97439965 $as_echo_n "(cached) " >&6
987710099 found="no"
987810100
987910101 if test $found = "no" ; then
9880 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
988110103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
988210104 fi
988310105
9884 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
988510107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
988610108 fi
988710109
988810110 CFLAGS="$CFLAGS -pedantic"
988910111
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9891 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10113 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
989210114 cacheid=xorg_cv_cc_flag__pedantic
989310115 if eval \${$cacheid+:} false; then :
989410116 $as_echo_n "(cached) " >&6
999510217 found="no"
999610218
999710219 if test $found = "no" ; then
9998 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
999910221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1000010222 fi
1000110223
10002 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1000310225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1000410226 fi
1000510227
1000610228 CFLAGS="$CFLAGS -Werror"
1000710229
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10009 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10231 $as_echo_n "checking if $CC supports -Werror... " >&6; }
1001010232 cacheid=xorg_cv_cc_flag__Werror
1001110233 if eval \${$cacheid+:} false; then :
1001210234 $as_echo_n "(cached) " >&6
1004410266 fi
1004510267
1004610268 if test $found = "no" ; then
10047 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1004810270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1004910271 fi
1005010272
10051 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1005210274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1005310275 fi
1005410276
1005510277 CFLAGS="$CFLAGS -errwarn"
1005610278
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10058 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10280 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
1005910281 cacheid=xorg_cv_cc_flag__errwarn
1006010282 if eval \${$cacheid+:} false; then :
1006110283 $as_echo_n "(cached) " >&6
1016510387 found="no"
1016610388
1016710389 if test $found = "no" ; then
10168 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1016910391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1017010392 fi
1017110393
10172 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1017310395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1017410396 fi
1017510397
1017610398 CFLAGS="$CFLAGS -Werror=attributes"
1017710399
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10179 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10180 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10401 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10402 cacheid=xorg_cv_cc_flag__Werror_attributes
1018110403 if eval \${$cacheid+:} false; then :
1018210404 $as_echo_n "(cached) " >&6
1018310405 else
1028410506
1028510507 if test x$FILE_MAN_SUFFIX = x ; then
1028610508 case $host_os in
10287 solaris*) FILE_MAN_SUFFIX=4 ;;
10288 *) FILE_MAN_SUFFIX=5 ;;
10509 # Solaris 2.0 - 11 use SysV man page sections
10510 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10511 *) FILE_MAN_SUFFIX=5 ;;
1028910512 esac
1029010513 fi
1029110514 if test x$FILE_MAN_DIR = x ; then
1029410517
1029510518 if test x$MISC_MAN_SUFFIX = x ; then
1029610519 case $host_os in
10297 solaris*) MISC_MAN_SUFFIX=5 ;;
10298 *) MISC_MAN_SUFFIX=7 ;;
10520 # Solaris 2.0 - 11 use SysV man page sections
10521 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10522 *) MISC_MAN_SUFFIX=7 ;;
1029910523 esac
1030010524 fi
1030110525 if test x$MISC_MAN_DIR = x ; then
1030410528
1030510529 if test x$DRIVER_MAN_SUFFIX = x ; then
1030610530 case $host_os in
10307 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10308 *) DRIVER_MAN_SUFFIX=4 ;;
10531 # Solaris 2.0 - 11 use SysV man page sections
10532 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10533 *) DRIVER_MAN_SUFFIX=4 ;;
1030910534 esac
1031010535 fi
1031110536 if test x$DRIVER_MAN_DIR = x ; then
1031410539
1031510540 if test x$ADMIN_MAN_SUFFIX = x ; then
1031610541 case $host_os in
10317 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10318 *) ADMIN_MAN_SUFFIX=8 ;;
10542 # Solaris 2.0 - 11 use SysV man page sections
10543 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10544 *) ADMIN_MAN_SUFFIX=8 ;;
1031910545 esac
1032010546 fi
1032110547 if test x$ADMIN_MAN_DIR = x ; then
1035910585 enableval=$enable_silent_rules;
1036010586 fi
1036110587
10362 case $enable_silent_rules in
10363 yes) AM_DEFAULT_VERBOSITY=0;;
10364 no) AM_DEFAULT_VERBOSITY=1;;
10365 *) AM_DEFAULT_VERBOSITY=0;;
10588 case $enable_silent_rules in # (((
10589 yes) AM_DEFAULT_VERBOSITY=0;;
10590 no) AM_DEFAULT_VERBOSITY=1;;
10591 *) AM_DEFAULT_VERBOSITY=0;;
1036610592 esac
10593 am_make=${MAKE-make}
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10595 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10596 if ${am_cv_make_support_nested_variables+:} false; then :
10597 $as_echo_n "(cached) " >&6
10598 else
10599 if $as_echo 'TRUE=$(BAR$(V))
10600 BAR0=false
10601 BAR1=true
10602 V=1
10603 am__doit:
10604 @$(TRUE)
10605 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10606 am_cv_make_support_nested_variables=yes
10607 else
10608 am_cv_make_support_nested_variables=no
10609 fi
10610 fi
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10612 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10613 if test $am_cv_make_support_nested_variables = yes; then
10614 AM_V='$(V)'
10615 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10616 else
10617 AM_V=$AM_DEFAULT_VERBOSITY
10618 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10619 fi
1036710620 AM_BACKSLASH='\'
1036810621
10369
10370
10371
10372 ac_config_headers="$ac_config_headers config.h"
1037310622
1037410623
1037510624 # Base set of required pkg-config packages
1043010679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1043110680 test $ac_status = 0; }; then
1043210681 pkg_cv_XLOGO_CFLAGS=`$PKG_CONFIG --cflags "$XLOGO_DEPS" 2>/dev/null`
10682 test "x$?" != "x0" && pkg_failed=yes
1043310683 else
1043410684 pkg_failed=yes
1043510685 fi
1044610696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1044710697 test $ac_status = 0; }; then
1044810698 pkg_cv_XLOGO_LIBS=`$PKG_CONFIG --libs "$XLOGO_DEPS" 2>/dev/null`
10699 test "x$?" != "x0" && pkg_failed=yes
1044910700 else
1045010701 pkg_failed=yes
1045110702 fi
1045610707
1045710708
1045810709 if test $pkg_failed = yes; then
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
1045910712
1046010713 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1046110714 _pkg_short_errors_supported=yes
1046310716 _pkg_short_errors_supported=no
1046410717 fi
1046510718 if test $_pkg_short_errors_supported = yes; then
10466 XLOGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$XLOGO_DEPS" 2>&1`
10719 XLOGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1`
1046710720 else
10468 XLOGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "$XLOGO_DEPS" 2>&1`
10721 XLOGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XLOGO_DEPS" 2>&1`
1046910722 fi
1047010723 # Put the nasty error message in config.log where it belongs
1047110724 echo "$XLOGO_PKG_ERRORS" >&5
1047910732
1048010733 Alternatively, you may set the environment variables XLOGO_CFLAGS
1048110734 and XLOGO_LIBS to avoid the need to call pkg-config.
10482 See the pkg-config man page for more details.
10483 " "$LINENO" 5
10735 See the pkg-config man page for more details." "$LINENO" 5
1048410736 elif test $pkg_failed = untried; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738 $as_echo "no" >&6; }
1048510739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1048610740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1048710741 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1049910753 XLOGO_LIBS=$pkg_cv_XLOGO_LIBS
1050010754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1050110755 $as_echo "yes" >&6; }
10502 :
10756
1050310757 fi
1050410758
1050510759
1051710771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1051810772 test $ac_status = 0; }; then
1051910773 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10774 test "x$?" != "x0" && pkg_failed=yes
1052010775 else
1052110776 pkg_failed=yes
1052210777 fi
1053310788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1053410789 test $ac_status = 0; }; then
1053510790 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10791 test "x$?" != "x0" && pkg_failed=yes
1053610792 else
1053710793 pkg_failed=yes
1053810794 fi
1054310799
1054410800
1054510801 if test $pkg_failed = yes; then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803 $as_echo "no" >&6; }
1054610804
1054710805 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1054810806 _pkg_short_errors_supported=yes
1055010808 _pkg_short_errors_supported=no
1055110809 fi
1055210810 if test $_pkg_short_errors_supported = yes; then
10553 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10811 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
1055410812 else
10555 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10813 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
1055610814 fi
1055710815 # Put the nasty error message in config.log where it belongs
1055810816 echo "$APPDEFS_PKG_ERRORS" >&5
1056610824
1056710825 Alternatively, you may set the environment variables APPDEFS_CFLAGS
1056810826 and APPDEFS_LIBS to avoid the need to call pkg-config.
10569 See the pkg-config man page for more details.
10570 " "$LINENO" 5
10827 See the pkg-config man page for more details." "$LINENO" 5
1057110828 elif test $pkg_failed = untried; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; }
1057210831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1057310832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1057410833 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
1058610845 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
1058710846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1058810847 $as_echo "yes" >&6; }
10589 :
10848
1059010849 fi
1059110850 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
1059210851
1071010969 LTLIBOBJS=$ac_ltlibobjs
1071110970
1071210971
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10973 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10974 if test -n "$am_sleep_pid"; then
10975 # Hide warnings about reused PIDs.
10976 wait $am_sleep_pid 2>/dev/null
10977 fi
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10979 $as_echo "done" >&6; }
1071310980 if test -n "$EXEEXT"; then
1071410981 am__EXEEXT_TRUE=
1071510982 am__EXEEXT_FALSE='#'
1071810985 am__EXEEXT_FALSE=
1071910986 fi
1072010987
10721 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10722 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10724 fi
1072510988 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1072610989 as_fn_error $? "conditional \"AMDEP\" was never defined.
1072710990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1103211295 # ... but there are two gotchas:
1103311296 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1103411297 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11035 # In both cases, we have to default to `cp -p'.
11298 # In both cases, we have to default to `cp -pR'.
1103611299 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11037 as_ln_s='cp -p'
11300 as_ln_s='cp -pR'
1103811301 elif ln conf$$.file conf$$ 2>/dev/null; then
1103911302 as_ln_s=ln
1104011303 else
11041 as_ln_s='cp -p'
11304 as_ln_s='cp -pR'
1104211305 fi
1104311306 else
11044 as_ln_s='cp -p'
11307 as_ln_s='cp -pR'
1104511308 fi
1104611309 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1104711310 rmdir conf$$.dir 2>/dev/null
1110111364 as_mkdir_p=false
1110211365 fi
1110311366
11104 if test -x / >/dev/null 2>&1; then
11105 as_test_x='test -x'
11106 else
11107 if ls -dL / >/dev/null 2>&1; then
11108 as_ls_L_option=L
11109 else
11110 as_ls_L_option=
11111 fi
11112 as_test_x='
11113 eval sh -c '\''
11114 if test -d "$1"; then
11115 test -d "$1/.";
11116 else
11117 case $1 in #(
11118 -*)set "./$1";;
11119 esac;
11120 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11121 ???[sx]*):;;*)false;;esac;fi
11122 '\'' sh
11123 '
11124 fi
11125 as_executable_p=$as_test_x
11367
11368 # as_fn_executable_p FILE
11369 # -----------------------
11370 # Test if FILE is an executable regular file.
11371 as_fn_executable_p ()
11372 {
11373 test -f "$1" && test -x "$1"
11374 } # as_fn_executable_p
11375 as_test_x='test -x'
11376 as_executable_p=as_fn_executable_p
1112611377
1112711378 # Sed expression to map a string onto a valid CPP name.
1112811379 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1114311394 # report actual input values of CONFIG_FILES etc. instead of their
1114411395 # values after options handling.
1114511396 ac_log="
11146 This file was extended by xlogo $as_me 1.0.4, which was
11147 generated by GNU Autoconf 2.68. Invocation command line was
11397 This file was extended by xlogo $as_me 1.0.5, which was
11398 generated by GNU Autoconf 2.69. Invocation command line was
1114811399
1114911400 CONFIG_FILES = $CONFIG_FILES
1115011401 CONFIG_HEADERS = $CONFIG_HEADERS
1120311454 Configuration commands:
1120411455 $config_commands
1120511456
11206 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11457 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlogo/issues>."
1120711458
1120811459 _ACEOF
1120911460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1121011461 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1121111462 ac_cs_version="\\
11212 xlogo config.status 1.0.4
11213 configured by $0, generated by GNU Autoconf 2.68,
11463 xlogo config.status 1.0.5
11464 configured by $0, generated by GNU Autoconf 2.69,
1121411465 with options \\"\$ac_cs_config\\"
1121511466
11216 Copyright (C) 2010 Free Software Foundation, Inc.
11467 Copyright (C) 2012 Free Software Foundation, Inc.
1121711468 This config.status script is free software; the Free Software Foundation
1121811469 gives unlimited permission to copy, distribute and modify it."
1121911470
1130411555 _ACEOF
1130511556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1130611557 if \$ac_cs_recheck; then
11307 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11558 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1130811559 shift
1130911560 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
1131011561 CONFIG_SHELL='$SHELL'
1133811589 for ac_config_target in $ac_config_targets
1133911590 do
1134011591 case $ac_config_target in
11592 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1134111593 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11342 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1134311594 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1134411595 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
1134511596
1193812189
1193912190 case $ac_file$ac_mode in
1194012191 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11941 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12192 # Older Autoconf quotes --file arguments for eval, but not when files
1194212193 # are listed without --file. Let's play safe and only enable the eval
1194312194 # if we detect the quoting.
1194412195 case $CONFIG_FILES in
1195112202 # Strip MF so we end up with the name of the file.
1195212203 mf=`echo "$mf" | sed -e 's/:.*$//'`
1195312204 # Check whether this is an Automake generated Makefile or not.
11954 # We used to match only the files named `Makefile.in', but
12205 # We used to match only the files named 'Makefile.in', but
1195512206 # some people rename them; so instead we look at the file content.
1195612207 # Grep'ing the first line is not enough: some people post-process
1195712208 # each Makefile.in and add a new line on top of each file to say so.
1198512236 continue
1198612237 fi
1198712238 # Extract the definition of DEPDIR, am__include, and am__quote
11988 # from the Makefile without running `make'.
12239 # from the Makefile without running 'make'.
1198912240 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1199012241 test -z "$DEPDIR" && continue
1199112242 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11992 test -z "am__include" && continue
12243 test -z "$am__include" && continue
1199312244 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11994 # When using ansi2knr, U may be empty or an underscore; expand it
11995 U=`sed -n 's/^U = //p' < "$mf"`
1199612245 # Find all dependency output files, they are included files with
1199712246 # $(DEPDIR) in their names. We invoke sed twice because it is the
1199812247 # simplest approach to changing $(DEPDIR) to its actual value in the
1199912248 # expansion.
1200012249 for file in `sed -n "
1200112250 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12002 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12251 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1200312252 # Make sure the directory exists.
1200412253 test -f "$dirpart/$file" && continue
1200512254 fdir=`$as_dirname -- "$file" ||
1919 dnl
2020 dnl Process this file with autoconf to create configure.
2121
22 # Initialize Autoconf
2223 AC_PREREQ([2.60])
23 AC_INIT([xlogo], [1.0.4],
24 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xlogo])
24 AC_INIT([xlogo], [1.0.5],
25 [https://gitlab.freedesktop.org/xorg/app/xlogo/issues], [xlogo])
26 AC_CONFIG_SRCDIR([Makefile.am])
27 AC_CONFIG_HEADERS([config.h])
28
29 # Initialize Automake
2530 AM_INIT_AUTOMAKE([foreign dist-bzip2])
26 AM_MAINTAINER_MODE
2731
2832 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2933 m4_ifndef([XORG_MACROS_VERSION],
3034 [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
3135 XORG_MACROS_VERSION(1.8)
3236 XORG_DEFAULT_OPTIONS
33
34
35 AC_CONFIG_HEADERS([config.h])
3637
3738 # Base set of required pkg-config packages
3839 XLOGO_DEPS="sm xaw7 xmu xt >= 1.0 xext x11"
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
76
87 # This program is free software; you can redistribute it and/or modify
98 # it under the terms of the GNU General Public License as published by
2726
2827 case $1 in
2928 '')
30 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
31 exit 1;
32 ;;
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
3332 -h | --h*)
3433 cat <<\EOF
3534 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
3938
4039 Environment variables:
4140 depmode Dependency tracking mode.
42 source Source file read by `PROGRAMS ARGS'.
43 object Object file output by `PROGRAMS ARGS'.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
4443 DEPDIR directory where to store dependencies.
4544 depfile Dependency file to output.
46 tmpdepfile Temporary file to use when outputing dependencies.
45 tmpdepfile Temporary file to use when outputting dependencies.
4746 libtool Whether libtool is used (yes/no).
4847
4948 Report bugs to <bug-automake@gnu.org>.
5655 ;;
5756 esac
5857
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
106 # A tabulation character.
107 tab=' '
108 # A newline character.
109 nl='
110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
117
59118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
60119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
61120 exit 1
67126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
68127
69128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
70132
71133 # Some modes work just like other modes, but use different flags. We
72134 # parameterize here, but still list the modes in the big case below,
79141 fi
80142
81143 if test "$depmode" = dashXmstdout; then
82 # This is just like dashmstdout with a different argument.
83 dashmflag=-xM
84 depmode=dashmstdout
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
85147 fi
86148
87149 cygpath_u="cygpath -u -f -"
88150 if test "$depmode" = msvcmsys; then
89 # This is just like msvisualcpp but w/o cygpath translation.
90 # Just convert the backslash-escaped backslashes to single forward
91 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
93 depmode=msvisualcpp
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
156 fi
157
158 if test "$depmode" = msvc7msys; then
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
164 fi
165
166 if test "$depmode" = xlc; then
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
94170 fi
95171
96172 case "$depmode" in
113189 done
114190 "$@"
115191 stat=$?
116 if test $stat -eq 0; then :
117 else
192 if test $stat -ne 0; then
118193 rm -f "$tmpdepfile"
119194 exit $stat
120195 fi
122197 ;;
123198
124199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
125203 ## There are various ways to get dependency output from gcc. Here's
126204 ## why we pick this rather obscure method:
127205 ## - Don't want to use -MD because we'd like the dependencies to end
128206 ## up in a subdir. Having to rename by hand is ugly.
129207 ## (We might end up doing this anyway to support other compilers.)
130208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
131 ## -MM, not -M (despite what the docs say).
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
132211 ## - Using -M directly means running the compiler twice (even worse
133212 ## than renaming).
134213 if test -z "$gccflag"; then
136215 fi
137216 "$@" -Wp,"$gccflag$tmpdepfile"
138217 stat=$?
139 if test $stat -eq 0; then :
140 else
218 if test $stat -ne 0; then
141219 rm -f "$tmpdepfile"
142220 exit $stat
143221 fi
144222 rm -f "$depfile"
145223 echo "$object : \\" > "$depfile"
146 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
147 ## The second -e expression handles DOS-style file names with drive letters.
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
148226 sed -e 's/^[^:]*: / /' \
149227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
150 ## This next piece of magic avoids the `deleted header file' problem.
228 ## This next piece of magic avoids the "deleted header file" problem.
151229 ## The problem is that when a header file which appears in a .P file
152230 ## is deleted, the dependency causes make to die (because there is
153231 ## typically no way to rebuild the header). We avoid this by adding
154232 ## dummy dependencies for each header file. Too bad gcc doesn't do
155233 ## this for us directly.
156 tr ' ' '
157 ' < "$tmpdepfile" |
158 ## Some versions of gcc put a space before the `:'. On the theory
234 ## Some versions of gcc put a space before the ':'. On the theory
159235 ## that the space means something, we add a space to the output as
160 ## well.
236 ## well. hp depmode also adds that space, but also prefixes the VPATH
237 ## to the object. Take care to not repeat it in the output.
161238 ## Some versions of the HPUX 10.20 sed can't process this invocation
162239 ## correctly. Breaking it into two sed invocations is a workaround.
163 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
164243 rm -f "$tmpdepfile"
165244 ;;
166245
178257 "$@" -MDupdate "$tmpdepfile"
179258 fi
180259 stat=$?
181 if test $stat -eq 0; then :
182 else
260 if test $stat -ne 0; then
183261 rm -f "$tmpdepfile"
184262 exit $stat
185263 fi
187265
188266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
189267 echo "$object : \\" > "$depfile"
190
191268 # Clip off the initial element (the dependent). Don't try to be
192269 # clever and replace this with sed code, as IRIX sed won't handle
193270 # lines with more than a fixed number of characters (4096 in
194271 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
195 # the IRIX cc adds comments like `#:fec' to the end of the
272 # the IRIX cc adds comments like '#:fec' to the end of the
196273 # dependency line.
197 tr ' ' '
198 ' < "$tmpdepfile" \
199 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
200 tr '
201 ' ' ' >> "$depfile"
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
202277 echo >> "$depfile"
203
204278 # The second pass generates a dummy entry for each header file.
205 tr ' ' '
206 ' < "$tmpdepfile" \
207 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
208 >> "$depfile"
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
209282 else
210 # The sourcefile does not contain any dependencies, so just
211 # store a dummy comment line, to avoid errors with the Makefile
212 # "include basename.Plo" scheme.
213 echo "#dummy" > "$depfile"
283 make_dummy_depfile
214284 fi
215285 rm -f "$tmpdepfile"
286 ;;
287
288 xlc)
289 # This case exists only to let depend.m4 do its work. It works by
290 # looking at the text of this script. This case will never be run,
291 # since it is checked for above.
292 exit 1
216293 ;;
217294
218295 aix)
219296 # The C for AIX Compiler uses -M and outputs the dependencies
220297 # in a .u file. In older versions, this file always lives in the
221 # current directory. Also, the AIX compiler puts `$object:' at the
298 # current directory. Also, the AIX compiler puts '$object:' at the
222299 # start of each line; $object doesn't have directory information.
223300 # Version 6 uses the directory in both cases.
224 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
225 test "x$dir" = "x$object" && dir=
226 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
301 set_dir_from "$object"
302 set_base_from "$object"
227303 if test "$libtool" = yes; then
228304 tmpdepfile1=$dir$base.u
229305 tmpdepfile2=$base.u
236312 "$@" -M
237313 fi
238314 stat=$?
239
240 if test $stat -eq 0; then :
241 else
315 if test $stat -ne 0; then
242316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
243317 exit $stat
244318 fi
247321 do
248322 test -f "$tmpdepfile" && break
249323 done
250 if test -f "$tmpdepfile"; then
251 # Each line is of the form `foo.o: dependent.h'.
252 # Do two passes, one to just change these to
253 # `$object: dependent.h' and one to simply `dependent.h:'.
254 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
255 # That's a tab and a space in the [].
256 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
257 else
258 # The sourcefile does not contain any dependencies, so just
259 # store a dummy comment line, to avoid errors with the Makefile
260 # "include basename.Plo" scheme.
261 echo "#dummy" > "$depfile"
262 fi
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
263355 rm -f "$tmpdepfile"
264356 ;;
265357
266 icc)
267 # Intel's C compiler understands `-MD -MF file'. However on
268 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
269 # ICC 7.0 will fill foo.d with something like
270 # foo.o: sub/foo.c
271 # foo.o: sub/foo.h
272 # which is wrong. We want:
273 # sub/foo.o: sub/foo.c
274 # sub/foo.o: sub/foo.h
275 # sub/foo.c:
276 # sub/foo.h:
277 # ICC 7.1 will output
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
278368 # foo.o: sub/foo.c sub/foo.h
279 # and will wrap long lines using \ :
369 # and will wrap long lines using '\' :
280370 # foo.o: sub/foo.c ... \
281371 # sub/foo.h ... \
282372 # ...
283
284 "$@" -MD -MF "$tmpdepfile"
285 stat=$?
286 if test $stat -eq 0; then :
287 else
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
288418 rm -f "$tmpdepfile"
289419 exit $stat
290420 fi
296426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
297427 # Some versions of the HPUX 10.20 sed can't process this invocation
298428 # correctly. Breaking it into two sed invocations is a workaround.
299 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
300 sed -e 's/$/ :/' >> "$depfile"
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
301431 rm -f "$tmpdepfile"
302432 ;;
303433
308438 # 'foo.d', which lands next to the object file, wherever that
309439 # happens to be.
310440 # Much of this is similar to the tru64 case; see comments there.
311 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
312 test "x$dir" = "x$object" && dir=
313 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
441 set_dir_from "$object"
442 set_base_from "$object"
314443 if test "$libtool" = yes; then
315444 tmpdepfile1=$dir$base.d
316445 tmpdepfile2=$dir.libs/$base.d
321450 "$@" +Maked
322451 fi
323452 stat=$?
324 if test $stat -eq 0; then :
325 else
453 if test $stat -ne 0; then
326454 rm -f "$tmpdepfile1" "$tmpdepfile2"
327455 exit $stat
328456 fi
332460 test -f "$tmpdepfile" && break
333461 done
334462 if test -f "$tmpdepfile"; then
335 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
336 # Add `dependent.h:' lines.
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
337465 sed -ne '2,${
338 s/^ *//
339 s/ \\*$//
340 s/$/:/
341 p
342 }' "$tmpdepfile" >> "$depfile"
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
343471 else
344 echo "#dummy" > "$depfile"
472 make_dummy_depfile
345473 fi
346474 rm -f "$tmpdepfile" "$tmpdepfile2"
347475 ;;
348476
349477 tru64)
350 # The Tru64 compiler uses -MD to generate dependencies as a side
351 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
352 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
353 # dependencies in `foo.d' instead, so we check for that too.
354 # Subdirectories are respected.
355 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
356 test "x$dir" = "x$object" && dir=
357 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
358
359 if test "$libtool" = yes; then
360 # With Tru64 cc, shared objects can also be used to make a
361 # static library. This mechanism is used in libtool 1.4 series to
362 # handle both shared and static libraries in a single compilation.
363 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
364 #
365 # With libtool 1.5 this exception was removed, and libtool now
366 # generates 2 separate objects for the 2 libraries. These two
367 # compilations output dependencies in $dir.libs/$base.o.d and
368 # in $dir$base.o.d. We have to check for both files, because
369 # one of the two compilations can be disabled. We should prefer
370 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
371 # automatically cleaned when .libs/ is deleted, while ignoring
372 # the former would cause a distcleancheck panic.
373 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
374 tmpdepfile2=$dir$base.o.d # libtool 1.5
375 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
376 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
377 "$@" -Wc,-MD
378 else
379 tmpdepfile1=$dir$base.o.d
380 tmpdepfile2=$dir$base.d
381 tmpdepfile3=$dir$base.d
382 tmpdepfile4=$dir$base.d
383 "$@" -MD
384 fi
385
386 stat=$?
387 if test $stat -eq 0; then :
388 else
389 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
390 exit $stat
391 fi
392
393 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
394 do
395 test -f "$tmpdepfile" && break
396 done
397 if test -f "$tmpdepfile"; then
398 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
399 # That's a tab and a space in the [].
400 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
401 else
402 echo "#dummy" > "$depfile"
403 fi
404 rm -f "$tmpdepfile"
405 ;;
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
518
519 msvc7)
520 if test "$libtool" = yes; then
521 showIncludes=-Wc,-showIncludes
522 else
523 showIncludes=-showIncludes
524 fi
525 "$@" $showIncludes > "$tmpdepfile"
526 stat=$?
527 grep -v '^Note: including file: ' "$tmpdepfile"
528 if test $stat -ne 0; then
529 rm -f "$tmpdepfile"
530 exit $stat
531 fi
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 # The first sed program below extracts the file names and escapes
535 # backslashes for cygpath. The second sed program outputs the file
536 # name when reading, but also accumulates all include files in the
537 # hold buffer in order to output them again at the end. This only
538 # works with sed implementations that can handle large buffers.
539 sed < "$tmpdepfile" -n '
540 /^Note: including file: *\(.*\)/ {
541 s//\1/
542 s/\\/\\\\/g
543 p
544 }' | $cygpath_u | sort -u | sed -n '
545 s/ /\\ /g
546 s/\(.*\)/'"$tab"'\1 \\/p
547 s/.\(.*\) \\/\1:/
548 H
549 $ {
550 s/.*/'"$tab"'/
551 G
552 p
553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
555 rm -f "$tmpdepfile"
556 ;;
557
558 msvc7msys)
559 # This case exists only to let depend.m4 do its work. It works by
560 # looking at the text of this script. This case will never be run,
561 # since it is checked for above.
562 exit 1
563 ;;
406564
407565 #nosideeffect)
408566 # This comment above is used by automake to tell side-effect
421579 shift
422580 fi
423581
424 # Remove `-o $object'.
582 # Remove '-o $object'.
425583 IFS=" "
426584 for arg
427585 do
441599 done
442600
443601 test -z "$dashmflag" && dashmflag=-M
444 # Require at least two characters before searching for `:'
602 # Require at least two characters before searching for ':'
445603 # in the target name. This is to cope with DOS-style filenames:
446 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
447605 "$@" $dashmflag |
448 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
449607 rm -f "$depfile"
450608 cat < "$tmpdepfile" > "$depfile"
451 tr ' ' '
452 ' < "$tmpdepfile" | \
453 ## Some versions of the HPUX 10.20 sed can't process this invocation
454 ## correctly. Breaking it into two sed invocations is a workaround.
455 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
456614 rm -f "$tmpdepfile"
457615 ;;
458616
502660 touch "$tmpdepfile"
503661 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
504662 rm -f "$depfile"
505 cat < "$tmpdepfile" > "$depfile"
506 sed '1,2d' "$tmpdepfile" | tr ' ' '
507 ' | \
508 ## Some versions of the HPUX 10.20 sed can't process this invocation
509 ## correctly. Breaking it into two sed invocations is a workaround.
510 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
663 # makedepend may prepend the VPATH from the source file name to the object.
664 # No need to regex-escape $object, excess matching of '.' is harmless.
665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
511672 rm -f "$tmpdepfile" "$tmpdepfile".bak
512673 ;;
513674
524685 shift
525686 fi
526687
527 # Remove `-o $object'.
688 # Remove '-o $object'.
528689 IFS=" "
529690 for arg
530691 do
543704 esac
544705 done
545706
546 "$@" -E |
547 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
548 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
549 sed '$ s: \\$::' > "$tmpdepfile"
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
550711 rm -f "$depfile"
551712 echo "$object : \\" > "$depfile"
552713 cat < "$tmpdepfile" >> "$depfile"
578739 shift
579740 ;;
580741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
581 set fnord "$@"
582 shift
583 shift
584 ;;
742 set fnord "$@"
743 shift
744 shift
745 ;;
585746 *)
586 set fnord "$@" "$arg"
587 shift
588 shift
589 ;;
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
590751 esac
591752 done
592753 "$@" -E 2>/dev/null |
593754 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
594755 rm -f "$depfile"
595756 echo "$object : \\" > "$depfile"
596 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
597 echo " " >> "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
598759 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
599760 rm -f "$tmpdepfile"
600761 ;;
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2013-12-25.23; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
3434 # FSF changes to this file are in the public domain.
3535 #
3636 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
37 # 'make' implicit rules from creating a file called install from it
3838 # when there is no Makefile.
3939 #
4040 # This script is compatible with the BSD install script, but was written
4141 # from scratch.
4242
43 tab=' '
4344 nl='
4445 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
5050 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
51 doit_exec=${doit:-exec}
5652
5753 # Put in absolute file names if you don't have them in your path;
5854 # or use environment vars.
6763 rmprog=${RMPROG-rm}
6864 stripprog=${STRIPPROG-strip}
6965
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
8166 posix_mkdir=
8267
8368 # Desired mode of installed file.
9681 dst_arg=
9782
9883 copy_on_change=false
99 no_target_directory=
84 is_target_a_directory=possibly
10085
10186 usage="\
10287 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
136121 -d) dir_arg=true;;
137122
138123 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
124 shift;;
140125
141126 --help) echo "$usage"; exit $?;;
142127
143128 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
129 case $mode in
130 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
131 echo "$0: invalid mode: $mode" >&2
132 exit 1;;
133 esac
134 shift;;
151135
152136 -o) chowncmd="$chownprog $2"
153 shift;;
137 shift;;
154138
155139 -s) stripcmd=$stripprog;;
156140
157 -t) dst_arg=$2
158 shift;;
159
160 -T) no_target_directory=true;;
141 -t)
142 is_target_a_directory=always
143 dst_arg=$2
144 # Protect names problematic for 'test' and other utilities.
145 case $dst_arg in
146 -* | [=\(\)!]) dst_arg=./$dst_arg;;
147 esac
148 shift;;
149
150 -T) is_target_a_directory=never;;
161151
162152 --version) echo "$0 $scriptversion"; exit $?;;
163153
164 --) shift
165 break;;
166
167 -*) echo "$0: invalid option: $1" >&2
168 exit 1;;
154 --) shift
155 break;;
156
157 -*) echo "$0: invalid option: $1" >&2
158 exit 1;;
169159
170160 *) break;;
171161 esac
172162 shift
173163 done
164
165 # We allow the use of options -d and -T together, by making -d
166 # take the precedence; this is for compatibility with GNU install.
167
168 if test -n "$dir_arg"; then
169 if test -n "$dst_arg"; then
170 echo "$0: target directory not allowed when installing a directory." >&2
171 exit 1
172 fi
173 fi
174174
175175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176176 # When -d is used, all remaining arguments are directories to create.
185185 fi
186186 shift # arg
187187 dst_arg=$arg
188 # Protect names problematic for 'test' and other utilities.
189 case $dst_arg in
190 -* | [=\(\)!]) dst_arg=./$dst_arg;;
191 esac
188192 done
189193 fi
190194
193197 echo "$0: no input file specified." >&2
194198 exit 1
195199 fi
196 # It's OK to call `install-sh -d' without argument.
200 # It's OK to call 'install-sh -d' without argument.
197201 # This can happen when creating conditional directories.
198202 exit 0
199203 fi
200204
201205 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
206 if test $# -gt 1 || test "$is_target_a_directory" = always; then
207 if test ! -d "$dst_arg"; then
208 echo "$0: $dst_arg: Is not a directory." >&2
209 exit 1
210 fi
211 fi
212 fi
213
214 if test -z "$dir_arg"; then
215 do_exit='(exit $ret); exit $ret'
216 trap "ret=129; $do_exit" 1
217 trap "ret=130; $do_exit" 2
218 trap "ret=141; $do_exit" 13
219 trap "ret=143; $do_exit" 15
203220
204221 # Set umask so as not to create temps with too-generous modes.
205222 # However, 'strip' requires both read and write access to temps.
210227
211228 *[0-7])
212229 if test -z "$stripcmd"; then
213 u_plus_rw=
230 u_plus_rw=
214231 else
215 u_plus_rw='% 200'
232 u_plus_rw='% 200'
216233 fi
217234 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
218235 *)
219236 if test -z "$stripcmd"; then
220 u_plus_rw=
237 u_plus_rw=
221238 else
222 u_plus_rw=,u+rw
239 u_plus_rw=,u+rw
223240 fi
224241 cp_umask=$mode$u_plus_rw;;
225242 esac
227244
228245 for src
229246 do
230 # Protect names starting with `-'.
247 # Protect names problematic for 'test' and other utilities.
231248 case $src in
232 -*) src=./$src;;
249 -* | [=\(\)!]) src=./$src;;
233250 esac
234251
235252 if test -n "$dir_arg"; then
251268 echo "$0: no destination specified." >&2
252269 exit 1
253270 fi
254
255271 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260272
261273 # If destination is a directory, append the input filename; won't work
262274 # if double slashes aren't ignored.
263275 if test -d "$dst"; then
264 if test -n "$no_target_directory"; then
265 echo "$0: $dst_arg: Is a directory" >&2
266 exit 1
276 if test "$is_target_a_directory" = never; then
277 echo "$0: $dst_arg: Is a directory" >&2
278 exit 1
267279 fi
268280 dstdir=$dst
269281 dst=$dstdir/`basename "$src"`
270282 dstdir_status=0
271283 else
272 # Prefer dirname, but fall back on a substitute if dirname fails.
273 dstdir=`
274 (dirname "$dst") 2>/dev/null ||
275 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
276 X"$dst" : 'X\(//\)[^/]' \| \
277 X"$dst" : 'X\(//\)$' \| \
278 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
279 echo X"$dst" |
280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
281 s//\1/
282 q
283 }
284 /^X\(\/\/\)[^/].*/{
285 s//\1/
286 q
287 }
288 /^X\(\/\/\)$/{
289 s//\1/
290 q
291 }
292 /^X\(\/\).*/{
293 s//\1/
294 q
295 }
296 s/.*/./; q'
297 `
298
284 dstdir=`dirname "$dst"`
299285 test -d "$dstdir"
300286 dstdir_status=$?
301287 fi
306292 if test $dstdir_status != 0; then
307293 case $posix_mkdir in
308294 '')
309 # Create intermediate dirs using mode 755 as modified by the umask.
310 # This is like FreeBSD 'install' as of 1997-10-28.
311 umask=`umask`
312 case $stripcmd.$umask in
313 # Optimize common cases.
314 *[2367][2367]) mkdir_umask=$umask;;
315 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
316
317 *[0-7])
318 mkdir_umask=`expr $umask + 22 \
319 - $umask % 100 % 40 + $umask % 20 \
320 - $umask % 10 % 4 + $umask % 2
321 `;;
322 *) mkdir_umask=$umask,go-w;;
323 esac
324
325 # With -d, create the new directory with the user-specified mode.
326 # Otherwise, rely on $mkdir_umask.
327 if test -n "$dir_arg"; then
328 mkdir_mode=-m$mode
329 else
330 mkdir_mode=
331 fi
332
333 posix_mkdir=false
334 case $umask in
335 *[123567][0-7][0-7])
336 # POSIX mkdir -p sets u+wx bits regardless of umask, which
337 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
338 ;;
339 *)
340 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
341 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
342
343 if (umask $mkdir_umask &&
344 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
345 then
346 if test -z "$dir_arg" || {
347 # Check for POSIX incompatibilities with -m.
348 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
349 # other-writeable bit of parent directory when it shouldn't.
350 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
351 ls_ld_tmpdir=`ls -ld "$tmpdir"`
352 case $ls_ld_tmpdir in
353 d????-?r-*) different_mode=700;;
354 d????-?--*) different_mode=755;;
355 *) false;;
356 esac &&
357 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
358 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
359 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
360 }
361 }
362 then posix_mkdir=:
363 fi
364 rmdir "$tmpdir/d" "$tmpdir"
365 else
366 # Remove any dirs left behind by ancient mkdir implementations.
367 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
368 fi
369 trap '' 0;;
370 esac;;
295 # Create intermediate dirs using mode 755 as modified by the umask.
296 # This is like FreeBSD 'install' as of 1997-10-28.
297 umask=`umask`
298 case $stripcmd.$umask in
299 # Optimize common cases.
300 *[2367][2367]) mkdir_umask=$umask;;
301 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
302
303 *[0-7])
304 mkdir_umask=`expr $umask + 22 \
305 - $umask % 100 % 40 + $umask % 20 \
306 - $umask % 10 % 4 + $umask % 2
307 `;;
308 *) mkdir_umask=$umask,go-w;;
309 esac
310
311 # With -d, create the new directory with the user-specified mode.
312 # Otherwise, rely on $mkdir_umask.
313 if test -n "$dir_arg"; then
314 mkdir_mode=-m$mode
315 else
316 mkdir_mode=
317 fi
318
319 posix_mkdir=false
320 case $umask in
321 *[123567][0-7][0-7])
322 # POSIX mkdir -p sets u+wx bits regardless of umask, which
323 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
324 ;;
325 *)
326 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
327 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
328
329 if (umask $mkdir_umask &&
330 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
331 then
332 if test -z "$dir_arg" || {
333 # Check for POSIX incompatibilities with -m.
334 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
335 # other-writable bit of parent directory when it shouldn't.
336 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
337 ls_ld_tmpdir=`ls -ld "$tmpdir"`
338 case $ls_ld_tmpdir in
339 d????-?r-*) different_mode=700;;
340 d????-?--*) different_mode=755;;
341 *) false;;
342 esac &&
343 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
344 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
345 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
346 }
347 }
348 then posix_mkdir=:
349 fi
350 rmdir "$tmpdir/d" "$tmpdir"
351 else
352 # Remove any dirs left behind by ancient mkdir implementations.
353 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
354 fi
355 trap '' 0;;
356 esac;;
371357 esac
372358
373359 if
374360 $posix_mkdir && (
375 umask $mkdir_umask &&
376 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
361 umask $mkdir_umask &&
362 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
377363 )
378364 then :
379365 else
383369 # directory the slow way, step by step, checking for races as we go.
384370
385371 case $dstdir in
386 /*) prefix='/';;
387 -*) prefix='./';;
388 *) prefix='';;
372 /*) prefix='/';;
373 [-=\(\)!]*) prefix='./';;
374 *) prefix='';;
389375 esac
390
391 eval "$initialize_posix_glob"
392376
393377 oIFS=$IFS
394378 IFS=/
395 $posix_glob set -f
379 set -f
396380 set fnord $dstdir
397381 shift
398 $posix_glob set +f
382 set +f
399383 IFS=$oIFS
400384
401385 prefixes=
402386
403387 for d
404388 do
405 test -z "$d" && continue
406
407 prefix=$prefix$d
408 if test -d "$prefix"; then
409 prefixes=
410 else
411 if $posix_mkdir; then
412 (umask=$mkdir_umask &&
413 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
414 # Don't fail if two instances are running concurrently.
415 test -d "$prefix" || exit 1
416 else
417 case $prefix in
418 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) qprefix=$prefix;;
420 esac
421 prefixes="$prefixes '$qprefix'"
422 fi
423 fi
424 prefix=$prefix/
389 test X"$d" = X && continue
390
391 prefix=$prefix$d
392 if test -d "$prefix"; then
393 prefixes=
394 else
395 if $posix_mkdir; then
396 (umask=$mkdir_umask &&
397 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
398 # Don't fail if two instances are running concurrently.
399 test -d "$prefix" || exit 1
400 else
401 case $prefix in
402 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
403 *) qprefix=$prefix;;
404 esac
405 prefixes="$prefixes '$qprefix'"
406 fi
407 fi
408 prefix=$prefix/
425409 done
426410
427411 if test -n "$prefixes"; then
428 # Don't fail if two instances are running concurrently.
429 (umask $mkdir_umask &&
430 eval "\$doit_exec \$mkdirprog $prefixes") ||
431 test -d "$dstdir" || exit 1
432 obsolete_mkdir_used=true
412 # Don't fail if two instances are running concurrently.
413 (umask $mkdir_umask &&
414 eval "\$doit_exec \$mkdirprog $prefixes") ||
415 test -d "$dstdir" || exit 1
416 obsolete_mkdir_used=true
433417 fi
434418 fi
435419 fi
464448
465449 # If -C, don't bother to copy if it wouldn't change the file.
466450 if $copy_on_change &&
467 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
468 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
469
470 eval "$initialize_posix_glob" &&
471 $posix_glob set -f &&
451 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
452 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
453 set -f &&
472454 set X $old && old=:$2:$4:$5:$6 &&
473455 set X $new && new=:$2:$4:$5:$6 &&
474 $posix_glob set +f &&
475
456 set +f &&
476457 test "$old" = "$new" &&
477458 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
478459 then
485466 # to itself, or perhaps because mv is so ancient that it does not
486467 # support -f.
487468 {
488 # Now remove or move aside any old file at destination location.
489 # We try this two ways since rm can't unlink itself on some
490 # systems and the destination file might be busy for other
491 # reasons. In this case, the final cleanup might fail but the new
492 # file should still install successfully.
493 {
494 test ! -f "$dst" ||
495 $doit $rmcmd -f "$dst" 2>/dev/null ||
496 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
497 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
498 } ||
499 { echo "$0: cannot unlink or rename $dst" >&2
500 (exit 1); exit 1
501 }
502 } &&
503
504 # Now rename the file to the real destination.
505 $doit $mvcmd "$dsttmp" "$dst"
469 # Now remove or move aside any old file at destination location.
470 # We try this two ways since rm can't unlink itself on some
471 # systems and the destination file might be busy for other
472 # reasons. In this case, the final cleanup might fail but the new
473 # file should still install successfully.
474 {
475 test ! -f "$dst" ||
476 $doit $rmcmd -f "$dst" 2>/dev/null ||
477 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
478 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
479 } ||
480 { echo "$0: cannot unlink or rename $dst" >&2
481 (exit 1); exit 1
482 }
483 } &&
484
485 # Now rename the file to the real destination.
486 $doit $mvcmd "$dsttmp" "$dst"
506487 }
507488 fi || exit 1
508489
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
1872 pkgdatadir = $(datadir)/@PACKAGE@
1973 pkgincludedir = $(includedir)/@PACKAGE@
2074 pkglibdir = $(libdir)/@PACKAGE@
3488 build_triplet = @build@
3589 host_triplet = @host@
3690 subdir = man
37 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
3891 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3992 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4093 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4194 $(ACLOCAL_M4)
95 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
4296 mkinstalldirs = $(install_sh) -d
4397 CONFIG_HEADER = $(top_builddir)/config.h
4498 CONFIG_CLEAN_FILES =
4599 CONFIG_CLEAN_VPATH_FILES =
46 AM_V_GEN = $(am__v_GEN_$(V))
47 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
48 am__v_GEN_0 = @echo " GEN " $@;
49 AM_V_at = $(am__v_at_$(V))
50 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
100 AM_V_P = $(am__v_P_@AM_V@)
101 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
102 am__v_P_0 = false
103 am__v_P_1 = :
104 AM_V_GEN = $(am__v_GEN_@AM_V@)
105 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
106 am__v_GEN_0 = @echo " GEN " $@;
107 am__v_GEN_1 =
108 AM_V_at = $(am__v_at_@AM_V@)
109 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
51110 am__v_at_0 = @
111 am__v_at_1 =
52112 SOURCES =
53113 DIST_SOURCES =
114 am__can_run_installinfo = \
115 case $$AM_UPDATE_INFO_DIR in \
116 n|no|NO) false;; \
117 *) (install-info --version) >/dev/null 2>&1;; \
118 esac
54119 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
55120 am__vpath_adj = case $$p in \
56121 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
72137 am__base_list = \
73138 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
74139 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
140 am__uninstall_files_from_dir = { \
141 test -z "$$files" \
142 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
143 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
144 $(am__cd) "$$dir" && rm -f $$files; }; \
145 }
75146 am__installdirs = "$(DESTDIR)$(appmandir)"
76147 DATA = $(appman_DATA)
148 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
149 am__DIST_COMMON = $(srcdir)/Makefile.in
77150 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78151 ACLOCAL = @ACLOCAL@
79152 ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
121194 LIB_MAN_DIR = @LIB_MAN_DIR@
122195 LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
123196 LTLIBOBJS = @LTLIBOBJS@
124 MAINT = @MAINT@
125197 MAKEINFO = @MAKEINFO@
126198 MAN_SUBSTS = @MAN_SUBSTS@
127199 MISC_MAN_DIR = @MISC_MAN_DIR@
137209 PACKAGE_VERSION = @PACKAGE_VERSION@
138210 PATH_SEPARATOR = @PATH_SEPARATOR@
139211 PKG_CONFIG = @PKG_CONFIG@
212 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
213 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
140214 SED = @SED@
141215 SET_MAKE = @SET_MAKE@
142216 SHELL = @SHELL@
207281
208282 .SUFFIXES:
209283 .SUFFIXES: .$(APP_MAN_SUFFIX) .man
210 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
284 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
211285 @for dep in $?; do \
212286 case '$(am__configure_deps)' in \
213287 *$$dep*) \
219293 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign man/Makefile'; \
220294 $(am__cd) $(top_srcdir) && \
221295 $(AUTOMAKE) --foreign man/Makefile
222 .PRECIOUS: Makefile
223296 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
224297 @case '$?' in \
225298 *config.status*) \
232305 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
233306 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
234307
235 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
308 $(top_srcdir)/configure: $(am__configure_deps)
236309 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
237 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
310 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
238311 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
239312 $(am__aclocal_m4_deps):
240313 install-appmanDATA: $(appman_DATA)
241314 @$(NORMAL_INSTALL)
242 test -z "$(appmandir)" || $(MKDIR_P) "$(DESTDIR)$(appmandir)"
243315 @list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \
316 if test -n "$$list"; then \
317 echo " $(MKDIR_P) '$(DESTDIR)$(appmandir)'"; \
318 $(MKDIR_P) "$(DESTDIR)$(appmandir)" || exit 1; \
319 fi; \
244320 for p in $$list; do \
245321 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
246322 echo "$$d$$p"; \
254330 @$(NORMAL_UNINSTALL)
255331 @list='$(appman_DATA)'; test -n "$(appmandir)" || list=; \
256332 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
257 test -n "$$files" || exit 0; \
258 echo " ( cd '$(DESTDIR)$(appmandir)' && rm -f" $$files ")"; \
259 cd "$(DESTDIR)$(appmandir)" && rm -f $$files
260 tags: TAGS
261 TAGS:
262
263 ctags: CTAGS
264 CTAGS:
333 dir='$(DESTDIR)$(appmandir)'; $(am__uninstall_files_from_dir)
334 tags TAGS:
335
336 ctags CTAGS:
337
338 cscope cscopelist:
265339
266340
267341 distdir: $(DISTFILES)
311385
312386 installcheck: installcheck-am
313387 install-strip:
314 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
315 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
316 `test -z '$(STRIP)' || \
317 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
388 if test -z '$(STRIP)'; then \
389 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
390 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
391 install; \
392 else \
393 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
394 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
395 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
396 fi
318397 mostlyclean-generic:
319398
320399 clean-generic:
395474
396475 .MAKE: install-am install-strip
397476
398 .PHONY: all all-am check check-am clean clean-generic distclean \
399 distclean-generic distdir dvi dvi-am html html-am info info-am \
400 install install-am install-appmanDATA install-data \
401 install-data-am install-dvi install-dvi-am install-exec \
402 install-exec-am install-html install-html-am install-info \
403 install-info-am install-man install-pdf install-pdf-am \
404 install-ps install-ps-am install-strip installcheck \
405 installcheck-am installdirs maintainer-clean \
477 .PHONY: all all-am check check-am clean clean-generic cscopelist-am \
478 ctags-am distclean distclean-generic distdir dvi dvi-am html \
479 html-am info info-am install install-am install-appmanDATA \
480 install-data install-data-am install-dvi install-dvi-am \
481 install-exec install-exec-am install-html install-html-am \
482 install-info install-info-am install-man install-pdf \
483 install-pdf-am install-ps install-ps-am install-strip \
484 installcheck installcheck-am installdirs maintainer-clean \
406485 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
407 pdf-am ps ps-am uninstall uninstall-am uninstall-appmanDATA
486 pdf-am ps ps-am tags-am uninstall uninstall-am \
487 uninstall-appmanDATA
488
489 .PRECIOUS: Makefile
408490
409491
410492 # String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
6363 is given first, followed by the widget instance name.
6464 .sp
6565 .nf
66 .TA .5i
67 .ta .5i
66 .ft CW
6867 XLogo xlogo
69 Logo xlogo
68 Logo xlogo
69 .ft
7070 .fi
7171 .sp
7272 .SH ENVIRONMENT
00 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2013-10-28.13; # UTC
4
5 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
87
98 # 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
2524 # the same distribution terms that you use for the rest of that program.
2625
2726 if test $# -eq 0; then
28 echo 1>&2 "Try \`$0 --help' for more information"
27 echo 1>&2 "Try '$0 --help' for more information"
2928 exit 1
3029 fi
3130
32 run=:
33 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
34 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
4631 case $1 in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
6243
6344 -h|--h|--he|--hel|--help)
6445 echo "\
6546 $0 [OPTION]... PROGRAM [ARGUMENT]...
6647
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
6950
7051 Options:
7152 -h, --help display this help and exit
7253 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
7454
7555 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 autom4te touch the output file, or create a stub one
80 automake touch all \`Makefile.in' files
81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
82 flex create \`lex.yy.c', if possible, from existing .c
83 help2man touch the output file
84 lex create \`lex.yy.c', if possible, from existing .c
85 makeinfo touch the output file
86 tar try tar, gnutar, gtar, then tar without non-portable flags
87 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
88
89 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
90 \`g' are ignored when checking the name.
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
9161
9262 Send bug reports to <bug-automake@gnu.org>."
9363 exit $?
9969 ;;
10070
10171 -*)
102 echo 1>&2 "$0: Unknown \`$1' option"
103 echo 1>&2 "Try \`$0 --help' for more information"
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
10474 exit 1
10575 ;;
10676
10777 esac
10878
109 # normalize program name to check for.
110 program=`echo "$1" | sed '
111 s/^gnu-//; t
112 s/^gnu//; t
113 s/^g//; t'`
114
115 # Now exit if we have it, but it failed. Also exit now if we
116 # don't have it and --version was passed (most likely to detect
117 # the program). This is about non-GNU programs, so use $1 not
118 # $program.
119 case $1 in
120 lex*|yacc*)
121 # Not GNU programs, they don't have --version.
122 ;;
123
124 tar*)
125 if test -n "$run"; then
126 echo 1>&2 "ERROR: \`tar' requires --run"
127 exit 1
128 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
129 exit 1
130 fi
131 ;;
132
133 *)
134 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
135 # We have it, but it failed.
136 exit 1
137 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
138 # Could not run --version or --help. This is probably someone
139 # running `$TOOL --version' or `$TOOL --help' to check whether
140 # $TOOL exists and not knowing $TOOL uses missing.
141 exit 1
142 fi
143 ;;
144 esac
145
146 # If it does not exist, or fails to run (possibly an outdated version),
147 # try to emulate it.
148 case $program in
149 aclocal*)
150 echo 1>&2 "\
151 WARNING: \`$1' is $msg. You should only need it if
152 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
153 to install the \`Automake' and \`Perl' packages. Grab them from
154 any GNU archive site."
155 touch aclocal.m4
156 ;;
157
158 autoconf*)
159 echo 1>&2 "\
160 WARNING: \`$1' is $msg. You should only need it if
161 you modified \`${configure_ac}'. You might want to install the
162 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
163 archive site."
164 touch configure
165 ;;
166
167 autoheader*)
168 echo 1>&2 "\
169 WARNING: \`$1' is $msg. You should only need it if
170 you modified \`acconfig.h' or \`${configure_ac}'. You might want
171 to install the \`Autoconf' and \`GNU m4' packages. Grab them
172 from any GNU archive site."
173 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
174 test -z "$files" && files="config.h"
175 touch_files=
176 for f in $files; do
177 case $f in
178 *:*) touch_files="$touch_files "`echo "$f" |
179 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
180 *) touch_files="$touch_files $f.in";;
181 esac
182 done
183 touch $touch_files
184 ;;
185
186 automake*)
187 echo 1>&2 "\
188 WARNING: \`$1' is $msg. You should only need it if
189 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
190 You might want to install the \`Automake' and \`Perl' packages.
191 Grab them from any GNU archive site."
192 find . -type f -name Makefile.am -print |
193 sed 's/\.am$/.in/' |
194 while read f; do touch "$f"; done
195 ;;
196
197 autom4te*)
198 echo 1>&2 "\
199 WARNING: \`$1' is needed, but is $msg.
200 You might have modified some files without having the
201 proper tools for further handling them.
202 You can get \`$1' as part of \`Autoconf' from any GNU
203 archive site."
204
205 file=`echo "$*" | sed -n "$sed_output"`
206 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
207 if test -f "$file"; then
208 touch $file
209 else
210 test -z "$file" || exec >$file
211 echo "#! /bin/sh"
212 echo "# Created by GNU Automake missing as a replacement of"
213 echo "# $ $@"
214 echo "exit 0"
215 chmod +x $file
216 exit 1
217 fi
218 ;;
219
220 bison*|yacc*)
221 echo 1>&2 "\
222 WARNING: \`$1' $msg. You should only need it if
223 you modified a \`.y' file. You may need the \`Bison' package
224 in order for those modifications to take effect. You can get
225 \`Bison' from any GNU archive site."
226 rm -f y.tab.c y.tab.h
227 if test $# -ne 1; then
228 eval LASTARG="\${$#}"
229 case $LASTARG in
230 *.y)
231 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
232 if test -f "$SRCFILE"; then
233 cp "$SRCFILE" y.tab.c
234 fi
235 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
236 if test -f "$SRCFILE"; then
237 cp "$SRCFILE" y.tab.h
238 fi
239 ;;
240 esac
241 fi
242 if test ! -f y.tab.h; then
243 echo >y.tab.h
244 fi
245 if test ! -f y.tab.c; then
246 echo 'main() { return 0; }' >y.tab.c
247 fi
248 ;;
249
250 lex*|flex*)
251 echo 1>&2 "\
252 WARNING: \`$1' is $msg. You should only need it if
253 you modified a \`.l' file. You may need the \`Flex' package
254 in order for those modifications to take effect. You can get
255 \`Flex' from any GNU archive site."
256 rm -f lex.yy.c
257 if test $# -ne 1; then
258 eval LASTARG="\${$#}"
259 case $LASTARG in
260 *.l)
261 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
262 if test -f "$SRCFILE"; then
263 cp "$SRCFILE" lex.yy.c
264 fi
265 ;;
266 esac
267 fi
268 if test ! -f lex.yy.c; then
269 echo 'main() { return 0; }' >lex.yy.c
270 fi
271 ;;
272
273 help2man*)
274 echo 1>&2 "\
275 WARNING: \`$1' is $msg. You should only need it if
276 you modified a dependency of a manual page. You may need the
277 \`Help2man' package in order for those modifications to take
278 effect. You can get \`Help2man' from any GNU archive site."
279
280 file=`echo "$*" | sed -n "$sed_output"`
281 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
282 if test -f "$file"; then
283 touch $file
284 else
285 test -z "$file" || exec >$file
286 echo ".ab help2man is required to generate this page"
287 exit $?
288 fi
289 ;;
290
291 makeinfo*)
292 echo 1>&2 "\
293 WARNING: \`$1' is $msg. You should only need it if
294 you modified a \`.texi' or \`.texinfo' file, or any other file
295 indirectly affecting the aspect of the manual. The spurious
296 call might also be the consequence of using a buggy \`make' (AIX,
297 DU, IRIX). You might want to install the \`Texinfo' package or
298 the \`GNU make' package. Grab either from any GNU archive site."
299 # The file to touch is that specified with -o ...
300 file=`echo "$*" | sed -n "$sed_output"`
301 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
302 if test -z "$file"; then
303 # ... or it is the one specified with @setfilename ...
304 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
305 file=`sed -n '
306 /^@setfilename/{
307 s/.* \([^ ]*\) *$/\1/
308 p
309 q
310 }' $infile`
311 # ... or it is derived from the source name (dir/f.texi becomes f.info)
312 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
313 fi
314 # If the file does not exist, the user really needs makeinfo;
315 # let's fail without touching anything.
316 test -f $file || exit 1
317 touch $file
318 ;;
319
320 tar*)
321 shift
322
323 # We have already tried tar in the generic part.
324 # Look for gnutar/gtar before invocation to avoid ugly error
325 # messages.
326 if (gnutar --version > /dev/null 2>&1); then
327 gnutar "$@" && exit 0
328 fi
329 if (gtar --version > /dev/null 2>&1); then
330 gtar "$@" && exit 0
331 fi
332 firstarg="$1"
333 if shift; then
334 case $firstarg in
335 *o*)
336 firstarg=`echo "$firstarg" | sed s/o//`
337 tar "$firstarg" "$@" && exit 0
338 ;;
339 esac
340 case $firstarg in
341 *h*)
342 firstarg=`echo "$firstarg" | sed s/h//`
343 tar "$firstarg" "$@" && exit 0
344 ;;
345 esac
346 fi
347
348 echo 1>&2 "\
349 WARNING: I can't seem to be able to run \`tar' with the given arguments.
350 You may want to install GNU tar or Free paxutils, or check the
351 command line arguments."
352 exit 1
353 ;;
354
355 *)
356 echo 1>&2 "\
357 WARNING: \`$1' is needed, and is $msg.
358 You might have modified some files without having the
359 proper tools for further handling them. Check the \`README' file,
360 it often tells you about the needed prerequisites for installing
361 this package. You may also peek at any GNU archive site, in case
362 some other package would contain this missing \`$1' program."
363 exit 1
364 ;;
365 esac
366
367 exit 0
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'autom4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
368207
369208 # Local variables:
370209 # eval: (add-hook 'write-file-hooks 'time-stamp)