Codebase list dbus-sharp-glib / bd3cf33
Merge tag 'upstream/0.6.0' Upstream version 0.6.0 Conflicts: dbus-sharp-glib-2.0.pc.in Jo Shields 10 years ago
15 changed file(s) with 1347 addition(s) and 4414 deletion(s). Raw diff Collapse all Expand all
00 Installation Instructions
11 *************************
22
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
4 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3 Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
4 Inc.
55
66 Copying and distribution of this file, with or without modification,
77 are permitted in any medium without royalty provided the copyright
225225
226226 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227227
228 HP-UX `make' updates targets which have the same time stamps as
229 their prerequisites, which makes it generally unusable when shipped
230 generated files such as `configure' are involved. Use GNU `make'
231 instead.
232
228233 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
229234 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
230235 a workaround. If GNU CC is not installed, it is therefore recommended
303308 overridden in the site shell script).
304309
305310 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
306 an Autoconf bug. Until the bug is fixed you can use this workaround:
307
308 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
311 an Autoconf limitation. Until the limitation is lifted, you can use
312 this workaround:
313
314 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
309315
310316 `configure' Invocation
311317 ======================
361367
362368 `configure' also accepts some other, not widely useful, options. Run
363369 `configure --help' for more details.
364
00 SUBDIRS = src examples
11
22 pkgconfigdir = $(libdir)/pkgconfig
3 pkgconfig_DATA = dbus-sharp-glib-1.0.pc
3 pkgconfig_DATA = dbus-sharp-glib-2.0.pc
44
55 EXTRA_DIST = \
6 dbus-sharp-glib-1.0.pc.in \
6 dbus-sharp-glib-2.0.pc.in \
77 dbus-sharp.snk
88
99 DISTCLEANFILES = \
10 dbus-sharp-glib-1.0.pc
10 dbus-sharp-glib-2.0.pc
1111
1212 MAINTAINERCLEANFILES = \
1313 INSTALL \
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.13.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
30 case $$MAKEFLAGS in \
31 *\\[\ \ ]*) \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35 esac; \
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
1862 pkgdatadir = $(datadir)/@PACKAGE@
1963 pkgincludedir = $(includedir)/@PACKAGE@
2064 pkglibdir = $(libdir)/@PACKAGE@
3175 NORMAL_UNINSTALL = :
3276 PRE_UNINSTALL = :
3377 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 target_triplet = @target@
3778 subdir = .
38 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
39 $(srcdir)/Makefile.in $(srcdir)/dbus-sharp-glib-1.0.pc.in \
40 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
41 config.guess config.sub install-sh missing
79 DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \
80 $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
81 $(top_srcdir)/configure $(am__configure_deps) \
82 $(srcdir)/dbus-sharp-glib-2.0.pc.in COPYING install-sh missing
4283 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4384 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4485 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4687 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
4788 configure.lineno config.status.lineno
4889 mkinstalldirs = $(install_sh) -d
49 CONFIG_CLEAN_FILES = dbus-sharp-glib-1.0.pc
90 CONFIG_CLEAN_FILES = dbus-sharp-glib-2.0.pc
5091 CONFIG_CLEAN_VPATH_FILES =
92 AM_V_P = $(am__v_P_@AM_V@)
93 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
94 am__v_P_0 = false
95 am__v_P_1 = :
96 AM_V_GEN = $(am__v_GEN_@AM_V@)
97 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
98 am__v_GEN_0 = @echo " GEN " $@;
99 am__v_GEN_1 =
100 AM_V_at = $(am__v_at_@AM_V@)
101 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
102 am__v_at_0 = @
103 am__v_at_1 =
51104 SOURCES =
52105 DIST_SOURCES =
53 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
54 html-recursive info-recursive install-data-recursive \
55 install-dvi-recursive install-exec-recursive \
56 install-html-recursive install-info-recursive \
57 install-pdf-recursive install-ps-recursive install-recursive \
58 installcheck-recursive installdirs-recursive pdf-recursive \
59 ps-recursive uninstall-recursive
106 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
107 ctags-recursive dvi-recursive html-recursive info-recursive \
108 install-data-recursive install-dvi-recursive \
109 install-exec-recursive install-html-recursive \
110 install-info-recursive install-pdf-recursive \
111 install-ps-recursive install-recursive installcheck-recursive \
112 installdirs-recursive pdf-recursive ps-recursive \
113 tags-recursive uninstall-recursive
114 am__can_run_installinfo = \
115 case $$AM_UPDATE_INFO_DIR in \
116 n|no|NO) false;; \
117 *) (install-info --version) >/dev/null 2>&1;; \
118 esac
60119 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
61120 am__vpath_adj = case $$p in \
62121 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
78137 am__base_list = \
79138 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
80139 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
140 am__uninstall_files_from_dir = { \
141 test -z "$$files" \
142 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
143 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
144 $(am__cd) "$$dir" && rm -f $$files; }; \
145 }
81146 am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
82147 DATA = $(pkgconfig_DATA)
83148 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
84149 distclean-recursive maintainer-clean-recursive
85 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
86 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
87 distdir dist dist-all distcheck
150 am__recursive_targets = \
151 $(RECURSIVE_TARGETS) \
152 $(RECURSIVE_CLEAN_TARGETS) \
153 $(am__extra_recursive_targets)
154 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
155 cscope distdir dist dist-all distcheck
156 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
157 # Read a list of newline-separated strings from the standard input,
158 # and print each of them once, without duplicates. Input order is
159 # *not* preserved.
160 am__uniquify_input = $(AWK) '\
161 BEGIN { nonempty = 0; } \
162 { items[$$0] = 1; nonempty = 1; } \
163 END { if (nonempty) { for (i in items) print i; }; } \
164 '
165 # Make sure the list of sources is unique. This is necessary because,
166 # e.g., the same source file might be shared among _SOURCES variables
167 # for different programs/libraries.
168 am__define_uniq_tagged_files = \
169 list='$(am__tagged_files)'; \
170 unique=`for i in $$list; do \
171 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
172 done | $(am__uniquify_input)`
88173 ETAGS = etags
89174 CTAGS = ctags
175 CSCOPE = cscope
90176 DIST_SUBDIRS = $(SUBDIRS)
91177 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
92178 distdir = $(PACKAGE)-$(VERSION)
93179 top_distdir = $(distdir)
94180 am__remove_distdir = \
95 { test ! -d "$(distdir)" \
96 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
97 && rm -fr "$(distdir)"; }; }
181 if test -d "$(distdir)"; then \
182 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
183 && rm -rf "$(distdir)" \
184 || { sleep 5 && rm -rf "$(distdir)"; }; \
185 else :; fi
186 am__post_remove_distdir = $(am__remove_distdir)
98187 am__relativize = \
99188 dir0=`pwd`; \
100189 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
122211 reldir="$$dir2"
123212 DIST_ARCHIVES = $(distdir).tar.gz
124213 GZIP_ENV = --best
214 DIST_TARGETS = dist-gzip
125215 distuninstallcheck_listfiles = find . -type f -print
216 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
217 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
126218 distcleancheck_listfiles = find . -type f -print
127219 ACLOCAL = @ACLOCAL@
128220 AMTAR = @AMTAR@
221 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
129222 API_VERSION = @API_VERSION@
130223 AUTOCONF = @AUTOCONF@
131224 AUTOHEADER = @AUTOHEADER@
176269 am__tar = @am__tar@
177270 am__untar = @am__untar@
178271 bindir = @bindir@
179 build = @build@
180272 build_alias = @build_alias@
181 build_cpu = @build_cpu@
182 build_os = @build_os@
183 build_vendor = @build_vendor@
184273 builddir = @builddir@
185274 datadir = @datadir@
186275 datarootdir = @datarootdir@
187276 docdir = @docdir@
188277 dvidir = @dvidir@
189278 exec_prefix = @exec_prefix@
190 host = @host@
191279 host_alias = @host_alias@
192 host_cpu = @host_cpu@
193 host_os = @host_os@
194 host_vendor = @host_vendor@
195280 htmldir = @htmldir@
196281 includedir = @includedir@
197282 infodir = @infodir@
211296 sharedstatedir = @sharedstatedir@
212297 srcdir = @srcdir@
213298 sysconfdir = @sysconfdir@
214 target = @target@
215299 target_alias = @target_alias@
216 target_cpu = @target_cpu@
217 target_os = @target_os@
218 target_vendor = @target_vendor@
219300 top_build_prefix = @top_build_prefix@
220301 top_builddir = @top_builddir@
221302 top_srcdir = @top_srcdir@
222303 SUBDIRS = src examples
223304 pkgconfigdir = $(libdir)/pkgconfig
224 pkgconfig_DATA = dbus-sharp-glib-1.0.pc
305 pkgconfig_DATA = dbus-sharp-glib-2.0.pc
225306 EXTRA_DIST = \
226 dbus-sharp-glib-1.0.pc.in \
307 dbus-sharp-glib-2.0.pc.in \
227308 dbus-sharp.snk
228309
229310 DISTCLEANFILES = \
230 dbus-sharp-glib-1.0.pc
311 dbus-sharp-glib-2.0.pc
231312
232313 MAINTAINERCLEANFILES = \
233314 INSTALL \
242323 all: all-recursive
243324
244325 .SUFFIXES:
245 am--refresh:
326 am--refresh: Makefile
246327 @:
247328 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
248329 @for dep in $?; do \
276357 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
277358 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
278359 $(am__aclocal_m4_deps):
279 dbus-sharp-glib-1.0.pc: $(top_builddir)/config.status $(srcdir)/dbus-sharp-glib-1.0.pc.in
360 dbus-sharp-glib-2.0.pc: $(top_builddir)/config.status $(srcdir)/dbus-sharp-glib-2.0.pc.in
280361 cd $(top_builddir) && $(SHELL) ./config.status $@
281362 install-pkgconfigDATA: $(pkgconfig_DATA)
282363 @$(NORMAL_INSTALL)
283 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
284364 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
365 if test -n "$$list"; then \
366 echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
367 $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
368 fi; \
285369 for p in $$list; do \
286370 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
287371 echo "$$d$$p"; \
295379 @$(NORMAL_UNINSTALL)
296380 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
297381 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
298 test -n "$$files" || exit 0; \
299 echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
300 cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
382 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
301383
302384 # This directory's subdirectories are mostly independent; you can cd
303 # into them and run `make' without going through this Makefile.
304 # To change the values of `make' variables: instead of editing Makefiles,
305 # (1) if the variable is set in `config.status', edit `config.status'
306 # (which will cause the Makefiles to be regenerated when you run `make');
307 # (2) otherwise, pass the desired values on the `make' command line.
308 $(RECURSIVE_TARGETS):
309 @fail= failcom='exit 1'; \
310 for f in x $$MAKEFLAGS; do \
311 case $$f in \
312 *=* | --[!k]*);; \
313 *k*) failcom='fail=yes';; \
314 esac; \
315 done; \
385 # into them and run 'make' without going through this Makefile.
386 # To change the values of 'make' variables: instead of editing Makefiles,
387 # (1) if the variable is set in 'config.status', edit 'config.status'
388 # (which will cause the Makefiles to be regenerated when you run 'make');
389 # (2) otherwise, pass the desired values on the 'make' command line.
390 $(am__recursive_targets):
391 @fail=; \
392 if $(am__make_keepgoing); then \
393 failcom='fail=yes'; \
394 else \
395 failcom='exit 1'; \
396 fi; \
316397 dot_seen=no; \
317398 target=`echo $@ | sed s/-recursive//`; \
318 list='$(SUBDIRS)'; for subdir in $$list; do \
399 case "$@" in \
400 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
401 *) list='$(SUBDIRS)' ;; \
402 esac; \
403 for subdir in $$list; do \
319404 echo "Making $$target in $$subdir"; \
320405 if test "$$subdir" = "."; then \
321406 dot_seen=yes; \
330415 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
331416 fi; test -z "$$fail"
332417
333 $(RECURSIVE_CLEAN_TARGETS):
334 @fail= failcom='exit 1'; \
335 for f in x $$MAKEFLAGS; do \
336 case $$f in \
337 *=* | --[!k]*);; \
338 *k*) failcom='fail=yes';; \
339 esac; \
340 done; \
341 dot_seen=no; \
342 case "$@" in \
343 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
344 *) list='$(SUBDIRS)' ;; \
345 esac; \
346 rev=''; for subdir in $$list; do \
347 if test "$$subdir" = "."; then :; else \
348 rev="$$subdir $$rev"; \
349 fi; \
350 done; \
351 rev="$$rev ."; \
352 target=`echo $@ | sed s/-recursive//`; \
353 for subdir in $$rev; do \
354 echo "Making $$target in $$subdir"; \
355 if test "$$subdir" = "."; then \
356 local_target="$$target-am"; \
357 else \
358 local_target="$$target"; \
359 fi; \
360 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
361 || eval $$failcom; \
362 done && test -z "$$fail"
363 tags-recursive:
364 list='$(SUBDIRS)'; for subdir in $$list; do \
365 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
366 done
367 ctags-recursive:
368 list='$(SUBDIRS)'; for subdir in $$list; do \
369 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
370 done
371
372 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
373 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
374 unique=`for i in $$list; do \
375 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
376 done | \
377 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
378 END { if (nonempty) { for (i in files) print i; }; }'`; \
379 mkid -fID $$unique
380 tags: TAGS
381
382 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
383 $(TAGS_FILES) $(LISP)
418 ID: $(am__tagged_files)
419 $(am__define_uniq_tagged_files); mkid -fID $$unique
420 tags: tags-recursive
421 TAGS: tags
422
423 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
384424 set x; \
385425 here=`pwd`; \
386426 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
396436 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
397437 fi; \
398438 done; \
399 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
400 unique=`for i in $$list; do \
401 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
402 done | \
403 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
404 END { if (nonempty) { for (i in files) print i; }; }'`; \
439 $(am__define_uniq_tagged_files); \
405440 shift; \
406441 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
407442 test -n "$$unique" || unique=$$empty_fix; \
413448 $$unique; \
414449 fi; \
415450 fi
416 ctags: CTAGS
417 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
418 $(TAGS_FILES) $(LISP)
419 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
420 unique=`for i in $$list; do \
421 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
422 done | \
423 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
424 END { if (nonempty) { for (i in files) print i; }; }'`; \
451 ctags: ctags-recursive
452
453 CTAGS: ctags
454 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
455 $(am__define_uniq_tagged_files); \
425456 test -z "$(CTAGS_ARGS)$$unique" \
426457 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
427458 $$unique
430461 here=`$(am__cd) $(top_builddir) && pwd` \
431462 && $(am__cd) $(top_srcdir) \
432463 && gtags -i $(GTAGS_ARGS) "$$here"
464 cscope: cscope.files
465 test ! -s cscope.files \
466 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
467 clean-cscope:
468 -rm -f cscope.files
469 cscope.files: clean-cscope cscopelist
470 cscopelist: cscopelist-recursive
471
472 cscopelist-am: $(am__tagged_files)
473 list='$(am__tagged_files)'; \
474 case "$(srcdir)" in \
475 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
476 *) sdir=$(subdir)/$(srcdir) ;; \
477 esac; \
478 for i in $$list; do \
479 if test -f "$$i"; then \
480 echo "$(subdir)/$$i"; \
481 else \
482 echo "$$sdir/$$i"; \
483 fi; \
484 done >> $(top_builddir)/cscope.files
433485
434486 distclean-tags:
435487 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
488 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
436489
437490 distdir: $(DISTFILES)
438491 $(am__remove_distdir)
468521 done
469522 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
470523 if test "$$subdir" = .; then :; else \
471 test -d "$(distdir)/$$subdir" \
472 || $(MKDIR_P) "$(distdir)/$$subdir" \
473 || exit 1; \
474 fi; \
475 done
476 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
477 if test "$$subdir" = .; then :; else \
524 $(am__make_dryrun) \
525 || test -d "$(distdir)/$$subdir" \
526 || $(MKDIR_P) "$(distdir)/$$subdir" \
527 || exit 1; \
478528 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
479529 $(am__relativize); \
480530 new_distdir=$$reldir; \
503553 || chmod -R a+r "$(distdir)"
504554 dist-gzip: distdir
505555 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
506 $(am__remove_distdir)
556 $(am__post_remove_distdir)
507557
508558 dist-bzip2: distdir
509 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
510 $(am__remove_distdir)
511
512 dist-lzma: distdir
513 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
514 $(am__remove_distdir)
559 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
560 $(am__post_remove_distdir)
561
562 dist-lzip: distdir
563 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
564 $(am__post_remove_distdir)
515565
516566 dist-xz: distdir
517 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
518 $(am__remove_distdir)
567 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
568 $(am__post_remove_distdir)
519569
520570 dist-tarZ: distdir
521571 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
522 $(am__remove_distdir)
572 $(am__post_remove_distdir)
523573
524574 dist-shar: distdir
525575 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
526 $(am__remove_distdir)
576 $(am__post_remove_distdir)
527577
528578 dist-zip: distdir
529579 -rm -f $(distdir).zip
530580 zip -rq $(distdir).zip $(distdir)
531 $(am__remove_distdir)
532
533 dist dist-all: distdir
534 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
535 $(am__remove_distdir)
581 $(am__post_remove_distdir)
582
583 dist dist-all:
584 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
585 $(am__post_remove_distdir)
536586
537587 # This target untars the dist file and tries a VPATH configuration. Then
538588 # it guarantees that the distribution is self-contained by making another
543593 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
544594 *.tar.bz2*) \
545595 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
546 *.tar.lzma*) \
547 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
596 *.tar.lz*) \
597 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
548598 *.tar.xz*) \
549599 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
550600 *.tar.Z*) \
554604 *.zip*) \
555605 unzip $(distdir).zip ;;\
556606 esac
557 chmod -R a-w $(distdir); chmod a+w $(distdir)
558 mkdir $(distdir)/_build
559 mkdir $(distdir)/_inst
607 chmod -R a-w $(distdir)
608 chmod u+w $(distdir)
609 mkdir $(distdir)/_build $(distdir)/_inst
560610 chmod a-w $(distdir)
561611 test -d $(distdir)/_build || exit 0; \
562612 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
564614 && am__cwd=`pwd` \
565615 && $(am__cd) $(distdir)/_build \
566616 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
617 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
567618 $(DISTCHECK_CONFIGURE_FLAGS) \
568619 && $(MAKE) $(AM_MAKEFLAGS) \
569620 && $(MAKE) $(AM_MAKEFLAGS) dvi \
587638 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
588639 && cd "$$am__cwd" \
589640 || exit 1
590 $(am__remove_distdir)
641 $(am__post_remove_distdir)
591642 @(echo "$(distdir) archives ready for distribution: "; \
592643 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
593644 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
594645 distuninstallcheck:
595 @$(am__cd) '$(distuninstallcheck_dir)' \
596 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
646 @test -n '$(distuninstallcheck_dir)' || { \
647 echo 'ERROR: trying to run $@ with an empty' \
648 '$$(distuninstallcheck_dir)' >&2; \
649 exit 1; \
650 }; \
651 $(am__cd) '$(distuninstallcheck_dir)' || { \
652 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
653 exit 1; \
654 }; \
655 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
597656 || { echo "ERROR: files left after uninstall:" ; \
598657 if test -n "$(DESTDIR)"; then \
599658 echo " (check DESTDIR support)"; \
627686
628687 installcheck: installcheck-recursive
629688 install-strip:
630 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
631 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
632 `test -z '$(STRIP)' || \
633 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
689 if test -z '$(STRIP)'; then \
690 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
691 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
692 install; \
693 else \
694 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
695 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
696 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
697 fi
634698 mostlyclean-generic:
635699
636700 clean-generic:
713777
714778 uninstall-am: uninstall-pkgconfigDATA
715779
716 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
717 install-am install-strip tags-recursive
718
719 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
720 all all-am am--refresh check check-am clean clean-generic \
721 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
722 dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \
723 distclean distclean-generic distclean-tags distcleancheck \
724 distdir distuninstallcheck dvi dvi-am html html-am info \
725 info-am install install-am install-data install-data-am \
726 install-dvi install-dvi-am install-exec install-exec-am \
727 install-html install-html-am install-info install-info-am \
728 install-man install-pdf install-pdf-am install-pkgconfigDATA \
729 install-ps install-ps-am install-strip installcheck \
730 installcheck-am installdirs installdirs-am maintainer-clean \
731 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
732 pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
733 uninstall-pkgconfigDATA
780 .MAKE: $(am__recursive_targets) install-am install-strip
781
782 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
783 am--refresh check check-am clean clean-cscope clean-generic \
784 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
785 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
786 distcheck distclean distclean-generic distclean-tags \
787 distcleancheck distdir distuninstallcheck dvi dvi-am html \
788 html-am info info-am install install-am install-data \
789 install-data-am install-dvi install-dvi-am install-exec \
790 install-exec-am install-html install-html-am install-info \
791 install-info-am install-man install-pdf install-pdf-am \
792 install-pkgconfigDATA install-ps install-ps-am install-strip \
793 installcheck installcheck-am installdirs installdirs-am \
794 maintainer-clean maintainer-clean-generic mostlyclean \
795 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
796 uninstall-am uninstall-pkgconfigDATA
734797
735798
736799 # Tell versions [3.59,3.63) of GNU make to not export all variables.
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.13.2 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
3
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
1212
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1314 m4_ifndef([AC_AUTOCONF_VERSION],
1415 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
16 [m4_warning([this file was generated for autoconf 2.67.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
1718 You have another version of autoconf. It may work, but is not guaranteed to.
1819 If you have problems, you may need to regenerate the build system entirely.
19 To do so, use the procedure documented by the package, typically `autoreconf'.])])
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2021
2122 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
2223 # serial 1 (pkg-config-0.24)
4647 # ----------------------------------
4748 AC_DEFUN([PKG_PROG_PKG_CONFIG],
4849 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
49 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
50 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
51 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
5052 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
5153 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
5254 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
9294 pkg_cv_[]$1="$$1"
9395 elif test -n "$PKG_CONFIG"; then
9496 PKG_CHECK_EXISTS([$3],
95 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
97 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
98 test "x$?" != "x0" && pkg_failed=yes ],
9699 [pkg_failed=yes])
97100 else
98101 pkg_failed=untried
140143 AC_MSG_RESULT([no])
141144 _PKG_SHORT_ERRORS_SUPPORTED
142145 if test $_pkg_short_errors_supported = yes; then
143 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
146 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
144147 else
145 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
148 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
146149 fi
147150 # Put the nasty error message in config.log where it belongs
148151 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
166169
167170 _PKG_TEXT
168171
169 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
172 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
170173 ])
171174 else
172175 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
176179 fi[]dnl
177180 ])# PKG_CHECK_MODULES
178181
179 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
182
183 # PKG_INSTALLDIR(DIRECTORY)
184 # -------------------------
185 # Substitutes the variable pkgconfigdir as the location where a module
186 # should install pkg-config .pc files. By default the directory is
187 # $libdir/pkgconfig, but the default can be changed by passing
188 # DIRECTORY. The user can override through the --with-pkgconfigdir
189 # parameter.
190 AC_DEFUN([PKG_INSTALLDIR],
191 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
192 m4_pushdef([pkg_description],
193 [pkg-config installation directory @<:@]pkg_default[@:>@])
194 AC_ARG_WITH([pkgconfigdir],
195 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
196 [with_pkgconfigdir=]pkg_default)
197 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
198 m4_popdef([pkg_default])
199 m4_popdef([pkg_description])
200 ]) dnl PKG_INSTALLDIR
201
202
203 # PKG_NOARCH_INSTALLDIR(DIRECTORY)
204 # -------------------------
205 # Substitutes the variable noarch_pkgconfigdir as the location where a
206 # module should install arch-independent pkg-config .pc files. By
207 # default the directory is $datadir/pkgconfig, but the default can be
208 # changed by passing DIRECTORY. The user can override through the
209 # --with-noarch-pkgconfigdir parameter.
210 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
211 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
212 m4_pushdef([pkg_description],
213 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
214 AC_ARG_WITH([noarch-pkgconfigdir],
215 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
216 [with_noarch_pkgconfigdir=]pkg_default)
217 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
218 m4_popdef([pkg_default])
219 m4_popdef([pkg_description])
220 ]) dnl PKG_NOARCH_INSTALLDIR
221
222
223 # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
224 # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
225 # -------------------------------------------
226 # Retrieves the value of the pkg-config variable for the given module.
227 AC_DEFUN([PKG_CHECK_VAR],
228 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
229 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
230
231 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
232 AS_VAR_COPY([$1], [pkg_cv_][$1])
233
234 AS_VAR_IF([$1], [""], [$5], [$4])dnl
235 ])# PKG_CHECK_VAR
236
237 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
180238 #
181239 # This file is free software; the Free Software Foundation
182240 # gives unlimited permission to copy and/or distribute it,
188246 # generated from the m4 files accompanying Automake X.Y.
189247 # (This private macro should not be called outside this file.)
190248 AC_DEFUN([AM_AUTOMAKE_VERSION],
191 [am__api_version='1.11'
249 [am__api_version='1.13'
192250 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
193251 dnl require some minimum version. Point them to the right macro.
194 m4_if([$1], [1.11.1], [],
252 m4_if([$1], [1.13.2], [],
195253 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
196254 ])
197255
207265 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
208266 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
209267 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
210 [AM_AUTOMAKE_VERSION([1.11.1])dnl
268 [AM_AUTOMAKE_VERSION([1.13.2])dnl
211269 m4_ifndef([AC_AUTOCONF_VERSION],
212270 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
213271 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
214272
215273 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
216274
217 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
275 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
218276 #
219277 # This file is free software; the Free Software Foundation
220278 # gives unlimited permission to copy and/or distribute it,
221279 # with or without modifications, as long as this notice is preserved.
222280
223281 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
224 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
225 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
282 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
283 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
226284 #
227285 # Of course, Automake must honor this variable whenever it calls a
228286 # tool from the auxiliary directory. The problem is that $srcdir (and
241299 #
242300 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
243301 # are both prefixed by $srcdir. In an in-source build this is usually
244 # harmless because $srcdir is `.', but things will broke when you
302 # harmless because $srcdir is '.', but things will broke when you
245303 # start a VPATH build or use an absolute $srcdir.
246304 #
247305 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
267325
268326 # AM_CONDITIONAL -*- Autoconf -*-
269327
270 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
271 # Free Software Foundation, Inc.
272 #
273 # This file is free software; the Free Software Foundation
274 # gives unlimited permission to copy and/or distribute it,
275 # with or without modifications, as long as this notice is preserved.
276
277 # serial 9
328 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
329 #
330 # This file is free software; the Free Software Foundation
331 # gives unlimited permission to copy and/or distribute it,
332 # with or without modifications, as long as this notice is preserved.
278333
279334 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
280335 # -------------------------------------
281336 # Define a conditional.
282337 AC_DEFUN([AM_CONDITIONAL],
283 [AC_PREREQ(2.52)dnl
284 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
285 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
338 [AC_PREREQ([2.52])dnl
339 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
340 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
286341 AC_SUBST([$1_TRUE])dnl
287342 AC_SUBST([$1_FALSE])dnl
288343 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
303358
304359 # Do all the work for Automake. -*- Autoconf -*-
305360
306 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
307 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
308 #
309 # This file is free software; the Free Software Foundation
310 # gives unlimited permission to copy and/or distribute it,
311 # with or without modifications, as long as this notice is preserved.
312
313 # serial 16
361 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
362 #
363 # This file is free software; the Free Software Foundation
364 # gives unlimited permission to copy and/or distribute it,
365 # with or without modifications, as long as this notice is preserved.
314366
315367 # This macro actually does too much. Some checks are only needed if
316368 # your package does certain things. But this isn't really a big deal.
327379 # arguments mandatory, and then we can depend on a new Autoconf
328380 # release and drop the old call support.
329381 AC_DEFUN([AM_INIT_AUTOMAKE],
330 [AC_PREREQ([2.62])dnl
382 [AC_PREREQ([2.65])dnl
331383 dnl Autoconf wants to disallow AM_ names. We explicitly allow
332384 dnl the ones we care about.
333385 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
356408 # Define the identity of the package.
357409 dnl Distinguish between old-style and new-style calls.
358410 m4_ifval([$2],
359 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
411 [AC_DIAGNOSE([obsolete],
412 [$0: two- and three-arguments forms are deprecated.])
413 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
360414 AC_SUBST([PACKAGE], [$1])dnl
361415 AC_SUBST([VERSION], [$2])],
362416 [_AM_SET_OPTIONS([$1])dnl
363417 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
364 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
418 m4_if(
419 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
420 [ok:ok],,
365421 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
366422 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
367423 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
368424
369425 _AM_IF_OPTION([no-define],,
370 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
371 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
426 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
427 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
372428
373429 # Some tools Automake needs.
374430 AC_REQUIRE([AM_SANITY_CHECK])dnl
375431 AC_REQUIRE([AC_ARG_PROGRAM])dnl
376 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
377 AM_MISSING_PROG(AUTOCONF, autoconf)
378 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
379 AM_MISSING_PROG(AUTOHEADER, autoheader)
380 AM_MISSING_PROG(MAKEINFO, makeinfo)
432 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
433 AM_MISSING_PROG([AUTOCONF], [autoconf])
434 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
435 AM_MISSING_PROG([AUTOHEADER], [autoheader])
436 AM_MISSING_PROG([MAKEINFO], [makeinfo])
381437 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
382438 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
383 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
439 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
440 # For better backward compatibility. To be removed once Automake 1.9.x
441 # dies out for good. For more background, see:
442 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
443 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
444 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
384445 # We need awk for the "check" target. The system "awk" is bad on
385446 # some platforms.
386447 AC_REQUIRE([AC_PROG_AWK])dnl
391452 [_AM_PROG_TAR([v7])])])
392453 _AM_IF_OPTION([no-dependencies],,
393454 [AC_PROVIDE_IFELSE([AC_PROG_CC],
394 [_AM_DEPENDENCIES(CC)],
395 [define([AC_PROG_CC],
396 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
455 [_AM_DEPENDENCIES([CC])],
456 [m4_define([AC_PROG_CC],
457 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
397458 AC_PROVIDE_IFELSE([AC_PROG_CXX],
398 [_AM_DEPENDENCIES(CXX)],
399 [define([AC_PROG_CXX],
400 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
459 [_AM_DEPENDENCIES([CXX])],
460 [m4_define([AC_PROG_CXX],
461 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
401462 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
402 [_AM_DEPENDENCIES(OBJC)],
403 [define([AC_PROG_OBJC],
404 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
463 [_AM_DEPENDENCIES([OBJC])],
464 [m4_define([AC_PROG_OBJC],
465 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
466 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
467 [_AM_DEPENDENCIES([OBJCXX])],
468 [m4_define([AC_PROG_OBJCXX],
469 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
405470 ])
406 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
407 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
408 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
409 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
471 AC_REQUIRE([AM_SILENT_RULES])dnl
472 dnl The testsuite driver may need to know about EXEEXT, so add the
473 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
474 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
410475 AC_CONFIG_COMMANDS_PRE(dnl
411476 [m4_provide_if([_AM_COMPILER_EXEEXT],
412477 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
413478 ])
414479
415 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
480 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
416481 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
417482 dnl mangled by Autoconf and run in a shell conditional statement.
418483 m4_define([_AC_COMPILER_EXEEXT],
440505 done
441506 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
442507
443 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
508 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
444509 #
445510 # This file is free software; the Free Software Foundation
446511 # gives unlimited permission to copy and/or distribute it,
459524 install_sh="\${SHELL} $am_aux_dir/install-sh"
460525 esac
461526 fi
462 AC_SUBST(install_sh)])
463
464 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
465 #
466 # This file is free software; the Free Software Foundation
467 # gives unlimited permission to copy and/or distribute it,
468 # with or without modifications, as long as this notice is preserved.
469
470 # serial 2
527 AC_SUBST([install_sh])])
528
529 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
530 #
531 # This file is free software; the Free Software Foundation
532 # gives unlimited permission to copy and/or distribute it,
533 # with or without modifications, as long as this notice is preserved.
471534
472535 # Check whether the underlying file-system supports filenames
473536 # with a leading dot. For instance MS-DOS doesn't.
485548 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
486549 # From Jim Meyering
487550
488 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
489 # Free Software Foundation, Inc.
490 #
491 # This file is free software; the Free Software Foundation
492 # gives unlimited permission to copy and/or distribute it,
493 # with or without modifications, as long as this notice is preserved.
494
495 # serial 5
551 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
552 #
553 # This file is free software; the Free Software Foundation
554 # gives unlimited permission to copy and/or distribute it,
555 # with or without modifications, as long as this notice is preserved.
496556
497557 # AM_MAINTAINER_MODE([DEFAULT-MODE])
498558 # ----------------------------------
499559 # Control maintainer-specific portions of Makefiles.
500 # Default is to disable them, unless `enable' is passed literally.
501 # For symmetry, `disable' may be passed as well. Anyway, the user
560 # Default is to disable them, unless 'enable' is passed literally.
561 # For symmetry, 'disable' may be passed as well. Anyway, the user
502562 # can override the default with the --enable/--disable switch.
503563 AC_DEFUN([AM_MAINTAINER_MODE],
504564 [m4_case(m4_default([$1], [disable]),
506566 [disable], [m4_define([am_maintainer_other], [enable])],
507567 [m4_define([am_maintainer_other], [enable])
508568 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
509 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
569 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
510570 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
511571 AC_ARG_ENABLE([maintainer-mode],
512 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
513 (and sometimes confusing) to the casual installer],
514 [USE_MAINTAINER_MODE=$enableval],
515 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
572 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
573 am_maintainer_other[ make rules and dependencies not useful
574 (and sometimes confusing) to the casual installer])],
575 [USE_MAINTAINER_MODE=$enableval],
576 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
516577 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
517578 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
518579 MAINT=$MAINTAINER_MODE_TRUE
520581 ]
521582 )
522583
523 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
524
525584 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
526585
527 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
528 # Free Software Foundation, Inc.
529 #
530 # This file is free software; the Free Software Foundation
531 # gives unlimited permission to copy and/or distribute it,
532 # with or without modifications, as long as this notice is preserved.
533
534 # serial 6
586 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
587 #
588 # This file is free software; the Free Software Foundation
589 # gives unlimited permission to copy and/or distribute it,
590 # with or without modifications, as long as this notice is preserved.
535591
536592 # AM_MISSING_PROG(NAME, PROGRAM)
537593 # ------------------------------
540596 $1=${$1-"${am_missing_run}$2"}
541597 AC_SUBST($1)])
542598
543
544599 # AM_MISSING_HAS_RUN
545600 # ------------------
546 # Define MISSING if not defined so far and test if it supports --run.
547 # If it does, set am_missing_run to use it, otherwise, to nothing.
601 # Define MISSING if not defined so far and test if it is modern enough.
602 # If it is, set am_missing_run to use it, otherwise, to nothing.
548603 AC_DEFUN([AM_MISSING_HAS_RUN],
549604 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
550605 AC_REQUIRE_AUX_FILE([missing])dnl
557612 esac
558613 fi
559614 # Use eval to expand $SHELL
560 if eval "$MISSING --run true"; then
561 am_missing_run="$MISSING --run "
615 if eval "$MISSING --is-lightweight"; then
616 am_missing_run="$MISSING "
562617 else
563618 am_missing_run=
564 AC_MSG_WARN([`missing' script is too old or missing])
619 AC_MSG_WARN(['missing' script is too old or missing])
565620 fi
566621 ])
567622
568 # Copyright (C) 2003, 2004, 2005, 2006 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 # AM_PROG_MKDIR_P
575 # ---------------
576 # Check for `mkdir -p'.
577 AC_DEFUN([AM_PROG_MKDIR_P],
578 [AC_PREREQ([2.60])dnl
579 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
580 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
581 dnl while keeping a definition of mkdir_p for backward compatibility.
582 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
583 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
584 dnl Makefile.ins that do not define MKDIR_P, so we do our own
585 dnl adjustment using top_builddir (which is defined more often than
586 dnl MKDIR_P).
587 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
588 case $mkdir_p in
589 [[\\/$]]* | ?:[[\\/]]*) ;;
590 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
591 esac
592 ])
593
594623 # Helper functions for option handling. -*- Autoconf -*-
595624
596 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
597 #
598 # This file is free software; the Free Software Foundation
599 # gives unlimited permission to copy and/or distribute it,
600 # with or without modifications, as long as this notice is preserved.
601
602 # serial 4
625 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
626 #
627 # This file is free software; the Free Software Foundation
628 # gives unlimited permission to copy and/or distribute it,
629 # with or without modifications, as long as this notice is preserved.
603630
604631 # _AM_MANGLE_OPTION(NAME)
605632 # -----------------------
607634 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
608635
609636 # _AM_SET_OPTION(NAME)
610 # ------------------------------
637 # --------------------
611638 # Set option NAME. Presently that only means defining a flag for this option.
612639 AC_DEFUN([_AM_SET_OPTION],
613 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
640 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
614641
615642 # _AM_SET_OPTIONS(OPTIONS)
616 # ----------------------------------
643 # ------------------------
617644 # OPTIONS is a space-separated list of Automake options.
618645 AC_DEFUN([_AM_SET_OPTIONS],
619646 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
626653
627654 # Check to make sure that the build environment is sane. -*- Autoconf -*-
628655
629 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
630 # Free Software Foundation, Inc.
631 #
632 # This file is free software; the Free Software Foundation
633 # gives unlimited permission to copy and/or distribute it,
634 # with or without modifications, as long as this notice is preserved.
635
636 # serial 5
656 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
657 #
658 # This file is free software; the Free Software Foundation
659 # gives unlimited permission to copy and/or distribute it,
660 # with or without modifications, as long as this notice is preserved.
637661
638662 # AM_SANITY_CHECK
639663 # ---------------
640664 AC_DEFUN([AM_SANITY_CHECK],
641665 [AC_MSG_CHECKING([whether build environment is sane])
642 # Just in case
643 sleep 1
644 echo timestamp > conftest.file
645666 # Reject unsafe characters in $srcdir or the absolute working directory
646667 # name. Accept space and tab only in the latter.
647668 am_lf='
652673 esac
653674 case $srcdir in
654675 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
655 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
676 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
656677 esac
657678
658 # Do `set' in a subshell so we don't clobber the current shell's
679 # Do 'set' in a subshell so we don't clobber the current shell's
659680 # arguments. Must try -L first in case configure is actually a
660681 # symlink; some systems play weird games with the mod time of symlinks
661682 # (eg FreeBSD returns the mod time of the symlink's containing
662683 # directory).
663684 if (
664 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
665 if test "$[*]" = "X"; then
666 # -L didn't work.
667 set X `ls -t "$srcdir/configure" conftest.file`
668 fi
669 rm -f conftest.file
670 if test "$[*]" != "X $srcdir/configure conftest.file" \
671 && test "$[*]" != "X conftest.file $srcdir/configure"; then
672
673 # If neither matched, then we have a broken ls. This can happen
674 # if, for instance, CONFIG_SHELL is bash and it inherits a
675 # broken ls alias from the environment. This has actually
676 # happened. Such a system could not be considered "sane".
677 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
678 alias in your environment])
679 fi
680
685 am_has_slept=no
686 for am_try in 1 2; do
687 echo "timestamp, slept: $am_has_slept" > conftest.file
688 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
689 if test "$[*]" = "X"; then
690 # -L didn't work.
691 set X `ls -t "$srcdir/configure" conftest.file`
692 fi
693 if test "$[*]" != "X $srcdir/configure conftest.file" \
694 && test "$[*]" != "X conftest.file $srcdir/configure"; then
695
696 # If neither matched, then we have a broken ls. This can happen
697 # if, for instance, CONFIG_SHELL is bash and it inherits a
698 # broken ls alias from the environment. This has actually
699 # happened. Such a system could not be considered "sane".
700 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
701 alias in your environment])
702 fi
703 if test "$[2]" = conftest.file || test $am_try -eq 2; then
704 break
705 fi
706 # Just in case.
707 sleep 1
708 am_has_slept=yes
709 done
681710 test "$[2]" = conftest.file
682711 )
683712 then
687716 AC_MSG_ERROR([newly created file is older than distributed files!
688717 Check your system clock])
689718 fi
690 AC_MSG_RESULT(yes)])
691
692 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
719 AC_MSG_RESULT([yes])
720 # If we didn't sleep, we still need to ensure time stamps of config.status and
721 # generated files are strictly newer.
722 am_sleep_pid=
723 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
724 ( sleep 1 ) &
725 am_sleep_pid=$!
726 fi
727 AC_CONFIG_COMMANDS_PRE(
728 [AC_MSG_CHECKING([that generated files are newer than configure])
729 if test -n "$am_sleep_pid"; then
730 # Hide warnings about reused PIDs.
731 wait $am_sleep_pid 2>/dev/null
732 fi
733 AC_MSG_RESULT([done])])
734 rm -f conftest.file
735 ])
736
737 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
738 #
739 # This file is free software; the Free Software Foundation
740 # gives unlimited permission to copy and/or distribute it,
741 # with or without modifications, as long as this notice is preserved.
742
743 # AM_SILENT_RULES([DEFAULT])
744 # --------------------------
745 # Enable less verbose build rules; with the default set to DEFAULT
746 # ("yes" being less verbose, "no" or empty being verbose).
747 AC_DEFUN([AM_SILENT_RULES],
748 [AC_ARG_ENABLE([silent-rules], [dnl
749 AS_HELP_STRING(
750 [--enable-silent-rules],
751 [less verbose build output (undo: "make V=1")])
752 AS_HELP_STRING(
753 [--disable-silent-rules],
754 [verbose build output (undo: "make V=0")])dnl
755 ])
756 case $enable_silent_rules in @%:@ (((
757 yes) AM_DEFAULT_VERBOSITY=0;;
758 no) AM_DEFAULT_VERBOSITY=1;;
759 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
760 esac
761 dnl
762 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
763 dnl do not support nested variable expansions.
764 dnl See automake bug#9928 and bug#10237.
765 am_make=${MAKE-make}
766 AC_CACHE_CHECK([whether $am_make supports nested variables],
767 [am_cv_make_support_nested_variables],
768 [if AS_ECHO([['TRUE=$(BAR$(V))
769 BAR0=false
770 BAR1=true
771 V=1
772 am__doit:
773 @$(TRUE)
774 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
775 am_cv_make_support_nested_variables=yes
776 else
777 am_cv_make_support_nested_variables=no
778 fi])
779 if test $am_cv_make_support_nested_variables = yes; then
780 dnl Using '$V' instead of '$(V)' breaks IRIX make.
781 AM_V='$(V)'
782 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
783 else
784 AM_V=$AM_DEFAULT_VERBOSITY
785 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
786 fi
787 AC_SUBST([AM_V])dnl
788 AM_SUBST_NOTMAKE([AM_V])dnl
789 AC_SUBST([AM_DEFAULT_V])dnl
790 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
791 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
792 AM_BACKSLASH='\'
793 AC_SUBST([AM_BACKSLASH])dnl
794 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
795 ])
796
797 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
693798 #
694799 # This file is free software; the Free Software Foundation
695800 # gives unlimited permission to copy and/or distribute it,
697802
698803 # AM_PROG_INSTALL_STRIP
699804 # ---------------------
700 # One issue with vendor `install' (even GNU) is that you can't
805 # One issue with vendor 'install' (even GNU) is that you can't
701806 # specify the program used to strip binaries. This is especially
702807 # annoying in cross-compiling environments, where the build's strip
703808 # is unlikely to handle the host's binaries.
704809 # Fortunately install-sh will honor a STRIPPROG variable, so we
705 # always use install-sh in `make install-strip', and initialize
810 # always use install-sh in "make install-strip", and initialize
706811 # STRIPPROG with the value of the STRIP variable (set by the user).
707812 AC_DEFUN([AM_PROG_INSTALL_STRIP],
708813 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
709 # Installed binaries are usually stripped using `strip' when the user
710 # run `make install-strip'. However `strip' might not be the right
814 # Installed binaries are usually stripped using 'strip' when the user
815 # run "make install-strip". However 'strip' might not be the right
711816 # tool to use in cross-compilation environments, therefore Automake
712 # will honor the `STRIP' environment variable to overrule this program.
713 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
817 # will honor the 'STRIP' environment variable to overrule this program.
818 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
714819 if test "$cross_compiling" != no; then
715820 AC_CHECK_TOOL([STRIP], [strip], :)
716821 fi
717822 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
718823 AC_SUBST([INSTALL_STRIP_PROGRAM])])
719824
720 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
721 #
722 # This file is free software; the Free Software Foundation
723 # gives unlimited permission to copy and/or distribute it,
724 # with or without modifications, as long as this notice is preserved.
725
726 # serial 2
825 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
826 #
827 # This file is free software; the Free Software Foundation
828 # gives unlimited permission to copy and/or distribute it,
829 # with or without modifications, as long as this notice is preserved.
727830
728831 # _AM_SUBST_NOTMAKE(VARIABLE)
729832 # ---------------------------
732835 AC_DEFUN([_AM_SUBST_NOTMAKE])
733836
734837 # AM_SUBST_NOTMAKE(VARIABLE)
735 # ---------------------------
838 # --------------------------
736839 # Public sister of _AM_SUBST_NOTMAKE.
737840 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
738841
739842 # Check how to create a tarball. -*- Autoconf -*-
740843
741 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
742 #
743 # This file is free software; the Free Software Foundation
744 # gives unlimited permission to copy and/or distribute it,
745 # with or without modifications, as long as this notice is preserved.
746
747 # serial 2
844 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
845 #
846 # This file is free software; the Free Software Foundation
847 # gives unlimited permission to copy and/or distribute it,
848 # with or without modifications, as long as this notice is preserved.
748849
749850 # _AM_PROG_TAR(FORMAT)
750851 # --------------------
751852 # Check how to create a tarball in format FORMAT.
752 # FORMAT should be one of `v7', `ustar', or `pax'.
853 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
753854 #
754855 # Substitute a variable $(am__tar) that is a command
755856 # writing to stdout a FORMAT-tarball containing the directory
759860 # Substitute a variable $(am__untar) that extract such
760861 # a tarball read from stdin.
761862 # $(am__untar) < result.tar
863 #
762864 AC_DEFUN([_AM_PROG_TAR],
763 [# Always define AMTAR for backward compatibility.
764 AM_MISSING_PROG([AMTAR], [tar])
865 [# Always define AMTAR for backward compatibility. Yes, it's still used
866 # in the wild :-( We should find a proper way to deprecate it ...
867 AC_SUBST([AMTAR], ['$${TAR-tar}'])
868
869 # We'll loop over all known methods to create a tar archive until one works.
870 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
871
765872 m4_if([$1], [v7],
766 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
767 [m4_case([$1], [ustar],, [pax],,
768 [m4_fatal([Unknown tar format])])
769 AC_MSG_CHECKING([how to create a $1 tar archive])
770 # Loop over all known methods to create a tar archive until one works.
771 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
772 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
773 # Do not fold the above two line into one, because Tru64 sh and
774 # Solaris sh will not grok spaces in the rhs of `-'.
775 for _am_tool in $_am_tools
776 do
777 case $_am_tool in
778 gnutar)
779 for _am_tar in tar gnutar gtar;
780 do
781 AM_RUN_LOG([$_am_tar --version]) && break
782 done
783 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
784 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
785 am__untar="$_am_tar -xf -"
786 ;;
787 plaintar)
788 # Must skip GNU tar: if it does not support --format= it doesn't create
789 # ustar tarball either.
790 (tar --version) >/dev/null 2>&1 && continue
791 am__tar='tar chf - "$$tardir"'
792 am__tar_='tar chf - "$tardir"'
793 am__untar='tar xf -'
794 ;;
795 pax)
796 am__tar='pax -L -x $1 -w "$$tardir"'
797 am__tar_='pax -L -x $1 -w "$tardir"'
798 am__untar='pax -r'
799 ;;
800 cpio)
801 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
802 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
803 am__untar='cpio -i -H $1 -d'
804 ;;
805 none)
806 am__tar=false
807 am__tar_=false
808 am__untar=false
809 ;;
810 esac
811
812 # If the value was cached, stop now. We just wanted to have am__tar
813 # and am__untar set.
814 test -n "${am_cv_prog_tar_$1}" && break
815
816 # tar/untar a dummy directory, and stop if the command works
873 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
874
875 [m4_case([$1],
876 [ustar],
877 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
878 # There is notably a 21 bits limit for the UID and the GID. In fact,
879 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
880 # and bug#13588).
881 am_max_uid=2097151 # 2^21 - 1
882 am_max_gid=$am_max_uid
883 # The $UID and $GID variables are not portable, so we need to resort
884 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
885 # below are definitely unexpected, so allow the users to see them
886 # (that is, avoid stderr redirection).
887 am_uid=`id -u || echo unknown`
888 am_gid=`id -g || echo unknown`
889 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
890 if test $am_uid -le $am_max_uid; then
891 AC_MSG_RESULT([yes])
892 else
893 AC_MSG_RESULT([no])
894 _am_tools=none
895 fi
896 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
897 if test $am_gid -le $am_max_gid; then
898 AC_MSG_RESULT([yes])
899 else
900 AC_MSG_RESULT([no])
901 _am_tools=none
902 fi],
903
904 [pax],
905 [],
906
907 [m4_fatal([Unknown tar format])])
908
909 AC_MSG_CHECKING([how to create a $1 tar archive])
910
911 # Go ahead even if we have the value already cached. We do so because we
912 # need to set the values for the 'am__tar' and 'am__untar' variables.
913 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
914
915 for _am_tool in $_am_tools; do
916 case $_am_tool in
917 gnutar)
918 for _am_tar in tar gnutar gtar; do
919 AM_RUN_LOG([$_am_tar --version]) && break
920 done
921 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
922 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
923 am__untar="$_am_tar -xf -"
924 ;;
925 plaintar)
926 # Must skip GNU tar: if it does not support --format= it doesn't create
927 # ustar tarball either.
928 (tar --version) >/dev/null 2>&1 && continue
929 am__tar='tar chf - "$$tardir"'
930 am__tar_='tar chf - "$tardir"'
931 am__untar='tar xf -'
932 ;;
933 pax)
934 am__tar='pax -L -x $1 -w "$$tardir"'
935 am__tar_='pax -L -x $1 -w "$tardir"'
936 am__untar='pax -r'
937 ;;
938 cpio)
939 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
940 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
941 am__untar='cpio -i -H $1 -d'
942 ;;
943 none)
944 am__tar=false
945 am__tar_=false
946 am__untar=false
947 ;;
948 esac
949
950 # If the value was cached, stop now. We just wanted to have am__tar
951 # and am__untar set.
952 test -n "${am_cv_prog_tar_$1}" && break
953
954 # tar/untar a dummy directory, and stop if the command works.
955 rm -rf conftest.dir
956 mkdir conftest.dir
957 echo GrepMe > conftest.dir/file
958 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
959 rm -rf conftest.dir
960 if test -s conftest.tar; then
961 AM_RUN_LOG([$am__untar <conftest.tar])
962 AM_RUN_LOG([cat conftest.dir/file])
963 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
964 fi
965 done
817966 rm -rf conftest.dir
818 mkdir conftest.dir
819 echo GrepMe > conftest.dir/file
820 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
821 rm -rf conftest.dir
822 if test -s conftest.tar; then
823 AM_RUN_LOG([$am__untar <conftest.tar])
824 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
825 fi
826 done
827 rm -rf conftest.dir
828
829 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
830 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
967
968 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
969 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
970
831971 AC_SUBST([am__tar])
832972 AC_SUBST([am__untar])
833973 ]) # _AM_PROG_TAR
+0
-1501
config.guess less more
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
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-11-20'
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, 2001,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
60
61 This is free software; see the source for copying conditions. There is NO
62 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
63
64 help="
65 Try \`$me --help' for more information."
66
67 # Parse command line
68 while test $# -gt 0 ; do
69 case $1 in
70 --time-stamp | --time* | -t )
71 echo "$timestamp" ; exit ;;
72 --version | -v )
73 echo "$version" ; exit ;;
74 --help | --h* | -h )
75 echo "$usage"; exit ;;
76 -- ) # Stop option processing
77 shift; break ;;
78 - ) # Use stdin as input.
79 break ;;
80 -* )
81 echo "$me: invalid option $1$help" >&2
82 exit 1 ;;
83 * )
84 break ;;
85 esac
86 done
87
88 if test $# != 0; then
89 echo "$me: too many arguments$help" >&2
90 exit 1
91 fi
92
93 trap 'exit 1' 1 2 15
94
95 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
96 # compiler to aid in system detection is discouraged as it requires
97 # temporary files to be created and, as you can see below, it is a
98 # headache to deal with in a portable fashion.
99
100 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
101 # use `HOST_CC' if defined, but it is deprecated.
102
103 # Portable tmp directory creation inspired by the Autoconf team.
104
105 set_cc_for_build='
106 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108 : ${TMPDIR=/tmp} ;
109 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
113 dummy=$tmp/dummy ;
114 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
115 case $CC_FOR_BUILD,$HOST_CC,$CC in
116 ,,) echo "int x;" > $dummy.c ;
117 for c in cc gcc c89 c99 ; do
118 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
119 CC_FOR_BUILD="$c"; break ;
120 fi ;
121 done ;
122 if test x"$CC_FOR_BUILD" = x ; then
123 CC_FOR_BUILD=no_compiler_found ;
124 fi
125 ;;
126 ,,*) CC_FOR_BUILD=$CC ;;
127 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
128 esac ; set_cc_for_build= ;'
129
130 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
131 # (ghazi@noc.rutgers.edu 1994-08-24)
132 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
133 PATH=$PATH:/.attbin ; export PATH
134 fi
135
136 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
137 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
138 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
139 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140
141 # Note: order is significant - the case branches are not exclusive.
142
143 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144 *:NetBSD:*:*)
145 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148 # switched to ELF, *-*-netbsd* would select the old
149 # object file format. This provides both forward
150 # compatibility and a consistent mechanism for selecting the
151 # object file format.
152 #
153 # Note: NetBSD doesn't particularly care about the vendor
154 # portion of the name. We always set it to "unknown".
155 sysctl="sysctl -n hw.machine_arch"
156 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
157 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
158 case "${UNAME_MACHINE_ARCH}" in
159 armeb) machine=armeb-unknown ;;
160 arm*) machine=arm-unknown ;;
161 sh3el) machine=shl-unknown ;;
162 sh3eb) machine=sh-unknown ;;
163 sh5el) machine=sh5le-unknown ;;
164 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
165 esac
166 # The Operating System including object format, if it has switched
167 # to ELF recently, or will in the future.
168 case "${UNAME_MACHINE_ARCH}" in
169 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
170 eval $set_cc_for_build
171 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
172 | grep -q __ELF__
173 then
174 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
175 # Return netbsd for either. FIX?
176 os=netbsd
177 else
178 os=netbsdelf
179 fi
180 ;;
181 *)
182 os=netbsd
183 ;;
184 esac
185 # The OS release
186 # Debian GNU/NetBSD machines have a different userland, and
187 # thus, need a distinct triplet. However, they do not need
188 # kernel version information, so it can be replaced with a
189 # suitable tag, in the style of linux-gnu.
190 case "${UNAME_VERSION}" in
191 Debian*)
192 release='-gnu'
193 ;;
194 *)
195 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
196 ;;
197 esac
198 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
199 # contains redundant information, the shorter form:
200 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
201 echo "${machine}-${os}${release}"
202 exit ;;
203 *:OpenBSD:*:*)
204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
206 exit ;;
207 *:ekkoBSD:*:*)
208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
209 exit ;;
210 *:SolidBSD:*:*)
211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
212 exit ;;
213 macppc:MirBSD:*:*)
214 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
215 exit ;;
216 *:MirBSD:*:*)
217 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
218 exit ;;
219 alpha:OSF1:*:*)
220 case $UNAME_RELEASE in
221 *4.0)
222 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
223 ;;
224 *5.*)
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226 ;;
227 esac
228 # According to Compaq, /usr/sbin/psrinfo has been available on
229 # OSF/1 and Tru64 systems produced since 1995. I hope that
230 # covers most systems running today. This code pipes the CPU
231 # types through head -n 1, so we only detect the type of CPU 0.
232 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
233 case "$ALPHA_CPU_TYPE" in
234 "EV4 (21064)")
235 UNAME_MACHINE="alpha" ;;
236 "EV4.5 (21064)")
237 UNAME_MACHINE="alpha" ;;
238 "LCA4 (21066/21068)")
239 UNAME_MACHINE="alpha" ;;
240 "EV5 (21164)")
241 UNAME_MACHINE="alphaev5" ;;
242 "EV5.6 (21164A)")
243 UNAME_MACHINE="alphaev56" ;;
244 "EV5.6 (21164PC)")
245 UNAME_MACHINE="alphapca56" ;;
246 "EV5.7 (21164PC)")
247 UNAME_MACHINE="alphapca57" ;;
248 "EV6 (21264)")
249 UNAME_MACHINE="alphaev6" ;;
250 "EV6.7 (21264A)")
251 UNAME_MACHINE="alphaev67" ;;
252 "EV6.8CB (21264C)")
253 UNAME_MACHINE="alphaev68" ;;
254 "EV6.8AL (21264B)")
255 UNAME_MACHINE="alphaev68" ;;
256 "EV6.8CX (21264D)")
257 UNAME_MACHINE="alphaev68" ;;
258 "EV6.9A (21264/EV69A)")
259 UNAME_MACHINE="alphaev69" ;;
260 "EV7 (21364)")
261 UNAME_MACHINE="alphaev7" ;;
262 "EV7.9 (21364A)")
263 UNAME_MACHINE="alphaev79" ;;
264 esac
265 # A Pn.n version is a patched version.
266 # A Vn.n version is a released version.
267 # A Tn.n version is a released field test version.
268 # A Xn.n version is an unreleased experimental baselevel.
269 # 1.2 uses "1.2" for uname -r.
270 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
271 exit ;;
272 Alpha\ *:Windows_NT*:*)
273 # How do we know it's Interix rather than the generic POSIX subsystem?
274 # Should we change UNAME_MACHINE based on the output of uname instead
275 # of the specific Alpha model?
276 echo alpha-pc-interix
277 exit ;;
278 21064:Windows_NT:50:3)
279 echo alpha-dec-winnt3.5
280 exit ;;
281 Amiga*:UNIX_System_V:4.0:*)
282 echo m68k-unknown-sysv4
283 exit ;;
284 *:[Aa]miga[Oo][Ss]:*:*)
285 echo ${UNAME_MACHINE}-unknown-amigaos
286 exit ;;
287 *:[Mm]orph[Oo][Ss]:*:*)
288 echo ${UNAME_MACHINE}-unknown-morphos
289 exit ;;
290 *:OS/390:*:*)
291 echo i370-ibm-openedition
292 exit ;;
293 *:z/VM:*:*)
294 echo s390-ibm-zvmoe
295 exit ;;
296 *:OS400:*:*)
297 echo powerpc-ibm-os400
298 exit ;;
299 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
300 echo arm-acorn-riscix${UNAME_RELEASE}
301 exit ;;
302 arm:riscos:*:*|arm:RISCOS:*:*)
303 echo arm-unknown-riscos
304 exit ;;
305 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
306 echo hppa1.1-hitachi-hiuxmpp
307 exit ;;
308 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
309 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
310 if test "`(/bin/universe) 2>/dev/null`" = att ; then
311 echo pyramid-pyramid-sysv3
312 else
313 echo pyramid-pyramid-bsd
314 fi
315 exit ;;
316 NILE*:*:*:dcosx)
317 echo pyramid-pyramid-svr4
318 exit ;;
319 DRS?6000:unix:4.0:6*)
320 echo sparc-icl-nx6
321 exit ;;
322 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
323 case `/usr/bin/uname -p` in
324 sparc) echo sparc-icl-nx7; exit ;;
325 esac ;;
326 s390x:SunOS:*:*)
327 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
328 exit ;;
329 sun4H:SunOS:5.*:*)
330 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331 exit ;;
332 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
333 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334 exit ;;
335 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
336 echo i386-pc-auroraux${UNAME_RELEASE}
337 exit ;;
338 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
339 eval $set_cc_for_build
340 SUN_ARCH="i386"
341 # If there is a compiler, see if it is configured for 64-bit objects.
342 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
343 # This test works for both compilers.
344 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
345 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
346 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
347 grep IS_64BIT_ARCH >/dev/null
348 then
349 SUN_ARCH="x86_64"
350 fi
351 fi
352 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
353 exit ;;
354 sun4*:SunOS:6*:*)
355 # According to config.sub, this is the proper way to canonicalize
356 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
357 # it's likely to be more like Solaris than SunOS4.
358 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
359 exit ;;
360 sun4*:SunOS:*:*)
361 case "`/usr/bin/arch -k`" in
362 Series*|S4*)
363 UNAME_RELEASE=`uname -v`
364 ;;
365 esac
366 # Japanese Language versions have a version number like `4.1.3-JL'.
367 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
368 exit ;;
369 sun3*:SunOS:*:*)
370 echo m68k-sun-sunos${UNAME_RELEASE}
371 exit ;;
372 sun*:*:4.2BSD:*)
373 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
374 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
375 case "`/bin/arch`" in
376 sun3)
377 echo m68k-sun-sunos${UNAME_RELEASE}
378 ;;
379 sun4)
380 echo sparc-sun-sunos${UNAME_RELEASE}
381 ;;
382 esac
383 exit ;;
384 aushp:SunOS:*:*)
385 echo sparc-auspex-sunos${UNAME_RELEASE}
386 exit ;;
387 # The situation for MiNT is a little confusing. The machine name
388 # can be virtually everything (everything which is not
389 # "atarist" or "atariste" at least should have a processor
390 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
391 # to the lowercase version "mint" (or "freemint"). Finally
392 # the system name "TOS" denotes a system which is actually not
393 # MiNT. But MiNT is downward compatible to TOS, so this should
394 # be no problem.
395 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
396 echo m68k-atari-mint${UNAME_RELEASE}
397 exit ;;
398 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
399 echo m68k-atari-mint${UNAME_RELEASE}
400 exit ;;
401 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
402 echo m68k-atari-mint${UNAME_RELEASE}
403 exit ;;
404 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
405 echo m68k-milan-mint${UNAME_RELEASE}
406 exit ;;
407 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
408 echo m68k-hades-mint${UNAME_RELEASE}
409 exit ;;
410 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
411 echo m68k-unknown-mint${UNAME_RELEASE}
412 exit ;;
413 m68k:machten:*:*)
414 echo m68k-apple-machten${UNAME_RELEASE}
415 exit ;;
416 powerpc:machten:*:*)
417 echo powerpc-apple-machten${UNAME_RELEASE}
418 exit ;;
419 RISC*:Mach:*:*)
420 echo mips-dec-mach_bsd4.3
421 exit ;;
422 RISC*:ULTRIX:*:*)
423 echo mips-dec-ultrix${UNAME_RELEASE}
424 exit ;;
425 VAX*:ULTRIX*:*:*)
426 echo vax-dec-ultrix${UNAME_RELEASE}
427 exit ;;
428 2020:CLIX:*:* | 2430:CLIX:*:*)
429 echo clipper-intergraph-clix${UNAME_RELEASE}
430 exit ;;
431 mips:*:*:UMIPS | mips:*:*:RISCos)
432 eval $set_cc_for_build
433 sed 's/^ //' << EOF >$dummy.c
434 #ifdef __cplusplus
435 #include <stdio.h> /* for printf() prototype */
436 int main (int argc, char *argv[]) {
437 #else
438 int main (argc, argv) int argc; char *argv[]; {
439 #endif
440 #if defined (host_mips) && defined (MIPSEB)
441 #if defined (SYSTYPE_SYSV)
442 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
443 #endif
444 #if defined (SYSTYPE_SVR4)
445 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
446 #endif
447 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
448 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
449 #endif
450 #endif
451 exit (-1);
452 }
453 EOF
454 $CC_FOR_BUILD -o $dummy $dummy.c &&
455 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
456 SYSTEM_NAME=`$dummy $dummyarg` &&
457 { echo "$SYSTEM_NAME"; exit; }
458 echo mips-mips-riscos${UNAME_RELEASE}
459 exit ;;
460 Motorola:PowerMAX_OS:*:*)
461 echo powerpc-motorola-powermax
462 exit ;;
463 Motorola:*:4.3:PL8-*)
464 echo powerpc-harris-powermax
465 exit ;;
466 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
467 echo powerpc-harris-powermax
468 exit ;;
469 Night_Hawk:Power_UNIX:*:*)
470 echo powerpc-harris-powerunix
471 exit ;;
472 m88k:CX/UX:7*:*)
473 echo m88k-harris-cxux7
474 exit ;;
475 m88k:*:4*:R4*)
476 echo m88k-motorola-sysv4
477 exit ;;
478 m88k:*:3*:R3*)
479 echo m88k-motorola-sysv3
480 exit ;;
481 AViiON:dgux:*:*)
482 # DG/UX returns AViiON for all architectures
483 UNAME_PROCESSOR=`/usr/bin/uname -p`
484 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
485 then
486 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
487 [ ${TARGET_BINARY_INTERFACE}x = x ]
488 then
489 echo m88k-dg-dgux${UNAME_RELEASE}
490 else
491 echo m88k-dg-dguxbcs${UNAME_RELEASE}
492 fi
493 else
494 echo i586-dg-dgux${UNAME_RELEASE}
495 fi
496 exit ;;
497 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
498 echo m88k-dolphin-sysv3
499 exit ;;
500 M88*:*:R3*:*)
501 # Delta 88k system running SVR3
502 echo m88k-motorola-sysv3
503 exit ;;
504 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
505 echo m88k-tektronix-sysv3
506 exit ;;
507 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
508 echo m68k-tektronix-bsd
509 exit ;;
510 *:IRIX*:*:*)
511 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
512 exit ;;
513 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
514 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
515 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
516 i*86:AIX:*:*)
517 echo i386-ibm-aix
518 exit ;;
519 ia64:AIX:*:*)
520 if [ -x /usr/bin/oslevel ] ; then
521 IBM_REV=`/usr/bin/oslevel`
522 else
523 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
524 fi
525 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
526 exit ;;
527 *:AIX:2:3)
528 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
529 eval $set_cc_for_build
530 sed 's/^ //' << EOF >$dummy.c
531 #include <sys/systemcfg.h>
532
533 main()
534 {
535 if (!__power_pc())
536 exit(1);
537 puts("powerpc-ibm-aix3.2.5");
538 exit(0);
539 }
540 EOF
541 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
542 then
543 echo "$SYSTEM_NAME"
544 else
545 echo rs6000-ibm-aix3.2.5
546 fi
547 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
548 echo rs6000-ibm-aix3.2.4
549 else
550 echo rs6000-ibm-aix3.2
551 fi
552 exit ;;
553 *:AIX:*:[456])
554 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
555 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
556 IBM_ARCH=rs6000
557 else
558 IBM_ARCH=powerpc
559 fi
560 if [ -x /usr/bin/oslevel ] ; then
561 IBM_REV=`/usr/bin/oslevel`
562 else
563 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
564 fi
565 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
566 exit ;;
567 *:AIX:*:*)
568 echo rs6000-ibm-aix
569 exit ;;
570 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
571 echo romp-ibm-bsd4.4
572 exit ;;
573 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
574 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
575 exit ;; # report: romp-ibm BSD 4.3
576 *:BOSX:*:*)
577 echo rs6000-bull-bosx
578 exit ;;
579 DPX/2?00:B.O.S.:*:*)
580 echo m68k-bull-sysv3
581 exit ;;
582 9000/[34]??:4.3bsd:1.*:*)
583 echo m68k-hp-bsd
584 exit ;;
585 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
586 echo m68k-hp-bsd4.4
587 exit ;;
588 9000/[34678]??:HP-UX:*:*)
589 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
590 case "${UNAME_MACHINE}" in
591 9000/31? ) HP_ARCH=m68000 ;;
592 9000/[34]?? ) HP_ARCH=m68k ;;
593 9000/[678][0-9][0-9])
594 if [ -x /usr/bin/getconf ]; then
595 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
596 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
597 case "${sc_cpu_version}" in
598 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
599 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
600 532) # CPU_PA_RISC2_0
601 case "${sc_kernel_bits}" in
602 32) HP_ARCH="hppa2.0n" ;;
603 64) HP_ARCH="hppa2.0w" ;;
604 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
605 esac ;;
606 esac
607 fi
608 if [ "${HP_ARCH}" = "" ]; then
609 eval $set_cc_for_build
610 sed 's/^ //' << EOF >$dummy.c
611
612 #define _HPUX_SOURCE
613 #include <stdlib.h>
614 #include <unistd.h>
615
616 int main ()
617 {
618 #if defined(_SC_KERNEL_BITS)
619 long bits = sysconf(_SC_KERNEL_BITS);
620 #endif
621 long cpu = sysconf (_SC_CPU_VERSION);
622
623 switch (cpu)
624 {
625 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
626 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
627 case CPU_PA_RISC2_0:
628 #if defined(_SC_KERNEL_BITS)
629 switch (bits)
630 {
631 case 64: puts ("hppa2.0w"); break;
632 case 32: puts ("hppa2.0n"); break;
633 default: puts ("hppa2.0"); break;
634 } break;
635 #else /* !defined(_SC_KERNEL_BITS) */
636 puts ("hppa2.0"); break;
637 #endif
638 default: puts ("hppa1.0"); break;
639 }
640 exit (0);
641 }
642 EOF
643 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
644 test -z "$HP_ARCH" && HP_ARCH=hppa
645 fi ;;
646 esac
647 if [ ${HP_ARCH} = "hppa2.0w" ]
648 then
649 eval $set_cc_for_build
650
651 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
652 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
653 # generating 64-bit code. GNU and HP use different nomenclature:
654 #
655 # $ CC_FOR_BUILD=cc ./config.guess
656 # => hppa2.0w-hp-hpux11.23
657 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
658 # => hppa64-hp-hpux11.23
659
660 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
661 grep -q __LP64__
662 then
663 HP_ARCH="hppa2.0w"
664 else
665 HP_ARCH="hppa64"
666 fi
667 fi
668 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
669 exit ;;
670 ia64:HP-UX:*:*)
671 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
672 echo ia64-hp-hpux${HPUX_REV}
673 exit ;;
674 3050*:HI-UX:*:*)
675 eval $set_cc_for_build
676 sed 's/^ //' << EOF >$dummy.c
677 #include <unistd.h>
678 int
679 main ()
680 {
681 long cpu = sysconf (_SC_CPU_VERSION);
682 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
683 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
684 results, however. */
685 if (CPU_IS_PA_RISC (cpu))
686 {
687 switch (cpu)
688 {
689 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
690 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
691 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
692 default: puts ("hppa-hitachi-hiuxwe2"); break;
693 }
694 }
695 else if (CPU_IS_HP_MC68K (cpu))
696 puts ("m68k-hitachi-hiuxwe2");
697 else puts ("unknown-hitachi-hiuxwe2");
698 exit (0);
699 }
700 EOF
701 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
702 { echo "$SYSTEM_NAME"; exit; }
703 echo unknown-hitachi-hiuxwe2
704 exit ;;
705 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
706 echo hppa1.1-hp-bsd
707 exit ;;
708 9000/8??:4.3bsd:*:*)
709 echo hppa1.0-hp-bsd
710 exit ;;
711 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
712 echo hppa1.0-hp-mpeix
713 exit ;;
714 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
715 echo hppa1.1-hp-osf
716 exit ;;
717 hp8??:OSF1:*:*)
718 echo hppa1.0-hp-osf
719 exit ;;
720 i*86:OSF1:*:*)
721 if [ -x /usr/sbin/sysversion ] ; then
722 echo ${UNAME_MACHINE}-unknown-osf1mk
723 else
724 echo ${UNAME_MACHINE}-unknown-osf1
725 fi
726 exit ;;
727 parisc*:Lites*:*:*)
728 echo hppa1.1-hp-lites
729 exit ;;
730 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
731 echo c1-convex-bsd
732 exit ;;
733 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
734 if getsysinfo -f scalar_acc
735 then echo c32-convex-bsd
736 else echo c2-convex-bsd
737 fi
738 exit ;;
739 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
740 echo c34-convex-bsd
741 exit ;;
742 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
743 echo c38-convex-bsd
744 exit ;;
745 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
746 echo c4-convex-bsd
747 exit ;;
748 CRAY*Y-MP:*:*:*)
749 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
750 exit ;;
751 CRAY*[A-Z]90:*:*:*)
752 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
753 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
754 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
755 -e 's/\.[^.]*$/.X/'
756 exit ;;
757 CRAY*TS:*:*:*)
758 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
759 exit ;;
760 CRAY*T3E:*:*:*)
761 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
762 exit ;;
763 CRAY*SV1:*:*:*)
764 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
765 exit ;;
766 *:UNICOS/mp:*:*)
767 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
768 exit ;;
769 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
770 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
771 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
772 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
773 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
774 exit ;;
775 5000:UNIX_System_V:4.*:*)
776 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
777 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
778 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
779 exit ;;
780 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
781 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
782 exit ;;
783 sparc*:BSD/OS:*:*)
784 echo sparc-unknown-bsdi${UNAME_RELEASE}
785 exit ;;
786 *:BSD/OS:*:*)
787 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
788 exit ;;
789 *:FreeBSD:*:*)
790 case ${UNAME_MACHINE} in
791 pc98)
792 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
793 amd64)
794 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
795 *)
796 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797 esac
798 exit ;;
799 i*:CYGWIN*:*)
800 echo ${UNAME_MACHINE}-pc-cygwin
801 exit ;;
802 *:MINGW*:*)
803 echo ${UNAME_MACHINE}-pc-mingw32
804 exit ;;
805 i*:windows32*:*)
806 # uname -m includes "-pc" on this system.
807 echo ${UNAME_MACHINE}-mingw32
808 exit ;;
809 i*:PW*:*)
810 echo ${UNAME_MACHINE}-pc-pw32
811 exit ;;
812 *:Interix*:*)
813 case ${UNAME_MACHINE} in
814 x86)
815 echo i586-pc-interix${UNAME_RELEASE}
816 exit ;;
817 authenticamd | genuineintel | EM64T)
818 echo x86_64-unknown-interix${UNAME_RELEASE}
819 exit ;;
820 IA64)
821 echo ia64-unknown-interix${UNAME_RELEASE}
822 exit ;;
823 esac ;;
824 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
825 echo i${UNAME_MACHINE}-pc-mks
826 exit ;;
827 8664:Windows_NT:*)
828 echo x86_64-pc-mks
829 exit ;;
830 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
831 # How do we know it's Interix rather than the generic POSIX subsystem?
832 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
833 # UNAME_MACHINE based on the output of uname instead of i386?
834 echo i586-pc-interix
835 exit ;;
836 i*:UWIN*:*)
837 echo ${UNAME_MACHINE}-pc-uwin
838 exit ;;
839 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
840 echo x86_64-unknown-cygwin
841 exit ;;
842 p*:CYGWIN*:*)
843 echo powerpcle-unknown-cygwin
844 exit ;;
845 prep*:SunOS:5.*:*)
846 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
847 exit ;;
848 *:GNU:*:*)
849 # the GNU system
850 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
851 exit ;;
852 *:GNU/*:*:*)
853 # other systems with GNU libc and userland
854 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
855 exit ;;
856 i*86:Minix:*:*)
857 echo ${UNAME_MACHINE}-pc-minix
858 exit ;;
859 alpha:Linux:*:*)
860 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
861 EV5) UNAME_MACHINE=alphaev5 ;;
862 EV56) UNAME_MACHINE=alphaev56 ;;
863 PCA56) UNAME_MACHINE=alphapca56 ;;
864 PCA57) UNAME_MACHINE=alphapca56 ;;
865 EV6) UNAME_MACHINE=alphaev6 ;;
866 EV67) UNAME_MACHINE=alphaev67 ;;
867 EV68*) UNAME_MACHINE=alphaev68 ;;
868 esac
869 objdump --private-headers /bin/sh | grep -q ld.so.1
870 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
871 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
872 exit ;;
873 arm*:Linux:*:*)
874 eval $set_cc_for_build
875 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
876 | grep -q __ARM_EABI__
877 then
878 echo ${UNAME_MACHINE}-unknown-linux-gnu
879 else
880 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
881 fi
882 exit ;;
883 avr32*:Linux:*:*)
884 echo ${UNAME_MACHINE}-unknown-linux-gnu
885 exit ;;
886 cris:Linux:*:*)
887 echo cris-axis-linux-gnu
888 exit ;;
889 crisv32:Linux:*:*)
890 echo crisv32-axis-linux-gnu
891 exit ;;
892 frv:Linux:*:*)
893 echo frv-unknown-linux-gnu
894 exit ;;
895 i*86:Linux:*:*)
896 LIBC=gnu
897 eval $set_cc_for_build
898 sed 's/^ //' << EOF >$dummy.c
899 #ifdef __dietlibc__
900 LIBC=dietlibc
901 #endif
902 EOF
903 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
904 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
905 exit ;;
906 ia64:Linux:*:*)
907 echo ${UNAME_MACHINE}-unknown-linux-gnu
908 exit ;;
909 m32r*:Linux:*:*)
910 echo ${UNAME_MACHINE}-unknown-linux-gnu
911 exit ;;
912 m68*:Linux:*:*)
913 echo ${UNAME_MACHINE}-unknown-linux-gnu
914 exit ;;
915 mips:Linux:*:* | mips64:Linux:*:*)
916 eval $set_cc_for_build
917 sed 's/^ //' << EOF >$dummy.c
918 #undef CPU
919 #undef ${UNAME_MACHINE}
920 #undef ${UNAME_MACHINE}el
921 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
922 CPU=${UNAME_MACHINE}el
923 #else
924 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
925 CPU=${UNAME_MACHINE}
926 #else
927 CPU=
928 #endif
929 #endif
930 EOF
931 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
932 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
933 ;;
934 or32:Linux:*:*)
935 echo or32-unknown-linux-gnu
936 exit ;;
937 padre:Linux:*:*)
938 echo sparc-unknown-linux-gnu
939 exit ;;
940 parisc64:Linux:*:* | hppa64:Linux:*:*)
941 echo hppa64-unknown-linux-gnu
942 exit ;;
943 parisc:Linux:*:* | hppa:Linux:*:*)
944 # Look for CPU level
945 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
946 PA7*) echo hppa1.1-unknown-linux-gnu ;;
947 PA8*) echo hppa2.0-unknown-linux-gnu ;;
948 *) echo hppa-unknown-linux-gnu ;;
949 esac
950 exit ;;
951 ppc64:Linux:*:*)
952 echo powerpc64-unknown-linux-gnu
953 exit ;;
954 ppc:Linux:*:*)
955 echo powerpc-unknown-linux-gnu
956 exit ;;
957 s390:Linux:*:* | s390x:Linux:*:*)
958 echo ${UNAME_MACHINE}-ibm-linux
959 exit ;;
960 sh64*:Linux:*:*)
961 echo ${UNAME_MACHINE}-unknown-linux-gnu
962 exit ;;
963 sh*:Linux:*:*)
964 echo ${UNAME_MACHINE}-unknown-linux-gnu
965 exit ;;
966 sparc:Linux:*:* | sparc64:Linux:*:*)
967 echo ${UNAME_MACHINE}-unknown-linux-gnu
968 exit ;;
969 vax:Linux:*:*)
970 echo ${UNAME_MACHINE}-dec-linux-gnu
971 exit ;;
972 x86_64:Linux:*:*)
973 echo x86_64-unknown-linux-gnu
974 exit ;;
975 xtensa*:Linux:*:*)
976 echo ${UNAME_MACHINE}-unknown-linux-gnu
977 exit ;;
978 i*86:DYNIX/ptx:4*:*)
979 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
980 # earlier versions are messed up and put the nodename in both
981 # sysname and nodename.
982 echo i386-sequent-sysv4
983 exit ;;
984 i*86:UNIX_SV:4.2MP:2.*)
985 # Unixware is an offshoot of SVR4, but it has its own version
986 # number series starting with 2...
987 # I am not positive that other SVR4 systems won't match this,
988 # I just have to hope. -- rms.
989 # Use sysv4.2uw... so that sysv4* matches it.
990 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
991 exit ;;
992 i*86:OS/2:*:*)
993 # If we were able to find `uname', then EMX Unix compatibility
994 # is probably installed.
995 echo ${UNAME_MACHINE}-pc-os2-emx
996 exit ;;
997 i*86:XTS-300:*:STOP)
998 echo ${UNAME_MACHINE}-unknown-stop
999 exit ;;
1000 i*86:atheos:*:*)
1001 echo ${UNAME_MACHINE}-unknown-atheos
1002 exit ;;
1003 i*86:syllable:*:*)
1004 echo ${UNAME_MACHINE}-pc-syllable
1005 exit ;;
1006 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1007 echo i386-unknown-lynxos${UNAME_RELEASE}
1008 exit ;;
1009 i*86:*DOS:*:*)
1010 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1011 exit ;;
1012 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1013 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1014 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1015 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1016 else
1017 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1018 fi
1019 exit ;;
1020 i*86:*:5:[678]*)
1021 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1022 case `/bin/uname -X | grep "^Machine"` in
1023 *486*) UNAME_MACHINE=i486 ;;
1024 *Pentium) UNAME_MACHINE=i586 ;;
1025 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1026 esac
1027 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1028 exit ;;
1029 i*86:*:3.2:*)
1030 if test -f /usr/options/cb.name; then
1031 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1032 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1033 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1034 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1035 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1036 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1037 && UNAME_MACHINE=i586
1038 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1039 && UNAME_MACHINE=i686
1040 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1041 && UNAME_MACHINE=i686
1042 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1043 else
1044 echo ${UNAME_MACHINE}-pc-sysv32
1045 fi
1046 exit ;;
1047 pc:*:*:*)
1048 # Left here for compatibility:
1049 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1050 # the processor, so we play safe by assuming i586.
1051 # Note: whatever this is, it MUST be the same as what config.sub
1052 # prints for the "djgpp" host, or else GDB configury will decide that
1053 # this is a cross-build.
1054 echo i586-pc-msdosdjgpp
1055 exit ;;
1056 Intel:Mach:3*:*)
1057 echo i386-pc-mach3
1058 exit ;;
1059 paragon:*:*:*)
1060 echo i860-intel-osf1
1061 exit ;;
1062 i860:*:4.*:*) # i860-SVR4
1063 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1064 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1065 else # Add other i860-SVR4 vendors below as they are discovered.
1066 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1067 fi
1068 exit ;;
1069 mini*:CTIX:SYS*5:*)
1070 # "miniframe"
1071 echo m68010-convergent-sysv
1072 exit ;;
1073 mc68k:UNIX:SYSTEM5:3.51m)
1074 echo m68k-convergent-sysv
1075 exit ;;
1076 M680?0:D-NIX:5.3:*)
1077 echo m68k-diab-dnix
1078 exit ;;
1079 M68*:*:R3V[5678]*:*)
1080 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1081 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)
1082 OS_REL=''
1083 test -r /etc/.relid \
1084 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1085 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1086 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1087 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1088 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1089 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1090 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1091 && { echo i486-ncr-sysv4; exit; } ;;
1092 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1093 OS_REL='.3'
1094 test -r /etc/.relid \
1095 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1096 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1097 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1098 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1099 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1100 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1101 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1102 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1103 echo m68k-unknown-lynxos${UNAME_RELEASE}
1104 exit ;;
1105 mc68030:UNIX_System_V:4.*:*)
1106 echo m68k-atari-sysv4
1107 exit ;;
1108 TSUNAMI:LynxOS:2.*:*)
1109 echo sparc-unknown-lynxos${UNAME_RELEASE}
1110 exit ;;
1111 rs6000:LynxOS:2.*:*)
1112 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1113 exit ;;
1114 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1115 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1116 exit ;;
1117 SM[BE]S:UNIX_SV:*:*)
1118 echo mips-dde-sysv${UNAME_RELEASE}
1119 exit ;;
1120 RM*:ReliantUNIX-*:*:*)
1121 echo mips-sni-sysv4
1122 exit ;;
1123 RM*:SINIX-*:*:*)
1124 echo mips-sni-sysv4
1125 exit ;;
1126 *:SINIX-*:*:*)
1127 if uname -p 2>/dev/null >/dev/null ; then
1128 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1129 echo ${UNAME_MACHINE}-sni-sysv4
1130 else
1131 echo ns32k-sni-sysv
1132 fi
1133 exit ;;
1134 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1135 # says <Richard.M.Bartel@ccMail.Census.GOV>
1136 echo i586-unisys-sysv4
1137 exit ;;
1138 *:UNIX_System_V:4*:FTX*)
1139 # From Gerald Hewes <hewes@openmarket.com>.
1140 # How about differentiating between stratus architectures? -djm
1141 echo hppa1.1-stratus-sysv4
1142 exit ;;
1143 *:*:*:FTX*)
1144 # From seanf@swdc.stratus.com.
1145 echo i860-stratus-sysv4
1146 exit ;;
1147 i*86:VOS:*:*)
1148 # From Paul.Green@stratus.com.
1149 echo ${UNAME_MACHINE}-stratus-vos
1150 exit ;;
1151 *:VOS:*:*)
1152 # From Paul.Green@stratus.com.
1153 echo hppa1.1-stratus-vos
1154 exit ;;
1155 mc68*:A/UX:*:*)
1156 echo m68k-apple-aux${UNAME_RELEASE}
1157 exit ;;
1158 news*:NEWS-OS:6*:*)
1159 echo mips-sony-newsos6
1160 exit ;;
1161 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1162 if [ -d /usr/nec ]; then
1163 echo mips-nec-sysv${UNAME_RELEASE}
1164 else
1165 echo mips-unknown-sysv${UNAME_RELEASE}
1166 fi
1167 exit ;;
1168 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1169 echo powerpc-be-beos
1170 exit ;;
1171 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1172 echo powerpc-apple-beos
1173 exit ;;
1174 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1175 echo i586-pc-beos
1176 exit ;;
1177 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1178 echo i586-pc-haiku
1179 exit ;;
1180 SX-4:SUPER-UX:*:*)
1181 echo sx4-nec-superux${UNAME_RELEASE}
1182 exit ;;
1183 SX-5:SUPER-UX:*:*)
1184 echo sx5-nec-superux${UNAME_RELEASE}
1185 exit ;;
1186 SX-6:SUPER-UX:*:*)
1187 echo sx6-nec-superux${UNAME_RELEASE}
1188 exit ;;
1189 SX-7:SUPER-UX:*:*)
1190 echo sx7-nec-superux${UNAME_RELEASE}
1191 exit ;;
1192 SX-8:SUPER-UX:*:*)
1193 echo sx8-nec-superux${UNAME_RELEASE}
1194 exit ;;
1195 SX-8R:SUPER-UX:*:*)
1196 echo sx8r-nec-superux${UNAME_RELEASE}
1197 exit ;;
1198 Power*:Rhapsody:*:*)
1199 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1200 exit ;;
1201 *:Rhapsody:*:*)
1202 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1203 exit ;;
1204 *:Darwin:*:*)
1205 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1206 case $UNAME_PROCESSOR in
1207 i386)
1208 eval $set_cc_for_build
1209 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1210 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1211 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1212 grep IS_64BIT_ARCH >/dev/null
1213 then
1214 UNAME_PROCESSOR="x86_64"
1215 fi
1216 fi ;;
1217 unknown) UNAME_PROCESSOR=powerpc ;;
1218 esac
1219 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1220 exit ;;
1221 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1222 UNAME_PROCESSOR=`uname -p`
1223 if test "$UNAME_PROCESSOR" = "x86"; then
1224 UNAME_PROCESSOR=i386
1225 UNAME_MACHINE=pc
1226 fi
1227 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1228 exit ;;
1229 *:QNX:*:4*)
1230 echo i386-pc-qnx
1231 exit ;;
1232 NSE-?:NONSTOP_KERNEL:*:*)
1233 echo nse-tandem-nsk${UNAME_RELEASE}
1234 exit ;;
1235 NSR-?:NONSTOP_KERNEL:*:*)
1236 echo nsr-tandem-nsk${UNAME_RELEASE}
1237 exit ;;
1238 *:NonStop-UX:*:*)
1239 echo mips-compaq-nonstopux
1240 exit ;;
1241 BS2000:POSIX*:*:*)
1242 echo bs2000-siemens-sysv
1243 exit ;;
1244 DS/*:UNIX_System_V:*:*)
1245 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1246 exit ;;
1247 *:Plan9:*:*)
1248 # "uname -m" is not consistent, so use $cputype instead. 386
1249 # is converted to i386 for consistency with other x86
1250 # operating systems.
1251 if test "$cputype" = "386"; then
1252 UNAME_MACHINE=i386
1253 else
1254 UNAME_MACHINE="$cputype"
1255 fi
1256 echo ${UNAME_MACHINE}-unknown-plan9
1257 exit ;;
1258 *:TOPS-10:*:*)
1259 echo pdp10-unknown-tops10
1260 exit ;;
1261 *:TENEX:*:*)
1262 echo pdp10-unknown-tenex
1263 exit ;;
1264 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1265 echo pdp10-dec-tops20
1266 exit ;;
1267 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1268 echo pdp10-xkl-tops20
1269 exit ;;
1270 *:TOPS-20:*:*)
1271 echo pdp10-unknown-tops20
1272 exit ;;
1273 *:ITS:*:*)
1274 echo pdp10-unknown-its
1275 exit ;;
1276 SEI:*:*:SEIUX)
1277 echo mips-sei-seiux${UNAME_RELEASE}
1278 exit ;;
1279 *:DragonFly:*:*)
1280 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1281 exit ;;
1282 *:*VMS:*:*)
1283 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1284 case "${UNAME_MACHINE}" in
1285 A*) echo alpha-dec-vms ; exit ;;
1286 I*) echo ia64-dec-vms ; exit ;;
1287 V*) echo vax-dec-vms ; exit ;;
1288 esac ;;
1289 *:XENIX:*:SysV)
1290 echo i386-pc-xenix
1291 exit ;;
1292 i*86:skyos:*:*)
1293 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1294 exit ;;
1295 i*86:rdos:*:*)
1296 echo ${UNAME_MACHINE}-pc-rdos
1297 exit ;;
1298 i*86:AROS:*:*)
1299 echo ${UNAME_MACHINE}-pc-aros
1300 exit ;;
1301 esac
1302
1303 #echo '(No uname command or uname output not recognized.)' 1>&2
1304 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1305
1306 eval $set_cc_for_build
1307 cat >$dummy.c <<EOF
1308 #ifdef _SEQUENT_
1309 # include <sys/types.h>
1310 # include <sys/utsname.h>
1311 #endif
1312 main ()
1313 {
1314 #if defined (sony)
1315 #if defined (MIPSEB)
1316 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1317 I don't know.... */
1318 printf ("mips-sony-bsd\n"); exit (0);
1319 #else
1320 #include <sys/param.h>
1321 printf ("m68k-sony-newsos%s\n",
1322 #ifdef NEWSOS4
1323 "4"
1324 #else
1325 ""
1326 #endif
1327 ); exit (0);
1328 #endif
1329 #endif
1330
1331 #if defined (__arm) && defined (__acorn) && defined (__unix)
1332 printf ("arm-acorn-riscix\n"); exit (0);
1333 #endif
1334
1335 #if defined (hp300) && !defined (hpux)
1336 printf ("m68k-hp-bsd\n"); exit (0);
1337 #endif
1338
1339 #if defined (NeXT)
1340 #if !defined (__ARCHITECTURE__)
1341 #define __ARCHITECTURE__ "m68k"
1342 #endif
1343 int version;
1344 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1345 if (version < 4)
1346 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1347 else
1348 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1349 exit (0);
1350 #endif
1351
1352 #if defined (MULTIMAX) || defined (n16)
1353 #if defined (UMAXV)
1354 printf ("ns32k-encore-sysv\n"); exit (0);
1355 #else
1356 #if defined (CMU)
1357 printf ("ns32k-encore-mach\n"); exit (0);
1358 #else
1359 printf ("ns32k-encore-bsd\n"); exit (0);
1360 #endif
1361 #endif
1362 #endif
1363
1364 #if defined (__386BSD__)
1365 printf ("i386-pc-bsd\n"); exit (0);
1366 #endif
1367
1368 #if defined (sequent)
1369 #if defined (i386)
1370 printf ("i386-sequent-dynix\n"); exit (0);
1371 #endif
1372 #if defined (ns32000)
1373 printf ("ns32k-sequent-dynix\n"); exit (0);
1374 #endif
1375 #endif
1376
1377 #if defined (_SEQUENT_)
1378 struct utsname un;
1379
1380 uname(&un);
1381
1382 if (strncmp(un.version, "V2", 2) == 0) {
1383 printf ("i386-sequent-ptx2\n"); exit (0);
1384 }
1385 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1386 printf ("i386-sequent-ptx1\n"); exit (0);
1387 }
1388 printf ("i386-sequent-ptx\n"); exit (0);
1389
1390 #endif
1391
1392 #if defined (vax)
1393 # if !defined (ultrix)
1394 # include <sys/param.h>
1395 # if defined (BSD)
1396 # if BSD == 43
1397 printf ("vax-dec-bsd4.3\n"); exit (0);
1398 # else
1399 # if BSD == 199006
1400 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1401 # else
1402 printf ("vax-dec-bsd\n"); exit (0);
1403 # endif
1404 # endif
1405 # else
1406 printf ("vax-dec-bsd\n"); exit (0);
1407 # endif
1408 # else
1409 printf ("vax-dec-ultrix\n"); exit (0);
1410 # endif
1411 #endif
1412
1413 #if defined (alliant) && defined (i860)
1414 printf ("i860-alliant-bsd\n"); exit (0);
1415 #endif
1416
1417 exit (1);
1418 }
1419 EOF
1420
1421 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1422 { echo "$SYSTEM_NAME"; exit; }
1423
1424 # Apollos put the system type in the environment.
1425
1426 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1427
1428 # Convex versions that predate uname can use getsysinfo(1)
1429
1430 if [ -x /usr/convex/getsysinfo ]
1431 then
1432 case `getsysinfo -f cpu_type` in
1433 c1*)
1434 echo c1-convex-bsd
1435 exit ;;
1436 c2*)
1437 if getsysinfo -f scalar_acc
1438 then echo c32-convex-bsd
1439 else echo c2-convex-bsd
1440 fi
1441 exit ;;
1442 c34*)
1443 echo c34-convex-bsd
1444 exit ;;
1445 c38*)
1446 echo c38-convex-bsd
1447 exit ;;
1448 c4*)
1449 echo c4-convex-bsd
1450 exit ;;
1451 esac
1452 fi
1453
1454 cat >&2 <<EOF
1455 $0: unable to guess system type
1456
1457 This script, last modified $timestamp, has failed to recognize
1458 the operating system you are using. It is advised that you
1459 download the most up to date version of the config scripts from
1460
1461 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1462 and
1463 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1464
1465 If the version you run ($0) is already up to date, please
1466 send the following data and any information you think might be
1467 pertinent to <config-patches@gnu.org> in order to provide the needed
1468 information to handle your system.
1469
1470 config.guess timestamp = $timestamp
1471
1472 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1473 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1474 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1475 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1476
1477 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1478 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1479
1480 hostinfo = `(hostinfo) 2>/dev/null`
1481 /bin/universe = `(/bin/universe) 2>/dev/null`
1482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1483 /bin/arch = `(/bin/arch) 2>/dev/null`
1484 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1485 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1486
1487 UNAME_MACHINE = ${UNAME_MACHINE}
1488 UNAME_RELEASE = ${UNAME_RELEASE}
1489 UNAME_SYSTEM = ${UNAME_SYSTEM}
1490 UNAME_VERSION = ${UNAME_VERSION}
1491 EOF
1492
1493 exit 1
1494
1495 # Local variables:
1496 # eval: (add-hook 'write-file-hooks 'time-stamp)
1497 # time-stamp-start: "timestamp='"
1498 # time-stamp-format: "%:y-%02m-%02d"
1499 # time-stamp-end: "'"
1500 # End:
+0
-1705
config.sub less more
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-11-20'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
27 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted GNU ChangeLog entry.
35 #
36 # Configuration subroutine to validate and canonicalize a configuration type.
37 # Supply the specified configuration type as an argument.
38 # If it is invalid, we print an error message on stderr and exit with code 1.
39 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # You can get the latest version of this script from:
42 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
43
44 # This file is supposed to be the same for all GNU packages
45 # and recognize all the CPU types, system types and aliases
46 # that are meaningful with *any* GNU software.
47 # Each package is responsible for reporting which valid configurations
48 # it does not support. The user should be able to distinguish
49 # a failure to support a valid configuration from a meaningless
50 # configuration.
51
52 # The goal of this file is to map all the various variations of a given
53 # machine specification into a single specification in the form:
54 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
55 # or in some cases, the newer four-part form:
56 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
57 # It is wrong to echo any other type of specification.
58
59 me=`echo "$0" | sed -e 's,.*/,,'`
60
61 usage="\
62 Usage: $0 [OPTION] CPU-MFR-OPSYS
63 $0 [OPTION] ALIAS
64
65 Canonicalize a configuration name.
66
67 Operation modes:
68 -h, --help print this help, then exit
69 -t, --time-stamp print date of last modification, then exit
70 -v, --version print version number, then exit
71
72 Report bugs and patches to <config-patches@gnu.org>."
73
74 version="\
75 GNU config.sub ($timestamp)
76
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
78 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
79
80 This is free software; see the source for copying conditions. There is NO
81 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
82
83 help="
84 Try \`$me --help' for more information."
85
86 # Parse command line
87 while test $# -gt 0 ; do
88 case $1 in
89 --time-stamp | --time* | -t )
90 echo "$timestamp" ; exit ;;
91 --version | -v )
92 echo "$version" ; exit ;;
93 --help | --h* | -h )
94 echo "$usage"; exit ;;
95 -- ) # Stop option processing
96 shift; break ;;
97 - ) # Use stdin as input.
98 break ;;
99 -* )
100 echo "$me: invalid option $1$help"
101 exit 1 ;;
102
103 *local*)
104 # First pass through any local machine types.
105 echo $1
106 exit ;;
107
108 * )
109 break ;;
110 esac
111 done
112
113 case $# in
114 0) echo "$me: missing argument$help" >&2
115 exit 1;;
116 1) ;;
117 *) echo "$me: too many arguments$help" >&2
118 exit 1;;
119 esac
120
121 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
122 # Here we must recognize all the valid KERNEL-OS combinations.
123 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
124 case $maybe_os in
125 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
126 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
127 kopensolaris*-gnu* | \
128 storm-chaos* | os2-emx* | rtmk-nova*)
129 os=-$maybe_os
130 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
131 ;;
132 *)
133 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
134 if [ $basic_machine != $1 ]
135 then os=`echo $1 | sed 's/.*-/-/'`
136 else os=; fi
137 ;;
138 esac
139
140 ### Let's recognize common machines as not being operating systems so
141 ### that things like config.sub decstation-3100 work. We also
142 ### recognize some manufacturers as not being operating systems, so we
143 ### can provide default operating systems below.
144 case $os in
145 -sun*os*)
146 # Prevent following clause from handling this invalid input.
147 ;;
148 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
149 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
150 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
151 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
152 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
153 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
154 -apple | -axis | -knuth | -cray | -microblaze)
155 os=
156 basic_machine=$1
157 ;;
158 -bluegene*)
159 os=-cnk
160 ;;
161 -sim | -cisco | -oki | -wec | -winbond)
162 os=
163 basic_machine=$1
164 ;;
165 -scout)
166 ;;
167 -wrs)
168 os=-vxworks
169 basic_machine=$1
170 ;;
171 -chorusos*)
172 os=-chorusos
173 basic_machine=$1
174 ;;
175 -chorusrdb)
176 os=-chorusrdb
177 basic_machine=$1
178 ;;
179 -hiux*)
180 os=-hiuxwe2
181 ;;
182 -sco6)
183 os=-sco5v6
184 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
185 ;;
186 -sco5)
187 os=-sco3.2v5
188 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
189 ;;
190 -sco4)
191 os=-sco3.2v4
192 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
193 ;;
194 -sco3.2.[4-9]*)
195 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
196 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
197 ;;
198 -sco3.2v[4-9]*)
199 # Don't forget version if it is 3.2v4 or newer.
200 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
201 ;;
202 -sco5v6*)
203 # Don't forget version if it is 3.2v4 or newer.
204 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -sco*)
207 os=-sco3.2v2
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -udk*)
211 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
212 ;;
213 -isc)
214 os=-isc2.2
215 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
216 ;;
217 -clix*)
218 basic_machine=clipper-intergraph
219 ;;
220 -isc*)
221 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
222 ;;
223 -lynx*)
224 os=-lynxos
225 ;;
226 -ptx*)
227 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
228 ;;
229 -windowsnt*)
230 os=`echo $os | sed -e 's/windowsnt/winnt/'`
231 ;;
232 -psos*)
233 os=-psos
234 ;;
235 -mint | -mint[0-9]*)
236 basic_machine=m68k-atari
237 os=-mint
238 ;;
239 esac
240
241 # Decode aliases for certain CPU-COMPANY combinations.
242 case $basic_machine in
243 # Recognize the basic CPU types without company name.
244 # Some are omitted here because they have special meanings below.
245 1750a | 580 \
246 | a29k \
247 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
248 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
249 | am33_2.0 \
250 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
251 | bfin \
252 | c4x | clipper \
253 | d10v | d30v | dlx | dsp16xx \
254 | fido | fr30 | frv \
255 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
256 | i370 | i860 | i960 | ia64 \
257 | ip2k | iq2000 \
258 | lm32 \
259 | m32c | m32r | m32rle | m68000 | m68k | m88k \
260 | maxq | mb | microblaze | mcore | mep | metag \
261 | mips | mipsbe | mipseb | mipsel | mipsle \
262 | mips16 \
263 | mips64 | mips64el \
264 | mips64octeon | mips64octeonel \
265 | mips64orion | mips64orionel \
266 | mips64r5900 | mips64r5900el \
267 | mips64vr | mips64vrel \
268 | mips64vr4100 | mips64vr4100el \
269 | mips64vr4300 | mips64vr4300el \
270 | mips64vr5000 | mips64vr5000el \
271 | mips64vr5900 | mips64vr5900el \
272 | mipsisa32 | mipsisa32el \
273 | mipsisa32r2 | mipsisa32r2el \
274 | mipsisa64 | mipsisa64el \
275 | mipsisa64r2 | mipsisa64r2el \
276 | mipsisa64sb1 | mipsisa64sb1el \
277 | mipsisa64sr71k | mipsisa64sr71kel \
278 | mipstx39 | mipstx39el \
279 | mn10200 | mn10300 \
280 | moxie \
281 | mt \
282 | msp430 \
283 | nios | nios2 \
284 | ns16k | ns32k \
285 | or32 \
286 | pdp10 | pdp11 | pj | pjl \
287 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
288 | pyramid \
289 | rx \
290 | score \
291 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
292 | sh64 | sh64le \
293 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
294 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
295 | spu | strongarm \
296 | tahoe | thumb | tic4x | tic80 | tron \
297 | ubicom32 \
298 | v850 | v850e \
299 | we32k \
300 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
301 | z8k | z80)
302 basic_machine=$basic_machine-unknown
303 ;;
304 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
305 # Motorola 68HC11/12.
306 basic_machine=$basic_machine-unknown
307 os=-none
308 ;;
309 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
310 ;;
311 ms1)
312 basic_machine=mt-unknown
313 ;;
314
315 # We use `pc' rather than `unknown'
316 # because (1) that's what they normally are, and
317 # (2) the word "unknown" tends to confuse beginning users.
318 i*86 | x86_64)
319 basic_machine=$basic_machine-pc
320 ;;
321 # Object if more than one company name word.
322 *-*-*)
323 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
324 exit 1
325 ;;
326 # Recognize the basic CPU types with company name.
327 580-* \
328 | a29k-* \
329 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
330 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
331 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
332 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
333 | avr-* | avr32-* \
334 | bfin-* | bs2000-* \
335 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
336 | clipper-* | craynv-* | cydra-* \
337 | d10v-* | d30v-* | dlx-* \
338 | elxsi-* \
339 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
340 | h8300-* | h8500-* \
341 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
342 | i*86-* | i860-* | i960-* | ia64-* \
343 | ip2k-* | iq2000-* \
344 | lm32-* \
345 | m32c-* | m32r-* | m32rle-* \
346 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
347 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
348 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
349 | mips16-* \
350 | mips64-* | mips64el-* \
351 | mips64octeon-* | mips64octeonel-* \
352 | mips64orion-* | mips64orionel-* \
353 | mips64r5900-* | mips64r5900el-* \
354 | mips64vr-* | mips64vrel-* \
355 | mips64vr4100-* | mips64vr4100el-* \
356 | mips64vr4300-* | mips64vr4300el-* \
357 | mips64vr5000-* | mips64vr5000el-* \
358 | mips64vr5900-* | mips64vr5900el-* \
359 | mipsisa32-* | mipsisa32el-* \
360 | mipsisa32r2-* | mipsisa32r2el-* \
361 | mipsisa64-* | mipsisa64el-* \
362 | mipsisa64r2-* | mipsisa64r2el-* \
363 | mipsisa64sb1-* | mipsisa64sb1el-* \
364 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
365 | mipstx39-* | mipstx39el-* \
366 | mmix-* \
367 | mt-* \
368 | msp430-* \
369 | nios-* | nios2-* \
370 | none-* | np1-* | ns16k-* | ns32k-* \
371 | orion-* \
372 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
373 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
374 | pyramid-* \
375 | romp-* | rs6000-* | rx-* \
376 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
377 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
378 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
379 | sparclite-* \
380 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
381 | tahoe-* | thumb-* \
382 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
383 | tron-* \
384 | ubicom32-* \
385 | v850-* | v850e-* | vax-* \
386 | we32k-* \
387 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
388 | xstormy16-* | xtensa*-* \
389 | ymp-* \
390 | z8k-* | z80-*)
391 ;;
392 # Recognize the basic CPU types without company name, with glob match.
393 xtensa*)
394 basic_machine=$basic_machine-unknown
395 ;;
396 # Recognize the various machine names and aliases which stand
397 # for a CPU type and a company and sometimes even an OS.
398 386bsd)
399 basic_machine=i386-unknown
400 os=-bsd
401 ;;
402 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
403 basic_machine=m68000-att
404 ;;
405 3b*)
406 basic_machine=we32k-att
407 ;;
408 a29khif)
409 basic_machine=a29k-amd
410 os=-udi
411 ;;
412 abacus)
413 basic_machine=abacus-unknown
414 ;;
415 adobe68k)
416 basic_machine=m68010-adobe
417 os=-scout
418 ;;
419 alliant | fx80)
420 basic_machine=fx80-alliant
421 ;;
422 altos | altos3068)
423 basic_machine=m68k-altos
424 ;;
425 am29k)
426 basic_machine=a29k-none
427 os=-bsd
428 ;;
429 amd64)
430 basic_machine=x86_64-pc
431 ;;
432 amd64-*)
433 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
434 ;;
435 amdahl)
436 basic_machine=580-amdahl
437 os=-sysv
438 ;;
439 amiga | amiga-*)
440 basic_machine=m68k-unknown
441 ;;
442 amigaos | amigados)
443 basic_machine=m68k-unknown
444 os=-amigaos
445 ;;
446 amigaunix | amix)
447 basic_machine=m68k-unknown
448 os=-sysv4
449 ;;
450 apollo68)
451 basic_machine=m68k-apollo
452 os=-sysv
453 ;;
454 apollo68bsd)
455 basic_machine=m68k-apollo
456 os=-bsd
457 ;;
458 aros)
459 basic_machine=i386-pc
460 os=-aros
461 ;;
462 aux)
463 basic_machine=m68k-apple
464 os=-aux
465 ;;
466 balance)
467 basic_machine=ns32k-sequent
468 os=-dynix
469 ;;
470 blackfin)
471 basic_machine=bfin-unknown
472 os=-linux
473 ;;
474 blackfin-*)
475 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
476 os=-linux
477 ;;
478 bluegene*)
479 basic_machine=powerpc-ibm
480 os=-cnk
481 ;;
482 c90)
483 basic_machine=c90-cray
484 os=-unicos
485 ;;
486 cegcc)
487 basic_machine=arm-unknown
488 os=-cegcc
489 ;;
490 convex-c1)
491 basic_machine=c1-convex
492 os=-bsd
493 ;;
494 convex-c2)
495 basic_machine=c2-convex
496 os=-bsd
497 ;;
498 convex-c32)
499 basic_machine=c32-convex
500 os=-bsd
501 ;;
502 convex-c34)
503 basic_machine=c34-convex
504 os=-bsd
505 ;;
506 convex-c38)
507 basic_machine=c38-convex
508 os=-bsd
509 ;;
510 cray | j90)
511 basic_machine=j90-cray
512 os=-unicos
513 ;;
514 craynv)
515 basic_machine=craynv-cray
516 os=-unicosmp
517 ;;
518 cr16)
519 basic_machine=cr16-unknown
520 os=-elf
521 ;;
522 crds | unos)
523 basic_machine=m68k-crds
524 ;;
525 crisv32 | crisv32-* | etraxfs*)
526 basic_machine=crisv32-axis
527 ;;
528 cris | cris-* | etrax*)
529 basic_machine=cris-axis
530 ;;
531 crx)
532 basic_machine=crx-unknown
533 os=-elf
534 ;;
535 da30 | da30-*)
536 basic_machine=m68k-da30
537 ;;
538 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
539 basic_machine=mips-dec
540 ;;
541 decsystem10* | dec10*)
542 basic_machine=pdp10-dec
543 os=-tops10
544 ;;
545 decsystem20* | dec20*)
546 basic_machine=pdp10-dec
547 os=-tops20
548 ;;
549 delta | 3300 | motorola-3300 | motorola-delta \
550 | 3300-motorola | delta-motorola)
551 basic_machine=m68k-motorola
552 ;;
553 delta88)
554 basic_machine=m88k-motorola
555 os=-sysv3
556 ;;
557 dicos)
558 basic_machine=i686-pc
559 os=-dicos
560 ;;
561 djgpp)
562 basic_machine=i586-pc
563 os=-msdosdjgpp
564 ;;
565 dpx20 | dpx20-*)
566 basic_machine=rs6000-bull
567 os=-bosx
568 ;;
569 dpx2* | dpx2*-bull)
570 basic_machine=m68k-bull
571 os=-sysv3
572 ;;
573 ebmon29k)
574 basic_machine=a29k-amd
575 os=-ebmon
576 ;;
577 elxsi)
578 basic_machine=elxsi-elxsi
579 os=-bsd
580 ;;
581 encore | umax | mmax)
582 basic_machine=ns32k-encore
583 ;;
584 es1800 | OSE68k | ose68k | ose | OSE)
585 basic_machine=m68k-ericsson
586 os=-ose
587 ;;
588 fx2800)
589 basic_machine=i860-alliant
590 ;;
591 genix)
592 basic_machine=ns32k-ns
593 ;;
594 gmicro)
595 basic_machine=tron-gmicro
596 os=-sysv
597 ;;
598 go32)
599 basic_machine=i386-pc
600 os=-go32
601 ;;
602 h3050r* | hiux*)
603 basic_machine=hppa1.1-hitachi
604 os=-hiuxwe2
605 ;;
606 h8300hms)
607 basic_machine=h8300-hitachi
608 os=-hms
609 ;;
610 h8300xray)
611 basic_machine=h8300-hitachi
612 os=-xray
613 ;;
614 h8500hms)
615 basic_machine=h8500-hitachi
616 os=-hms
617 ;;
618 harris)
619 basic_machine=m88k-harris
620 os=-sysv3
621 ;;
622 hp300-*)
623 basic_machine=m68k-hp
624 ;;
625 hp300bsd)
626 basic_machine=m68k-hp
627 os=-bsd
628 ;;
629 hp300hpux)
630 basic_machine=m68k-hp
631 os=-hpux
632 ;;
633 hp3k9[0-9][0-9] | hp9[0-9][0-9])
634 basic_machine=hppa1.0-hp
635 ;;
636 hp9k2[0-9][0-9] | hp9k31[0-9])
637 basic_machine=m68000-hp
638 ;;
639 hp9k3[2-9][0-9])
640 basic_machine=m68k-hp
641 ;;
642 hp9k6[0-9][0-9] | hp6[0-9][0-9])
643 basic_machine=hppa1.0-hp
644 ;;
645 hp9k7[0-79][0-9] | hp7[0-79][0-9])
646 basic_machine=hppa1.1-hp
647 ;;
648 hp9k78[0-9] | hp78[0-9])
649 # FIXME: really hppa2.0-hp
650 basic_machine=hppa1.1-hp
651 ;;
652 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
653 # FIXME: really hppa2.0-hp
654 basic_machine=hppa1.1-hp
655 ;;
656 hp9k8[0-9][13679] | hp8[0-9][13679])
657 basic_machine=hppa1.1-hp
658 ;;
659 hp9k8[0-9][0-9] | hp8[0-9][0-9])
660 basic_machine=hppa1.0-hp
661 ;;
662 hppa-next)
663 os=-nextstep3
664 ;;
665 hppaosf)
666 basic_machine=hppa1.1-hp
667 os=-osf
668 ;;
669 hppro)
670 basic_machine=hppa1.1-hp
671 os=-proelf
672 ;;
673 i370-ibm* | ibm*)
674 basic_machine=i370-ibm
675 ;;
676 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
677 i*86v32)
678 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
679 os=-sysv32
680 ;;
681 i*86v4*)
682 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
683 os=-sysv4
684 ;;
685 i*86v)
686 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
687 os=-sysv
688 ;;
689 i*86sol2)
690 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
691 os=-solaris2
692 ;;
693 i386mach)
694 basic_machine=i386-mach
695 os=-mach
696 ;;
697 i386-vsta | vsta)
698 basic_machine=i386-unknown
699 os=-vsta
700 ;;
701 iris | iris4d)
702 basic_machine=mips-sgi
703 case $os in
704 -irix*)
705 ;;
706 *)
707 os=-irix4
708 ;;
709 esac
710 ;;
711 isi68 | isi)
712 basic_machine=m68k-isi
713 os=-sysv
714 ;;
715 m68knommu)
716 basic_machine=m68k-unknown
717 os=-linux
718 ;;
719 m68knommu-*)
720 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
721 os=-linux
722 ;;
723 m88k-omron*)
724 basic_machine=m88k-omron
725 ;;
726 magnum | m3230)
727 basic_machine=mips-mips
728 os=-sysv
729 ;;
730 merlin)
731 basic_machine=ns32k-utek
732 os=-sysv
733 ;;
734 microblaze)
735 basic_machine=microblaze-xilinx
736 ;;
737 mingw32)
738 basic_machine=i386-pc
739 os=-mingw32
740 ;;
741 mingw32ce)
742 basic_machine=arm-unknown
743 os=-mingw32ce
744 ;;
745 miniframe)
746 basic_machine=m68000-convergent
747 ;;
748 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
749 basic_machine=m68k-atari
750 os=-mint
751 ;;
752 mips3*-*)
753 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
754 ;;
755 mips3*)
756 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
757 ;;
758 monitor)
759 basic_machine=m68k-rom68k
760 os=-coff
761 ;;
762 morphos)
763 basic_machine=powerpc-unknown
764 os=-morphos
765 ;;
766 msdos)
767 basic_machine=i386-pc
768 os=-msdos
769 ;;
770 ms1-*)
771 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
772 ;;
773 mvs)
774 basic_machine=i370-ibm
775 os=-mvs
776 ;;
777 ncr3000)
778 basic_machine=i486-ncr
779 os=-sysv4
780 ;;
781 netbsd386)
782 basic_machine=i386-unknown
783 os=-netbsd
784 ;;
785 netwinder)
786 basic_machine=armv4l-rebel
787 os=-linux
788 ;;
789 news | news700 | news800 | news900)
790 basic_machine=m68k-sony
791 os=-newsos
792 ;;
793 news1000)
794 basic_machine=m68030-sony
795 os=-newsos
796 ;;
797 news-3600 | risc-news)
798 basic_machine=mips-sony
799 os=-newsos
800 ;;
801 necv70)
802 basic_machine=v70-nec
803 os=-sysv
804 ;;
805 next | m*-next )
806 basic_machine=m68k-next
807 case $os in
808 -nextstep* )
809 ;;
810 -ns2*)
811 os=-nextstep2
812 ;;
813 *)
814 os=-nextstep3
815 ;;
816 esac
817 ;;
818 nh3000)
819 basic_machine=m68k-harris
820 os=-cxux
821 ;;
822 nh[45]000)
823 basic_machine=m88k-harris
824 os=-cxux
825 ;;
826 nindy960)
827 basic_machine=i960-intel
828 os=-nindy
829 ;;
830 mon960)
831 basic_machine=i960-intel
832 os=-mon960
833 ;;
834 nonstopux)
835 basic_machine=mips-compaq
836 os=-nonstopux
837 ;;
838 np1)
839 basic_machine=np1-gould
840 ;;
841 nsr-tandem)
842 basic_machine=nsr-tandem
843 ;;
844 op50n-* | op60c-*)
845 basic_machine=hppa1.1-oki
846 os=-proelf
847 ;;
848 openrisc | openrisc-*)
849 basic_machine=or32-unknown
850 ;;
851 os400)
852 basic_machine=powerpc-ibm
853 os=-os400
854 ;;
855 OSE68000 | ose68000)
856 basic_machine=m68000-ericsson
857 os=-ose
858 ;;
859 os68k)
860 basic_machine=m68k-none
861 os=-os68k
862 ;;
863 pa-hitachi)
864 basic_machine=hppa1.1-hitachi
865 os=-hiuxwe2
866 ;;
867 paragon)
868 basic_machine=i860-intel
869 os=-osf
870 ;;
871 parisc)
872 basic_machine=hppa-unknown
873 os=-linux
874 ;;
875 parisc-*)
876 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
877 os=-linux
878 ;;
879 pbd)
880 basic_machine=sparc-tti
881 ;;
882 pbb)
883 basic_machine=m68k-tti
884 ;;
885 pc532 | pc532-*)
886 basic_machine=ns32k-pc532
887 ;;
888 pc98)
889 basic_machine=i386-pc
890 ;;
891 pc98-*)
892 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
893 ;;
894 pentium | p5 | k5 | k6 | nexgen | viac3)
895 basic_machine=i586-pc
896 ;;
897 pentiumpro | p6 | 6x86 | athlon | athlon_*)
898 basic_machine=i686-pc
899 ;;
900 pentiumii | pentium2 | pentiumiii | pentium3)
901 basic_machine=i686-pc
902 ;;
903 pentium4)
904 basic_machine=i786-pc
905 ;;
906 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
907 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
908 ;;
909 pentiumpro-* | p6-* | 6x86-* | athlon-*)
910 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
911 ;;
912 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
913 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
914 ;;
915 pentium4-*)
916 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
917 ;;
918 pn)
919 basic_machine=pn-gould
920 ;;
921 power) basic_machine=power-ibm
922 ;;
923 ppc) basic_machine=powerpc-unknown
924 ;;
925 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
926 ;;
927 ppcle | powerpclittle | ppc-le | powerpc-little)
928 basic_machine=powerpcle-unknown
929 ;;
930 ppcle-* | powerpclittle-*)
931 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
932 ;;
933 ppc64) basic_machine=powerpc64-unknown
934 ;;
935 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
936 ;;
937 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
938 basic_machine=powerpc64le-unknown
939 ;;
940 ppc64le-* | powerpc64little-*)
941 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
942 ;;
943 ps2)
944 basic_machine=i386-ibm
945 ;;
946 pw32)
947 basic_machine=i586-unknown
948 os=-pw32
949 ;;
950 rdos)
951 basic_machine=i386-pc
952 os=-rdos
953 ;;
954 rom68k)
955 basic_machine=m68k-rom68k
956 os=-coff
957 ;;
958 rm[46]00)
959 basic_machine=mips-siemens
960 ;;
961 rtpc | rtpc-*)
962 basic_machine=romp-ibm
963 ;;
964 s390 | s390-*)
965 basic_machine=s390-ibm
966 ;;
967 s390x | s390x-*)
968 basic_machine=s390x-ibm
969 ;;
970 sa29200)
971 basic_machine=a29k-amd
972 os=-udi
973 ;;
974 sb1)
975 basic_machine=mipsisa64sb1-unknown
976 ;;
977 sb1el)
978 basic_machine=mipsisa64sb1el-unknown
979 ;;
980 sde)
981 basic_machine=mipsisa32-sde
982 os=-elf
983 ;;
984 sei)
985 basic_machine=mips-sei
986 os=-seiux
987 ;;
988 sequent)
989 basic_machine=i386-sequent
990 ;;
991 sh)
992 basic_machine=sh-hitachi
993 os=-hms
994 ;;
995 sh5el)
996 basic_machine=sh5le-unknown
997 ;;
998 sh64)
999 basic_machine=sh64-unknown
1000 ;;
1001 sparclite-wrs | simso-wrs)
1002 basic_machine=sparclite-wrs
1003 os=-vxworks
1004 ;;
1005 sps7)
1006 basic_machine=m68k-bull
1007 os=-sysv2
1008 ;;
1009 spur)
1010 basic_machine=spur-unknown
1011 ;;
1012 st2000)
1013 basic_machine=m68k-tandem
1014 ;;
1015 stratus)
1016 basic_machine=i860-stratus
1017 os=-sysv4
1018 ;;
1019 sun2)
1020 basic_machine=m68000-sun
1021 ;;
1022 sun2os3)
1023 basic_machine=m68000-sun
1024 os=-sunos3
1025 ;;
1026 sun2os4)
1027 basic_machine=m68000-sun
1028 os=-sunos4
1029 ;;
1030 sun3os3)
1031 basic_machine=m68k-sun
1032 os=-sunos3
1033 ;;
1034 sun3os4)
1035 basic_machine=m68k-sun
1036 os=-sunos4
1037 ;;
1038 sun4os3)
1039 basic_machine=sparc-sun
1040 os=-sunos3
1041 ;;
1042 sun4os4)
1043 basic_machine=sparc-sun
1044 os=-sunos4
1045 ;;
1046 sun4sol2)
1047 basic_machine=sparc-sun
1048 os=-solaris2
1049 ;;
1050 sun3 | sun3-*)
1051 basic_machine=m68k-sun
1052 ;;
1053 sun4)
1054 basic_machine=sparc-sun
1055 ;;
1056 sun386 | sun386i | roadrunner)
1057 basic_machine=i386-sun
1058 ;;
1059 sv1)
1060 basic_machine=sv1-cray
1061 os=-unicos
1062 ;;
1063 symmetry)
1064 basic_machine=i386-sequent
1065 os=-dynix
1066 ;;
1067 t3e)
1068 basic_machine=alphaev5-cray
1069 os=-unicos
1070 ;;
1071 t90)
1072 basic_machine=t90-cray
1073 os=-unicos
1074 ;;
1075 tic54x | c54x*)
1076 basic_machine=tic54x-unknown
1077 os=-coff
1078 ;;
1079 tic55x | c55x*)
1080 basic_machine=tic55x-unknown
1081 os=-coff
1082 ;;
1083 tic6x | c6x*)
1084 basic_machine=tic6x-unknown
1085 os=-coff
1086 ;;
1087 tile*)
1088 basic_machine=tile-unknown
1089 os=-linux-gnu
1090 ;;
1091 tx39)
1092 basic_machine=mipstx39-unknown
1093 ;;
1094 tx39el)
1095 basic_machine=mipstx39el-unknown
1096 ;;
1097 toad1)
1098 basic_machine=pdp10-xkl
1099 os=-tops20
1100 ;;
1101 tower | tower-32)
1102 basic_machine=m68k-ncr
1103 ;;
1104 tpf)
1105 basic_machine=s390x-ibm
1106 os=-tpf
1107 ;;
1108 udi29k)
1109 basic_machine=a29k-amd
1110 os=-udi
1111 ;;
1112 ultra3)
1113 basic_machine=a29k-nyu
1114 os=-sym1
1115 ;;
1116 v810 | necv810)
1117 basic_machine=v810-nec
1118 os=-none
1119 ;;
1120 vaxv)
1121 basic_machine=vax-dec
1122 os=-sysv
1123 ;;
1124 vms)
1125 basic_machine=vax-dec
1126 os=-vms
1127 ;;
1128 vpp*|vx|vx-*)
1129 basic_machine=f301-fujitsu
1130 ;;
1131 vxworks960)
1132 basic_machine=i960-wrs
1133 os=-vxworks
1134 ;;
1135 vxworks68)
1136 basic_machine=m68k-wrs
1137 os=-vxworks
1138 ;;
1139 vxworks29k)
1140 basic_machine=a29k-wrs
1141 os=-vxworks
1142 ;;
1143 w65*)
1144 basic_machine=w65-wdc
1145 os=-none
1146 ;;
1147 w89k-*)
1148 basic_machine=hppa1.1-winbond
1149 os=-proelf
1150 ;;
1151 xbox)
1152 basic_machine=i686-pc
1153 os=-mingw32
1154 ;;
1155 xps | xps100)
1156 basic_machine=xps100-honeywell
1157 ;;
1158 ymp)
1159 basic_machine=ymp-cray
1160 os=-unicos
1161 ;;
1162 z8k-*-coff)
1163 basic_machine=z8k-unknown
1164 os=-sim
1165 ;;
1166 z80-*-coff)
1167 basic_machine=z80-unknown
1168 os=-sim
1169 ;;
1170 none)
1171 basic_machine=none-none
1172 os=-none
1173 ;;
1174
1175 # Here we handle the default manufacturer of certain CPU types. It is in
1176 # some cases the only manufacturer, in others, it is the most popular.
1177 w89k)
1178 basic_machine=hppa1.1-winbond
1179 ;;
1180 op50n)
1181 basic_machine=hppa1.1-oki
1182 ;;
1183 op60c)
1184 basic_machine=hppa1.1-oki
1185 ;;
1186 romp)
1187 basic_machine=romp-ibm
1188 ;;
1189 mmix)
1190 basic_machine=mmix-knuth
1191 ;;
1192 rs6000)
1193 basic_machine=rs6000-ibm
1194 ;;
1195 vax)
1196 basic_machine=vax-dec
1197 ;;
1198 pdp10)
1199 # there are many clones, so DEC is not a safe bet
1200 basic_machine=pdp10-unknown
1201 ;;
1202 pdp11)
1203 basic_machine=pdp11-dec
1204 ;;
1205 we32k)
1206 basic_machine=we32k-att
1207 ;;
1208 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1209 basic_machine=sh-unknown
1210 ;;
1211 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1212 basic_machine=sparc-sun
1213 ;;
1214 cydra)
1215 basic_machine=cydra-cydrome
1216 ;;
1217 orion)
1218 basic_machine=orion-highlevel
1219 ;;
1220 orion105)
1221 basic_machine=clipper-highlevel
1222 ;;
1223 mac | mpw | mac-mpw)
1224 basic_machine=m68k-apple
1225 ;;
1226 pmac | pmac-mpw)
1227 basic_machine=powerpc-apple
1228 ;;
1229 *-unknown)
1230 # Make sure to match an already-canonicalized machine name.
1231 ;;
1232 *)
1233 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1234 exit 1
1235 ;;
1236 esac
1237
1238 # Here we canonicalize certain aliases for manufacturers.
1239 case $basic_machine in
1240 *-digital*)
1241 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1242 ;;
1243 *-commodore*)
1244 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1245 ;;
1246 *)
1247 ;;
1248 esac
1249
1250 # Decode manufacturer-specific aliases for certain operating systems.
1251
1252 if [ x"$os" != x"" ]
1253 then
1254 case $os in
1255 # First match some system type aliases
1256 # that might get confused with valid system types.
1257 # -solaris* is a basic system type, with this one exception.
1258 -auroraux)
1259 os=-auroraux
1260 ;;
1261 -solaris1 | -solaris1.*)
1262 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1263 ;;
1264 -solaris)
1265 os=-solaris2
1266 ;;
1267 -svr4*)
1268 os=-sysv4
1269 ;;
1270 -unixware*)
1271 os=-sysv4.2uw
1272 ;;
1273 -gnu/linux*)
1274 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1275 ;;
1276 # First accept the basic system types.
1277 # The portable systems comes first.
1278 # Each alternative MUST END IN A *, to match a version number.
1279 # -sysv* is not here because it comes later, after sysvr4.
1280 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1281 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1282 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1283 | -sym* | -kopensolaris* \
1284 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1285 | -aos* | -aros* \
1286 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1287 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1288 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1289 | -openbsd* | -solidbsd* \
1290 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1291 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1292 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1293 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1294 | -chorusos* | -chorusrdb* | -cegcc* \
1295 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1296 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1297 | -uxpv* | -beos* | -mpeix* | -udk* \
1298 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1299 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1300 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1301 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1302 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1303 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1304 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1305 # Remember, each alternative MUST END IN *, to match a version number.
1306 ;;
1307 -qnx*)
1308 case $basic_machine in
1309 x86-* | i*86-*)
1310 ;;
1311 *)
1312 os=-nto$os
1313 ;;
1314 esac
1315 ;;
1316 -nto-qnx*)
1317 ;;
1318 -nto*)
1319 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1320 ;;
1321 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1322 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1323 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1324 ;;
1325 -mac*)
1326 os=`echo $os | sed -e 's|mac|macos|'`
1327 ;;
1328 -linux-dietlibc)
1329 os=-linux-dietlibc
1330 ;;
1331 -linux*)
1332 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1333 ;;
1334 -sunos5*)
1335 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1336 ;;
1337 -sunos6*)
1338 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1339 ;;
1340 -opened*)
1341 os=-openedition
1342 ;;
1343 -os400*)
1344 os=-os400
1345 ;;
1346 -wince*)
1347 os=-wince
1348 ;;
1349 -osfrose*)
1350 os=-osfrose
1351 ;;
1352 -osf*)
1353 os=-osf
1354 ;;
1355 -utek*)
1356 os=-bsd
1357 ;;
1358 -dynix*)
1359 os=-bsd
1360 ;;
1361 -acis*)
1362 os=-aos
1363 ;;
1364 -atheos*)
1365 os=-atheos
1366 ;;
1367 -syllable*)
1368 os=-syllable
1369 ;;
1370 -386bsd)
1371 os=-bsd
1372 ;;
1373 -ctix* | -uts*)
1374 os=-sysv
1375 ;;
1376 -nova*)
1377 os=-rtmk-nova
1378 ;;
1379 -ns2 )
1380 os=-nextstep2
1381 ;;
1382 -nsk*)
1383 os=-nsk
1384 ;;
1385 # Preserve the version number of sinix5.
1386 -sinix5.*)
1387 os=`echo $os | sed -e 's|sinix|sysv|'`
1388 ;;
1389 -sinix*)
1390 os=-sysv4
1391 ;;
1392 -tpf*)
1393 os=-tpf
1394 ;;
1395 -triton*)
1396 os=-sysv3
1397 ;;
1398 -oss*)
1399 os=-sysv3
1400 ;;
1401 -svr4)
1402 os=-sysv4
1403 ;;
1404 -svr3)
1405 os=-sysv3
1406 ;;
1407 -sysvr4)
1408 os=-sysv4
1409 ;;
1410 # This must come after -sysvr4.
1411 -sysv*)
1412 ;;
1413 -ose*)
1414 os=-ose
1415 ;;
1416 -es1800*)
1417 os=-ose
1418 ;;
1419 -xenix)
1420 os=-xenix
1421 ;;
1422 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1423 os=-mint
1424 ;;
1425 -aros*)
1426 os=-aros
1427 ;;
1428 -kaos*)
1429 os=-kaos
1430 ;;
1431 -zvmoe)
1432 os=-zvmoe
1433 ;;
1434 -dicos*)
1435 os=-dicos
1436 ;;
1437 -none)
1438 ;;
1439 *)
1440 # Get rid of the `-' at the beginning of $os.
1441 os=`echo $os | sed 's/[^-]*-//'`
1442 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1443 exit 1
1444 ;;
1445 esac
1446 else
1447
1448 # Here we handle the default operating systems that come with various machines.
1449 # The value should be what the vendor currently ships out the door with their
1450 # machine or put another way, the most popular os provided with the machine.
1451
1452 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1453 # "-sun"), then you have to tell the case statement up towards the top
1454 # that MANUFACTURER isn't an operating system. Otherwise, code above
1455 # will signal an error saying that MANUFACTURER isn't an operating
1456 # system, and we'll never get to this point.
1457
1458 case $basic_machine in
1459 score-*)
1460 os=-elf
1461 ;;
1462 spu-*)
1463 os=-elf
1464 ;;
1465 *-acorn)
1466 os=-riscix1.2
1467 ;;
1468 arm*-rebel)
1469 os=-linux
1470 ;;
1471 arm*-semi)
1472 os=-aout
1473 ;;
1474 c4x-* | tic4x-*)
1475 os=-coff
1476 ;;
1477 # This must come before the *-dec entry.
1478 pdp10-*)
1479 os=-tops20
1480 ;;
1481 pdp11-*)
1482 os=-none
1483 ;;
1484 *-dec | vax-*)
1485 os=-ultrix4.2
1486 ;;
1487 m68*-apollo)
1488 os=-domain
1489 ;;
1490 i386-sun)
1491 os=-sunos4.0.2
1492 ;;
1493 m68000-sun)
1494 os=-sunos3
1495 # This also exists in the configure program, but was not the
1496 # default.
1497 # os=-sunos4
1498 ;;
1499 m68*-cisco)
1500 os=-aout
1501 ;;
1502 mep-*)
1503 os=-elf
1504 ;;
1505 mips*-cisco)
1506 os=-elf
1507 ;;
1508 mips*-*)
1509 os=-elf
1510 ;;
1511 or32-*)
1512 os=-coff
1513 ;;
1514 *-tti) # must be before sparc entry or we get the wrong os.
1515 os=-sysv3
1516 ;;
1517 sparc-* | *-sun)
1518 os=-sunos4.1.1
1519 ;;
1520 *-be)
1521 os=-beos
1522 ;;
1523 *-haiku)
1524 os=-haiku
1525 ;;
1526 *-ibm)
1527 os=-aix
1528 ;;
1529 *-knuth)
1530 os=-mmixware
1531 ;;
1532 *-wec)
1533 os=-proelf
1534 ;;
1535 *-winbond)
1536 os=-proelf
1537 ;;
1538 *-oki)
1539 os=-proelf
1540 ;;
1541 *-hp)
1542 os=-hpux
1543 ;;
1544 *-hitachi)
1545 os=-hiux
1546 ;;
1547 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1548 os=-sysv
1549 ;;
1550 *-cbm)
1551 os=-amigaos
1552 ;;
1553 *-dg)
1554 os=-dgux
1555 ;;
1556 *-dolphin)
1557 os=-sysv3
1558 ;;
1559 m68k-ccur)
1560 os=-rtu
1561 ;;
1562 m88k-omron*)
1563 os=-luna
1564 ;;
1565 *-next )
1566 os=-nextstep
1567 ;;
1568 *-sequent)
1569 os=-ptx
1570 ;;
1571 *-crds)
1572 os=-unos
1573 ;;
1574 *-ns)
1575 os=-genix
1576 ;;
1577 i370-*)
1578 os=-mvs
1579 ;;
1580 *-next)
1581 os=-nextstep3
1582 ;;
1583 *-gould)
1584 os=-sysv
1585 ;;
1586 *-highlevel)
1587 os=-bsd
1588 ;;
1589 *-encore)
1590 os=-bsd
1591 ;;
1592 *-sgi)
1593 os=-irix
1594 ;;
1595 *-siemens)
1596 os=-sysv4
1597 ;;
1598 *-masscomp)
1599 os=-rtu
1600 ;;
1601 f30[01]-fujitsu | f700-fujitsu)
1602 os=-uxpv
1603 ;;
1604 *-rom68k)
1605 os=-coff
1606 ;;
1607 *-*bug)
1608 os=-coff
1609 ;;
1610 *-apple)
1611 os=-macos
1612 ;;
1613 *-atari*)
1614 os=-mint
1615 ;;
1616 *)
1617 os=-none
1618 ;;
1619 esac
1620 fi
1621
1622 # Here we handle the case where we know the os, and the CPU type, but not the
1623 # manufacturer. We pick the logical manufacturer.
1624 vendor=unknown
1625 case $basic_machine in
1626 *-unknown)
1627 case $os in
1628 -riscix*)
1629 vendor=acorn
1630 ;;
1631 -sunos*)
1632 vendor=sun
1633 ;;
1634 -cnk*|-aix*)
1635 vendor=ibm
1636 ;;
1637 -beos*)
1638 vendor=be
1639 ;;
1640 -hpux*)
1641 vendor=hp
1642 ;;
1643 -mpeix*)
1644 vendor=hp
1645 ;;
1646 -hiux*)
1647 vendor=hitachi
1648 ;;
1649 -unos*)
1650 vendor=crds
1651 ;;
1652 -dgux*)
1653 vendor=dg
1654 ;;
1655 -luna*)
1656 vendor=omron
1657 ;;
1658 -genix*)
1659 vendor=ns
1660 ;;
1661 -mvs* | -opened*)
1662 vendor=ibm
1663 ;;
1664 -os400*)
1665 vendor=ibm
1666 ;;
1667 -ptx*)
1668 vendor=sequent
1669 ;;
1670 -tpf*)
1671 vendor=ibm
1672 ;;
1673 -vxsim* | -vxworks* | -windiss*)
1674 vendor=wrs
1675 ;;
1676 -aux*)
1677 vendor=apple
1678 ;;
1679 -hms*)
1680 vendor=hitachi
1681 ;;
1682 -mpw* | -macos*)
1683 vendor=apple
1684 ;;
1685 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1686 vendor=atari
1687 ;;
1688 -vos*)
1689 vendor=stratus
1690 ;;
1691 esac
1692 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1693 ;;
1694 esac
1695
1696 echo $basic_machine$os
1697 exit
1698
1699 # Local variables:
1700 # eval: (add-hook 'write-file-hooks 'time-stamp)
1701 # time-stamp-start: "timestamp='"
1702 # time-stamp-format: "%:y-%02m-%02d"
1703 # time-stamp-end: "'"
1704 # End:
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.67.
2 # Generated by GNU Autoconf 2.69 for dbus-sharp-glib 0.6.0.
33 #
44 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
7 # Foundation, Inc.
5 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
86 #
97 #
108 # This configure script is free software; the Free Software Foundation
8886 IFS=" "" $as_nl"
8987
9088 # Find who we are. Look in the path if we contain no directory separator.
89 as_myself=
9190 case $0 in #((
9291 *[\\/]* ) as_myself=$0 ;;
9392 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132131 # CDPATH.
133132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134133
134 # Use a proper internal environment variable to ensure we don't fall
135 # into an infinite loop, continuously re-executing ourselves.
136 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
137 _as_can_reexec=no; export _as_can_reexec;
138 # We cannot yet assume a decent shell, so we have to provide a
139 # neutralization value for shells without unset; and this also
140 # works around shells that cannot unset nonexistent variables.
141 # Preserve -v and -x to the replacement shell.
142 BASH_ENV=/dev/null
143 ENV=/dev/null
144 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
145 case $- in # ((((
146 *v*x* | *x*v* ) as_opts=-vx ;;
147 *v* ) as_opts=-v ;;
148 *x* ) as_opts=-x ;;
149 * ) as_opts= ;;
150 esac
151 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
152 # Admittedly, this is quite paranoid, since all the known shells bail
153 # out after a failed `exec'.
154 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
155 as_fn_exit 255
156 fi
157 # We don't want this to propagate to other subprocesses.
158 { _as_can_reexec=; unset _as_can_reexec;}
135159 if test "x$CONFIG_SHELL" = x; then
136160 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
137161 emulate sh
165189 else
166190 exitcode=1; echo positional parameters were not saved.
167191 fi
168 test x\$exitcode = x0 || exit 1"
192 test x\$exitcode = x0 || exit 1
193 test -x / || exit 1"
169194 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
170195 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
171196 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
209234
210235
211236 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
237 export CONFIG_SHELL
238 # We cannot yet assume a decent shell, so we have to provide a
239 # neutralization value for shells without unset; and this also
240 # works around shells that cannot unset nonexistent variables.
241 # Preserve -v and -x to the replacement shell.
242 BASH_ENV=/dev/null
243 ENV=/dev/null
244 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
245 case $- in # ((((
246 *v*x* | *x*v* ) as_opts=-vx ;;
247 *v* ) as_opts=-v ;;
248 *x* ) as_opts=-x ;;
249 * ) as_opts= ;;
250 esac
251 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
252 # Admittedly, this is quite paranoid, since all the known shells bail
253 # out after a failed `exec'.
254 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
255 exit 255
220256 fi
221257
222258 if test x$as_have_required = xno; then :
318354
319355
320356 } # as_fn_mkdir_p
357
358 # as_fn_executable_p FILE
359 # -----------------------
360 # Test if FILE is an executable regular file.
361 as_fn_executable_p ()
362 {
363 test -f "$1" && test -x "$1"
364 } # as_fn_executable_p
321365 # as_fn_append VAR VALUE
322366 # ----------------------
323367 # Append the text in VALUE to the end of the definition contained in VAR. Take
439483 chmod +x "$as_me.lineno" ||
440484 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441485
486 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
487 # already done that, so ensure we don't try to do so again and fall
488 # in an infinite loop. This has already happened in practice.
489 _as_can_reexec=no; export _as_can_reexec
442490 # Don't try to exec as it changes $[0], causing all sort of problems
443491 # (the dirname of $[0] is not the place where we might find the
444492 # original and so on. Autoconf is especially sensitive to this).
473521 # ... but there are two gotchas:
474522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
524 # In both cases, we have to default to `cp -pR'.
477525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
526 as_ln_s='cp -pR'
479527 elif ln conf$$.file conf$$ 2>/dev/null; then
480528 as_ln_s=ln
481529 else
482 as_ln_s='cp -p'
530 as_ln_s='cp -pR'
483531 fi
484532 else
485 as_ln_s='cp -p'
533 as_ln_s='cp -pR'
486534 fi
487535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488536 rmdir conf$$.dir 2>/dev/null
494542 as_mkdir_p=false
495543 fi
496544
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
545 as_test_x='test -x'
546 as_executable_p=as_fn_executable_p
519547
520548 # Sed expression to map a string onto a valid CPP name.
521549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545573 MAKEFLAGS=
546574
547575 # Identity of this package.
548 PACKAGE_NAME=
549 PACKAGE_TARNAME=
550 PACKAGE_VERSION=
551 PACKAGE_STRING=
552 PACKAGE_BUGREPORT=
553 PACKAGE_URL=
576 PACKAGE_NAME='dbus-sharp-glib'
577 PACKAGE_TARNAME='dbus-sharp-glib'
578 PACKAGE_VERSION='0.6.0'
579 PACKAGE_STRING='dbus-sharp-glib 0.6.0'
580 PACKAGE_BUGREPORT=''
581 PACKAGE_URL=''
554582
555583 ac_unique_file="src/GLib.cs"
556584 ac_subst_vars='LTLIBOBJS
564592 PKG_CONFIG_LIBDIR
565593 PKG_CONFIG_PATH
566594 PKG_CONFIG
595 API_VERSION
567596 MAINT
568597 MAINTAINER_MODE_FALSE
569598 MAINTAINER_MODE_TRUE
599 AM_BACKSLASH
600 AM_DEFAULT_VERBOSITY
601 AM_DEFAULT_V
602 AM_V
570603 am__untar
571604 am__tar
572605 AMTAR
583616 AUTOMAKE
584617 AUTOCONF
585618 ACLOCAL
619 VERSION
586620 PACKAGE
587621 CYGPATH_W
588622 am__isrc
589623 INSTALL_DATA
590624 INSTALL_SCRIPT
591625 INSTALL_PROGRAM
592 VERSION
593 API_VERSION
594 target_os
595 target_vendor
596 target_cpu
597 target
598 host_os
599 host_vendor
600 host_cpu
601 host
602 build_os
603 build_vendor
604 build_cpu
605 build
606626 target_alias
607627 host_alias
608628 build_alias
644664 ac_subst_files=''
645665 ac_user_opts='
646666 enable_option_checking
667 enable_silent_rules
647668 enable_maintainer_mode
648669 '
649670 ac_precious_vars='build_alias
696717 localstatedir='${prefix}/var'
697718 includedir='${prefix}/include'
698719 oldincludedir='/usr/include'
699 docdir='${datarootdir}/doc/${PACKAGE}'
720 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
700721 infodir='${datarootdir}/info'
701722 htmldir='${docdir}'
702723 dvidir='${docdir}'
10601081 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
10611082 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
10621083 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1063 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1084 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
10641085 ;;
10651086
10661087 esac
11111132 if test "x$host_alias" != x; then
11121133 if test "x$build_alias" = x; then
11131134 cross_compiling=maybe
1114 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1115 If a cross compiler is detected then cross compile mode will be used" >&2
11161135 elif test "x$build_alias" != "x$host_alias"; then
11171136 cross_compiling=yes
11181137 fi
11981217 # Omit some internal or obsolete options to make the list less imposing.
11991218 # This message is too long to be a string in the A/UX 3.1 sh.
12001219 cat <<_ACEOF
1201 \`configure' configures this package to adapt to many kinds of systems.
1220 \`configure' configures dbus-sharp-glib 0.6.0 to adapt to many kinds of systems.
12021221
12031222 Usage: $0 [OPTION]... [VAR=VALUE]...
12041223
12461265 --infodir=DIR info documentation [DATAROOTDIR/info]
12471266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
12481267 --mandir=DIR man documentation [DATAROOTDIR/man]
1249 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/dbus-sharp-glib]
12501269 --htmldir=DIR html documentation [DOCDIR]
12511270 --dvidir=DIR dvi documentation [DOCDIR]
12521271 --pdfdir=DIR pdf documentation [DOCDIR]
12591278 --program-prefix=PREFIX prepend PREFIX to installed program names
12601279 --program-suffix=SUFFIX append SUFFIX to installed program names
12611280 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1262
1263 System types:
1264 --build=BUILD configure for building on BUILD [guessed]
1265 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1266 --target=TARGET configure for building compilers for TARGET [HOST]
12671281 _ACEOF
12681282 fi
12691283
12701284 if test -n "$ac_init_help"; then
1271
1285 case $ac_init_help in
1286 short | recursive ) echo "Configuration of dbus-sharp-glib 0.6.0:";;
1287 esac
12721288 cat <<\_ACEOF
12731289
12741290 Optional Features:
12751291 --disable-option-checking ignore unrecognized --enable/--with options
12761292 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
12771293 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1278 --enable-maintainer-mode enable make rules and dependencies not useful
1279 (and sometimes confusing) to the casual installer
1294 --enable-silent-rules less verbose build output (undo: "make V=1")
1295 --disable-silent-rules verbose build output (undo: "make V=0")
1296 --enable-maintainer-mode
1297 enable make rules and dependencies not useful (and
1298 sometimes confusing) to the casual installer
12801299
12811300 Some influential environment variables:
12821301 PKG_CONFIG path to pkg-config utility
13571376 test -n "$ac_init_help" && exit $ac_status
13581377 if $ac_init_version; then
13591378 cat <<\_ACEOF
1360 configure
1361 generated by GNU Autoconf 2.67
1362
1363 Copyright (C) 2010 Free Software Foundation, Inc.
1379 dbus-sharp-glib configure 0.6.0
1380 generated by GNU Autoconf 2.69
1381
1382 Copyright (C) 2012 Free Software Foundation, Inc.
13641383 This configure script is free software; the Free Software Foundation
13651384 gives unlimited permission to copy, distribute and modify it.
13661385 _ACEOF
13741393 This file contains any messages produced by compilers while
13751394 running configure, to aid debugging if configure makes a mistake.
13761395
1377 It was created by $as_me, which was
1378 generated by GNU Autoconf 2.67. Invocation command line was
1396 It was created by dbus-sharp-glib $as_me 0.6.0, which was
1397 generated by GNU Autoconf 2.69. Invocation command line was
13791398
13801399 $ $0 $@
13811400
17231742
17241743
17251744
1745 am__api_version='1.13'
1746
17261747 ac_aux_dir=
17271748 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
17281749 if test -f "$ac_dir/install-sh"; then
17521773 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
17531774
17541775
1755 # Make sure we can run config.sub.
1756 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1757 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1758
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1760 $as_echo_n "checking build system type... " >&6; }
1761 if test "${ac_cv_build+set}" = set; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 ac_build_alias=$build_alias
1765 test "x$ac_build_alias" = x &&
1766 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1767 test "x$ac_build_alias" = x &&
1768 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1769 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1770 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1771
1772 fi
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1774 $as_echo "$ac_cv_build" >&6; }
1775 case $ac_cv_build in
1776 *-*-*) ;;
1777 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1778 esac
1779 build=$ac_cv_build
1780 ac_save_IFS=$IFS; IFS='-'
1781 set x $ac_cv_build
1782 shift
1783 build_cpu=$1
1784 build_vendor=$2
1785 shift; shift
1786 # Remember, the first character of IFS is used to create $*,
1787 # except with old shells:
1788 build_os=$*
1789 IFS=$ac_save_IFS
1790 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1791
1792
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1794 $as_echo_n "checking host system type... " >&6; }
1795 if test "${ac_cv_host+set}" = set; then :
1796 $as_echo_n "(cached) " >&6
1797 else
1798 if test "x$host_alias" = x; then
1799 ac_cv_host=$ac_cv_build
1800 else
1801 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1802 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1803 fi
1804
1805 fi
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1807 $as_echo "$ac_cv_host" >&6; }
1808 case $ac_cv_host in
1809 *-*-*) ;;
1810 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1811 esac
1812 host=$ac_cv_host
1813 ac_save_IFS=$IFS; IFS='-'
1814 set x $ac_cv_host
1815 shift
1816 host_cpu=$1
1817 host_vendor=$2
1818 shift; shift
1819 # Remember, the first character of IFS is used to create $*,
1820 # except with old shells:
1821 host_os=$*
1822 IFS=$ac_save_IFS
1823 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1824
1825
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
1827 $as_echo_n "checking target system type... " >&6; }
1828 if test "${ac_cv_target+set}" = set; then :
1829 $as_echo_n "(cached) " >&6
1830 else
1831 if test "x$target_alias" = x; then
1832 ac_cv_target=$ac_cv_host
1833 else
1834 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1835 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1836 fi
1837
1838 fi
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
1840 $as_echo "$ac_cv_target" >&6; }
1841 case $ac_cv_target in
1842 *-*-*) ;;
1843 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1844 esac
1845 target=$ac_cv_target
1846 ac_save_IFS=$IFS; IFS='-'
1847 set x $ac_cv_target
1848 shift
1849 target_cpu=$1
1850 target_vendor=$2
1851 shift; shift
1852 # Remember, the first character of IFS is used to create $*,
1853 # except with old shells:
1854 target_os=$*
1855 IFS=$ac_save_IFS
1856 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1857
1858
1859 # The aliases save the names the user supplied, while $host etc.
1860 # will get canonicalized.
1861 test -n "$target_alias" &&
1862 test "$program_prefix$program_suffix$program_transform_name" = \
1863 NONENONEs,x,x, &&
1864 program_prefix=${target_alias}-
1865
1866
1867
1868 API_VERSION=1.0
1869 #VERSION=$API_VERSION.0
1870 VERSION=0.5.0
1871
1872
1873
1874
1875 am__api_version='1.11'
1876
18771776 # Find a good install program. We prefer a C program (faster),
18781777 # so one script is as good as another. But avoid the broken or
18791778 # incompatible versions:
18911790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18921791 $as_echo_n "checking for a BSD-compatible install... " >&6; }
18931792 if test -z "$INSTALL"; then
1894 if test "${ac_cv_path_install+set}" = set; then :
1793 if ${ac_cv_path_install+:} false; then :
18951794 $as_echo_n "(cached) " >&6
18961795 else
18971796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19111810 # by default.
19121811 for ac_prog in ginstall scoinst install; do
19131812 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1813 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19151814 if test $ac_prog = install &&
19161815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19171816 # AIX install. It has an incompatible calling convention.
19691868
19701869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
19711870 $as_echo_n "checking whether build environment is sane... " >&6; }
1972 # Just in case
1973 sleep 1
1974 echo timestamp > conftest.file
19751871 # Reject unsafe characters in $srcdir or the absolute working directory
19761872 # name. Accept space and tab only in the latter.
19771873 am_lf='
19821878 esac
19831879 case $srcdir in
19841880 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1985 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1881 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
19861882 esac
19871883
1988 # Do `set' in a subshell so we don't clobber the current shell's
1884 # Do 'set' in a subshell so we don't clobber the current shell's
19891885 # arguments. Must try -L first in case configure is actually a
19901886 # symlink; some systems play weird games with the mod time of symlinks
19911887 # (eg FreeBSD returns the mod time of the symlink's containing
19921888 # directory).
19931889 if (
1994 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1995 if test "$*" = "X"; then
1996 # -L didn't work.
1997 set X `ls -t "$srcdir/configure" conftest.file`
1998 fi
1999 rm -f conftest.file
2000 if test "$*" != "X $srcdir/configure conftest.file" \
2001 && test "$*" != "X conftest.file $srcdir/configure"; then
2002
2003 # If neither matched, then we have a broken ls. This can happen
2004 # if, for instance, CONFIG_SHELL is bash and it inherits a
2005 # broken ls alias from the environment. This has actually
2006 # happened. Such a system could not be considered "sane".
2007 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2008 alias in your environment" "$LINENO" 5
2009 fi
2010
1890 am_has_slept=no
1891 for am_try in 1 2; do
1892 echo "timestamp, slept: $am_has_slept" > conftest.file
1893 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1894 if test "$*" = "X"; then
1895 # -L didn't work.
1896 set X `ls -t "$srcdir/configure" conftest.file`
1897 fi
1898 if test "$*" != "X $srcdir/configure conftest.file" \
1899 && test "$*" != "X conftest.file $srcdir/configure"; then
1900
1901 # If neither matched, then we have a broken ls. This can happen
1902 # if, for instance, CONFIG_SHELL is bash and it inherits a
1903 # broken ls alias from the environment. This has actually
1904 # happened. Such a system could not be considered "sane".
1905 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
1906 alias in your environment" "$LINENO" 5
1907 fi
1908 if test "$2" = conftest.file || test $am_try -eq 2; then
1909 break
1910 fi
1911 # Just in case.
1912 sleep 1
1913 am_has_slept=yes
1914 done
20111915 test "$2" = conftest.file
20121916 )
20131917 then
20191923 fi
20201924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20211925 $as_echo "yes" >&6; }
1926 # If we didn't sleep, we still need to ensure time stamps of config.status and
1927 # generated files are strictly newer.
1928 am_sleep_pid=
1929 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1930 ( sleep 1 ) &
1931 am_sleep_pid=$!
1932 fi
1933
1934 rm -f conftest.file
1935
20221936 test "$program_prefix" != NONE &&
20231937 program_transform_name="s&^&$program_prefix&;$program_transform_name"
20241938 # Use a double $ so make ignores it.
20411955 esac
20421956 fi
20431957 # Use eval to expand $SHELL
2044 if eval "$MISSING --run true"; then
2045 am_missing_run="$MISSING --run "
1958 if eval "$MISSING --is-lightweight"; then
1959 am_missing_run="$MISSING "
20461960 else
20471961 am_missing_run=
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2049 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
1963 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
20501964 fi
20511965
20521966 if test x"${install_sh}" != xset; then
20581972 esac
20591973 fi
20601974
2061 # Installed binaries are usually stripped using `strip' when the user
2062 # run `make install-strip'. However `strip' might not be the right
1975 # Installed binaries are usually stripped using 'strip' when the user
1976 # run "make install-strip". However 'strip' might not be the right
20631977 # tool to use in cross-compilation environments, therefore Automake
2064 # will honor the `STRIP' environment variable to overrule this program.
1978 # will honor the 'STRIP' environment variable to overrule this program.
20651979 if test "$cross_compiling" != no; then
20661980 if test -n "$ac_tool_prefix"; then
20671981 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20681982 set dummy ${ac_tool_prefix}strip; ac_word=$2
20691983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20701984 $as_echo_n "checking for $ac_word... " >&6; }
2071 if test "${ac_cv_prog_STRIP+set}" = set; then :
1985 if ${ac_cv_prog_STRIP+:} false; then :
20721986 $as_echo_n "(cached) " >&6
20731987 else
20741988 if test -n "$STRIP"; then
20801994 IFS=$as_save_IFS
20811995 test -z "$as_dir" && as_dir=.
20821996 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20841998 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
20851999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20862000 break 2
21082022 set dummy strip; ac_word=$2
21092023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21102024 $as_echo_n "checking for $ac_word... " >&6; }
2111 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2025 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
21122026 $as_echo_n "(cached) " >&6
21132027 else
21142028 if test -n "$ac_ct_STRIP"; then
21202034 IFS=$as_save_IFS
21212035 test -z "$as_dir" && as_dir=.
21222036 for ac_exec_ext in '' $ac_executable_extensions; do
2123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21242038 ac_cv_prog_ac_ct_STRIP="strip"
21252039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21262040 break 2
21612075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
21622076 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
21632077 if test -z "$MKDIR_P"; then
2164 if test "${ac_cv_path_mkdir+set}" = set; then :
2078 if ${ac_cv_path_mkdir+:} false; then :
21652079 $as_echo_n "(cached) " >&6
21662080 else
21672081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21712085 test -z "$as_dir" && as_dir=.
21722086 for ac_prog in mkdir gmkdir; do
21732087 for ac_exec_ext in '' $ac_executable_extensions; do
2174 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2088 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
21752089 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
21762090 'mkdir (GNU coreutils) '* | \
21772091 'mkdir (coreutils) '* | \
22002114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
22012115 $as_echo "$MKDIR_P" >&6; }
22022116
2203 mkdir_p="$MKDIR_P"
2204 case $mkdir_p in
2205 [\\/$]* | ?:[\\/]*) ;;
2206 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2207 esac
2208
22092117 for ac_prog in gawk mawk nawk awk
22102118 do
22112119 # Extract the first word of "$ac_prog", so it can be a program name with args.
22122120 set dummy $ac_prog; ac_word=$2
22132121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22142122 $as_echo_n "checking for $ac_word... " >&6; }
2215 if test "${ac_cv_prog_AWK+set}" = set; then :
2123 if ${ac_cv_prog_AWK+:} false; then :
22162124 $as_echo_n "(cached) " >&6
22172125 else
22182126 if test -n "$AWK"; then
22242132 IFS=$as_save_IFS
22252133 test -z "$as_dir" && as_dir=.
22262134 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22282136 ac_cv_prog_AWK="$ac_prog"
22292137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22302138 break 2
22522160 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
22532161 set x ${MAKE-make}
22542162 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2255 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2163 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
22562164 $as_echo_n "(cached) " >&6
22572165 else
22582166 cat >conftest.make <<\_ACEOF
22882196 fi
22892197 rmdir .tst 2>/dev/null
22902198
2199 # Check whether --enable-silent-rules was given.
2200 if test "${enable_silent_rules+set}" = set; then :
2201 enableval=$enable_silent_rules;
2202 fi
2203
2204 case $enable_silent_rules in # (((
2205 yes) AM_DEFAULT_VERBOSITY=0;;
2206 no) AM_DEFAULT_VERBOSITY=1;;
2207 *) AM_DEFAULT_VERBOSITY=1;;
2208 esac
2209 am_make=${MAKE-make}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2211 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2212 if ${am_cv_make_support_nested_variables+:} false; then :
2213 $as_echo_n "(cached) " >&6
2214 else
2215 if $as_echo 'TRUE=$(BAR$(V))
2216 BAR0=false
2217 BAR1=true
2218 V=1
2219 am__doit:
2220 @$(TRUE)
2221 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2222 am_cv_make_support_nested_variables=yes
2223 else
2224 am_cv_make_support_nested_variables=no
2225 fi
2226 fi
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2228 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2229 if test $am_cv_make_support_nested_variables = yes; then
2230 AM_V='$(V)'
2231 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2232 else
2233 AM_V=$AM_DEFAULT_VERBOSITY
2234 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2235 fi
2236 AM_BACKSLASH='\'
2237
22912238 if test "`cd $srcdir && pwd`" != "`pwd`"; then
22922239 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
22932240 # is not polluted with repeated "-I."
23092256
23102257
23112258 # Define the identity of the package.
2312 PACKAGE=dbus-sharp-glib
2313 VERSION=$VERSION
2259 PACKAGE='dbus-sharp-glib'
2260 VERSION='0.6.0'
23142261
23152262
23162263 cat >>confdefs.h <<_ACEOF
23382285
23392286 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
23402287
2288 # For better backward compatibility. To be removed once Automake 1.9.x
2289 # dies out for good. For more background, see:
2290 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2291 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2292 mkdir_p='$(MKDIR_P)'
2293
23412294 # We need awk for the "check" target. The system "awk" is bad on
23422295 # some platforms.
2343 # Always define AMTAR for backward compatibility.
2344
2345 AMTAR=${AMTAR-"${am_missing_run}tar"}
2346
2347 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2296 # Always define AMTAR for backward compatibility. Yes, it's still used
2297 # in the wild :-( We should find a proper way to deprecate it ...
2298 AMTAR='$${TAR-tar}'
2299
2300
2301 # We'll loop over all known methods to create a tar archive until one works.
2302 _am_tools='gnutar pax cpio none'
2303
2304 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2305
23482306
23492307
23502308
23752333
23762334
23772335
2336 API_VERSION=2.0
2337
2338 VERSION=0.6.0
2339
2340
23782341
23792342
23802343 # Extract the first word of "pkg-config", so it can be a program name with args.
23812344 set dummy pkg-config; ac_word=$2
23822345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23832346 $as_echo_n "checking for $ac_word... " >&6; }
2384 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
2347 if ${ac_cv_path_PKG_CONFIG+:} false; then :
23852348 $as_echo_n "(cached) " >&6
23862349 else
23872350 case $PKG_CONFIG in
23952358 IFS=$as_save_IFS
23962359 test -z "$as_dir" && as_dir=.
23972360 for ac_exec_ext in '' $ac_executable_extensions; do
2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23992362 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24002363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24012364 break 2
24302393
24312394
24322395
2396
24332397 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
24342398 if test -n "$ac_tool_prefix"; then
24352399 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24362400 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24372401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24382402 $as_echo_n "checking for $ac_word... " >&6; }
2439 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
2403 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24402404 $as_echo_n "(cached) " >&6
24412405 else
24422406 case $PKG_CONFIG in
24502414 IFS=$as_save_IFS
24512415 test -z "$as_dir" && as_dir=.
24522416 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24542418 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24552419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24562420 break 2
24792443 set dummy pkg-config; ac_word=$2
24802444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24812445 $as_echo_n "checking for $ac_word... " >&6; }
2482 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
2446 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24832447 $as_echo_n "(cached) " >&6
24842448 else
24852449 case $ac_pt_PKG_CONFIG in
24932457 IFS=$as_save_IFS
24942458 test -z "$as_dir" && as_dir=.
24952459 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24972461 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24982462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24992463 break 2
25582522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592523 test $ac_status = 0; }; then
25602524 pkg_cv_MONO_CFLAGS=`$PKG_CONFIG --cflags "mono >= $MONO_REQ_VERSION" 2>/dev/null`
2525 test "x$?" != "x0" && pkg_failed=yes
25612526 else
25622527 pkg_failed=yes
25632528 fi
25742539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25752540 test $ac_status = 0; }; then
25762541 pkg_cv_MONO_LIBS=`$PKG_CONFIG --libs "mono >= $MONO_REQ_VERSION" 2>/dev/null`
2542 test "x$?" != "x0" && pkg_failed=yes
25772543 else
25782544 pkg_failed=yes
25792545 fi
25932559 _pkg_short_errors_supported=no
25942560 fi
25952561 if test $_pkg_short_errors_supported = yes; then
2596 MONO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "mono >= $MONO_REQ_VERSION" 2>&1`
2562 MONO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mono >= $MONO_REQ_VERSION" 2>&1`
25972563 else
2598 MONO_PKG_ERRORS=`$PKG_CONFIG --print-errors "mono >= $MONO_REQ_VERSION" 2>&1`
2564 MONO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mono >= $MONO_REQ_VERSION" 2>&1`
25992565 fi
26002566 # Put the nasty error message in config.log where it belongs
26012567 echo "$MONO_PKG_ERRORS" >&5
26372603 set dummy gmcs; ac_word=$2
26382604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26392605 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_path_GMCS+set}" = set; then :
2606 if ${ac_cv_path_GMCS+:} false; then :
26412607 $as_echo_n "(cached) " >&6
26422608 else
26432609 case $GMCS in
26512617 IFS=$as_save_IFS
26522618 test -z "$as_dir" && as_dir=.
26532619 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26552621 ac_cv_path_GMCS="$as_dir/$ac_word$ac_exec_ext"
26562622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26572623 break 2
26832649 set dummy gacutil; ac_word=$2
26842650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26852651 $as_echo_n "checking for $ac_word... " >&6; }
2686 if test "${ac_cv_path_GACUTIL+set}" = set; then :
2652 if ${ac_cv_path_GACUTIL+:} false; then :
26872653 $as_echo_n "(cached) " >&6
26882654 else
26892655 case $GACUTIL in
26972663 IFS=$as_save_IFS
26982664 test -z "$as_dir" && as_dir=.
26992665 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27012667 ac_cv_path_GACUTIL="$as_dir/$ac_word$ac_exec_ext"
27022668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27032669 break 2
27352701 pkg_cv_DBUS_SHARP_CFLAGS="$DBUS_SHARP_CFLAGS"
27362702 elif test -n "$PKG_CONFIG"; then
27372703 if test -n "$PKG_CONFIG" && \
2738 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-sharp-1.0 >= \$DBUS_SHARP_REQUIRED_VERSION\""; } >&5
2739 ($PKG_CONFIG --exists --print-errors "dbus-sharp-1.0 >= $DBUS_SHARP_REQUIRED_VERSION") 2>&5
2704 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-sharp-2.0 >= \$DBUS_SHARP_REQUIRED_VERSION\""; } >&5
2705 ($PKG_CONFIG --exists --print-errors "dbus-sharp-2.0 >= $DBUS_SHARP_REQUIRED_VERSION") 2>&5
27402706 ac_status=$?
27412707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27422708 test $ac_status = 0; }; then
2743 pkg_cv_DBUS_SHARP_CFLAGS=`$PKG_CONFIG --cflags "dbus-sharp-1.0 >= $DBUS_SHARP_REQUIRED_VERSION" 2>/dev/null`
2709 pkg_cv_DBUS_SHARP_CFLAGS=`$PKG_CONFIG --cflags "dbus-sharp-2.0 >= $DBUS_SHARP_REQUIRED_VERSION" 2>/dev/null`
2710 test "x$?" != "x0" && pkg_failed=yes
27442711 else
27452712 pkg_failed=yes
27462713 fi
27512718 pkg_cv_DBUS_SHARP_LIBS="$DBUS_SHARP_LIBS"
27522719 elif test -n "$PKG_CONFIG"; then
27532720 if test -n "$PKG_CONFIG" && \
2754 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-sharp-1.0 >= \$DBUS_SHARP_REQUIRED_VERSION\""; } >&5
2755 ($PKG_CONFIG --exists --print-errors "dbus-sharp-1.0 >= $DBUS_SHARP_REQUIRED_VERSION") 2>&5
2721 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-sharp-2.0 >= \$DBUS_SHARP_REQUIRED_VERSION\""; } >&5
2722 ($PKG_CONFIG --exists --print-errors "dbus-sharp-2.0 >= $DBUS_SHARP_REQUIRED_VERSION") 2>&5
27562723 ac_status=$?
27572724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27582725 test $ac_status = 0; }; then
2759 pkg_cv_DBUS_SHARP_LIBS=`$PKG_CONFIG --libs "dbus-sharp-1.0 >= $DBUS_SHARP_REQUIRED_VERSION" 2>/dev/null`
2726 pkg_cv_DBUS_SHARP_LIBS=`$PKG_CONFIG --libs "dbus-sharp-2.0 >= $DBUS_SHARP_REQUIRED_VERSION" 2>/dev/null`
2727 test "x$?" != "x0" && pkg_failed=yes
27602728 else
27612729 pkg_failed=yes
27622730 fi
27762744 _pkg_short_errors_supported=no
27772745 fi
27782746 if test $_pkg_short_errors_supported = yes; then
2779 DBUS_SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-sharp-1.0 >= $DBUS_SHARP_REQUIRED_VERSION" 2>&1`
2747 DBUS_SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-sharp-2.0 >= $DBUS_SHARP_REQUIRED_VERSION" 2>&1`
27802748 else
2781 DBUS_SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-sharp-1.0 >= $DBUS_SHARP_REQUIRED_VERSION" 2>&1`
2749 DBUS_SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-sharp-2.0 >= $DBUS_SHARP_REQUIRED_VERSION" 2>&1`
27822750 fi
27832751 # Put the nasty error message in config.log where it belongs
27842752 echo "$DBUS_SHARP_PKG_ERRORS" >&5
27852753
2786 as_fn_error $? "Package requirements (dbus-sharp-1.0 >= $DBUS_SHARP_REQUIRED_VERSION) were not met:
2754 as_fn_error $? "Package requirements (dbus-sharp-2.0 >= $DBUS_SHARP_REQUIRED_VERSION) were not met:
27872755
27882756 $DBUS_SHARP_PKG_ERRORS
27892757
28222790 #AC_SUBST(GLIB_CFLAGS)
28232791 #AC_SUBST(GLIB_LIBS)
28242792
2825 ac_config_files="$ac_config_files Makefile dbus-sharp-glib-1.0.pc src/AssemblyInfo.cs src/Makefile examples/Makefile"
2793 ac_config_files="$ac_config_files Makefile dbus-sharp-glib-2.0.pc src/AssemblyInfo.cs src/Makefile examples/Makefile"
28262794
28272795 cat >confcache <<\_ACEOF
28282796 # This file is a shell script that caches the results of configure
28882856 :end' >>confcache
28892857 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28902858 if test -w "$cache_file"; then
2891 test "x$cache_file" != "x/dev/null" &&
2859 if test "x$cache_file" != "x/dev/null"; then
28922860 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28932861 $as_echo "$as_me: updating cache $cache_file" >&6;}
2894 cat confcache >$cache_file
2862 if test ! -f "$cache_file" || test -h "$cache_file"; then
2863 cat confcache >"$cache_file"
2864 else
2865 case $cache_file in #(
2866 */* | ?:*)
2867 mv -f confcache "$cache_file"$$ &&
2868 mv -f "$cache_file"$$ "$cache_file" ;; #(
2869 *)
2870 mv -f confcache "$cache_file" ;;
2871 esac
2872 fi
2873 fi
28952874 else
28962875 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28972876 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29582937 LTLIBOBJS=$ac_ltlibobjs
29592938
29602939
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
2941 $as_echo_n "checking that generated files are newer than configure... " >&6; }
2942 if test -n "$am_sleep_pid"; then
2943 # Hide warnings about reused PIDs.
2944 wait $am_sleep_pid 2>/dev/null
2945 fi
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
2947 $as_echo "done" >&6; }
29612948
29622949 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29632950 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
29642951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29652952 fi
29662953
2967 : ${CONFIG_STATUS=./config.status}
2954 : "${CONFIG_STATUS=./config.status}"
29682955 ac_write_fail=0
29692956 ac_clean_files_save=$ac_clean_files
29702957 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30653052 IFS=" "" $as_nl"
30663053
30673054 # Find who we are. Look in the path if we contain no directory separator.
3055 as_myself=
30683056 case $0 in #((
30693057 *[\\/]* ) as_myself=$0 ;;
30703058 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32603248 # ... but there are two gotchas:
32613249 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32623250 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3263 # In both cases, we have to default to `cp -p'.
3251 # In both cases, we have to default to `cp -pR'.
32643252 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3265 as_ln_s='cp -p'
3253 as_ln_s='cp -pR'
32663254 elif ln conf$$.file conf$$ 2>/dev/null; then
32673255 as_ln_s=ln
32683256 else
3269 as_ln_s='cp -p'
3257 as_ln_s='cp -pR'
32703258 fi
32713259 else
3272 as_ln_s='cp -p'
3260 as_ln_s='cp -pR'
32733261 fi
32743262 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32753263 rmdir conf$$.dir 2>/dev/null
33293317 as_mkdir_p=false
33303318 fi
33313319
3332 if test -x / >/dev/null 2>&1; then
3333 as_test_x='test -x'
3334 else
3335 if ls -dL / >/dev/null 2>&1; then
3336 as_ls_L_option=L
3337 else
3338 as_ls_L_option=
3339 fi
3340 as_test_x='
3341 eval sh -c '\''
3342 if test -d "$1"; then
3343 test -d "$1/.";
3344 else
3345 case $1 in #(
3346 -*)set "./$1";;
3347 esac;
3348 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3349 ???[sx]*):;;*)false;;esac;fi
3350 '\'' sh
3351 '
3352 fi
3353 as_executable_p=$as_test_x
3320
3321 # as_fn_executable_p FILE
3322 # -----------------------
3323 # Test if FILE is an executable regular file.
3324 as_fn_executable_p ()
3325 {
3326 test -f "$1" && test -x "$1"
3327 } # as_fn_executable_p
3328 as_test_x='test -x'
3329 as_executable_p=as_fn_executable_p
33543330
33553331 # Sed expression to map a string onto a valid CPP name.
33563332 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33713347 # report actual input values of CONFIG_FILES etc. instead of their
33723348 # values after options handling.
33733349 ac_log="
3374 This file was extended by $as_me, which was
3375 generated by GNU Autoconf 2.67. Invocation command line was
3350 This file was extended by dbus-sharp-glib $as_me 0.6.0, which was
3351 generated by GNU Autoconf 2.69. Invocation command line was
33763352
33773353 CONFIG_FILES = $CONFIG_FILES
33783354 CONFIG_HEADERS = $CONFIG_HEADERS
34243400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34253401 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34263402 ac_cs_version="\\
3427 config.status
3428 configured by $0, generated by GNU Autoconf 2.67,
3403 dbus-sharp-glib config.status 0.6.0
3404 configured by $0, generated by GNU Autoconf 2.69,
34293405 with options \\"\$ac_cs_config\\"
34303406
3431 Copyright (C) 2010 Free Software Foundation, Inc.
3407 Copyright (C) 2012 Free Software Foundation, Inc.
34323408 This config.status script is free software; the Free Software Foundation
34333409 gives unlimited permission to copy, distribute and modify it."
34343410
35083484 _ACEOF
35093485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35103486 if \$ac_cs_recheck; then
3511 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3487 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35123488 shift
35133489 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35143490 CONFIG_SHELL='$SHELL'
35383514 do
35393515 case $ac_config_target in
35403516 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3541 "dbus-sharp-glib-1.0.pc") CONFIG_FILES="$CONFIG_FILES dbus-sharp-glib-1.0.pc" ;;
3517 "dbus-sharp-glib-2.0.pc") CONFIG_FILES="$CONFIG_FILES dbus-sharp-glib-2.0.pc" ;;
35423518 "src/AssemblyInfo.cs") CONFIG_FILES="$CONFIG_FILES src/AssemblyInfo.cs" ;;
35433519 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
35443520 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
35643540 # after its creation but before its name has been assigned to `$tmp'.
35653541 $debug ||
35663542 {
3567 tmp=
3543 tmp= ac_tmp=
35683544 trap 'exit_status=$?
3569 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3545 : "${ac_tmp:=$tmp}"
3546 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35703547 ' 0
35713548 trap 'as_fn_exit 1' 1 2 13 15
35723549 }
35743551
35753552 {
35763553 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3577 test -n "$tmp" && test -d "$tmp"
3554 test -d "$tmp"
35783555 } ||
35793556 {
35803557 tmp=./conf$$-$RANDOM
35813558 (umask 077 && mkdir "$tmp")
35823559 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3560 ac_tmp=$tmp
35833561
35843562 # Set up the scripts for CONFIG_FILES section.
35853563 # No need to generate them if there are no CONFIG_FILES.
36013579 ac_cs_awk_cr=$ac_cr
36023580 fi
36033581
3604 echo 'BEGIN {' >"$tmp/subs1.awk" &&
3582 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
36053583 _ACEOF
36063584
36073585
36293607 rm -f conf$$subs.sh
36303608
36313609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3632 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
3610 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
36333611 _ACEOF
36343612 sed -n '
36353613 h
36773655 rm -f conf$$subs.awk
36783656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36793657 _ACAWK
3680 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
3658 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
36813659 for (key in S) S_is_set[key] = 1
36823660 FS = ""
36833661
37093687 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37103688 else
37113689 cat
3712 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
3690 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
37133691 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
37143692 _ACEOF
37153693
37683746 for ac_f
37693747 do
37703748 case $ac_f in
3771 -) ac_f="$tmp/stdin";;
3749 -) ac_f="$ac_tmp/stdin";;
37723750 *) # Look for the file first in the build tree, then in the source tree
37733751 # (if the path is not absolute). The absolute path cannot be DOS-style,
37743752 # because $ac_f cannot contain `:'.
38033781 esac
38043782
38053783 case $ac_tag in
3806 *:-:* | *:-) cat >"$tmp/stdin" \
3784 *:-:* | *:-) cat >"$ac_tmp/stdin" \
38073785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
38083786 esac
38093787 ;;
39403918 s&@MKDIR_P@&$ac_MKDIR_P&;t t
39413919 $ac_datarootdir_hack
39423920 "
3943 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
3944 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3921 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3922 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39453923
39463924 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3947 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
3948 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
3925 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3926 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3927 "$ac_tmp/out"`; test -z "$ac_out"; } &&
39493928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39503929 which seems to be undefined. Please make sure it is defined" >&5
39513930 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39523931 which seems to be undefined. Please make sure it is defined" >&2;}
39533932
3954 rm -f "$tmp/stdin"
3933 rm -f "$ac_tmp/stdin"
39553934 case $ac_file in
3956 -) cat "$tmp/out" && rm -f "$tmp/out";;
3957 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
3935 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3936 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39583937 esac \
39593938 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39603939 ;;
0 AC_INIT(src/GLib.cs)
0 m4_define([api_version], [2.0])
1 m4_define([lib_version], [0.6.0])
12
2 AC_CANONICAL_SYSTEM
33 AC_PREREQ(2.13)
44
5 API_VERSION=1.0
6 #VERSION=$API_VERSION.0
7 VERSION=0.5.0
8
9 AC_SUBST(API_VERSION)
10 AC_SUBST(VERSION)
11
12 AM_INIT_AUTOMAKE(dbus-sharp-glib, $VERSION)
5 AC_INIT([dbus-sharp-glib], lib_version)
6 AC_CONFIG_SRCDIR([src/GLib.cs])
7 AM_INIT_AUTOMAKE
138
149 AM_MAINTAINER_MODE
10
11 AC_SUBST([API_VERSION], [api_version])
12 AC_SUBST([VERSION], [lib_version])
1513
1614 AC_PROG_INSTALL
1715
3735 AC_SUBST(GACUTIL)
3836
3937 DBUS_SHARP_REQUIRED_VERSION=0.7
40 PKG_CHECK_MODULES(DBUS_SHARP, dbus-sharp-1.0 >= $DBUS_SHARP_REQUIRED_VERSION)
38 PKG_CHECK_MODULES(DBUS_SHARP, dbus-sharp-2.0 >= $DBUS_SHARP_REQUIRED_VERSION)
4139 AC_SUBST(DBUS_SHARP_LIBS)
4240
4341 #GLIB_REQUIRED_VERSION=2.0
4745
4846 AC_OUTPUT([
4947 Makefile
50 dbus-sharp-glib-1.0.pc
48 dbus-sharp-glib-2.0.pc
5149 src/AssemblyInfo.cs
5250 src/Makefile
5351 examples/Makefile
+0
-10
dbus-sharp-glib-1.0.pc.in less more
0 prefix=@prefix@
1 exec_prefix=${prefix}
2 libdir=${exec_prefix}/lib
3
4 Name: Managed DBus GLib integration
5 Description: GLib integration for dbus-sharp, the D-Bus IPC library
6 Version: @VERSION@
7 URL: http://mono.github.com/dbus-sharp/
8 Requires: dbus-sharp-1.0
9 Libs: -r:${libdir}/cli/@PACKAGE@-@API_VERSION@/dbus-sharp-glib.dll
0 prefix=@prefix@
1 exec_prefix=${prefix}
2 libdir=@libdir@
3
4 Name: Managed DBus GLib integration
5 Description: GLib integration for dbus-sharp, the D-Bus IPC library
6 Version: @VERSION@
7 URL: http://mono.github.com/dbus-sharp/
8 Requires: dbus-sharp-2.0
9 Libs: -r:${libdir}/cli/@PACKAGE@-@API_VERSION@/dbus-sharp-glib.dll
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.13.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1413
1514 @SET_MAKE@
1615 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__make_running_with_option = \
18 case $${target_option-} in \
19 ?) ;; \
20 *) echo "am__make_running_with_option: internal error: invalid" \
21 "target option '$${target_option-}' specified" >&2; \
22 exit 1;; \
23 esac; \
24 has_opt=no; \
25 sane_makeflags=$$MAKEFLAGS; \
26 if $(am__is_gnu_make); then \
27 sane_makeflags=$$MFLAGS; \
28 else \
29 case $$MAKEFLAGS in \
30 *\\[\ \ ]*) \
31 bs=\\; \
32 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
33 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
34 esac; \
35 fi; \
36 skip_next=no; \
37 strip_trailopt () \
38 { \
39 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
40 }; \
41 for flg in $$sane_makeflags; do \
42 test $$skip_next = yes && { skip_next=no; continue; }; \
43 case $$flg in \
44 *=*|--*) continue;; \
45 -*I) strip_trailopt 'I'; skip_next=yes;; \
46 -*I?*) strip_trailopt 'I';; \
47 -*O) strip_trailopt 'O'; skip_next=yes;; \
48 -*O?*) strip_trailopt 'O';; \
49 -*l) strip_trailopt 'l'; skip_next=yes;; \
50 -*l?*) strip_trailopt 'l';; \
51 -[dEDm]) skip_next=yes;; \
52 -[JT]) skip_next=yes;; \
53 esac; \
54 case $$flg in \
55 *$$target_option*) has_opt=yes; break;; \
56 esac; \
57 done; \
58 test $$has_opt = yes
59 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
60 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
1761 pkgdatadir = $(datadir)/@PACKAGE@
1862 pkgincludedir = $(includedir)/@PACKAGE@
1963 pkglibdir = $(libdir)/@PACKAGE@
3074 NORMAL_UNINSTALL = :
3175 PRE_UNINSTALL = :
3276 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 target_triplet = @target@
3677 subdir = examples
37 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
78 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
3879 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
3980 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4081 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4283 mkinstalldirs = $(install_sh) -d
4384 CONFIG_CLEAN_FILES =
4485 CONFIG_CLEAN_VPATH_FILES =
86 AM_V_P = $(am__v_P_@AM_V@)
87 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
88 am__v_P_0 = false
89 am__v_P_1 = :
90 AM_V_GEN = $(am__v_GEN_@AM_V@)
91 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
92 am__v_GEN_0 = @echo " GEN " $@;
93 am__v_GEN_1 =
94 AM_V_at = $(am__v_at_@AM_V@)
95 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
96 am__v_at_0 = @
97 am__v_at_1 =
4598 SOURCES =
4699 DIST_SOURCES =
100 am__can_run_installinfo = \
101 case $$AM_UPDATE_INFO_DIR in \
102 n|no|NO) false;; \
103 *) (install-info --version) >/dev/null 2>&1;; \
104 esac
105 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
47106 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
48107 ACLOCAL = @ACLOCAL@
49108 AMTAR = @AMTAR@
109 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
50110 API_VERSION = @API_VERSION@
51111 AUTOCONF = @AUTOCONF@
52112 AUTOHEADER = @AUTOHEADER@
97157 am__tar = @am__tar@
98158 am__untar = @am__untar@
99159 bindir = @bindir@
100 build = @build@
101160 build_alias = @build_alias@
102 build_cpu = @build_cpu@
103 build_os = @build_os@
104 build_vendor = @build_vendor@
105161 builddir = @builddir@
106162 datadir = @datadir@
107163 datarootdir = @datarootdir@
108164 docdir = @docdir@
109165 dvidir = @dvidir@
110166 exec_prefix = @exec_prefix@
111 host = @host@
112167 host_alias = @host_alias@
113 host_cpu = @host_cpu@
114 host_os = @host_os@
115 host_vendor = @host_vendor@
116168 htmldir = @htmldir@
117169 includedir = @includedir@
118170 infodir = @infodir@
132184 sharedstatedir = @sharedstatedir@
133185 srcdir = @srcdir@
134186 sysconfdir = @sysconfdir@
135 target = @target@
136187 target_alias = @target_alias@
137 target_cpu = @target_cpu@
138 target_os = @target_os@
139 target_vendor = @target_vendor@
140188 top_build_prefix = @top_build_prefix@
141189 top_builddir = @top_builddir@
142190 top_srcdir = @top_srcdir@
178226 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
179227 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
180228 $(am__aclocal_m4_deps):
181 tags: TAGS
182 TAGS:
183
184 ctags: CTAGS
185 CTAGS:
229 tags TAGS:
230
231 ctags CTAGS:
232
233 cscope cscopelist:
186234
187235
188236 distdir: $(DISTFILES)
229277
230278 installcheck: installcheck-am
231279 install-strip:
232 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
233 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
234 `test -z '$(STRIP)' || \
235 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
280 if test -z '$(STRIP)'; then \
281 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
282 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
283 install; \
284 else \
285 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
286 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
287 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
288 fi
236289 mostlyclean-generic:
237290
238291 clean-generic:
312365
313366 .MAKE: install-am install-strip
314367
315 .PHONY: all all-am check check-am clean clean-generic distclean \
316 distclean-generic distdir dvi dvi-am html html-am info info-am \
317 install install-am install-data install-data-am install-dvi \
318 install-dvi-am install-exec install-exec-am install-html \
319 install-html-am install-info install-info-am install-man \
320 install-pdf install-pdf-am install-ps install-ps-am \
321 install-strip installcheck installcheck-am installdirs \
322 maintainer-clean maintainer-clean-generic mostlyclean \
323 mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am
368 .PHONY: all all-am check check-am clean clean-generic cscopelist-am \
369 ctags-am distclean distclean-generic distdir dvi dvi-am html \
370 html-am info info-am install install-am install-data \
371 install-data-am install-dvi install-dvi-am install-exec \
372 install-exec-am install-html install-html-am install-info \
373 install-info-am install-man install-pdf install-pdf-am \
374 install-ps install-ps-am install-strip installcheck \
375 installcheck-am installdirs maintainer-clean \
376 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
377 pdf-am ps ps-am tags-am uninstall uninstall-am
324378
325379
326380 # Tell versions [3.59,3.63) of GNU make to not export all variables.
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2011-11-20.07; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
3434 # FSF changes to this file are in the public domain.
3535 #
3636 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
37 # 'make' implicit rules from creating a file called install from it
3838 # when there is no Makefile.
3939 #
4040 # This script is compatible with the BSD install script, but was written
155155 -s) stripcmd=$stripprog;;
156156
157157 -t) dst_arg=$2
158 # Protect names problematic for 'test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
158162 shift;;
159163
160164 -T) no_target_directory=true;;
185189 fi
186190 shift # arg
187191 dst_arg=$arg
192 # Protect names problematic for 'test' and other utilities.
193 case $dst_arg in
194 -* | [=\(\)!]) dst_arg=./$dst_arg;;
195 esac
188196 done
189197 fi
190198
193201 echo "$0: no input file specified." >&2
194202 exit 1
195203 fi
196 # It's OK to call `install-sh -d' without argument.
204 # It's OK to call 'install-sh -d' without argument.
197205 # This can happen when creating conditional directories.
198206 exit 0
199207 fi
200208
201209 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
210 do_exit='(exit $ret); exit $ret'
211 trap "ret=129; $do_exit" 1
212 trap "ret=130; $do_exit" 2
213 trap "ret=141; $do_exit" 13
214 trap "ret=143; $do_exit" 15
203215
204216 # Set umask so as not to create temps with too-generous modes.
205217 # However, 'strip' requires both read and write access to temps.
227239
228240 for src
229241 do
230 # Protect names starting with `-'.
242 # Protect names problematic for 'test' and other utilities.
231243 case $src in
232 -*) src=./$src;;
244 -* | [=\(\)!]) src=./$src;;
233245 esac
234246
235247 if test -n "$dir_arg"; then
251263 echo "$0: no destination specified." >&2
252264 exit 1
253265 fi
254
255266 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260267
261268 # If destination is a directory, append the input filename; won't work
262269 # if double slashes aren't ignored.
346353 if test -z "$dir_arg" || {
347354 # Check for POSIX incompatibilities with -m.
348355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
349 # other-writeable bit of parent directory when it shouldn't.
356 # other-writable bit of parent directory when it shouldn't.
350357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
351358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
352359 case $ls_ld_tmpdir in
384391
385392 case $dstdir in
386393 /*) prefix='/';;
387 -*) prefix='./';;
394 [-=\(\)!]*) prefix='./';;
388395 *) prefix='';;
389396 esac
390397
402409
403410 for d
404411 do
405 test -z "$d" && continue
412 test X"$d" = X && continue
406413
407414 prefix=$prefix$d
408415 if test -d "$prefix"; then
+155
-316
missing less more
00 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2012-06-26.16; # UTC
4
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
87
98 # This program is free software; you can redistribute it and/or modify
109 # it under the terms of the GNU General Public License as published by
2524 # the same distribution terms that you use for the rest of that program.
2625
2726 if test $# -eq 0; then
28 echo 1>&2 "Try \`$0 --help' for more information"
27 echo 1>&2 "Try '$0 --help' for more information"
2928 exit 1
3029 fi
3130
32 run=:
33 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
34 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
4631 case $1 in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
6243
6344 -h|--h|--he|--hel|--help)
6445 echo "\
6546 $0 [OPTION]... PROGRAM [ARGUMENT]...
6647
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
6950
7051 Options:
7152 -h, --help display this help and exit
7253 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
7454
7555 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 autom4te touch the output file, or create a stub one
80 automake touch all \`Makefile.in' files
81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
82 flex create \`lex.yy.c', if possible, from existing .c
83 help2man touch the output file
84 lex create \`lex.yy.c', if possible, from existing .c
85 makeinfo touch the output file
86 tar try tar, gnutar, gtar, then tar without non-portable flags
87 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
88
89 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
90 \`g' are ignored when checking the name.
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
9161
9262 Send bug reports to <bug-automake@gnu.org>."
9363 exit $?
9969 ;;
10070
10171 -*)
102 echo 1>&2 "$0: Unknown \`$1' option"
103 echo 1>&2 "Try \`$0 --help' for more information"
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
10474 exit 1
10575 ;;
10676
10777 esac
10878
109 # normalize program name to check for.
110 program=`echo "$1" | sed '
111 s/^gnu-//; t
112 s/^gnu//; t
113 s/^g//; t'`
114
115 # Now exit if we have it, but it failed. Also exit now if we
116 # don't have it and --version was passed (most likely to detect
117 # the program). This is about non-GNU programs, so use $1 not
118 # $program.
119 case $1 in
120 lex*|yacc*)
121 # Not GNU programs, they don't have --version.
122 ;;
123
124 tar*)
125 if test -n "$run"; then
126 echo 1>&2 "ERROR: \`tar' requires --run"
127 exit 1
128 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
129 exit 1
130 fi
131 ;;
132
133 *)
134 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
135 # We have it, but it failed.
136 exit 1
137 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
138 # Could not run --version or --help. This is probably someone
139 # running `$TOOL --version' or `$TOOL --help' to check whether
140 # $TOOL exists and not knowing $TOOL uses missing.
141 exit 1
142 fi
143 ;;
144 esac
145
146 # If it does not exist, or fails to run (possibly an outdated version),
147 # try to emulate it.
148 case $program in
149 aclocal*)
150 echo 1>&2 "\
151 WARNING: \`$1' is $msg. You should only need it if
152 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
153 to install the \`Automake' and \`Perl' packages. Grab them from
154 any GNU archive site."
155 touch aclocal.m4
156 ;;
157
158 autoconf*)
159 echo 1>&2 "\
160 WARNING: \`$1' is $msg. You should only need it if
161 you modified \`${configure_ac}'. You might want to install the
162 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
163 archive site."
164 touch configure
165 ;;
166
167 autoheader*)
168 echo 1>&2 "\
169 WARNING: \`$1' is $msg. You should only need it if
170 you modified \`acconfig.h' or \`${configure_ac}'. You might want
171 to install the \`Autoconf' and \`GNU m4' packages. Grab them
172 from any GNU archive site."
173 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
174 test -z "$files" && files="config.h"
175 touch_files=
176 for f in $files; do
177 case $f in
178 *:*) touch_files="$touch_files "`echo "$f" |
179 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
180 *) touch_files="$touch_files $f.in";;
181 esac
182 done
183 touch $touch_files
184 ;;
185
186 automake*)
187 echo 1>&2 "\
188 WARNING: \`$1' is $msg. You should only need it if
189 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
190 You might want to install the \`Automake' and \`Perl' packages.
191 Grab them from any GNU archive site."
192 find . -type f -name Makefile.am -print |
193 sed 's/\.am$/.in/' |
194 while read f; do touch "$f"; done
195 ;;
196
197 autom4te*)
198 echo 1>&2 "\
199 WARNING: \`$1' is needed, but is $msg.
200 You might have modified some files without having the
201 proper tools for further handling them.
202 You can get \`$1' as part of \`Autoconf' from any GNU
203 archive site."
204
205 file=`echo "$*" | sed -n "$sed_output"`
206 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
207 if test -f "$file"; then
208 touch $file
209 else
210 test -z "$file" || exec >$file
211 echo "#! /bin/sh"
212 echo "# Created by GNU Automake missing as a replacement of"
213 echo "# $ $@"
214 echo "exit 0"
215 chmod +x $file
216 exit 1
217 fi
218 ;;
219
220 bison*|yacc*)
221 echo 1>&2 "\
222 WARNING: \`$1' $msg. You should only need it if
223 you modified a \`.y' file. You may need the \`Bison' package
224 in order for those modifications to take effect. You can get
225 \`Bison' from any GNU archive site."
226 rm -f y.tab.c y.tab.h
227 if test $# -ne 1; then
228 eval LASTARG="\${$#}"
229 case $LASTARG in
230 *.y)
231 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
232 if test -f "$SRCFILE"; then
233 cp "$SRCFILE" y.tab.c
234 fi
235 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
236 if test -f "$SRCFILE"; then
237 cp "$SRCFILE" y.tab.h
238 fi
239 ;;
240 esac
241 fi
242 if test ! -f y.tab.h; then
243 echo >y.tab.h
244 fi
245 if test ! -f y.tab.c; then
246 echo 'main() { return 0; }' >y.tab.c
247 fi
248 ;;
249
250 lex*|flex*)
251 echo 1>&2 "\
252 WARNING: \`$1' is $msg. You should only need it if
253 you modified a \`.l' file. You may need the \`Flex' package
254 in order for those modifications to take effect. You can get
255 \`Flex' from any GNU archive site."
256 rm -f lex.yy.c
257 if test $# -ne 1; then
258 eval LASTARG="\${$#}"
259 case $LASTARG in
260 *.l)
261 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
262 if test -f "$SRCFILE"; then
263 cp "$SRCFILE" lex.yy.c
264 fi
265 ;;
266 esac
267 fi
268 if test ! -f lex.yy.c; then
269 echo 'main() { return 0; }' >lex.yy.c
270 fi
271 ;;
272
273 help2man*)
274 echo 1>&2 "\
275 WARNING: \`$1' is $msg. You should only need it if
276 you modified a dependency of a manual page. You may need the
277 \`Help2man' package in order for those modifications to take
278 effect. You can get \`Help2man' from any GNU archive site."
279
280 file=`echo "$*" | sed -n "$sed_output"`
281 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
282 if test -f "$file"; then
283 touch $file
284 else
285 test -z "$file" || exec >$file
286 echo ".ab help2man is required to generate this page"
287 exit $?
288 fi
289 ;;
290
291 makeinfo*)
292 echo 1>&2 "\
293 WARNING: \`$1' is $msg. You should only need it if
294 you modified a \`.texi' or \`.texinfo' file, or any other file
295 indirectly affecting the aspect of the manual. The spurious
296 call might also be the consequence of using a buggy \`make' (AIX,
297 DU, IRIX). You might want to install the \`Texinfo' package or
298 the \`GNU make' package. Grab either from any GNU archive site."
299 # The file to touch is that specified with -o ...
300 file=`echo "$*" | sed -n "$sed_output"`
301 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
302 if test -z "$file"; then
303 # ... or it is the one specified with @setfilename ...
304 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
305 file=`sed -n '
306 /^@setfilename/{
307 s/.* \([^ ]*\) *$/\1/
308 p
309 q
310 }' $infile`
311 # ... or it is derived from the source name (dir/f.texi becomes f.info)
312 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
313 fi
314 # If the file does not exist, the user really needs makeinfo;
315 # let's fail without touching anything.
316 test -f $file || exit 1
317 touch $file
318 ;;
319
320 tar*)
321 shift
322
323 # We have already tried tar in the generic part.
324 # Look for gnutar/gtar before invocation to avoid ugly error
325 # messages.
326 if (gnutar --version > /dev/null 2>&1); then
327 gnutar "$@" && exit 0
328 fi
329 if (gtar --version > /dev/null 2>&1); then
330 gtar "$@" && exit 0
331 fi
332 firstarg="$1"
333 if shift; then
334 case $firstarg in
335 *o*)
336 firstarg=`echo "$firstarg" | sed s/o//`
337 tar "$firstarg" "$@" && exit 0
338 ;;
339 esac
340 case $firstarg in
341 *h*)
342 firstarg=`echo "$firstarg" | sed s/h//`
343 tar "$firstarg" "$@" && exit 0
344 ;;
345 esac
346 fi
347
348 echo 1>&2 "\
349 WARNING: I can't seem to be able to run \`tar' with the given arguments.
350 You may want to install GNU tar or Free paxutils, or check the
351 command line arguments."
352 exit 1
353 ;;
354
355 *)
356 echo 1>&2 "\
357 WARNING: \`$1' is needed, and is $msg.
358 You might have modified some files without having the
359 proper tools for further handling them. Check the \`README' file,
360 it often tells you about the needed prerequisites for installing
361 this package. You may also peek at any GNU archive site, in case
362 some other package would contain this missing \`$1' program."
363 exit 1
364 ;;
365 esac
366
367 exit 0
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'automa4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
368207
369208 # Local variables:
370209 # eval: (add-hook 'write-file-hooks 'time-stamp)
44 using System;
55 using DBus;
66 using DBus.GLib;
7 using DBus.Protocol;
78 using org.freedesktop.DBus;
89
910 namespace DBus
2829 {
2930 IOFunc dispatchHandler = delegate (IntPtr source, IOCondition condition, IntPtr data) {
3031 if ((condition & IOCondition.Hup) == IOCondition.Hup) {
31 if (Protocol.Verbose)
32 if (ProtocolInformation.Verbose)
3233 Console.Error.WriteLine ("Warning: Connection was probably hung up (" + condition + ")");
3334
3435 //TODO: handle disconnection properly, consider memory management
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.13.2 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1413
1514 @SET_MAKE@
1615 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__make_running_with_option = \
18 case $${target_option-} in \
19 ?) ;; \
20 *) echo "am__make_running_with_option: internal error: invalid" \
21 "target option '$${target_option-}' specified" >&2; \
22 exit 1;; \
23 esac; \
24 has_opt=no; \
25 sane_makeflags=$$MAKEFLAGS; \
26 if $(am__is_gnu_make); then \
27 sane_makeflags=$$MFLAGS; \
28 else \
29 case $$MAKEFLAGS in \
30 *\\[\ \ ]*) \
31 bs=\\; \
32 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
33 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
34 esac; \
35 fi; \
36 skip_next=no; \
37 strip_trailopt () \
38 { \
39 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
40 }; \
41 for flg in $$sane_makeflags; do \
42 test $$skip_next = yes && { skip_next=no; continue; }; \
43 case $$flg in \
44 *=*|--*) continue;; \
45 -*I) strip_trailopt 'I'; skip_next=yes;; \
46 -*I?*) strip_trailopt 'I';; \
47 -*O) strip_trailopt 'O'; skip_next=yes;; \
48 -*O?*) strip_trailopt 'O';; \
49 -*l) strip_trailopt 'l'; skip_next=yes;; \
50 -*l?*) strip_trailopt 'l';; \
51 -[dEDm]) skip_next=yes;; \
52 -[JT]) skip_next=yes;; \
53 esac; \
54 case $$flg in \
55 *$$target_option*) has_opt=yes; break;; \
56 esac; \
57 done; \
58 test $$has_opt = yes
59 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
60 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
1761 pkgdatadir = $(datadir)/@PACKAGE@
1862 pkgincludedir = $(includedir)/@PACKAGE@
1963 pkglibdir = $(libdir)/@PACKAGE@
3074 NORMAL_UNINSTALL = :
3175 PRE_UNINSTALL = :
3276 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 target_triplet = @target@
3677 subdir = src
37 DIST_COMMON = $(srcdir)/AssemblyInfo.cs.in $(srcdir)/Makefile.am \
38 $(srcdir)/Makefile.in
78 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
79 $(srcdir)/AssemblyInfo.cs.in
3980 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4081 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4182 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4384 mkinstalldirs = $(install_sh) -d
4485 CONFIG_CLEAN_FILES = AssemblyInfo.cs
4586 CONFIG_CLEAN_VPATH_FILES =
87 AM_V_P = $(am__v_P_@AM_V@)
88 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
89 am__v_P_0 = false
90 am__v_P_1 = :
91 AM_V_GEN = $(am__v_GEN_@AM_V@)
92 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
93 am__v_GEN_0 = @echo " GEN " $@;
94 am__v_GEN_1 =
95 AM_V_at = $(am__v_at_@AM_V@)
96 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
97 am__v_at_0 = @
98 am__v_at_1 =
4699 SOURCES =
47100 DIST_SOURCES =
101 am__can_run_installinfo = \
102 case $$AM_UPDATE_INFO_DIR in \
103 n|no|NO) false;; \
104 *) (install-info --version) >/dev/null 2>&1;; \
105 esac
106 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
48107 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
49108 ACLOCAL = @ACLOCAL@
50109 AMTAR = @AMTAR@
110 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
51111 API_VERSION = @API_VERSION@
52112 AUTOCONF = @AUTOCONF@
53113 AUTOHEADER = @AUTOHEADER@
98158 am__tar = @am__tar@
99159 am__untar = @am__untar@
100160 bindir = @bindir@
101 build = @build@
102161 build_alias = @build_alias@
103 build_cpu = @build_cpu@
104 build_os = @build_os@
105 build_vendor = @build_vendor@
106162 builddir = @builddir@
107163 datadir = @datadir@
108164 datarootdir = @datarootdir@
109165 docdir = @docdir@
110166 dvidir = @dvidir@
111167 exec_prefix = @exec_prefix@
112 host = @host@
113168 host_alias = @host_alias@
114 host_cpu = @host_cpu@
115 host_os = @host_os@
116 host_vendor = @host_vendor@
117169 htmldir = @htmldir@
118170 includedir = @includedir@
119171 infodir = @infodir@
133185 sharedstatedir = @sharedstatedir@
134186 srcdir = @srcdir@
135187 sysconfdir = @sysconfdir@
136 target = @target@
137188 target_alias = @target_alias@
138 target_cpu = @target_cpu@
139 target_os = @target_os@
140 target_vendor = @target_vendor@
141189 top_build_prefix = @top_build_prefix@
142190 top_builddir = @top_builddir@
143191 top_srcdir = @top_srcdir@
203251 $(am__aclocal_m4_deps):
204252 AssemblyInfo.cs: $(top_builddir)/config.status $(srcdir)/AssemblyInfo.cs.in
205253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
206 tags: TAGS
207 TAGS:
208
209 ctags: CTAGS
210 CTAGS:
254 tags TAGS:
255
256 ctags CTAGS:
257
258 cscope cscopelist:
211259
212260
213261 distdir: $(DISTFILES)
254302
255303 installcheck: installcheck-am
256304 install-strip:
257 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
258 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
259 `test -z '$(STRIP)' || \
260 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
305 if test -z '$(STRIP)'; then \
306 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
307 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
308 install; \
309 else \
310 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
311 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
312 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
313 fi
261314 mostlyclean-generic:
262315
263316 clean-generic:
340393
341394 .MAKE: install-am install-strip
342395
343 .PHONY: all all-am check check-am clean clean-generic distclean \
344 distclean-generic distdir dvi dvi-am html html-am info info-am \
345 install install-am install-data install-data-am \
346 install-data-local install-dvi install-dvi-am install-exec \
347 install-exec-am install-html install-html-am install-info \
348 install-info-am install-man install-pdf install-pdf-am \
349 install-ps install-ps-am install-strip installcheck \
350 installcheck-am installdirs maintainer-clean \
396 .PHONY: all all-am check check-am clean clean-generic cscopelist-am \
397 ctags-am distclean distclean-generic distdir dvi dvi-am html \
398 html-am info info-am install install-am install-data \
399 install-data-am install-data-local install-dvi install-dvi-am \
400 install-exec install-exec-am install-html install-html-am \
401 install-info install-info-am install-man install-pdf \
402 install-pdf-am install-ps install-ps-am install-strip \
403 installcheck installcheck-am installdirs maintainer-clean \
351404 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
352 pdf-am ps ps-am uninstall uninstall-am uninstall-local
405 pdf-am ps ps-am tags-am uninstall uninstall-am uninstall-local
353406
354407
355408 all: $(TARGET)