Imported Upstream version 3.0~rc2
Axel Beckert
10 years ago
0 | # Makefile.in generated by automake 1.11.1 from Makefile.am. | |
1 | # @configure_input@ | |
2 | ||
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. | |
6 | # This Makefile.in is free software; the Free Software Foundation | |
7 | # gives unlimited permission to copy and/or distribute it, | |
8 | # with or without modifications, as long as this notice is preserved. | |
9 | ||
10 | # This program is distributed in the hope that it will be useful, | |
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
13 | # PARTICULAR PURPOSE. | |
14 | ||
15 | @SET_MAKE@ | |
16 | ||
17 | VPATH = @srcdir@ | |
18 | pkgdatadir = $(datadir)/@PACKAGE@ | |
19 | pkgincludedir = $(includedir)/@PACKAGE@ | |
20 | pkglibdir = $(libdir)/@PACKAGE@ | |
21 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | |
22 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
23 | install_sh_DATA = $(install_sh) -c -m 644 | |
24 | install_sh_PROGRAM = $(install_sh) -c | |
25 | install_sh_SCRIPT = $(install_sh) -c | |
26 | INSTALL_HEADER = $(INSTALL_DATA) | |
27 | transform = $(program_transform_name) | |
28 | NORMAL_INSTALL = : | |
29 | PRE_INSTALL = : | |
30 | POST_INSTALL = : | |
31 | NORMAL_UNINSTALL = : | |
32 | PRE_UNINSTALL = : | |
33 | POST_UNINSTALL = : | |
34 | build_triplet = @build@ | |
35 | host_triplet = @host@ | |
36 | target_triplet = @target@ | |
37 | subdir = . | |
38 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ | |
39 | $(srcdir)/Makefile.in $(srcdir)/config.h.in \ | |
40 | $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ | |
41 | config.guess config.sub depcomp install-sh missing | |
42 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
43 | am__aclocal_m4_deps = $(top_srcdir)/configure.in | |
44 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
45 | $(ACLOCAL_M4) | |
46 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | |
47 | configure.lineno config.status.lineno | |
48 | mkinstalldirs = $(install_sh) -d | |
49 | CONFIG_HEADER = config.h | |
50 | CONFIG_CLEAN_FILES = | |
51 | CONFIG_CLEAN_VPATH_FILES = | |
52 | SOURCES = | |
53 | DIST_SOURCES = | |
54 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | |
55 | html-recursive info-recursive install-data-recursive \ | |
56 | install-dvi-recursive install-exec-recursive \ | |
57 | install-html-recursive install-info-recursive \ | |
58 | install-pdf-recursive install-ps-recursive install-recursive \ | |
59 | installcheck-recursive installdirs-recursive pdf-recursive \ | |
60 | ps-recursive uninstall-recursive | |
61 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | |
62 | am__vpath_adj = case $$p in \ | |
63 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | |
64 | *) f=$$p;; \ | |
65 | esac; | |
66 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | |
67 | am__install_max = 40 | |
68 | am__nobase_strip_setup = \ | |
69 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | |
70 | am__nobase_strip = \ | |
71 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | |
72 | am__nobase_list = $(am__nobase_strip_setup); \ | |
73 | for p in $$list; do echo "$$p $$p"; done | \ | |
74 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | |
75 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | |
76 | if (++n[$$2] == $(am__install_max)) \ | |
77 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | |
78 | END { for (dir in files) print dir, files[dir] }' | |
79 | am__base_list = \ | |
80 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | |
81 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | |
82 | am__installdirs = "$(DESTDIR)$(sysconfdir)" | |
83 | DATA = $(sysconf_DATA) | |
84 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | |
85 | distclean-recursive maintainer-clean-recursive | |
86 | AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ | |
87 | $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ | |
88 | distdir dist dist-all distcheck | |
89 | ETAGS = etags | |
90 | CTAGS = ctags | |
91 | DIST_SUBDIRS = $(SUBDIRS) | |
92 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
93 | distdir = $(PACKAGE)-$(VERSION) | |
94 | top_distdir = $(distdir) | |
95 | am__remove_distdir = \ | |
96 | { test ! -d "$(distdir)" \ | |
97 | || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
98 | && rm -fr "$(distdir)"; }; } | |
99 | am__relativize = \ | |
100 | dir0=`pwd`; \ | |
101 | sed_first='s,^\([^/]*\)/.*$$,\1,'; \ | |
102 | sed_rest='s,^[^/]*/*,,'; \ | |
103 | sed_last='s,^.*/\([^/]*\)$$,\1,'; \ | |
104 | sed_butlast='s,/*[^/]*$$,,'; \ | |
105 | while test -n "$$dir1"; do \ | |
106 | first=`echo "$$dir1" | sed -e "$$sed_first"`; \ | |
107 | if test "$$first" != "."; then \ | |
108 | if test "$$first" = ".."; then \ | |
109 | dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ | |
110 | dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ | |
111 | else \ | |
112 | first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ | |
113 | if test "$$first2" = "$$first"; then \ | |
114 | dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ | |
115 | else \ | |
116 | dir2="../$$dir2"; \ | |
117 | fi; \ | |
118 | dir0="$$dir0"/"$$first"; \ | |
119 | fi; \ | |
120 | fi; \ | |
121 | dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ | |
122 | done; \ | |
123 | reldir="$$dir2" | |
124 | DIST_ARCHIVES = $(distdir).tar.gz | |
125 | GZIP_ENV = --best | |
126 | distuninstallcheck_listfiles = find . -type f -print | |
127 | distcleancheck_listfiles = find . -type f -print | |
128 | ACLOCAL = @ACLOCAL@ | |
129 | AMTAR = @AMTAR@ | |
130 | AUTOCONF = @AUTOCONF@ | |
131 | AUTOHEADER = @AUTOHEADER@ | |
132 | AUTOMAKE = @AUTOMAKE@ | |
133 | AWK = @AWK@ | |
134 | CC = @CC@ | |
135 | CCDEPMODE = @CCDEPMODE@ | |
136 | CFLAGS = @CFLAGS@ | |
137 | CPP = @CPP@ | |
138 | CPPFLAGS = @CPPFLAGS@ | |
139 | CXX = @CXX@ | |
140 | CXXDEPMODE = @CXXDEPMODE@ | |
141 | CXXFLAGS = @CXXFLAGS@ | |
142 | CYGPATH_W = @CYGPATH_W@ | |
143 | DEFS = @DEFS@ | |
144 | DEPDIR = @DEPDIR@ | |
145 | ECHO_C = @ECHO_C@ | |
146 | ECHO_N = @ECHO_N@ | |
147 | ECHO_T = @ECHO_T@ | |
148 | EGREP = @EGREP@ | |
149 | EXEEXT = @EXEEXT@ | |
150 | GREP = @GREP@ | |
151 | INSTALL = @INSTALL@ | |
152 | INSTALL_DATA = @INSTALL_DATA@ | |
153 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
154 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
155 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
156 | LDFLAGS = @LDFLAGS@ | |
157 | LIBFLTK_CFLAGS = @LIBFLTK_CFLAGS@ | |
158 | LIBFLTK_CXXFLAGS = @LIBFLTK_CXXFLAGS@ | |
159 | LIBFLTK_LIBS = @LIBFLTK_LIBS@ | |
160 | LIBICONV_LIBS = @LIBICONV_LIBS@ | |
161 | LIBJPEG_CPPFLAGS = @LIBJPEG_CPPFLAGS@ | |
162 | LIBJPEG_LDFLAGS = @LIBJPEG_LDFLAGS@ | |
163 | LIBJPEG_LIBS = @LIBJPEG_LIBS@ | |
164 | LIBOBJS = @LIBOBJS@ | |
165 | LIBPNG_CFLAGS = @LIBPNG_CFLAGS@ | |
166 | LIBPNG_LIBS = @LIBPNG_LIBS@ | |
167 | LIBPTHREAD_LDFLAGS = @LIBPTHREAD_LDFLAGS@ | |
168 | LIBPTHREAD_LIBS = @LIBPTHREAD_LIBS@ | |
169 | LIBS = @LIBS@ | |
170 | LIBSSL_LIBS = @LIBSSL_LIBS@ | |
171 | LIBZ_LIBS = @LIBZ_LIBS@ | |
172 | LTLIBOBJS = @LTLIBOBJS@ | |
173 | MAKEINFO = @MAKEINFO@ | |
174 | MKDIR_P = @MKDIR_P@ | |
175 | OBJEXT = @OBJEXT@ | |
176 | PACKAGE = @PACKAGE@ | |
177 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
178 | PACKAGE_NAME = @PACKAGE_NAME@ | |
179 | PACKAGE_STRING = @PACKAGE_STRING@ | |
180 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
181 | PACKAGE_URL = @PACKAGE_URL@ | |
182 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
183 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
184 | RANLIB = @RANLIB@ | |
185 | SET_MAKE = @SET_MAKE@ | |
186 | SHELL = @SHELL@ | |
187 | STRIP = @STRIP@ | |
188 | VERSION = @VERSION@ | |
189 | abs_builddir = @abs_builddir@ | |
190 | abs_srcdir = @abs_srcdir@ | |
191 | abs_top_builddir = @abs_top_builddir@ | |
192 | abs_top_srcdir = @abs_top_srcdir@ | |
193 | ac_ct_CC = @ac_ct_CC@ | |
194 | ac_ct_CXX = @ac_ct_CXX@ | |
195 | am__include = @am__include@ | |
196 | am__leading_dot = @am__leading_dot@ | |
197 | am__quote = @am__quote@ | |
198 | am__tar = @am__tar@ | |
199 | am__untar = @am__untar@ | |
200 | bindir = @bindir@ | |
201 | build = @build@ | |
202 | build_alias = @build_alias@ | |
203 | build_cpu = @build_cpu@ | |
204 | build_os = @build_os@ | |
205 | build_vendor = @build_vendor@ | |
206 | builddir = @builddir@ | |
207 | datadir = @datadir@ | |
208 | datarootdir = @datarootdir@ | |
209 | docdir = @docdir@ | |
210 | dvidir = @dvidir@ | |
211 | exec_prefix = @exec_prefix@ | |
212 | host = @host@ | |
213 | host_alias = @host_alias@ | |
214 | host_cpu = @host_cpu@ | |
215 | host_os = @host_os@ | |
216 | host_vendor = @host_vendor@ | |
217 | htmldir = @htmldir@ | |
218 | includedir = @includedir@ | |
219 | infodir = @infodir@ | |
220 | install_sh = @install_sh@ | |
221 | libdir = @libdir@ | |
222 | libexecdir = @libexecdir@ | |
223 | localedir = @localedir@ | |
224 | localstatedir = @localstatedir@ | |
225 | mandir = @mandir@ | |
226 | mkdir_p = @mkdir_p@ | |
227 | oldincludedir = @oldincludedir@ | |
228 | pdfdir = @pdfdir@ | |
229 | prefix = @prefix@ | |
230 | program_transform_name = @program_transform_name@ | |
231 | psdir = @psdir@ | |
232 | sbindir = @sbindir@ | |
233 | sharedstatedir = @sharedstatedir@ | |
234 | srcdir = @srcdir@ | |
235 | sysconfdir = @sysconfdir@ | |
236 | target = @target@ | |
237 | target_alias = @target_alias@ | |
238 | target_cpu = @target_cpu@ | |
239 | target_os = @target_os@ | |
240 | target_vendor = @target_vendor@ | |
241 | top_build_prefix = @top_build_prefix@ | |
242 | top_builddir = @top_builddir@ | |
243 | top_srcdir = @top_srcdir@ | |
244 | SUBDIRS = lout dw dlib dpip src doc dpid dpi test | |
245 | EXTRA_DIST = Doxyfile dillorc install-dpi-local d_size.h | |
246 | sysconf_DATA = dillorc | |
247 | all: config.h | |
248 | $(MAKE) $(AM_MAKEFLAGS) all-recursive | |
249 | ||
250 | .SUFFIXES: | |
251 | am--refresh: | |
252 | @: | |
253 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | |
254 | @for dep in $?; do \ | |
255 | case '$(am__configure_deps)' in \ | |
256 | *$$dep*) \ | |
257 | echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ | |
258 | $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ | |
259 | && exit 0; \ | |
260 | exit 1;; \ | |
261 | esac; \ | |
262 | done; \ | |
263 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ | |
264 | $(am__cd) $(top_srcdir) && \ | |
265 | $(AUTOMAKE) --gnu Makefile | |
266 | .PRECIOUS: Makefile | |
267 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
268 | @case '$?' in \ | |
269 | *config.status*) \ | |
270 | echo ' $(SHELL) ./config.status'; \ | |
271 | $(SHELL) ./config.status;; \ | |
272 | *) \ | |
273 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ | |
274 | cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ | |
275 | esac; | |
276 | ||
277 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
278 | $(SHELL) ./config.status --recheck | |
279 | ||
280 | $(top_srcdir)/configure: $(am__configure_deps) | |
281 | $(am__cd) $(srcdir) && $(AUTOCONF) | |
282 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | |
283 | $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |
284 | $(am__aclocal_m4_deps): | |
285 | ||
286 | config.h: stamp-h1 | |
287 | @if test ! -f $@; then \ | |
288 | rm -f stamp-h1; \ | |
289 | $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ | |
290 | else :; fi | |
291 | ||
292 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status | |
293 | @rm -f stamp-h1 | |
294 | cd $(top_builddir) && $(SHELL) ./config.status config.h | |
295 | $(srcdir)/config.h.in: $(am__configure_deps) | |
296 | ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) | |
297 | rm -f stamp-h1 | |
298 | touch $@ | |
299 | ||
300 | distclean-hdr: | |
301 | -rm -f config.h stamp-h1 | |
302 | install-sysconfDATA: $(sysconf_DATA) | |
303 | @$(NORMAL_INSTALL) | |
304 | test -z "$(sysconfdir)" || $(MKDIR_P) "$(DESTDIR)$(sysconfdir)" | |
305 | @list='$(sysconf_DATA)'; test -n "$(sysconfdir)" || list=; \ | |
306 | for p in $$list; do \ | |
307 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ | |
308 | echo "$$d$$p"; \ | |
309 | done | $(am__base_list) | \ | |
310 | while read files; do \ | |
311 | echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(sysconfdir)'"; \ | |
312 | $(INSTALL_DATA) $$files "$(DESTDIR)$(sysconfdir)" || exit $$?; \ | |
313 | done | |
314 | ||
315 | uninstall-sysconfDATA: | |
316 | @$(NORMAL_UNINSTALL) | |
317 | @list='$(sysconf_DATA)'; test -n "$(sysconfdir)" || list=; \ | |
318 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ | |
319 | test -n "$$files" || exit 0; \ | |
320 | echo " ( cd '$(DESTDIR)$(sysconfdir)' && rm -f" $$files ")"; \ | |
321 | cd "$(DESTDIR)$(sysconfdir)" && rm -f $$files | |
322 | ||
323 | # This directory's subdirectories are mostly independent; you can cd | |
324 | # into them and run `make' without going through this Makefile. | |
325 | # To change the values of `make' variables: instead of editing Makefiles, | |
326 | # (1) if the variable is set in `config.status', edit `config.status' | |
327 | # (which will cause the Makefiles to be regenerated when you run `make'); | |
328 | # (2) otherwise, pass the desired values on the `make' command line. | |
329 | $(RECURSIVE_TARGETS): | |
330 | @fail= failcom='exit 1'; \ | |
331 | for f in x $$MAKEFLAGS; do \ | |
332 | case $$f in \ | |
333 | *=* | --[!k]*);; \ | |
334 | *k*) failcom='fail=yes';; \ | |
335 | esac; \ | |
336 | done; \ | |
337 | dot_seen=no; \ | |
338 | target=`echo $@ | sed s/-recursive//`; \ | |
339 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
340 | echo "Making $$target in $$subdir"; \ | |
341 | if test "$$subdir" = "."; then \ | |
342 | dot_seen=yes; \ | |
343 | local_target="$$target-am"; \ | |
344 | else \ | |
345 | local_target="$$target"; \ | |
346 | fi; \ | |
347 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
348 | || eval $$failcom; \ | |
349 | done; \ | |
350 | if test "$$dot_seen" = "no"; then \ | |
351 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | |
352 | fi; test -z "$$fail" | |
353 | ||
354 | $(RECURSIVE_CLEAN_TARGETS): | |
355 | @fail= failcom='exit 1'; \ | |
356 | for f in x $$MAKEFLAGS; do \ | |
357 | case $$f in \ | |
358 | *=* | --[!k]*);; \ | |
359 | *k*) failcom='fail=yes';; \ | |
360 | esac; \ | |
361 | done; \ | |
362 | dot_seen=no; \ | |
363 | case "$@" in \ | |
364 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
365 | *) list='$(SUBDIRS)' ;; \ | |
366 | esac; \ | |
367 | rev=''; for subdir in $$list; do \ | |
368 | if test "$$subdir" = "."; then :; else \ | |
369 | rev="$$subdir $$rev"; \ | |
370 | fi; \ | |
371 | done; \ | |
372 | rev="$$rev ."; \ | |
373 | target=`echo $@ | sed s/-recursive//`; \ | |
374 | for subdir in $$rev; do \ | |
375 | echo "Making $$target in $$subdir"; \ | |
376 | if test "$$subdir" = "."; then \ | |
377 | local_target="$$target-am"; \ | |
378 | else \ | |
379 | local_target="$$target"; \ | |
380 | fi; \ | |
381 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
382 | || eval $$failcom; \ | |
383 | done && test -z "$$fail" | |
384 | tags-recursive: | |
385 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
386 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
387 | done | |
388 | ctags-recursive: | |
389 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
390 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |
391 | done | |
392 | ||
393 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
394 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
395 | unique=`for i in $$list; do \ | |
396 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
397 | done | \ | |
398 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
399 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
400 | mkid -fID $$unique | |
401 | tags: TAGS | |
402 | ||
403 | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
404 | $(TAGS_FILES) $(LISP) | |
405 | set x; \ | |
406 | here=`pwd`; \ | |
407 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | |
408 | include_option=--etags-include; \ | |
409 | empty_fix=.; \ | |
410 | else \ | |
411 | include_option=--include; \ | |
412 | empty_fix=; \ | |
413 | fi; \ | |
414 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
415 | if test "$$subdir" = .; then :; else \ | |
416 | test ! -f $$subdir/TAGS || \ | |
417 | set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ | |
418 | fi; \ | |
419 | done; \ | |
420 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
421 | unique=`for i in $$list; do \ | |
422 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
423 | done | \ | |
424 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
425 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
426 | shift; \ | |
427 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | |
428 | test -n "$$unique" || unique=$$empty_fix; \ | |
429 | if test $$# -gt 0; then \ | |
430 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
431 | "$$@" $$unique; \ | |
432 | else \ | |
433 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
434 | $$unique; \ | |
435 | fi; \ | |
436 | fi | |
437 | ctags: CTAGS | |
438 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
439 | $(TAGS_FILES) $(LISP) | |
440 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
441 | unique=`for i in $$list; do \ | |
442 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
443 | done | \ | |
444 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
445 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
446 | test -z "$(CTAGS_ARGS)$$unique" \ | |
447 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | |
448 | $$unique | |
449 | ||
450 | GTAGS: | |
451 | here=`$(am__cd) $(top_builddir) && pwd` \ | |
452 | && $(am__cd) $(top_srcdir) \ | |
453 | && gtags -i $(GTAGS_ARGS) "$$here" | |
454 | ||
455 | distclean-tags: | |
456 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | |
457 | ||
458 | distdir: $(DISTFILES) | |
459 | $(am__remove_distdir) | |
460 | test -d "$(distdir)" || mkdir "$(distdir)" | |
461 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
462 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
463 | list='$(DISTFILES)'; \ | |
464 | dist_files=`for file in $$list; do echo $$file; done | \ | |
465 | sed -e "s|^$$srcdirstrip/||;t" \ | |
466 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
467 | case $$dist_files in \ | |
468 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
469 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
470 | sort -u` ;; \ | |
471 | esac; \ | |
472 | for file in $$dist_files; do \ | |
473 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
474 | if test -d $$d/$$file; then \ | |
475 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
476 | if test -d "$(distdir)/$$file"; then \ | |
477 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
478 | fi; \ | |
479 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
480 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | |
481 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | |
482 | fi; \ | |
483 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | |
484 | else \ | |
485 | test -f "$(distdir)/$$file" \ | |
486 | || cp -p $$d/$$file "$(distdir)/$$file" \ | |
487 | || exit 1; \ | |
488 | fi; \ | |
489 | done | |
490 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |
491 | if test "$$subdir" = .; then :; else \ | |
492 | test -d "$(distdir)/$$subdir" \ | |
493 | || $(MKDIR_P) "$(distdir)/$$subdir" \ | |
494 | || exit 1; \ | |
495 | fi; \ | |
496 | done | |
497 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | |
498 | if test "$$subdir" = .; then :; else \ | |
499 | dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ | |
500 | $(am__relativize); \ | |
501 | new_distdir=$$reldir; \ | |
502 | dir1=$$subdir; dir2="$(top_distdir)"; \ | |
503 | $(am__relativize); \ | |
504 | new_top_distdir=$$reldir; \ | |
505 | echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ | |
506 | echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ | |
507 | ($(am__cd) $$subdir && \ | |
508 | $(MAKE) $(AM_MAKEFLAGS) \ | |
509 | top_distdir="$$new_top_distdir" \ | |
510 | distdir="$$new_distdir" \ | |
511 | am__remove_distdir=: \ | |
512 | am__skip_length_check=: \ | |
513 | am__skip_mode_fix=: \ | |
514 | distdir) \ | |
515 | || exit 1; \ | |
516 | fi; \ | |
517 | done | |
518 | -test -n "$(am__skip_mode_fix)" \ | |
519 | || find "$(distdir)" -type d ! -perm -755 \ | |
520 | -exec chmod u+rwx,go+rx {} \; -o \ | |
521 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | |
522 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | |
523 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ | |
524 | || chmod -R a+r "$(distdir)" | |
525 | dist-gzip: distdir | |
526 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
527 | $(am__remove_distdir) | |
528 | ||
529 | dist-bzip2: distdir | |
530 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | |
531 | $(am__remove_distdir) | |
532 | ||
533 | dist-lzma: distdir | |
534 | tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma | |
535 | $(am__remove_distdir) | |
536 | ||
537 | dist-xz: distdir | |
538 | tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz | |
539 | $(am__remove_distdir) | |
540 | ||
541 | dist-tarZ: distdir | |
542 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | |
543 | $(am__remove_distdir) | |
544 | ||
545 | dist-shar: distdir | |
546 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | |
547 | $(am__remove_distdir) | |
548 | ||
549 | dist-zip: distdir | |
550 | -rm -f $(distdir).zip | |
551 | zip -rq $(distdir).zip $(distdir) | |
552 | $(am__remove_distdir) | |
553 | ||
554 | dist dist-all: distdir | |
555 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
556 | $(am__remove_distdir) | |
557 | ||
558 | # This target untars the dist file and tries a VPATH configuration. Then | |
559 | # it guarantees that the distribution is self-contained by making another | |
560 | # tarfile. | |
561 | distcheck: dist | |
562 | case '$(DIST_ARCHIVES)' in \ | |
563 | *.tar.gz*) \ | |
564 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
565 | *.tar.bz2*) \ | |
566 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ | |
567 | *.tar.lzma*) \ | |
568 | lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ | |
569 | *.tar.xz*) \ | |
570 | xz -dc $(distdir).tar.xz | $(am__untar) ;;\ | |
571 | *.tar.Z*) \ | |
572 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | |
573 | *.shar.gz*) \ | |
574 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ | |
575 | *.zip*) \ | |
576 | unzip $(distdir).zip ;;\ | |
577 | esac | |
578 | chmod -R a-w $(distdir); chmod a+w $(distdir) | |
579 | mkdir $(distdir)/_build | |
580 | mkdir $(distdir)/_inst | |
581 | chmod a-w $(distdir) | |
582 | test -d $(distdir)/_build || exit 0; \ | |
583 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | |
584 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | |
585 | && am__cwd=`pwd` \ | |
586 | && $(am__cd) $(distdir)/_build \ | |
587 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | |
588 | $(DISTCHECK_CONFIGURE_FLAGS) \ | |
589 | && $(MAKE) $(AM_MAKEFLAGS) \ | |
590 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | |
591 | && $(MAKE) $(AM_MAKEFLAGS) check \ | |
592 | && $(MAKE) $(AM_MAKEFLAGS) install \ | |
593 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | |
594 | && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | |
595 | && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ | |
596 | distuninstallcheck \ | |
597 | && chmod -R a-w "$$dc_install_base" \ | |
598 | && ({ \ | |
599 | (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ | |
600 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ | |
601 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ | |
602 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ | |
603 | distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ | |
604 | } || { rm -rf "$$dc_destdir"; exit 1; }) \ | |
605 | && rm -rf "$$dc_destdir" \ | |
606 | && $(MAKE) $(AM_MAKEFLAGS) dist \ | |
607 | && rm -rf $(DIST_ARCHIVES) \ | |
608 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ | |
609 | && cd "$$am__cwd" \ | |
610 | || exit 1 | |
611 | $(am__remove_distdir) | |
612 | @(echo "$(distdir) archives ready for distribution: "; \ | |
613 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | |
614 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' | |
615 | distuninstallcheck: | |
616 | @$(am__cd) '$(distuninstallcheck_dir)' \ | |
617 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | |
618 | || { echo "ERROR: files left after uninstall:" ; \ | |
619 | if test -n "$(DESTDIR)"; then \ | |
620 | echo " (check DESTDIR support)"; \ | |
621 | fi ; \ | |
622 | $(distuninstallcheck_listfiles) ; \ | |
623 | exit 1; } >&2 | |
624 | distcleancheck: distclean | |
625 | @if test '$(srcdir)' = . ; then \ | |
626 | echo "ERROR: distcleancheck can only run from a VPATH build" ; \ | |
627 | exit 1 ; \ | |
628 | fi | |
629 | @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ | |
630 | || { echo "ERROR: files left in build directory after distclean:" ; \ | |
631 | $(distcleancheck_listfiles) ; \ | |
632 | exit 1; } >&2 | |
633 | check-am: all-am | |
634 | check: check-recursive | |
635 | all-am: Makefile $(DATA) config.h | |
636 | installdirs: installdirs-recursive | |
637 | installdirs-am: | |
638 | for dir in "$(DESTDIR)$(sysconfdir)"; do \ | |
639 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | |
640 | done | |
641 | install: install-recursive | |
642 | install-exec: install-exec-recursive | |
643 | install-data: install-data-recursive | |
644 | uninstall: uninstall-recursive | |
645 | ||
646 | install-am: all-am | |
647 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
648 | ||
649 | installcheck: installcheck-recursive | |
650 | install-strip: | |
651 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
652 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
653 | `test -z '$(STRIP)' || \ | |
654 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | |
655 | mostlyclean-generic: | |
656 | ||
657 | clean-generic: | |
658 | ||
659 | distclean-generic: | |
660 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
661 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | |
662 | ||
663 | maintainer-clean-generic: | |
664 | @echo "This command is intended for maintainers to use" | |
665 | @echo "it deletes files that may require special tools to rebuild." | |
666 | clean: clean-recursive | |
667 | ||
668 | clean-am: clean-generic mostlyclean-am | |
669 | ||
670 | distclean: distclean-recursive | |
671 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
672 | -rm -f Makefile | |
673 | distclean-am: clean-am distclean-generic distclean-hdr distclean-tags | |
674 | ||
675 | dvi: dvi-recursive | |
676 | ||
677 | dvi-am: | |
678 | ||
679 | html: html-recursive | |
680 | ||
681 | html-am: | |
682 | ||
683 | info: info-recursive | |
684 | ||
685 | info-am: | |
686 | ||
687 | install-data-am: | |
688 | ||
689 | install-dvi: install-dvi-recursive | |
690 | ||
691 | install-dvi-am: | |
692 | ||
693 | install-exec-am: install-sysconfDATA | |
694 | ||
695 | install-html: install-html-recursive | |
696 | ||
697 | install-html-am: | |
698 | ||
699 | install-info: install-info-recursive | |
700 | ||
701 | install-info-am: | |
702 | ||
703 | install-man: | |
704 | ||
705 | install-pdf: install-pdf-recursive | |
706 | ||
707 | install-pdf-am: | |
708 | ||
709 | install-ps: install-ps-recursive | |
710 | ||
711 | install-ps-am: | |
712 | ||
713 | installcheck-am: | |
714 | ||
715 | maintainer-clean: maintainer-clean-recursive | |
716 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
717 | -rm -rf $(top_srcdir)/autom4te.cache | |
718 | -rm -f Makefile | |
719 | maintainer-clean-am: distclean-am maintainer-clean-generic | |
720 | ||
721 | mostlyclean: mostlyclean-recursive | |
722 | ||
723 | mostlyclean-am: mostlyclean-generic | |
724 | ||
725 | pdf: pdf-recursive | |
726 | ||
727 | pdf-am: | |
728 | ||
729 | ps: ps-recursive | |
730 | ||
731 | ps-am: | |
732 | ||
733 | uninstall-am: uninstall-sysconfDATA | |
734 | ||
735 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ | |
736 | ctags-recursive install-am install-strip tags-recursive | |
737 | ||
738 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | |
739 | all all-am am--refresh check check-am clean clean-generic \ | |
740 | ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ | |
741 | dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \ | |
742 | distclean distclean-generic distclean-hdr distclean-tags \ | |
743 | distcleancheck distdir distuninstallcheck dvi dvi-am html \ | |
744 | html-am info info-am install install-am install-data \ | |
745 | install-data-am install-dvi install-dvi-am install-exec \ | |
746 | install-exec-am install-html install-html-am install-info \ | |
747 | install-info-am install-man install-pdf install-pdf-am \ | |
748 | install-ps install-ps-am install-strip install-sysconfDATA \ | |
749 | installcheck installcheck-am installdirs installdirs-am \ | |
750 | maintainer-clean maintainer-clean-generic mostlyclean \ | |
751 | mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ | |
752 | uninstall uninstall-am uninstall-sysconfDATA | |
753 | ||
754 | ||
755 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
756 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
757 | .NOEXPORT: |
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. | |
4 | # This file is free software; the Free Software Foundation | |
5 | # gives unlimited permission to copy and/or distribute it, | |
6 | # with or without modifications, as long as this notice is preserved. | |
7 | ||
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
11 | # PARTICULAR PURPOSE. | |
12 | ||
13 | m4_ifndef([AC_AUTOCONF_VERSION], | |
14 | [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. | |
17 | You have another version of autoconf. It may work, but is not guaranteed to. | |
18 | 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 | # Check to see how 'make' treats includes. -*- Autoconf -*- | |
590 | ||
591 | # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | |
592 | # | |
593 | # This file is free software; the Free Software Foundation | |
594 | # gives unlimited permission to copy and/or distribute it, | |
595 | # with or without modifications, as long as this notice is preserved. | |
596 | ||
597 | # serial 4 | |
598 | ||
599 | # AM_MAKE_INCLUDE() | |
600 | # ----------------- | |
601 | # Check to see how make treats includes. | |
602 | AC_DEFUN([AM_MAKE_INCLUDE], | |
603 | [am_make=${MAKE-make} | |
604 | cat > confinc << 'END' | |
605 | am__doit: | |
606 | @echo this is the am__doit target | |
607 | .PHONY: am__doit | |
608 | END | |
609 | # If we don't find an include directive, just comment out the code. | |
610 | AC_MSG_CHECKING([for style of include used by $am_make]) | |
611 | am__include="#" | |
612 | am__quote= | |
613 | _am_result=none | |
614 | # First try GNU make style include. | |
615 | echo "include confinc" > confmf | |
616 | # Ignore all kinds of additional output from `make'. | |
617 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
618 | *the\ am__doit\ target*) | |
619 | am__include=include | |
620 | am__quote= | |
621 | _am_result=GNU | |
622 | ;; | |
623 | esac | |
624 | # Now try BSD make style include. | |
625 | if test "$am__include" = "#"; then | |
626 | echo '.include "confinc"' > confmf | |
627 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
628 | *the\ am__doit\ target*) | |
629 | am__include=.include | |
630 | am__quote="\"" | |
631 | _am_result=BSD | |
632 | ;; | |
633 | esac | |
634 | fi | |
635 | AC_SUBST([am__include]) | |
636 | AC_SUBST([am__quote]) | |
637 | AC_MSG_RESULT([$_am_result]) | |
638 | rm -f confinc confmf | |
639 | ]) | |
640 | ||
641 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
642 | ||
643 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
644 | # Free Software Foundation, Inc. | |
645 | # | |
646 | # This file is free software; the Free Software Foundation | |
647 | # gives unlimited permission to copy and/or distribute it, | |
648 | # with or without modifications, as long as this notice is preserved. | |
649 | ||
650 | # serial 6 | |
651 | ||
652 | # AM_MISSING_PROG(NAME, PROGRAM) | |
653 | # ------------------------------ | |
654 | AC_DEFUN([AM_MISSING_PROG], | |
655 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
656 | $1=${$1-"${am_missing_run}$2"} | |
657 | AC_SUBST($1)]) | |
658 | ||
659 | ||
660 | # AM_MISSING_HAS_RUN | |
661 | # ------------------ | |
662 | # Define MISSING if not defined so far and test if it supports --run. | |
663 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
664 | AC_DEFUN([AM_MISSING_HAS_RUN], | |
665 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
666 | AC_REQUIRE_AUX_FILE([missing])dnl | |
667 | if test x"${MISSING+set}" != xset; then | |
668 | case $am_aux_dir in | |
669 | *\ * | *\ *) | |
670 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
671 | *) | |
672 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
673 | esac | |
674 | fi | |
675 | # Use eval to expand $SHELL | |
676 | if eval "$MISSING --run true"; then | |
677 | am_missing_run="$MISSING --run " | |
678 | else | |
679 | am_missing_run= | |
680 | AC_MSG_WARN([`missing' script is too old or missing]) | |
681 | fi | |
682 | ]) | |
683 | ||
684 | # Copyright (C) 2003, 2004, 2005, 2006 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 | # AM_PROG_MKDIR_P | |
691 | # --------------- | |
692 | # Check for `mkdir -p'. | |
693 | AC_DEFUN([AM_PROG_MKDIR_P], | |
694 | [AC_PREREQ([2.60])dnl | |
695 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
696 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
697 | dnl while keeping a definition of mkdir_p for backward compatibility. | |
698 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
699 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
700 | dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
701 | dnl adjustment using top_builddir (which is defined more often than | |
702 | dnl MKDIR_P). | |
703 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
704 | case $mkdir_p in | |
705 | [[\\/$]]* | ?:[[\\/]]*) ;; | |
706 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
707 | esac | |
708 | ]) | |
709 | ||
710 | # Helper functions for option handling. -*- Autoconf -*- | |
711 | ||
712 | # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. | |
713 | # | |
714 | # This file is free software; the Free Software Foundation | |
715 | # gives unlimited permission to copy and/or distribute it, | |
716 | # with or without modifications, as long as this notice is preserved. | |
717 | ||
718 | # serial 4 | |
719 | ||
720 | # _AM_MANGLE_OPTION(NAME) | |
721 | # ----------------------- | |
722 | AC_DEFUN([_AM_MANGLE_OPTION], | |
723 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
724 | ||
725 | # _AM_SET_OPTION(NAME) | |
726 | # ------------------------------ | |
727 | # Set option NAME. Presently that only means defining a flag for this option. | |
728 | AC_DEFUN([_AM_SET_OPTION], | |
729 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
730 | ||
731 | # _AM_SET_OPTIONS(OPTIONS) | |
732 | # ---------------------------------- | |
733 | # OPTIONS is a space-separated list of Automake options. | |
734 | AC_DEFUN([_AM_SET_OPTIONS], | |
735 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
736 | ||
737 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
738 | # ------------------------------------------- | |
739 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
740 | AC_DEFUN([_AM_IF_OPTION], | |
741 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
742 | ||
743 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | |
744 | ||
745 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | |
746 | # Free Software Foundation, Inc. | |
747 | # | |
748 | # This file is free software; the Free Software Foundation | |
749 | # gives unlimited permission to copy and/or distribute it, | |
750 | # with or without modifications, as long as this notice is preserved. | |
751 | ||
752 | # serial 5 | |
753 | ||
754 | # AM_SANITY_CHECK | |
755 | # --------------- | |
756 | AC_DEFUN([AM_SANITY_CHECK], | |
757 | [AC_MSG_CHECKING([whether build environment is sane]) | |
758 | # Just in case | |
759 | sleep 1 | |
760 | echo timestamp > conftest.file | |
761 | # Reject unsafe characters in $srcdir or the absolute working directory | |
762 | # name. Accept space and tab only in the latter. | |
763 | am_lf=' | |
764 | ' | |
765 | case `pwd` in | |
766 | *[[\\\"\#\$\&\'\`$am_lf]]*) | |
767 | AC_MSG_ERROR([unsafe absolute working directory name]);; | |
768 | esac | |
769 | case $srcdir in | |
770 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
771 | AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |
772 | esac | |
773 | ||
774 | # Do `set' in a subshell so we don't clobber the current shell's | |
775 | # arguments. Must try -L first in case configure is actually a | |
776 | # symlink; some systems play weird games with the mod time of symlinks | |
777 | # (eg FreeBSD returns the mod time of the symlink's containing | |
778 | # directory). | |
779 | if ( | |
780 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
781 | if test "$[*]" = "X"; then | |
782 | # -L didn't work. | |
783 | set X `ls -t "$srcdir/configure" conftest.file` | |
784 | fi | |
785 | rm -f conftest.file | |
786 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
787 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
788 | ||
789 | # If neither matched, then we have a broken ls. This can happen | |
790 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
791 | # broken ls alias from the environment. This has actually | |
792 | # happened. Such a system could not be considered "sane". | |
793 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
794 | alias in your environment]) | |
795 | fi | |
796 | ||
797 | test "$[2]" = conftest.file | |
798 | ) | |
799 | then | |
800 | # Ok. | |
801 | : | |
802 | else | |
803 | AC_MSG_ERROR([newly created file is older than distributed files! | |
804 | Check your system clock]) | |
805 | fi | |
806 | AC_MSG_RESULT(yes)]) | |
807 | ||
808 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
809 | # | |
810 | # This file is free software; the Free Software Foundation | |
811 | # gives unlimited permission to copy and/or distribute it, | |
812 | # with or without modifications, as long as this notice is preserved. | |
813 | ||
814 | # AM_PROG_INSTALL_STRIP | |
815 | # --------------------- | |
816 | # One issue with vendor `install' (even GNU) is that you can't | |
817 | # specify the program used to strip binaries. This is especially | |
818 | # annoying in cross-compiling environments, where the build's strip | |
819 | # is unlikely to handle the host's binaries. | |
820 | # Fortunately install-sh will honor a STRIPPROG variable, so we | |
821 | # always use install-sh in `make install-strip', and initialize | |
822 | # STRIPPROG with the value of the STRIP variable (set by the user). | |
823 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
824 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
825 | # Installed binaries are usually stripped using `strip' when the user | |
826 | # run `make install-strip'. However `strip' might not be the right | |
827 | # tool to use in cross-compilation environments, therefore Automake | |
828 | # will honor the `STRIP' environment variable to overrule this program. | |
829 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
830 | if test "$cross_compiling" != no; then | |
831 | AC_CHECK_TOOL([STRIP], [strip], :) | |
832 | fi | |
833 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
834 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
835 | ||
836 | # Copyright (C) 2006, 2008 Free Software Foundation, Inc. | |
837 | # | |
838 | # This file is free software; the Free Software Foundation | |
839 | # gives unlimited permission to copy and/or distribute it, | |
840 | # with or without modifications, as long as this notice is preserved. | |
841 | ||
842 | # serial 2 | |
843 | ||
844 | # _AM_SUBST_NOTMAKE(VARIABLE) | |
845 | # --------------------------- | |
846 | # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
847 | # This macro is traced by Automake. | |
848 | AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
849 | ||
850 | # AM_SUBST_NOTMAKE(VARIABLE) | |
851 | # --------------------------- | |
852 | # Public sister of _AM_SUBST_NOTMAKE. | |
853 | AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
854 | ||
855 | # Check how to create a tarball. -*- Autoconf -*- | |
856 | ||
857 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | |
858 | # | |
859 | # This file is free software; the Free Software Foundation | |
860 | # gives unlimited permission to copy and/or distribute it, | |
861 | # with or without modifications, as long as this notice is preserved. | |
862 | ||
863 | # serial 2 | |
864 | ||
865 | # _AM_PROG_TAR(FORMAT) | |
866 | # -------------------- | |
867 | # Check how to create a tarball in format FORMAT. | |
868 | # FORMAT should be one of `v7', `ustar', or `pax'. | |
869 | # | |
870 | # Substitute a variable $(am__tar) that is a command | |
871 | # writing to stdout a FORMAT-tarball containing the directory | |
872 | # $tardir. | |
873 | # tardir=directory && $(am__tar) > result.tar | |
874 | # | |
875 | # Substitute a variable $(am__untar) that extract such | |
876 | # a tarball read from stdin. | |
877 | # $(am__untar) < result.tar | |
878 | AC_DEFUN([_AM_PROG_TAR], | |
879 | [# Always define AMTAR for backward compatibility. | |
880 | AM_MISSING_PROG([AMTAR], [tar]) | |
881 | m4_if([$1], [v7], | |
882 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | |
883 | [m4_case([$1], [ustar],, [pax],, | |
884 | [m4_fatal([Unknown tar format])]) | |
885 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
886 | # Loop over all known methods to create a tar archive until one works. | |
887 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
888 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
889 | # Do not fold the above two line into one, because Tru64 sh and | |
890 | # Solaris sh will not grok spaces in the rhs of `-'. | |
891 | for _am_tool in $_am_tools | |
892 | do | |
893 | case $_am_tool in | |
894 | gnutar) | |
895 | for _am_tar in tar gnutar gtar; | |
896 | do | |
897 | AM_RUN_LOG([$_am_tar --version]) && break | |
898 | done | |
899 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
900 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
901 | am__untar="$_am_tar -xf -" | |
902 | ;; | |
903 | plaintar) | |
904 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
905 | # ustar tarball either. | |
906 | (tar --version) >/dev/null 2>&1 && continue | |
907 | am__tar='tar chf - "$$tardir"' | |
908 | am__tar_='tar chf - "$tardir"' | |
909 | am__untar='tar xf -' | |
910 | ;; | |
911 | pax) | |
912 | am__tar='pax -L -x $1 -w "$$tardir"' | |
913 | am__tar_='pax -L -x $1 -w "$tardir"' | |
914 | am__untar='pax -r' | |
915 | ;; | |
916 | cpio) | |
917 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
918 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
919 | am__untar='cpio -i -H $1 -d' | |
920 | ;; | |
921 | none) | |
922 | am__tar=false | |
923 | am__tar_=false | |
924 | am__untar=false | |
925 | ;; | |
926 | esac | |
927 | ||
928 | # If the value was cached, stop now. We just wanted to have am__tar | |
929 | # and am__untar set. | |
930 | test -n "${am_cv_prog_tar_$1}" && break | |
931 | ||
932 | # tar/untar a dummy directory, and stop if the command works | |
933 | rm -rf conftest.dir | |
934 | mkdir conftest.dir | |
935 | echo GrepMe > conftest.dir/file | |
936 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
937 | rm -rf conftest.dir | |
938 | if test -s conftest.tar; then | |
939 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
940 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
941 | fi | |
942 | done | |
943 | rm -rf conftest.dir | |
944 | ||
945 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
946 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
947 | AC_SUBST([am__tar]) | |
948 | AC_SUBST([am__untar]) | |
949 | ]) # _AM_PROG_TAR | |
950 |
0 | #!/bin/sh | |
1 | # | |
2 | # Script to generate configure&make stuff | |
3 | # | |
4 | ||
5 | #----------------------------------------------------- | |
6 | # If defined, get these programs from the environment | |
7 | # | |
8 | : ${ACLOCAL:=aclocal} | |
9 | : ${AUTOHEADER:=autoheader} | |
10 | : ${AUTOCONF:=autoconf} | |
11 | : ${AUTOMAKE:=automake} | |
12 | ||
13 | #------------------------- | |
14 | # Required binaries check | |
15 | # | |
16 | check_bin_file(){ | |
17 | which $1 > /dev/null 2>&1 | |
18 | if [ $? = 0 ]; then | |
19 | return 0 | |
20 | else | |
21 | return 1 | |
22 | fi | |
23 | } | |
24 | ||
25 | #------ | |
26 | # Main | |
27 | # | |
28 | ||
29 | #clear | |
30 | ERR="no" | |
31 | for cmd in "$ACLOCAL" "$AUTOHEADER" "$AUTOCONF" "$AUTOMAKE" | |
32 | do | |
33 | if check_bin_file "$cmd" | |
34 | then | |
35 | echo -e "$cmd \tfound" | |
36 | else | |
37 | echo -e "$cmd \tNOT found" | |
38 | ERR="yes" | |
39 | fi | |
40 | done | |
41 | ||
42 | if test $ERR = "yes" | |
43 | then | |
44 | echo | |
45 | echo "ERROR: to run this program you need the following installed" | |
46 | echo " $ACLOCAL $AUTOHEADER $AUTOCONF $AUTOMAKE" | |
47 | echo | |
48 | exit 1 | |
49 | fi | |
50 | ||
51 | echo "[Checks passed]" | |
52 | echo "Generating..." | |
53 | ||
54 | "$ACLOCAL" | |
55 | "$AUTOHEADER" | |
56 | "$AUTOCONF" | |
57 | "$AUTOMAKE" -a | |
58 |
0 | #! /bin/sh | |
1 | # 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 | # 2011 Free Software Foundation, Inc. | |
5 | ||
6 | timestamp='2011-05-11' | |
7 | ||
8 | # This file is free software; you can redistribute it and/or modify it | |
9 | # under the terms of the GNU General Public License as published by | |
10 | # the Free Software Foundation; either version 2 of the License, or | |
11 | # (at your option) any later version. | |
12 | # | |
13 | # This program is distributed in the hope that it will be useful, but | |
14 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | # 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, write to the Free Software | |
20 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA | |
21 | # 02110-1301, USA. | |
22 | # | |
23 | # As a special exception to the GNU General Public License, if you | |
24 | # distribute this file as part of a program that contains a | |
25 | # 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. | |
32 | # | |
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. | |
36 | # | |
37 | # 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 | |
39 | ||
40 | me=`echo "$0" | sed -e 's,.*/,,'` | |
41 | ||
42 | usage="\ | |
43 | Usage: $0 [OPTION] | |
44 | ||
45 | Output the configuration name of the system \`$me' is run on. | |
46 | ||
47 | Operation modes: | |
48 | -h, --help print this help, then exit | |
49 | -t, --time-stamp print date of last modification, then exit | |
50 | -v, --version print version number, then exit | |
51 | ||
52 | Report bugs and patches to <config-patches@gnu.org>." | |
53 | ||
54 | version="\ | |
55 | GNU config.guess ($timestamp) | |
56 | ||
57 | 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, 2011 Free | |
60 | Software Foundation, Inc. | |
61 | ||
62 | This is free software; see the source for copying conditions. There is NO | |
63 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | |
64 | ||
65 | help=" | |
66 | Try \`$me --help' for more information." | |
67 | ||
68 | # Parse command line | |
69 | while test $# -gt 0 ; do | |
70 | case $1 in | |
71 | --time-stamp | --time* | -t ) | |
72 | echo "$timestamp" ; exit ;; | |
73 | --version | -v ) | |
74 | echo "$version" ; exit ;; | |
75 | --help | --h* | -h ) | |
76 | echo "$usage"; exit ;; | |
77 | -- ) # Stop option processing | |
78 | shift; break ;; | |
79 | - ) # Use stdin as input. | |
80 | break ;; | |
81 | -* ) | |
82 | echo "$me: invalid option $1$help" >&2 | |
83 | exit 1 ;; | |
84 | * ) | |
85 | break ;; | |
86 | esac | |
87 | done | |
88 | ||
89 | if test $# != 0; then | |
90 | echo "$me: too many arguments$help" >&2 | |
91 | exit 1 | |
92 | fi | |
93 | ||
94 | trap 'exit 1' 1 2 15 | |
95 | ||
96 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a | |
97 | # compiler to aid in system detection is discouraged as it requires | |
98 | # temporary files to be created and, as you can see below, it is a | |
99 | # headache to deal with in a portable fashion. | |
100 | ||
101 | # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still | |
102 | # use `HOST_CC' if defined, but it is deprecated. | |
103 | ||
104 | # Portable tmp directory creation inspired by the Autoconf team. | |
105 | ||
106 | set_cc_for_build=' | |
107 | 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" 1 2 13 15 ; | |
109 | : ${TMPDIR=/tmp} ; | |
110 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || | |
111 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || | |
112 | { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || | |
113 | { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; | |
114 | dummy=$tmp/dummy ; | |
115 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; | |
116 | case $CC_FOR_BUILD,$HOST_CC,$CC in | |
117 | ,,) echo "int x;" > $dummy.c ; | |
118 | for c in cc gcc c89 c99 ; do | |
119 | if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then | |
120 | CC_FOR_BUILD="$c"; break ; | |
121 | fi ; | |
122 | done ; | |
123 | if test x"$CC_FOR_BUILD" = x ; then | |
124 | CC_FOR_BUILD=no_compiler_found ; | |
125 | fi | |
126 | ;; | |
127 | ,,*) CC_FOR_BUILD=$CC ;; | |
128 | ,*,*) CC_FOR_BUILD=$HOST_CC ;; | |
129 | esac ; set_cc_for_build= ;' | |
130 | ||
131 | # This is needed to find uname on a Pyramid OSx when run in the BSD universe. | |
132 | # (ghazi@noc.rutgers.edu 1994-08-24) | |
133 | if (test -f /.attbin/uname) >/dev/null 2>&1 ; then | |
134 | PATH=$PATH:/.attbin ; export PATH | |
135 | fi | |
136 | ||
137 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown | |
138 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown | |
139 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | |
140 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown | |
141 | ||
142 | # Note: order is significant - the case branches are not exclusive. | |
143 | ||
144 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | |
145 | *:NetBSD:*:*) | |
146 | # NetBSD (nbsd) targets should (where applicable) match one or | |
147 | # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, | |
148 | # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently | |
149 | # switched to ELF, *-*-netbsd* would select the old | |
150 | # object file format. This provides both forward | |
151 | # compatibility and a consistent mechanism for selecting the | |
152 | # object file format. | |
153 | # | |
154 | # Note: NetBSD doesn't particularly care about the vendor | |
155 | # portion of the name. We always set it to "unknown". | |
156 | 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 | |
160 | armeb) machine=armeb-unknown ;; | |
161 | arm*) machine=arm-unknown ;; | |
162 | sh3el) machine=shl-unknown ;; | |
163 | sh3eb) machine=sh-unknown ;; | |
164 | sh5el) machine=sh5le-unknown ;; | |
165 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | |
166 | esac | |
167 | # 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 | |
170 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) | |
171 | eval $set_cc_for_build | |
172 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
173 | | grep -q __ELF__ | |
174 | then | |
175 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). | |
176 | # Return netbsd for either. FIX? | |
177 | os=netbsd | |
178 | else | |
179 | os=netbsdelf | |
180 | fi | |
181 | ;; | |
182 | *) | |
183 | os=netbsd | |
184 | ;; | |
185 | esac | |
186 | # The OS release | |
187 | # Debian GNU/NetBSD machines have a different userland, and | |
188 | # thus, need a distinct triplet. However, they do not need | |
189 | # kernel version information, so it can be replaced with a | |
190 | # suitable tag, in the style of linux-gnu. | |
191 | case "${UNAME_VERSION}" in | |
192 | Debian*) | |
193 | release='-gnu' | |
194 | ;; | |
195 | *) | |
196 | release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` | |
197 | ;; | |
198 | esac | |
199 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: | |
200 | # contains redundant information, the shorter form: | |
201 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. | |
202 | echo "${machine}-${os}${release}" | |
203 | exit ;; | |
204 | *:OpenBSD:*:*) | |
205 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` | |
206 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | |
207 | exit ;; | |
208 | *:ekkoBSD:*:*) | |
209 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | |
210 | exit ;; | |
211 | *:SolidBSD:*:*) | |
212 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | |
213 | exit ;; | |
214 | macppc:MirBSD:*:*) | |
215 | echo powerpc-unknown-mirbsd${UNAME_RELEASE} | |
216 | exit ;; | |
217 | *:MirBSD:*:*) | |
218 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | |
219 | exit ;; | |
220 | alpha:OSF1:*:*) | |
221 | case $UNAME_RELEASE in | |
222 | *4.0) | |
223 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` | |
224 | ;; | |
225 | *5.*) | |
226 | UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` | |
227 | ;; | |
228 | esac | |
229 | # According to Compaq, /usr/sbin/psrinfo has been available on | |
230 | # OSF/1 and Tru64 systems produced since 1995. I hope that | |
231 | # covers most systems running today. This code pipes the CPU | |
232 | # types through head -n 1, so we only detect the type of CPU 0. | |
233 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` | |
234 | case "$ALPHA_CPU_TYPE" in | |
235 | "EV4 (21064)") | |
236 | UNAME_MACHINE="alpha" ;; | |
237 | "EV4.5 (21064)") | |
238 | UNAME_MACHINE="alpha" ;; | |
239 | "LCA4 (21066/21068)") | |
240 | UNAME_MACHINE="alpha" ;; | |
241 | "EV5 (21164)") | |
242 | UNAME_MACHINE="alphaev5" ;; | |
243 | "EV5.6 (21164A)") | |
244 | UNAME_MACHINE="alphaev56" ;; | |
245 | "EV5.6 (21164PC)") | |
246 | UNAME_MACHINE="alphapca56" ;; | |
247 | "EV5.7 (21164PC)") | |
248 | UNAME_MACHINE="alphapca57" ;; | |
249 | "EV6 (21264)") | |
250 | UNAME_MACHINE="alphaev6" ;; | |
251 | "EV6.7 (21264A)") | |
252 | UNAME_MACHINE="alphaev67" ;; | |
253 | "EV6.8CB (21264C)") | |
254 | UNAME_MACHINE="alphaev68" ;; | |
255 | "EV6.8AL (21264B)") | |
256 | UNAME_MACHINE="alphaev68" ;; | |
257 | "EV6.8CX (21264D)") | |
258 | UNAME_MACHINE="alphaev68" ;; | |
259 | "EV6.9A (21264/EV69A)") | |
260 | UNAME_MACHINE="alphaev69" ;; | |
261 | "EV7 (21364)") | |
262 | UNAME_MACHINE="alphaev7" ;; | |
263 | "EV7.9 (21364A)") | |
264 | UNAME_MACHINE="alphaev79" ;; | |
265 | esac | |
266 | # A Pn.n version is a patched version. | |
267 | # A Vn.n version is a released version. | |
268 | # A Tn.n version is a released field test version. | |
269 | # A Xn.n version is an unreleased experimental baselevel. | |
270 | # 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 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. | |
273 | exitcode=$? | |
274 | trap '' 0 | |
275 | exit $exitcode ;; | |
276 | Alpha\ *:Windows_NT*:*) | |
277 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
278 | # Should we change UNAME_MACHINE based on the output of uname instead | |
279 | # of the specific Alpha model? | |
280 | echo alpha-pc-interix | |
281 | exit ;; | |
282 | 21064:Windows_NT:50:3) | |
283 | echo alpha-dec-winnt3.5 | |
284 | exit ;; | |
285 | Amiga*:UNIX_System_V:4.0:*) | |
286 | echo m68k-unknown-sysv4 | |
287 | exit ;; | |
288 | *:[Aa]miga[Oo][Ss]:*:*) | |
289 | echo ${UNAME_MACHINE}-unknown-amigaos | |
290 | exit ;; | |
291 | *:[Mm]orph[Oo][Ss]:*:*) | |
292 | echo ${UNAME_MACHINE}-unknown-morphos | |
293 | exit ;; | |
294 | *:OS/390:*:*) | |
295 | echo i370-ibm-openedition | |
296 | exit ;; | |
297 | *:z/VM:*:*) | |
298 | echo s390-ibm-zvmoe | |
299 | exit ;; | |
300 | *:OS400:*:*) | |
301 | echo powerpc-ibm-os400 | |
302 | exit ;; | |
303 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) | |
304 | echo arm-acorn-riscix${UNAME_RELEASE} | |
305 | exit ;; | |
306 | arm:riscos:*:*|arm:RISCOS:*:*) | |
307 | echo arm-unknown-riscos | |
308 | exit ;; | |
309 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) | |
310 | echo hppa1.1-hitachi-hiuxmpp | |
311 | exit ;; | |
312 | Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) | |
313 | # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. | |
314 | if test "`(/bin/universe) 2>/dev/null`" = att ; then | |
315 | echo pyramid-pyramid-sysv3 | |
316 | else | |
317 | echo pyramid-pyramid-bsd | |
318 | fi | |
319 | exit ;; | |
320 | NILE*:*:*:dcosx) | |
321 | echo pyramid-pyramid-svr4 | |
322 | exit ;; | |
323 | DRS?6000:unix:4.0:6*) | |
324 | echo sparc-icl-nx6 | |
325 | exit ;; | |
326 | DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) | |
327 | case `/usr/bin/uname -p` in | |
328 | sparc) echo sparc-icl-nx7; exit ;; | |
329 | esac ;; | |
330 | s390x:SunOS:*:*) | |
331 | echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
332 | exit ;; | |
333 | sun4H:SunOS:5.*:*) | |
334 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
335 | exit ;; | |
336 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) | |
337 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
338 | exit ;; | |
339 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) | |
340 | echo i386-pc-auroraux${UNAME_RELEASE} | |
341 | exit ;; | |
342 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) | |
343 | eval $set_cc_for_build | |
344 | SUN_ARCH="i386" | |
345 | # If there is a compiler, see if it is configured for 64-bit objects. | |
346 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | |
347 | # This test works for both compilers. | |
348 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
349 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
350 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
351 | grep IS_64BIT_ARCH >/dev/null | |
352 | then | |
353 | SUN_ARCH="x86_64" | |
354 | fi | |
355 | fi | |
356 | echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
357 | exit ;; | |
358 | sun4*:SunOS:6*:*) | |
359 | # According to config.sub, this is the proper way to canonicalize | |
360 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but | |
361 | # it's likely to be more like Solaris than SunOS4. | |
362 | echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
363 | exit ;; | |
364 | sun4*:SunOS:*:*) | |
365 | case "`/usr/bin/arch -k`" in | |
366 | Series*|S4*) | |
367 | UNAME_RELEASE=`uname -v` | |
368 | ;; | |
369 | esac | |
370 | # Japanese Language versions have a version number like `4.1.3-JL'. | |
371 | echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` | |
372 | exit ;; | |
373 | sun3*:SunOS:*:*) | |
374 | echo m68k-sun-sunos${UNAME_RELEASE} | |
375 | exit ;; | |
376 | sun*:*:4.2BSD:*) | |
377 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` | |
378 | test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 | |
379 | case "`/bin/arch`" in | |
380 | sun3) | |
381 | echo m68k-sun-sunos${UNAME_RELEASE} | |
382 | ;; | |
383 | sun4) | |
384 | echo sparc-sun-sunos${UNAME_RELEASE} | |
385 | ;; | |
386 | esac | |
387 | exit ;; | |
388 | aushp:SunOS:*:*) | |
389 | echo sparc-auspex-sunos${UNAME_RELEASE} | |
390 | exit ;; | |
391 | # The situation for MiNT is a little confusing. The machine name | |
392 | # can be virtually everything (everything which is not | |
393 | # "atarist" or "atariste" at least should have a processor | |
394 | # > m68000). The system name ranges from "MiNT" over "FreeMiNT" | |
395 | # to the lowercase version "mint" (or "freemint"). Finally | |
396 | # the system name "TOS" denotes a system which is actually not | |
397 | # MiNT. But MiNT is downward compatible to TOS, so this should | |
398 | # be no problem. | |
399 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) | |
400 | echo m68k-atari-mint${UNAME_RELEASE} | |
401 | exit ;; | |
402 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) | |
403 | echo m68k-atari-mint${UNAME_RELEASE} | |
404 | exit ;; | |
405 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) | |
406 | echo m68k-atari-mint${UNAME_RELEASE} | |
407 | exit ;; | |
408 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) | |
409 | echo m68k-milan-mint${UNAME_RELEASE} | |
410 | exit ;; | |
411 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) | |
412 | echo m68k-hades-mint${UNAME_RELEASE} | |
413 | exit ;; | |
414 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) | |
415 | echo m68k-unknown-mint${UNAME_RELEASE} | |
416 | exit ;; | |
417 | m68k:machten:*:*) | |
418 | echo m68k-apple-machten${UNAME_RELEASE} | |
419 | exit ;; | |
420 | powerpc:machten:*:*) | |
421 | echo powerpc-apple-machten${UNAME_RELEASE} | |
422 | exit ;; | |
423 | RISC*:Mach:*:*) | |
424 | echo mips-dec-mach_bsd4.3 | |
425 | exit ;; | |
426 | RISC*:ULTRIX:*:*) | |
427 | echo mips-dec-ultrix${UNAME_RELEASE} | |
428 | exit ;; | |
429 | VAX*:ULTRIX*:*:*) | |
430 | echo vax-dec-ultrix${UNAME_RELEASE} | |
431 | exit ;; | |
432 | 2020:CLIX:*:* | 2430:CLIX:*:*) | |
433 | echo clipper-intergraph-clix${UNAME_RELEASE} | |
434 | exit ;; | |
435 | mips:*:*:UMIPS | mips:*:*:RISCos) | |
436 | eval $set_cc_for_build | |
437 | sed 's/^ //' << EOF >$dummy.c | |
438 | #ifdef __cplusplus | |
439 | #include <stdio.h> /* for printf() prototype */ | |
440 | int main (int argc, char *argv[]) { | |
441 | #else | |
442 | int main (argc, argv) int argc; char *argv[]; { | |
443 | #endif | |
444 | #if defined (host_mips) && defined (MIPSEB) | |
445 | #if defined (SYSTYPE_SYSV) | |
446 | printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); | |
447 | #endif | |
448 | #if defined (SYSTYPE_SVR4) | |
449 | printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); | |
450 | #endif | |
451 | #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) | |
452 | printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); | |
453 | #endif | |
454 | #endif | |
455 | exit (-1); | |
456 | } | |
457 | EOF | |
458 | $CC_FOR_BUILD -o $dummy $dummy.c && | |
459 | dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && | |
460 | SYSTEM_NAME=`$dummy $dummyarg` && | |
461 | { echo "$SYSTEM_NAME"; exit; } | |
462 | echo mips-mips-riscos${UNAME_RELEASE} | |
463 | exit ;; | |
464 | Motorola:PowerMAX_OS:*:*) | |
465 | echo powerpc-motorola-powermax | |
466 | exit ;; | |
467 | Motorola:*:4.3:PL8-*) | |
468 | echo powerpc-harris-powermax | |
469 | exit ;; | |
470 | Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) | |
471 | echo powerpc-harris-powermax | |
472 | exit ;; | |
473 | Night_Hawk:Power_UNIX:*:*) | |
474 | echo powerpc-harris-powerunix | |
475 | exit ;; | |
476 | m88k:CX/UX:7*:*) | |
477 | echo m88k-harris-cxux7 | |
478 | exit ;; | |
479 | m88k:*:4*:R4*) | |
480 | echo m88k-motorola-sysv4 | |
481 | exit ;; | |
482 | m88k:*:3*:R3*) | |
483 | echo m88k-motorola-sysv3 | |
484 | exit ;; | |
485 | AViiON:dgux:*:*) | |
486 | # DG/UX returns AViiON for all architectures | |
487 | UNAME_PROCESSOR=`/usr/bin/uname -p` | |
488 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | |
489 | then | |
490 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | |
491 | [ ${TARGET_BINARY_INTERFACE}x = x ] | |
492 | then | |
493 | echo m88k-dg-dgux${UNAME_RELEASE} | |
494 | else | |
495 | echo m88k-dg-dguxbcs${UNAME_RELEASE} | |
496 | fi | |
497 | else | |
498 | echo i586-dg-dgux${UNAME_RELEASE} | |
499 | fi | |
500 | exit ;; | |
501 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) | |
502 | echo m88k-dolphin-sysv3 | |
503 | exit ;; | |
504 | M88*:*:R3*:*) | |
505 | # Delta 88k system running SVR3 | |
506 | echo m88k-motorola-sysv3 | |
507 | exit ;; | |
508 | XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) | |
509 | echo m88k-tektronix-sysv3 | |
510 | exit ;; | |
511 | Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) | |
512 | echo m68k-tektronix-bsd | |
513 | exit ;; | |
514 | *:IRIX*:*:*) | |
515 | echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` | |
516 | exit ;; | |
517 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. | |
518 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id | |
519 | exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' | |
520 | i*86:AIX:*:*) | |
521 | echo i386-ibm-aix | |
522 | exit ;; | |
523 | ia64:AIX:*:*) | |
524 | if [ -x /usr/bin/oslevel ] ; then | |
525 | IBM_REV=`/usr/bin/oslevel` | |
526 | else | |
527 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
528 | fi | |
529 | echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} | |
530 | exit ;; | |
531 | *:AIX:2:3) | |
532 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then | |
533 | eval $set_cc_for_build | |
534 | sed 's/^ //' << EOF >$dummy.c | |
535 | #include <sys/systemcfg.h> | |
536 | ||
537 | main() | |
538 | { | |
539 | if (!__power_pc()) | |
540 | exit(1); | |
541 | puts("powerpc-ibm-aix3.2.5"); | |
542 | exit(0); | |
543 | } | |
544 | EOF | |
545 | if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` | |
546 | then | |
547 | echo "$SYSTEM_NAME" | |
548 | else | |
549 | echo rs6000-ibm-aix3.2.5 | |
550 | fi | |
551 | elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then | |
552 | echo rs6000-ibm-aix3.2.4 | |
553 | else | |
554 | echo rs6000-ibm-aix3.2 | |
555 | fi | |
556 | exit ;; | |
557 | *:AIX:*:[4567]) | |
558 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` | |
559 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | |
560 | IBM_ARCH=rs6000 | |
561 | else | |
562 | IBM_ARCH=powerpc | |
563 | fi | |
564 | if [ -x /usr/bin/oslevel ] ; then | |
565 | IBM_REV=`/usr/bin/oslevel` | |
566 | else | |
567 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
568 | fi | |
569 | echo ${IBM_ARCH}-ibm-aix${IBM_REV} | |
570 | exit ;; | |
571 | *:AIX:*:*) | |
572 | echo rs6000-ibm-aix | |
573 | exit ;; | |
574 | ibmrt:4.4BSD:*|romp-ibm:BSD:*) | |
575 | echo romp-ibm-bsd4.4 | |
576 | exit ;; | |
577 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and | |
578 | echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to | |
579 | exit ;; # report: romp-ibm BSD 4.3 | |
580 | *:BOSX:*:*) | |
581 | echo rs6000-bull-bosx | |
582 | exit ;; | |
583 | DPX/2?00:B.O.S.:*:*) | |
584 | echo m68k-bull-sysv3 | |
585 | exit ;; | |
586 | 9000/[34]??:4.3bsd:1.*:*) | |
587 | echo m68k-hp-bsd | |
588 | exit ;; | |
589 | hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) | |
590 | echo m68k-hp-bsd4.4 | |
591 | exit ;; | |
592 | 9000/[34678]??:HP-UX:*:*) | |
593 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
594 | case "${UNAME_MACHINE}" in | |
595 | 9000/31? ) HP_ARCH=m68000 ;; | |
596 | 9000/[34]?? ) HP_ARCH=m68k ;; | |
597 | 9000/[678][0-9][0-9]) | |
598 | if [ -x /usr/bin/getconf ]; then | |
599 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` | |
600 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` | |
601 | case "${sc_cpu_version}" in | |
602 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | |
603 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | |
604 | 532) # CPU_PA_RISC2_0 | |
605 | case "${sc_kernel_bits}" in | |
606 | 32) HP_ARCH="hppa2.0n" ;; | |
607 | 64) HP_ARCH="hppa2.0w" ;; | |
608 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | |
609 | esac ;; | |
610 | esac | |
611 | fi | |
612 | if [ "${HP_ARCH}" = "" ]; then | |
613 | eval $set_cc_for_build | |
614 | sed 's/^ //' << EOF >$dummy.c | |
615 | ||
616 | #define _HPUX_SOURCE | |
617 | #include <stdlib.h> | |
618 | #include <unistd.h> | |
619 | ||
620 | int main () | |
621 | { | |
622 | #if defined(_SC_KERNEL_BITS) | |
623 | long bits = sysconf(_SC_KERNEL_BITS); | |
624 | #endif | |
625 | long cpu = sysconf (_SC_CPU_VERSION); | |
626 | ||
627 | switch (cpu) | |
628 | { | |
629 | case CPU_PA_RISC1_0: puts ("hppa1.0"); break; | |
630 | case CPU_PA_RISC1_1: puts ("hppa1.1"); break; | |
631 | case CPU_PA_RISC2_0: | |
632 | #if defined(_SC_KERNEL_BITS) | |
633 | switch (bits) | |
634 | { | |
635 | case 64: puts ("hppa2.0w"); break; | |
636 | case 32: puts ("hppa2.0n"); break; | |
637 | default: puts ("hppa2.0"); break; | |
638 | } break; | |
639 | #else /* !defined(_SC_KERNEL_BITS) */ | |
640 | puts ("hppa2.0"); break; | |
641 | #endif | |
642 | default: puts ("hppa1.0"); break; | |
643 | } | |
644 | exit (0); | |
645 | } | |
646 | EOF | |
647 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | |
648 | test -z "$HP_ARCH" && HP_ARCH=hppa | |
649 | fi ;; | |
650 | esac | |
651 | if [ ${HP_ARCH} = "hppa2.0w" ] | |
652 | then | |
653 | eval $set_cc_for_build | |
654 | ||
655 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating | |
656 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler | |
657 | # generating 64-bit code. GNU and HP use different nomenclature: | |
658 | # | |
659 | # $ CC_FOR_BUILD=cc ./config.guess | |
660 | # => hppa2.0w-hp-hpux11.23 | |
661 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess | |
662 | # => hppa64-hp-hpux11.23 | |
663 | ||
664 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | |
665 | grep -q __LP64__ | |
666 | then | |
667 | HP_ARCH="hppa2.0w" | |
668 | else | |
669 | HP_ARCH="hppa64" | |
670 | fi | |
671 | fi | |
672 | echo ${HP_ARCH}-hp-hpux${HPUX_REV} | |
673 | exit ;; | |
674 | ia64:HP-UX:*:*) | |
675 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
676 | echo ia64-hp-hpux${HPUX_REV} | |
677 | exit ;; | |
678 | 3050*:HI-UX:*:*) | |
679 | eval $set_cc_for_build | |
680 | sed 's/^ //' << EOF >$dummy.c | |
681 | #include <unistd.h> | |
682 | int | |
683 | main () | |
684 | { | |
685 | long cpu = sysconf (_SC_CPU_VERSION); | |
686 | /* The order matters, because CPU_IS_HP_MC68K erroneously returns | |
687 | true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct | |
688 | results, however. */ | |
689 | if (CPU_IS_PA_RISC (cpu)) | |
690 | { | |
691 | switch (cpu) | |
692 | { | |
693 | case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; | |
694 | case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; | |
695 | case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; | |
696 | default: puts ("hppa-hitachi-hiuxwe2"); break; | |
697 | } | |
698 | } | |
699 | else if (CPU_IS_HP_MC68K (cpu)) | |
700 | puts ("m68k-hitachi-hiuxwe2"); | |
701 | else puts ("unknown-hitachi-hiuxwe2"); | |
702 | exit (0); | |
703 | } | |
704 | EOF | |
705 | $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && | |
706 | { echo "$SYSTEM_NAME"; exit; } | |
707 | echo unknown-hitachi-hiuxwe2 | |
708 | exit ;; | |
709 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) | |
710 | echo hppa1.1-hp-bsd | |
711 | exit ;; | |
712 | 9000/8??:4.3bsd:*:*) | |
713 | echo hppa1.0-hp-bsd | |
714 | exit ;; | |
715 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) | |
716 | echo hppa1.0-hp-mpeix | |
717 | exit ;; | |
718 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) | |
719 | echo hppa1.1-hp-osf | |
720 | exit ;; | |
721 | hp8??:OSF1:*:*) | |
722 | echo hppa1.0-hp-osf | |
723 | exit ;; | |
724 | i*86:OSF1:*:*) | |
725 | if [ -x /usr/sbin/sysversion ] ; then | |
726 | echo ${UNAME_MACHINE}-unknown-osf1mk | |
727 | else | |
728 | echo ${UNAME_MACHINE}-unknown-osf1 | |
729 | fi | |
730 | exit ;; | |
731 | parisc*:Lites*:*:*) | |
732 | echo hppa1.1-hp-lites | |
733 | exit ;; | |
734 | C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) | |
735 | echo c1-convex-bsd | |
736 | exit ;; | |
737 | C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) | |
738 | if getsysinfo -f scalar_acc | |
739 | then echo c32-convex-bsd | |
740 | else echo c2-convex-bsd | |
741 | fi | |
742 | exit ;; | |
743 | C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) | |
744 | echo c34-convex-bsd | |
745 | exit ;; | |
746 | C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) | |
747 | echo c38-convex-bsd | |
748 | exit ;; | |
749 | C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) | |
750 | echo c4-convex-bsd | |
751 | exit ;; | |
752 | CRAY*Y-MP:*:*:*) | |
753 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
754 | exit ;; | |
755 | CRAY*[A-Z]90:*:*:*) | |
756 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | |
757 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ | |
758 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ | |
759 | -e 's/\.[^.]*$/.X/' | |
760 | exit ;; | |
761 | CRAY*TS:*:*:*) | |
762 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
763 | exit ;; | |
764 | CRAY*T3E:*:*:*) | |
765 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
766 | exit ;; | |
767 | CRAY*SV1:*:*:*) | |
768 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
769 | exit ;; | |
770 | *:UNICOS/mp:*:*) | |
771 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
772 | exit ;; | |
773 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) | |
774 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
775 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
776 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | |
777 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
778 | exit ;; | |
779 | 5000:UNIX_System_V:4.*:*) | |
780 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
781 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | |
782 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" | |
783 | exit ;; | |
784 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) | |
785 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | |
786 | exit ;; | |
787 | sparc*:BSD/OS:*:*) | |
788 | echo sparc-unknown-bsdi${UNAME_RELEASE} | |
789 | exit ;; | |
790 | *:BSD/OS:*:*) | |
791 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | |
792 | exit ;; | |
793 | *:FreeBSD:*:*) | |
794 | case ${UNAME_MACHINE} in | |
795 | pc98) | |
796 | echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
797 | amd64) | |
798 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
799 | *) | |
800 | echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
801 | esac | |
802 | exit ;; | |
803 | i*:CYGWIN*:*) | |
804 | echo ${UNAME_MACHINE}-pc-cygwin | |
805 | exit ;; | |
806 | *:MINGW*:*) | |
807 | echo ${UNAME_MACHINE}-pc-mingw32 | |
808 | exit ;; | |
809 | i*:windows32*:*) | |
810 | # uname -m includes "-pc" on this system. | |
811 | echo ${UNAME_MACHINE}-mingw32 | |
812 | exit ;; | |
813 | i*:PW*:*) | |
814 | echo ${UNAME_MACHINE}-pc-pw32 | |
815 | exit ;; | |
816 | *:Interix*:*) | |
817 | case ${UNAME_MACHINE} in | |
818 | x86) | |
819 | echo i586-pc-interix${UNAME_RELEASE} | |
820 | exit ;; | |
821 | authenticamd | genuineintel | EM64T) | |
822 | echo x86_64-unknown-interix${UNAME_RELEASE} | |
823 | exit ;; | |
824 | IA64) | |
825 | echo ia64-unknown-interix${UNAME_RELEASE} | |
826 | exit ;; | |
827 | esac ;; | |
828 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | |
829 | echo i${UNAME_MACHINE}-pc-mks | |
830 | exit ;; | |
831 | 8664:Windows_NT:*) | |
832 | echo x86_64-pc-mks | |
833 | exit ;; | |
834 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | |
835 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
836 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | |
837 | # UNAME_MACHINE based on the output of uname instead of i386? | |
838 | echo i586-pc-interix | |
839 | exit ;; | |
840 | i*:UWIN*:*) | |
841 | echo ${UNAME_MACHINE}-pc-uwin | |
842 | exit ;; | |
843 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) | |
844 | echo x86_64-unknown-cygwin | |
845 | exit ;; | |
846 | p*:CYGWIN*:*) | |
847 | echo powerpcle-unknown-cygwin | |
848 | exit ;; | |
849 | prep*:SunOS:5.*:*) | |
850 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
851 | exit ;; | |
852 | *:GNU:*:*) | |
853 | # the GNU system | |
854 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
855 | exit ;; | |
856 | *:GNU/*:*:*) | |
857 | # other systems with GNU libc and userland | |
858 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | |
859 | exit ;; | |
860 | i*86:Minix:*:*) | |
861 | echo ${UNAME_MACHINE}-pc-minix | |
862 | exit ;; | |
863 | alpha:Linux:*:*) | |
864 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | |
865 | EV5) UNAME_MACHINE=alphaev5 ;; | |
866 | EV56) UNAME_MACHINE=alphaev56 ;; | |
867 | PCA56) UNAME_MACHINE=alphapca56 ;; | |
868 | PCA57) UNAME_MACHINE=alphapca56 ;; | |
869 | EV6) UNAME_MACHINE=alphaev6 ;; | |
870 | EV67) UNAME_MACHINE=alphaev67 ;; | |
871 | EV68*) UNAME_MACHINE=alphaev68 ;; | |
872 | esac | |
873 | objdump --private-headers /bin/sh | grep -q ld.so.1 | |
874 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | |
875 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | |
876 | exit ;; | |
877 | arm*:Linux:*:*) | |
878 | eval $set_cc_for_build | |
879 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | |
880 | | grep -q __ARM_EABI__ | |
881 | then | |
882 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
883 | else | |
884 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | |
885 | | grep -q __ARM_PCS_VFP | |
886 | then | |
887 | echo ${UNAME_MACHINE}-unknown-linux-gnueabi | |
888 | else | |
889 | echo ${UNAME_MACHINE}-unknown-linux-gnueabihf | |
890 | fi | |
891 | fi | |
892 | exit ;; | |
893 | avr32*:Linux:*:*) | |
894 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
895 | exit ;; | |
896 | cris:Linux:*:*) | |
897 | echo cris-axis-linux-gnu | |
898 | exit ;; | |
899 | crisv32:Linux:*:*) | |
900 | echo crisv32-axis-linux-gnu | |
901 | exit ;; | |
902 | frv:Linux:*:*) | |
903 | echo frv-unknown-linux-gnu | |
904 | exit ;; | |
905 | i*86:Linux:*:*) | |
906 | LIBC=gnu | |
907 | eval $set_cc_for_build | |
908 | sed 's/^ //' << EOF >$dummy.c | |
909 | #ifdef __dietlibc__ | |
910 | LIBC=dietlibc | |
911 | #endif | |
912 | EOF | |
913 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
914 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
915 | exit ;; | |
916 | ia64:Linux:*:*) | |
917 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
918 | exit ;; | |
919 | m32r*:Linux:*:*) | |
920 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
921 | exit ;; | |
922 | m68*:Linux:*:*) | |
923 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
924 | exit ;; | |
925 | mips:Linux:*:* | mips64:Linux:*:*) | |
926 | eval $set_cc_for_build | |
927 | sed 's/^ //' << EOF >$dummy.c | |
928 | #undef CPU | |
929 | #undef ${UNAME_MACHINE} | |
930 | #undef ${UNAME_MACHINE}el | |
931 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) | |
932 | CPU=${UNAME_MACHINE}el | |
933 | #else | |
934 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) | |
935 | CPU=${UNAME_MACHINE} | |
936 | #else | |
937 | CPU= | |
938 | #endif | |
939 | #endif | |
940 | EOF | |
941 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | |
942 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
943 | ;; | |
944 | or32:Linux:*:*) | |
945 | echo or32-unknown-linux-gnu | |
946 | exit ;; | |
947 | padre:Linux:*:*) | |
948 | echo sparc-unknown-linux-gnu | |
949 | exit ;; | |
950 | parisc64:Linux:*:* | hppa64:Linux:*:*) | |
951 | echo hppa64-unknown-linux-gnu | |
952 | exit ;; | |
953 | parisc:Linux:*:* | hppa:Linux:*:*) | |
954 | # Look for CPU level | |
955 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | |
956 | PA7*) echo hppa1.1-unknown-linux-gnu ;; | |
957 | PA8*) echo hppa2.0-unknown-linux-gnu ;; | |
958 | *) echo hppa-unknown-linux-gnu ;; | |
959 | esac | |
960 | exit ;; | |
961 | ppc64:Linux:*:*) | |
962 | echo powerpc64-unknown-linux-gnu | |
963 | exit ;; | |
964 | ppc:Linux:*:*) | |
965 | echo powerpc-unknown-linux-gnu | |
966 | exit ;; | |
967 | s390:Linux:*:* | s390x:Linux:*:*) | |
968 | echo ${UNAME_MACHINE}-ibm-linux | |
969 | exit ;; | |
970 | sh64*:Linux:*:*) | |
971 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
972 | exit ;; | |
973 | sh*:Linux:*:*) | |
974 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
975 | exit ;; | |
976 | sparc:Linux:*:* | sparc64:Linux:*:*) | |
977 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
978 | exit ;; | |
979 | tile*:Linux:*:*) | |
980 | echo ${UNAME_MACHINE}-tilera-linux-gnu | |
981 | exit ;; | |
982 | vax:Linux:*:*) | |
983 | echo ${UNAME_MACHINE}-dec-linux-gnu | |
984 | exit ;; | |
985 | x86_64:Linux:*:*) | |
986 | echo x86_64-unknown-linux-gnu | |
987 | exit ;; | |
988 | xtensa*:Linux:*:*) | |
989 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
990 | exit ;; | |
991 | i*86:DYNIX/ptx:4*:*) | |
992 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | |
993 | # earlier versions are messed up and put the nodename in both | |
994 | # sysname and nodename. | |
995 | echo i386-sequent-sysv4 | |
996 | exit ;; | |
997 | i*86:UNIX_SV:4.2MP:2.*) | |
998 | # Unixware is an offshoot of SVR4, but it has its own version | |
999 | # number series starting with 2... | |
1000 | # I am not positive that other SVR4 systems won't match this, | |
1001 | # I just have to hope. -- rms. | |
1002 | # Use sysv4.2uw... so that sysv4* matches it. | |
1003 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | |
1004 | exit ;; | |
1005 | i*86:OS/2:*:*) | |
1006 | # If we were able to find `uname', then EMX Unix compatibility | |
1007 | # is probably installed. | |
1008 | echo ${UNAME_MACHINE}-pc-os2-emx | |
1009 | exit ;; | |
1010 | i*86:XTS-300:*:STOP) | |
1011 | echo ${UNAME_MACHINE}-unknown-stop | |
1012 | exit ;; | |
1013 | i*86:atheos:*:*) | |
1014 | echo ${UNAME_MACHINE}-unknown-atheos | |
1015 | exit ;; | |
1016 | i*86:syllable:*:*) | |
1017 | echo ${UNAME_MACHINE}-pc-syllable | |
1018 | exit ;; | |
1019 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) | |
1020 | echo i386-unknown-lynxos${UNAME_RELEASE} | |
1021 | exit ;; | |
1022 | i*86:*DOS:*:*) | |
1023 | echo ${UNAME_MACHINE}-pc-msdosdjgpp | |
1024 | exit ;; | |
1025 | i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) | |
1026 | UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` | |
1027 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then | |
1028 | echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} | |
1029 | else | |
1030 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} | |
1031 | fi | |
1032 | exit ;; | |
1033 | i*86:*:5:[678]*) | |
1034 | # UnixWare 7.x, OpenUNIX and OpenServer 6. | |
1035 | case `/bin/uname -X | grep "^Machine"` in | |
1036 | *486*) UNAME_MACHINE=i486 ;; | |
1037 | *Pentium) UNAME_MACHINE=i586 ;; | |
1038 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; | |
1039 | esac | |
1040 | echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} | |
1041 | exit ;; | |
1042 | i*86:*:3.2:*) | |
1043 | if test -f /usr/options/cb.name; then | |
1044 | UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` | |
1045 | echo ${UNAME_MACHINE}-pc-isc$UNAME_REL | |
1046 | elif /bin/uname -X 2>/dev/null >/dev/null ; then | |
1047 | UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` | |
1048 | (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 | |
1049 | (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ | |
1050 | && UNAME_MACHINE=i586 | |
1051 | (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ | |
1052 | && UNAME_MACHINE=i686 | |
1053 | (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ | |
1054 | && UNAME_MACHINE=i686 | |
1055 | echo ${UNAME_MACHINE}-pc-sco$UNAME_REL | |
1056 | else | |
1057 | echo ${UNAME_MACHINE}-pc-sysv32 | |
1058 | fi | |
1059 | exit ;; | |
1060 | pc:*:*:*) | |
1061 | # Left here for compatibility: | |
1062 | # uname -m prints for DJGPP always 'pc', but it prints nothing about | |
1063 | # the processor, so we play safe by assuming i586. | |
1064 | # Note: whatever this is, it MUST be the same as what config.sub | |
1065 | # prints for the "djgpp" host, or else GDB configury will decide that | |
1066 | # this is a cross-build. | |
1067 | echo i586-pc-msdosdjgpp | |
1068 | exit ;; | |
1069 | Intel:Mach:3*:*) | |
1070 | echo i386-pc-mach3 | |
1071 | exit ;; | |
1072 | paragon:*:*:*) | |
1073 | echo i860-intel-osf1 | |
1074 | exit ;; | |
1075 | i860:*:4.*:*) # i860-SVR4 | |
1076 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then | |
1077 | echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 | |
1078 | else # Add other i860-SVR4 vendors below as they are discovered. | |
1079 | echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 | |
1080 | fi | |
1081 | exit ;; | |
1082 | mini*:CTIX:SYS*5:*) | |
1083 | # "miniframe" | |
1084 | echo m68010-convergent-sysv | |
1085 | exit ;; | |
1086 | mc68k:UNIX:SYSTEM5:3.51m) | |
1087 | echo m68k-convergent-sysv | |
1088 | exit ;; | |
1089 | M680?0:D-NIX:5.3:*) | |
1090 | echo m68k-diab-dnix | |
1091 | exit ;; | |
1092 | M68*:*:R3V[5678]*:*) | |
1093 | test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; | |
1094 | 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) | |
1095 | OS_REL='' | |
1096 | test -r /etc/.relid \ | |
1097 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | |
1098 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
1099 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
1100 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | |
1101 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
1102 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) | |
1103 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
1104 | && { echo i486-ncr-sysv4; exit; } ;; | |
1105 | NCR*:*:4.2:* | MPRAS*:*:4.2:*) | |
1106 | OS_REL='.3' | |
1107 | test -r /etc/.relid \ | |
1108 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` | |
1109 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ | |
1110 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
1111 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ | |
1112 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } | |
1113 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ | |
1114 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
1115 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) | |
1116 | echo m68k-unknown-lynxos${UNAME_RELEASE} | |
1117 | exit ;; | |
1118 | mc68030:UNIX_System_V:4.*:*) | |
1119 | echo m68k-atari-sysv4 | |
1120 | exit ;; | |
1121 | TSUNAMI:LynxOS:2.*:*) | |
1122 | echo sparc-unknown-lynxos${UNAME_RELEASE} | |
1123 | exit ;; | |
1124 | rs6000:LynxOS:2.*:*) | |
1125 | echo rs6000-unknown-lynxos${UNAME_RELEASE} | |
1126 | exit ;; | |
1127 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) | |
1128 | echo powerpc-unknown-lynxos${UNAME_RELEASE} | |
1129 | exit ;; | |
1130 | SM[BE]S:UNIX_SV:*:*) | |
1131 | echo mips-dde-sysv${UNAME_RELEASE} | |
1132 | exit ;; | |
1133 | RM*:ReliantUNIX-*:*:*) | |
1134 | echo mips-sni-sysv4 | |
1135 | exit ;; | |
1136 | RM*:SINIX-*:*:*) | |
1137 | echo mips-sni-sysv4 | |
1138 | exit ;; | |
1139 | *:SINIX-*:*:*) | |
1140 | if uname -p 2>/dev/null >/dev/null ; then | |
1141 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
1142 | echo ${UNAME_MACHINE}-sni-sysv4 | |
1143 | else | |
1144 | echo ns32k-sni-sysv | |
1145 | fi | |
1146 | exit ;; | |
1147 | PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort | |
1148 | # says <Richard.M.Bartel@ccMail.Census.GOV> | |
1149 | echo i586-unisys-sysv4 | |
1150 | exit ;; | |
1151 | *:UNIX_System_V:4*:FTX*) | |
1152 | # From Gerald Hewes <hewes@openmarket.com>. | |
1153 | # How about differentiating between stratus architectures? -djm | |
1154 | echo hppa1.1-stratus-sysv4 | |
1155 | exit ;; | |
1156 | *:*:*:FTX*) | |
1157 | # From seanf@swdc.stratus.com. | |
1158 | echo i860-stratus-sysv4 | |
1159 | exit ;; | |
1160 | i*86:VOS:*:*) | |
1161 | # From Paul.Green@stratus.com. | |
1162 | echo ${UNAME_MACHINE}-stratus-vos | |
1163 | exit ;; | |
1164 | *:VOS:*:*) | |
1165 | # From Paul.Green@stratus.com. | |
1166 | echo hppa1.1-stratus-vos | |
1167 | exit ;; | |
1168 | mc68*:A/UX:*:*) | |
1169 | echo m68k-apple-aux${UNAME_RELEASE} | |
1170 | exit ;; | |
1171 | news*:NEWS-OS:6*:*) | |
1172 | echo mips-sony-newsos6 | |
1173 | exit ;; | |
1174 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) | |
1175 | if [ -d /usr/nec ]; then | |
1176 | echo mips-nec-sysv${UNAME_RELEASE} | |
1177 | else | |
1178 | echo mips-unknown-sysv${UNAME_RELEASE} | |
1179 | fi | |
1180 | exit ;; | |
1181 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. | |
1182 | echo powerpc-be-beos | |
1183 | exit ;; | |
1184 | BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. | |
1185 | echo powerpc-apple-beos | |
1186 | exit ;; | |
1187 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. | |
1188 | echo i586-pc-beos | |
1189 | exit ;; | |
1190 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. | |
1191 | echo i586-pc-haiku | |
1192 | exit ;; | |
1193 | SX-4:SUPER-UX:*:*) | |
1194 | echo sx4-nec-superux${UNAME_RELEASE} | |
1195 | exit ;; | |
1196 | SX-5:SUPER-UX:*:*) | |
1197 | echo sx5-nec-superux${UNAME_RELEASE} | |
1198 | exit ;; | |
1199 | SX-6:SUPER-UX:*:*) | |
1200 | echo sx6-nec-superux${UNAME_RELEASE} | |
1201 | exit ;; | |
1202 | SX-7:SUPER-UX:*:*) | |
1203 | echo sx7-nec-superux${UNAME_RELEASE} | |
1204 | exit ;; | |
1205 | SX-8:SUPER-UX:*:*) | |
1206 | echo sx8-nec-superux${UNAME_RELEASE} | |
1207 | exit ;; | |
1208 | SX-8R:SUPER-UX:*:*) | |
1209 | echo sx8r-nec-superux${UNAME_RELEASE} | |
1210 | exit ;; | |
1211 | Power*:Rhapsody:*:*) | |
1212 | echo powerpc-apple-rhapsody${UNAME_RELEASE} | |
1213 | exit ;; | |
1214 | *:Rhapsody:*:*) | |
1215 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | |
1216 | exit ;; | |
1217 | *:Darwin:*:*) | |
1218 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | |
1219 | case $UNAME_PROCESSOR in | |
1220 | i386) | |
1221 | eval $set_cc_for_build | |
1222 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
1223 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
1224 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1225 | grep IS_64BIT_ARCH >/dev/null | |
1226 | then | |
1227 | UNAME_PROCESSOR="x86_64" | |
1228 | fi | |
1229 | fi ;; | |
1230 | unknown) UNAME_PROCESSOR=powerpc ;; | |
1231 | esac | |
1232 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | |
1233 | exit ;; | |
1234 | *:procnto*:*:* | *:QNX:[0123456789]*:*) | |
1235 | UNAME_PROCESSOR=`uname -p` | |
1236 | if test "$UNAME_PROCESSOR" = "x86"; then | |
1237 | UNAME_PROCESSOR=i386 | |
1238 | UNAME_MACHINE=pc | |
1239 | fi | |
1240 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | |
1241 | exit ;; | |
1242 | *:QNX:*:4*) | |
1243 | echo i386-pc-qnx | |
1244 | exit ;; | |
1245 | NEO-?:NONSTOP_KERNEL:*:*) | |
1246 | echo neo-tandem-nsk${UNAME_RELEASE} | |
1247 | exit ;; | |
1248 | NSE-?:NONSTOP_KERNEL:*:*) | |
1249 | echo nse-tandem-nsk${UNAME_RELEASE} | |
1250 | exit ;; | |
1251 | NSR-?:NONSTOP_KERNEL:*:*) | |
1252 | echo nsr-tandem-nsk${UNAME_RELEASE} | |
1253 | exit ;; | |
1254 | *:NonStop-UX:*:*) | |
1255 | echo mips-compaq-nonstopux | |
1256 | exit ;; | |
1257 | BS2000:POSIX*:*:*) | |
1258 | echo bs2000-siemens-sysv | |
1259 | exit ;; | |
1260 | DS/*:UNIX_System_V:*:*) | |
1261 | echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} | |
1262 | exit ;; | |
1263 | *:Plan9:*:*) | |
1264 | # "uname -m" is not consistent, so use $cputype instead. 386 | |
1265 | # is converted to i386 for consistency with other x86 | |
1266 | # operating systems. | |
1267 | if test "$cputype" = "386"; then | |
1268 | UNAME_MACHINE=i386 | |
1269 | else | |
1270 | UNAME_MACHINE="$cputype" | |
1271 | fi | |
1272 | echo ${UNAME_MACHINE}-unknown-plan9 | |
1273 | exit ;; | |
1274 | *:TOPS-10:*:*) | |
1275 | echo pdp10-unknown-tops10 | |
1276 | exit ;; | |
1277 | *:TENEX:*:*) | |
1278 | echo pdp10-unknown-tenex | |
1279 | exit ;; | |
1280 | KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) | |
1281 | echo pdp10-dec-tops20 | |
1282 | exit ;; | |
1283 | XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) | |
1284 | echo pdp10-xkl-tops20 | |
1285 | exit ;; | |
1286 | *:TOPS-20:*:*) | |
1287 | echo pdp10-unknown-tops20 | |
1288 | exit ;; | |
1289 | *:ITS:*:*) | |
1290 | echo pdp10-unknown-its | |
1291 | exit ;; | |
1292 | SEI:*:*:SEIUX) | |
1293 | echo mips-sei-seiux${UNAME_RELEASE} | |
1294 | exit ;; | |
1295 | *:DragonFly:*:*) | |
1296 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | |
1297 | exit ;; | |
1298 | *:*VMS:*:*) | |
1299 | UNAME_MACHINE=`(uname -p) 2>/dev/null` | |
1300 | case "${UNAME_MACHINE}" in | |
1301 | A*) echo alpha-dec-vms ; exit ;; | |
1302 | I*) echo ia64-dec-vms ; exit ;; | |
1303 | V*) echo vax-dec-vms ; exit ;; | |
1304 | esac ;; | |
1305 | *:XENIX:*:SysV) | |
1306 | echo i386-pc-xenix | |
1307 | exit ;; | |
1308 | i*86:skyos:*:*) | |
1309 | echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' | |
1310 | exit ;; | |
1311 | i*86:rdos:*:*) | |
1312 | echo ${UNAME_MACHINE}-pc-rdos | |
1313 | exit ;; | |
1314 | i*86:AROS:*:*) | |
1315 | echo ${UNAME_MACHINE}-pc-aros | |
1316 | exit ;; | |
1317 | esac | |
1318 | ||
1319 | #echo '(No uname command or uname output not recognized.)' 1>&2 | |
1320 | #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | |
1321 | ||
1322 | eval $set_cc_for_build | |
1323 | cat >$dummy.c <<EOF | |
1324 | #ifdef _SEQUENT_ | |
1325 | # include <sys/types.h> | |
1326 | # include <sys/utsname.h> | |
1327 | #endif | |
1328 | main () | |
1329 | { | |
1330 | #if defined (sony) | |
1331 | #if defined (MIPSEB) | |
1332 | /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, | |
1333 | I don't know.... */ | |
1334 | printf ("mips-sony-bsd\n"); exit (0); | |
1335 | #else | |
1336 | #include <sys/param.h> | |
1337 | printf ("m68k-sony-newsos%s\n", | |
1338 | #ifdef NEWSOS4 | |
1339 | "4" | |
1340 | #else | |
1341 | "" | |
1342 | #endif | |
1343 | ); exit (0); | |
1344 | #endif | |
1345 | #endif | |
1346 | ||
1347 | #if defined (__arm) && defined (__acorn) && defined (__unix) | |
1348 | printf ("arm-acorn-riscix\n"); exit (0); | |
1349 | #endif | |
1350 | ||
1351 | #if defined (hp300) && !defined (hpux) | |
1352 | printf ("m68k-hp-bsd\n"); exit (0); | |
1353 | #endif | |
1354 | ||
1355 | #if defined (NeXT) | |
1356 | #if !defined (__ARCHITECTURE__) | |
1357 | #define __ARCHITECTURE__ "m68k" | |
1358 | #endi |