New upstream version 2.16
Jochen Sprickerhof
7 years ago
0 | *.la | |
1 | *.lo | |
2 | *.o | |
3 | .deps | |
4 | .libs | |
5 | Makefile | |
6 | Makefile.in | |
7 | ||
8 | /aclocal.m4 | |
9 | /autom4te*.cache | |
10 | /build-aux/ | |
11 | /config.* | |
12 | /configure | |
13 | /libtool | |
14 | /stamp-h1 | |
15 | ||
16 | /libcryptmount.pc |
0 | # Makefile.in generated by automake 1.12.1 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.4 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2012 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
16 | 16 | # -*- Makefile -*- |
17 | 17 | |
18 | 18 | VPATH = @srcdir@ |
19 | am__make_dryrun = \ | |
20 | { \ | |
21 | am__dry=no; \ | |
19 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
20 | am__make_running_with_option = \ | |
21 | case $${target_option-} in \ | |
22 | ?) ;; \ | |
23 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
24 | "target option '$${target_option-}' specified" >&2; \ | |
25 | exit 1;; \ | |
26 | esac; \ | |
27 | has_opt=no; \ | |
28 | sane_makeflags=$$MAKEFLAGS; \ | |
29 | if $(am__is_gnu_make); then \ | |
30 | sane_makeflags=$$MFLAGS; \ | |
31 | else \ | |
22 | 32 | case $$MAKEFLAGS in \ |
23 | 33 | *\\[\ \ ]*) \ |
24 | echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
25 | | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
26 | *) \ | |
27 | for am__flg in $$MAKEFLAGS; do \ | |
28 | case $$am__flg in \ | |
29 | *=*|--*) ;; \ | |
30 | *n*) am__dry=yes; break;; \ | |
31 | esac; \ | |
32 | done;; \ | |
34 | bs=\\; \ | |
35 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
36 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
33 | 37 | esac; \ |
34 | test $$am__dry = yes; \ | |
35 | } | |
38 | fi; \ | |
39 | skip_next=no; \ | |
40 | strip_trailopt () \ | |
41 | { \ | |
42 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
43 | }; \ | |
44 | for flg in $$sane_makeflags; do \ | |
45 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
46 | case $$flg in \ | |
47 | *=*|--*) continue;; \ | |
48 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
49 | -*I?*) strip_trailopt 'I';; \ | |
50 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
51 | -*O?*) strip_trailopt 'O';; \ | |
52 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
53 | -*l?*) strip_trailopt 'l';; \ | |
54 | -[dEDm]) skip_next=yes;; \ | |
55 | -[JT]) skip_next=yes;; \ | |
56 | esac; \ | |
57 | case $$flg in \ | |
58 | *$$target_option*) has_opt=yes; break;; \ | |
59 | esac; \ | |
60 | done; \ | |
61 | test $$has_opt = yes | |
62 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
63 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
36 | 64 | pkgdatadir = $(datadir)/@PACKAGE@ |
37 | 65 | pkgincludedir = $(includedir)/@PACKAGE@ |
38 | 66 | pkglibdir = $(libdir)/@PACKAGE@ |
52 | 80 | build_triplet = @build@ |
53 | 81 | host_triplet = @host@ |
54 | 82 | subdir = . |
55 | DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \ | |
56 | $(srcdir)/Makefile.in $(srcdir)/config.h.in \ | |
57 | $(srcdir)/libcryptmount.pc.in $(top_srcdir)/build-aux/ar-lib \ | |
83 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
84 | $(top_srcdir)/configure $(am__configure_deps) \ | |
85 | $(srcdir)/config.h.in $(srcdir)/libcryptmount.pc.in COPYING \ | |
86 | build-aux/ar-lib build-aux/compile build-aux/config.guess \ | |
87 | build-aux/config.sub build-aux/install-sh build-aux/missing \ | |
88 | build-aux/ltmain.sh $(top_srcdir)/build-aux/ar-lib \ | |
58 | 89 | $(top_srcdir)/build-aux/compile \ |
59 | 90 | $(top_srcdir)/build-aux/config.guess \ |
60 | 91 | $(top_srcdir)/build-aux/config.sub \ |
61 | 92 | $(top_srcdir)/build-aux/install-sh \ |
62 | 93 | $(top_srcdir)/build-aux/ltmain.sh \ |
63 | $(top_srcdir)/build-aux/missing $(top_srcdir)/configure \ | |
64 | COPYING build-aux/ar-lib build-aux/compile \ | |
65 | build-aux/config.guess build-aux/config.sub \ | |
66 | build-aux/install-sh build-aux/ltmain.sh build-aux/missing | |
94 | $(top_srcdir)/build-aux/missing | |
67 | 95 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
68 | 96 | am__aclocal_m4_deps = $(top_srcdir)/m4/gcc4_visibility.m4 \ |
69 | 97 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ |
77 | 105 | CONFIG_HEADER = config.h |
78 | 106 | CONFIG_CLEAN_FILES = libcryptmount.pc |
79 | 107 | CONFIG_CLEAN_VPATH_FILES = |
108 | AM_V_P = $(am__v_P_@AM_V@) | |
109 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
110 | am__v_P_0 = false | |
111 | am__v_P_1 = : | |
80 | 112 | AM_V_GEN = $(am__v_GEN_@AM_V@) |
81 | 113 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) |
82 | 114 | am__v_GEN_0 = @echo " GEN " $@; |
115 | am__v_GEN_1 = | |
83 | 116 | AM_V_at = $(am__v_at_@AM_V@) |
84 | 117 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
85 | 118 | am__v_at_0 = @ |
119 | am__v_at_1 = | |
86 | 120 | SOURCES = |
87 | 121 | DIST_SOURCES = |
88 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | |
89 | html-recursive info-recursive install-data-recursive \ | |
90 | install-dvi-recursive install-exec-recursive \ | |
91 | install-html-recursive install-info-recursive \ | |
92 | install-pdf-recursive install-ps-recursive install-recursive \ | |
93 | installcheck-recursive installdirs-recursive pdf-recursive \ | |
94 | ps-recursive uninstall-recursive | |
122 | RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ | |
123 | ctags-recursive dvi-recursive html-recursive info-recursive \ | |
124 | install-data-recursive install-dvi-recursive \ | |
125 | install-exec-recursive install-html-recursive \ | |
126 | install-info-recursive install-pdf-recursive \ | |
127 | install-ps-recursive install-recursive installcheck-recursive \ | |
128 | installdirs-recursive pdf-recursive ps-recursive \ | |
129 | tags-recursive uninstall-recursive | |
95 | 130 | am__can_run_installinfo = \ |
96 | 131 | case $$AM_UPDATE_INFO_DIR in \ |
97 | 132 | n|no|NO) false;; \ |
128 | 163 | DATA = $(pkgconfig_DATA) |
129 | 164 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ |
130 | 165 | distclean-recursive maintainer-clean-recursive |
131 | AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ | |
132 | $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ | |
166 | am__recursive_targets = \ | |
167 | $(RECURSIVE_TARGETS) \ | |
168 | $(RECURSIVE_CLEAN_TARGETS) \ | |
169 | $(am__extra_recursive_targets) | |
170 | AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ | |
133 | 171 | cscope distdir dist dist-all distcheck |
172 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ | |
173 | $(LISP)config.h.in | |
174 | # Read a list of newline-separated strings from the standard input, | |
175 | # and print each of them once, without duplicates. Input order is | |
176 | # *not* preserved. | |
177 | am__uniquify_input = $(AWK) '\ | |
178 | BEGIN { nonempty = 0; } \ | |
179 | { items[$$0] = 1; nonempty = 1; } \ | |
180 | END { if (nonempty) { for (i in items) print i; }; } \ | |
181 | ' | |
182 | # Make sure the list of sources is unique. This is necessary because, | |
183 | # e.g., the same source file might be shared among _SOURCES variables | |
184 | # for different programs/libraries. | |
185 | am__define_uniq_tagged_files = \ | |
186 | list='$(am__tagged_files)'; \ | |
187 | unique=`for i in $$list; do \ | |
188 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
189 | done | $(am__uniquify_input)` | |
134 | 190 | ETAGS = etags |
135 | 191 | CTAGS = ctags |
136 | 192 | CSCOPE = cscope |
422 | 478 | # (1) if the variable is set in 'config.status', edit 'config.status' |
423 | 479 | # (which will cause the Makefiles to be regenerated when you run 'make'); |
424 | 480 | # (2) otherwise, pass the desired values on the 'make' command line. |
425 | $(RECURSIVE_TARGETS): | |
426 | @fail= failcom='exit 1'; \ | |
427 | for f in x $$MAKEFLAGS; do \ | |
428 | case $$f in \ | |
429 | *=* | --[!k]*);; \ | |
430 | *k*) failcom='fail=yes';; \ | |
431 | esac; \ | |
432 | done; \ | |
481 | $(am__recursive_targets): | |
482 | @fail=; \ | |
483 | if $(am__make_keepgoing); then \ | |
484 | failcom='fail=yes'; \ | |
485 | else \ | |
486 | failcom='exit 1'; \ | |
487 | fi; \ | |
433 | 488 | dot_seen=no; \ |
434 | 489 | target=`echo $@ | sed s/-recursive//`; \ |
435 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
490 | case "$@" in \ | |
491 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
492 | *) list='$(SUBDIRS)' ;; \ | |
493 | esac; \ | |
494 | for subdir in $$list; do \ | |
436 | 495 | echo "Making $$target in $$subdir"; \ |
437 | 496 | if test "$$subdir" = "."; then \ |
438 | 497 | dot_seen=yes; \ |
447 | 506 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
448 | 507 | fi; test -z "$$fail" |
449 | 508 | |
450 | $(RECURSIVE_CLEAN_TARGETS): | |
451 | @fail= failcom='exit 1'; \ | |
452 | for f in x $$MAKEFLAGS; do \ | |
453 | case $$f in \ | |
454 | *=* | --[!k]*);; \ | |
455 | *k*) failcom='fail=yes';; \ | |
456 | esac; \ | |
457 | done; \ | |
458 | dot_seen=no; \ | |
459 | case "$@" in \ | |
460 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
461 | *) list='$(SUBDIRS)' ;; \ | |
462 | esac; \ | |
463 | rev=''; for subdir in $$list; do \ | |
464 | if test "$$subdir" = "."; then :; else \ | |
465 | rev="$$subdir $$rev"; \ | |
466 | fi; \ | |
467 | done; \ | |
468 | rev="$$rev ."; \ | |
469 | target=`echo $@ | sed s/-recursive//`; \ | |
470 | for subdir in $$rev; do \ | |
471 | echo "Making $$target in $$subdir"; \ | |
472 | if test "$$subdir" = "."; then \ | |
473 | local_target="$$target-am"; \ | |
474 | else \ | |
475 | local_target="$$target"; \ | |
476 | fi; \ | |
477 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
478 | || eval $$failcom; \ | |
479 | done && test -z "$$fail" | |
480 | tags-recursive: | |
481 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
482 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
483 | done | |
484 | ctags-recursive: | |
485 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
486 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |
487 | done | |
488 | cscopelist-recursive: | |
489 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
490 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \ | |
491 | done | |
492 | ||
493 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
494 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
495 | unique=`for i in $$list; do \ | |
496 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
497 | done | \ | |
498 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
499 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
500 | mkid -fID $$unique | |
501 | tags: TAGS | |
502 | ||
503 | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
504 | $(TAGS_FILES) $(LISP) | |
509 | ID: $(am__tagged_files) | |
510 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
511 | tags: tags-recursive | |
512 | TAGS: tags | |
513 | ||
514 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
505 | 515 | set x; \ |
506 | 516 | here=`pwd`; \ |
507 | 517 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ |
517 | 527 | set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ |
518 | 528 | fi; \ |
519 | 529 | done; \ |
520 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
521 | unique=`for i in $$list; do \ | |
522 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
523 | done | \ | |
524 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
525 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
530 | $(am__define_uniq_tagged_files); \ | |
526 | 531 | shift; \ |
527 | 532 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
528 | 533 | test -n "$$unique" || unique=$$empty_fix; \ |
534 | 539 | $$unique; \ |
535 | 540 | fi; \ |
536 | 541 | fi |
537 | ctags: CTAGS | |
538 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
539 | $(TAGS_FILES) $(LISP) | |
540 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
541 | unique=`for i in $$list; do \ | |
542 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
543 | done | \ | |
544 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
545 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
542 | ctags: ctags-recursive | |
543 | ||
544 | CTAGS: ctags | |
545 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
546 | $(am__define_uniq_tagged_files); \ | |
546 | 547 | test -z "$(CTAGS_ARGS)$$unique" \ |
547 | 548 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
548 | 549 | $$unique |
551 | 552 | here=`$(am__cd) $(top_builddir) && pwd` \ |
552 | 553 | && $(am__cd) $(top_srcdir) \ |
553 | 554 | && gtags -i $(GTAGS_ARGS) "$$here" |
554 | ||
555 | 555 | cscope: cscope.files |
556 | 556 | test ! -s cscope.files \ |
557 | 557 | || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) |
558 | ||
559 | 558 | clean-cscope: |
560 | 559 | -rm -f cscope.files |
561 | ||
562 | cscope.files: clean-cscope cscopelist-recursive cscopelist | |
563 | ||
564 | cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP) | |
565 | list='$(SOURCES) $(HEADERS) $(LISP)'; \ | |
560 | cscope.files: clean-cscope cscopelist | |
561 | cscopelist: cscopelist-recursive | |
562 | ||
563 | cscopelist-am: $(am__tagged_files) | |
564 | list='$(am__tagged_files)'; \ | |
566 | 565 | case "$(srcdir)" in \ |
567 | 566 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ |
568 | 567 | *) sdir=$(subdir)/$(srcdir) ;; \ |
695 | 694 | *.zip*) \ |
696 | 695 | unzip $(distdir).zip ;;\ |
697 | 696 | esac |
698 | chmod -R a-w $(distdir); chmod a+w $(distdir) | |
699 | mkdir $(distdir)/_build | |
700 | mkdir $(distdir)/_inst | |
697 | chmod -R a-w $(distdir) | |
698 | chmod u+w $(distdir) | |
699 | mkdir $(distdir)/_build $(distdir)/_inst | |
701 | 700 | chmod a-w $(distdir) |
702 | 701 | test -d $(distdir)/_build || exit 0; \ |
703 | 702 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ |
869 | 868 | |
870 | 869 | uninstall-am: uninstall-pkgconfigDATA |
871 | 870 | |
872 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ | |
873 | cscopelist-recursive ctags-recursive install-am \ | |
874 | install-data-am install-strip tags-recursive | |
875 | ||
876 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | |
877 | all all-am am--refresh check check-am clean clean-cscope \ | |
878 | clean-generic clean-libtool cscope cscopelist \ | |
879 | cscopelist-recursive ctags ctags-recursive dist dist-all \ | |
880 | dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz \ | |
881 | dist-zip distcheck distclean distclean-generic distclean-hdr \ | |
882 | distclean-libtool distclean-tags distcleancheck distdir \ | |
883 | distuninstallcheck dvi dvi-am html html-am info info-am \ | |
884 | install install-am install-data install-data-am \ | |
871 | .MAKE: $(am__recursive_targets) all install-am install-data-am \ | |
872 | install-strip | |
873 | ||
874 | .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ | |
875 | am--refresh check check-am clean clean-cscope clean-generic \ | |
876 | clean-libtool cscope cscopelist-am ctags ctags-am dist \ | |
877 | dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ | |
878 | dist-xz dist-zip distcheck distclean distclean-generic \ | |
879 | distclean-hdr distclean-libtool distclean-tags distcleancheck \ | |
880 | distdir distuninstallcheck dvi dvi-am html html-am info \ | |
881 | info-am install install-am install-data install-data-am \ | |
885 | 882 | install-data-hook install-dvi install-dvi-am install-exec \ |
886 | 883 | install-exec-am install-html install-html-am install-info \ |
887 | 884 | install-info-am install-man install-pdf install-pdf-am \ |
889 | 886 | installcheck installcheck-am installdirs installdirs-am \ |
890 | 887 | maintainer-clean maintainer-clean-generic mostlyclean \ |
891 | 888 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ |
892 | tags tags-recursive uninstall uninstall-am \ | |
893 | uninstall-pkgconfigDATA | |
889 | tags tags-am uninstall uninstall-am uninstall-pkgconfigDATA | |
894 | 890 | |
895 | 891 | |
896 | 892 | ${pkgconfig_DATA}: ${top_builddir}/config.status |
0 | # generated automatically by aclocal 1.12.1 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
0 | # generated automatically by aclocal 1.13.4 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
3 | 3 | |
4 | 4 | # This file is free software; the Free Software Foundation |
5 | 5 | # gives unlimited permission to copy and/or distribute it, |
10 | 10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
11 | 11 | # PARTICULAR PURPOSE. |
12 | 12 | |
13 | m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | |
13 | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
14 | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
15 | 16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, |
218 | 219 | m4_popdef([pkg_description]) |
219 | 220 | ]) dnl PKG_NOARCH_INSTALLDIR |
220 | 221 | |
221 | # Copyright (C) 2002-2012 Free Software Foundation, Inc. | |
222 | # | |
223 | # This file is free software; the Free Software Foundation | |
224 | # gives unlimited permission to copy and/or distribute it, | |
225 | # with or without modifications, as long as this notice is preserved. | |
226 | ||
227 | # serial 8 | |
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. | |
238 | # | |
239 | # This file is free software; the Free Software Foundation | |
240 | # gives unlimited permission to copy and/or distribute it, | |
241 | # with or without modifications, as long as this notice is preserved. | |
228 | 242 | |
229 | 243 | # AM_AUTOMAKE_VERSION(VERSION) |
230 | 244 | # ---------------------------- |
232 | 246 | # generated from the m4 files accompanying Automake X.Y. |
233 | 247 | # (This private macro should not be called outside this file.) |
234 | 248 | AC_DEFUN([AM_AUTOMAKE_VERSION], |
235 | [am__api_version='1.12' | |
249 | [am__api_version='1.13' | |
236 | 250 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
237 | 251 | dnl require some minimum version. Point them to the right macro. |
238 | m4_if([$1], [1.12.1], [], | |
252 | m4_if([$1], [1.13.4], [], | |
239 | 253 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
240 | 254 | ]) |
241 | 255 | |
251 | 265 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
252 | 266 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
253 | 267 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
254 | [AM_AUTOMAKE_VERSION([1.12.1])dnl | |
268 | [AM_AUTOMAKE_VERSION([1.13.4])dnl | |
255 | 269 | m4_ifndef([AC_AUTOCONF_VERSION], |
256 | 270 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
257 | 271 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
258 | 272 | |
259 | # Copyright (C) 2011-2012 Free Software Foundation, Inc. | |
260 | # | |
261 | # This file is free software; the Free Software Foundation | |
262 | # gives unlimited permission to copy and/or distribute it, | |
263 | # with or without modifications, as long as this notice is preserved. | |
264 | ||
265 | # serial 1 | |
273 | # Copyright (C) 2011-2013 Free Software Foundation, Inc. | |
274 | # | |
275 | # This file is free software; the Free Software Foundation | |
276 | # gives unlimited permission to copy and/or distribute it, | |
277 | # with or without modifications, as long as this notice is preserved. | |
266 | 278 | |
267 | 279 | # AM_PROG_AR([ACT-IF-FAIL]) |
268 | 280 | # ------------------------- |
319 | 331 | |
320 | 332 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
321 | 333 | |
322 | # Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
323 | # | |
324 | # This file is free software; the Free Software Foundation | |
325 | # gives unlimited permission to copy and/or distribute it, | |
326 | # with or without modifications, as long as this notice is preserved. | |
327 | ||
328 | # serial 2 | |
334 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
335 | # | |
336 | # This file is free software; the Free Software Foundation | |
337 | # gives unlimited permission to copy and/or distribute it, | |
338 | # with or without modifications, as long as this notice is preserved. | |
329 | 339 | |
330 | 340 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
331 | 341 | # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to |
374 | 384 | |
375 | 385 | # AM_CONDITIONAL -*- Autoconf -*- |
376 | 386 | |
377 | # Copyright (C) 1997-2012 Free Software Foundation, Inc. | |
378 | # | |
379 | # This file is free software; the Free Software Foundation | |
380 | # gives unlimited permission to copy and/or distribute it, | |
381 | # with or without modifications, as long as this notice is preserved. | |
382 | ||
383 | # serial 10 | |
387 | # Copyright (C) 1997-2013 Free Software Foundation, Inc. | |
388 | # | |
389 | # This file is free software; the Free Software Foundation | |
390 | # gives unlimited permission to copy and/or distribute it, | |
391 | # with or without modifications, as long as this notice is preserved. | |
384 | 392 | |
385 | 393 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
386 | 394 | # ------------------------------------- |
407 | 415 | Usually this means the macro was only invoked conditionally.]]) |
408 | 416 | fi])]) |
409 | 417 | |
410 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
411 | # | |
412 | # This file is free software; the Free Software Foundation | |
413 | # gives unlimited permission to copy and/or distribute it, | |
414 | # with or without modifications, as long as this notice is preserved. | |
415 | ||
416 | # serial 17 | |
418 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
419 | # | |
420 | # This file is free software; the Free Software Foundation | |
421 | # gives unlimited permission to copy and/or distribute it, | |
422 | # with or without modifications, as long as this notice is preserved. | |
423 | ||
417 | 424 | |
418 | 425 | # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be |
419 | 426 | # written in clear, in which case automake, when reading aclocal.m4, |
599 | 606 | |
600 | 607 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
601 | 608 | |
602 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
603 | # | |
604 | # This file is free software; the Free Software Foundation | |
605 | # gives unlimited permission to copy and/or distribute it, | |
606 | # with or without modifications, as long as this notice is preserved. | |
607 | ||
608 | # serial 6 | |
609 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
610 | # | |
611 | # This file is free software; the Free Software Foundation | |
612 | # gives unlimited permission to copy and/or distribute it, | |
613 | # with or without modifications, as long as this notice is preserved. | |
614 | ||
609 | 615 | |
610 | 616 | # _AM_OUTPUT_DEPENDENCY_COMMANDS |
611 | 617 | # ------------------------------ |
612 | 618 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
613 | 619 | [{ |
614 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
620 | # Older Autoconf quotes --file arguments for eval, but not when files | |
615 | 621 | # are listed without --file. Let's play safe and only enable the eval |
616 | 622 | # if we detect the quoting. |
617 | 623 | case $CONFIG_FILES in |
640 | 646 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
641 | 647 | test -z "$DEPDIR" && continue |
642 | 648 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
643 | test -z "am__include" && continue | |
649 | test -z "$am__include" && continue | |
644 | 650 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
645 | 651 | # Find all dependency output files, they are included files with |
646 | 652 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
676 | 682 | |
677 | 683 | # Do all the work for Automake. -*- Autoconf -*- |
678 | 684 | |
679 | # Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
680 | # | |
681 | # This file is free software; the Free Software Foundation | |
682 | # gives unlimited permission to copy and/or distribute it, | |
683 | # with or without modifications, as long as this notice is preserved. | |
684 | ||
685 | # serial 19 | |
685 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
686 | # | |
687 | # This file is free software; the Free Software Foundation | |
688 | # gives unlimited permission to copy and/or distribute it, | |
689 | # with or without modifications, as long as this notice is preserved. | |
686 | 690 | |
687 | 691 | # This macro actually does too much. Some checks are only needed if |
688 | 692 | # your package does certain things. But this isn't really a big deal. |
699 | 703 | # arguments mandatory, and then we can depend on a new Autoconf |
700 | 704 | # release and drop the old call support. |
701 | 705 | AC_DEFUN([AM_INIT_AUTOMAKE], |
702 | [AC_PREREQ([2.62])dnl | |
706 | [AC_PREREQ([2.65])dnl | |
703 | 707 | dnl Autoconf wants to disallow AM_ names. We explicitly allow |
704 | 708 | dnl the ones we care about. |
705 | 709 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
729 | 733 | dnl Distinguish between old-style and new-style calls. |
730 | 734 | m4_ifval([$2], |
731 | 735 | [AC_DIAGNOSE([obsolete], |
732 | [$0: two- and three-arguments forms are deprecated. For more info, see: | |
733 | http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation]) | |
736 | [$0: two- and three-arguments forms are deprecated.]) | |
734 | 737 | m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
735 | 738 | AC_SUBST([PACKAGE], [$1])dnl |
736 | 739 | AC_SUBST([VERSION], [$2])], |
758 | 761 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
759 | 762 | AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
760 | 763 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
761 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
764 | # For better backward compatibility. To be removed once Automake 1.9.x | |
765 | # dies out for good. For more background, see: | |
766 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
767 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
768 | AC_SUBST([mkdir_p], ['$(MKDIR_P)']) | |
762 | 769 | # We need awk for the "check" target. The system "awk" is bad on |
763 | 770 | # some platforms. |
764 | 771 | AC_REQUIRE([AC_PROG_AWK])dnl |
780 | 787 | [_AM_DEPENDENCIES([OBJC])], |
781 | 788 | [m4_define([AC_PROG_OBJC], |
782 | 789 | m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl |
783 | dnl Support for Objective C++ was only introduced in Autoconf 2.65, | |
784 | dnl but we still cater to Autoconf 2.62. | |
785 | m4_ifdef([AC_PROG_OBJCXX], | |
786 | [AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |
790 | AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |
787 | 791 | [_AM_DEPENDENCIES([OBJCXX])], |
788 | 792 | [m4_define([AC_PROG_OBJCXX], |
789 | m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl | |
790 | ]) | |
791 | _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
792 | dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the | |
793 | dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
794 | dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
793 | m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl | |
794 | ]) | |
795 | AC_REQUIRE([AM_SILENT_RULES])dnl | |
796 | dnl The testsuite driver may need to know about EXEEXT, so add the | |
797 | dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This | |
798 | dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
795 | 799 | AC_CONFIG_COMMANDS_PRE(dnl |
796 | 800 | [m4_provide_if([_AM_COMPILER_EXEEXT], |
797 | 801 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
826 | 830 | done |
827 | 831 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
828 | 832 | |
829 | # Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
830 | # | |
831 | # This file is free software; the Free Software Foundation | |
832 | # gives unlimited permission to copy and/or distribute it, | |
833 | # with or without modifications, as long as this notice is preserved. | |
834 | ||
835 | # serial 8 | |
833 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
834 | # | |
835 | # This file is free software; the Free Software Foundation | |
836 | # gives unlimited permission to copy and/or distribute it, | |
837 | # with or without modifications, as long as this notice is preserved. | |
836 | 838 | |
837 | 839 | # AM_PROG_INSTALL_SH |
838 | 840 | # ------------------ |
849 | 851 | fi |
850 | 852 | AC_SUBST([install_sh])]) |
851 | 853 | |
852 | # Copyright (C) 2003-2012 Free Software Foundation, Inc. | |
853 | # | |
854 | # This file is free software; the Free Software Foundation | |
855 | # gives unlimited permission to copy and/or distribute it, | |
856 | # with or without modifications, as long as this notice is preserved. | |
857 | ||
858 | # serial 2 | |
854 | # Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
855 | # | |
856 | # This file is free software; the Free Software Foundation | |
857 | # gives unlimited permission to copy and/or distribute it, | |
858 | # with or without modifications, as long as this notice is preserved. | |
859 | 859 | |
860 | 860 | # Check whether the underlying file-system supports filenames |
861 | 861 | # with a leading dot. For instance MS-DOS doesn't. |
872 | 872 | |
873 | 873 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
874 | 874 | |
875 | # Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
876 | # | |
877 | # This file is free software; the Free Software Foundation | |
878 | # gives unlimited permission to copy and/or distribute it, | |
879 | # with or without modifications, as long as this notice is preserved. | |
880 | ||
881 | # serial 5 | |
875 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
876 | # | |
877 | # This file is free software; the Free Software Foundation | |
878 | # gives unlimited permission to copy and/or distribute it, | |
879 | # with or without modifications, as long as this notice is preserved. | |
882 | 880 | |
883 | 881 | # AM_MAKE_INCLUDE() |
884 | 882 | # ----------------- |
922 | 920 | rm -f confinc confmf |
923 | 921 | ]) |
924 | 922 | |
925 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
926 | # | |
927 | # This file is free software; the Free Software Foundation | |
928 | # gives unlimited permission to copy and/or distribute it, | |
929 | # with or without modifications, as long as this notice is preserved. | |
930 | ||
931 | # serial 6 | |
923 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
924 | # | |
925 | # This file is free software; the Free Software Foundation | |
926 | # gives unlimited permission to copy and/or distribute it, | |
927 | # with or without modifications, as long as this notice is preserved. | |
932 | 928 | |
933 | 929 | # AM_PROG_CC_C_O |
934 | 930 | # -------------- |
958 | 954 | |
959 | 955 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
960 | 956 | |
961 | # Copyright (C) 1997-2012 Free Software Foundation, Inc. | |
962 | # | |
963 | # This file is free software; the Free Software Foundation | |
964 | # gives unlimited permission to copy and/or distribute it, | |
965 | # with or without modifications, as long as this notice is preserved. | |
966 | ||
967 | # serial 7 | |
957 | # Copyright (C) 1997-2013 Free Software Foundation, Inc. | |
958 | # | |
959 | # This file is free software; the Free Software Foundation | |
960 | # gives unlimited permission to copy and/or distribute it, | |
961 | # with or without modifications, as long as this notice is preserved. | |
968 | 962 | |
969 | 963 | # AM_MISSING_PROG(NAME, PROGRAM) |
970 | 964 | # ------------------------------ |
973 | 967 | $1=${$1-"${am_missing_run}$2"} |
974 | 968 | AC_SUBST($1)]) |
975 | 969 | |
976 | ||
977 | 970 | # AM_MISSING_HAS_RUN |
978 | 971 | # ------------------ |
979 | # Define MISSING if not defined so far and test if it supports --run. | |
980 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
972 | # Define MISSING if not defined so far and test if it is modern enough. | |
973 | # If it is, set am_missing_run to use it, otherwise, to nothing. | |
981 | 974 | AC_DEFUN([AM_MISSING_HAS_RUN], |
982 | 975 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
983 | 976 | AC_REQUIRE_AUX_FILE([missing])dnl |
990 | 983 | esac |
991 | 984 | fi |
992 | 985 | # Use eval to expand $SHELL |
993 | if eval "$MISSING --run true"; then | |
994 | am_missing_run="$MISSING --run " | |
986 | if eval "$MISSING --is-lightweight"; then | |
987 | am_missing_run="$MISSING " | |
995 | 988 | else |
996 | 989 | am_missing_run= |
997 | 990 | AC_MSG_WARN(['missing' script is too old or missing]) |
1000 | 993 | |
1001 | 994 | # Helper functions for option handling. -*- Autoconf -*- |
1002 | 995 | |
1003 | # Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
1004 | # | |
1005 | # This file is free software; the Free Software Foundation | |
1006 | # gives unlimited permission to copy and/or distribute it, | |
1007 | # with or without modifications, as long as this notice is preserved. | |
1008 | ||
1009 | # serial 6 | |
996 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
997 | # | |
998 | # This file is free software; the Free Software Foundation | |
999 | # gives unlimited permission to copy and/or distribute it, | |
1000 | # with or without modifications, as long as this notice is preserved. | |
1010 | 1001 | |
1011 | 1002 | # _AM_MANGLE_OPTION(NAME) |
1012 | 1003 | # ----------------------- |
1031 | 1022 | AC_DEFUN([_AM_IF_OPTION], |
1032 | 1023 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
1033 | 1024 | |
1034 | # Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
1035 | # | |
1036 | # This file is free software; the Free Software Foundation | |
1037 | # gives unlimited permission to copy and/or distribute it, | |
1038 | # with or without modifications, as long as this notice is preserved. | |
1039 | ||
1040 | # serial 1 | |
1025 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
1026 | # | |
1027 | # This file is free software; the Free Software Foundation | |
1028 | # gives unlimited permission to copy and/or distribute it, | |
1029 | # with or without modifications, as long as this notice is preserved. | |
1041 | 1030 | |
1042 | 1031 | # AM_RUN_LOG(COMMAND) |
1043 | 1032 | # ------------------- |
1052 | 1041 | |
1053 | 1042 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
1054 | 1043 | |
1055 | # Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
1056 | # | |
1057 | # This file is free software; the Free Software Foundation | |
1058 | # gives unlimited permission to copy and/or distribute it, | |
1059 | # with or without modifications, as long as this notice is preserved. | |
1060 | ||
1061 | # serial 9 | |
1044 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
1045 | # | |
1046 | # This file is free software; the Free Software Foundation | |
1047 | # gives unlimited permission to copy and/or distribute it, | |
1048 | # with or without modifications, as long as this notice is preserved. | |
1062 | 1049 | |
1063 | 1050 | # AM_SANITY_CHECK |
1064 | 1051 | # --------------- |
1135 | 1122 | rm -f conftest.file |
1136 | 1123 | ]) |
1137 | 1124 | |
1138 | # Copyright (C) 2009-2012 Free Software Foundation, Inc. | |
1139 | # | |
1140 | # This file is free software; the Free Software Foundation | |
1141 | # gives unlimited permission to copy and/or distribute it, | |
1142 | # with or without modifications, as long as this notice is preserved. | |
1143 | ||
1144 | # serial 3 | |
1125 | # Copyright (C) 2009-2013 Free Software Foundation, Inc. | |
1126 | # | |
1127 | # This file is free software; the Free Software Foundation | |
1128 | # gives unlimited permission to copy and/or distribute it, | |
1129 | # with or without modifications, as long as this notice is preserved. | |
1145 | 1130 | |
1146 | 1131 | # AM_SILENT_RULES([DEFAULT]) |
1147 | 1132 | # -------------------------- |
1197 | 1182 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
1198 | 1183 | ]) |
1199 | 1184 | |
1200 | # Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
1201 | # | |
1202 | # This file is free software; the Free Software Foundation | |
1203 | # gives unlimited permission to copy and/or distribute it, | |
1204 | # with or without modifications, as long as this notice is preserved. | |
1205 | ||
1206 | # serial 2 | |
1185 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
1186 | # | |
1187 | # This file is free software; the Free Software Foundation | |
1188 | # gives unlimited permission to copy and/or distribute it, | |
1189 | # with or without modifications, as long as this notice is preserved. | |
1207 | 1190 | |
1208 | 1191 | # AM_PROG_INSTALL_STRIP |
1209 | 1192 | # --------------------- |
1227 | 1210 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
1228 | 1211 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
1229 | 1212 | |
1230 | # Copyright (C) 2006-2012 Free Software Foundation, Inc. | |
1231 | # | |
1232 | # This file is free software; the Free Software Foundation | |
1233 | # gives unlimited permission to copy and/or distribute it, | |
1234 | # with or without modifications, as long as this notice is preserved. | |
1235 | ||
1236 | # serial 3 | |
1213 | # Copyright (C) 2006-2013 Free Software Foundation, Inc. | |
1214 | # | |
1215 | # This file is free software; the Free Software Foundation | |
1216 | # gives unlimited permission to copy and/or distribute it, | |
1217 | # with or without modifications, as long as this notice is preserved. | |
1237 | 1218 | |
1238 | 1219 | # _AM_SUBST_NOTMAKE(VARIABLE) |
1239 | 1220 | # --------------------------- |
1248 | 1229 | |
1249 | 1230 | # Check how to create a tarball. -*- Autoconf -*- |
1250 | 1231 | |
1251 | # Copyright (C) 2004-2012 Free Software Foundation, Inc. | |
1252 | # | |
1253 | # This file is free software; the Free Software Foundation | |
1254 | # gives unlimited permission to copy and/or distribute it, | |
1255 | # with or without modifications, as long as this notice is preserved. | |
1256 | ||
1257 | # serial 3 | |
1232 | # Copyright (C) 2004-2013 Free Software Foundation, Inc. | |
1233 | # | |
1234 | # This file is free software; the Free Software Foundation | |
1235 | # gives unlimited permission to copy and/or distribute it, | |
1236 | # with or without modifications, as long as this notice is preserved. | |
1258 | 1237 | |
1259 | 1238 | # _AM_PROG_TAR(FORMAT) |
1260 | 1239 | # -------------------- |
1269 | 1248 | # Substitute a variable $(am__untar) that extract such |
1270 | 1249 | # a tarball read from stdin. |
1271 | 1250 | # $(am__untar) < result.tar |
1251 | # | |
1272 | 1252 | AC_DEFUN([_AM_PROG_TAR], |
1273 | 1253 | [# Always define AMTAR for backward compatibility. Yes, it's still used |
1274 | 1254 | # in the wild :-( We should find a proper way to deprecate it ... |
1275 | 1255 | AC_SUBST([AMTAR], ['$${TAR-tar}']) |
1256 | ||
1257 | # We'll loop over all known methods to create a tar archive until one works. | |
1258 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
1259 | ||
1276 | 1260 | m4_if([$1], [v7], |
1277 | [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
1278 | [m4_case([$1], [ustar],, [pax],, | |
1279 | [m4_fatal([Unknown tar format])]) | |
1280 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
1281 | # Loop over all known methods to create a tar archive until one works. | |
1282 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
1283 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
1284 | # Do not fold the above two line into one, because Tru64 sh and | |
1285 | # Solaris sh will not grok spaces in the rhs of '-'. | |
1286 | for _am_tool in $_am_tools | |
1287 | do | |
1288 | case $_am_tool in | |
1289 | gnutar) | |
1290 | for _am_tar in tar gnutar gtar; | |
1291 | do | |
1292 | AM_RUN_LOG([$_am_tar --version]) && break | |
1293 | done | |
1294 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
1295 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
1296 | am__untar="$_am_tar -xf -" | |
1297 | ;; | |
1298 | plaintar) | |
1299 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
1300 | # ustar tarball either. | |
1301 | (tar --version) >/dev/null 2>&1 && continue | |
1302 | am__tar='tar chf - "$$tardir"' | |
1303 | am__tar_='tar chf - "$tardir"' | |
1304 | am__untar='tar xf -' | |
1305 | ;; | |
1306 | pax) | |
1307 | am__tar='pax -L -x $1 -w "$$tardir"' | |
1308 | am__tar_='pax -L -x $1 -w "$tardir"' | |
1309 | am__untar='pax -r' | |
1310 | ;; | |
1311 | cpio) | |
1312 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
1313 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
1314 | am__untar='cpio -i -H $1 -d' | |
1315 | ;; | |
1316 | none) | |
1317 | am__tar=false | |
1318 | am__tar_=false | |
1319 | am__untar=false | |
1320 | ;; | |
1321 | esac | |
1322 | ||
1323 | # If the value was cached, stop now. We just wanted to have am__tar | |
1324 | # and am__untar set. | |
1325 | test -n "${am_cv_prog_tar_$1}" && break | |
1326 | ||
1327 | # tar/untar a dummy directory, and stop if the command works | |
1261 | [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
1262 | ||
1263 | [m4_case([$1], | |
1264 | [ustar], | |
1265 | [# The POSIX 1988 'ustar' format is defined with fixed-size fields. | |
1266 | # There is notably a 21 bits limit for the UID and the GID. In fact, | |
1267 | # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 | |
1268 | # and bug#13588). | |
1269 | am_max_uid=2097151 # 2^21 - 1 | |
1270 | am_max_gid=$am_max_uid | |
1271 | # The $UID and $GID variables are not portable, so we need to resort | |
1272 | # to the POSIX-mandated id(1) utility. Errors in the 'id' calls | |
1273 | # below are definitely unexpected, so allow the users to see them | |
1274 | # (that is, avoid stderr redirection). | |
1275 | am_uid=`id -u || echo unknown` | |
1276 | am_gid=`id -g || echo unknown` | |
1277 | AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) | |
1278 | if test $am_uid -le $am_max_uid; then | |
1279 | AC_MSG_RESULT([yes]) | |
1280 | else | |
1281 | AC_MSG_RESULT([no]) | |
1282 | _am_tools=none | |
1283 | fi | |
1284 | AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) | |
1285 | if test $am_gid -le $am_max_gid; then | |
1286 | AC_MSG_RESULT([yes]) | |
1287 | else | |
1288 | AC_MSG_RESULT([no]) | |
1289 | _am_tools=none | |
1290 | fi], | |
1291 | ||
1292 | [pax], | |
1293 | [], | |
1294 | ||
1295 | [m4_fatal([Unknown tar format])]) | |
1296 | ||
1297 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
1298 | ||
1299 | # Go ahead even if we have the value already cached. We do so because we | |
1300 | # need to set the values for the 'am__tar' and 'am__untar' variables. | |
1301 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
1302 | ||
1303 | for _am_tool in $_am_tools; do | |
1304 | case $_am_tool in | |
1305 | gnutar) | |
1306 | for _am_tar in tar gnutar gtar; do | |
1307 | AM_RUN_LOG([$_am_tar --version]) && break | |
1308 | done | |
1309 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
1310 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
1311 | am__untar="$_am_tar -xf -" | |
1312 | ;; | |
1313 | plaintar) | |
1314 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
1315 | # ustar tarball either. | |
1316 | (tar --version) >/dev/null 2>&1 && continue | |
1317 | am__tar='tar chf - "$$tardir"' | |
1318 | am__tar_='tar chf - "$tardir"' | |
1319 | am__untar='tar xf -' | |
1320 | ;; | |
1321 | pax) | |
1322 | am__tar='pax -L -x $1 -w "$$tardir"' | |
1323 | am__tar_='pax -L -x $1 -w "$tardir"' | |
1324 | am__untar='pax -r' | |
1325 | ;; | |
1326 | cpio) | |
1327 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
1328 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
1329 | am__untar='cpio -i -H $1 -d' | |
1330 | ;; | |
1331 | none) | |
1332 | am__tar=false | |
1333 | am__tar_=false | |
1334 | am__untar=false | |
1335 | ;; | |
1336 | esac | |
1337 | ||
1338 | # If the value was cached, stop now. We just wanted to have am__tar | |
1339 | # and am__untar set. | |
1340 | test -n "${am_cv_prog_tar_$1}" && break | |
1341 | ||
1342 | # tar/untar a dummy directory, and stop if the command works. | |
1343 | rm -rf conftest.dir | |
1344 | mkdir conftest.dir | |
1345 | echo GrepMe > conftest.dir/file | |
1346 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1347 | rm -rf conftest.dir | |
1348 | if test -s conftest.tar; then | |
1349 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
1350 | AM_RUN_LOG([cat conftest.dir/file]) | |
1351 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1352 | fi | |
1353 | done | |
1328 | 1354 | rm -rf conftest.dir |
1329 | mkdir conftest.dir | |
1330 | echo GrepMe > conftest.dir/file | |
1331 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1332 | rm -rf conftest.dir | |
1333 | if test -s conftest.tar; then | |
1334 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
1335 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1336 | fi | |
1337 | done | |
1338 | rm -rf conftest.dir | |
1339 | ||
1340 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1341 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1355 | ||
1356 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1357 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1358 | ||
1342 | 1359 | AC_SUBST([am__tar]) |
1343 | 1360 | AC_SUBST([am__untar]) |
1344 | 1361 | ]) # _AM_PROG_TAR |
3 | 3 | me=ar-lib |
4 | 4 | scriptversion=2012-03-01.08; # UTC |
5 | 5 | |
6 | # Copyright (C) 2010-2012 Free Software Foundation, Inc. | |
6 | # Copyright (C) 2010-2013 Free Software Foundation, Inc. | |
7 | 7 | # Written by Peter Rosin <peda@lysator.liu.se>. |
8 | 8 | # |
9 | 9 | # This program is free software; you can redistribute it and/or modify |
0 | 0 | #! /bin/sh |
1 | 1 | # Wrapper for compilers which do not understand '-c -o'. |
2 | 2 | |
3 | scriptversion=2012-03-05.13; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
3 | scriptversion=2012-10-14.11; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
6 | 6 | # Written by Tom Tromey <tromey@cygnus.com>. |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify |
111 | 111 | lib=$dir/$lib.lib |
112 | 112 | break |
113 | 113 | fi |
114 | if test -f "$dir/lib$lib.a"; then | |
115 | found=yes | |
116 | lib=$dir/lib$lib.a | |
117 | break | |
118 | fi | |
114 | 119 | done |
115 | 120 | IFS=$save_IFS |
116 | 121 |
0 | 0 | #! /bin/sh |
1 | 1 | # Attempt to guess a canonical system name. |
2 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | |
3 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, | |
4 | # 2011, 2012 Free Software Foundation, Inc. | |
5 | ||
6 | timestamp='2012-02-10' | |
2 | # Copyright 1992-2013 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2013-06-10' | |
7 | 5 | |
8 | 6 | # This file is free software; you can redistribute it and/or modify it |
9 | 7 | # under the terms of the GNU General Public License as published by |
10 | # the Free Software Foundation; either version 2 of the License, or | |
8 | # the Free Software Foundation; either version 3 of the License, or | |
11 | 9 | # (at your option) any later version. |
12 | 10 | # |
13 | 11 | # This program is distributed in the hope that it will be useful, but |
21 | 19 | # As a special exception to the GNU General Public License, if you |
22 | 20 | # distribute this file as part of a program that contains a |
23 | 21 | # configuration script generated by Autoconf, you may include it under |
24 | # the same distribution terms that you use for the rest of that program. | |
25 | ||
26 | ||
27 | # Originally written by Per Bothner. Please send patches (context | |
28 | # diff format) to <config-patches@gnu.org> and include a ChangeLog | |
29 | # entry. | |
22 | # the same distribution terms that you use for the rest of that | |
23 | # program. This Exception is an additional permission under section 7 | |
24 | # of the GNU General Public License, version 3 ("GPLv3"). | |
30 | 25 | # |
31 | # This script attempts to guess a canonical system name similar to | |
32 | # config.sub. If it succeeds, it prints the system name on stdout, and | |
33 | # exits with 0. Otherwise, it exits with 1. | |
26 | # Originally written by Per Bothner. | |
34 | 27 | # |
35 | 28 | # You can get the latest version of this script from: |
36 | 29 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
30 | # | |
31 | # Please send patches with a ChangeLog entry to config-patches@gnu.org. | |
32 | ||
37 | 33 | |
38 | 34 | me=`echo "$0" | sed -e 's,.*/,,'` |
39 | 35 | |
53 | 49 | GNU config.guess ($timestamp) |
54 | 50 | |
55 | 51 | Originally written by Per Bothner. |
56 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | |
57 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 | |
58 | Free Software Foundation, Inc. | |
52 | Copyright 1992-2013 Free Software Foundation, Inc. | |
59 | 53 | |
60 | 54 | This is free software; see the source for copying conditions. There is NO |
61 | 55 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
136 | 130 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
137 | 131 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
138 | 132 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
133 | ||
134 | case "${UNAME_SYSTEM}" in | |
135 | Linux|GNU|GNU/*) | |
136 | # If the system lacks a compiler, then just pick glibc. | |
137 | # We could probably try harder. | |
138 | LIBC=gnu | |
139 | ||
140 | eval $set_cc_for_build | |
141 | cat <<-EOF > $dummy.c | |
142 | #include <features.h> | |
143 | #if defined(__UCLIBC__) | |
144 | LIBC=uclibc | |
145 | #elif defined(__dietlibc__) | |
146 | LIBC=dietlibc | |
147 | #else | |
148 | LIBC=gnu | |
149 | #endif | |
150 | EOF | |
151 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
152 | ;; | |
153 | esac | |
139 | 154 | |
140 | 155 | case "${UNAME_MACHINE}" in |
141 | 156 | i?86) |
208 | 223 | # contains redundant information, the shorter form: |
209 | 224 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
210 | 225 | echo "${machine}-${os}${release}" |
226 | exit ;; | |
227 | *:Bitrig:*:*) | |
228 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | |
229 | echo ${UNAME_MACHINE_ARCH}-${VENDOR}-bitrig${UNAME_RELEASE} | |
211 | 230 | exit ;; |
212 | 231 | *:OpenBSD:*:*) |
213 | 232 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
311 | 330 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
312 | 331 | echo arm-acorn-riscix${UNAME_RELEASE} |
313 | 332 | exit ;; |
314 | arm:riscos:*:*|arm:RISCOS:*:*) | |
333 | arm*:riscos:*:*|arm*:RISCOS:*:*) | |
315 | 334 | echo arm-${VENDOR}-riscos |
316 | 335 | exit ;; |
317 | 336 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
810 | 829 | i*:CYGWIN*:*) |
811 | 830 | echo ${UNAME_MACHINE}-pc-cygwin |
812 | 831 | exit ;; |
832 | *:MINGW64*:*) | |
833 | echo ${UNAME_MACHINE}-pc-mingw64 | |
834 | exit ;; | |
813 | 835 | *:MINGW*:*) |
814 | 836 | echo ${UNAME_MACHINE}-pc-mingw32 |
815 | 837 | exit ;; |
861 | 883 | exit ;; |
862 | 884 | *:GNU:*:*) |
863 | 885 | # the GNU system |
864 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
886 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
865 | 887 | exit ;; |
866 | 888 | *:GNU/*:*:*) |
867 | 889 | # other systems with GNU libc and userland |
868 | echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | |
890 | echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} | |
869 | 891 | exit ;; |
870 | 892 | i*86:Minix:*:*) |
871 | 893 | echo ${UNAME_MACHINE}-pc-minix |
872 | 894 | exit ;; |
873 | 895 | aarch64:Linux:*:*) |
874 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
896 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
875 | 897 | exit ;; |
876 | 898 | aarch64_be:Linux:*:*) |
877 | 899 | UNAME_MACHINE=aarch64_be |
878 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
900 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
879 | 901 | exit ;; |
880 | 902 | alpha:Linux:*:*) |
881 | 903 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
888 | 910 | EV68*) UNAME_MACHINE=alphaev68 ;; |
889 | 911 | esac |
890 | 912 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
891 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | |
892 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC} | |
913 | if test "$?" = 0 ; then LIBC="gnulibc1" ; fi | |
914 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
915 | exit ;; | |
916 | arc:Linux:*:* | arceb:Linux:*:*) | |
917 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
893 | 918 | exit ;; |
894 | 919 | arm*:Linux:*:*) |
895 | 920 | eval $set_cc_for_build |
896 | 921 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
897 | 922 | | grep -q __ARM_EABI__ |
898 | 923 | then |
899 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
924 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
900 | 925 | else |
901 | 926 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
902 | 927 | | grep -q __ARM_PCS_VFP |
903 | 928 | then |
904 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi | |
929 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabi | |
905 | 930 | else |
906 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabihf | |
931 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}eabihf | |
907 | 932 | fi |
908 | 933 | fi |
909 | 934 | exit ;; |
910 | 935 | avr32*:Linux:*:*) |
911 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
936 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
912 | 937 | exit ;; |
913 | 938 | cris:Linux:*:*) |
914 | echo ${UNAME_MACHINE}-axis-linux-gnu | |
939 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
915 | 940 | exit ;; |
916 | 941 | crisv32:Linux:*:*) |
917 | echo ${UNAME_MACHINE}-axis-linux-gnu | |
942 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
918 | 943 | exit ;; |
919 | 944 | frv:Linux:*:*) |
920 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
945 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
921 | 946 | exit ;; |
922 | 947 | hexagon:Linux:*:*) |
923 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
948 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
924 | 949 | exit ;; |
925 | 950 | i*86:Linux:*:*) |
926 | LIBC=gnu | |
927 | eval $set_cc_for_build | |
928 | sed 's/^ //' << EOF >$dummy.c | |
929 | #ifdef __dietlibc__ | |
930 | LIBC=dietlibc | |
931 | #endif | |
932 | EOF | |
933 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
934 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
951 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} | |
935 | 952 | exit ;; |
936 | 953 | ia64:Linux:*:*) |
937 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
954 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
938 | 955 | exit ;; |
939 | 956 | m32r*:Linux:*:*) |
940 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
957 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
941 | 958 | exit ;; |
942 | 959 | m68*:Linux:*:*) |
943 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
960 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
944 | 961 | exit ;; |
945 | 962 | mips:Linux:*:* | mips64:Linux:*:*) |
946 | 963 | eval $set_cc_for_build |
959 | 976 | #endif |
960 | 977 | EOF |
961 | 978 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
962 | test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; } | |
979 | test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-${LIBC}"; exit; } | |
963 | 980 | ;; |
981 | or1k:Linux:*:*) | |
982 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
983 | exit ;; | |
964 | 984 | or32:Linux:*:*) |
965 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
985 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
966 | 986 | exit ;; |
967 | 987 | padre:Linux:*:*) |
968 | echo sparc-${VENDOR}-linux-gnu | |
988 | echo sparc-${VENDOR}-linux-${LIBC} | |
969 | 989 | exit ;; |
970 | 990 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
971 | echo hppa64-${VENDOR}-linux-gnu | |
991 | echo hppa64-${VENDOR}-linux-${LIBC} | |
972 | 992 | exit ;; |
973 | 993 | parisc:Linux:*:* | hppa:Linux:*:*) |
974 | 994 | # Look for CPU level |
975 | 995 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
976 | PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;; | |
977 | PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;; | |
978 | *) echo hppa-${VENDOR}-linux-gnu ;; | |
996 | PA7*) echo hppa1.1-${VENDOR}-linux-${LIBC} ;; | |
997 | PA8*) echo hppa2.0-${VENDOR}-linux-${LIBC} ;; | |
998 | *) echo hppa-${VENDOR}-linux-${LIBC} ;; | |
979 | 999 | esac |
980 | 1000 | exit ;; |
981 | 1001 | ppc64:Linux:*:*) |
982 | echo powerpc64-${VENDOR}-linux-gnu | |
1002 | echo powerpc64-${VENDOR}-linux-${LIBC} | |
983 | 1003 | exit ;; |
984 | 1004 | ppc:Linux:*:*) |
985 | echo powerpc-${VENDOR}-linux-gnu | |
1005 | echo powerpc-${VENDOR}-linux-${LIBC} | |
1006 | exit ;; | |
1007 | ppc64le:Linux:*:*) | |
1008 | echo powerpc64le-${VENDOR}-linux-${LIBC} | |
1009 | exit ;; | |
1010 | ppcle:Linux:*:*) | |
1011 | echo powerpcle-${VENDOR}-linux-${LIBC} | |
986 | 1012 | exit ;; |
987 | 1013 | s390:Linux:*:* | s390x:Linux:*:*) |
988 | echo ${UNAME_MACHINE}-ibm-linux | |
1014 | echo ${UNAME_MACHINE}-ibm-linux-${LIBC} | |
989 | 1015 | exit ;; |
990 | 1016 | sh64*:Linux:*:*) |
991 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
1017 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
992 | 1018 | exit ;; |
993 | 1019 | sh*:Linux:*:*) |
994 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
1020 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
995 | 1021 | exit ;; |
996 | 1022 | sparc:Linux:*:* | sparc64:Linux:*:*) |
997 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
1023 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
998 | 1024 | exit ;; |
999 | 1025 | tile*:Linux:*:*) |
1000 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
1026 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
1001 | 1027 | exit ;; |
1002 | 1028 | vax:Linux:*:*) |
1003 | echo ${UNAME_MACHINE}-dec-linux-gnu | |
1029 | echo ${UNAME_MACHINE}-dec-linux-${LIBC} | |
1004 | 1030 | exit ;; |
1005 | 1031 | x86_64:Linux:*:*) |
1006 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
1032 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
1007 | 1033 | exit ;; |
1008 | 1034 | xtensa*:Linux:*:*) |
1009 | echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu | |
1035 | echo ${UNAME_MACHINE}-${VENDOR}-linux-${LIBC} | |
1010 | 1036 | exit ;; |
1011 | 1037 | i*86:DYNIX/ptx:4*:*) |
1012 | 1038 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1210 | 1236 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
1211 | 1237 | echo i586-pc-haiku |
1212 | 1238 | exit ;; |
1239 | x86_64:Haiku:*:*) | |
1240 | echo x86_64-${VENDOR}-haiku | |
1241 | exit ;; | |
1213 | 1242 | SX-4:SUPER-UX:*:*) |
1214 | 1243 | echo sx4-nec-superux${UNAME_RELEASE} |
1215 | 1244 | exit ;; |
1236 | 1265 | exit ;; |
1237 | 1266 | *:Darwin:*:*) |
1238 | 1267 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1239 | case $UNAME_PROCESSOR in | |
1240 | i386) | |
1241 | eval $set_cc_for_build | |
1242 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
1243 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
1244 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1245 | grep IS_64BIT_ARCH >/dev/null | |
1246 | then | |
1247 | UNAME_PROCESSOR="x86_64" | |
1248 | fi | |
1249 | fi ;; | |
1250 | unknown) UNAME_PROCESSOR=powerpc ;; | |
1251 | esac | |
1268 | eval $set_cc_for_build | |
1269 | if test "$UNAME_PROCESSOR" = unknown ; then | |
1270 | UNAME_PROCESSOR=powerpc | |
1271 | fi | |
1272 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
1273 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
1274 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1275 | grep IS_64BIT_ARCH >/dev/null | |
1276 | then | |
1277 | case $UNAME_PROCESSOR in | |
1278 | i386) UNAME_PROCESSOR=x86_64 ;; | |
1279 | powerpc) UNAME_PROCESSOR=powerpc64 ;; | |
1280 | esac | |
1281 | fi | |
1282 | fi | |
1252 | 1283 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
1253 | 1284 | exit ;; |
1254 | 1285 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1265 | 1296 | NEO-?:NONSTOP_KERNEL:*:*) |
1266 | 1297 | echo neo-tandem-nsk${UNAME_RELEASE} |
1267 | 1298 | exit ;; |
1268 | NSE-?:NONSTOP_KERNEL:*:*) | |
1299 | NSE-*:NONSTOP_KERNEL:*:*) | |
1269 | 1300 | echo nse-tandem-nsk${UNAME_RELEASE} |
1270 | 1301 | exit ;; |
1271 | 1302 | NSR-?:NONSTOP_KERNEL:*:*) |
1338 | 1369 | echo ${UNAME_MACHINE}-${VENDOR}-esx |
1339 | 1370 | exit ;; |
1340 | 1371 | esac |
1341 | ||
1342 | #echo '(No uname command or uname output not recognized.)' 1>&2 | |
1343 | #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | |
1344 | 1372 | |
1345 | 1373 | eval $set_cc_for_build |
1346 | 1374 | cat >$dummy.c <<EOF |
0 | 0 | #! /bin/sh |
1 | 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, 2010, | |
4 | # 2011, 2012 Free Software Foundation, Inc. | |
5 | ||
6 | timestamp='2012-04-18' | |
7 | ||
8 | # This file is (in principle) common to ALL GNU software. | |
9 | # The presence of a machine in this file suggests that SOME GNU software | |
10 | # can handle that machine. It does not imply ALL GNU software can. | |
11 | # | |
12 | # This file is free software; you can redistribute it and/or modify | |
13 | # it under the terms of the GNU General Public License as published by | |
14 | # the Free Software Foundation; either version 2 of the License, or | |
2 | # Copyright 1992-2013 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2013-04-24' | |
5 | ||
6 | # This file is free software; you can redistribute it and/or modify it | |
7 | # under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation; either version 3 of the License, or | |
15 | 9 | # (at your option) any later version. |
16 | 10 | # |
17 | # This program is distributed in the hope that it will be useful, | |
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | # GNU General Public License for more details. | |
11 | # This program is distributed in the hope that it will be useful, but | |
12 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | # General Public License for more details. | |
21 | 15 | # |
22 | 16 | # You should have received a copy of the GNU General Public License |
23 | 17 | # along with this program; if not, see <http://www.gnu.org/licenses/>. |
25 | 19 | # As a special exception to the GNU General Public License, if you |
26 | 20 | # distribute this file as part of a program that contains a |
27 | 21 | # configuration script generated by Autoconf, you may include it under |
28 | # the same distribution terms that you use for the rest of that program. | |
29 | ||
30 | ||
31 | # Please send patches to <config-patches@gnu.org>. Submit a context | |
32 | # diff and a properly formatted GNU ChangeLog entry. | |
22 | # the same distribution terms that you use for the rest of that | |
23 | # program. This Exception is an additional permission under section 7 | |
24 | # of the GNU General Public License, version 3 ("GPLv3"). | |
25 | ||
26 | ||
27 | # Please send patches with a ChangeLog entry to config-patches@gnu.org. | |
33 | 28 | # |
34 | 29 | # Configuration subroutine to validate and canonicalize a configuration type. |
35 | 30 | # Supply the specified configuration type as an argument. |
72 | 67 | version="\ |
73 | 68 | GNU config.sub ($timestamp) |
74 | 69 | |
75 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, | |
76 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 | |
77 | Free Software Foundation, Inc. | |
70 | Copyright 1992-2013 Free Software Foundation, Inc. | |
78 | 71 | |
79 | 72 | This is free software; see the source for copying conditions. There is NO |
80 | 73 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
122 | 115 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
123 | 116 | case $maybe_os in |
124 | 117 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
125 | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | |
118 | linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | |
126 | 119 | knetbsd*-gnu* | netbsd*-gnu* | \ |
127 | 120 | kopensolaris*-gnu* | \ |
128 | 121 | storm-chaos* | os2-emx* | rtmk-nova*) |
155 | 148 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
156 | 149 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
157 | 150 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
158 | -apple | -axis | -knuth | -cray | -microblaze) | |
151 | -apple | -axis | -knuth | -cray | -microblaze*) | |
159 | 152 | os= |
160 | 153 | basic_machine=$1 |
161 | 154 | ;; |
258 | 251 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
259 | 252 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
260 | 253 | | am33_2.0 \ |
261 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | |
262 | | be32 | be64 \ | |
254 | | arc | arceb \ | |
255 | | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | |
256 | | avr | avr32 \ | |
257 | | be32 | be64 \ | |
263 | 258 | | bfin \ |
264 | 259 | | c4x | clipper \ |
265 | 260 | | d10v | d30v | dlx | dsp16xx \ |
272 | 267 | | le32 | le64 \ |
273 | 268 | | lm32 \ |
274 | 269 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
275 | | maxq | mb | microblaze | mcore | mep | metag \ | |
270 | | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | |
276 | 271 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
277 | 272 | | mips16 \ |
278 | 273 | | mips64 | mips64el \ |
290 | 285 | | mipsisa64r2 | mipsisa64r2el \ |
291 | 286 | | mipsisa64sb1 | mipsisa64sb1el \ |
292 | 287 | | mipsisa64sr71k | mipsisa64sr71kel \ |
288 | | mipsr5900 | mipsr5900el \ | |
293 | 289 | | mipstx39 | mipstx39el \ |
294 | 290 | | mn10200 | mn10300 \ |
295 | 291 | | moxie \ |
296 | 292 | | mt \ |
297 | 293 | | msp430 \ |
298 | 294 | | nds32 | nds32le | nds32be \ |
299 | | nios | nios2 \ | |
295 | | nios | nios2 | nios2eb | nios2el \ | |
300 | 296 | | ns16k | ns32k \ |
301 | 297 | | open8 \ |
302 | | or32 \ | |
298 | | or1k | or32 \ | |
303 | 299 | | pdp10 | pdp11 | pj | pjl \ |
304 | 300 | | powerpc | powerpc64 | powerpc64le | powerpcle \ |
305 | 301 | | pyramid \ |
369 | 365 | | aarch64-* | aarch64_be-* \ |
370 | 366 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ |
371 | 367 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ |
372 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | |
368 | | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | |
373 | 369 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
374 | 370 | | avr-* | avr32-* \ |
375 | 371 | | be32-* | be64-* \ |
388 | 384 | | lm32-* \ |
389 | 385 | | m32c-* | m32r-* | m32rle-* \ |
390 | 386 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
391 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | |
387 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | |
388 | | microblaze-* | microblazeel-* \ | |
392 | 389 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
393 | 390 | | mips16-* \ |
394 | 391 | | mips64-* | mips64el-* \ |
406 | 403 | | mipsisa64r2-* | mipsisa64r2el-* \ |
407 | 404 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
408 | 405 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
406 | | mipsr5900-* | mipsr5900el-* \ | |
409 | 407 | | mipstx39-* | mipstx39el-* \ |
410 | 408 | | mmix-* \ |
411 | 409 | | mt-* \ |
412 | 410 | | msp430-* \ |
413 | 411 | | nds32-* | nds32le-* | nds32be-* \ |
414 | | nios-* | nios2-* \ | |
412 | | nios-* | nios2-* | nios2eb-* | nios2el-* \ | |
415 | 413 | | none-* | np1-* | ns16k-* | ns32k-* \ |
416 | 414 | | open8-* \ |
417 | 415 | | orion-* \ |
787 | 785 | basic_machine=ns32k-utek |
788 | 786 | os=-sysv |
789 | 787 | ;; |
790 | microblaze) | |
788 | microblaze*) | |
791 | 789 | basic_machine=microblaze-xilinx |
790 | ;; | |
791 | mingw64) | |
792 | basic_machine=x86_64-pc | |
793 | os=-mingw64 | |
792 | 794 | ;; |
793 | 795 | mingw32) |
794 | 796 | basic_machine=i386-pc |
1018 | 1020 | basic_machine=i586-unknown |
1019 | 1021 | os=-pw32 |
1020 | 1022 | ;; |
1021 | rdos) | |
1023 | rdos | rdos64) | |
1024 | basic_machine=x86_64-pc | |
1025 | os=-rdos | |
1026 | ;; | |
1027 | rdos32) | |
1022 | 1028 | basic_machine=i386-pc |
1023 | 1029 | os=-rdos |
1024 | 1030 | ;; |
1345 | 1351 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1346 | 1352 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
1347 | 1353 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
1348 | | -sym* | -kopensolaris* \ | |
1354 | | -sym* | -kopensolaris* | -plan9* \ | |
1349 | 1355 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1350 | 1356 | | -aos* | -aros* \ |
1351 | 1357 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1352 | 1358 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1353 | 1359 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
1354 | | -openbsd* | -solidbsd* \ | |
1360 | | -bitrig* | -openbsd* | -solidbsd* \ | |
1355 | 1361 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1356 | 1362 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1357 | 1363 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1358 | 1364 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1359 | 1365 | | -chorusos* | -chorusrdb* | -cegcc* \ |
1360 | 1366 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1361 | | -mingw32* | -linux-gnu* | -linux-android* \ | |
1362 | | -linux-newlib* | -linux-uclibc* \ | |
1367 | | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | |
1368 | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | |
1363 | 1369 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1364 | 1370 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1365 | 1371 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1491 | 1497 | -aros*) |
1492 | 1498 | os=-aros |
1493 | 1499 | ;; |
1494 | -kaos*) | |
1495 | os=-kaos | |
1496 | ;; | |
1497 | 1500 | -zvmoe) |
1498 | 1501 | os=-zvmoe |
1499 | 1502 | ;; |
1542 | 1545 | c4x-* | tic4x-*) |
1543 | 1546 | os=-coff |
1544 | 1547 | ;; |
1548 | hexagon-*) | |
1549 | os=-elf | |
1550 | ;; | |
1545 | 1551 | tic54x-*) |
1546 | 1552 | os=-coff |
1547 | 1553 | ;; |
1580 | 1586 | os=-elf |
1581 | 1587 | ;; |
1582 | 1588 | mips*-*) |
1589 | os=-elf | |
1590 | ;; | |
1591 | or1k-*) | |
1583 | 1592 | os=-elf |
1584 | 1593 | ;; |
1585 | 1594 | or32-*) |
0 | 0 | #! /bin/sh |
1 | 1 | # depcomp - compile a program generating dependencies as side-effects |
2 | 2 | |
3 | scriptversion=2012-03-27.16; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
3 | scriptversion=2013-05-30.07; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
6 | 6 | |
7 | 7 | # This program is free software; you can redistribute it and/or modify |
8 | 8 | # it under the terms of the GNU General Public License as published by |
26 | 26 | |
27 | 27 | case $1 in |
28 | 28 | '') |
29 | echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
30 | exit 1; | |
31 | ;; | |
29 | echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
30 | exit 1; | |
31 | ;; | |
32 | 32 | -h | --h*) |
33 | 33 | cat <<\EOF |
34 | 34 | Usage: depcomp [--help] [--version] PROGRAM [ARGS] |
55 | 55 | ;; |
56 | 56 | esac |
57 | 57 | |
58 | # Get the directory component of the given path, and save it in the | |
59 | # global variables '$dir'. Note that this directory component will | |
60 | # be either empty or ending with a '/' character. This is deliberate. | |
61 | set_dir_from () | |
62 | { | |
63 | case $1 in | |
64 | */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; | |
65 | *) dir=;; | |
66 | esac | |
67 | } | |
68 | ||
69 | # Get the suffix-stripped basename of the given path, and save it the | |
70 | # global variable '$base'. | |
71 | set_base_from () | |
72 | { | |
73 | base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` | |
74 | } | |
75 | ||
76 | # If no dependency file was actually created by the compiler invocation, | |
77 | # we still have to create a dummy depfile, to avoid errors with the | |
78 | # Makefile "include basename.Plo" scheme. | |
79 | make_dummy_depfile () | |
80 | { | |
81 | echo "#dummy" > "$depfile" | |
82 | } | |
83 | ||
84 | # Factor out some common post-processing of the generated depfile. | |
85 | # Requires the auxiliary global variable '$tmpdepfile' to be set. | |
86 | aix_post_process_depfile () | |
87 | { | |
88 | # If the compiler actually managed to produce a dependency file, | |
89 | # post-process it. | |
90 | if test -f "$tmpdepfile"; then | |
91 | # Each line is of the form 'foo.o: dependency.h'. | |
92 | # Do two passes, one to just change these to | |
93 | # $object: dependency.h | |
94 | # and one to simply output | |
95 | # dependency.h: | |
96 | # which is needed to avoid the deleted-header problem. | |
97 | { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" | |
98 | sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" | |
99 | } > "$depfile" | |
100 | rm -f "$tmpdepfile" | |
101 | else | |
102 | make_dummy_depfile | |
103 | fi | |
104 | } | |
105 | ||
58 | 106 | # A tabulation character. |
59 | 107 | tab=' ' |
60 | 108 | # A newline character. |
61 | 109 | nl=' |
62 | 110 | ' |
111 | # Character ranges might be problematic outside the C locale. | |
112 | # These definitions help. | |
113 | upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ | |
114 | lower=abcdefghijklmnopqrstuvwxyz | |
115 | digits=0123456789 | |
116 | alpha=${upper}${lower} | |
63 | 117 | |
64 | 118 | if test -z "$depmode" || test -z "$source" || test -z "$object"; then |
65 | 119 | echo "depcomp: Variables source, object and depmode must be set" 1>&2 |
72 | 126 | tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} |
73 | 127 | |
74 | 128 | rm -f "$tmpdepfile" |
129 | ||
130 | # Avoid interferences from the environment. | |
131 | gccflag= dashmflag= | |
75 | 132 | |
76 | 133 | # Some modes work just like other modes, but use different flags. We |
77 | 134 | # parameterize here, but still list the modes in the big case below, |
84 | 141 | fi |
85 | 142 | |
86 | 143 | if test "$depmode" = dashXmstdout; then |
87 | # This is just like dashmstdout with a different argument. | |
88 | dashmflag=-xM | |
89 | depmode=dashmstdout | |
144 | # This is just like dashmstdout with a different argument. | |
145 | dashmflag=-xM | |
146 | depmode=dashmstdout | |
90 | 147 | fi |
91 | 148 | |
92 | 149 | cygpath_u="cygpath -u -f -" |
93 | 150 | if test "$depmode" = msvcmsys; then |
94 | # This is just like msvisualcpp but w/o cygpath translation. | |
95 | # Just convert the backslash-escaped backslashes to single forward | |
96 | # slashes to satisfy depend.m4 | |
97 | cygpath_u='sed s,\\\\,/,g' | |
98 | depmode=msvisualcpp | |
151 | # This is just like msvisualcpp but w/o cygpath translation. | |
152 | # Just convert the backslash-escaped backslashes to single forward | |
153 | # slashes to satisfy depend.m4 | |
154 | cygpath_u='sed s,\\\\,/,g' | |
155 | depmode=msvisualcpp | |
99 | 156 | fi |
100 | 157 | |
101 | 158 | if test "$depmode" = msvc7msys; then |
102 | # This is just like msvc7 but w/o cygpath translation. | |
103 | # Just convert the backslash-escaped backslashes to single forward | |
104 | # slashes to satisfy depend.m4 | |
105 | cygpath_u='sed s,\\\\,/,g' | |
106 | depmode=msvc7 | |
159 | # This is just like msvc7 but w/o cygpath translation. | |
160 | # Just convert the backslash-escaped backslashes to single forward | |
161 | # slashes to satisfy depend.m4 | |
162 | cygpath_u='sed s,\\\\,/,g' | |
163 | depmode=msvc7 | |
107 | 164 | fi |
108 | 165 | |
109 | 166 | if test "$depmode" = xlc; then |
110 | # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. | |
111 | gccflag=-qmakedep=gcc,-MF | |
112 | depmode=gcc | |
167 | # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. | |
168 | gccflag=-qmakedep=gcc,-MF | |
169 | depmode=gcc | |
113 | 170 | fi |
114 | 171 | |
115 | 172 | case "$depmode" in |
132 | 189 | done |
133 | 190 | "$@" |
134 | 191 | stat=$? |
135 | if test $stat -eq 0; then : | |
136 | else | |
192 | if test $stat -ne 0; then | |
137 | 193 | rm -f "$tmpdepfile" |
138 | 194 | exit $stat |
139 | 195 | fi |
141 | 197 | ;; |
142 | 198 | |
143 | 199 | gcc) |
200 | ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. | |
201 | ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. | |
202 | ## (see the conditional assignment to $gccflag above). | |
144 | 203 | ## There are various ways to get dependency output from gcc. Here's |
145 | 204 | ## why we pick this rather obscure method: |
146 | 205 | ## - Don't want to use -MD because we'd like the dependencies to end |
147 | 206 | ## up in a subdir. Having to rename by hand is ugly. |
148 | 207 | ## (We might end up doing this anyway to support other compilers.) |
149 | 208 | ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like |
150 | ## -MM, not -M (despite what the docs say). | |
209 | ## -MM, not -M (despite what the docs say). Also, it might not be | |
210 | ## supported by the other compilers which use the 'gcc' depmode. | |
151 | 211 | ## - Using -M directly means running the compiler twice (even worse |
152 | 212 | ## than renaming). |
153 | 213 | if test -z "$gccflag"; then |
155 | 215 | fi |
156 | 216 | "$@" -Wp,"$gccflag$tmpdepfile" |
157 | 217 | stat=$? |
158 | if test $stat -eq 0; then : | |
159 | else | |
218 | if test $stat -ne 0; then | |
160 | 219 | rm -f "$tmpdepfile" |
161 | 220 | exit $stat |
162 | 221 | fi |
163 | 222 | rm -f "$depfile" |
164 | 223 | echo "$object : \\" > "$depfile" |
165 | alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
166 | ## The second -e expression handles DOS-style file names with drive letters. | |
224 | # The second -e expression handles DOS-style file names with drive | |
225 | # letters. | |
167 | 226 | sed -e 's/^[^:]*: / /' \ |
168 | 227 | -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" |
169 | 228 | ## This next piece of magic avoids the "deleted header file" problem. |
172 | 231 | ## typically no way to rebuild the header). We avoid this by adding |
173 | 232 | ## dummy dependencies for each header file. Too bad gcc doesn't do |
174 | 233 | ## this for us directly. |
175 | tr ' ' "$nl" < "$tmpdepfile" | | |
176 | 234 | ## Some versions of gcc put a space before the ':'. On the theory |
177 | 235 | ## that the space means something, we add a space to the output as |
178 | 236 | ## well. hp depmode also adds that space, but also prefixes the VPATH |
179 | 237 | ## to the object. Take care to not repeat it in the output. |
180 | 238 | ## Some versions of the HPUX 10.20 sed can't process this invocation |
181 | 239 | ## correctly. Breaking it into two sed invocations is a workaround. |
182 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | |
183 | | sed -e 's/$/ :/' >> "$depfile" | |
240 | tr ' ' "$nl" < "$tmpdepfile" \ | |
241 | | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | |
242 | | sed -e 's/$/ :/' >> "$depfile" | |
184 | 243 | rm -f "$tmpdepfile" |
185 | 244 | ;; |
186 | 245 | |
198 | 257 | "$@" -MDupdate "$tmpdepfile" |
199 | 258 | fi |
200 | 259 | stat=$? |
201 | if test $stat -eq 0; then : | |
202 | else | |
260 | if test $stat -ne 0; then | |
203 | 261 | rm -f "$tmpdepfile" |
204 | 262 | exit $stat |
205 | 263 | fi |
207 | 265 | |
208 | 266 | if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files |
209 | 267 | echo "$object : \\" > "$depfile" |
210 | ||
211 | 268 | # Clip off the initial element (the dependent). Don't try to be |
212 | 269 | # clever and replace this with sed code, as IRIX sed won't handle |
213 | 270 | # lines with more than a fixed number of characters (4096 in |
215 | 272 | # the IRIX cc adds comments like '#:fec' to the end of the |
216 | 273 | # dependency line. |
217 | 274 | tr ' ' "$nl" < "$tmpdepfile" \ |
218 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ | |
219 | tr "$nl" ' ' >> "$depfile" | |
275 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | |
276 | | tr "$nl" ' ' >> "$depfile" | |
220 | 277 | echo >> "$depfile" |
221 | ||
222 | 278 | # The second pass generates a dummy entry for each header file. |
223 | 279 | tr ' ' "$nl" < "$tmpdepfile" \ |
224 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
225 | >> "$depfile" | |
280 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
281 | >> "$depfile" | |
226 | 282 | else |
227 | # The sourcefile does not contain any dependencies, so just | |
228 | # store a dummy comment line, to avoid errors with the Makefile | |
229 | # "include basename.Plo" scheme. | |
230 | echo "#dummy" > "$depfile" | |
283 | make_dummy_depfile | |
231 | 284 | fi |
232 | 285 | rm -f "$tmpdepfile" |
233 | 286 | ;; |
245 | 298 | # current directory. Also, the AIX compiler puts '$object:' at the |
246 | 299 | # start of each line; $object doesn't have directory information. |
247 | 300 | # Version 6 uses the directory in both cases. |
248 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
249 | test "x$dir" = "x$object" && dir= | |
250 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
301 | set_dir_from "$object" | |
302 | set_base_from "$object" | |
251 | 303 | if test "$libtool" = yes; then |
252 | 304 | tmpdepfile1=$dir$base.u |
253 | 305 | tmpdepfile2=$base.u |
260 | 312 | "$@" -M |
261 | 313 | fi |
262 | 314 | stat=$? |
263 | ||
264 | if test $stat -eq 0; then : | |
265 | else | |
315 | if test $stat -ne 0; then | |
266 | 316 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" |
267 | 317 | exit $stat |
268 | 318 | fi |
271 | 321 | do |
272 | 322 | test -f "$tmpdepfile" && break |
273 | 323 | done |
274 | if test -f "$tmpdepfile"; then | |
275 | # Each line is of the form 'foo.o: dependent.h'. | |
276 | # Do two passes, one to just change these to | |
277 | # '$object: dependent.h' and one to simply 'dependent.h:'. | |
278 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
279 | sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
280 | else | |
281 | # The sourcefile does not contain any dependencies, so just | |
282 | # store a dummy comment line, to avoid errors with the Makefile | |
283 | # "include basename.Plo" scheme. | |
284 | echo "#dummy" > "$depfile" | |
285 | fi | |
324 | aix_post_process_depfile | |
325 | ;; | |
326 | ||
327 | tcc) | |
328 | # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 | |
329 | # FIXME: That version still under development at the moment of writing. | |
330 | # Make that this statement remains true also for stable, released | |
331 | # versions. | |
332 | # It will wrap lines (doesn't matter whether long or short) with a | |
333 | # trailing '\', as in: | |
334 | # | |
335 | # foo.o : \ | |
336 | # foo.c \ | |
337 | # foo.h \ | |
338 | # | |
339 | # It will put a trailing '\' even on the last line, and will use leading | |
340 | # spaces rather than leading tabs (at least since its commit 0394caf7 | |
341 | # "Emit spaces for -MD"). | |
342 | "$@" -MD -MF "$tmpdepfile" | |
343 | stat=$? | |
344 | if test $stat -ne 0; then | |
345 | rm -f "$tmpdepfile" | |
346 | exit $stat | |
347 | fi | |
348 | rm -f "$depfile" | |
349 | # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. | |
350 | # We have to change lines of the first kind to '$object: \'. | |
351 | sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" | |
352 | # And for each line of the second kind, we have to emit a 'dep.h:' | |
353 | # dummy dependency, to avoid the deleted-header problem. | |
354 | sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" | |
286 | 355 | rm -f "$tmpdepfile" |
287 | 356 | ;; |
288 | 357 | |
289 | icc) | |
290 | # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'. | |
291 | # However on | |
292 | # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c | |
293 | # ICC 7.0 will fill foo.d with something like | |
294 | # foo.o: sub/foo.c | |
295 | # foo.o: sub/foo.h | |
296 | # which is wrong. We want | |
297 | # sub/foo.o: sub/foo.c | |
298 | # sub/foo.o: sub/foo.h | |
299 | # sub/foo.c: | |
300 | # sub/foo.h: | |
301 | # ICC 7.1 will output | |
358 | ## The order of this option in the case statement is important, since the | |
359 | ## shell code in configure will try each of these formats in the order | |
360 | ## listed in this file. A plain '-MD' option would be understood by many | |
361 | ## compilers, so we must ensure this comes after the gcc and icc options. | |
362 | pgcc) | |
363 | # Portland's C compiler understands '-MD'. | |
364 | # Will always output deps to 'file.d' where file is the root name of the | |
365 | # source file under compilation, even if file resides in a subdirectory. | |
366 | # The object file name does not affect the name of the '.d' file. | |
367 | # pgcc 10.2 will output | |
302 | 368 | # foo.o: sub/foo.c sub/foo.h |
303 | # and will wrap long lines using '\': | |
369 | # and will wrap long lines using '\' : | |
304 | 370 | # foo.o: sub/foo.c ... \ |
305 | 371 | # sub/foo.h ... \ |
306 | 372 | # ... |
307 | # tcc 0.9.26 (FIXME still under development at the moment of writing) | |
308 | # will emit a similar output, but also prepend the continuation lines | |
309 | # with horizontal tabulation characters. | |
310 | "$@" -MD -MF "$tmpdepfile" | |
311 | stat=$? | |
312 | if test $stat -eq 0; then : | |
313 | else | |
373 | set_dir_from "$object" | |
374 | # Use the source, not the object, to determine the base name, since | |
375 | # that's sadly what pgcc will do too. | |
376 | set_base_from "$source" | |
377 | tmpdepfile=$base.d | |
378 | ||
379 | # For projects that build the same source file twice into different object | |
380 | # files, the pgcc approach of using the *source* file root name can cause | |
381 | # problems in parallel builds. Use a locking strategy to avoid stomping on | |
382 | # the same $tmpdepfile. | |
383 | lockdir=$base.d-lock | |
384 | trap " | |
385 | echo '$0: caught signal, cleaning up...' >&2 | |
386 | rmdir '$lockdir' | |
387 | exit 1 | |
388 | " 1 2 13 15 | |
389 | numtries=100 | |
390 | i=$numtries | |
391 | while test $i -gt 0; do | |
392 | # mkdir is a portable test-and-set. | |
393 | if mkdir "$lockdir" 2>/dev/null; then | |
394 | # This process acquired the lock. | |
395 | "$@" -MD | |
396 | stat=$? | |
397 | # Release the lock. | |
398 | rmdir "$lockdir" | |
399 | break | |
400 | else | |
401 | # If the lock is being held by a different process, wait | |
402 | # until the winning process is done or we timeout. | |
403 | while test -d "$lockdir" && test $i -gt 0; do | |
404 | sleep 1 | |
405 | i=`expr $i - 1` | |
406 | done | |
407 | fi | |
408 | i=`expr $i - 1` | |
409 | done | |
410 | trap - 1 2 13 15 | |
411 | if test $i -le 0; then | |
412 | echo "$0: failed to acquire lock after $numtries attempts" >&2 | |
413 | echo "$0: check lockdir '$lockdir'" >&2 | |
414 | exit 1 | |
415 | fi | |
416 | ||
417 | if test $stat -ne 0; then | |
314 | 418 | rm -f "$tmpdepfile" |
315 | 419 | exit $stat |
316 | 420 | fi |
317 | 421 | rm -f "$depfile" |
318 | # Each line is of the form 'foo.o: dependent.h', | |
319 | # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'. | |
422 | # Each line is of the form `foo.o: dependent.h', | |
423 | # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. | |
320 | 424 | # Do two passes, one to just change these to |
321 | # '$object: dependent.h' and one to simply 'dependent.h:'. | |
322 | sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \ | |
323 | < "$tmpdepfile" > "$depfile" | |
324 | sed ' | |
325 | s/[ '"$tab"'][ '"$tab"']*/ /g | |
326 | s/^ *// | |
327 | s/ *\\*$// | |
328 | s/^[^:]*: *// | |
329 | /^$/d | |
330 | /:$/d | |
331 | s/$/ :/ | |
332 | ' < "$tmpdepfile" >> "$depfile" | |
425 | # `$object: dependent.h' and one to simply `dependent.h:'. | |
426 | sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" | |
427 | # Some versions of the HPUX 10.20 sed can't process this invocation | |
428 | # correctly. Breaking it into two sed invocations is a workaround. | |
429 | sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | |
430 | | sed -e 's/$/ :/' >> "$depfile" | |
333 | 431 | rm -f "$tmpdepfile" |
334 | 432 | ;; |
335 | 433 | |
340 | 438 | # 'foo.d', which lands next to the object file, wherever that |
341 | 439 | # happens to be. |
342 | 440 | # Much of this is similar to the tru64 case; see comments there. |
343 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
344 | test "x$dir" = "x$object" && dir= | |
345 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
441 | set_dir_from "$object" | |
442 | set_base_from "$object" | |
346 | 443 | if test "$libtool" = yes; then |
347 | 444 | tmpdepfile1=$dir$base.d |
348 | 445 | tmpdepfile2=$dir.libs/$base.d |
353 | 450 | "$@" +Maked |
354 | 451 | fi |
355 | 452 | stat=$? |
356 | if test $stat -eq 0; then : | |
357 | else | |
453 | if test $stat -ne 0; then | |
358 | 454 | rm -f "$tmpdepfile1" "$tmpdepfile2" |
359 | 455 | exit $stat |
360 | 456 | fi |
364 | 460 | test -f "$tmpdepfile" && break |
365 | 461 | done |
366 | 462 | if test -f "$tmpdepfile"; then |
367 | sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" | |
463 | sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" | |
368 | 464 | # Add 'dependent.h:' lines. |
369 | 465 | sed -ne '2,${ |
370 | s/^ *// | |
371 | s/ \\*$// | |
372 | s/$/:/ | |
373 | p | |
374 | }' "$tmpdepfile" >> "$depfile" | |
466 | s/^ *// | |
467 | s/ \\*$// | |
468 | s/$/:/ | |
469 | p | |
470 | }' "$tmpdepfile" >> "$depfile" | |
375 | 471 | else |
376 | echo "#dummy" > "$depfile" | |
472 | make_dummy_depfile | |
377 | 473 | fi |
378 | 474 | rm -f "$tmpdepfile" "$tmpdepfile2" |
379 | 475 | ;; |
380 | 476 | |
381 | 477 | tru64) |
382 | # The Tru64 compiler uses -MD to generate dependencies as a side | |
383 | # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. | |
384 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | |
385 | # dependencies in 'foo.d' instead, so we check for that too. | |
386 | # Subdirectories are respected. | |
387 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
388 | test "x$dir" = "x$object" && dir= | |
389 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
390 | ||
391 | if test "$libtool" = yes; then | |
392 | # With Tru64 cc, shared objects can also be used to make a | |
393 | # static library. This mechanism is used in libtool 1.4 series to | |
394 | # handle both shared and static libraries in a single compilation. | |
395 | # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. | |
396 | # | |
397 | # With libtool 1.5 this exception was removed, and libtool now | |
398 | # generates 2 separate objects for the 2 libraries. These two | |
399 | # compilations output dependencies in $dir.libs/$base.o.d and | |
400 | # in $dir$base.o.d. We have to check for both files, because | |
401 | # one of the two compilations can be disabled. We should prefer | |
402 | # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | |
403 | # automatically cleaned when .libs/ is deleted, while ignoring | |
404 | # the former would cause a distcleancheck panic. | |
405 | tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 | |
406 | tmpdepfile2=$dir$base.o.d # libtool 1.5 | |
407 | tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 | |
408 | tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 | |
409 | "$@" -Wc,-MD | |
410 | else | |
411 | tmpdepfile1=$dir$base.o.d | |
412 | tmpdepfile2=$dir$base.d | |
413 | tmpdepfile3=$dir$base.d | |
414 | tmpdepfile4=$dir$base.d | |
415 | "$@" -MD | |
416 | fi | |
417 | ||
418 | stat=$? | |
419 | if test $stat -eq 0; then : | |
420 | else | |
421 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
422 | exit $stat | |
423 | fi | |
424 | ||
425 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
426 | do | |
427 | test -f "$tmpdepfile" && break | |
428 | done | |
429 | if test -f "$tmpdepfile"; then | |
430 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
431 | sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
432 | else | |
433 | echo "#dummy" > "$depfile" | |
434 | fi | |
435 | rm -f "$tmpdepfile" | |
436 | ;; | |
478 | # The Tru64 compiler uses -MD to generate dependencies as a side | |
479 | # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. | |
480 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | |
481 | # dependencies in 'foo.d' instead, so we check for that too. | |
482 | # Subdirectories are respected. | |
483 | set_dir_from "$object" | |
484 | set_base_from "$object" | |
485 | ||
486 | if test "$libtool" = yes; then | |
487 | # Libtool generates 2 separate objects for the 2 libraries. These | |
488 | # two compilations output dependencies in $dir.libs/$base.o.d and | |
489 | # in $dir$base.o.d. We have to check for both files, because | |
490 | # one of the two compilations can be disabled. We should prefer | |
491 | # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | |
492 | # automatically cleaned when .libs/ is deleted, while ignoring | |
493 | # the former would cause a distcleancheck panic. | |
494 | tmpdepfile1=$dir$base.o.d # libtool 1.5 | |
495 | tmpdepfile2=$dir.libs/$base.o.d # Likewise. | |
496 | tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 | |
497 | "$@" -Wc,-MD | |
498 | else | |
499 | tmpdepfile1=$dir$base.d | |
500 | tmpdepfile2=$dir$base.d | |
501 | tmpdepfile3=$dir$base.d | |
502 | "$@" -MD | |
503 | fi | |
504 | ||
505 | stat=$? | |
506 | if test $stat -ne 0; then | |
507 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
508 | exit $stat | |
509 | fi | |
510 | ||
511 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
512 | do | |
513 | test -f "$tmpdepfile" && break | |
514 | done | |
515 | # Same post-processing that is required for AIX mode. | |
516 | aix_post_process_depfile | |
517 | ;; | |
437 | 518 | |
438 | 519 | msvc7) |
439 | 520 | if test "$libtool" = yes; then |
444 | 525 | "$@" $showIncludes > "$tmpdepfile" |
445 | 526 | stat=$? |
446 | 527 | grep -v '^Note: including file: ' "$tmpdepfile" |
447 | if test "$stat" = 0; then : | |
448 | else | |
528 | if test $stat -ne 0; then | |
449 | 529 | rm -f "$tmpdepfile" |
450 | 530 | exit $stat |
451 | 531 | fi |
471 | 551 | G |
472 | 552 | p |
473 | 553 | }' >> "$depfile" |
554 | echo >> "$depfile" # make sure the fragment doesn't end with a backslash | |
474 | 555 | rm -f "$tmpdepfile" |
475 | 556 | ;; |
476 | 557 | |
522 | 603 | # in the target name. This is to cope with DOS-style filenames: |
523 | 604 | # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. |
524 | 605 | "$@" $dashmflag | |
525 | sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" | |
606 | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" | |
526 | 607 | rm -f "$depfile" |
527 | 608 | cat < "$tmpdepfile" > "$depfile" |
528 | tr ' ' "$nl" < "$tmpdepfile" | \ | |
529 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
530 | ## correctly. Breaking it into two sed invocations is a workaround. | |
531 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
609 | # Some versions of the HPUX 10.20 sed can't process this sed invocation | |
610 | # correctly. Breaking it into two sed invocations is a workaround. | |
611 | tr ' ' "$nl" < "$tmpdepfile" \ | |
612 | | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | |
613 | | sed -e 's/$/ :/' >> "$depfile" | |
532 | 614 | rm -f "$tmpdepfile" |
533 | 615 | ;; |
534 | 616 | |
581 | 663 | # makedepend may prepend the VPATH from the source file name to the object. |
582 | 664 | # No need to regex-escape $object, excess matching of '.' is harmless. |
583 | 665 | sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" |
584 | sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \ | |
585 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
586 | ## correctly. Breaking it into two sed invocations is a workaround. | |
587 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
666 | # Some versions of the HPUX 10.20 sed can't process the last invocation | |
667 | # correctly. Breaking it into two sed invocations is a workaround. | |
668 | sed '1,2d' "$tmpdepfile" \ | |
669 | | tr ' ' "$nl" \ | |
670 | | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | |
671 | | sed -e 's/$/ :/' >> "$depfile" | |
588 | 672 | rm -f "$tmpdepfile" "$tmpdepfile".bak |
589 | 673 | ;; |
590 | 674 | |
620 | 704 | esac |
621 | 705 | done |
622 | 706 | |
623 | "$@" -E | | |
624 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
625 | -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | | |
626 | sed '$ s: \\$::' > "$tmpdepfile" | |
707 | "$@" -E \ | |
708 | | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
709 | -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
710 | | sed '$ s: \\$::' > "$tmpdepfile" | |
627 | 711 | rm -f "$depfile" |
628 | 712 | echo "$object : \\" > "$depfile" |
629 | 713 | cat < "$tmpdepfile" >> "$depfile" |
655 | 739 | shift |
656 | 740 | ;; |
657 | 741 | "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") |
658 | set fnord "$@" | |
659 | shift | |
660 | shift | |
661 | ;; | |
742 | set fnord "$@" | |
743 | shift | |
744 | shift | |
745 | ;; | |
662 | 746 | *) |
663 | set fnord "$@" "$arg" | |
664 | shift | |
665 | shift | |
666 | ;; | |
747 | set fnord "$@" "$arg" | |
748 | shift | |
749 | shift | |
750 | ;; | |
667 | 751 | esac |
668 | 752 | done |
669 | 753 | "$@" -E 2>/dev/null | |
0 | 0 | #! /bin/sh |
1 | # Common stub for a few missing GNU programs while installing. | |
2 | ||
3 | scriptversion=2012-01-06.18; # UTC | |
4 | ||
5 | # Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
6 | # 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. | |
7 | 7 | |
8 | 8 | # This program is free software; you can redistribute it and/or modify |
9 | 9 | # it under the terms of the GNU General Public License as published by |
28 | 28 | exit 1 |
29 | 29 | fi |
30 | 30 | |
31 | run=: | |
32 | sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' | |
33 | sed_minuso='s/.* -o \([^ ]*\).*/\1/p' | |
34 | ||
35 | # In the cases where this matters, 'missing' is being run in the | |
36 | # srcdir already. | |
37 | if test -f configure.ac; then | |
38 | configure_ac=configure.ac | |
39 | else | |
40 | configure_ac=configure.in | |
41 | fi | |
42 | ||
43 | msg="missing on your system" | |
44 | ||
45 | 31 | case $1 in |
46 | --run) | |
47 | # Try to run requested program, and just exit if it succeeds. | |
48 | run= | |
49 | shift | |
50 | "$@" && exit 0 | |
51 | # Exit code 63 means version mismatch. This often happens | |
52 | # when the user try to use an ancient version of a tool on | |
53 | # a file that requires a minimum version. In this case we | |
54 | # we should proceed has if the program had been absent, or | |
55 | # if --run hadn't been passed. | |
56 | if test $? = 63; then | |
57 | run=: | |
58 | msg="probably too old" | |
59 | fi | |
60 | ;; | |
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 | ;; | |
61 | 43 | |
62 | 44 | -h|--h|--he|--hel|--help) |
63 | 45 | echo "\ |
64 | 46 | $0 [OPTION]... PROGRAM [ARGUMENT]... |
65 | 47 | |
66 | Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | |
67 | 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. | |
68 | 50 | |
69 | 51 | Options: |
70 | 52 | -h, --help display this help and exit |
71 | 53 | -v, --version output version information and exit |
72 | --run try to run the given command, and emulate it if it fails | |
73 | 54 | |
74 | 55 | Supported PROGRAM values: |
75 | aclocal touch file 'aclocal.m4' | |
76 | autoconf touch file 'configure' | |
77 | autoheader touch file 'config.h.in' | |
78 | autom4te touch the output file, or create a stub one | |
79 | automake touch all 'Makefile.in' files | |
80 | bison create 'y.tab.[ch]', if possible, from existing .[ch] | |
81 | flex create 'lex.yy.c', if possible, from existing .c | |
82 | help2man touch the output file | |
83 | lex create 'lex.yy.c', if possible, from existing .c | |
84 | makeinfo touch the output file | |
85 | yacc create 'y.tab.[ch]', if possible, from existing .[ch] | |
56 | aclocal autoconf autoheader autom4te automake makeinfo | |
57 | bison yacc flex lex help2man | |
86 | 58 | |
87 | 59 | Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and |
88 | 60 | 'g' are ignored when checking the name. |
97 | 69 | ;; |
98 | 70 | |
99 | 71 | -*) |
100 | echo 1>&2 "$0: Unknown '$1' option" | |
72 | echo 1>&2 "$0: unknown '$1' option" | |
101 | 73 | echo 1>&2 "Try '$0 --help' for more information" |
102 | 74 | exit 1 |
103 | 75 | ;; |
104 | 76 | |
105 | 77 | esac |
106 | 78 | |
107 | # normalize program name to check for. | |
108 | program=`echo "$1" | sed ' | |
109 | s/^gnu-//; t | |
110 | s/^gnu//; t | |
111 | s/^g//; t'` | |
112 | ||
113 | # Now exit if we have it, but it failed. Also exit now if we | |
114 | # don't have it and --version was passed (most likely to detect | |
115 | # the program). This is about non-GNU programs, so use $1 not | |
116 | # $program. | |
117 | case $1 in | |
118 | lex*|yacc*) | |
119 | # Not GNU programs, they don't have --version. | |
120 | ;; | |
121 | ||
122 | *) | |
123 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | |
124 | # We have it, but it failed. | |
125 | exit 1 | |
126 | elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | |
127 | # Could not run --version or --help. This is probably someone | |
128 | # running '$TOOL --version' or '$TOOL --help' to check whether | |
129 | # $TOOL exists and not knowing $TOOL uses missing. | |
130 | exit 1 | |
131 | fi | |
132 | ;; | |
133 | esac | |
134 | ||
135 | # If it does not exist, or fails to run (possibly an outdated version), | |
136 | # try to emulate it. | |
137 | case $program in | |
138 | aclocal*) | |
139 | echo 1>&2 "\ | |
140 | WARNING: '$1' is $msg. You should only need it if | |
141 | you modified 'acinclude.m4' or '${configure_ac}'. You might want | |
142 | to install the Automake and Perl packages. Grab them from | |
143 | any GNU archive site." | |
144 | touch aclocal.m4 | |
145 | ;; | |
146 | ||
147 | autoconf*) | |
148 | echo 1>&2 "\ | |
149 | WARNING: '$1' is $msg. You should only need it if | |
150 | you modified '${configure_ac}'. You might want to install the | |
151 | Autoconf and GNU m4 packages. Grab them from any GNU | |
152 | archive site." | |
153 | touch configure | |
154 | ;; | |
155 | ||
156 | autoheader*) | |
157 | echo 1>&2 "\ | |
158 | WARNING: '$1' is $msg. You should only need it if | |
159 | you modified 'acconfig.h' or '${configure_ac}'. You might want | |
160 | to install the Autoconf and GNU m4 packages. Grab them | |
161 | from any GNU archive site." | |
162 | files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` | |
163 | test -z "$files" && files="config.h" | |
164 | touch_files= | |
165 | for f in $files; do | |
166 | case $f in | |
167 | *:*) touch_files="$touch_files "`echo "$f" | | |
168 | sed -e 's/^[^:]*://' -e 's/:.*//'`;; | |
169 | *) touch_files="$touch_files $f.in";; | |
170 | esac | |
171 | done | |
172 | touch $touch_files | |
173 | ;; | |
174 | ||
175 | automake*) | |
176 | echo 1>&2 "\ | |
177 | WARNING: '$1' is $msg. You should only need it if | |
178 | you modified 'Makefile.am', 'acinclude.m4' or '${configure_ac}'. | |
179 | You might want to install the Automake and Perl packages. | |
180 | Grab them from any GNU archive site." | |
181 | find . -type f -name Makefile.am -print | | |
182 | sed 's/\.am$/.in/' | | |
183 | while read f; do touch "$f"; done | |
184 | ;; | |
185 | ||
186 | autom4te*) | |
187 | echo 1>&2 "\ | |
188 | WARNING: '$1' is needed, but is $msg. | |
189 | You might have modified some files without having the | |
190 | proper tools for further handling them. | |
191 | You can get '$1' as part of Autoconf from any GNU | |
192 | archive site." | |
193 | ||
194 | file=`echo "$*" | sed -n "$sed_output"` | |
195 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
196 | if test -f "$file"; then | |
197 | touch $file | |
198 | else | |
199 | test -z "$file" || exec >$file | |
200 | echo "#! /bin/sh" | |
201 | echo "# Created by GNU Automake missing as a replacement of" | |
202 | echo "# $ $@" | |
203 | echo "exit 0" | |
204 | chmod +x $file | |
205 | exit 1 | |
206 | fi | |
207 | ;; | |
208 | ||
209 | bison*|yacc*) | |
210 | echo 1>&2 "\ | |
211 | WARNING: '$1' $msg. You should only need it if | |
212 | you modified a '.y' file. You may need the Bison package | |
213 | in order for those modifications to take effect. You can get | |
214 | Bison from any GNU archive site." | |
215 | rm -f y.tab.c y.tab.h | |
216 | if test $# -ne 1; then | |
217 | eval LASTARG=\${$#} | |
218 | case $LASTARG in | |
219 | *.y) | |
220 | SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` | |
221 | if test -f "$SRCFILE"; then | |
222 | cp "$SRCFILE" y.tab.c | |
223 | fi | |
224 | SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` | |
225 | if test -f "$SRCFILE"; then | |
226 | cp "$SRCFILE" y.tab.h | |
227 | fi | |
228 | ;; | |
229 | esac | |
230 | fi | |
231 | if test ! -f y.tab.h; then | |
232 | echo >y.tab.h | |
233 | fi | |
234 | if test ! -f y.tab.c; then | |
235 | echo 'main() { return 0; }' >y.tab.c | |
236 | fi | |
237 | ;; | |
238 | ||
239 | lex*|flex*) | |
240 | echo 1>&2 "\ | |
241 | WARNING: '$1' is $msg. You should only need it if | |
242 | you modified a '.l' file. You may need the Flex package | |
243 | in order for those modifications to take effect. You can get | |
244 | Flex from any GNU archive site." | |
245 | rm -f lex.yy.c | |
246 | if test $# -ne 1; then | |
247 | eval LASTARG=\${$#} | |
248 | case $LASTARG in | |
249 | *.l) | |
250 | SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` | |
251 | if test -f "$SRCFILE"; then | |
252 | cp "$SRCFILE" lex.yy.c | |
253 | fi | |
254 | ;; | |
255 | esac | |
256 | fi | |
257 | if test ! -f lex.yy.c; then | |
258 | echo 'main() { return 0; }' >lex.yy.c | |
259 | fi | |
260 | ;; | |
261 | ||
262 | help2man*) | |
263 | echo 1>&2 "\ | |
264 | WARNING: '$1' is $msg. You should only need it if | |
265 | you modified a dependency of a manual page. You may need the | |
266 | Help2man package in order for those modifications to take | |
267 | effect. You can get Help2man from any GNU archive site." | |
268 | ||
269 | file=`echo "$*" | sed -n "$sed_output"` | |
270 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
271 | if test -f "$file"; then | |
272 | touch $file | |
273 | else | |
274 | test -z "$file" || exec >$file | |
275 | echo ".ab help2man is required to generate this page" | |
276 | exit $? | |
277 | fi | |
278 | ;; | |
279 | ||
280 | makeinfo*) | |
281 | echo 1>&2 "\ | |
282 | WARNING: '$1' is $msg. You should only need it if | |
283 | you modified a '.texi' or '.texinfo' file, or any other file | |
284 | indirectly affecting the aspect of the manual. The spurious | |
285 | call might also be the consequence of using a buggy 'make' (AIX, | |
286 | DU, IRIX). You might want to install the Texinfo package or | |
287 | the GNU make package. Grab either from any GNU archive site." | |
288 | # The file to touch is that specified with -o ... | |
289 | file=`echo "$*" | sed -n "$sed_output"` | |
290 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
291 | if test -z "$file"; then | |
292 | # ... or it is the one specified with @setfilename ... | |
293 | infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` | |
294 | file=`sed -n ' | |
295 | /^@setfilename/{ | |
296 | s/.* \([^ ]*\) *$/\1/ | |
297 | p | |
298 | q | |
299 | }' $infile` | |
300 | # ... or it is derived from the source name (dir/f.texi becomes f.info) | |
301 | test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info | |
302 | fi | |
303 | # If the file does not exist, the user really needs makeinfo; | |
304 | # let's fail without touching anything. | |
305 | test -f $file || exit 1 | |
306 | touch $file | |
307 | ;; | |
308 | ||
309 | *) | |
310 | echo 1>&2 "\ | |
311 | WARNING: '$1' is needed, and is $msg. | |
312 | You might have modified some files without having the | |
313 | proper tools for further handling them. Check the 'README' file, | |
314 | it often tells you about the needed prerequisites for installing | |
315 | this package. You may also peek at any GNU archive site, in case | |
316 | some other package would contain this missing '$1' program." | |
317 | exit 1 | |
318 | ;; | |
319 | esac | |
320 | ||
321 | 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 | |
322 | 207 | |
323 | 208 | # Local variables: |
324 | 209 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
0 | # Makefile.in generated by automake 1.12.1 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.4 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2012 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
16 | 16 | # -*- Makefile -*- |
17 | 17 | |
18 | 18 | VPATH = @srcdir@ |
19 | am__make_dryrun = \ | |
20 | { \ | |
21 | am__dry=no; \ | |
19 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
20 | am__make_running_with_option = \ | |
21 | case $${target_option-} in \ | |
22 | ?) ;; \ | |
23 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
24 | "target option '$${target_option-}' specified" >&2; \ | |
25 | exit 1;; \ | |
26 | esac; \ | |
27 | has_opt=no; \ | |
28 | sane_makeflags=$$MAKEFLAGS; \ | |
29 | if $(am__is_gnu_make); then \ | |
30 | sane_makeflags=$$MFLAGS; \ | |
31 | else \ | |
22 | 32 | case $$MAKEFLAGS in \ |
23 | 33 | *\\[\ \ ]*) \ |
24 | echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
25 | | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
26 | *) \ | |
27 | for am__flg in $$MAKEFLAGS; do \ | |
28 | case $$am__flg in \ | |
29 | *=*|--*) ;; \ | |
30 | *n*) am__dry=yes; break;; \ | |
31 | esac; \ | |
32 | done;; \ | |
34 | bs=\\; \ | |
35 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
36 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
33 | 37 | esac; \ |
34 | test $$am__dry = yes; \ | |
35 | } | |
38 | fi; \ | |
39 | skip_next=no; \ | |
40 | strip_trailopt () \ | |
41 | { \ | |
42 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
43 | }; \ | |
44 | for flg in $$sane_makeflags; do \ | |
45 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
46 | case $$flg in \ | |
47 | *=*|--*) continue;; \ | |
48 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
49 | -*I?*) strip_trailopt 'I';; \ | |
50 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
51 | -*O?*) strip_trailopt 'O';; \ | |
52 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
53 | -*l?*) strip_trailopt 'l';; \ | |
54 | -[dEDm]) skip_next=yes;; \ | |
55 | -[JT]) skip_next=yes;; \ | |
56 | esac; \ | |
57 | case $$flg in \ | |
58 | *$$target_option*) has_opt=yes; break;; \ | |
59 | esac; \ | |
60 | done; \ | |
61 | test $$has_opt = yes | |
62 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
63 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
36 | 64 | pkgdatadir = $(datadir)/@PACKAGE@ |
37 | 65 | pkgincludedir = $(includedir)/@PACKAGE@ |
38 | 66 | pkglibdir = $(libdir)/@PACKAGE@ |
52 | 80 | build_triplet = @build@ |
53 | 81 | host_triplet = @host@ |
54 | 82 | subdir = config |
55 | DIST_COMMON = $(am__dist_dtd_DATA_DIST) \ | |
83 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
84 | $(am__dist_dtd_DATA_DIST) $(dist_security_DATA) \ | |
56 | 85 | $(am__dist_selinux_fc_DATA_DIST) \ |
57 | $(am__dist_selinux_te_DATA_DIST) $(dist_security_DATA) \ | |
58 | $(srcdir)/Makefile.am $(srcdir)/Makefile.in | |
86 | $(am__dist_selinux_te_DATA_DIST) | |
59 | 87 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
60 | 88 | am__aclocal_m4_deps = $(top_srcdir)/m4/gcc4_visibility.m4 \ |
61 | 89 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ |
67 | 95 | CONFIG_HEADER = $(top_builddir)/config.h |
68 | 96 | CONFIG_CLEAN_FILES = |
69 | 97 | CONFIG_CLEAN_VPATH_FILES = |
98 | AM_V_P = $(am__v_P_@AM_V@) | |
99 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
100 | am__v_P_0 = false | |
101 | am__v_P_1 = : | |
70 | 102 | AM_V_GEN = $(am__v_GEN_@AM_V@) |
71 | 103 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) |
72 | 104 | am__v_GEN_0 = @echo " GEN " $@; |
105 | am__v_GEN_1 = | |
73 | 106 | AM_V_at = $(am__v_at_@AM_V@) |
74 | 107 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
75 | 108 | am__v_at_0 = @ |
109 | am__v_at_1 = | |
76 | 110 | SOURCES = |
77 | 111 | DIST_SOURCES = |
78 | 112 | am__can_run_installinfo = \ |
114 | 148 | am__dist_selinux_te_DATA_DIST = pam_mount_macros.te |
115 | 149 | DATA = $(dist_dtd_DATA) $(dist_security_DATA) $(dist_selinux_fc_DATA) \ |
116 | 150 | $(dist_selinux_te_DATA) |
151 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
117 | 152 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
118 | 153 | ACLOCAL = @ACLOCAL@ |
119 | 154 | AMTAR = @AMTAR@ |
383 | 418 | @list='$(dist_selinux_te_DATA)'; test -n "$(selinux_tedir)" || list=; \ |
384 | 419 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ |
385 | 420 | dir='$(DESTDIR)$(selinux_tedir)'; $(am__uninstall_files_from_dir) |
386 | tags: TAGS | |
387 | TAGS: | |
388 | ||
389 | ctags: CTAGS | |
390 | CTAGS: | |
421 | tags TAGS: | |
422 | ||
423 | ctags CTAGS: | |
391 | 424 | |
392 | 425 | cscope cscopelist: |
393 | 426 | |
530 | 563 | .MAKE: install-am install-strip |
531 | 564 | |
532 | 565 | .PHONY: all all-am check check-am clean clean-generic clean-libtool \ |
533 | distclean distclean-generic distclean-libtool distdir dvi \ | |
534 | dvi-am html html-am info info-am install install-am \ | |
535 | install-data install-data-am install-dist_dtdDATA \ | |
536 | install-dist_securityDATA install-dist_selinux_fcDATA \ | |
537 | install-dist_selinux_teDATA install-dvi install-dvi-am \ | |
538 | install-exec install-exec-am install-html install-html-am \ | |
539 | install-info install-info-am install-man install-pdf \ | |
540 | install-pdf-am install-ps install-ps-am install-strip \ | |
541 | installcheck installcheck-am installdirs maintainer-clean \ | |
542 | maintainer-clean-generic mostlyclean mostlyclean-generic \ | |
543 | mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ | |
544 | uninstall-dist_dtdDATA uninstall-dist_securityDATA \ | |
545 | uninstall-dist_selinux_fcDATA uninstall-dist_selinux_teDATA | |
566 | cscopelist-am ctags-am distclean distclean-generic \ | |
567 | distclean-libtool distdir dvi dvi-am html html-am info info-am \ | |
568 | install install-am install-data install-data-am \ | |
569 | install-dist_dtdDATA install-dist_securityDATA \ | |
570 | install-dist_selinux_fcDATA install-dist_selinux_teDATA \ | |
571 | install-dvi install-dvi-am install-exec install-exec-am \ | |
572 | install-html install-html-am install-info install-info-am \ | |
573 | install-man install-pdf install-pdf-am install-ps \ | |
574 | install-ps-am install-strip installcheck installcheck-am \ | |
575 | installdirs maintainer-clean maintainer-clean-generic \ | |
576 | mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ | |
577 | ps ps-am tags-am uninstall uninstall-am uninstall-dist_dtdDATA \ | |
578 | uninstall-dist_securityDATA uninstall-dist_selinux_fcDATA \ | |
579 | uninstall-dist_selinux_teDATA | |
546 | 580 | |
547 | 581 | |
548 | 582 | .PHONY: validate-config |
32 | 32 | <mntoptions require="nosuid,nodev" /> |
33 | 33 | |
34 | 34 | <!-- requires ofl from hxtools to be present --> |
35 | <logout wait="0" hup="0" term="0" kill="0" /> | |
35 | <logout wait="0" hup="no" term="no" kill="no" /> | |
36 | 36 | |
37 | 37 | |
38 | 38 | <!-- pam_mount parameters: Volume-related --> |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.69 for pam_mount 2.14. | |
2 | # Generated by GNU Autoconf 2.69 for pam_mount 2.16. | |
3 | 3 | # |
4 | 4 | # |
5 | 5 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
586 | 586 | # Identity of this package. |
587 | 587 | PACKAGE_NAME='pam_mount' |
588 | 588 | PACKAGE_TARNAME='pam_mount' |
589 | PACKAGE_VERSION='2.14' | |
590 | PACKAGE_STRING='pam_mount 2.14' | |
589 | PACKAGE_VERSION='2.16' | |
590 | PACKAGE_STRING='pam_mount 2.16' | |
591 | 591 | PACKAGE_BUGREPORT='' |
592 | 592 | PACKAGE_URL='' |
593 | 593 | |
1367 | 1367 | # Omit some internal or obsolete options to make the list less imposing. |
1368 | 1368 | # This message is too long to be a string in the A/UX 3.1 sh. |
1369 | 1369 | cat <<_ACEOF |
1370 | \`configure' configures pam_mount 2.14 to adapt to many kinds of systems. | |
1370 | \`configure' configures pam_mount 2.16 to adapt to many kinds of systems. | |
1371 | 1371 | |
1372 | 1372 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1373 | 1373 | |
1437 | 1437 | |
1438 | 1438 | if test -n "$ac_init_help"; then |
1439 | 1439 | case $ac_init_help in |
1440 | short | recursive ) echo "Configuration of pam_mount 2.14:";; | |
1440 | short | recursive ) echo "Configuration of pam_mount 2.16:";; | |
1441 | 1441 | esac |
1442 | 1442 | cat <<\_ACEOF |
1443 | 1443 | |
1577 | 1577 | test -n "$ac_init_help" && exit $ac_status |
1578 | 1578 | if $ac_init_version; then |
1579 | 1579 | cat <<\_ACEOF |
1580 | pam_mount configure 2.14 | |
1580 | pam_mount configure 2.16 | |
1581 | 1581 | generated by GNU Autoconf 2.69 |
1582 | 1582 | |
1583 | 1583 | Copyright (C) 2012 Free Software Foundation, Inc. |
1999 | 1999 | This file contains any messages produced by compilers while |
2000 | 2000 | running configure, to aid debugging if configure makes a mistake. |
2001 | 2001 | |
2002 | It was created by pam_mount $as_me 2.14, which was | |
2002 | It was created by pam_mount $as_me 2.16, which was | |
2003 | 2003 | generated by GNU Autoconf 2.69. Invocation command line was |
2004 | 2004 | |
2005 | 2005 | $ $0 $@ |
2347 | 2347 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2348 | 2348 | |
2349 | 2349 | |
2350 | PACKAGE_RELDATE="2013-08-27" | |
2350 | PACKAGE_RELDATE="2016-09-23" | |
2351 | 2351 | |
2352 | 2352 | ac_aux_dir= |
2353 | 2353 | for ac_dir in build-aux "$srcdir"/build-aux; do |
2474 | 2474 | |
2475 | 2475 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2476 | 2476 | |
2477 | am__api_version='1.12' | |
2477 | am__api_version='1.13' | |
2478 | 2478 | |
2479 | 2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2480 | 2480 | $as_echo_n "checking whether build environment is sane... " >&6; } |
2565 | 2565 | esac |
2566 | 2566 | fi |
2567 | 2567 | # Use eval to expand $SHELL |
2568 | if eval "$MISSING --run true"; then | |
2569 | am_missing_run="$MISSING --run " | |
2568 | if eval "$MISSING --is-lightweight"; then | |
2569 | am_missing_run="$MISSING " | |
2570 | 2570 | else |
2571 | 2571 | am_missing_run= |
2572 | 2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2806 | 2806 | fi |
2807 | 2807 | rmdir .tst 2>/dev/null |
2808 | 2808 | |
2809 | # Check whether --enable-silent-rules was given. | |
2810 | if test "${enable_silent_rules+set}" = set; then : | |
2811 | enableval=$enable_silent_rules; | |
2812 | fi | |
2813 | ||
2814 | case $enable_silent_rules in # ((( | |
2815 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2816 | no) AM_DEFAULT_VERBOSITY=1;; | |
2817 | *) AM_DEFAULT_VERBOSITY=1;; | |
2818 | esac | |
2819 | am_make=${MAKE-make} | |
2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2821 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2822 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2823 | $as_echo_n "(cached) " >&6 | |
2824 | else | |
2825 | if $as_echo 'TRUE=$(BAR$(V)) | |
2826 | BAR0=false | |
2827 | BAR1=true | |
2828 | V=1 | |
2829 | am__doit: | |
2830 | @$(TRUE) | |
2831 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2832 | am_cv_make_support_nested_variables=yes | |
2833 | else | |
2834 | am_cv_make_support_nested_variables=no | |
2835 | fi | |
2836 | fi | |
2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2838 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2839 | if test $am_cv_make_support_nested_variables = yes; then | |
2840 | AM_V='$(V)' | |
2841 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2842 | else | |
2843 | AM_V=$AM_DEFAULT_VERBOSITY | |
2844 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2845 | fi | |
2846 | AM_BACKSLASH='\' | |
2847 | ||
2809 | 2848 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2810 | 2849 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2811 | 2850 | # is not polluted with repeated "-I." |
2828 | 2867 | |
2829 | 2868 | # Define the identity of the package. |
2830 | 2869 | PACKAGE='pam_mount' |
2831 | VERSION='2.14' | |
2870 | VERSION='2.16' | |
2832 | 2871 | |
2833 | 2872 | |
2834 | 2873 | cat >>confdefs.h <<_ACEOF |
2856 | 2895 | |
2857 | 2896 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2858 | 2897 | |
2859 | mkdir_p="$MKDIR_P" | |
2898 | # For better backward compatibility. To be removed once Automake 1.9.x | |
2899 | # dies out for good. For more background, see: | |
2900 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2901 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2902 | mkdir_p='$(MKDIR_P)' | |
2903 | ||
2860 | 2904 | # We need awk for the "check" target. The system "awk" is bad on |
2861 | 2905 | # some platforms. |
2862 | 2906 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2864 | 2908 | AMTAR='$${TAR-tar}' |
2865 | 2909 | |
2866 | 2910 | |
2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 | |
2911 | # We'll loop over all known methods to create a tar archive until one works. | |
2912 | _am_tools='gnutar pax cpio none' | |
2913 | ||
2914 | ||
2915 | ||
2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 | |
2868 | 2917 | $as_echo_n "checking how to create a pax tar archive... " >&6; } |
2869 | # Loop over all known methods to create a tar archive until one works. | |
2870 | _am_tools='gnutar pax cpio none' | |
2871 | _am_tools=${am_cv_prog_tar_pax-$_am_tools} | |
2872 | # Do not fold the above two line into one, because Tru64 sh and | |
2873 | # Solaris sh will not grok spaces in the rhs of '-'. | |
2874 | for _am_tool in $_am_tools | |
2875 | do | |
2876 | case $_am_tool in | |
2877 | gnutar) | |
2878 | for _am_tar in tar gnutar gtar; | |
2879 | do | |
2880 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 | |
2918 | ||
2919 | # Go ahead even if we have the value already cached. We do so because we | |
2920 | # need to set the values for the 'am__tar' and 'am__untar' variables. | |
2921 | _am_tools=${am_cv_prog_tar_pax-$_am_tools} | |
2922 | ||
2923 | for _am_tool in $_am_tools; do | |
2924 | case $_am_tool in | |
2925 | gnutar) | |
2926 | for _am_tar in tar gnutar gtar; do | |
2927 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 | |
2881 | 2928 | ($_am_tar --version) >&5 2>&5 |
2882 | 2929 | ac_status=$? |
2883 | 2930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2884 | 2931 | (exit $ac_status); } && break |
2885 | done | |
2886 | am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' | |
2887 | am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' | |
2888 | am__untar="$_am_tar -xf -" | |
2889 | ;; | |
2890 | plaintar) | |
2891 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
2892 | # ustar tarball either. | |
2893 | (tar --version) >/dev/null 2>&1 && continue | |
2894 | am__tar='tar chf - "$$tardir"' | |
2895 | am__tar_='tar chf - "$tardir"' | |
2896 | am__untar='tar xf -' | |
2897 | ;; | |
2898 | pax) | |
2899 | am__tar='pax -L -x pax -w "$$tardir"' | |
2900 | am__tar_='pax -L -x pax -w "$tardir"' | |
2901 | am__untar='pax -r' | |
2902 | ;; | |
2903 | cpio) | |
2904 | am__tar='find "$$tardir" -print | cpio -o -H pax -L' | |
2905 | am__tar_='find "$tardir" -print | cpio -o -H pax -L' | |
2906 | am__untar='cpio -i -H pax -d' | |
2907 | ;; | |
2908 | none) | |
2909 | am__tar=false | |
2910 | am__tar_=false | |
2911 | am__untar=false | |
2912 | ;; | |
2913 | esac | |
2914 | ||
2915 | # If the value was cached, stop now. We just wanted to have am__tar | |
2916 | # and am__untar set. | |
2917 | test -n "${am_cv_prog_tar_pax}" && break | |
2918 | ||
2919 | # tar/untar a dummy directory, and stop if the command works | |
2920 | rm -rf conftest.dir | |
2921 | mkdir conftest.dir | |
2922 | echo GrepMe > conftest.dir/file | |
2923 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 | |
2932 | done | |
2933 | am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' | |
2934 | am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' | |
2935 | am__untar="$_am_tar -xf -" | |
2936 | ;; | |
2937 | plaintar) | |
2938 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
2939 | # ustar tarball either. | |
2940 | (tar --version) >/dev/null 2>&1 && continue | |
2941 | am__tar='tar chf - "$$tardir"' | |
2942 | am__tar_='tar chf - "$tardir"' | |
2943 | am__untar='tar xf -' | |
2944 | ;; | |
2945 | pax) | |
2946 | am__tar='pax -L -x pax -w "$$tardir"' | |
2947 | am__tar_='pax -L -x pax -w "$tardir"' | |
2948 | am__untar='pax -r' | |
2949 | ;; | |
2950 | cpio) | |
2951 | am__tar='find "$$tardir" -print | cpio -o -H pax -L' | |
2952 | am__tar_='find "$tardir" -print | cpio -o -H pax -L' | |
2953 | am__untar='cpio -i -H pax -d' | |
2954 | ;; | |
2955 | none) | |
2956 | am__tar=false | |
2957 | am__tar_=false | |
2958 | am__untar=false | |
2959 | ;; | |
2960 | esac | |
2961 | ||
2962 | # If the value was cached, stop now. We just wanted to have am__tar | |
2963 | # and am__untar set. | |
2964 | test -n "${am_cv_prog_tar_pax}" && break | |
2965 | ||
2966 | # tar/untar a dummy directory, and stop if the command works. | |
2967 | rm -rf conftest.dir | |
2968 | mkdir conftest.dir | |
2969 | echo GrepMe > conftest.dir/file | |
2970 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 | |
2924 | 2971 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
2925 | 2972 | ac_status=$? |
2926 | 2973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2927 | 2974 | (exit $ac_status); } |
2928 | rm -rf conftest.dir | |
2929 | if test -s conftest.tar; then | |
2930 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 | |
2975 | rm -rf conftest.dir | |
2976 | if test -s conftest.tar; then | |
2977 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 | |
2931 | 2978 | ($am__untar <conftest.tar) >&5 2>&5 |
2932 | 2979 | ac_status=$? |
2933 | 2980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2934 | 2981 | (exit $ac_status); } |
2935 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
2936 | fi | |
2937 | done | |
2938 | rm -rf conftest.dir | |
2939 | ||
2940 | if ${am_cv_prog_tar_pax+:} false; then : | |
2982 | { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 | |
2983 | (cat conftest.dir/file) >&5 2>&5 | |
2984 | ac_status=$? | |
2985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2986 | (exit $ac_status); } | |
2987 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
2988 | fi | |
2989 | done | |
2990 | rm -rf conftest.dir | |
2991 | ||
2992 | if ${am_cv_prog_tar_pax+:} false; then : | |
2941 | 2993 | $as_echo_n "(cached) " >&6 |
2942 | 2994 | else |
2943 | 2995 | am_cv_prog_tar_pax=$_am_tool |
2944 | 2996 | fi |
2945 | 2997 | |
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 | |
2998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 | |
2947 | 2999 | $as_echo "$am_cv_prog_tar_pax" >&6; } |
3000 | ||
2948 | 3001 | |
2949 | 3002 | |
2950 | 3003 | |
6696 | 6749 | rm -rf conftest* |
6697 | 6750 | ;; |
6698 | 6751 | |
6699 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6752 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
6700 | 6753 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6701 | 6754 | # Find out which ABI we are using. |
6702 | 6755 | echo 'int i;' > conftest.$ac_ext |
6714 | 6767 | x86_64-*linux*) |
6715 | 6768 | LD="${LD-ld} -m elf_i386" |
6716 | 6769 | ;; |
6717 | ppc64-*linux*|powerpc64-*linux*) | |
6770 | powerpc64le-*linux*) | |
6771 | LD="${LD-ld} -m elf32lppclinux" | |
6772 | ;; | |
6773 | powerpc64-*linux*) | |
6718 | 6774 | LD="${LD-ld} -m elf32ppclinux" |
6719 | 6775 | ;; |
6720 | 6776 | s390x-*linux*) |
6733 | 6789 | x86_64-*linux*) |
6734 | 6790 | LD="${LD-ld} -m elf_x86_64" |
6735 | 6791 | ;; |
6736 | ppc*-*linux*|powerpc*-*linux*) | |
6792 | powerpcle-*linux*) | |
6793 | LD="${LD-ld} -m elf64lppc" | |
6794 | ;; | |
6795 | powerpc-*linux*) | |
6737 | 6796 | LD="${LD-ld} -m elf64ppc" |
6738 | 6797 | ;; |
6739 | 6798 | s390*-*linux*|s390*-*tpf*) |
13353 | 13412 | # report actual input values of CONFIG_FILES etc. instead of their |
13354 | 13413 | # values after options handling. |
13355 | 13414 | ac_log=" |
13356 | This file was extended by pam_mount $as_me 2.14, which was | |
13415 | This file was extended by pam_mount $as_me 2.16, which was | |
13357 | 13416 | generated by GNU Autoconf 2.69. Invocation command line was |
13358 | 13417 | |
13359 | 13418 | CONFIG_FILES = $CONFIG_FILES |
13419 | 13478 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13420 | 13479 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
13421 | 13480 | ac_cs_version="\\ |
13422 | pam_mount config.status 2.14 | |
13481 | pam_mount config.status 2.16 | |
13423 | 13482 | configured by $0, generated by GNU Autoconf 2.69, |
13424 | 13483 | with options \\"\$ac_cs_config\\" |
13425 | 13484 | |
14429 | 14488 | |
14430 | 14489 | case $ac_file$ac_mode in |
14431 | 14490 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
14432 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
14491 | # Older Autoconf quotes --file arguments for eval, but not when files | |
14433 | 14492 | # are listed without --file. Let's play safe and only enable the eval |
14434 | 14493 | # if we detect the quoting. |
14435 | 14494 | case $CONFIG_FILES in |
14480 | 14539 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
14481 | 14540 | test -z "$DEPDIR" && continue |
14482 | 14541 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
14483 | test -z "am__include" && continue | |
14542 | test -z "$am__include" && continue | |
14484 | 14543 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
14485 | 14544 | # Find all dependency output files, they are included files with |
14486 | 14545 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
6 | 6 | # the Free Software Foundation; either version 2 of the License, or |
7 | 7 | # (at your option) any later version. |
8 | 8 | # |
9 | AC_INIT([pam_mount], [2.14]) | |
10 | PACKAGE_RELDATE="2013-08-27" | |
9 | AC_INIT([pam_mount], [2.16]) | |
10 | PACKAGE_RELDATE="2016-09-23" | |
11 | 11 | AC_PREREQ([2.59]) |
12 | 12 | AC_CONFIG_AUX_DIR([build-aux]) |
13 | 13 | AC_CONFIG_HEADERS([config.h]) |
0 | # Makefile.in generated by automake 1.12.1 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.4 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2012 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
15 | 15 | |
16 | 16 | # -*- Makefile -*- |
17 | 17 | VPATH = @srcdir@ |
18 | am__make_dryrun = \ | |
19 | { \ | |
20 | am__dry=no; \ | |
18 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
19 | am__make_running_with_option = \ | |
20 | case $${target_option-} in \ | |
21 | ?) ;; \ | |
22 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
23 | "target option '$${target_option-}' specified" >&2; \ | |
24 | exit 1;; \ | |
25 | esac; \ | |
26 | has_opt=no; \ | |
27 | sane_makeflags=$$MAKEFLAGS; \ | |
28 | if $(am__is_gnu_make); then \ | |
29 | sane_makeflags=$$MFLAGS; \ | |
30 | else \ | |
21 | 31 | case $$MAKEFLAGS in \ |
22 | 32 | *\\[\ \ ]*) \ |
23 | echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
24 | | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
25 | *) \ | |
26 | for am__flg in $$MAKEFLAGS; do \ | |
27 | case $$am__flg in \ | |
28 | *=*|--*) ;; \ | |
29 | *n*) am__dry=yes; break;; \ | |
30 | esac; \ | |
31 | done;; \ | |
33 | bs=\\; \ | |
34 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
35 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
32 | 36 | esac; \ |
33 | test $$am__dry = yes; \ | |
34 | } | |
37 | fi; \ | |
38 | skip_next=no; \ | |
39 | strip_trailopt () \ | |
40 | { \ | |
41 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
42 | }; \ | |
43 | for flg in $$sane_makeflags; do \ | |
44 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
45 | case $$flg in \ | |
46 | *=*|--*) continue;; \ | |
47 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
48 | -*I?*) strip_trailopt 'I';; \ | |
49 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
50 | -*O?*) strip_trailopt 'O';; \ | |
51 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
52 | -*l?*) strip_trailopt 'l';; \ | |
53 | -[dEDm]) skip_next=yes;; \ | |
54 | -[JT]) skip_next=yes;; \ | |
55 | esac; \ | |
56 | case $$flg in \ | |
57 | *$$target_option*) has_opt=yes; break;; \ | |
58 | esac; \ | |
59 | done; \ | |
60 | test $$has_opt = yes | |
61 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
62 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
35 | 63 | pkgdatadir = $(datadir)/@PACKAGE@ |
36 | 64 | pkgincludedir = $(includedir)/@PACKAGE@ |
37 | 65 | pkglibdir = $(libdir)/@PACKAGE@ |
51 | 79 | build_triplet = @build@ |
52 | 80 | host_triplet = @host@ |
53 | 81 | subdir = doc |
54 | DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \ | |
55 | $(srcdir)/Makefile.in | |
82 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
83 | $(dist_man_MANS) | |
56 | 84 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
57 | 85 | am__aclocal_m4_deps = $(top_srcdir)/m4/gcc4_visibility.m4 \ |
58 | 86 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ |
64 | 92 | CONFIG_HEADER = $(top_builddir)/config.h |
65 | 93 | CONFIG_CLEAN_FILES = |
66 | 94 | CONFIG_CLEAN_VPATH_FILES = |
95 | AM_V_P = $(am__v_P_@AM_V@) | |
96 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
97 | am__v_P_0 = false | |
98 | am__v_P_1 = : | |
67 | 99 | AM_V_GEN = $(am__v_GEN_@AM_V@) |
68 | 100 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) |
69 | 101 | am__v_GEN_0 = @echo " GEN " $@; |
102 | am__v_GEN_1 = | |
70 | 103 | AM_V_at = $(am__v_at_@AM_V@) |
71 | 104 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
72 | 105 | am__v_at_0 = @ |
106 | am__v_at_1 = | |
73 | 107 | SOURCES = |
74 | 108 | DIST_SOURCES = |
75 | 109 | am__can_run_installinfo = \ |
109 | 143 | man8dir = $(mandir)/man8 |
110 | 144 | NROFF = nroff |
111 | 145 | MANS = $(dist_man_MANS) $(man_MANS) |
146 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
112 | 147 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
113 | 148 | ACLOCAL = @ACLOCAL@ |
114 | 149 | AMTAR = @AMTAR@ |
384 | 419 | } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ |
385 | 420 | -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ |
386 | 421 | dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir) |
387 | tags: TAGS | |
388 | TAGS: | |
389 | ||
390 | ctags: CTAGS | |
391 | CTAGS: | |
422 | tags TAGS: | |
423 | ||
424 | ctags CTAGS: | |
392 | 425 | |
393 | 426 | cscope cscopelist: |
394 | 427 | |
395 | 428 | |
396 | 429 | distdir: $(DISTFILES) |
397 | @list='$(MANS)'; if test -n "$$list"; then \ | |
398 | list=`for p in $$list; do \ | |
399 | if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ | |
400 | if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ | |
401 | if test -n "$$list" && \ | |
402 | grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ | |
403 | echo "error: found man pages containing the 'missing help2man' replacement text:" >&2; \ | |
404 | grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ | |
405 | echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ | |
406 | echo " typically 'make maintainer-clean' will remove them" >&2; \ | |
407 | exit 1; \ | |
408 | else :; fi; \ | |
409 | else :; fi | |
410 | 430 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
411 | 431 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
412 | 432 | list='$(DISTFILES)'; \ |
546 | 566 | .MAKE: install-am install-strip |
547 | 567 | |
548 | 568 | .PHONY: all all-am check check-am clean clean-generic clean-libtool \ |
549 | distclean distclean-generic distclean-libtool distdir dvi \ | |
550 | dvi-am html html-am info info-am install install-am \ | |
551 | install-data install-data-am install-dvi install-dvi-am \ | |
552 | install-exec install-exec-am install-html install-html-am \ | |
553 | install-info install-info-am install-man install-man5 \ | |
554 | install-man8 install-pdf install-pdf-am install-ps \ | |
555 | install-ps-am install-strip installcheck installcheck-am \ | |
556 | installdirs maintainer-clean maintainer-clean-generic \ | |
557 | mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ | |
558 | ps ps-am uninstall uninstall-am uninstall-man uninstall-man5 \ | |
559 | uninstall-man8 | |
569 | cscopelist-am ctags-am distclean distclean-generic \ | |
570 | distclean-libtool distdir dvi dvi-am html html-am info info-am \ | |
571 | install install-am install-data install-data-am install-dvi \ | |
572 | install-dvi-am install-exec install-exec-am install-html \ | |
573 | install-html-am install-info install-info-am install-man \ | |
574 | install-man5 install-man8 install-pdf install-pdf-am \ | |
575 | install-ps install-ps-am install-strip installcheck \ | |
576 | installcheck-am installdirs maintainer-clean \ | |
577 | maintainer-clean-generic mostlyclean mostlyclean-generic \ | |
578 | mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ | |
579 | uninstall-am uninstall-man uninstall-man5 uninstall-man8 | |
560 | 580 | |
561 | 581 | |
562 | 582 | pam_mount.8: pam_mount.8.in ${top_builddir}/config.status |
19 | 19 | |
20 | 20 | * openssl 0.9.8 or up |
21 | 21 | * libcryptsetup 1.1.2 or up -- block-level encryption |
22 | ||
23 | Required packages for runtime: | |
24 | ||
25 | * util-linux 2.20 or up | |
22 | 26 | |
23 | 27 | Suggested packages for runtime: |
24 | 28 |
2 | 2 | |
3 | 3 | HEAD |
4 | 4 | ==== |
5 | ||
6 | ||
7 | v2.16 (2016-09-23) | |
8 | ================== | |
9 | Enhancements: | |
10 | * support building with OpenSSL 1.1.0 and test libressl 2.4.2 | |
11 | Changes: | |
12 | * the sgrp match is now implemented by asking for the user's group list instead | |
13 | of asking for the group's user list. (The latter can easily be orders of | |
14 | magnitude larger, which is why some LDAP servers may be configured not to | |
15 | return the list at all.) | |
16 | ||
17 | ||
18 | v2.15 (2014-12-01) | |
19 | ================== | |
20 | Changes: | |
21 | * util-linux >= 2.20 is required at runtime | |
22 | (just mentioning it again; it was already needed for building) | |
23 | * use the helper= option to get umount.crypt invoked on calling umount | |
24 | * remove unsupported -p0 mount option | |
25 | * fix a crash in ehd_log | |
5 | 26 | |
6 | 27 | |
7 | 28 | v2.14 (2013-08-27) |
239 | 239 | searched. Since login programs have differing default PATHs, pam_mount has its |
240 | 240 | own path definition (see above). |
241 | 241 | .TP |
242 | \fB<lclmount>\fP\fImount \-p0 \-t %(FSTYPE) ...\fP\fB</lclmount>\fP | |
242 | \fB<lclmount>\fP\fImount \-t %(FSTYPE) ...\fP\fB</lclmount>\fP | |
243 | 243 | The regular mount program. |
244 | 244 | .TP |
245 | 245 | \fB<umount>\fP\fIumount %(MNTPT)\fP\fB</umount>\fP |
0 | pam_mount(8) pam_mount 2.14 pam_mount(8) | |
0 | pam_mount(8) pam_mount 2.15 pam_mount(8) | |
1 | 1 | |
2 | 2 | |
3 | 3 | |
186 | 186 | |
187 | 187 | |
188 | 188 | |
189 | pam_mount 2.14 2013-08-27 pam_mount(8) | |
189 | pam_mount 2.15 2014-11-28 pam_mount(8) |
3 | 3 | ./autogen.sh; |
4 | 4 | fi; |
5 | 5 | exec ./configure CFLAGS=-ggdb3 \ |
6 | LDFLAGS="-Wl,-z -Wl,defs -Wl,-z -Wl,--as-needed" \ | |
6 | LDFLAGS="-Wl,-z -Wl,defs -Wl,--as-needed" \ | |
7 | 7 | --with-rundir="$PWD/run" "$@"; |
1311 | 1311 | rm -rf conftest* |
1312 | 1312 | ;; |
1313 | 1313 | |
1314 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
1314 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
1315 | 1315 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
1316 | 1316 | # Find out which ABI we are using. |
1317 | 1317 | echo 'int i;' > conftest.$ac_ext |
1325 | 1325 | x86_64-*linux*) |
1326 | 1326 | LD="${LD-ld} -m elf_i386" |
1327 | 1327 | ;; |
1328 | ppc64-*linux*|powerpc64-*linux*) | |
1328 | powerpc64le-*linux*) | |
1329 | LD="${LD-ld} -m elf32lppclinux" | |
1330 | ;; | |
1331 | powerpc64-*linux*) | |
1329 | 1332 | LD="${LD-ld} -m elf32ppclinux" |
1330 | 1333 | ;; |
1331 | 1334 | s390x-*linux*) |
1344 | 1347 | x86_64-*linux*) |
1345 | 1348 | LD="${LD-ld} -m elf_x86_64" |
1346 | 1349 | ;; |
1347 | ppc*-*linux*|powerpc*-*linux*) | |
1350 | powerpcle-*linux*) | |
1351 | LD="${LD-ld} -m elf64lppc" | |
1352 | ;; | |
1353 | powerpc-*linux*) | |
1348 | 1354 | LD="${LD-ld} -m elf64ppc" |
1349 | 1355 | ;; |
1350 | 1356 | s390*-*linux*|s390*-*tpf*) |
0 | # Makefile.in generated by automake 1.12.1 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.4 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2012 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
19 | 19 | |
20 | 20 | |
21 | 21 | VPATH = @srcdir@ |
22 | am__make_dryrun = \ | |
23 | { \ | |
24 | am__dry=no; \ | |
22 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
23 | am__make_running_with_option = \ | |
24 | case $${target_option-} in \ | |
25 | ?) ;; \ | |
26 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
27 | "target option '$${target_option-}' specified" >&2; \ | |
28 | exit 1;; \ | |
29 | esac; \ | |
30 | has_opt=no; \ | |
31 | sane_makeflags=$$MAKEFLAGS; \ | |
32 | if $(am__is_gnu_make); then \ | |
33 | sane_makeflags=$$MFLAGS; \ | |
34 | else \ | |
25 | 35 | case $$MAKEFLAGS in \ |
26 | 36 | *\\[\ \ ]*) \ |
27 | echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
28 | | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
29 | *) \ | |
30 | for am__flg in $$MAKEFLAGS; do \ | |
31 | case $$am__flg in \ | |
32 | *=*|--*) ;; \ | |
33 | *n*) am__dry=yes; break;; \ | |
34 | esac; \ | |
35 | done;; \ | |
37 | bs=\\; \ | |
38 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
39 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
36 | 40 | esac; \ |
37 | test $$am__dry = yes; \ | |
38 | } | |
41 | fi; \ | |
42 | skip_next=no; \ | |
43 | strip_trailopt () \ | |
44 | { \ | |
45 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
46 | }; \ | |
47 | for flg in $$sane_makeflags; do \ | |
48 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
49 | case $$flg in \ | |
50 | *=*|--*) continue;; \ | |
51 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
52 | -*I?*) strip_trailopt 'I';; \ | |
53 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
54 | -*O?*) strip_trailopt 'O';; \ | |
55 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
56 | -*l?*) strip_trailopt 'l';; \ | |
57 | -[dEDm]) skip_next=yes;; \ | |
58 | -[JT]) skip_next=yes;; \ | |
59 | esac; \ | |
60 | case $$flg in \ | |
61 | *$$target_option*) has_opt=yes; break;; \ | |
62 | esac; \ | |
63 | done; \ | |
64 | test $$has_opt = yes | |
65 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
66 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
39 | 67 | pkgdatadir = $(datadir)/@PACKAGE@ |
40 | 68 | pkgincludedir = $(includedir)/@PACKAGE@ |
41 | 69 | pkglibdir = $(libdir)/@PACKAGE@ |
64 | 92 | @HAVE_MDIO_TRUE@am__append_5 = loop-mdvn.c |
65 | 93 | @HAVE_VND_TRUE@am__append_6 = loop-vnd.c |
66 | 94 | subdir = src |
67 | DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \ | |
68 | $(srcdir)/Makefile.in $(top_srcdir)/build-aux/depcomp | |
95 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
96 | $(top_srcdir)/build-aux/depcomp $(include_HEADERS) | |
69 | 97 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
70 | 98 | am__aclocal_m4_deps = $(top_srcdir)/m4/gcc4_visibility.m4 \ |
71 | 99 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ |
124 | 152 | AM_V_lt = $(am__v_lt_@AM_V@) |
125 | 153 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
126 | 154 | am__v_lt_0 = --silent |
155 | am__v_lt_1 = | |
127 | 156 | libcryptmount_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ |
128 | 157 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ |
129 | 158 | $(AM_CFLAGS) $(CFLAGS) $(libcryptmount_la_LDFLAGS) $(LDFLAGS) \ |
164 | 193 | pmvarrun_OBJECTS = $(am_pmvarrun_OBJECTS) |
165 | 194 | pmvarrun_DEPENDENCIES = libcryptmount.la $(am__DEPENDENCIES_1) |
166 | 195 | SCRIPTS = $(noinst_SCRIPTS) |
196 | AM_V_P = $(am__v_P_@AM_V@) | |
197 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
198 | am__v_P_0 = false | |
199 | am__v_P_1 = : | |
200 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
201 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
202 | am__v_GEN_0 = @echo " GEN " $@; | |
203 | am__v_GEN_1 = | |
204 | AM_V_at = $(am__v_at_@AM_V@) | |
205 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
206 | am__v_at_0 = @ | |
207 | am__v_at_1 = | |
167 | 208 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
168 | 209 | depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp |
169 | 210 | am__depfiles_maybe = depfiles |
177 | 218 | AM_V_CC = $(am__v_CC_@AM_V@) |
178 | 219 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) |
179 | 220 | am__v_CC_0 = @echo " CC " $@; |
180 | AM_V_at = $(am__v_at_@AM_V@) | |
181 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
182 | am__v_at_0 = @ | |
221 | am__v_CC_1 = | |
183 | 222 | CCLD = $(CC) |
184 | 223 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
185 | 224 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
187 | 226 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
188 | 227 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) |
189 | 228 | am__v_CCLD_0 = @echo " CCLD " $@; |
190 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
191 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
192 | am__v_GEN_0 = @echo " GEN " $@; | |
229 | am__v_CCLD_1 = | |
193 | 230 | SOURCES = $(libcryptmount_la_SOURCES) $(libpmt_mtab_la_SOURCES) \ |
194 | 231 | $(pam_mount_la_SOURCES) $(autoloop_SOURCES) \ |
195 | 232 | $(mount_crypt_SOURCES) $(pmt_ehd_SOURCES) $(pmvarrun_SOURCES) |
203 | 240 | *) (install-info --version) >/dev/null 2>&1;; \ |
204 | 241 | esac |
205 | 242 | HEADERS = $(include_HEADERS) |
243 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
244 | # Read a list of newline-separated strings from the standard input, | |
245 | # and print each of them once, without duplicates. Input order is | |
246 | # *not* preserved. | |
247 | am__uniquify_input = $(AWK) '\ | |
248 | BEGIN { nonempty = 0; } \ | |
249 | { items[$$0] = 1; nonempty = 1; } \ | |
250 | END { if (nonempty) { for (i in items) print i; }; } \ | |
251 | ' | |
252 | # Make sure the list of sources is unique. This is necessary because, | |
253 | # e.g., the same source file might be shared among _SOURCES variables | |
254 | # for different programs/libraries. | |
255 | am__define_uniq_tagged_files = \ | |
256 | list='$(am__tagged_files)'; \ | |
257 | unique=`for i in $$list; do \ | |
258 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
259 | done | $(am__uniquify_input)` | |
206 | 260 | ETAGS = etags |
207 | 261 | CTAGS = ctags |
208 | 262 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
453 | 507 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) |
454 | 508 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
455 | 509 | $(am__aclocal_m4_deps): |
510 | ||
456 | 511 | install-libLTLIBRARIES: $(lib_LTLIBRARIES) |
457 | 512 | @$(NORMAL_INSTALL) |
458 | 513 | @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ |
487 | 542 | echo rm -f $${locs}; \ |
488 | 543 | rm -f $${locs}; \ |
489 | 544 | } |
545 | ||
490 | 546 | install-moduleLTLIBRARIES: $(module_LTLIBRARIES) |
491 | 547 | @$(NORMAL_INSTALL) |
492 | 548 | @list='$(module_LTLIBRARIES)'; test -n "$(moduledir)" || list=; \ |
532 | 588 | echo rm -f $${locs}; \ |
533 | 589 | rm -f $${locs}; \ |
534 | 590 | } |
591 | ||
535 | 592 | libcryptmount.la: $(libcryptmount_la_OBJECTS) $(libcryptmount_la_DEPENDENCIES) $(EXTRA_libcryptmount_la_DEPENDENCIES) |
536 | 593 | $(AM_V_CCLD)$(libcryptmount_la_LINK) -rpath $(libdir) $(libcryptmount_la_OBJECTS) $(libcryptmount_la_LIBADD) $(LIBS) |
594 | ||
537 | 595 | libpmt_mtab.la: $(libpmt_mtab_la_OBJECTS) $(libpmt_mtab_la_DEPENDENCIES) $(EXTRA_libpmt_mtab_la_DEPENDENCIES) |
538 | 596 | $(AM_V_CCLD)$(libpmt_mtab_la_LINK) $(libpmt_mtab_la_OBJECTS) $(libpmt_mtab_la_LIBADD) $(LIBS) |
597 | ||
539 | 598 | pam_mount.la: $(pam_mount_la_OBJECTS) $(pam_mount_la_DEPENDENCIES) $(EXTRA_pam_mount_la_DEPENDENCIES) |
540 | 599 | $(AM_V_CCLD)$(pam_mount_la_LINK) -rpath $(moduledir) $(pam_mount_la_OBJECTS) $(pam_mount_la_LIBADD) $(LIBS) |
541 | 600 | |
556 | 615 | fi; \ |
557 | 616 | for p in $$list; do echo "$$p $$p"; done | \ |
558 | 617 | sed 's/$(EXEEXT)$$//' | \ |
559 | while read p p1; do if test -f $$p || test -f $$p1; \ | |
560 | then echo "$$p"; echo "$$p"; else :; fi; \ | |
618 | while read p p1; do if test -f $$p \ | |
619 | || test -f $$p1 \ | |
620 | ; then echo "$$p"; echo "$$p"; else :; fi; \ | |
561 | 621 | done | \ |
562 | sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ | |
622 | sed -e 'p;s,.*/,,;n;h' \ | |
623 | -e 's|.*|.|' \ | |
563 | 624 | -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ |
564 | 625 | sed 'N;N;N;s,\n, ,g' | \ |
565 | 626 | $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ |
580 | 641 | @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ |
581 | 642 | files=`for p in $$list; do echo "$$p"; done | \ |
582 | 643 | sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ |
583 | -e 's/$$/$(EXEEXT)/' `; \ | |
644 | -e 's/$$/$(EXEEXT)/' \ | |
645 | `; \ | |
584 | 646 | test -n "$$list" || exit 0; \ |
585 | 647 | echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \ |
586 | 648 | cd "$(DESTDIR)$(sbindir)" && rm -f $$files |
602 | 664 | fi; \ |
603 | 665 | for p in $$list; do echo "$$p $$p"; done | \ |
604 | 666 | sed 's/$(EXEEXT)$$//' | \ |
605 | while read p p1; do if test -f $$p || test -f $$p1; \ | |
606 | then echo "$$p"; echo "$$p"; else :; fi; \ | |
667 | while read p p1; do if test -f $$p \ | |
668 | || test -f $$p1 \ | |
669 | ; then echo "$$p"; echo "$$p"; else :; fi; \ | |
607 | 670 | done | \ |
608 | sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ | |
671 | sed -e 'p;s,.*/,,;n;h' \ | |
672 | -e 's|.*|.|' \ | |
609 | 673 | -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ |
610 | 674 | sed 'N;N;N;s,\n, ,g' | \ |
611 | 675 | $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ |
626 | 690 | @list='$(ssbin_PROGRAMS)'; test -n "$(ssbindir)" || list=; \ |
627 | 691 | files=`for p in $$list; do echo "$$p"; done | \ |
628 | 692 | sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ |
629 | -e 's/$$/$(EXEEXT)/' `; \ | |
693 | -e 's/$$/$(EXEEXT)/' \ | |
694 | `; \ | |
630 | 695 | test -n "$$list" || exit 0; \ |
631 | 696 | echo " ( cd '$(DESTDIR)$(ssbindir)' && rm -f" $$files ")"; \ |
632 | 697 | cd "$(DESTDIR)$(ssbindir)" && rm -f $$files |
639 | 704 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ |
640 | 705 | echo " rm -f" $$list; \ |
641 | 706 | rm -f $$list |
707 | ||
642 | 708 | autoloop$(EXEEXT): $(autoloop_OBJECTS) $(autoloop_DEPENDENCIES) $(EXTRA_autoloop_DEPENDENCIES) |
643 | 709 | @rm -f autoloop$(EXEEXT) |
644 | 710 | $(AM_V_CCLD)$(LINK) $(autoloop_OBJECTS) $(autoloop_LDADD) $(LIBS) |
711 | ||
645 | 712 | mount.crypt$(EXEEXT): $(mount_crypt_OBJECTS) $(mount_crypt_DEPENDENCIES) $(EXTRA_mount_crypt_DEPENDENCIES) |
646 | 713 | @rm -f mount.crypt$(EXEEXT) |
647 | 714 | $(AM_V_CCLD)$(LINK) $(mount_crypt_OBJECTS) $(mount_crypt_LDADD) $(LIBS) |
715 | ||
648 | 716 | pmt-ehd$(EXEEXT): $(pmt_ehd_OBJECTS) $(pmt_ehd_DEPENDENCIES) $(EXTRA_pmt_ehd_DEPENDENCIES) |
649 | 717 | @rm -f pmt-ehd$(EXEEXT) |
650 | 718 | $(AM_V_CCLD)$(LINK) $(pmt_ehd_OBJECTS) $(pmt_ehd_LDADD) $(LIBS) |
719 | ||
651 | 720 | pmvarrun$(EXEEXT): $(pmvarrun_OBJECTS) $(pmvarrun_DEPENDENCIES) $(EXTRA_pmvarrun_DEPENDENCIES) |
652 | 721 | @rm -f pmvarrun$(EXEEXT) |
653 | 722 | $(AM_V_CCLD)$(LINK) $(pmvarrun_OBJECTS) $(pmvarrun_LDADD) $(LIBS) |
789 | 858 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ |
790 | 859 | dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) |
791 | 860 | |
792 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
793 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
794 | unique=`for i in $$list; do \ | |
795 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
796 | done | \ | |
797 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
798 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
799 | mkid -fID $$unique | |
800 | tags: TAGS | |
801 | ||
802 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
803 | $(TAGS_FILES) $(LISP) | |
861 | ID: $(am__tagged_files) | |
862 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
863 | tags: tags-am | |
864 | TAGS: tags | |
865 | ||
866 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
804 | 867 | set x; \ |
805 | 868 | here=`pwd`; \ |
806 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
807 | unique=`for i in $$list; do \ | |
808 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
809 | done | \ | |
810 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
811 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
869 | $(am__define_uniq_tagged_files); \ | |
812 | 870 | shift; \ |
813 | 871 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
814 | 872 | test -n "$$unique" || unique=$$empty_fix; \ |
820 | 878 | $$unique; \ |
821 | 879 | fi; \ |
822 | 880 | fi |
823 | ctags: CTAGS | |
824 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
825 | $(TAGS_FILES) $(LISP) | |
826 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
827 | unique=`for i in $$list; do \ | |
828 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
829 | done | \ | |
830 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
831 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
881 | ctags: ctags-am | |
882 | ||
883 | CTAGS: ctags | |
884 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
885 | $(am__define_uniq_tagged_files); \ | |
832 | 886 | test -z "$(CTAGS_ARGS)$$unique" \ |
833 | 887 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
834 | 888 | $$unique |
837 | 891 | here=`$(am__cd) $(top_builddir) && pwd` \ |
838 | 892 | && $(am__cd) $(top_srcdir) \ |
839 | 893 | && gtags -i $(GTAGS_ARGS) "$$here" |
840 | ||
841 | cscopelist: $(HEADERS) $(SOURCES) $(LISP) | |
842 | list='$(SOURCES) $(HEADERS) $(LISP)'; \ | |
894 | cscopelist: cscopelist-am | |
895 | ||
896 | cscopelist-am: $(am__tagged_files) | |
897 | list='$(am__tagged_files)'; \ | |
843 | 898 | case "$(srcdir)" in \ |
844 | 899 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ |
845 | 900 | *) sdir=$(subdir)/$(srcdir) ;; \ |
1005 | 1060 | .MAKE: install-am install-data-am install-exec-am install-strip \ |
1006 | 1061 | uninstall-am |
1007 | 1062 | |
1008 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | |
1063 | .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ | |
1009 | 1064 | clean-libLTLIBRARIES clean-libtool clean-moduleLTLIBRARIES \ |
1010 | 1065 | clean-noinstLTLIBRARIES clean-noinstPROGRAMS \ |
1011 | clean-sbinPROGRAMS clean-ssbinPROGRAMS cscopelist ctags \ | |
1012 | distclean distclean-compile distclean-generic \ | |
1066 | clean-sbinPROGRAMS clean-ssbinPROGRAMS cscopelist-am ctags \ | |
1067 | ctags-am distclean distclean-compile distclean-generic \ | |
1013 | 1068 | distclean-libtool distclean-tags distdir dvi dvi-am html \ |
1014 | 1069 | html-am info info-am install install-am install-data \ |
1015 | 1070 | install-data-am install-data-hook install-dvi install-dvi-am \ |
1022 | 1077 | installcheck-am installdirs maintainer-clean \ |
1023 | 1078 | maintainer-clean-generic mostlyclean mostlyclean-compile \ |
1024 | 1079 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ |
1025 | tags uninstall uninstall-am uninstall-hook \ | |
1080 | tags tags-am uninstall uninstall-am uninstall-hook \ | |
1026 | 1081 | uninstall-includeHEADERS uninstall-libLTLIBRARIES \ |
1027 | 1082 | uninstall-moduleLTLIBRARIES uninstall-sbinPROGRAMS \ |
1028 | 1083 | uninstall-ssbinPROGRAMS |
414 | 414 | { |
415 | 415 | unsigned char key[EVP_MAX_KEY_LENGTH], iv[EVP_MAX_IV_LENGTH]; |
416 | 416 | unsigned int out_cumul_len = 0; |
417 | EVP_CIPHER_CTX ctx; | |
417 | EVP_CIPHER_CTX *ctx; | |
418 | 418 | int out_len = 0; |
419 | 419 | hxmc_t *out; |
420 | 420 | |
423 | 423 | (par->password == NULL) ? 0 : strlen(par->password), |
424 | 424 | 1, key, iv) <= 0) |
425 | 425 | return EHD_KEYDEC_OTHER; |
426 | ||
427 | out = HXmc_meminit(NULL, par->d_keysize + par->s_cipher->block_size); | |
428 | EVP_CIPHER_CTX_init(&ctx); | |
429 | EVP_DecryptInit_ex(&ctx, par->s_cipher, NULL, key, iv); | |
430 | EVP_DecryptUpdate(&ctx, signed_cast(unsigned char *, | |
426 | ctx = EVP_CIPHER_CTX_new(); | |
427 | if (ctx == NULL) | |
428 | return EHD_KEYDEC_OTHER; | |
429 | ||
430 | out = HXmc_meminit(NULL, par->d_keysize + EVP_CIPHER_block_size(par->s_cipher)); | |
431 | EVP_DecryptInit_ex(ctx, par->s_cipher, NULL, key, iv); | |
432 | EVP_DecryptUpdate(ctx, signed_cast(unsigned char *, | |
431 | 433 | &out[out_len]), &out_len, par->d_text, par->d_keysize); |
432 | 434 | out_cumul_len += out_len; |
433 | EVP_DecryptFinal_ex(&ctx, signed_cast(unsigned char *, | |
435 | EVP_DecryptFinal_ex(ctx, signed_cast(unsigned char *, | |
434 | 436 | &out[out_len]), &out_len); |
435 | 437 | out_cumul_len += out_len; |
436 | 438 | HXmc_setlen(&out, out_cumul_len); |
437 | EVP_CIPHER_CTX_cleanup(&ctx); | |
439 | EVP_CIPHER_CTX_free(ctx); | |
438 | 440 | |
439 | 441 | par->d_result = out; |
440 | 442 | return EHD_KEYDEC_SUCCESS; |
47 | 47 | |
48 | 48 | assert(format != NULL); |
49 | 49 | |
50 | va_start(args, format); | |
50 | 51 | if (!ehd_log_ft[EHD_LOGFT_NOSYSLOG]) { |
51 | va_start(args, format); | |
52 | 52 | va_copy(arg2, args); |
53 | 53 | vsyslog(LOG_AUTH | LOG_ERR, format, arg2); |
54 | 54 | va_end(arg2); |
71 | 71 | hxmc_t *object; |
72 | 72 | unsigned int no_update, ro_fallback; |
73 | 73 | bool is_cont, blkdev; |
74 | char *type; | |
74 | 75 | }; |
75 | 76 | |
76 | 77 | static unsigned int mtcr_debug; |
537 | 538 | mount_args[argk++] = "-t"; |
538 | 539 | mount_args[argk++] = opt->fstype; |
539 | 540 | } |
541 | if (opt->extra_opts == NULL) { | |
542 | opt->extra_opts = "helper=crypt"; | |
543 | } else if (*opt->extra_opts != '\0') { | |
544 | HXmc_strcat(&opt->extra_opts, ","); | |
545 | HXmc_strcat(&opt->extra_opts, "helper=crypt"); | |
546 | } | |
547 | ||
540 | 548 | if (opt->extra_opts != NULL) { |
541 | 549 | mount_args[argk++] = "-o"; |
542 | 550 | mount_args[argk++] = opt->extra_opts; |
590 | 598 | .help = "Do not update /etc/mtab"}, |
591 | 599 | {.sh = 'r', .type = HXTYPE_NONE, .ptr = &opt->ro_fallback, |
592 | 600 | .help = "(Option ignored)"}, |
601 | {.sh = 't', .type = HXTYPE_STRING, .ptr = &opt->type, | |
602 | .help = "(Option ignored)"}, | |
593 | 603 | {.sh = 'v', .type = HXTYPE_NONE, .ptr = &mtcr_debug, |
594 | 604 | .help = "Be verbose - enable debugging"}, |
595 | 605 | HXOPT_AUTOHELP, |
706 | 716 | */ |
707 | 717 | static int mtcr_umount(struct umount_options *opt) |
708 | 718 | { |
709 | const char *umount_args[3]; | |
719 | const char *umount_args[4]; | |
710 | 720 | int final_ret, ret, argk = 0; |
711 | 721 | struct ehd_mount_info mount_info; |
712 | 722 | char *mountpoint = NULL; |
739 | 749 | pmt_cmtab_remove(mountpoint); |
740 | 750 | |
741 | 751 | umount_args[argk++] = "umount"; |
752 | umount_args[argk++] = "-i"; | |
742 | 753 | umount_args[argk++] = mountpoint; |
743 | 754 | umount_args[argk] = NULL; |
744 | 755 | |
796 | 807 | |
797 | 808 | int main(int argc, const char **argv) |
798 | 809 | { |
799 | struct stat sb; | |
800 | 810 | int ret; |
801 | ||
802 | if (stat("/etc/mtab", &sb) == 0 && (sb.st_mode & S_IWUGO) == 0) | |
803 | fprintf(stderr, "NOTE: mount.crypt does not support utab " | |
804 | "(systems with no mtab or read-only mtab) yet. This " | |
805 | "means that you will temporarily need to call " | |
806 | "umount.crypt(8) rather than umount(8) to get crypto " | |
807 | "volumes unmounted.\n"); | |
808 | 811 | |
809 | 812 | ret = HX_init(); |
810 | 813 | if (ret <= 0) { |
616 | 616 | * no match was found, positive non-zero on success or negative non-zero on |
617 | 617 | * failure. |
618 | 618 | */ |
619 | static bool user_in_sgrp(const char *user, const char *grp, bool icase, | |
619 | static bool user_in_sgrp(const char *user, const char *search_grp, bool icase, | |
620 | 620 | bool regex) |
621 | 621 | { |
622 | struct group *gent; | |
623 | const char *const *wp; | |
624 | ||
625 | if ((gent = getgrnam(grp)) == NULL) { | |
626 | if (errno != 0) | |
627 | w4rn("getgrnam(\"%s\") failed: %s\n", | |
628 | grp, strerror(errno)); | |
622 | const struct group *gent; | |
623 | int i, ret, ngroups = 1; | |
624 | gid_t *grplist, grpbuf; | |
625 | ||
626 | ret = getgrouplist(user, -1, &grpbuf, &ngroups); | |
627 | if (ret == 0 || (ret == 1 && grpbuf == -1)) { | |
628 | /* No secondary groups. Cannot be a member, then. */ | |
629 | 629 | return false; |
630 | 630 | } |
631 | ||
632 | wp = const_cast2(const char *const *, gent->gr_mem); | |
633 | while (wp != NULL && *wp != NULL) { | |
631 | grplist = malloc(sizeof(gid_t) * ngroups); | |
632 | ret = getgrouplist(user, -1, grplist, &ngroups); | |
633 | if (ret < 0) { | |
634 | l0g("getgrouplist(%s) failed: %s\n", user, strerror(errno)); | |
635 | free(grplist); | |
636 | return false; | |
637 | } | |
638 | for (i = 0; i < ngroups; ++i) { | |
639 | if (grplist[i] == -1) | |
640 | continue; | |
641 | gent = getgrgid(grplist[i]); | |
642 | if (gent == NULL) | |
643 | continue; | |
634 | 644 | if (regex) { |
635 | if (pmt_strregmatch(user, *wp, icase) > 0) | |
636 | return true; | |
637 | } else if (icase && strcasecmp(*wp, user) == 0) { | |
638 | return true; | |
639 | } else if (strcmp(*wp, user) == 0) { | |
640 | return true; | |
645 | if (pmt_strregmatch(gent->gr_name, search_grp, icase) > 0) | |
646 | goto found; | |
647 | } else if (icase && strcasecmp(gent->gr_name, search_grp) == 0) { | |
648 | goto found; | |
649 | } else if (strcmp(gent->gr_name, search_grp) == 0) { | |
650 | goto found; | |
641 | 651 | } |
642 | ++wp; | |
643 | } | |
644 | ||
652 | } | |
653 | free(grplist); | |
645 | 654 | return false; |
655 | found: | |
656 | free(grplist); | |
657 | return true; | |
646 | 658 | } |
647 | 659 | |
648 | 660 | //----------------------------------------------------------------------------- |
1427 | 1439 | */ |
1428 | 1440 | {CMD_NFSMOUNT, "nfs", {"mount", "%(if %(OPTIONS),-o%(OPTIONS))", "-t%(FSTYPE)", "%(COMBOPATH)", "%(MNTPT)", NULL}}, |
1429 | 1441 | {CMD_NFSMOUNT, "nfs4"}, |
1430 | {CMD_LCLMOUNT, NULL, {"mount", "-p0", "%(if %(OPTIONS),-o%(OPTIONS))", "-t%(FSTYPE)", "%(VOLUME)", "%(MNTPT)", NULL}}, | |
1442 | {CMD_LCLMOUNT, NULL, {"mount", "%(if %(OPTIONS),-o%(OPTIONS))", "-t%(FSTYPE)", "%(VOLUME)", "%(MNTPT)", NULL}}, | |
1431 | 1443 | {CMD_CRYPTMOUNT, "crypt", {"mount", "-t", "crypt", "%(if %(CIPHER),-ocipher=%(CIPHER))", "%(if %(FSKEYCIPHER),-ofsk_cipher=%(FSKEYCIPHER))", "%(if %(FSKEYHASH),-ofsk_hash=%(FSKEYHASH))", "%(if %(FSKEYPATH),-okeyfile=%(FSKEYPATH))", "%(if %(OPTIONS),-o%(OPTIONS))", "%(VOLUME)", "%(MNTPT)", NULL}}, |
1432 | 1444 | {CMD_CRYPTMOUNT, "crypt_LUKS"}, |
1433 | 1445 | {CMD_CRYPTMOUNT, "crypto_LUKS"}, |
1434 | {CMD_CRYPTUMOUNT, "crypt", {"umount.crypt", "%(MNTPT)", NULL}}, | |
1446 | {CMD_CRYPTUMOUNT, "crypt", {"umount", "%(MNTPT)", NULL}}, | |
1435 | 1447 | {CMD_UMOUNT, NULL, {"umount", "%(MNTPT)", NULL}}, |
1436 | 1448 | {CMD_FSCK, NULL, {"fsck", "-p", "%(FSCKTARGET)", NULL}}, |
1437 | 1449 | {CMD_PMVARRUN, NULL, {"pmvarrun", "-u", "%(USER)", "-o", "%(OPERATION)", NULL}}, |