Imported Upstream version 0.7.4
Vincent Bernat
10 years ago
0 | 0.7.4 [2013-06-22 12:15:47 +0200]: | |
1 | ||
2 | - [1381217] bpf: on OpenBSD, invert the filter direction (Vincent Bernat) | |
3 | - [96b97fa] NEWS: add an entry for the use of `setproctitle()` (Vincent Bernat) | |
4 | - [f0d2157] compat: declare `setproctitle()` as a printf function (Vincent Bernat) | |
5 | - [19ce813] debian: build-depends on libbssd-dev (Vincent Bernat) | |
6 | - [e7103af] lldpd: when no `setproctitle()` available, don't count neighbors (Vincent Bernat) | |
7 | - [480f1c6] lldpd: count number of chassis to get number of neighbors (Vincent Bernat) | |
8 | - [25eb187] lldpd: don't call `lldpd_count_neighbors()` too many times (Vincent Bernat) | |
9 | - [66879d4] build: use libbsd if available, also use `setproctitle()` (Vincent Bernat) | |
10 | - [3f70e11] lldpcli: `configure system platform` to override platform description (Vincent Bernat) | |
11 | - [decaec0] lldpcli: `configure system description` to override chassis description (Vincent Bernat) | |
12 | - [994b337] lldpcli: split `conf.c` into `conf-system.c` and `conf-lldp.c`. (Vincent Bernat) | |
13 | - [48d0a4b] lldpcli: `configure system interface pattern` instead of `configure lldp iface-pattern` (Vincent Bernat) | |
14 | - [a3e0896] libevent: use GitHub git tree (Vincent Bernat) | |
15 | - [c11e397] debian: sync packaging with official Debian package (Vincent Bernat) | |
16 | - [e39f079] libevent: switch to patches-2.0 branch to get the appropriate automake fix (Vincent Bernat) | |
17 | - [8677ddc] git: ignore test-driver, generated by recent automake versions (Vincent Bernat) | |
18 | - [bea0d76] Fixed some boundary conditions in code that cleans remote ports on ttl expiry. (Roopa Prabhu) | |
19 | - [5aeda65] liblldpctl: fix infinite loop when user is reading fixed chunks (Pradosh Mohapatra) | |
20 | - [d823429] marshal: fix alignment issue when unserializing (Vincent Bernat) | |
21 | - [bea7031] log: fix memory leak when using a log handler (Vincent Bernat) | |
22 | - [a8da186] marshal: don't declare serialize/unserialize helper for string (Vincent Bernat) | |
23 | - [02cf035] lldpd: fix an alignment (non-)issue (Vincent Bernat) | |
24 | - [bd8a886] lldpcli: don't use an hack to pass the writer to watch callback (Vincent Bernat) | |
25 | - [985a4cb] marshal: provide type-specific serialization/unserialization functions (Vincent Bernat) | |
26 | - [aba549a] client: fix a memory leak when changing lldpd configuration (Vincent Bernat) | |
27 | - [93afd29] ctl: fix a memory leak when cleaning control socket (Vincent Bernat) | |
28 | - [e681c85] client: trigger interface refresh when updating interface pattern (Vincent Bernat) | |
29 | - [e26a25c] lib: fix a memory leak when modifying interface pattern (Vincent Bernat) | |
30 | - [0093777] lldpcli: document "configure lldp iface-pattern" in manual page (Vincent Bernat) | |
31 | - [7e516f1] lldpctl.h: document possibility to write iface-pattern (Vincent Bernat) | |
32 | - [346a0f6] lldpcli: Add support to set iface-pattern (roopa) | |
33 | - [0728cb8] sonmp: allow SONMP unittests to work without a global config (Vincent Bernat) | |
34 | - [ea481e3] man: document tx-hold (Vincent Bernat) | |
35 | - [cb5f739] man: tx-interval cannot be set per port (Vincent Bernat) | |
36 | - [c10302a] lldpd: Add tx_hold (roopa) | |
37 | - [5920dbf] lldpcli: don't rely on `fgetln()` providing a NULL-terminated string (Vincent Bernat) | |
38 | - [655145c] lldpcli: don't free input line (Vincent Bernat) | |
39 | - [d1dc456] lib: keep space for new values in `lldpctl_key_t` (Vincent Bernat) | |
40 | - [40116b4] debian: synchronize packaging with Debian (Vincent Bernat) | |
41 | - [e91ca9d] release: prepare 0.7.3 (Vincent Bernat) | |
42 | ||
0 | 43 | 0.7.3 [2013-05-09 00:05:36 +0200]: |
1 | 44 | |
2 | 45 | - [a1728b7] NEWS: add a word about Solaris support (Vincent Bernat) |
0 | # Makefile.in generated by automake 1.11.6 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.3 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
5 | # Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
45 | 44 | # This is usually added to MOSTLYCLEANFILES. |
46 | 45 | |
47 | 46 | VPATH = @srcdir@ |
48 | am__make_dryrun = \ | |
49 | { \ | |
50 | am__dry=no; \ | |
47 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
48 | am__make_running_with_option = \ | |
49 | case $${target_option-} in \ | |
50 | ?) ;; \ | |
51 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
52 | "target option '$${target_option-}' specified" >&2; \ | |
53 | exit 1;; \ | |
54 | esac; \ | |
55 | has_opt=no; \ | |
56 | sane_makeflags=$$MAKEFLAGS; \ | |
57 | if $(am__is_gnu_make); then \ | |
58 | sane_makeflags=$$MFLAGS; \ | |
59 | else \ | |
51 | 60 | case $$MAKEFLAGS in \ |
52 | 61 | *\\[\ \ ]*) \ |
53 | echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
54 | | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
55 | *) \ | |
56 | for am__flg in $$MAKEFLAGS; do \ | |
57 | case $$am__flg in \ | |
58 | *=*|--*) ;; \ | |
59 | *n*) am__dry=yes; break;; \ | |
60 | esac; \ | |
61 | done;; \ | |
62 | bs=\\; \ | |
63 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
64 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
62 | 65 | esac; \ |
63 | test $$am__dry = yes; \ | |
64 | } | |
66 | fi; \ | |
67 | skip_next=no; \ | |
68 | strip_trailopt () \ | |
69 | { \ | |
70 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
71 | }; \ | |
72 | for flg in $$sane_makeflags; do \ | |
73 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
74 | case $$flg in \ | |
75 | *=*|--*) continue;; \ | |
76 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
77 | -*I?*) strip_trailopt 'I';; \ | |
78 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
79 | -*O?*) strip_trailopt 'O';; \ | |
80 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
81 | -*l?*) strip_trailopt 'l';; \ | |
82 | -[dEDm]) skip_next=yes;; \ | |
83 | -[JT]) skip_next=yes;; \ | |
84 | esac; \ | |
85 | case $$flg in \ | |
86 | *$$target_option*) has_opt=yes; break;; \ | |
87 | esac; \ | |
88 | done; \ | |
89 | test $$has_opt = yes | |
90 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
91 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
65 | 92 | pkgdatadir = $(datadir)/@PACKAGE@ |
66 | 93 | pkgincludedir = $(includedir)/@PACKAGE@ |
67 | 94 | pkglibdir = $(libdir)/@PACKAGE@ |
80 | 107 | POST_UNINSTALL = : |
81 | 108 | build_triplet = @build@ |
82 | 109 | host_triplet = @host@ |
83 | DIST_COMMON = $(am__configure_deps) $(dist_doc_DATA) \ | |
84 | $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ | |
85 | $(srcdir)/config.h.in $(srcdir)/doxygen.am \ | |
86 | $(top_srcdir)/configure ChangeLog NEWS ar-lib compile \ | |
87 | config.guess config.sub depcomp install-sh ltmain.sh missing | |
110 | DIST_COMMON = $(srcdir)/doxygen.am $(srcdir)/Makefile.in \ | |
111 | $(srcdir)/Makefile.am $(top_srcdir)/configure \ | |
112 | $(am__configure_deps) $(srcdir)/config.h.in $(dist_doc_DATA) \ | |
113 | ChangeLog NEWS ar-lib compile config.guess config.sub depcomp \ | |
114 | install-sh missing ltmain.sh | |
88 | 115 | subdir = . |
89 | 116 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
90 | 117 | am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \ |
107 | 134 | CONFIG_HEADER = config.h |
108 | 135 | CONFIG_CLEAN_FILES = |
109 | 136 | CONFIG_CLEAN_VPATH_FILES = |
137 | AM_V_P = $(am__v_P_@AM_V@) | |
138 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
139 | am__v_P_0 = false | |
140 | am__v_P_1 = : | |
110 | 141 | AM_V_GEN = $(am__v_GEN_@AM_V@) |
111 | 142 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) |
112 | am__v_GEN_0 = @echo " GEN " $@; | |
143 | am__v_GEN_0 = @echo " GEN " $@; | |
144 | am__v_GEN_1 = | |
113 | 145 | AM_V_at = $(am__v_at_@AM_V@) |
114 | 146 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) |
115 | 147 | am__v_at_0 = @ |
148 | am__v_at_1 = | |
116 | 149 | SOURCES = |
117 | 150 | DIST_SOURCES = |
118 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | |
119 | html-recursive info-recursive install-data-recursive \ | |
120 | install-dvi-recursive install-exec-recursive \ | |
121 | install-html-recursive install-info-recursive \ | |
122 | install-pdf-recursive install-ps-recursive install-recursive \ | |
123 | installcheck-recursive installdirs-recursive pdf-recursive \ | |
124 | ps-recursive uninstall-recursive | |
151 | RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ | |
152 | ctags-recursive dvi-recursive html-recursive info-recursive \ | |
153 | install-data-recursive install-dvi-recursive \ | |
154 | install-exec-recursive install-html-recursive \ | |
155 | install-info-recursive install-pdf-recursive \ | |
156 | install-ps-recursive install-recursive installcheck-recursive \ | |
157 | installdirs-recursive pdf-recursive ps-recursive \ | |
158 | tags-recursive uninstall-recursive | |
125 | 159 | am__can_run_installinfo = \ |
126 | 160 | case $$AM_UPDATE_INFO_DIR in \ |
127 | 161 | n|no|NO) false;; \ |
158 | 192 | DATA = $(dist_doc_DATA) $(doc_DATA) |
159 | 193 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ |
160 | 194 | distclean-recursive maintainer-clean-recursive |
161 | AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ | |
162 | $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ | |
163 | distdir dist dist-all distcheck | |
195 | am__recursive_targets = \ | |
196 | $(RECURSIVE_TARGETS) \ | |
197 | $(RECURSIVE_CLEAN_TARGETS) \ | |
198 | $(am__extra_recursive_targets) | |
199 | AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ | |
200 | cscope distdir dist dist-all distcheck | |
201 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ | |
202 | $(LISP)config.h.in | |
203 | # Read a list of newline-separated strings from the standard input, | |
204 | # and print each of them once, without duplicates. Input order is | |
205 | # *not* preserved. | |
206 | am__uniquify_input = $(AWK) '\ | |
207 | BEGIN { nonempty = 0; } \ | |
208 | { items[$$0] = 1; nonempty = 1; } \ | |
209 | END { if (nonempty) { for (i in items) print i; }; } \ | |
210 | ' | |
211 | # Make sure the list of sources is unique. This is necessary because, | |
212 | # e.g., the same source file might be shared among _SOURCES variables | |
213 | # for different programs/libraries. | |
214 | am__define_uniq_tagged_files = \ | |
215 | list='$(am__tagged_files)'; \ | |
216 | unique=`for i in $$list; do \ | |
217 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
218 | done | $(am__uniquify_input)` | |
164 | 219 | ETAGS = etags |
165 | 220 | CTAGS = ctags |
221 | CSCOPE = cscope | |
166 | 222 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
167 | 223 | distdir = $(PACKAGE)-$(VERSION) |
168 | 224 | top_distdir = $(distdir) |
172 | 228 | && rm -rf "$(distdir)" \ |
173 | 229 | || { sleep 5 && rm -rf "$(distdir)"; }; \ |
174 | 230 | else :; fi |
231 | am__post_remove_distdir = $(am__remove_distdir) | |
175 | 232 | am__relativize = \ |
176 | 233 | dir0=`pwd`; \ |
177 | 234 | sed_first='s,^\([^/]*\)/.*$$,\1,'; \ |
199 | 256 | reldir="$$dir2" |
200 | 257 | DIST_ARCHIVES = $(distdir).tar.gz |
201 | 258 | GZIP_ENV = --best |
259 | DIST_TARGETS = dist-gzip | |
202 | 260 | distuninstallcheck_listfiles = find . -type f -print |
203 | 261 | am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ |
204 | 262 | | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' |
504 | 562 | dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir) |
505 | 563 | |
506 | 564 | # This directory's subdirectories are mostly independent; you can cd |
507 | # into them and run `make' without going through this Makefile. | |
508 | # To change the values of `make' variables: instead of editing Makefiles, | |
509 | # (1) if the variable is set in `config.status', edit `config.status' | |
510 | # (which will cause the Makefiles to be regenerated when you run `make'); | |
511 | # (2) otherwise, pass the desired values on the `make' command line. | |
512 | $(RECURSIVE_TARGETS): | |
513 | @fail= failcom='exit 1'; \ | |
514 | for f in x $$MAKEFLAGS; do \ | |
515 | case $$f in \ | |
516 | *=* | --[!k]*);; \ | |
517 | *k*) failcom='fail=yes';; \ | |
518 | esac; \ | |
519 | done; \ | |
565 | # into them and run 'make' without going through this Makefile. | |
566 | # To change the values of 'make' variables: instead of editing Makefiles, | |
567 | # (1) if the variable is set in 'config.status', edit 'config.status' | |
568 | # (which will cause the Makefiles to be regenerated when you run 'make'); | |
569 | # (2) otherwise, pass the desired values on the 'make' command line. | |
570 | $(am__recursive_targets): | |
571 | @fail=; \ | |
572 | if $(am__make_keepgoing); then \ | |
573 | failcom='fail=yes'; \ | |
574 | else \ | |
575 | failcom='exit 1'; \ | |
576 | fi; \ | |
520 | 577 | dot_seen=no; \ |
521 | 578 | target=`echo $@ | sed s/-recursive//`; \ |
522 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
579 | case "$@" in \ | |
580 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
581 | *) list='$(SUBDIRS)' ;; \ | |
582 | esac; \ | |
583 | for subdir in $$list; do \ | |
523 | 584 | echo "Making $$target in $$subdir"; \ |
524 | 585 | if test "$$subdir" = "."; then \ |
525 | 586 | dot_seen=yes; \ |
534 | 595 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
535 | 596 | fi; test -z "$$fail" |
536 | 597 | |
537 | $(RECURSIVE_CLEAN_TARGETS): | |
538 | @fail= failcom='exit 1'; \ | |
539 | for f in x $$MAKEFLAGS; do \ | |
540 | case $$f in \ | |
541 | *=* | --[!k]*);; \ | |
542 | *k*) failcom='fail=yes';; \ | |
543 | esac; \ | |
544 | done; \ | |
545 | dot_seen=no; \ | |
546 | case "$@" in \ | |
547 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
548 | *) list='$(SUBDIRS)' ;; \ | |
549 | esac; \ | |
550 | rev=''; for subdir in $$list; do \ | |
551 | if test "$$subdir" = "."; then :; else \ | |
552 | rev="$$subdir $$rev"; \ | |
553 | fi; \ | |
554 | done; \ | |
555 | rev="$$rev ."; \ | |
556 | target=`echo $@ | sed s/-recursive//`; \ | |
557 | for subdir in $$rev; do \ | |
558 | echo "Making $$target in $$subdir"; \ | |
559 | if test "$$subdir" = "."; then \ | |
560 | local_target="$$target-am"; \ | |
561 | else \ | |
562 | local_target="$$target"; \ | |
563 | fi; \ | |
564 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
565 | || eval $$failcom; \ | |
566 | done && test -z "$$fail" | |
567 | tags-recursive: | |
568 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
569 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
570 | done | |
571 | ctags-recursive: | |
572 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
573 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |
574 | done | |
575 | ||
576 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
577 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
578 | unique=`for i in $$list; do \ | |
579 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
580 | done | \ | |
581 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
582 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
583 | mkid -fID $$unique | |
584 | tags: TAGS | |
585 | ||
586 | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
587 | $(TAGS_FILES) $(LISP) | |
598 | ID: $(am__tagged_files) | |
599 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
600 | tags: tags-recursive | |
601 | TAGS: tags | |
602 | ||
603 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
588 | 604 | set x; \ |
589 | 605 | here=`pwd`; \ |
590 | 606 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ |
600 | 616 | set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ |
601 | 617 | fi; \ |
602 | 618 | done; \ |
603 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
604 | unique=`for i in $$list; do \ | |
605 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
606 | done | \ | |
607 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
608 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
619 | $(am__define_uniq_tagged_files); \ | |
609 | 620 | shift; \ |
610 | 621 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
611 | 622 | test -n "$$unique" || unique=$$empty_fix; \ |
617 | 628 | $$unique; \ |
618 | 629 | fi; \ |
619 | 630 | fi |
620 | ctags: CTAGS | |
621 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
622 | $(TAGS_FILES) $(LISP) | |
623 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
624 | unique=`for i in $$list; do \ | |
625 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
626 | done | \ | |
627 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
628 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
631 | ctags: ctags-recursive | |
632 | ||
633 | CTAGS: ctags | |
634 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
635 | $(am__define_uniq_tagged_files); \ | |
629 | 636 | test -z "$(CTAGS_ARGS)$$unique" \ |
630 | 637 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
631 | 638 | $$unique |
634 | 641 | here=`$(am__cd) $(top_builddir) && pwd` \ |
635 | 642 | && $(am__cd) $(top_srcdir) \ |
636 | 643 | && gtags -i $(GTAGS_ARGS) "$$here" |
644 | cscope: cscope.files | |
645 | test ! -s cscope.files \ | |
646 | || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) | |
647 | clean-cscope: | |
648 | -rm -f cscope.files | |
649 | cscope.files: clean-cscope cscopelist | |
650 | cscopelist: cscopelist-recursive | |
651 | ||
652 | cscopelist-am: $(am__tagged_files) | |
653 | list='$(am__tagged_files)'; \ | |
654 | case "$(srcdir)" in \ | |
655 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
656 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
657 | esac; \ | |
658 | for i in $$list; do \ | |
659 | if test -f "$$i"; then \ | |
660 | echo "$(subdir)/$$i"; \ | |
661 | else \ | |
662 | echo "$$sdir/$$i"; \ | |
663 | fi; \ | |
664 | done >> $(top_builddir)/cscope.files | |
637 | 665 | |
638 | 666 | distclean-tags: |
639 | 667 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
668 | -rm -f cscope.out cscope.in.out cscope.po.out cscope.files | |
640 | 669 | |
641 | 670 | distdir: $(DISTFILES) |
642 | 671 | $(am__remove_distdir) |
707 | 736 | || chmod -R a+r "$(distdir)" |
708 | 737 | dist-gzip: distdir |
709 | 738 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
710 | $(am__remove_distdir) | |
739 | $(am__post_remove_distdir) | |
711 | 740 | |
712 | 741 | dist-bzip2: distdir |
713 | 742 | tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 |
714 | $(am__remove_distdir) | |
743 | $(am__post_remove_distdir) | |
715 | 744 | |
716 | 745 | dist-lzip: distdir |
717 | 746 | tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz |
718 | $(am__remove_distdir) | |
719 | ||
720 | dist-lzma: distdir | |
721 | tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma | |
722 | $(am__remove_distdir) | |
747 | $(am__post_remove_distdir) | |
723 | 748 | |
724 | 749 | dist-xz: distdir |
725 | 750 | tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz |
726 | $(am__remove_distdir) | |
751 | $(am__post_remove_distdir) | |
727 | 752 | |
728 | 753 | dist-tarZ: distdir |
729 | 754 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
730 | $(am__remove_distdir) | |
755 | $(am__post_remove_distdir) | |
731 | 756 | |
732 | 757 | dist-shar: distdir |
733 | 758 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
734 | $(am__remove_distdir) | |
759 | $(am__post_remove_distdir) | |
735 | 760 | |
736 | 761 | dist-zip: distdir |
737 | 762 | -rm -f $(distdir).zip |
738 | 763 | zip -rq $(distdir).zip $(distdir) |
739 | $(am__remove_distdir) | |
740 | ||
741 | dist dist-all: distdir | |
742 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
743 | $(am__remove_distdir) | |
764 | $(am__post_remove_distdir) | |
765 | ||
766 | dist dist-all: | |
767 | $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' | |
768 | $(am__post_remove_distdir) | |
744 | 769 | |
745 | 770 | # This target untars the dist file and tries a VPATH configuration. Then |
746 | 771 | # it guarantees that the distribution is self-contained by making another |
751 | 776 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ |
752 | 777 | *.tar.bz2*) \ |
753 | 778 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
754 | *.tar.lzma*) \ | |
755 | lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ | |
756 | 779 | *.tar.lz*) \ |
757 | 780 | lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ |
758 | 781 | *.tar.xz*) \ |
764 | 787 | *.zip*) \ |
765 | 788 | unzip $(distdir).zip ;;\ |
766 | 789 | esac |
767 | chmod -R a-w $(distdir); chmod u+w $(distdir) | |
768 | mkdir $(distdir)/_build | |
769 | mkdir $(distdir)/_inst | |
790 | chmod -R a-w $(distdir) | |
791 | chmod u+w $(distdir) | |
792 | mkdir $(distdir)/_build $(distdir)/_inst | |
770 | 793 | chmod a-w $(distdir) |
771 | 794 | test -d $(distdir)/_build || exit 0; \ |
772 | 795 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ |
798 | 821 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ |
799 | 822 | && cd "$$am__cwd" \ |
800 | 823 | || exit 1 |
801 | $(am__remove_distdir) | |
824 | $(am__post_remove_distdir) | |
802 | 825 | @(echo "$(distdir) archives ready for distribution: "; \ |
803 | 826 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
804 | 827 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
938 | 961 | |
939 | 962 | uninstall-am: uninstall-dist_docDATA uninstall-docDATA |
940 | 963 | |
941 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ | |
942 | ctags-recursive install-am install-strip tags-recursive | |
943 | ||
944 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | |
945 | all all-am am--refresh check check-am clean clean-generic \ | |
946 | clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ | |
947 | dist-gzip dist-hook dist-lzip dist-lzma dist-shar dist-tarZ \ | |
948 | dist-xz dist-zip distcheck distclean distclean-generic \ | |
949 | distclean-hdr distclean-libtool distclean-tags distcleancheck \ | |
950 | distdir distuninstallcheck dvi dvi-am html html-am info \ | |
951 | info-am install install-am install-data install-data-am \ | |
952 | install-dist_docDATA install-docDATA install-dvi \ | |
953 | install-dvi-am install-exec install-exec-am install-html \ | |
954 | install-html-am install-info install-info-am install-man \ | |
955 | install-pdf install-pdf-am install-ps install-ps-am \ | |
956 | install-strip installcheck installcheck-am installdirs \ | |
957 | installdirs-am maintainer-clean maintainer-clean-generic \ | |
958 | mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ | |
959 | ps ps-am tags tags-recursive uninstall uninstall-am \ | |
960 | uninstall-dist_docDATA uninstall-docDATA | |
964 | .MAKE: $(am__recursive_targets) all install-am install-strip | |
965 | ||
966 | .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ | |
967 | am--refresh check check-am clean clean-cscope clean-generic \ | |
968 | clean-libtool cscope cscopelist-am ctags ctags-am dist \ | |
969 | dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \ | |
970 | dist-tarZ dist-xz dist-zip distcheck distclean \ | |
971 | distclean-generic distclean-hdr distclean-libtool \ | |
972 | distclean-tags distcleancheck distdir distuninstallcheck dvi \ | |
973 | dvi-am html html-am info info-am install install-am \ | |
974 | install-data install-data-am install-dist_docDATA \ | |
975 | install-docDATA install-dvi install-dvi-am install-exec \ | |
976 | install-exec-am install-html install-html-am install-info \ | |
977 | install-info-am install-man install-pdf install-pdf-am \ | |
978 | install-ps install-ps-am install-strip installcheck \ | |
979 | installcheck-am installdirs installdirs-am maintainer-clean \ | |
980 | maintainer-clean-generic mostlyclean mostlyclean-generic \ | |
981 | mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ | |
982 | uninstall-am uninstall-dist_docDATA uninstall-docDATA | |
961 | 983 | |
962 | 984 | |
963 | 985 | @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps |
0 | lldpd (0.7.4) | |
1 | * Fixes: | |
2 | + Segfault in lldpcli. | |
3 | + Memory leak in liblldpctl when using a custom log handler. | |
4 | + Fix some unaligned memory accesses. | |
5 | + Fix frame reception on OpenBSD. | |
6 | * Features: | |
7 | + Allow to configure hold value from lldpcli (and hence the TTL). | |
8 | + Allow to configure pattern for valid interfaces from lldpcli. | |
9 | + Allow to override system description from lldpcli. | |
10 | + Display the neighbor connected as the process title (or the | |
11 | number of connected neighbors). | |
12 | ||
0 | 13 | lldpd (0.7.3) |
1 | 14 | * Features: |
2 | 15 | + DragonFly BSD support. |
0 | # generated automatically by aclocal 1.11.6 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
3 | # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, | |
4 | # Inc. | |
0 | # generated automatically by aclocal 1.13.3 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
3 | ||
5 | 4 | # This file is free software; the Free Software Foundation |
6 | 5 | # gives unlimited permission to copy and/or distribute it, |
7 | 6 | # with or without modifications, as long as this notice is preserved. |
11 | 10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
12 | 11 | # PARTICULAR PURPOSE. |
13 | 12 | |
13 | m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | |
14 | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
15 | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
16 | 16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, |
17 | 17 | [m4_warning([this file was generated for autoconf 2.69. |
18 | 18 | You have another version of autoconf. It may work, but is not guaranteed to. |
19 | 19 | If you have problems, you may need to regenerate the build system entirely. |
20 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) | |
20 | To do so, use the procedure documented by the package, typically 'autoreconf'.])]) | |
21 | 21 | |
22 | 22 | # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
23 | 23 | # serial 1 (pkg-config-0.24) |
179 | 179 | fi[]dnl |
180 | 180 | ])# PKG_CHECK_MODULES |
181 | 181 | |
182 | # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software | |
183 | # Foundation, Inc. | |
184 | # | |
185 | # This file is free software; the Free Software Foundation | |
186 | # gives unlimited permission to copy and/or distribute it, | |
187 | # with or without modifications, as long as this notice is preserved. | |
188 | ||
189 | # serial 1 | |
182 | # Copyright (C) 2002-2013 Free Software Foundation, Inc. | |
183 | # | |
184 | # This file is free software; the Free Software Foundation | |
185 | # gives unlimited permission to copy and/or distribute it, | |
186 | # with or without modifications, as long as this notice is preserved. | |
190 | 187 | |
191 | 188 | # AM_AUTOMAKE_VERSION(VERSION) |
192 | 189 | # ---------------------------- |
194 | 191 | # generated from the m4 files accompanying Automake X.Y. |
195 | 192 | # (This private macro should not be called outside this file.) |
196 | 193 | AC_DEFUN([AM_AUTOMAKE_VERSION], |
197 | [am__api_version='1.11' | |
194 | [am__api_version='1.13' | |
198 | 195 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
199 | 196 | dnl require some minimum version. Point them to the right macro. |
200 | m4_if([$1], [1.11.6], [], | |
197 | m4_if([$1], [1.13.3], [], | |
201 | 198 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
202 | 199 | ]) |
203 | 200 | |
213 | 210 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
214 | 211 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
215 | 212 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
216 | [AM_AUTOMAKE_VERSION([1.11.6])dnl | |
213 | [AM_AUTOMAKE_VERSION([1.13.3])dnl | |
217 | 214 | m4_ifndef([AC_AUTOCONF_VERSION], |
218 | 215 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
219 | 216 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
220 | 217 | |
221 | # Copyright (C) 2011 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 1 | |
218 | # Copyright (C) 2011-2013 Free Software Foundation, Inc. | |
219 | # | |
220 | # This file is free software; the Free Software Foundation | |
221 | # gives unlimited permission to copy and/or distribute it, | |
222 | # with or without modifications, as long as this notice is preserved. | |
228 | 223 | |
229 | 224 | # AM_PROG_AR([ACT-IF-FAIL]) |
230 | 225 | # ------------------------- |
281 | 276 | |
282 | 277 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
283 | 278 | |
284 | # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. | |
285 | # | |
286 | # This file is free software; the Free Software Foundation | |
287 | # gives unlimited permission to copy and/or distribute it, | |
288 | # with or without modifications, as long as this notice is preserved. | |
289 | ||
290 | # serial 1 | |
279 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
280 | # | |
281 | # This file is free software; the Free Software Foundation | |
282 | # gives unlimited permission to copy and/or distribute it, | |
283 | # with or without modifications, as long as this notice is preserved. | |
291 | 284 | |
292 | 285 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
293 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
294 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
286 | # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to | |
287 | # '$srcdir', '$srcdir/..', or '$srcdir/../..'. | |
295 | 288 | # |
296 | 289 | # Of course, Automake must honor this variable whenever it calls a |
297 | 290 | # tool from the auxiliary directory. The problem is that $srcdir (and |
310 | 303 | # |
311 | 304 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
312 | 305 | # are both prefixed by $srcdir. In an in-source build this is usually |
313 | # harmless because $srcdir is `.', but things will broke when you | |
306 | # harmless because $srcdir is '.', but things will broke when you | |
314 | 307 | # start a VPATH build or use an absolute $srcdir. |
315 | 308 | # |
316 | 309 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
336 | 329 | |
337 | 330 | # AM_CONDITIONAL -*- Autoconf -*- |
338 | 331 | |
339 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 | |
340 | # Free Software Foundation, Inc. | |
341 | # | |
342 | # This file is free software; the Free Software Foundation | |
343 | # gives unlimited permission to copy and/or distribute it, | |
344 | # with or without modifications, as long as this notice is preserved. | |
345 | ||
346 | # serial 9 | |
332 | # Copyright (C) 1997-2013 Free Software Foundation, Inc. | |
333 | # | |
334 | # This file is free software; the Free Software Foundation | |
335 | # gives unlimited permission to copy and/or distribute it, | |
336 | # with or without modifications, as long as this notice is preserved. | |
347 | 337 | |
348 | 338 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
349 | 339 | # ------------------------------------- |
350 | 340 | # Define a conditional. |
351 | 341 | AC_DEFUN([AM_CONDITIONAL], |
352 | [AC_PREREQ(2.52)dnl | |
353 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
354 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
342 | [AC_PREREQ([2.52])dnl | |
343 | m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
344 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
355 | 345 | AC_SUBST([$1_TRUE])dnl |
356 | 346 | AC_SUBST([$1_FALSE])dnl |
357 | 347 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl |
370 | 360 | Usually this means the macro was only invoked conditionally.]]) |
371 | 361 | fi])]) |
372 | 362 | |
373 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, | |
374 | # 2010, 2011 Free Software Foundation, Inc. | |
375 | # | |
376 | # This file is free software; the Free Software Foundation | |
377 | # gives unlimited permission to copy and/or distribute it, | |
378 | # with or without modifications, as long as this notice is preserved. | |
379 | ||
380 | # serial 12 | |
381 | ||
382 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
363 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
364 | # | |
365 | # This file is free software; the Free Software Foundation | |
366 | # gives unlimited permission to copy and/or distribute it, | |
367 | # with or without modifications, as long as this notice is preserved. | |
368 | ||
369 | ||
370 | # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be | |
383 | 371 | # written in clear, in which case automake, when reading aclocal.m4, |
384 | 372 | # will think it sees a *use*, and therefore will trigger all it's |
385 | 373 | # C support machinery. Also note that it means that autoscan, seeing |
389 | 377 | # _AM_DEPENDENCIES(NAME) |
390 | 378 | # ---------------------- |
391 | 379 | # See how the compiler implements dependency checking. |
392 | # NAME is "CC", "CXX", "GCJ", or "OBJC". | |
380 | # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". | |
393 | 381 | # We try a few techniques and use that to set a single cache variable. |
394 | 382 | # |
395 | 383 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
402 | 390 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
403 | 391 | AC_REQUIRE([AM_DEP_TRACK])dnl |
404 | 392 | |
405 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | |
406 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | |
407 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
408 | [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
409 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
410 | [depcc="$$1" am_compiler_list=]) | |
393 | m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], | |
394 | [$1], [CXX], [depcc="$CXX" am_compiler_list=], | |
395 | [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
396 | [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], | |
397 | [$1], [UPC], [depcc="$UPC" am_compiler_list=], | |
398 | [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
399 | [depcc="$$1" am_compiler_list=]) | |
411 | 400 | |
412 | 401 | AC_CACHE_CHECK([dependency style of $depcc], |
413 | 402 | [am_cv_$1_dependencies_compiler_type], |
415 | 404 | # We make a subdir and do the tests there. Otherwise we can end up |
416 | 405 | # making bogus files that we don't know about and never remove. For |
417 | 406 | # instance it was reported that on HP-UX the gcc test will end up |
418 | # making a dummy file named `D' -- because `-MD' means `put the output | |
419 | # in D'. | |
407 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
408 | # in D". | |
420 | 409 | rm -rf conftest.dir |
421 | 410 | mkdir conftest.dir |
422 | 411 | # Copy depcomp to subdir because otherwise we won't find it if we're |
456 | 445 | : > sub/conftest.c |
457 | 446 | for i in 1 2 3 4 5 6; do |
458 | 447 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
459 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
460 | # Solaris 8's {/usr,}/bin/sh. | |
461 | touch sub/conftst$i.h | |
448 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
449 | # Solaris 10 /bin/sh. | |
450 | echo '/* dummy */' > sub/conftst$i.h | |
462 | 451 | done |
463 | 452 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
464 | 453 | |
465 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
454 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
466 | 455 | # mode. It turns out that the SunPro C++ compiler does not properly |
467 | # handle `-M -o', and we need to detect this. Also, some Intel | |
468 | # versions had trouble with output in subdirs | |
456 | # handle '-M -o', and we need to detect this. Also, some Intel | |
457 | # versions had trouble with output in subdirs. | |
469 | 458 | am__obj=sub/conftest.${OBJEXT-o} |
470 | 459 | am__minus_obj="-o $am__obj" |
471 | 460 | case $depmode in |
474 | 463 | test "$am__universal" = false || continue |
475 | 464 | ;; |
476 | 465 | nosideeffect) |
477 | # after this tag, mechanisms are not by side-effect, so they'll | |
478 | # only be used when explicitly requested | |
466 | # After this tag, mechanisms are not by side-effect, so they'll | |
467 | # only be used when explicitly requested. | |
479 | 468 | if test "x$enable_dependency_tracking" = xyes; then |
480 | 469 | continue |
481 | 470 | else |
483 | 472 | fi |
484 | 473 | ;; |
485 | 474 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
486 | # This compiler won't grok `-c -o', but also, the minuso test has | |
475 | # This compiler won't grok '-c -o', but also, the minuso test has | |
487 | 476 | # not run yet. These depmodes are late enough in the game, and |
488 | 477 | # so weak that their functioning should not be impacted. |
489 | 478 | am__obj=conftest.${OBJEXT-o} |
531 | 520 | # AM_SET_DEPDIR |
532 | 521 | # ------------- |
533 | 522 | # Choose a directory name for dependency files. |
534 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | |
523 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES. | |
535 | 524 | AC_DEFUN([AM_SET_DEPDIR], |
536 | 525 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
537 | 526 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
541 | 530 | # AM_DEP_TRACK |
542 | 531 | # ------------ |
543 | 532 | AC_DEFUN([AM_DEP_TRACK], |
544 | [AC_ARG_ENABLE(dependency-tracking, | |
545 | [ --disable-dependency-tracking speeds up one-time build | |
546 | --enable-dependency-tracking do not reject slow dependency extractors]) | |
533 | [AC_ARG_ENABLE([dependency-tracking], [dnl | |
534 | AS_HELP_STRING( | |
535 | [--enable-dependency-tracking], | |
536 | [do not reject slow dependency extractors]) | |
537 | AS_HELP_STRING( | |
538 | [--disable-dependency-tracking], | |
539 | [speeds up one-time build])]) | |
547 | 540 | if test "x$enable_dependency_tracking" != xno; then |
548 | 541 | am_depcomp="$ac_aux_dir/depcomp" |
549 | 542 | AMDEPBACKSLASH='\' |
558 | 551 | |
559 | 552 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
560 | 553 | |
561 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
562 | # Free Software Foundation, Inc. | |
563 | # | |
564 | # This file is free software; the Free Software Foundation | |
565 | # gives unlimited permission to copy and/or distribute it, | |
566 | # with or without modifications, as long as this notice is preserved. | |
567 | ||
568 | #serial 5 | |
554 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
555 | # | |
556 | # This file is free software; the Free Software Foundation | |
557 | # gives unlimited permission to copy and/or distribute it, | |
558 | # with or without modifications, as long as this notice is preserved. | |
559 | ||
569 | 560 | |
570 | 561 | # _AM_OUTPUT_DEPENDENCY_COMMANDS |
571 | 562 | # ------------------------------ |
572 | 563 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
573 | 564 | [{ |
574 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
565 | # Older Autoconf quotes --file arguments for eval, but not when files | |
575 | 566 | # are listed without --file. Let's play safe and only enable the eval |
576 | 567 | # if we detect the quoting. |
577 | 568 | case $CONFIG_FILES in |
584 | 575 | # Strip MF so we end up with the name of the file. |
585 | 576 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
586 | 577 | # Check whether this is an Automake generated Makefile or not. |
587 | # We used to match only the files named `Makefile.in', but | |
578 | # We used to match only the files named 'Makefile.in', but | |
588 | 579 | # some people rename them; so instead we look at the file content. |
589 | 580 | # Grep'ing the first line is not enough: some people post-process |
590 | 581 | # each Makefile.in and add a new line on top of each file to say so. |
596 | 587 | continue |
597 | 588 | fi |
598 | 589 | # Extract the definition of DEPDIR, am__include, and am__quote |
599 | # from the Makefile without running `make'. | |
590 | # from the Makefile without running 'make'. | |
600 | 591 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
601 | 592 | test -z "$DEPDIR" && continue |
602 | 593 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
603 | test -z "am__include" && continue | |
594 | test -z "$am__include" && continue | |
604 | 595 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
605 | # When using ansi2knr, U may be empty or an underscore; expand it | |
606 | U=`sed -n 's/^U = //p' < "$mf"` | |
607 | 596 | # Find all dependency output files, they are included files with |
608 | 597 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
609 | 598 | # simplest approach to changing $(DEPDIR) to its actual value in the |
610 | 599 | # expansion. |
611 | 600 | for file in `sed -n " |
612 | 601 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
613 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
602 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
614 | 603 | # Make sure the directory exists. |
615 | 604 | test -f "$dirpart/$file" && continue |
616 | 605 | fdir=`AS_DIRNAME(["$file"])` |
628 | 617 | # This macro should only be invoked once -- use via AC_REQUIRE. |
629 | 618 | # |
630 | 619 | # This code is only required when automatic dependency tracking |
631 | # is enabled. FIXME. This creates each `.P' file that we will | |
620 | # is enabled. FIXME. This creates each '.P' file that we will | |
632 | 621 | # need in order to bootstrap the dependency handling code. |
633 | 622 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
634 | 623 | [AC_CONFIG_COMMANDS([depfiles], |
638 | 627 | |
639 | 628 | # Do all the work for Automake. -*- Autoconf -*- |
640 | 629 | |
641 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
642 | # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. | |
643 | # | |
644 | # This file is free software; the Free Software Foundation | |
645 | # gives unlimited permission to copy and/or distribute it, | |
646 | # with or without modifications, as long as this notice is preserved. | |
647 | ||
648 | # serial 16 | |
630 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
631 | # | |
632 | # This file is free software; the Free Software Foundation | |
633 | # gives unlimited permission to copy and/or distribute it, | |
634 | # with or without modifications, as long as this notice is preserved. | |
649 | 635 | |
650 | 636 | # This macro actually does too much. Some checks are only needed if |
651 | 637 | # your package does certain things. But this isn't really a big deal. |
662 | 648 | # arguments mandatory, and then we can depend on a new Autoconf |
663 | 649 | # release and drop the old call support. |
664 | 650 | AC_DEFUN([AM_INIT_AUTOMAKE], |
665 | [AC_PREREQ([2.62])dnl | |
651 | [AC_PREREQ([2.65])dnl | |
666 | 652 | dnl Autoconf wants to disallow AM_ names. We explicitly allow |
667 | 653 | dnl the ones we care about. |
668 | 654 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
691 | 677 | # Define the identity of the package. |
692 | 678 | dnl Distinguish between old-style and new-style calls. |
693 | 679 | m4_ifval([$2], |
694 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
680 | [AC_DIAGNOSE([obsolete], | |
681 | [$0: two- and three-arguments forms are deprecated.]) | |
682 | m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
695 | 683 | AC_SUBST([PACKAGE], [$1])dnl |
696 | 684 | AC_SUBST([VERSION], [$2])], |
697 | 685 | [_AM_SET_OPTIONS([$1])dnl |
698 | 686 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
699 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
687 | m4_if( | |
688 | m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), | |
689 | [ok:ok],, | |
700 | 690 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
701 | 691 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
702 | 692 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
703 | 693 | |
704 | 694 | _AM_IF_OPTION([no-define],, |
705 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
706 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | |
695 | [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) | |
696 | AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl | |
707 | 697 | |
708 | 698 | # Some tools Automake needs. |
709 | 699 | AC_REQUIRE([AM_SANITY_CHECK])dnl |
710 | 700 | AC_REQUIRE([AC_ARG_PROGRAM])dnl |
711 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | |
712 | AM_MISSING_PROG(AUTOCONF, autoconf) | |
713 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
714 | AM_MISSING_PROG(AUTOHEADER, autoheader) | |
715 | AM_MISSING_PROG(MAKEINFO, makeinfo) | |
701 | AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) | |
702 | AM_MISSING_PROG([AUTOCONF], [autoconf]) | |
703 | AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) | |
704 | AM_MISSING_PROG([AUTOHEADER], [autoheader]) | |
705 | AM_MISSING_PROG([MAKEINFO], [makeinfo]) | |
716 | 706 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
717 | 707 | AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
718 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | |
708 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
709 | # For better backward compatibility. To be removed once Automake 1.9.x | |
710 | # dies out for good. For more background, see: | |
711 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
712 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
713 | AC_SUBST([mkdir_p], ['$(MKDIR_P)']) | |
719 | 714 | # We need awk for the "check" target. The system "awk" is bad on |
720 | 715 | # some platforms. |
721 | 716 | AC_REQUIRE([AC_PROG_AWK])dnl |
726 | 721 | [_AM_PROG_TAR([v7])])]) |
727 | 722 | _AM_IF_OPTION([no-dependencies],, |
728 | 723 | [AC_PROVIDE_IFELSE([AC_PROG_CC], |
729 | [_AM_DEPENDENCIES(CC)], | |
730 | [define([AC_PROG_CC], | |
731 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
724 | [_AM_DEPENDENCIES([CC])], | |
725 | [m4_define([AC_PROG_CC], | |
726 | m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl | |
732 | 727 | AC_PROVIDE_IFELSE([AC_PROG_CXX], |
733 | [_AM_DEPENDENCIES(CXX)], | |
734 | [define([AC_PROG_CXX], | |
735 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
728 | [_AM_DEPENDENCIES([CXX])], | |
729 | [m4_define([AC_PROG_CXX], | |
730 | m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl | |
736 | 731 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
737 | [_AM_DEPENDENCIES(OBJC)], | |
738 | [define([AC_PROG_OBJC], | |
739 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
740 | ]) | |
741 | _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
742 | dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | |
743 | dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
744 | dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
732 | [_AM_DEPENDENCIES([OBJC])], | |
733 | [m4_define([AC_PROG_OBJC], | |
734 | m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl | |
735 | AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |
736 | [_AM_DEPENDENCIES([OBJCXX])], | |
737 | [m4_define([AC_PROG_OBJCXX], | |
738 | m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl | |
739 | ]) | |
740 | AC_REQUIRE([AM_SILENT_RULES])dnl | |
741 | dnl The testsuite driver may need to know about EXEEXT, so add the | |
742 | dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This | |
743 | dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
745 | 744 | AC_CONFIG_COMMANDS_PRE(dnl |
746 | 745 | [m4_provide_if([_AM_COMPILER_EXEEXT], |
747 | 746 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
748 | 747 | ]) |
749 | 748 | |
750 | dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
749 | dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
751 | 750 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
752 | 751 | dnl mangled by Autoconf and run in a shell conditional statement. |
753 | 752 | m4_define([_AC_COMPILER_EXEEXT], |
775 | 774 | done |
776 | 775 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
777 | 776 | |
778 | # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, | |
779 | # Inc. | |
780 | # | |
781 | # This file is free software; the Free Software Foundation | |
782 | # gives unlimited permission to copy and/or distribute it, | |
783 | # with or without modifications, as long as this notice is preserved. | |
784 | ||
785 | # serial 1 | |
777 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
778 | # | |
779 | # This file is free software; the Free Software Foundation | |
780 | # gives unlimited permission to copy and/or distribute it, | |
781 | # with or without modifications, as long as this notice is preserved. | |
786 | 782 | |
787 | 783 | # AM_PROG_INSTALL_SH |
788 | 784 | # ------------------ |
797 | 793 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
798 | 794 | esac |
799 | 795 | fi |
800 | AC_SUBST(install_sh)]) | |
801 | ||
802 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | |
803 | # | |
804 | # This file is free software; the Free Software Foundation | |
805 | # gives unlimited permission to copy and/or distribute it, | |
806 | # with or without modifications, as long as this notice is preserved. | |
807 | ||
808 | # serial 2 | |
796 | AC_SUBST([install_sh])]) | |
797 | ||
798 | # Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
799 | # | |
800 | # This file is free software; the Free Software Foundation | |
801 | # gives unlimited permission to copy and/or distribute it, | |
802 | # with or without modifications, as long as this notice is preserved. | |
809 | 803 | |
810 | 804 | # Check whether the underlying file-system supports filenames |
811 | 805 | # with a leading dot. For instance MS-DOS doesn't. |
823 | 817 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
824 | 818 | # From Jim Meyering |
825 | 819 | |
826 | # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008, | |
827 | # 2011 Free Software Foundation, Inc. | |
828 | # | |
829 | # This file is free software; the Free Software Foundation | |
830 | # gives unlimited permission to copy and/or distribute it, | |
831 | # with or without modifications, as long as this notice is preserved. | |
832 | ||
833 | # serial 5 | |
820 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
821 | # | |
822 | # This file is free software; the Free Software Foundation | |
823 | # gives unlimited permission to copy and/or distribute it, | |
824 | # with or without modifications, as long as this notice is preserved. | |
834 | 825 | |
835 | 826 | # AM_MAINTAINER_MODE([DEFAULT-MODE]) |
836 | 827 | # ---------------------------------- |
837 | 828 | # Control maintainer-specific portions of Makefiles. |
838 | # Default is to disable them, unless `enable' is passed literally. | |
839 | # For symmetry, `disable' may be passed as well. Anyway, the user | |
829 | # Default is to disable them, unless 'enable' is passed literally. | |
830 | # For symmetry, 'disable' may be passed as well. Anyway, the user | |
840 | 831 | # can override the default with the --enable/--disable switch. |
841 | 832 | AC_DEFUN([AM_MAINTAINER_MODE], |
842 | 833 | [m4_case(m4_default([$1], [disable]), |
847 | 838 | AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
848 | 839 | dnl maintainer-mode's default is 'disable' unless 'enable' is passed |
849 | 840 | AC_ARG_ENABLE([maintainer-mode], |
850 | [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful | |
851 | (and sometimes confusing) to the casual installer], | |
852 | [USE_MAINTAINER_MODE=$enableval], | |
853 | [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) | |
841 | [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], | |
842 | am_maintainer_other[ make rules and dependencies not useful | |
843 | (and sometimes confusing) to the casual installer])], | |
844 | [USE_MAINTAINER_MODE=$enableval], | |
845 | [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) | |
854 | 846 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
855 | 847 | AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) |
856 | 848 | MAINT=$MAINTAINER_MODE_TRUE |
858 | 850 | ] |
859 | 851 | ) |
860 | 852 | |
861 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) | |
862 | ||
863 | 853 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
864 | 854 | |
865 | # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | |
866 | # | |
867 | # This file is free software; the Free Software Foundation | |
868 | # gives unlimited permission to copy and/or distribute it, | |
869 | # with or without modifications, as long as this notice is preserved. | |
870 | ||
871 | # serial 4 | |
855 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
856 | # | |
857 | # This file is free software; the Free Software Foundation | |
858 | # gives unlimited permission to copy and/or distribute it, | |
859 | # with or without modifications, as long as this notice is preserved. | |
872 | 860 | |
873 | 861 | # AM_MAKE_INCLUDE() |
874 | 862 | # ----------------- |
887 | 875 | _am_result=none |
888 | 876 | # First try GNU make style include. |
889 | 877 | echo "include confinc" > confmf |
890 | # Ignore all kinds of additional output from `make'. | |
878 | # Ignore all kinds of additional output from 'make'. | |
891 | 879 | case `$am_make -s -f confmf 2> /dev/null` in #( |
892 | 880 | *the\ am__doit\ target*) |
893 | 881 | am__include=include |
912 | 900 | rm -f confinc confmf |
913 | 901 | ]) |
914 | 902 | |
915 | # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
916 | # Free Software Foundation, Inc. | |
917 | # | |
918 | # This file is free software; the Free Software Foundation | |
919 | # gives unlimited permission to copy and/or distribute it, | |
920 | # with or without modifications, as long as this notice is preserved. | |
921 | ||
922 | # serial 6 | |
903 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
904 | # | |
905 | # This file is free software; the Free Software Foundation | |
906 | # gives unlimited permission to copy and/or distribute it, | |
907 | # with or without modifications, as long as this notice is preserved. | |
923 | 908 | |
924 | 909 | # AM_PROG_CC_C_O |
925 | 910 | # -------------- |
949 | 934 | |
950 | 935 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
951 | 936 | |
952 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
953 | # Free Software Foundation, Inc. | |
954 | # | |
955 | # This file is free software; the Free Software Foundation | |
956 | # gives unlimited permission to copy and/or distribute it, | |
957 | # with or without modifications, as long as this notice is preserved. | |
958 | ||
959 | # serial 6 | |
937 | # Copyright (C) 1997-2013 Free Software Foundation, Inc. | |
938 | # | |
939 | # This file is free software; the Free Software Foundation | |
940 | # gives unlimited permission to copy and/or distribute it, | |
941 | # with or without modifications, as long as this notice is preserved. | |
960 | 942 | |
961 | 943 | # AM_MISSING_PROG(NAME, PROGRAM) |
962 | 944 | # ------------------------------ |
965 | 947 | $1=${$1-"${am_missing_run}$2"} |
966 | 948 | AC_SUBST($1)]) |
967 | 949 | |
968 | ||
969 | 950 | # AM_MISSING_HAS_RUN |
970 | 951 | # ------------------ |
971 | # Define MISSING if not defined so far and test if it supports --run. | |
972 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
952 | # Define MISSING if not defined so far and test if it is modern enough. | |
953 | # If it is, set am_missing_run to use it, otherwise, to nothing. | |
973 | 954 | AC_DEFUN([AM_MISSING_HAS_RUN], |
974 | 955 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
975 | 956 | AC_REQUIRE_AUX_FILE([missing])dnl |
982 | 963 | esac |
983 | 964 | fi |
984 | 965 | # Use eval to expand $SHELL |
985 | if eval "$MISSING --run true"; then | |
986 | am_missing_run="$MISSING --run " | |
966 | if eval "$MISSING --is-lightweight"; then | |
967 | am_missing_run="$MISSING " | |
987 | 968 | else |
988 | 969 | am_missing_run= |
989 | AC_MSG_WARN([`missing' script is too old or missing]) | |
990 | fi | |
991 | ]) | |
992 | ||
993 | # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, | |
994 | # Inc. | |
995 | # | |
996 | # This file is free software; the Free Software Foundation | |
997 | # gives unlimited permission to copy and/or distribute it, | |
998 | # with or without modifications, as long as this notice is preserved. | |
999 | ||
1000 | # serial 1 | |
1001 | ||
1002 | # AM_PROG_MKDIR_P | |
1003 | # --------------- | |
1004 | # Check for `mkdir -p'. | |
1005 | AC_DEFUN([AM_PROG_MKDIR_P], | |
1006 | [AC_PREREQ([2.60])dnl | |
1007 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
1008 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
1009 | dnl while keeping a definition of mkdir_p for backward compatibility. | |
1010 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
1011 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
1012 | dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
1013 | dnl adjustment using top_builddir (which is defined more often than | |
1014 | dnl MKDIR_P). | |
1015 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
1016 | case $mkdir_p in | |
1017 | [[\\/$]]* | ?:[[\\/]]*) ;; | |
1018 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
1019 | esac | |
970 | AC_MSG_WARN(['missing' script is too old or missing]) | |
971 | fi | |
1020 | 972 | ]) |
1021 | 973 | |
1022 | 974 | # Helper functions for option handling. -*- Autoconf -*- |
1023 | 975 | |
1024 | # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software | |
1025 | # 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. | |
1030 | ||
1031 | # serial 5 | |
976 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
977 | # | |
978 | # This file is free software; the Free Software Foundation | |
979 | # gives unlimited permission to copy and/or distribute it, | |
980 | # with or without modifications, as long as this notice is preserved. | |
1032 | 981 | |
1033 | 982 | # _AM_MANGLE_OPTION(NAME) |
1034 | 983 | # ----------------------- |
1039 | 988 | # -------------------- |
1040 | 989 | # Set option NAME. Presently that only means defining a flag for this option. |
1041 | 990 | AC_DEFUN([_AM_SET_OPTION], |
1042 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
991 | [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) | |
1043 | 992 | |
1044 | 993 | # _AM_SET_OPTIONS(OPTIONS) |
1045 | 994 | # ------------------------ |
1055 | 1004 | |
1056 | 1005 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
1057 | 1006 | |
1058 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | |
1059 | # Free Software Foundation, Inc. | |
1060 | # | |
1061 | # This file is free software; the Free Software Foundation | |
1062 | # gives unlimited permission to copy and/or distribute it, | |
1063 | # with or without modifications, as long as this notice is preserved. | |
1064 | ||
1065 | # serial 5 | |
1007 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
1008 | # | |
1009 | # This file is free software; the Free Software Foundation | |
1010 | # gives unlimited permission to copy and/or distribute it, | |
1011 | # with or without modifications, as long as this notice is preserved. | |
1066 | 1012 | |
1067 | 1013 | # AM_SANITY_CHECK |
1068 | 1014 | # --------------- |
1069 | 1015 | AC_DEFUN([AM_SANITY_CHECK], |
1070 | 1016 | [AC_MSG_CHECKING([whether build environment is sane]) |
1071 | # Just in case | |
1072 | sleep 1 | |
1073 | echo timestamp > conftest.file | |
1074 | 1017 | # Reject unsafe characters in $srcdir or the absolute working directory |
1075 | 1018 | # name. Accept space and tab only in the latter. |
1076 | 1019 | am_lf=' |
1081 | 1024 | esac |
1082 | 1025 | case $srcdir in |
1083 | 1026 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
1084 | AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |
1027 | AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; | |
1085 | 1028 | esac |
1086 | 1029 | |
1087 | # Do `set' in a subshell so we don't clobber the current shell's | |
1030 | # Do 'set' in a subshell so we don't clobber the current shell's | |
1088 | 1031 | # arguments. Must try -L first in case configure is actually a |
1089 | 1032 | # symlink; some systems play weird games with the mod time of symlinks |
1090 | 1033 | # (eg FreeBSD returns the mod time of the symlink's containing |
1091 | 1034 | # directory). |
1092 | 1035 | if ( |
1093 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
1094 | if test "$[*]" = "X"; then | |
1095 | # -L didn't work. | |
1096 | set X `ls -t "$srcdir/configure" conftest.file` | |
1097 | fi | |
1098 | rm -f conftest.file | |
1099 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
1100 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
1101 | ||
1102 | # If neither matched, then we have a broken ls. This can happen | |
1103 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1104 | # broken ls alias from the environment. This has actually | |
1105 | # happened. Such a system could not be considered "sane". | |
1106 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
1107 | alias in your environment]) | |
1108 | fi | |
1109 | ||
1036 | am_has_slept=no | |
1037 | for am_try in 1 2; do | |
1038 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
1039 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
1040 | if test "$[*]" = "X"; then | |
1041 | # -L didn't work. | |
1042 | set X `ls -t "$srcdir/configure" conftest.file` | |
1043 | fi | |
1044 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
1045 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
1046 | ||
1047 | # If neither matched, then we have a broken ls. This can happen | |
1048 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1049 | # broken ls alias from the environment. This has actually | |
1050 | # happened. Such a system could not be considered "sane". | |
1051 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
1052 | alias in your environment]) | |
1053 | fi | |
1054 | if test "$[2]" = conftest.file || test $am_try -eq 2; then | |
1055 | break | |
1056 | fi | |
1057 | # Just in case. | |
1058 | sleep 1 | |
1059 | am_has_slept=yes | |
1060 | done | |
1110 | 1061 | test "$[2]" = conftest.file |
1111 | 1062 | ) |
1112 | 1063 | then |
1116 | 1067 | AC_MSG_ERROR([newly created file is older than distributed files! |
1117 | 1068 | Check your system clock]) |
1118 | 1069 | fi |
1119 | AC_MSG_RESULT(yes)]) | |
1120 | ||
1121 | # Copyright (C) 2009, 2011 Free Software Foundation, Inc. | |
1122 | # | |
1123 | # This file is free software; the Free Software Foundation | |
1124 | # gives unlimited permission to copy and/or distribute it, | |
1125 | # with or without modifications, as long as this notice is preserved. | |
1126 | ||
1127 | # serial 2 | |
1070 | AC_MSG_RESULT([yes]) | |
1071 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
1072 | # generated files are strictly newer. | |
1073 | am_sleep_pid= | |
1074 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
1075 | ( sleep 1 ) & | |
1076 | am_sleep_pid=$! | |
1077 | fi | |
1078 | AC_CONFIG_COMMANDS_PRE( | |
1079 | [AC_MSG_CHECKING([that generated files are newer than configure]) | |
1080 | if test -n "$am_sleep_pid"; then | |
1081 | # Hide warnings about reused PIDs. | |
1082 | wait $am_sleep_pid 2>/dev/null | |
1083 | fi | |
1084 | AC_MSG_RESULT([done])]) | |
1085 | rm -f conftest.file | |
1086 | ]) | |
1087 | ||
1088 | # Copyright (C) 2009-2013 Free Software Foundation, Inc. | |
1089 | # | |
1090 | # This file is free software; the Free Software Foundation | |
1091 | # gives unlimited permission to copy and/or distribute it, | |
1092 | # with or without modifications, as long as this notice is preserved. | |
1128 | 1093 | |
1129 | 1094 | # AM_SILENT_RULES([DEFAULT]) |
1130 | 1095 | # -------------------------- |
1131 | 1096 | # Enable less verbose build rules; with the default set to DEFAULT |
1132 | # (`yes' being less verbose, `no' or empty being verbose). | |
1097 | # ("yes" being less verbose, "no" or empty being verbose). | |
1133 | 1098 | AC_DEFUN([AM_SILENT_RULES], |
1134 | [AC_ARG_ENABLE([silent-rules], | |
1135 | [ --enable-silent-rules less verbose build output (undo: `make V=1') | |
1136 | --disable-silent-rules verbose build output (undo: `make V=0')]) | |
1137 | case $enable_silent_rules in | |
1138 | yes) AM_DEFAULT_VERBOSITY=0;; | |
1139 | no) AM_DEFAULT_VERBOSITY=1;; | |
1140 | *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; | |
1099 | [AC_ARG_ENABLE([silent-rules], [dnl | |
1100 | AS_HELP_STRING( | |
1101 | [--enable-silent-rules], | |
1102 | [less verbose build output (undo: "make V=1")]) | |
1103 | AS_HELP_STRING( | |
1104 | [--disable-silent-rules], | |
1105 | [verbose build output (undo: "make V=0")])dnl | |
1106 | ]) | |
1107 | case $enable_silent_rules in @%:@ ((( | |
1108 | yes) AM_DEFAULT_VERBOSITY=0;; | |
1109 | no) AM_DEFAULT_VERBOSITY=1;; | |
1110 | *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; | |
1141 | 1111 | esac |
1142 | 1112 | dnl |
1143 | dnl A few `make' implementations (e.g., NonStop OS and NextStep) | |
1113 | dnl A few 'make' implementations (e.g., NonStop OS and NextStep) | |
1144 | 1114 | dnl do not support nested variable expansions. |
1145 | 1115 | dnl See automake bug#9928 and bug#10237. |
1146 | 1116 | am_make=${MAKE-make} |
1158 | 1128 | am_cv_make_support_nested_variables=no |
1159 | 1129 | fi]) |
1160 | 1130 | if test $am_cv_make_support_nested_variables = yes; then |
1161 | dnl Using `$V' instead of `$(V)' breaks IRIX make. | |
1131 | dnl Using '$V' instead of '$(V)' breaks IRIX make. | |
1162 | 1132 | AM_V='$(V)' |
1163 | 1133 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
1164 | 1134 | else |
1175 | 1145 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
1176 | 1146 | ]) |
1177 | 1147 | |
1178 | # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. | |
1179 | # | |
1180 | # This file is free software; the Free Software Foundation | |
1181 | # gives unlimited permission to copy and/or distribute it, | |
1182 | # with or without modifications, as long as this notice is preserved. | |
1183 | ||
1184 | # serial 1 | |
1148 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
1149 | # | |
1150 | # This file is free software; the Free Software Foundation | |
1151 | # gives unlimited permission to copy and/or distribute it, | |
1152 | # with or without modifications, as long as this notice is preserved. | |
1185 | 1153 | |
1186 | 1154 | # AM_PROG_INSTALL_STRIP |
1187 | 1155 | # --------------------- |
1188 | # One issue with vendor `install' (even GNU) is that you can't | |
1156 | # One issue with vendor 'install' (even GNU) is that you can't | |
1189 | 1157 | # specify the program used to strip binaries. This is especially |
1190 | 1158 | # annoying in cross-compiling environments, where the build's strip |
1191 | 1159 | # is unlikely to handle the host's binaries. |
1192 | 1160 | # Fortunately install-sh will honor a STRIPPROG variable, so we |
1193 | # always use install-sh in `make install-strip', and initialize | |
1161 | # always use install-sh in "make install-strip", and initialize | |
1194 | 1162 | # STRIPPROG with the value of the STRIP variable (set by the user). |
1195 | 1163 | AC_DEFUN([AM_PROG_INSTALL_STRIP], |
1196 | 1164 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
1197 | # Installed binaries are usually stripped using `strip' when the user | |
1198 | # run `make install-strip'. However `strip' might not be the right | |
1165 | # Installed binaries are usually stripped using 'strip' when the user | |
1166 | # run "make install-strip". However 'strip' might not be the right | |
1199 | 1167 | # tool to use in cross-compilation environments, therefore Automake |
1200 | # will honor the `STRIP' environment variable to overrule this program. | |
1201 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
1168 | # will honor the 'STRIP' environment variable to overrule this program. | |
1169 | dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. | |
1202 | 1170 | if test "$cross_compiling" != no; then |
1203 | 1171 | AC_CHECK_TOOL([STRIP], [strip], :) |
1204 | 1172 | fi |
1205 | 1173 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
1206 | 1174 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
1207 | 1175 | |
1208 | # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. | |
1209 | # | |
1210 | # This file is free software; the Free Software Foundation | |
1211 | # gives unlimited permission to copy and/or distribute it, | |
1212 | # with or without modifications, as long as this notice is preserved. | |
1213 | ||
1214 | # serial 3 | |
1176 | # Copyright (C) 2006-2013 Free Software Foundation, Inc. | |
1177 | # | |
1178 | # This file is free software; the Free Software Foundation | |
1179 | # gives unlimited permission to copy and/or distribute it, | |
1180 | # with or without modifications, as long as this notice is preserved. | |
1215 | 1181 | |
1216 | 1182 | # _AM_SUBST_NOTMAKE(VARIABLE) |
1217 | 1183 | # --------------------------- |
1226 | 1192 | |
1227 | 1193 | # Check how to create a tarball. -*- Autoconf -*- |
1228 | 1194 | |
1229 | # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. | |
1230 | # | |
1231 | # This file is free software; the Free Software Foundation | |
1232 | # gives unlimited permission to copy and/or distribute it, | |
1233 | # with or without modifications, as long as this notice is preserved. | |
1234 | ||
1235 | # serial 2 | |
1195 | # Copyright (C) 2004-2013 Free Software Foundation, Inc. | |
1196 | # | |
1197 | # This file is free software; the Free Software Foundation | |
1198 | # gives unlimited permission to copy and/or distribute it, | |
1199 | # with or without modifications, as long as this notice is preserved. | |
1236 | 1200 | |
1237 | 1201 | # _AM_PROG_TAR(FORMAT) |
1238 | 1202 | # -------------------- |
1239 | 1203 | # Check how to create a tarball in format FORMAT. |
1240 | # FORMAT should be one of `v7', `ustar', or `pax'. | |
1204 | # FORMAT should be one of 'v7', 'ustar', or 'pax'. | |
1241 | 1205 | # |
1242 | 1206 | # Substitute a variable $(am__tar) that is a command |
1243 | 1207 | # writing to stdout a FORMAT-tarball containing the directory |
1247 | 1211 | # Substitute a variable $(am__untar) that extract such |
1248 | 1212 | # a tarball read from stdin. |
1249 | 1213 | # $(am__untar) < result.tar |
1214 | # | |
1250 | 1215 | AC_DEFUN([_AM_PROG_TAR], |
1251 | 1216 | [# Always define AMTAR for backward compatibility. Yes, it's still used |
1252 | 1217 | # in the wild :-( We should find a proper way to deprecate it ... |
1253 | 1218 | AC_SUBST([AMTAR], ['$${TAR-tar}']) |
1219 | ||
1220 | # We'll loop over all known methods to create a tar archive until one works. | |
1221 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
1222 | ||
1254 | 1223 | m4_if([$1], [v7], |
1255 | [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
1256 | [m4_case([$1], [ustar],, [pax],, | |
1257 | [m4_fatal([Unknown tar format])]) | |
1258 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
1259 | # Loop over all known methods to create a tar archive until one works. | |
1260 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
1261 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
1262 | # Do not fold the above two line into one, because Tru64 sh and | |
1263 | # Solaris sh will not grok spaces in the rhs of `-'. | |
1264 | for _am_tool in $_am_tools | |
1265 | do | |
1266 | case $_am_tool in | |
1267 | gnutar) | |
1268 | for _am_tar in tar gnutar gtar; | |
1269 | do | |
1270 | AM_RUN_LOG([$_am_tar --version]) && break | |
1271 | done | |
1272 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
1273 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
1274 | am__untar="$_am_tar -xf -" | |
1275 | ;; | |
1276 | plaintar) | |
1277 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
1278 | # ustar tarball either. | |
1279 | (tar --version) >/dev/null 2>&1 && continue | |
1280 | am__tar='tar chf - "$$tardir"' | |
1281 | am__tar_='tar chf - "$tardir"' | |
1282 | am__untar='tar xf -' | |
1283 | ;; | |
1284 | pax) | |
1285 | am__tar='pax -L -x $1 -w "$$tardir"' | |
1286 | am__tar_='pax -L -x $1 -w "$tardir"' | |
1287 | am__untar='pax -r' | |
1288 | ;; | |
1289 | cpio) | |
1290 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
1291 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
1292 | am__untar='cpio -i -H $1 -d' | |
1293 | ;; | |
1294 | none) | |
1295 | am__tar=false | |
1296 | am__tar_=false | |
1297 | am__untar=false | |
1298 | ;; | |
1299 | esac | |
1300 | ||
1301 | # If the value was cached, stop now. We just wanted to have am__tar | |
1302 | # and am__untar set. | |
1303 | test -n "${am_cv_prog_tar_$1}" && break | |
1304 | ||
1305 | # tar/untar a dummy directory, and stop if the command works | |
1224 | [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
1225 | ||
1226 | [m4_case([$1], | |
1227 | [ustar], | |
1228 | [# The POSIX 1988 'ustar' format is defined with fixed-size fields. | |
1229 | # There is notably a 21 bits limit for the UID and the GID. In fact, | |
1230 | # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 | |
1231 | # and bug#13588). | |
1232 | am_max_uid=2097151 # 2^21 - 1 | |
1233 | am_max_gid=$am_max_uid | |
1234 | # The $UID and $GID variables are not portable, so we need to resort | |
1235 | # to the POSIX-mandated id(1) utility. Errors in the 'id' calls | |
1236 | # below are definitely unexpected, so allow the users to see them | |
1237 | # (that is, avoid stderr redirection). | |
1238 | am_uid=`id -u || echo unknown` | |
1239 | am_gid=`id -g || echo unknown` | |
1240 | AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) | |
1241 | if test $am_uid -le $am_max_uid; then | |
1242 | AC_MSG_RESULT([yes]) | |
1243 | else | |
1244 | AC_MSG_RESULT([no]) | |
1245 | _am_tools=none | |
1246 | fi | |
1247 | AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) | |
1248 | if test $am_gid -le $am_max_gid; then | |
1249 | AC_MSG_RESULT([yes]) | |
1250 | else | |
1251 | AC_MSG_RESULT([no]) | |
1252 | _am_tools=none | |
1253 | fi], | |
1254 | ||
1255 | [pax], | |
1256 | [], | |
1257 | ||
1258 | [m4_fatal([Unknown tar format])]) | |
1259 | ||
1260 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
1261 | ||
1262 | # Go ahead even if we have the value already cached. We do so because we | |
1263 | # need to set the values for the 'am__tar' and 'am__untar' variables. | |
1264 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
1265 | ||
1266 | for _am_tool in $_am_tools; do | |
1267 | case $_am_tool in | |
1268 | gnutar) | |
1269 | for _am_tar in tar gnutar gtar; do | |
1270 | AM_RUN_LOG([$_am_tar --version]) && break | |
1271 | done | |
1272 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
1273 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
1274 | am__untar="$_am_tar -xf -" | |
1275 | ;; | |
1276 | plaintar) | |
1277 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
1278 | # ustar tarball either. | |
1279 | (tar --version) >/dev/null 2>&1 && continue | |
1280 | am__tar='tar chf - "$$tardir"' | |
1281 | am__tar_='tar chf - "$tardir"' | |
1282 | am__untar='tar xf -' | |
1283 | ;; | |
1284 | pax) | |
1285 | am__tar='pax -L -x $1 -w "$$tardir"' | |
1286 | am__tar_='pax -L -x $1 -w "$tardir"' | |
1287 | am__untar='pax -r' | |
1288 | ;; | |
1289 | cpio) | |
1290 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
1291 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
1292 | am__untar='cpio -i -H $1 -d' | |
1293 | ;; | |
1294 | none) | |
1295 | am__tar=false | |
1296 | am__tar_=false | |
1297 | am__untar=false | |
1298 | ;; | |
1299 | esac | |
1300 | ||
1301 | # If the value was cached, stop now. We just wanted to have am__tar | |
1302 | # and am__untar set. | |
1303 | test -n "${am_cv_prog_tar_$1}" && break | |
1304 | ||
1305 | # tar/untar a dummy directory, and stop if the command works. | |
1306 | rm -rf conftest.dir | |
1307 | mkdir conftest.dir | |
1308 | echo GrepMe > conftest.dir/file | |
1309 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1310 | rm -rf conftest.dir | |
1311 | if test -s conftest.tar; then | |
1312 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
1313 | AM_RUN_LOG([cat conftest.dir/file]) | |
1314 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1315 | fi | |
1316 | done | |
1306 | 1317 | rm -rf conftest.dir |
1307 | mkdir conftest.dir | |
1308 | echo GrepMe > conftest.dir/file | |
1309 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1310 | rm -rf conftest.dir | |
1311 | if test -s conftest.tar; then | |
1312 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
1313 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1314 | fi | |
1315 | done | |
1316 | rm -rf conftest.dir | |
1317 | ||
1318 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1319 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1318 | ||
1319 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1320 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1321 | ||
1320 | 1322 | AC_SUBST([am__tar]) |
1321 | 1323 | AC_SUBST([am__untar]) |
1322 | 1324 | ]) # _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, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free | |
6 | # Software Foundation, Inc. | |
3 | scriptversion=2012-10-14.11; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
7 | 6 | # Written by Tom Tromey <tromey@cygnus.com>. |
8 | 7 | # |
9 | 8 | # This program is free software; you can redistribute it and/or modify |
112 | 111 | lib=$dir/$lib.lib |
113 | 112 | break |
114 | 113 | fi |
114 | if test -f "$dir/lib$lib.a"; then | |
115 | found=yes | |
116 | lib=$dir/lib$lib.a | |
117 | break | |
118 | fi | |
115 | 119 | done |
116 | 120 | IFS=$save_IFS |
117 | 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-05-16' | |
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 | # Note: order is significant - the case branches are not exclusive. |
141 | 156 | |
198 | 213 | # contains redundant information, the shorter form: |
199 | 214 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
200 | 215 | echo "${machine}-${os}${release}" |
216 | exit ;; | |
217 | *:Bitrig:*:*) | |
218 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | |
219 | echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} | |
201 | 220 | exit ;; |
202 | 221 | *:OpenBSD:*:*) |
203 | 222 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
301 | 320 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
302 | 321 | echo arm-acorn-riscix${UNAME_RELEASE} |
303 | 322 | exit ;; |
304 | arm:riscos:*:*|arm:RISCOS:*:*) | |
323 | arm*:riscos:*:*|arm*:RISCOS:*:*) | |
305 | 324 | echo arm-unknown-riscos |
306 | 325 | exit ;; |
307 | 326 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
800 | 819 | i*:CYGWIN*:*) |
801 | 820 | echo ${UNAME_MACHINE}-pc-cygwin |
802 | 821 | exit ;; |
822 | *:MINGW64*:*) | |
823 | echo ${UNAME_MACHINE}-pc-mingw64 | |
824 | exit ;; | |
803 | 825 | *:MINGW*:*) |
804 | 826 | echo ${UNAME_MACHINE}-pc-mingw32 |
805 | 827 | exit ;; |
851 | 873 | exit ;; |
852 | 874 | *:GNU:*:*) |
853 | 875 | # the GNU system |
854 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
876 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
855 | 877 | exit ;; |
856 | 878 | *:GNU/*:*:*) |
857 | 879 | # other systems with GNU libc and userland |
858 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | |
880 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} | |
859 | 881 | exit ;; |
860 | 882 | i*86:Minix:*:*) |
861 | 883 | echo ${UNAME_MACHINE}-pc-minix |
862 | 884 | exit ;; |
863 | 885 | aarch64:Linux:*:*) |
864 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
886 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
865 | 887 | exit ;; |
866 | 888 | aarch64_be:Linux:*:*) |
867 | 889 | UNAME_MACHINE=aarch64_be |
868 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
890 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
869 | 891 | exit ;; |
870 | 892 | alpha:Linux:*:*) |
871 | 893 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
878 | 900 | EV68*) UNAME_MACHINE=alphaev68 ;; |
879 | 901 | esac |
880 | 902 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
881 | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | |
882 | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | |
903 | if test "$?" = 0 ; then LIBC="gnulibc1" ; fi | |
904 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
905 | exit ;; | |
906 | arc:Linux:*:* | arceb:Linux:*:*) | |
907 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
883 | 908 | exit ;; |
884 | 909 | arm*:Linux:*:*) |
885 | 910 | eval $set_cc_for_build |
886 | 911 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
887 | 912 | | grep -q __ARM_EABI__ |
888 | 913 | then |
889 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
914 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
890 | 915 | else |
891 | 916 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
892 | 917 | | grep -q __ARM_PCS_VFP |
893 | 918 | then |
894 | echo ${UNAME_MACHINE}-unknown-linux-gnueabi | |
919 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi | |
895 | 920 | else |
896 | echo ${UNAME_MACHINE}-unknown-linux-gnueabihf | |
921 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf | |
897 | 922 | fi |
898 | 923 | fi |
899 | 924 | exit ;; |
900 | 925 | avr32*:Linux:*:*) |
901 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
926 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
902 | 927 | exit ;; |
903 | 928 | cris:Linux:*:*) |
904 | echo ${UNAME_MACHINE}-axis-linux-gnu | |
929 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
905 | 930 | exit ;; |
906 | 931 | crisv32:Linux:*:*) |
907 | echo ${UNAME_MACHINE}-axis-linux-gnu | |
932 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
908 | 933 | exit ;; |
909 | 934 | frv:Linux:*:*) |
910 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
935 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
911 | 936 | exit ;; |
912 | 937 | hexagon:Linux:*:*) |
913 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
938 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
914 | 939 | exit ;; |
915 | 940 | i*86:Linux:*:*) |
916 | LIBC=gnu | |
917 | eval $set_cc_for_build | |
918 | sed 's/^ //' << EOF >$dummy.c | |
919 | #ifdef __dietlibc__ | |
920 | LIBC=dietlibc | |
921 | #endif | |
922 | EOF | |
923 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
924 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
941 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} | |
925 | 942 | exit ;; |
926 | 943 | ia64:Linux:*:*) |
927 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
944 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
928 | 945 | exit ;; |
929 | 946 | m32r*:Linux:*:*) |
930 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
947 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
931 | 948 | exit ;; |
932 | 949 | m68*:Linux:*:*) |
933 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
950 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
934 | 951 | exit ;; |
935 | 952 | mips:Linux:*:* | mips64:Linux:*:*) |
936 | 953 | eval $set_cc_for_build |
949 | 966 | #endif |
950 | 967 | EOF |
951 | 968 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
952 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | |
969 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } | |
953 | 970 | ;; |
971 | or1k:Linux:*:*) | |
972 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
973 | exit ;; | |
954 | 974 | or32:Linux:*:*) |
955 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
975 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
956 | 976 | exit ;; |
957 | 977 | padre:Linux:*:*) |
958 | echo sparc-unknown-linux-gnu | |
978 | echo sparc-unknown-linux-${LIBC} | |
959 | 979 | exit ;; |
960 | 980 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
961 | echo hppa64-unknown-linux-gnu | |
981 | echo hppa64-unknown-linux-${LIBC} | |
962 | 982 | exit ;; |
963 | 983 | parisc:Linux:*:* | hppa:Linux:*:*) |
964 | 984 | # Look for CPU level |
965 | 985 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
966 | PA7*) echo hppa1.1-unknown-linux-gnu ;; | |
967 | PA8*) echo hppa2.0-unknown-linux-gnu ;; | |
968 | *) echo hppa-unknown-linux-gnu ;; | |
986 | PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; | |
987 | PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; | |
988 | *) echo hppa-unknown-linux-${LIBC} ;; | |
969 | 989 | esac |
970 | 990 | exit ;; |
971 | 991 | ppc64:Linux:*:*) |
972 | echo powerpc64-unknown-linux-gnu | |
992 | echo powerpc64-unknown-linux-${LIBC} | |
973 | 993 | exit ;; |
974 | 994 | ppc:Linux:*:*) |
975 | echo powerpc-unknown-linux-gnu | |
995 | echo powerpc-unknown-linux-${LIBC} | |
976 | 996 | exit ;; |
977 | 997 | s390:Linux:*:* | s390x:Linux:*:*) |
978 | echo ${UNAME_MACHINE}-ibm-linux | |
998 | echo ${UNAME_MACHINE}-ibm-linux-${LIBC} | |
979 | 999 | exit ;; |
980 | 1000 | sh64*:Linux:*:*) |
981 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
1001 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
982 | 1002 | exit ;; |
983 | 1003 | sh*:Linux:*:*) |
984 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
1004 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
985 | 1005 | exit ;; |
986 | 1006 | sparc:Linux:*:* | sparc64:Linux:*:*) |
987 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
1007 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
988 | 1008 | exit ;; |
989 | 1009 | tile*:Linux:*:*) |
990 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
1010 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
991 | 1011 | exit ;; |
992 | 1012 | vax:Linux:*:*) |
993 | echo ${UNAME_MACHINE}-dec-linux-gnu | |
1013 | echo ${UNAME_MACHINE}-dec-linux-${LIBC} | |
994 | 1014 | exit ;; |
995 | 1015 | x86_64:Linux:*:*) |
996 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
1016 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
997 | 1017 | exit ;; |
998 | 1018 | xtensa*:Linux:*:*) |
999 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
1019 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1000 | 1020 | exit ;; |
1001 | 1021 | i*86:DYNIX/ptx:4*:*) |
1002 | 1022 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1200 | 1220 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
1201 | 1221 | echo i586-pc-haiku |
1202 | 1222 | exit ;; |
1223 | x86_64:Haiku:*:*) | |
1224 | echo x86_64-unknown-haiku | |
1225 | exit ;; | |
1203 | 1226 | SX-4:SUPER-UX:*:*) |
1204 | 1227 | echo sx4-nec-superux${UNAME_RELEASE} |
1205 | 1228 | exit ;; |
1226 | 1249 | exit ;; |
1227 | 1250 | *:Darwin:*:*) |
1228 | 1251 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1229 | case $UNAME_PROCESSOR in | |
1230 | i386) | |
1231 | eval $set_cc_for_build | |
1232 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
1233 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
1234 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1235 | grep IS_64BIT_ARCH >/dev/null | |
1236 | then | |
1237 | UNAME_PROCESSOR="x86_64" | |
1238 | fi | |
1239 | fi ;; | |
1240 | unknown) UNAME_PROCESSOR=powerpc ;; | |
1241 | esac | |
1252 | eval $set_cc_for_build | |
1253 | if test "$UNAME_PROCESSOR" = unknown ; then | |
1254 | UNAME_PROCESSOR=powerpc | |
1255 | fi | |
1256 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
1257 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | |
1258 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1259 | grep IS_64BIT_ARCH >/dev/null | |
1260 | then | |
1261 | case $UNAME_PROCESSOR in | |
1262 | i386) UNAME_PROCESSOR=x86_64 ;; | |
1263 | powerpc) UNAME_PROCESSOR=powerpc64 ;; | |
1264 | esac | |
1265 | fi | |
1266 | fi | |
1242 | 1267 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
1243 | 1268 | exit ;; |
1244 | 1269 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1255 | 1280 | NEO-?:NONSTOP_KERNEL:*:*) |
1256 | 1281 | echo neo-tandem-nsk${UNAME_RELEASE} |
1257 | 1282 | exit ;; |
1258 | NSE-?:NONSTOP_KERNEL:*:*) | |
1283 | NSE-*:NONSTOP_KERNEL:*:*) | |
1259 | 1284 | echo nse-tandem-nsk${UNAME_RELEASE} |
1260 | 1285 | exit ;; |
1261 | 1286 | NSR-?:NONSTOP_KERNEL:*:*) |
1328 | 1353 | echo ${UNAME_MACHINE}-unknown-esx |
1329 | 1354 | exit ;; |
1330 | 1355 | esac |
1331 | ||
1332 | #echo '(No uname command or uname output not recognized.)' 1>&2 | |
1333 | #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | |
1334 | 1356 | |
1335 | 1357 | eval $set_cc_for_build |
1336 | 1358 | cat >$dummy.c <<EOF |
37 | 37 | |
38 | 38 | /* Define to 1 if you have the <inttypes.h> header file. */ |
39 | 39 | #undef HAVE_INTTYPES_H |
40 | ||
41 | /* Define if libbsd is used */ | |
42 | #undef HAVE_LIBBSD | |
40 | 43 | |
41 | 44 | /* Define if you have a readline compatible library */ |
42 | 45 | #undef HAVE_LIBREADLINE |
86 | 89 | /* Define to indicate that res_init() exists */ |
87 | 90 | #undef HAVE_RES_INIT |
88 | 91 | |
92 | /* Define to 1 if you have the `setproctitle' function. */ | |
93 | #undef HAVE_SETPROCTITLE | |
94 | ||
89 | 95 | /* Define to 1 if you have the `setresgid' function. */ |
90 | 96 | #undef HAVE_SETRESGID |
91 | 97 |
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 | ;; |
1583 | 1586 | os=-elf |
1584 | 1587 | ;; |
1585 | 1588 | mips*-*) |
1589 | os=-elf | |
1590 | ;; | |
1591 | or1k-*) | |
1586 | 1592 | os=-elf |
1587 | 1593 | ;; |
1588 | 1594 | or32-*) |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.69 for lldpd 0.7.3. | |
2 | # Generated by GNU Autoconf 2.69 for lldpd 0.7.4. | |
3 | 3 | # |
4 | 4 | # Report bugs to <bernat@luffy.cx>. |
5 | 5 | # |
589 | 589 | # Identity of this package. |
590 | 590 | PACKAGE_NAME='lldpd' |
591 | 591 | PACKAGE_TARNAME='lldpd' |
592 | PACKAGE_VERSION='0.7.3' | |
593 | PACKAGE_STRING='lldpd 0.7.3' | |
592 | PACKAGE_VERSION='0.7.4' | |
593 | PACKAGE_STRING='lldpd 0.7.4' | |
594 | 594 | PACKAGE_BUGREPORT='bernat@luffy.cx' |
595 | 595 | PACKAGE_URL='' |
596 | 596 | |
779 | 779 | CC |
780 | 780 | ac_ct_AR |
781 | 781 | AR |
782 | MAINT | |
783 | MAINTAINER_MODE_FALSE | |
784 | MAINTAINER_MODE_TRUE | |
782 | 785 | AM_BACKSLASH |
783 | 786 | AM_DEFAULT_VERBOSITY |
784 | 787 | AM_DEFAULT_V |
785 | 788 | AM_V |
786 | MAINT | |
787 | MAINTAINER_MODE_FALSE | |
788 | MAINTAINER_MODE_TRUE | |
789 | 789 | am__untar |
790 | 790 | am__tar |
791 | 791 | AMTAR |
850 | 850 | ac_subst_files='' |
851 | 851 | ac_user_opts=' |
852 | 852 | enable_option_checking |
853 | enable_silent_rules | |
853 | 854 | enable_maintainer_mode |
854 | enable_silent_rules | |
855 | 855 | enable_dependency_tracking |
856 | 856 | enable_shared |
857 | 857 | enable_static |
1451 | 1451 | # Omit some internal or obsolete options to make the list less imposing. |
1452 | 1452 | # This message is too long to be a string in the A/UX 3.1 sh. |
1453 | 1453 | cat <<_ACEOF |
1454 | \`configure' configures lldpd 0.7.3 to adapt to many kinds of systems. | |
1454 | \`configure' configures lldpd 0.7.4 to adapt to many kinds of systems. | |
1455 | 1455 | |
1456 | 1456 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1457 | 1457 | |
1521 | 1521 | |
1522 | 1522 | if test -n "$ac_init_help"; then |
1523 | 1523 | case $ac_init_help in |
1524 | short | recursive ) echo "Configuration of lldpd 0.7.3:";; | |
1524 | short | recursive ) echo "Configuration of lldpd 0.7.4:";; | |
1525 | 1525 | esac |
1526 | 1526 | cat <<\_ACEOF |
1527 | 1527 | |
1529 | 1529 | --disable-option-checking ignore unrecognized --enable/--with options |
1530 | 1530 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1531 | 1531 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1532 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1533 | (and sometimes confusing) to the casual installer | |
1534 | --enable-silent-rules less verbose build output (undo: `make V=1') | |
1535 | --disable-silent-rules verbose build output (undo: `make V=0') | |
1536 | --disable-dependency-tracking speeds up one-time build | |
1537 | --enable-dependency-tracking do not reject slow dependency extractors | |
1532 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1533 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1534 | --enable-maintainer-mode | |
1535 | enable make rules and dependencies not useful (and | |
1536 | sometimes confusing) to the casual installer | |
1537 | --enable-dependency-tracking | |
1538 | do not reject slow dependency extractors | |
1539 | --disable-dependency-tracking | |
1540 | speeds up one-time build | |
1538 | 1541 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1539 | 1542 | --enable-static[=PKGS] build static libraries [default=yes] |
1540 | 1543 | --enable-fast-install[=PKGS] |
1681 | 1684 | test -n "$ac_init_help" && exit $ac_status |
1682 | 1685 | if $ac_init_version; then |
1683 | 1686 | cat <<\_ACEOF |
1684 | lldpd configure 0.7.3 | |
1687 | lldpd configure 0.7.4 | |
1685 | 1688 | generated by GNU Autoconf 2.69 |
1686 | 1689 | |
1687 | 1690 | Copyright (C) 2012 Free Software Foundation, Inc. |
2282 | 2285 | This file contains any messages produced by compilers while |
2283 | 2286 | running configure, to aid debugging if configure makes a mistake. |
2284 | 2287 | |
2285 | It was created by lldpd $as_me 0.7.3, which was | |
2288 | It was created by lldpd $as_me 0.7.4, which was | |
2286 | 2289 | generated by GNU Autoconf 2.69. Invocation command line was |
2287 | 2290 | |
2288 | 2291 | $ $0 $@ |
2639 | 2642 | |
2640 | 2643 | |
2641 | 2644 | # Configure automake |
2642 | am__api_version='1.11' | |
2645 | am__api_version='1.13' | |
2643 | 2646 | |
2644 | 2647 | ac_aux_dir= |
2645 | 2648 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2765 | 2768 | |
2766 | 2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2767 | 2770 | $as_echo_n "checking whether build environment is sane... " >&6; } |
2768 | # Just in case | |
2769 | sleep 1 | |
2770 | echo timestamp > conftest.file | |
2771 | 2771 | # Reject unsafe characters in $srcdir or the absolute working directory |
2772 | 2772 | # name. Accept space and tab only in the latter. |
2773 | 2773 | am_lf=' |
2778 | 2778 | esac |
2779 | 2779 | case $srcdir in |
2780 | 2780 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2781 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2781 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2782 | 2782 | esac |
2783 | 2783 | |
2784 | # Do `set' in a subshell so we don't clobber the current shell's | |
2784 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2785 | 2785 | # arguments. Must try -L first in case configure is actually a |
2786 | 2786 | # symlink; some systems play weird games with the mod time of symlinks |
2787 | 2787 | # (eg FreeBSD returns the mod time of the symlink's containing |
2788 | 2788 | # directory). |
2789 | 2789 | if ( |
2790 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2791 | if test "$*" = "X"; then | |
2792 | # -L didn't work. | |
2793 | set X `ls -t "$srcdir/configure" conftest.file` | |
2794 | fi | |
2795 | rm -f conftest.file | |
2796 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2797 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2798 | ||
2799 | # If neither matched, then we have a broken ls. This can happen | |
2800 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2801 | # broken ls alias from the environment. This has actually | |
2802 | # happened. Such a system could not be considered "sane". | |
2803 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2804 | alias in your environment" "$LINENO" 5 | |
2805 | fi | |
2806 | ||
2790 | am_has_slept=no | |
2791 | for am_try in 1 2; do | |
2792 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2793 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2794 | if test "$*" = "X"; then | |
2795 | # -L didn't work. | |
2796 | set X `ls -t "$srcdir/configure" conftest.file` | |
2797 | fi | |
2798 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2799 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2800 | ||
2801 | # If neither matched, then we have a broken ls. This can happen | |
2802 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2803 | # broken ls alias from the environment. This has actually | |
2804 | # happened. Such a system could not be considered "sane". | |
2805 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2806 | alias in your environment" "$LINENO" 5 | |
2807 | fi | |
2808 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2809 | break | |
2810 | fi | |
2811 | # Just in case. | |
2812 | sleep 1 | |
2813 | am_has_slept=yes | |
2814 | done | |
2807 | 2815 | test "$2" = conftest.file |
2808 | 2816 | ) |
2809 | 2817 | then |
2815 | 2823 | fi |
2816 | 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2817 | 2825 | $as_echo "yes" >&6; } |
2826 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2827 | # generated files are strictly newer. | |
2828 | am_sleep_pid= | |
2829 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2830 | ( sleep 1 ) & | |
2831 | am_sleep_pid=$! | |
2832 | fi | |
2833 | ||
2834 | rm -f conftest.file | |
2835 | ||
2818 | 2836 | test "$program_prefix" != NONE && |
2819 | 2837 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2820 | 2838 | # Use a double $ so make ignores it. |
2837 | 2855 | esac |
2838 | 2856 | fi |
2839 | 2857 | # Use eval to expand $SHELL |
2840 | if eval "$MISSING --run true"; then | |
2841 | am_missing_run="$MISSING --run " | |
2858 | if eval "$MISSING --is-lightweight"; then | |
2859 | am_missing_run="$MISSING " | |
2842 | 2860 | else |
2843 | 2861 | am_missing_run= |
2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
2845 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2862 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2863 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2846 | 2864 | fi |
2847 | 2865 | |
2848 | 2866 | if test x"${install_sh}" != xset; then |
2854 | 2872 | esac |
2855 | 2873 | fi |
2856 | 2874 | |
2857 | # Installed binaries are usually stripped using `strip' when the user | |
2858 | # run `make install-strip'. However `strip' might not be the right | |
2875 | # Installed binaries are usually stripped using 'strip' when the user | |
2876 | # run "make install-strip". However 'strip' might not be the right | |
2859 | 2877 | # tool to use in cross-compilation environments, therefore Automake |
2860 | # will honor the `STRIP' environment variable to overrule this program. | |
2878 | # will honor the 'STRIP' environment variable to overrule this program. | |
2861 | 2879 | if test "$cross_compiling" != no; then |
2862 | 2880 | if test -n "$ac_tool_prefix"; then |
2863 | 2881 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2996 | 3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2997 | 3015 | $as_echo "$MKDIR_P" >&6; } |
2998 | 3016 | |
2999 | mkdir_p="$MKDIR_P" | |
3000 | case $mkdir_p in | |
3001 | [\\/$]* | ?:[\\/]*) ;; | |
3002 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3003 | esac | |
3004 | ||
3005 | 3017 | for ac_prog in gawk mawk nawk awk |
3006 | 3018 | do |
3007 | 3019 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3084 | 3096 | fi |
3085 | 3097 | rmdir .tst 2>/dev/null |
3086 | 3098 | |
3099 | # Check whether --enable-silent-rules was given. | |
3100 | if test "${enable_silent_rules+set}" = set; then : | |
3101 | enableval=$enable_silent_rules; | |
3102 | fi | |
3103 | ||
3104 | case $enable_silent_rules in # ((( | |
3105 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3106 | no) AM_DEFAULT_VERBOSITY=1;; | |
3107 | *) AM_DEFAULT_VERBOSITY=1;; | |
3108 | esac | |
3109 | am_make=${MAKE-make} | |
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3111 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3112 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3113 | $as_echo_n "(cached) " >&6 | |
3114 | else | |
3115 | if $as_echo 'TRUE=$(BAR$(V)) | |
3116 | BAR0=false | |
3117 | BAR1=true | |
3118 | V=1 | |
3119 | am__doit: | |
3120 | @$(TRUE) | |
3121 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3122 | am_cv_make_support_nested_variables=yes | |
3123 | else | |
3124 | am_cv_make_support_nested_variables=no | |
3125 | fi | |
3126 | fi | |
3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3128 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3129 | if test $am_cv_make_support_nested_variables = yes; then | |
3130 | AM_V='$(V)' | |
3131 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3132 | else | |
3133 | AM_V=$AM_DEFAULT_VERBOSITY | |
3134 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3135 | fi | |
3136 | AM_BACKSLASH='\' | |
3137 | ||
3087 | 3138 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3088 | 3139 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
3089 | 3140 | # is not polluted with repeated "-I." |
3106 | 3157 | |
3107 | 3158 | # Define the identity of the package. |
3108 | 3159 | PACKAGE='lldpd' |
3109 | VERSION='0.7.3' | |
3160 | VERSION='0.7.4' | |
3110 | 3161 | |
3111 | 3162 | |
3112 | 3163 | cat >>confdefs.h <<_ACEOF |
3133 | 3184 | |
3134 | 3185 | |
3135 | 3186 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
3187 | ||
3188 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3189 | # dies out for good. For more background, see: | |
3190 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3191 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3192 | mkdir_p='$(MKDIR_P)' | |
3136 | 3193 | |
3137 | 3194 | # We need awk for the "check" target. The system "awk" is bad on |
3138 | 3195 | # some platforms. |
3140 | 3197 | # in the wild :-( We should find a proper way to deprecate it ... |
3141 | 3198 | AMTAR='$${TAR-tar}' |
3142 | 3199 | |
3200 | ||
3201 | # We'll loop over all known methods to create a tar archive until one works. | |
3202 | _am_tools='gnutar pax cpio none' | |
3203 | ||
3143 | 3204 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
3205 | ||
3144 | 3206 | |
3145 | 3207 | |
3146 | 3208 | |
3174 | 3236 | enableval=$enable_silent_rules; |
3175 | 3237 | fi |
3176 | 3238 | |
3177 | case $enable_silent_rules in | |
3178 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3179 | no) AM_DEFAULT_VERBOSITY=1;; | |
3180 | *) AM_DEFAULT_VERBOSITY=0;; | |
3239 | case $enable_silent_rules in # ((( | |
3240 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3241 | no) AM_DEFAULT_VERBOSITY=1;; | |
3242 | *) AM_DEFAULT_VERBOSITY=0;; | |
3181 | 3243 | esac |
3182 | 3244 | am_make=${MAKE-make} |
3183 | 3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
3230 | 3292 | _am_result=none |
3231 | 3293 | # First try GNU make style include. |
3232 | 3294 | echo "include confinc" > confmf |
3233 | # Ignore all kinds of additional output from `make'. | |
3295 | # Ignore all kinds of additional output from 'make'. | |
3234 | 3296 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3235 | 3297 | *the\ am__doit\ target*) |
3236 | 3298 | am__include=include |
4074 | 4136 | # We make a subdir and do the tests there. Otherwise we can end up |
4075 | 4137 | # making bogus files that we don't know about and never remove. For |
4076 | 4138 | # instance it was reported that on HP-UX the gcc test will end up |
4077 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4078 | # in D'. | |
4139 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4140 | # in D". | |
4079 | 4141 | rm -rf conftest.dir |
4080 | 4142 | mkdir conftest.dir |
4081 | 4143 | # Copy depcomp to subdir because otherwise we won't find it if we're |
4110 | 4172 | : > sub/conftest.c |
4111 | 4173 | for i in 1 2 3 4 5 6; do |
4112 | 4174 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
4113 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4114 | # Solaris 8's {/usr,}/bin/sh. | |
4115 | touch sub/conftst$i.h | |
4175 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4176 | # Solaris 10 /bin/sh. | |
4177 | echo '/* dummy */' > sub/conftst$i.h | |
4116 | 4178 | done |
4117 | 4179 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
4118 | 4180 | |
4119 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4181 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4120 | 4182 | # mode. It turns out that the SunPro C++ compiler does not properly |
4121 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4122 | # versions had trouble with output in subdirs | |
4183 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4184 | # versions had trouble with output in subdirs. | |
4123 | 4185 | am__obj=sub/conftest.${OBJEXT-o} |
4124 | 4186 | am__minus_obj="-o $am__obj" |
4125 | 4187 | case $depmode in |
4128 | 4190 | test "$am__universal" = false || continue |
4129 | 4191 | ;; |
4130 | 4192 | nosideeffect) |
4131 | # after this tag, mechanisms are not by side-effect, so they'll | |
4132 | # only be used when explicitly requested | |
4193 | # After this tag, mechanisms are not by side-effect, so they'll | |
4194 | # only be used when explicitly requested. | |
4133 | 4195 | if test "x$enable_dependency_tracking" = xyes; then |
4134 | 4196 | continue |
4135 | 4197 | else |
4137 | 4199 | fi |
4138 | 4200 | ;; |
4139 | 4201 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
4140 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4202 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4141 | 4203 | # not run yet. These depmodes are late enough in the game, and |
4142 | 4204 | # so weak that their functioning should not be impacted. |
4143 | 4205 | am__obj=conftest.${OBJEXT-o} |
12499 | 12561 | # We make a subdir and do the tests there. Otherwise we can end up |
12500 | 12562 | # making bogus files that we don't know about and never remove. For |
12501 | 12563 | # instance it was reported that on HP-UX the gcc test will end up |
12502 | # making a dummy file named `D' -- because `-MD' means `put the output | |
12503 | # in D'. | |
12564 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
12565 | # in D". | |
12504 | 12566 | rm -rf conftest.dir |
12505 | 12567 | mkdir conftest.dir |
12506 | 12568 | # Copy depcomp to subdir because otherwise we won't find it if we're |
12535 | 12597 | : > sub/conftest.c |
12536 | 12598 | for i in 1 2 3 4 5 6; do |
12537 | 12599 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
12538 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
12539 | # Solaris 8's {/usr,}/bin/sh. | |
12540 | touch sub/conftst$i.h | |
12600 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
12601 | # Solaris 10 /bin/sh. | |
12602 | echo '/* dummy */' > sub/conftst$i.h | |
12541 | 12603 | done |
12542 | 12604 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
12543 | 12605 | |
12544 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
12606 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
12545 | 12607 | # mode. It turns out that the SunPro C++ compiler does not properly |
12546 | # handle `-M -o', and we need to detect this. Also, some Intel | |
12547 | # versions had trouble with output in subdirs | |
12608 | # handle '-M -o', and we need to detect this. Also, some Intel | |
12609 | # versions had trouble with output in subdirs. | |
12548 | 12610 | am__obj=sub/conftest.${OBJEXT-o} |
12549 | 12611 | am__minus_obj="-o $am__obj" |
12550 | 12612 | case $depmode in |
12553 | 12615 | test "$am__universal" = false || continue |
12554 | 12616 | ;; |
12555 | 12617 | nosideeffect) |
12556 | # after this tag, mechanisms are not by side-effect, so they'll | |
12557 | # only be used when explicitly requested | |
12618 | # After this tag, mechanisms are not by side-effect, so they'll | |
12619 | # only be used when explicitly requested. | |
12558 | 12620 | if test "x$enable_dependency_tracking" = xyes; then |
12559 | 12621 | continue |
12560 | 12622 | else |
12562 | 12624 | fi |
12563 | 12625 | ;; |
12564 | 12626 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
12565 | # This compiler won't grok `-c -o', but also, the minuso test has | |
12627 | # This compiler won't grok '-c -o', but also, the minuso test has | |
12566 | 12628 | # not run yet. These depmodes are late enough in the game, and |
12567 | 12629 | # so weak that their functioning should not be impacted. |
12568 | 12630 | am__obj=conftest.${OBJEXT-o} |
13061 | 13123 | # We make a subdir and do the tests there. Otherwise we can end up |
13062 | 13124 | # making bogus files that we don't know about and never remove. For |
13063 | 13125 | # instance it was reported that on HP-UX the gcc test will end up |
13064 | # making a dummy file named `D' -- because `-MD' means `put the output | |
13065 | # in D'. | |
13126 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
13127 | # in D". | |
13066 | 13128 | rm -rf conftest.dir |
13067 | 13129 | mkdir conftest.dir |
13068 | 13130 | # Copy depcomp to subdir because otherwise we won't find it if we're |
13097 | 13159 | : > sub/conftest.c |
13098 | 13160 | for i in 1 2 3 4 5 6; do |
13099 | 13161 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
13100 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
13101 | # Solaris 8's {/usr,}/bin/sh. | |
13102 | touch sub/conftst$i.h | |
13162 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
13163 | # Solaris 10 /bin/sh. | |
13164 | echo '/* dummy */' > sub/conftst$i.h | |
13103 | 13165 | done |
13104 | 13166 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
13105 | 13167 | |
13106 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
13168 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
13107 | 13169 | # mode. It turns out that the SunPro C++ compiler does not properly |
13108 | # handle `-M -o', and we need to detect this. Also, some Intel | |
13109 | # versions had trouble with output in subdirs | |
13170 | # handle '-M -o', and we need to detect this. Also, some Intel | |
13171 | # versions had trouble with output in subdirs. | |
13110 | 13172 | am__obj=sub/conftest.${OBJEXT-o} |
13111 | 13173 | am__minus_obj="-o $am__obj" |
13112 | 13174 | case $depmode in |
13115 | 13177 | test "$am__universal" = false || continue |
13116 | 13178 | ;; |
13117 | 13179 | nosideeffect) |
13118 | # after this tag, mechanisms are not by side-effect, so they'll | |
13119 | # only be used when explicitly requested | |
13180 | # After this tag, mechanisms are not by side-effect, so they'll | |
13181 | # only be used when explicitly requested. | |
13120 | 13182 | if test "x$enable_dependency_tracking" = xyes; then |
13121 | 13183 | continue |
13122 | 13184 | else |
13124 | 13186 | fi |
13125 | 13187 | ;; |
13126 | 13188 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
13127 | # This compiler won't grok `-c -o', but also, the minuso test has | |
13189 | # This compiler won't grok '-c -o', but also, the minuso test has | |
13128 | 13190 | # not run yet. These depmodes are late enough in the game, and |
13129 | 13191 | # so weak that their functioning should not be impacted. |
13130 | 13192 | am__obj=conftest.${OBJEXT-o} |
20080 | 20142 | fi |
20081 | 20143 | |
20082 | 20144 | |
20145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5 | |
20146 | $as_echo_n "checking for library containing setproctitle... " >&6; } | |
20147 | if ${ac_cv_search_setproctitle+:} false; then : | |
20148 | $as_echo_n "(cached) " >&6 | |
20149 | else | |
20150 | ac_func_search_save_LIBS=$LIBS | |
20151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20152 | /* end confdefs.h. */ | |
20153 | ||
20154 | /* Override any GCC internal prototype to avoid an error. | |
20155 | Use char because int might match the return type of a GCC | |
20156 | builtin and then its argument prototype would still apply. */ | |
20157 | #ifdef __cplusplus | |
20158 | extern "C" | |
20159 | #endif | |
20160 | char setproctitle (); | |
20161 | int | |
20162 | main () | |
20163 | { | |
20164 | return setproctitle (); | |
20165 | ; | |
20166 | return 0; | |
20167 | } | |
20168 | _ACEOF | |
20169 | for ac_lib in '' util bsd; do | |
20170 | if test -z "$ac_lib"; then | |
20171 | ac_res="none required" | |
20172 | else | |
20173 | ac_res=-l$ac_lib | |
20174 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
20175 | fi | |
20176 | if ac_fn_c_try_link "$LINENO"; then : | |
20177 | ac_cv_search_setproctitle=$ac_res | |
20178 | fi | |
20179 | rm -f core conftest.err conftest.$ac_objext \ | |
20180 | conftest$ac_exeext | |
20181 | if ${ac_cv_search_setproctitle+:} false; then : | |
20182 | break | |
20183 | fi | |
20184 | done | |
20185 | if ${ac_cv_search_setproctitle+:} false; then : | |
20186 | ||
20187 | else | |
20188 | ac_cv_search_setproctitle=no | |
20189 | fi | |
20190 | rm conftest.$ac_ext | |
20191 | LIBS=$ac_func_search_save_LIBS | |
20192 | fi | |
20193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5 | |
20194 | $as_echo "$ac_cv_search_setproctitle" >&6; } | |
20195 | ac_res=$ac_cv_search_setproctitle | |
20196 | if test "$ac_res" != no; then : | |
20197 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
20198 | ||
20199 | fi | |
20200 | ||
20083 | 20201 | ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" |
20084 | 20202 | if test "x$ac_cv_func_strlcpy" = xyes; then : |
20085 | 20203 | $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h |
20114 | 20232 | case " $LIBOBJS " in |
20115 | 20233 | *" fgetln.$ac_objext "* ) ;; |
20116 | 20234 | *) LIBOBJS="$LIBOBJS fgetln.$ac_objext" |
20235 | ;; | |
20236 | esac | |
20237 | ||
20238 | fi | |
20239 | ||
20240 | ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" | |
20241 | if test "x$ac_cv_func_setproctitle" = xyes; then : | |
20242 | $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h | |
20243 | ||
20244 | else | |
20245 | case " $LIBOBJS " in | |
20246 | *" setproctitle.$ac_objext "* ) ;; | |
20247 | *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" | |
20117 | 20248 | ;; |
20118 | 20249 | esac |
20119 | 20250 | |
20132 | 20263 | fi |
20133 | 20264 | done |
20134 | 20265 | |
20266 | ||
20267 | case " $LIBS " in | |
20268 | *\ -lbsd\ *) | |
20269 | ||
20270 | $as_echo "#define HAVE_LIBBSD 1" >>confdefs.h | |
20271 | ||
20272 | ;; | |
20273 | esac | |
20135 | 20274 | |
20136 | 20275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5 |
20137 | 20276 | $as_echo_n "checking for library containing __res_init... " >&6; } |
21929 | 22068 | LTLIBOBJS=$ac_ltlibobjs |
21930 | 22069 | |
21931 | 22070 | |
22071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
22072 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
22073 | if test -n "$am_sleep_pid"; then | |
22074 | # Hide warnings about reused PIDs. | |
22075 | wait $am_sleep_pid 2>/dev/null | |
22076 | fi | |
22077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
22078 | $as_echo "done" >&6; } | |
21932 | 22079 | if test -n "$EXEEXT"; then |
21933 | 22080 | am__EXEEXT_TRUE= |
21934 | 22081 | am__EXEEXT_FALSE='#' |
22446 | 22593 | # report actual input values of CONFIG_FILES etc. instead of their |
22447 | 22594 | # values after options handling. |
22448 | 22595 | ac_log=" |
22449 | This file was extended by lldpd $as_me 0.7.3, which was | |
22596 | This file was extended by lldpd $as_me 0.7.4, which was | |
22450 | 22597 | generated by GNU Autoconf 2.69. Invocation command line was |
22451 | 22598 | |
22452 | 22599 | CONFIG_FILES = $CONFIG_FILES |
22512 | 22659 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
22513 | 22660 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
22514 | 22661 | ac_cs_version="\\ |
22515 | lldpd config.status 0.7.3 | |
22662 | lldpd config.status 0.7.4 | |
22516 | 22663 | configured by $0, generated by GNU Autoconf 2.69, |
22517 | 22664 | with options \\"\$ac_cs_config\\" |
22518 | 22665 | |
23623 | 23770 | |
23624 | 23771 | case $ac_file$ac_mode in |
23625 | 23772 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
23626 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
23773 | # Older Autoconf quotes --file arguments for eval, but not when files | |
23627 | 23774 | # are listed without --file. Let's play safe and only enable the eval |
23628 | 23775 | # if we detect the quoting. |
23629 | 23776 | case $CONFIG_FILES in |
23636 | 23783 | # Strip MF so we end up with the name of the file. |
23637 | 23784 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
23638 | 23785 | # Check whether this is an Automake generated Makefile or not. |
23639 | # We used to match only the files named `Makefile.in', but | |
23786 | # We used to match only the files named 'Makefile.in', but | |
23640 | 23787 | # some people rename them; so instead we look at the file content. |
23641 | 23788 | # Grep'ing the first line is not enough: some people post-process |
23642 | 23789 | # each Makefile.in and add a new line on top of each file to say so. |
23670 | 23817 | continue |
23671 | 23818 | fi |
23672 | 23819 | # Extract the definition of DEPDIR, am__include, and am__quote |
23673 | # from the Makefile without running `make'. | |
23820 | # from the Makefile without running 'make'. | |
23674 | 23821 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
23675 | 23822 | test -z "$DEPDIR" && continue |
23676 | 23823 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
23677 | test -z "am__include" && continue | |
23824 | test -z "$am__include" && continue | |
23678 | 23825 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
23679 | # When using ansi2knr, U may be empty or an underscore; expand it | |
23680 | U=`sed -n 's/^U = //p' < "$mf"` | |
23681 | 23826 | # Find all dependency output files, they are included files with |
23682 | 23827 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
23683 | 23828 | # simplest approach to changing $(DEPDIR) to its actual value in the |
23684 | 23829 | # expansion. |
23685 | 23830 | for file in `sed -n " |
23686 | 23831 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
23687 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
23832 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
23688 | 23833 | # Make sure the directory exists. |
23689 | 23834 | test -f "$dirpart/$file" && continue |
23690 | 23835 | fdir=`$as_dirname -- "$file" || |
94 | 94 | AC_CONFIG_LIBOBJ_DIR([src/compat]) |
95 | 95 | AC_FUNC_MALLOC |
96 | 96 | AC_FUNC_REALLOC |
97 | AC_REPLACE_FUNCS([strlcpy strnlen fgetln]) | |
97 | AC_SEARCH_LIBS([setproctitle], [util bsd]) | |
98 | AC_REPLACE_FUNCS([strlcpy strnlen fgetln setproctitle]) | |
98 | 99 | AC_CHECK_FUNCS([setresuid setresgid]) |
100 | ||
101 | case " $LIBS " in | |
102 | *\ -lbsd\ *) | |
103 | AC_DEFINE(HAVE_LIBBSD, 1, [Define if libbsd is used]) | |
104 | ;; | |
105 | esac | |
99 | 106 | |
100 | 107 | AC_SEARCH_LIBS([__res_init], resolv bind, AC_DEFINE([HAVE_RES_INIT], 1, [Define to indicate that res_init() exists]), |
101 | 108 | AC_SEARCH_LIBS([res_9_init], resolv bind, AC_DEFINE([HAVE_RES_INIT], 1, [Define to indicate that res_init() exists]), |
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, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010, | |
6 | # 2011, 2012 Free Software Foundation, Inc. | |
3 | scriptversion=2013-05-30.07; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
7 | 6 | |
8 | 7 | # This program is free software; you can redistribute it and/or modify |
9 | 8 | # it under the terms of the GNU General Public License as published by |
27 | 26 | |
28 | 27 | case $1 in |
29 | 28 | '') |
30 | echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
31 | exit 1; | |
32 | ;; | |
29 | echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
30 | exit 1; | |
31 | ;; | |
33 | 32 | -h | --h*) |
34 | 33 | cat <<\EOF |
35 | 34 | Usage: depcomp [--help] [--version] PROGRAM [ARGS] |
56 | 55 | ;; |
57 | 56 | esac |
58 | 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 | ||
59 | 106 | # A tabulation character. |
60 | 107 | tab=' ' |
61 | 108 | # A newline character. |
62 | 109 | nl=' |
63 | 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} | |
64 | 117 | |
65 | 118 | if test -z "$depmode" || test -z "$source" || test -z "$object"; then |
66 | 119 | echo "depcomp: Variables source, object and depmode must be set" 1>&2 |
73 | 126 | tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} |
74 | 127 | |
75 | 128 | rm -f "$tmpdepfile" |
129 | ||
130 | # Avoid interferences from the environment. | |
131 | gccflag= dashmflag= | |
76 | 132 | |
77 | 133 | # Some modes work just like other modes, but use different flags. We |
78 | 134 | # parameterize here, but still list the modes in the big case below, |
85 | 141 | fi |
86 | 142 | |
87 | 143 | if test "$depmode" = dashXmstdout; then |
88 | # This is just like dashmstdout with a different argument. | |
89 | dashmflag=-xM | |
90 | depmode=dashmstdout | |
144 | # This is just like dashmstdout with a different argument. | |
145 | dashmflag=-xM | |
146 | depmode=dashmstdout | |
91 | 147 | fi |
92 | 148 | |
93 | 149 | cygpath_u="cygpath -u -f -" |
94 | 150 | if test "$depmode" = msvcmsys; then |
95 | # This is just like msvisualcpp but w/o cygpath translation. | |
96 | # Just convert the backslash-escaped backslashes to single forward | |
97 | # slashes to satisfy depend.m4 | |
98 | cygpath_u='sed s,\\\\,/,g' | |
99 | 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 | |
100 | 156 | fi |
101 | 157 | |
102 | 158 | if test "$depmode" = msvc7msys; then |
103 | # This is just like msvc7 but w/o cygpath translation. | |
104 | # Just convert the backslash-escaped backslashes to single forward | |
105 | # slashes to satisfy depend.m4 | |
106 | cygpath_u='sed s,\\\\,/,g' | |
107 | 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 | |
108 | 164 | fi |
109 | 165 | |
110 | 166 | if test "$depmode" = xlc; then |
111 | # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. | |
112 | gccflag=-qmakedep=gcc,-MF | |
113 | depmode=gcc | |
167 | # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. | |
168 | gccflag=-qmakedep=gcc,-MF | |
169 | depmode=gcc | |
114 | 170 | fi |
115 | 171 | |
116 | 172 | case "$depmode" in |
133 | 189 | done |
134 | 190 | "$@" |
135 | 191 | stat=$? |
136 | if test $stat -eq 0; then : | |
137 | else | |
192 | if test $stat -ne 0; then | |
138 | 193 | rm -f "$tmpdepfile" |
139 | 194 | exit $stat |
140 | 195 | fi |
142 | 197 | ;; |
143 | 198 | |
144 | 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). | |
145 | 203 | ## There are various ways to get dependency output from gcc. Here's |
146 | 204 | ## why we pick this rather obscure method: |
147 | 205 | ## - Don't want to use -MD because we'd like the dependencies to end |
148 | 206 | ## up in a subdir. Having to rename by hand is ugly. |
149 | 207 | ## (We might end up doing this anyway to support other compilers.) |
150 | 208 | ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like |
151 | ## -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. | |
152 | 211 | ## - Using -M directly means running the compiler twice (even worse |
153 | 212 | ## than renaming). |
154 | 213 | if test -z "$gccflag"; then |
156 | 215 | fi |
157 | 216 | "$@" -Wp,"$gccflag$tmpdepfile" |
158 | 217 | stat=$? |
159 | if test $stat -eq 0; then : | |
160 | else | |
218 | if test $stat -ne 0; then | |
161 | 219 | rm -f "$tmpdepfile" |
162 | 220 | exit $stat |
163 | 221 | fi |
164 | 222 | rm -f "$depfile" |
165 | 223 | echo "$object : \\" > "$depfile" |
166 | alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
167 | ## 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. | |
168 | 226 | sed -e 's/^[^:]*: / /' \ |
169 | 227 | -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" |
170 | 228 | ## This next piece of magic avoids the "deleted header file" problem. |
173 | 231 | ## typically no way to rebuild the header). We avoid this by adding |
174 | 232 | ## dummy dependencies for each header file. Too bad gcc doesn't do |
175 | 233 | ## this for us directly. |
176 | tr ' ' "$nl" < "$tmpdepfile" | | |
177 | 234 | ## Some versions of gcc put a space before the ':'. On the theory |
178 | 235 | ## that the space means something, we add a space to the output as |
179 | 236 | ## well. hp depmode also adds that space, but also prefixes the VPATH |
180 | 237 | ## to the object. Take care to not repeat it in the output. |
181 | 238 | ## Some versions of the HPUX 10.20 sed can't process this invocation |
182 | 239 | ## correctly. Breaking it into two sed invocations is a workaround. |
183 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | |
184 | | sed -e 's/$/ :/' >> "$depfile" | |
240 | tr ' ' "$nl" < "$tmpdepfile" \ | |
241 | | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | |
242 | | sed -e 's/$/ :/' >> "$depfile" | |
185 | 243 | rm -f "$tmpdepfile" |
186 | 244 | ;; |
187 | 245 | |
199 | 257 | "$@" -MDupdate "$tmpdepfile" |
200 | 258 | fi |
201 | 259 | stat=$? |
202 | if test $stat -eq 0; then : | |
203 | else | |
260 | if test $stat -ne 0; then | |
204 | 261 | rm -f "$tmpdepfile" |
205 | 262 | exit $stat |
206 | 263 | fi |
208 | 265 | |
209 | 266 | if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files |
210 | 267 | echo "$object : \\" > "$depfile" |
211 | ||
212 | 268 | # Clip off the initial element (the dependent). Don't try to be |
213 | 269 | # clever and replace this with sed code, as IRIX sed won't handle |
214 | 270 | # lines with more than a fixed number of characters (4096 in |
216 | 272 | # the IRIX cc adds comments like '#:fec' to the end of the |
217 | 273 | # dependency line. |
218 | 274 | tr ' ' "$nl" < "$tmpdepfile" \ |
219 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ | |
220 | tr "$nl" ' ' >> "$depfile" | |
275 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | |
276 | | tr "$nl" ' ' >> "$depfile" | |
221 | 277 | echo >> "$depfile" |
222 | ||
223 | 278 | # The second pass generates a dummy entry for each header file. |
224 | 279 | tr ' ' "$nl" < "$tmpdepfile" \ |
225 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
226 | >> "$depfile" | |
280 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
281 | >> "$depfile" | |
227 | 282 | else |
228 | # The sourcefile does not contain any dependencies, so just | |
229 | # store a dummy comment line, to avoid errors with the Makefile | |
230 | # "include basename.Plo" scheme. | |
231 | echo "#dummy" > "$depfile" | |
283 | make_dummy_depfile | |
232 | 284 | fi |
233 | 285 | rm -f "$tmpdepfile" |
234 | 286 | ;; |
246 | 298 | # current directory. Also, the AIX compiler puts '$object:' at the |
247 | 299 | # start of each line; $object doesn't have directory information. |
248 | 300 | # Version 6 uses the directory in both cases. |
249 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
250 | test "x$dir" = "x$object" && dir= | |
251 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
301 | set_dir_from "$object" | |
302 | set_base_from "$object" | |
252 | 303 | if test "$libtool" = yes; then |
253 | 304 | tmpdepfile1=$dir$base.u |
254 | 305 | tmpdepfile2=$base.u |
261 | 312 | "$@" -M |
262 | 313 | fi |
263 | 314 | stat=$? |
264 | ||
265 | if test $stat -eq 0; then : | |
266 | else | |
315 | if test $stat -ne 0; then | |
267 | 316 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" |
268 | 317 | exit $stat |
269 | 318 | fi |
272 | 321 | do |
273 | 322 | test -f "$tmpdepfile" && break |
274 | 323 | done |
275 | if test -f "$tmpdepfile"; then | |
276 | # Each line is of the form 'foo.o: dependent.h'. | |
277 | # Do two passes, one to just change these to | |
278 | # '$object: dependent.h' and one to simply 'dependent.h:'. | |
279 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
280 | sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
281 | else | |
282 | # The sourcefile does not contain any dependencies, so just | |
283 | # store a dummy comment line, to avoid errors with the Makefile | |
284 | # "include basename.Plo" scheme. | |
285 | echo "#dummy" > "$depfile" | |
286 | 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" | |
287 | 355 | rm -f "$tmpdepfile" |
288 | 356 | ;; |
289 | 357 | |
290 | icc) | |
291 | # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'. | |
292 | # However on | |
293 | # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c | |
294 | # ICC 7.0 will fill foo.d with something like | |
295 | # foo.o: sub/foo.c | |
296 | # foo.o: sub/foo.h | |
297 | # which is wrong. We want | |
298 | # sub/foo.o: sub/foo.c | |
299 | # sub/foo.o: sub/foo.h | |
300 | # sub/foo.c: | |
301 | # sub/foo.h: | |
302 | # 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 | |
303 | 368 | # foo.o: sub/foo.c sub/foo.h |
304 | # and will wrap long lines using '\': | |
369 | # and will wrap long lines using '\' : | |
305 | 370 | # foo.o: sub/foo.c ... \ |
306 | 371 | # sub/foo.h ... \ |
307 | 372 | # ... |
308 | # tcc 0.9.26 (FIXME still under development at the moment of writing) | |
309 | # will emit a similar output, but also prepend the continuation lines | |
310 | # with horizontal tabulation characters. | |
311 | "$@" -MD -MF "$tmpdepfile" | |
312 | stat=$? | |
313 | if test $stat -eq 0; then : | |
314 | 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 | |
315 | 418 | rm -f "$tmpdepfile" |
316 | 419 | exit $stat |
317 | 420 | fi |
318 | 421 | rm -f "$depfile" |
319 | # Each line is of the form 'foo.o: dependent.h', | |
320 | # 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 \'. | |
321 | 424 | # Do two passes, one to just change these to |
322 | # '$object: dependent.h' and one to simply 'dependent.h:'. | |
323 | sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \ | |
324 | < "$tmpdepfile" > "$depfile" | |
325 | sed ' | |
326 | s/[ '"$tab"'][ '"$tab"']*/ /g | |
327 | s/^ *// | |
328 | s/ *\\*$// | |
329 | s/^[^:]*: *// | |
330 | /^$/d | |
331 | /:$/d | |
332 | s/$/ :/ | |
333 | ' < "$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" | |
334 | 431 | rm -f "$tmpdepfile" |
335 | 432 | ;; |
336 | 433 | |
341 | 438 | # 'foo.d', which lands next to the object file, wherever that |
342 | 439 | # happens to be. |
343 | 440 | # Much of this is similar to the tru64 case; see comments there. |
344 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
345 | test "x$dir" = "x$object" && dir= | |
346 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
441 | set_dir_from "$object" | |
442 | set_base_from "$object" | |
347 | 443 | if test "$libtool" = yes; then |
348 | 444 | tmpdepfile1=$dir$base.d |
349 | 445 | tmpdepfile2=$dir.libs/$base.d |
354 | 450 | "$@" +Maked |
355 | 451 | fi |
356 | 452 | stat=$? |
357 | if test $stat -eq 0; then : | |
358 | else | |
453 | if test $stat -ne 0; then | |
359 | 454 | rm -f "$tmpdepfile1" "$tmpdepfile2" |
360 | 455 | exit $stat |
361 | 456 | fi |
365 | 460 | test -f "$tmpdepfile" && break |
366 | 461 | done |
367 | 462 | if test -f "$tmpdepfile"; then |
368 | sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" | |
463 | sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" | |
369 | 464 | # Add 'dependent.h:' lines. |
370 | 465 | sed -ne '2,${ |
371 | s/^ *// | |
372 | s/ \\*$// | |
373 | s/$/:/ | |
374 | p | |
375 | }' "$tmpdepfile" >> "$depfile" | |
466 | s/^ *// | |
467 | s/ \\*$// | |
468 | s/$/:/ | |
469 | p | |
470 | }' "$tmpdepfile" >> "$depfile" | |
376 | 471 | else |
377 | echo "#dummy" > "$depfile" | |
472 | make_dummy_depfile | |
378 | 473 | fi |
379 | 474 | rm -f "$tmpdepfile" "$tmpdepfile2" |
380 | 475 | ;; |
381 | 476 | |
382 | 477 | tru64) |
383 | # The Tru64 compiler uses -MD to generate dependencies as a side | |
384 | # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. | |
385 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | |
386 | # dependencies in 'foo.d' instead, so we check for that too. | |
387 | # Subdirectories are respected. | |
388 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
389 | test "x$dir" = "x$object" && dir= | |
390 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
391 | ||
392 | if test "$libtool" = yes; then | |
393 | # With Tru64 cc, shared objects can also be used to make a | |
394 | # static library. This mechanism is used in libtool 1.4 series to | |
395 | # handle both shared and static libraries in a single compilation. | |
396 | # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. | |
397 | # | |
398 | # With libtool 1.5 this exception was removed, and libtool now | |
399 | # generates 2 separate objects for the 2 libraries. These two | |
400 | # compilations output dependencies in $dir.libs/$base.o.d and | |
401 | # in $dir$base.o.d. We have to check for both files, because | |
402 | # one of the two compilations can be disabled. We should prefer | |
403 | # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | |
404 | # automatically cleaned when .libs/ is deleted, while ignoring | |
405 | # the former would cause a distcleancheck panic. | |
406 | tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 | |
407 | tmpdepfile2=$dir$base.o.d # libtool 1.5 | |
408 | tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 | |
409 | tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 | |
410 | "$@" -Wc,-MD | |
411 | else | |
412 | tmpdepfile1=$dir$base.o.d | |
413 | tmpdepfile2=$dir$base.d | |
414 | tmpdepfile3=$dir$base.d | |
415 | tmpdepfile4=$dir$base.d | |
416 | "$@" -MD | |
417 | fi | |
418 | ||
419 | stat=$? | |
420 | if test $stat -eq 0; then : | |
421 | else | |
422 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
423 | exit $stat | |
424 | fi | |
425 | ||
426 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
427 | do | |
428 | test -f "$tmpdepfile" && break | |
429 | done | |
430 | if test -f "$tmpdepfile"; then | |
431 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
432 | sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
433 | else | |
434 | echo "#dummy" > "$depfile" | |
435 | fi | |
436 | rm -f "$tmpdepfile" | |
437 | ;; | |
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 | ;; | |
438 | 518 | |
439 | 519 | msvc7) |
440 | 520 | if test "$libtool" = yes; then |
445 | 525 | "$@" $showIncludes > "$tmpdepfile" |
446 | 526 | stat=$? |
447 | 527 | grep -v '^Note: including file: ' "$tmpdepfile" |
448 | if test "$stat" = 0; then : | |
449 | else | |
528 | if test $stat -ne 0; then | |
450 | 529 | rm -f "$tmpdepfile" |
451 | 530 | exit $stat |
452 | 531 | fi |
472 | 551 | G |
473 | 552 | p |
474 | 553 | }' >> "$depfile" |
554 | echo >> "$depfile" # make sure the fragment doesn't end with a backslash | |
475 | 555 | rm -f "$tmpdepfile" |
476 | 556 | ;; |
477 | 557 | |
523 | 603 | # in the target name. This is to cope with DOS-style filenames: |
524 | 604 | # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. |
525 | 605 | "$@" $dashmflag | |
526 | sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" | |
606 | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" | |
527 | 607 | rm -f "$depfile" |
528 | 608 | cat < "$tmpdepfile" > "$depfile" |
529 | tr ' ' "$nl" < "$tmpdepfile" | \ | |
530 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
531 | ## correctly. Breaking it into two sed invocations is a workaround. | |
532 | 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" | |
533 | 614 | rm -f "$tmpdepfile" |
534 | 615 | ;; |
535 | 616 | |
582 | 663 | # makedepend may prepend the VPATH from the source file name to the object. |
583 | 664 | # No need to regex-escape $object, excess matching of '.' is harmless. |
584 | 665 | sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" |
585 | sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \ | |
586 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
587 | ## correctly. Breaking it into two sed invocations is a workaround. | |
588 | 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" | |
589 | 672 | rm -f "$tmpdepfile" "$tmpdepfile".bak |
590 | 673 | ;; |
591 | 674 | |
621 | 704 | esac |
622 | 705 | done |
623 | 706 | |
624 | "$@" -E | | |
625 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
626 | -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | | |
627 | 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" | |
628 | 711 | rm -f "$depfile" |
629 | 712 | echo "$object : \\" > "$depfile" |
630 | 713 | cat < "$tmpdepfile" >> "$depfile" |
656 | 739 | shift |
657 | 740 | ;; |
658 | 741 | "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") |
659 | set fnord "$@" | |
660 | shift | |
661 | shift | |
662 | ;; | |
742 | set fnord "$@" | |
743 | shift | |
744 | shift | |
745 | ;; | |
663 | 746 | *) |
664 | set fnord "$@" "$arg" | |
665 | shift | |
666 | shift | |
667 | ;; | |
747 | set fnord "$@" "$arg" | |
748 | shift | |
749 | shift | |
750 | ;; | |
668 | 751 | esac |
669 | 752 | done |
670 | 753 | "$@" -E 2>/dev/null | |
0 | 0 | #!/bin/sh |
1 | 1 | # install - install a program, script, or datafile |
2 | 2 | |
3 | scriptversion=2011-01-19.21; # UTC | |
3 | scriptversion=2011-11-20.07; # UTC | |
4 | 4 | |
5 | 5 | # This originates from X11R5 (mit/util/scripts/install.sh), which was |
6 | 6 | # later released in X11R6 (xc/config/util/install.sh) with the |
34 | 34 | # FSF changes to this file are in the public domain. |
35 | 35 | # |
36 | 36 | # Calling this script install-sh is preferred over install.sh, to prevent |
37 | # `make' implicit rules from creating a file called install from it | |
37 | # 'make' implicit rules from creating a file called install from it | |
38 | 38 | # when there is no Makefile. |
39 | 39 | # |
40 | 40 | # This script is compatible with the BSD install script, but was written |
155 | 155 | -s) stripcmd=$stripprog;; |
156 | 156 | |
157 | 157 | -t) dst_arg=$2 |
158 | # Protect names problematic for `test' and other utilities. | |
158 | # Protect names problematic for 'test' and other utilities. | |
159 | 159 | case $dst_arg in |
160 | 160 | -* | [=\(\)!]) dst_arg=./$dst_arg;; |
161 | 161 | esac |
189 | 189 | fi |
190 | 190 | shift # arg |
191 | 191 | dst_arg=$arg |
192 | # Protect names problematic for `test' and other utilities. | |
192 | # Protect names problematic for 'test' and other utilities. | |
193 | 193 | case $dst_arg in |
194 | 194 | -* | [=\(\)!]) dst_arg=./$dst_arg;; |
195 | 195 | esac |
201 | 201 | echo "$0: no input file specified." >&2 |
202 | 202 | exit 1 |
203 | 203 | fi |
204 | # It's OK to call `install-sh -d' without argument. | |
204 | # It's OK to call 'install-sh -d' without argument. | |
205 | 205 | # This can happen when creating conditional directories. |
206 | 206 | exit 0 |
207 | 207 | fi |
239 | 239 | |
240 | 240 | for src |
241 | 241 | do |
242 | # Protect names problematic for `test' and other utilities. | |
242 | # Protect names problematic for 'test' and other utilities. | |
243 | 243 | case $src in |
244 | 244 | -* | [=\(\)!]) src=./$src;; |
245 | 245 | esac |
353 | 353 | if test -z "$dir_arg" || { |
354 | 354 | # Check for POSIX incompatibilities with -m. |
355 | 355 | # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or |
356 | # other-writeable bit of parent directory when it shouldn't. | |
356 | # other-writable bit of parent directory when it shouldn't. | |
357 | 357 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. |
358 | 358 | ls_ld_tmpdir=`ls -ld "$tmpdir"` |
359 | 359 | case $ls_ld_tmpdir in |
0 | Changes in version 2.0.22-stable (?? ??? 2013) | |
1 | ||
2 | (As of 66dacfa2a58602d82e0413c8217ec38c9871d5cf.) | |
3 | ||
4 | BUGFIXES (evhttp, crash fix) | |
5 | o fix #73 and fix http_connection_fail_test to catch it (b618204 Greg Hazel) | |
6 | ||
7 | BUGFIXES (compilation and portability) | |
8 | o Fix compilation with WIN32_HAVE_CONDITION_VARIABLES enabled (7e45739) | |
9 | o Fix missing AC_PROG_SED on older Autoconfs (9ab2b3f Tay Ray Chuan) | |
10 | o Backport libevent to vanilla Autoconf 2.59 (as used in RHEL5) (74d4c44 Kevin Bowling) | |
11 | o Use AC_CONFIG_HEADERS in place of AM_CONFIG_HEADERS for autmake 1.13 compat (817ea36) | |
12 | o Rename configure.in to configure.ac to appease newer autoconfs (0c79787) | |
13 | o Avoid using top_srcdir in TESTS: new automakes do not like this (a55514e) | |
14 | ||
15 | BUGFIXES (resource leaks/lock errors on error) | |
16 | o Avoid leaking fds on evconnlistener with no callback set (69db261) | |
17 | o Avoid double-close on getsockname error in evutil_ersatz_socketpair (0a822a6) | |
18 | o Fix a locking error in bufferevent_socket_get_dns_error. (0a5eb2e) | |
19 | ||
20 | DOCUMENTATION FIXES | |
21 | o Fix a mistake in evbuffer_remove() arguments in example http server code (c322c20 Gyepi Sam) | |
22 | o Fix a typo in a comment in buffer.h. Spotted by Alt_F4 (773b0a5) | |
23 | ||
24 | ||
25 | ||
0 | 26 | Changes in version 2.0.21-stable (18 Nov 2012) |
1 | 27 | BUGFIXES: |
2 | 28 | o ssl: Don't discard SSL read event when timeout and read come close together (576b29f) |
0 | # Makefile.in generated by automake 1.11.6 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.3 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
5 | # Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
24 | 23 | |
25 | 24 | |
26 | 25 | VPATH = @srcdir@ |
27 | am__make_dryrun = \ | |
28 | { \ | |
29 | am__dry=no; \ | |
26 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
27 | am__make_running_with_option = \ | |
28 | case $${target_option-} in \ | |
29 | ?) ;; \ | |
30 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
31 | "target option '$${target_option-}' specified" >&2; \ | |
32 | exit 1;; \ | |
33 | esac; \ | |
34 | has_opt=no; \ | |
35 | sane_makeflags=$$MAKEFLAGS; \ | |
36 | if $(am__is_gnu_make); then \ | |
37 | sane_makeflags=$$MFLAGS; \ | |
38 | else \ | |
30 | 39 | case $$MAKEFLAGS in \ |
31 | 40 | *\\[\ \ ]*) \ |
32 | echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
33 | | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
34 | *) \ | |
35 | for am__flg in $$MAKEFLAGS; do \ | |
36 | case $$am__flg in \ | |
37 | *=*|--*) ;; \ | |
38 | *n*) am__dry=yes; break;; \ | |
39 | esac; \ | |
40 | done;; \ | |
41 | bs=\\; \ | |
42 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
43 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
41 | 44 | esac; \ |
42 | test $$am__dry = yes; \ | |
43 | } | |
45 | fi; \ | |
46 | skip_next=no; \ | |
47 | strip_trailopt () \ | |
48 | { \ | |
49 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
50 | }; \ | |
51 | for flg in $$sane_makeflags; do \ | |
52 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
53 | case $$flg in \ | |
54 | *=*|--*) continue;; \ | |
55 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
56 | -*I?*) strip_trailopt 'I';; \ | |
57 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
58 | -*O?*) strip_trailopt 'O';; \ | |
59 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
60 | -*l?*) strip_trailopt 'l';; \ | |
61 | -[dEDm]) skip_next=yes;; \ | |
62 | -[JT]) skip_next=yes;; \ | |
63 | esac; \ | |
64 | case $$flg in \ | |
65 | *$$target_option*) has_opt=yes; break;; \ | |
66 | esac; \ | |
67 | done; \ | |
68 | test $$has_opt = yes | |
69 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
70 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
44 | 71 | pkgdatadir = $(datadir)/@PACKAGE@ |
45 | 72 | pkgincludedir = $(includedir)/@PACKAGE@ |
46 | 73 | pkglibdir = $(libdir)/@PACKAGE@ |
72 | 99 | @SIGNAL_SUPPORT_TRUE@am__append_11 = signal.c |
73 | 100 | @INSTALL_LIBEVENT_FALSE@am__append_12 = $(EVENT1_HDRS) |
74 | 101 | subdir = . |
75 | DIST_COMMON = README $(am__configure_deps) \ | |
76 | $(am__dist_bin_SCRIPTS_DIST) $(am__include_HEADERS_DIST) \ | |
77 | $(am__noinst_HEADERS_DIST) $(srcdir)/../compile \ | |
78 | $(srcdir)/../config.guess $(srcdir)/../config.sub \ | |
79 | $(srcdir)/../depcomp $(srcdir)/../install-sh \ | |
80 | $(srcdir)/../ltmain.sh $(srcdir)/../missing \ | |
81 | $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ | |
102 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
103 | $(top_srcdir)/configure $(am__configure_deps) \ | |
82 | 104 | $(srcdir)/config.h.in $(srcdir)/libevent.pc.in \ |
83 | 105 | $(srcdir)/libevent_openssl.pc.in \ |
84 | $(srcdir)/libevent_pthreads.pc.in $(top_srcdir)/configure \ | |
85 | ChangeLog epoll_sub.c | |
106 | $(srcdir)/libevent_pthreads.pc.in epoll_sub.c \ | |
107 | $(am__dist_bin_SCRIPTS_DIST) $(top_srcdir)/../depcomp \ | |
108 | $(am__include_HEADERS_DIST) $(am__noinst_HEADERS_DIST) \ | |
109 | ChangeLog README $(top_srcdir)/../compile \ | |
110 | $(top_srcdir)/../config.guess $(top_srcdir)/../config.sub \ | |
111 | $(top_srcdir)/../install-sh $(top_srcdir)/../ltmain.sh \ | |
112 | $(top_srcdir)/../missing | |
86 | 113 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
87 | am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ | |
88 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ | |
89 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | |
90 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.in | |
114 | am__aclocal_m4_deps = $(top_srcdir)/m4/ac_backport_259_ssizet.m4 \ | |
115 | $(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/libtool.m4 \ | |
116 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | |
117 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | |
118 | $(top_srcdir)/configure.ac | |
91 | 119 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
92 | 120 | $(ACLOCAL_M4) |
93 | 121 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
160 | 188 | am__objects_10 = event_tagging.lo http.lo evdns.lo evrpc.lo |
161 | 189 | am_libevent_la_OBJECTS = $(am__objects_9) $(am__objects_10) |
162 | 190 | libevent_la_OBJECTS = $(am_libevent_la_OBJECTS) |
163 | libevent_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ | |
191 | AM_V_lt = $(am__v_lt_@AM_V@) | |
192 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) | |
193 | am__v_lt_0 = --silent | |
194 | am__v_lt_1 = | |
195 | libevent_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | |
164 | 196 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
165 | 197 | $(libevent_la_LDFLAGS) $(LDFLAGS) -o $@ |
166 | 198 | @INSTALL_LIBEVENT_FALSE@am_libevent_la_rpath = |
175 | 207 | bufferevent_async.c |
176 | 208 | am_libevent_core_la_OBJECTS = $(am__objects_9) |
177 | 209 | libevent_core_la_OBJECTS = $(am_libevent_core_la_OBJECTS) |
178 | libevent_core_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ | |
179 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | |
180 | $(libevent_core_la_LDFLAGS) $(LDFLAGS) -o $@ | |
210 | libevent_core_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | |
211 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | |
212 | $(AM_CFLAGS) $(CFLAGS) $(libevent_core_la_LDFLAGS) $(LDFLAGS) \ | |
213 | -o $@ | |
181 | 214 | @INSTALL_LIBEVENT_FALSE@am_libevent_core_la_rpath = |
182 | 215 | @INSTALL_LIBEVENT_TRUE@am_libevent_core_la_rpath = -rpath $(libdir) |
183 | 216 | @BUILD_WITH_NO_UNDEFINED_TRUE@am__DEPENDENCIES_2 = libevent_core.la |
185 | 218 | $(am__DEPENDENCIES_1) |
186 | 219 | am_libevent_extra_la_OBJECTS = $(am__objects_10) |
187 | 220 | libevent_extra_la_OBJECTS = $(am_libevent_extra_la_OBJECTS) |
188 | libevent_extra_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ | |
189 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | |
190 | $(libevent_extra_la_LDFLAGS) $(LDFLAGS) -o $@ | |
221 | libevent_extra_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | |
222 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | |
223 | $(AM_CFLAGS) $(CFLAGS) $(libevent_extra_la_LDFLAGS) $(LDFLAGS) \ | |
224 | -o $@ | |
191 | 225 | @INSTALL_LIBEVENT_FALSE@am_libevent_extra_la_rpath = |
192 | 226 | @INSTALL_LIBEVENT_TRUE@am_libevent_extra_la_rpath = -rpath $(libdir) |
193 | 227 | @OPENSSL_TRUE@libevent_openssl_la_DEPENDENCIES = \ |
195 | 229 | am__libevent_openssl_la_SOURCES_DIST = bufferevent_openssl.c |
196 | 230 | @OPENSSL_TRUE@am_libevent_openssl_la_OBJECTS = bufferevent_openssl.lo |
197 | 231 | libevent_openssl_la_OBJECTS = $(am_libevent_openssl_la_OBJECTS) |
198 | libevent_openssl_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ | |
199 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | |
200 | $(libevent_openssl_la_LDFLAGS) $(LDFLAGS) -o $@ | |
232 | libevent_openssl_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | |
233 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | |
234 | $(AM_CFLAGS) $(CFLAGS) $(libevent_openssl_la_LDFLAGS) \ | |
235 | $(LDFLAGS) -o $@ | |
201 | 236 | @INSTALL_LIBEVENT_FALSE@@OPENSSL_TRUE@am_libevent_openssl_la_rpath = |
202 | 237 | @INSTALL_LIBEVENT_TRUE@@OPENSSL_TRUE@am_libevent_openssl_la_rpath = \ |
203 | 238 | @INSTALL_LIBEVENT_TRUE@@OPENSSL_TRUE@ -rpath $(libdir) |
206 | 241 | am__libevent_pthreads_la_SOURCES_DIST = evthread_pthread.c |
207 | 242 | @PTHREADS_TRUE@am_libevent_pthreads_la_OBJECTS = evthread_pthread.lo |
208 | 243 | libevent_pthreads_la_OBJECTS = $(am_libevent_pthreads_la_OBJECTS) |
209 | libevent_pthreads_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ | |
210 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | |
211 | $(libevent_pthreads_la_LDFLAGS) $(LDFLAGS) -o $@ | |
244 | libevent_pthreads_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | |
245 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | |
246 | $(AM_CFLAGS) $(CFLAGS) $(libevent_pthreads_la_LDFLAGS) \ | |
247 | $(LDFLAGS) -o $@ | |
212 | 248 | @INSTALL_LIBEVENT_FALSE@@PTHREADS_TRUE@am_libevent_pthreads_la_rpath = |
213 | 249 | @INSTALL_LIBEVENT_TRUE@@PTHREADS_TRUE@am_libevent_pthreads_la_rpath = \ |
214 | 250 | @INSTALL_LIBEVENT_TRUE@@PTHREADS_TRUE@ -rpath $(libdir) |
215 | 251 | am__dist_bin_SCRIPTS_DIST = event_rpcgen.py |
216 | 252 | SCRIPTS = $(dist_bin_SCRIPTS) |
253 | AM_V_P = $(am__v_P_@AM_V@) | |
254 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
255 | am__v_P_0 = false | |
256 | am__v_P_1 = : | |
257 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
258 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
259 | am__v_GEN_0 = @echo " GEN " $@; | |
260 | am__v_GEN_1 = | |
261 | AM_V_at = $(am__v_at_@AM_V@) | |
262 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
263 | am__v_at_0 = @ | |
264 | am__v_at_1 = | |
217 | 265 | DEFAULT_INCLUDES = -I.@am__isrc@ |
218 | 266 | depcomp = $(SHELL) $(top_srcdir)/../depcomp |
219 | 267 | am__depfiles_maybe = depfiles |
220 | 268 | am__mv = mv -f |
221 | 269 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ |
222 | 270 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
223 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | |
224 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | |
225 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
271 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | |
272 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | |
273 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | |
274 | $(AM_CFLAGS) $(CFLAGS) | |
275 | AM_V_CC = $(am__v_CC_@AM_V@) | |
276 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) | |
277 | am__v_CC_0 = @echo " CC " $@; | |
278 | am__v_CC_1 = | |
226 | 279 | CCLD = $(CC) |
227 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | |
228 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | |
229 | $(LDFLAGS) -o $@ | |
280 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | |
281 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | |
282 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | |
283 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) | |
284 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) | |
285 | am__v_CCLD_0 = @echo " CCLD " $@; | |
286 | am__v_CCLD_1 = | |
230 | 287 | SOURCES = $(libevent_la_SOURCES) $(libevent_core_la_SOURCES) \ |
231 | 288 | $(libevent_extra_la_SOURCES) $(libevent_openssl_la_SOURCES) \ |
232 | 289 | $(libevent_pthreads_la_SOURCES) |
235 | 292 | $(libevent_extra_la_SOURCES) \ |
236 | 293 | $(am__libevent_openssl_la_SOURCES_DIST) \ |
237 | 294 | $(am__libevent_pthreads_la_SOURCES_DIST) |
238 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | |
239 | html-recursive info-recursive install-data-recursive \ | |
240 | install-dvi-recursive install-exec-recursive \ | |
241 | install-html-recursive install-info-recursive \ | |
242 | install-pdf-recursive install-ps-recursive install-recursive \ | |
243 | installcheck-recursive installdirs-recursive pdf-recursive \ | |
244 | ps-recursive uninstall-recursive | |
295 | RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ | |
296 | ctags-recursive dvi-recursive html-recursive info-recursive \ | |
297 | install-data-recursive install-dvi-recursive \ | |
298 | install-exec-recursive install-html-recursive \ | |
299 | install-info-recursive install-pdf-recursive \ | |
300 | install-ps-recursive install-recursive installcheck-recursive \ | |
301 | installdirs-recursive pdf-recursive ps-recursive \ | |
302 | tags-recursive uninstall-recursive | |
245 | 303 | am__can_run_installinfo = \ |
246 | 304 | case $$AM_UPDATE_INFO_DIR in \ |
247 | 305 | n|no|NO) false;; \ |
261 | 319 | HEADERS = $(include_HEADERS) $(noinst_HEADERS) |
262 | 320 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ |
263 | 321 | distclean-recursive maintainer-clean-recursive |
264 | AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ | |
265 | $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ | |
266 | distdir dist dist-all distcheck | |
322 | am__recursive_targets = \ | |
323 | $(RECURSIVE_TARGETS) \ | |
324 | $(RECURSIVE_CLEAN_TARGETS) \ | |
325 | $(am__extra_recursive_targets) | |
326 | AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ | |
327 | cscope distdir dist dist-all distcheck | |
328 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ | |
329 | $(LISP)config.h.in | |
330 | # Read a list of newline-separated strings from the standard input, | |
331 | # and print each of them once, without duplicates. Input order is | |
332 | # *not* preserved. | |
333 | am__uniquify_input = $(AWK) '\ | |
334 | BEGIN { nonempty = 0; } \ | |
335 | { items[$$0] = 1; nonempty = 1; } \ | |
336 | END { if (nonempty) { for (i in items) print i; }; } \ | |
337 | ' | |
338 | # Make sure the list of sources is unique. This is necessary because, | |
339 | # e.g., the same source file might be shared among _SOURCES variables | |
340 | # for different programs/libraries. | |
341 | am__define_uniq_tagged_files = \ | |
342 | list='$(am__tagged_files)'; \ | |
343 | unique=`for i in $$list; do \ | |
344 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
345 | done | $(am__uniquify_input)` | |
267 | 346 | ETAGS = etags |
268 | 347 | CTAGS = ctags |
348 | CSCOPE = cscope | |
269 | 349 | DIST_SUBDIRS = $(SUBDIRS) |
270 | 350 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
271 | 351 | distdir = $(PACKAGE)-$(VERSION) |
276 | 356 | && rm -rf "$(distdir)" \ |
277 | 357 | || { sleep 5 && rm -rf "$(distdir)"; }; \ |
278 | 358 | else :; fi |
359 | am__post_remove_distdir = $(am__remove_distdir) | |
279 | 360 | am__relativize = \ |
280 | 361 | dir0=`pwd`; \ |
281 | 362 | sed_first='s,^\([^/]*\)/.*$$,\1,'; \ |
303 | 384 | reldir="$$dir2" |
304 | 385 | DIST_ARCHIVES = $(distdir).tar.gz |
305 | 386 | GZIP_ENV = --best |
387 | DIST_TARGETS = dist-gzip | |
306 | 388 | distuninstallcheck_listfiles = find . -type f -print |
307 | 389 | am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ |
308 | 390 | | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' |
309 | 391 | distcleancheck_listfiles = find . -type f -print |
310 | 392 | ACLOCAL = @ACLOCAL@ |
311 | 393 | AMTAR = @AMTAR@ |
394 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | |
312 | 395 | AR = @AR@ |
313 | 396 | AUTOCONF = @AUTOCONF@ |
314 | 397 | AUTOHEADER = @AUTOHEADER@ |
650 | 733 | cd $(top_builddir) && $(SHELL) ./config.status $@ |
651 | 734 | libevent_pthreads.pc: $(top_builddir)/config.status $(srcdir)/libevent_pthreads.pc.in |
652 | 735 | cd $(top_builddir) && $(SHELL) ./config.status $@ |
736 | ||
653 | 737 | install-libLTLIBRARIES: $(lib_LTLIBRARIES) |
654 | 738 | @$(NORMAL_INSTALL) |
655 | 739 | @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ |
676 | 760 | |
677 | 761 | clean-libLTLIBRARIES: |
678 | 762 | -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) |
679 | @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ | |
680 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | |
681 | test "$$dir" != "$$p" || dir=.; \ | |
682 | echo "rm -f \"$${dir}/so_locations\""; \ | |
683 | rm -f "$${dir}/so_locations"; \ | |
684 | done | |
763 | @list='$(lib_LTLIBRARIES)'; \ | |
764 | locs=`for p in $$list; do echo $$p; done | \ | |
765 | sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ | |
766 | sort -u`; \ | |
767 | test -z "$$locs" || { \ | |
768 | echo rm -f $${locs}; \ | |
769 | rm -f $${locs}; \ | |
770 | } | |
685 | 771 | |
686 | 772 | clean-noinstLTLIBRARIES: |
687 | 773 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) |
688 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | |
689 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | |
690 | test "$$dir" != "$$p" || dir=.; \ | |
691 | echo "rm -f \"$${dir}/so_locations\""; \ | |
692 | rm -f "$${dir}/so_locations"; \ | |
693 | done | |
774 | @list='$(noinst_LTLIBRARIES)'; \ | |
775 | locs=`for p in $$list; do echo $$p; done | \ | |
776 | sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ | |
777 | sort -u`; \ | |
778 | test -z "$$locs" || { \ | |
779 | echo rm -f $${locs}; \ | |
780 | rm -f $${locs}; \ | |
781 | } | |
782 | ||
694 | 783 | libevent.la: $(libevent_la_OBJECTS) $(libevent_la_DEPENDENCIES) $(EXTRA_libevent_la_DEPENDENCIES) |
695 | $(libevent_la_LINK) $(am_libevent_la_rpath) $(libevent_la_OBJECTS) $(libevent_la_LIBADD) $(LIBS) | |
784 | $(AM_V_CCLD)$(libevent_la_LINK) $(am_libevent_la_rpath) $(libevent_la_OBJECTS) $(libevent_la_LIBADD) $(LIBS) | |
785 | ||
696 | 786 | libevent_core.la: $(libevent_core_la_OBJECTS) $(libevent_core_la_DEPENDENCIES) $(EXTRA_libevent_core_la_DEPENDENCIES) |
697 | $(libevent_core_la_LINK) $(am_libevent_core_la_rpath) $(libevent_core_la_OBJECTS) $(libevent_core_la_LIBADD) $(LIBS) | |
787 | $(AM_V_CCLD)$(libevent_core_la_LINK) $(am_libevent_core_la_rpath) $(libevent_core_la_OBJECTS) $(libevent_core_la_LIBADD) $(LIBS) | |
788 | ||
698 | 789 | libevent_extra.la: $(libevent_extra_la_OBJECTS) $(libevent_extra_la_DEPENDENCIES) $(EXTRA_libevent_extra_la_DEPENDENCIES) |
699 | $(libevent_extra_la_LINK) $(am_libevent_extra_la_rpath) $(libevent_extra_la_OBJECTS) $(libevent_extra_la_LIBADD) $(LIBS) | |
790 | $(AM_V_CCLD)$(libevent_extra_la_LINK) $(am_libevent_extra_la_rpath) $(libevent_extra_la_OBJECTS) $(libevent_extra_la_LIBADD) $(LIBS) | |
791 | ||
700 | 792 | libevent_openssl.la: $(libevent_openssl_la_OBJECTS) $(libevent_openssl_la_DEPENDENCIES) $(EXTRA_libevent_openssl_la_DEPENDENCIES) |
701 | $(libevent_openssl_la_LINK) $(am_libevent_openssl_la_rpath) $(libevent_openssl_la_OBJECTS) $(libevent_openssl_la_LIBADD) $(LIBS) | |
793 | $(AM_V_CCLD)$(libevent_openssl_la_LINK) $(am_libevent_openssl_la_rpath) $(libevent_openssl_la_OBJECTS) $(libevent_openssl_la_LIBADD) $(LIBS) | |
794 | ||
702 | 795 | libevent_pthreads.la: $(libevent_pthreads_la_OBJECTS) $(libevent_pthreads_la_DEPENDENCIES) $(EXTRA_libevent_pthreads_la_DEPENDENCIES) |
703 | $(libevent_pthreads_la_LINK) $(am_libevent_pthreads_la_rpath) $(libevent_pthreads_la_OBJECTS) $(libevent_pthreads_la_LIBADD) $(LIBS) | |
796 | $(AM_V_CCLD)$(libevent_pthreads_la_LINK) $(am_libevent_pthreads_la_rpath) $(libevent_pthreads_la_OBJECTS) $(libevent_pthreads_la_LIBADD) $(LIBS) | |
704 | 797 | install-dist_binSCRIPTS: $(dist_bin_SCRIPTS) |
705 | 798 | @$(NORMAL_INSTALL) |
706 | 799 | @list='$(dist_bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ |
778 | 871 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/win32select.Plo@am__quote@ |
779 | 872 | |
780 | 873 | .c.o: |
781 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
782 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
783 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
874 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
875 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
876 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
784 | 877 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
785 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | |
878 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< | |
786 | 879 | |
787 | 880 | .c.obj: |
788 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | |
789 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
790 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
881 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | |
882 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
883 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
791 | 884 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
792 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | |
885 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` | |
793 | 886 | |
794 | 887 | .c.lo: |
795 | @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
796 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | |
797 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | |
888 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
889 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | |
890 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | |
798 | 891 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
799 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | |
892 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< | |
800 | 893 | |
801 | 894 | mostlyclean-libtool: |
802 | 895 | -rm -f *.lo |
850 | 943 | dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) |
851 | 944 | |
852 | 945 | # This directory's subdirectories are mostly independent; you can cd |
853 | # into them and run `make' without going through this Makefile. | |
854 | # To change the values of `make' variables: instead of editing Makefiles, | |
855 | # (1) if the variable is set in `config.status', edit `config.status' | |
856 | # (which will cause the Makefiles to be regenerated when you run `make'); | |
857 | # (2) otherwise, pass the desired values on the `make' command line. | |
858 | $(RECURSIVE_TARGETS): | |
859 | @fail= failcom='exit 1'; \ | |
860 | for f in x $$MAKEFLAGS; do \ | |
861 | case $$f in \ | |
862 | *=* | --[!k]*);; \ | |
863 | *k*) failcom='fail=yes';; \ | |
864 | esac; \ | |
865 | done; \ | |
946 | # into them and run 'make' without going through this Makefile. | |
947 | # To change the values of 'make' variables: instead of editing Makefiles, | |
948 | # (1) if the variable is set in 'config.status', edit 'config.status' | |
949 | # (which will cause the Makefiles to be regenerated when you run 'make'); | |
950 | # (2) otherwise, pass the desired values on the 'make' command line. | |
951 | $(am__recursive_targets): | |
952 | @fail=; \ | |
953 | if $(am__make_keepgoing); then \ | |
954 | failcom='fail=yes'; \ | |
955 | else \ | |
956 | failcom='exit 1'; \ | |
957 | fi; \ | |
866 | 958 | dot_seen=no; \ |
867 | 959 | target=`echo $@ | sed s/-recursive//`; \ |
868 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
960 | case "$@" in \ | |
961 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
962 | *) list='$(SUBDIRS)' ;; \ | |
963 | esac; \ | |
964 | for subdir in $$list; do \ | |
869 | 965 | echo "Making $$target in $$subdir"; \ |
870 | 966 | if test "$$subdir" = "."; then \ |
871 | 967 | dot_seen=yes; \ |
880 | 976 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
881 | 977 | fi; test -z "$$fail" |
882 | 978 | |
883 | $(RECURSIVE_CLEAN_TARGETS): | |
884 | @fail= failcom='exit 1'; \ | |
885 | for f in x $$MAKEFLAGS; do \ | |
886 | case $$f in \ | |
887 | *=* | --[!k]*);; \ | |
888 | *k*) failcom='fail=yes';; \ | |
889 | esac; \ | |
890 | done; \ | |
891 | dot_seen=no; \ | |
892 | case "$@" in \ | |
893 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | |
894 | *) list='$(SUBDIRS)' ;; \ | |
895 | esac; \ | |
896 | rev=''; for subdir in $$list; do \ | |
897 | if test "$$subdir" = "."; then :; else \ | |
898 | rev="$$subdir $$rev"; \ | |
899 | fi; \ | |
900 | done; \ | |
901 | rev="$$rev ."; \ | |
902 | target=`echo $@ | sed s/-recursive//`; \ | |
903 | for subdir in $$rev; do \ | |
904 | echo "Making $$target in $$subdir"; \ | |
905 | if test "$$subdir" = "."; then \ | |
906 | local_target="$$target-am"; \ | |
907 | else \ | |
908 | local_target="$$target"; \ | |
909 | fi; \ | |
910 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | |
911 | || eval $$failcom; \ | |
912 | done && test -z "$$fail" | |
913 | tags-recursive: | |
914 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
915 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
916 | done | |
917 | ctags-recursive: | |
918 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
919 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |
920 | done | |
921 | ||
922 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
923 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
924 | unique=`for i in $$list; do \ | |
925 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
926 | done | \ | |
927 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
928 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
929 | mkid -fID $$unique | |
930 | tags: TAGS | |
931 | ||
932 | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
933 | $(TAGS_FILES) $(LISP) | |
979 | ID: $(am__tagged_files) | |
980 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
981 | tags: tags-recursive | |
982 | TAGS: tags | |
983 | ||
984 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
934 | 985 | set x; \ |
935 | 986 | here=`pwd`; \ |
936 | 987 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ |
946 | 997 | set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ |
947 | 998 | fi; \ |
948 | 999 | done; \ |
949 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
950 | unique=`for i in $$list; do \ | |
951 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
952 | done | \ | |
953 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
954 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
1000 | $(am__define_uniq_tagged_files); \ | |
955 | 1001 | shift; \ |
956 | 1002 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
957 | 1003 | test -n "$$unique" || unique=$$empty_fix; \ |
963 | 1009 | $$unique; \ |
964 | 1010 | fi; \ |
965 | 1011 | fi |
966 | ctags: CTAGS | |
967 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
968 | $(TAGS_FILES) $(LISP) | |
969 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
970 | unique=`for i in $$list; do \ | |
971 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
972 | done | \ | |
973 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
974 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
1012 | ctags: ctags-recursive | |
1013 | ||
1014 | CTAGS: ctags | |
1015 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
1016 | $(am__define_uniq_tagged_files); \ | |
975 | 1017 | test -z "$(CTAGS_ARGS)$$unique" \ |
976 | 1018 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
977 | 1019 | $$unique |
980 | 1022 | here=`$(am__cd) $(top_builddir) && pwd` \ |
981 | 1023 | && $(am__cd) $(top_srcdir) \ |
982 | 1024 | && gtags -i $(GTAGS_ARGS) "$$here" |
1025 | cscope: cscope.files | |
1026 | test ! -s cscope.files \ | |
1027 | || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) | |
1028 | clean-cscope: | |
1029 | -rm -f cscope.files | |
1030 | cscope.files: clean-cscope cscopelist | |
1031 | cscopelist: cscopelist-recursive | |
1032 | ||
1033 | cscopelist-am: $(am__tagged_files) | |
1034 | list='$(am__tagged_files)'; \ | |
1035 | case "$(srcdir)" in \ | |
1036 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
1037 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
1038 | esac; \ | |
1039 | for i in $$list; do \ | |
1040 | if test -f "$$i"; then \ | |
1041 | echo "$(subdir)/$$i"; \ | |
1042 | else \ | |
1043 | echo "$$sdir/$$i"; \ | |
1044 | fi; \ | |
1045 | done >> $(top_builddir)/cscope.files | |
983 | 1046 | |
984 | 1047 | distclean-tags: |
985 | 1048 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
1049 | -rm -f cscope.out cscope.in.out cscope.po.out cscope.files | |
986 | 1050 | |
987 | 1051 | distdir: $(DISTFILES) |
988 | 1052 | $(am__remove_distdir) |
1050 | 1114 | || chmod -R a+r "$(distdir)" |
1051 | 1115 | dist-gzip: distdir |
1052 | 1116 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
1053 | $(am__remove_distdir) | |
1117 | $(am__post_remove_distdir) | |
1054 | 1118 | |
1055 | 1119 | dist-bzip2: distdir |
1056 | 1120 | tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 |
1057 | $(am__remove_distdir) | |
1121 | $(am__post_remove_distdir) | |
1058 | 1122 | |
1059 | 1123 | dist-lzip: distdir |
1060 | 1124 | tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz |
1061 | $(am__remove_distdir) | |
1062 | ||
1063 | dist-lzma: distdir | |
1064 | tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma | |
1065 | $(am__remove_distdir) | |
1125 | $(am__post_remove_distdir) | |
1066 | 1126 | |
1067 | 1127 | dist-xz: distdir |
1068 | 1128 | tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz |
1069 | $(am__remove_distdir) | |
1129 | $(am__post_remove_distdir) | |
1070 | 1130 | |
1071 | 1131 | dist-tarZ: distdir |
1072 | 1132 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
1073 | $(am__remove_distdir) | |
1133 | $(am__post_remove_distdir) | |
1074 | 1134 | |
1075 | 1135 | dist-shar: distdir |
1076 | 1136 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
1077 | $(am__remove_distdir) | |
1137 | $(am__post_remove_distdir) | |
1078 | 1138 | |
1079 | 1139 | dist-zip: distdir |
1080 | 1140 | -rm -f $(distdir).zip |
1081 | 1141 | zip -rq $(distdir).zip $(distdir) |
1082 | $(am__remove_distdir) | |
1083 | ||
1084 | dist dist-all: distdir | |
1085 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
1086 | $(am__remove_distdir) | |
1142 | $(am__post_remove_distdir) | |
1143 | ||
1144 | dist dist-all: | |
1145 | $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' | |
1146 | $(am__post_remove_distdir) | |
1087 | 1147 | |
1088 | 1148 | # This target untars the dist file and tries a VPATH configuration. Then |
1089 | 1149 | # it guarantees that the distribution is self-contained by making another |
1094 | 1154 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ |
1095 | 1155 | *.tar.bz2*) \ |
1096 | 1156 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
1097 | *.tar.lzma*) \ | |
1098 | lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ | |
1099 | 1157 | *.tar.lz*) \ |
1100 | 1158 | lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ |
1101 | 1159 | *.tar.xz*) \ |
1107 | 1165 | *.zip*) \ |
1108 | 1166 | unzip $(distdir).zip ;;\ |
1109 | 1167 | esac |
1110 | chmod -R a-w $(distdir); chmod u+w $(distdir) | |
1111 | mkdir $(distdir)/_build | |
1112 | mkdir $(distdir)/_inst | |
1168 | chmod -R a-w $(distdir) | |
1169 | chmod u+w $(distdir) | |
1170 | mkdir $(distdir)/_build $(distdir)/_inst | |
1113 | 1171 | chmod a-w $(distdir) |
1114 | 1172 | test -d $(distdir)/_build || exit 0; \ |
1115 | 1173 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ |
1141 | 1199 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ |
1142 | 1200 | && cd "$$am__cwd" \ |
1143 | 1201 | || exit 1 |
1144 | $(am__remove_distdir) | |
1202 | $(am__post_remove_distdir) | |
1145 | 1203 | @(echo "$(distdir) archives ready for distribution: "; \ |
1146 | 1204 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
1147 | 1205 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
1288 | 1346 | uninstall-am: uninstall-dist_binSCRIPTS uninstall-includeHEADERS \ |
1289 | 1347 | uninstall-libLTLIBRARIES uninstall-pkgconfigDATA |
1290 | 1348 | |
1291 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \ | |
1292 | ctags-recursive install install-am install-strip \ | |
1293 | tags-recursive | |
1294 | ||
1295 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | |
1296 | all all-am am--refresh check check-am clean clean-generic \ | |
1349 | .MAKE: $(am__recursive_targets) all check install install-am \ | |
1350 | install-strip | |
1351 | ||
1352 | .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ | |
1353 | am--refresh check check-am clean clean-cscope clean-generic \ | |
1297 | 1354 | clean-libLTLIBRARIES clean-libtool clean-noinstLTLIBRARIES \ |
1298 | ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ | |
1299 | dist-lzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ | |
1355 | cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ | |
1356 | dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ | |
1300 | 1357 | distcheck distclean distclean-compile distclean-generic \ |
1301 | 1358 | distclean-hdr distclean-libtool distclean-tags distcleancheck \ |
1302 | 1359 | distdir distuninstallcheck dvi dvi-am html html-am info \ |
1309 | 1366 | installcheck installcheck-am installdirs installdirs-am \ |
1310 | 1367 | maintainer-clean maintainer-clean-generic mostlyclean \ |
1311 | 1368 | mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ |
1312 | pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ | |
1369 | pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ | |
1313 | 1370 | uninstall-dist_binSCRIPTS uninstall-includeHEADERS \ |
1314 | 1371 | uninstall-libLTLIBRARIES uninstall-pkgconfigDATA |
1315 | 1372 |
276 | 276 | /* #undef _EVENT_HAVE_WORKING_KQUEUE */ |
277 | 277 | |
278 | 278 | /* Numeric representation of the version */ |
279 | #define _EVENT_NUMERIC_VERSION 0x02001500 | |
279 | #define _EVENT_NUMERIC_VERSION 0x02001501 | |
280 | 280 | |
281 | 281 | /* Name of package */ |
282 | 282 | #define _EVENT_PACKAGE "libevent" |
333 | 333 | #define _EVENT_TIME_WITH_SYS_TIME 1 |
334 | 334 | |
335 | 335 | /* Version number of package */ |
336 | #define _EVENT_VERSION "2.0.21-stable" | |
336 | #define _EVENT_VERSION "2.0.21-stable-dev" | |
337 | 337 | |
338 | 338 | /* Define to appropriate substitue if compiler doesnt have __func__ */ |
339 | 339 | #define _EVENT___func__ __FUNCTION__ |
0 | # generated automatically by aclocal 1.11.6 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
3 | # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, | |
4 | # Inc. | |
0 | # generated automatically by aclocal 1.13.3 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
3 | ||
5 | 4 | # This file is free software; the Free Software Foundation |
6 | 5 | # gives unlimited permission to copy and/or distribute it, |
7 | 6 | # with or without modifications, as long as this notice is preserved. |
11 | 10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
12 | 11 | # PARTICULAR PURPOSE. |
13 | 12 | |
13 | m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | |
14 | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
15 | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
16 | 16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, |
17 | 17 | [m4_warning([this file was generated for autoconf 2.69. |
18 | 18 | You have another version of autoconf. It may work, but is not guaranteed to. |
19 | 19 | If you have problems, you may need to regenerate the build system entirely. |
20 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) | |
21 | ||
22 | # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software | |
23 | # Foundation, Inc. | |
24 | # | |
25 | # This file is free software; the Free Software Foundation | |
26 | # gives unlimited permission to copy and/or distribute it, | |
27 | # with or without modifications, as long as this notice is preserved. | |
28 | ||
29 | # serial 1 | |
20 | To do so, use the procedure documented by the package, typically 'autoreconf'.])]) | |
21 | ||
22 | # Copyright (C) 2002-2013 Free Software Foundation, Inc. | |
23 | # | |
24 | # This file is free software; the Free Software Foundation | |
25 | # gives unlimited permission to copy and/or distribute it, | |
26 | # with or without modifications, as long as this notice is preserved. | |
30 | 27 | |
31 | 28 | # AM_AUTOMAKE_VERSION(VERSION) |
32 | 29 | # ---------------------------- |
34 | 31 | # generated from the m4 files accompanying Automake X.Y. |
35 | 32 | # (This private macro should not be called outside this file.) |
36 | 33 | AC_DEFUN([AM_AUTOMAKE_VERSION], |
37 | [am__api_version='1.11' | |
34 | [am__api_version='1.13' | |
38 | 35 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
39 | 36 | dnl require some minimum version. Point them to the right macro. |
40 | m4_if([$1], [1.11.6], [], | |
37 | m4_if([$1], [1.13.3], [], | |
41 | 38 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
42 | 39 | ]) |
43 | 40 | |
53 | 50 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
54 | 51 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
55 | 52 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
56 | [AM_AUTOMAKE_VERSION([1.11.6])dnl | |
53 | [AM_AUTOMAKE_VERSION([1.13.3])dnl | |
57 | 54 | m4_ifndef([AC_AUTOCONF_VERSION], |
58 | 55 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
59 | 56 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
60 | 57 | |
61 | 58 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
62 | 59 | |
63 | # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. | |
64 | # | |
65 | # This file is free software; the Free Software Foundation | |
66 | # gives unlimited permission to copy and/or distribute it, | |
67 | # with or without modifications, as long as this notice is preserved. | |
68 | ||
69 | # serial 1 | |
60 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
61 | # | |
62 | # This file is free software; the Free Software Foundation | |
63 | # gives unlimited permission to copy and/or distribute it, | |
64 | # with or without modifications, as long as this notice is preserved. | |
70 | 65 | |
71 | 66 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
72 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
73 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
67 | # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to | |
68 | # '$srcdir', '$srcdir/..', or '$srcdir/../..'. | |
74 | 69 | # |
75 | 70 | # Of course, Automake must honor this variable whenever it calls a |
76 | 71 | # tool from the auxiliary directory. The problem is that $srcdir (and |
89 | 84 | # |
90 | 85 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
91 | 86 | # are both prefixed by $srcdir. In an in-source build this is usually |
92 | # harmless because $srcdir is `.', but things will broke when you | |
87 | # harmless because $srcdir is '.', but things will broke when you | |
93 | 88 | # start a VPATH build or use an absolute $srcdir. |
94 | 89 | # |
95 | 90 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
115 | 110 | |
116 | 111 | # AM_CONDITIONAL -*- Autoconf -*- |
117 | 112 | |
118 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 | |
119 | # Free Software Foundation, Inc. | |
120 | # | |
121 | # This file is free software; the Free Software Foundation | |
122 | # gives unlimited permission to copy and/or distribute it, | |
123 | # with or without modifications, as long as this notice is preserved. | |
124 | ||
125 | # serial 9 | |
113 | # Copyright (C) 1997-2013 Free Software Foundation, Inc. | |
114 | # | |
115 | # This file is free software; the Free Software Foundation | |
116 | # gives unlimited permission to copy and/or distribute it, | |
117 | # with or without modifications, as long as this notice is preserved. | |
126 | 118 | |
127 | 119 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
128 | 120 | # ------------------------------------- |
129 | 121 | # Define a conditional. |
130 | 122 | AC_DEFUN([AM_CONDITIONAL], |
131 | [AC_PREREQ(2.52)dnl | |
132 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
133 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
123 | [AC_PREREQ([2.52])dnl | |
124 | m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
125 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
134 | 126 | AC_SUBST([$1_TRUE])dnl |
135 | 127 | AC_SUBST([$1_FALSE])dnl |
136 | 128 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl |
149 | 141 | Usually this means the macro was only invoked conditionally.]]) |
150 | 142 | fi])]) |
151 | 143 | |
152 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, | |
153 | # 2010, 2011 Free Software Foundation, Inc. | |
154 | # | |
155 | # This file is free software; the Free Software Foundation | |
156 | # gives unlimited permission to copy and/or distribute it, | |
157 | # with or without modifications, as long as this notice is preserved. | |
158 | ||
159 | # serial 12 | |
160 | ||
161 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
144 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
145 | # | |
146 | # This file is free software; the Free Software Foundation | |
147 | # gives unlimited permission to copy and/or distribute it, | |
148 | # with or without modifications, as long as this notice is preserved. | |
149 | ||
150 | ||
151 | # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be | |
162 | 152 | # written in clear, in which case automake, when reading aclocal.m4, |
163 | 153 | # will think it sees a *use*, and therefore will trigger all it's |
164 | 154 | # C support machinery. Also note that it means that autoscan, seeing |
168 | 158 | # _AM_DEPENDENCIES(NAME) |
169 | 159 | # ---------------------- |
170 | 160 | # See how the compiler implements dependency checking. |
171 | # NAME is "CC", "CXX", "GCJ", or "OBJC". | |
161 | # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". | |
172 | 162 | # We try a few techniques and use that to set a single cache variable. |
173 | 163 | # |
174 | 164 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
181 | 171 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
182 | 172 | AC_REQUIRE([AM_DEP_TRACK])dnl |
183 | 173 | |
184 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | |
185 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | |
186 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
187 | [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
188 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
189 | [depcc="$$1" am_compiler_list=]) | |
174 | m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], | |
175 | [$1], [CXX], [depcc="$CXX" am_compiler_list=], | |
176 | [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
177 | [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], | |
178 | [$1], [UPC], [depcc="$UPC" am_compiler_list=], | |
179 | [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
180 | [depcc="$$1" am_compiler_list=]) | |
190 | 181 | |
191 | 182 | AC_CACHE_CHECK([dependency style of $depcc], |
192 | 183 | [am_cv_$1_dependencies_compiler_type], |
194 | 185 | # We make a subdir and do the tests there. Otherwise we can end up |
195 | 186 | # making bogus files that we don't know about and never remove. For |
196 | 187 | # instance it was reported that on HP-UX the gcc test will end up |
197 | # making a dummy file named `D' -- because `-MD' means `put the output | |
198 | # in D'. | |
188 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
189 | # in D". | |
199 | 190 | rm -rf conftest.dir |
200 | 191 | mkdir conftest.dir |
201 | 192 | # Copy depcomp to subdir because otherwise we won't find it if we're |
235 | 226 | : > sub/conftest.c |
236 | 227 | for i in 1 2 3 4 5 6; do |
237 | 228 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
238 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
239 | # Solaris 8's {/usr,}/bin/sh. | |
240 | touch sub/conftst$i.h | |
229 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
230 | # Solaris 10 /bin/sh. | |
231 | echo '/* dummy */' > sub/conftst$i.h | |
241 | 232 | done |
242 | 233 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
243 | 234 | |
244 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
235 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
245 | 236 | # mode. It turns out that the SunPro C++ compiler does not properly |
246 | # handle `-M -o', and we need to detect this. Also, some Intel | |
247 | # versions had trouble with output in subdirs | |
237 | # handle '-M -o', and we need to detect this. Also, some Intel | |
238 | # versions had trouble with output in subdirs. | |
248 | 239 | am__obj=sub/conftest.${OBJEXT-o} |
249 | 240 | am__minus_obj="-o $am__obj" |
250 | 241 | case $depmode in |
253 | 244 | test "$am__universal" = false || continue |
254 | 245 | ;; |
255 | 246 | nosideeffect) |
256 | # after this tag, mechanisms are not by side-effect, so they'll | |
257 | # only be used when explicitly requested | |
247 | # After this tag, mechanisms are not by side-effect, so they'll | |
248 | # only be used when explicitly requested. | |
258 | 249 | if test "x$enable_dependency_tracking" = xyes; then |
259 | 250 | continue |
260 | 251 | else |
262 | 253 | fi |
263 | 254 | ;; |
264 | 255 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
265 | # This compiler won't grok `-c -o', but also, the minuso test has | |
256 | # This compiler won't grok '-c -o', but also, the minuso test has | |
266 | 257 | # not run yet. These depmodes are late enough in the game, and |
267 | 258 | # so weak that their functioning should not be impacted. |
268 | 259 | am__obj=conftest.${OBJEXT-o} |
310 | 301 | # AM_SET_DEPDIR |
311 | 302 | # ------------- |
312 | 303 | # Choose a directory name for dependency files. |
313 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | |
304 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES. | |
314 | 305 | AC_DEFUN([AM_SET_DEPDIR], |
315 | 306 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
316 | 307 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
320 | 311 | # AM_DEP_TRACK |
321 | 312 | # ------------ |
322 | 313 | AC_DEFUN([AM_DEP_TRACK], |
323 | [AC_ARG_ENABLE(dependency-tracking, | |
324 | [ --disable-dependency-tracking speeds up one-time build | |
325 | --enable-dependency-tracking do not reject slow dependency extractors]) | |
314 | [AC_ARG_ENABLE([dependency-tracking], [dnl | |
315 | AS_HELP_STRING( | |
316 | [--enable-dependency-tracking], | |
317 | [do not reject slow dependency extractors]) | |
318 | AS_HELP_STRING( | |
319 | [--disable-dependency-tracking], | |
320 | [speeds up one-time build])]) | |
326 | 321 | if test "x$enable_dependency_tracking" != xno; then |
327 | 322 | am_depcomp="$ac_aux_dir/depcomp" |
328 | 323 | AMDEPBACKSLASH='\' |
337 | 332 | |
338 | 333 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
339 | 334 | |
340 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
341 | # Free Software Foundation, Inc. | |
342 | # | |
343 | # This file is free software; the Free Software Foundation | |
344 | # gives unlimited permission to copy and/or distribute it, | |
345 | # with or without modifications, as long as this notice is preserved. | |
346 | ||
347 | #serial 5 | |
335 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
336 | # | |
337 | # This file is free software; the Free Software Foundation | |
338 | # gives unlimited permission to copy and/or distribute it, | |
339 | # with or without modifications, as long as this notice is preserved. | |
340 | ||
348 | 341 | |
349 | 342 | # _AM_OUTPUT_DEPENDENCY_COMMANDS |
350 | 343 | # ------------------------------ |
351 | 344 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
352 | 345 | [{ |
353 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
346 | # Older Autoconf quotes --file arguments for eval, but not when files | |
354 | 347 | # are listed without --file. Let's play safe and only enable the eval |
355 | 348 | # if we detect the quoting. |
356 | 349 | case $CONFIG_FILES in |
363 | 356 | # Strip MF so we end up with the name of the file. |
364 | 357 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
365 | 358 | # Check whether this is an Automake generated Makefile or not. |
366 | # We used to match only the files named `Makefile.in', but | |
359 | # We used to match only the files named 'Makefile.in', but | |
367 | 360 | # some people rename them; so instead we look at the file content. |
368 | 361 | # Grep'ing the first line is not enough: some people post-process |
369 | 362 | # each Makefile.in and add a new line on top of each file to say so. |
375 | 368 | continue |
376 | 369 | fi |
377 | 370 | # Extract the definition of DEPDIR, am__include, and am__quote |
378 | # from the Makefile without running `make'. | |
371 | # from the Makefile without running 'make'. | |
379 | 372 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
380 | 373 | test -z "$DEPDIR" && continue |
381 | 374 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
382 | test -z "am__include" && continue | |
375 | test -z "$am__include" && continue | |
383 | 376 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
384 | # When using ansi2knr, U may be empty or an underscore; expand it | |
385 | U=`sed -n 's/^U = //p' < "$mf"` | |
386 | 377 | # Find all dependency output files, they are included files with |
387 | 378 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
388 | 379 | # simplest approach to changing $(DEPDIR) to its actual value in the |
389 | 380 | # expansion. |
390 | 381 | for file in `sed -n " |
391 | 382 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
392 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
383 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
393 | 384 | # Make sure the directory exists. |
394 | 385 | test -f "$dirpart/$file" && continue |
395 | 386 | fdir=`AS_DIRNAME(["$file"])` |
407 | 398 | # This macro should only be invoked once -- use via AC_REQUIRE. |
408 | 399 | # |
409 | 400 | # This code is only required when automatic dependency tracking |
410 | # is enabled. FIXME. This creates each `.P' file that we will | |
401 | # is enabled. FIXME. This creates each '.P' file that we will | |
411 | 402 | # need in order to bootstrap the dependency handling code. |
412 | 403 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
413 | 404 | [AC_CONFIG_COMMANDS([depfiles], |
415 | 406 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
416 | 407 | ]) |
417 | 408 | |
418 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 | |
419 | # Free Software Foundation, Inc. | |
420 | # | |
421 | # This file is free software; the Free Software Foundation | |
422 | # gives unlimited permission to copy and/or distribute it, | |
423 | # with or without modifications, as long as this notice is preserved. | |
424 | ||
425 | # serial 8 | |
426 | ||
427 | # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. | |
428 | AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) | |
429 | ||
430 | 409 | # Do all the work for Automake. -*- Autoconf -*- |
431 | 410 | |
432 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
433 | # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. | |
434 | # | |
435 | # This file is free software; the Free Software Foundation | |
436 | # gives unlimited permission to copy and/or distribute it, | |
437 | # with or without modifications, as long as this notice is preserved. | |
438 | ||
439 | # serial 16 | |
411 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
412 | # | |
413 | # This file is free software; the Free Software Foundation | |
414 | # gives unlimited permission to copy and/or distribute it, | |
415 | # with or without modifications, as long as this notice is preserved. | |
440 | 416 | |
441 | 417 | # This macro actually does too much. Some checks are only needed if |
442 | 418 | # your package does certain things. But this isn't really a big deal. |
453 | 429 | # arguments mandatory, and then we can depend on a new Autoconf |
454 | 430 | # release and drop the old call support. |
455 | 431 | AC_DEFUN([AM_INIT_AUTOMAKE], |
456 | [AC_PREREQ([2.62])dnl | |
432 | [AC_PREREQ([2.65])dnl | |
457 | 433 | dnl Autoconf wants to disallow AM_ names. We explicitly allow |
458 | 434 | dnl the ones we care about. |
459 | 435 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
482 | 458 | # Define the identity of the package. |
483 | 459 | dnl Distinguish between old-style and new-style calls. |
484 | 460 | m4_ifval([$2], |
485 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
461 | [AC_DIAGNOSE([obsolete], | |
462 | [$0: two- and three-arguments forms are deprecated.]) | |
463 | m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
486 | 464 | AC_SUBST([PACKAGE], [$1])dnl |
487 | 465 | AC_SUBST([VERSION], [$2])], |
488 | 466 | [_AM_SET_OPTIONS([$1])dnl |
489 | 467 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
490 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
468 | m4_if( | |
469 | m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), | |
470 | [ok:ok],, | |
491 | 471 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
492 | 472 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
493 | 473 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
494 | 474 | |
495 | 475 | _AM_IF_OPTION([no-define],, |
496 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
497 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | |
476 | [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) | |
477 | AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl | |
498 | 478 | |
499 | 479 | # Some tools Automake needs. |
500 | 480 | AC_REQUIRE([AM_SANITY_CHECK])dnl |
501 | 481 | AC_REQUIRE([AC_ARG_PROGRAM])dnl |
502 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | |
503 | AM_MISSING_PROG(AUTOCONF, autoconf) | |
504 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
505 | AM_MISSING_PROG(AUTOHEADER, autoheader) | |
506 | AM_MISSING_PROG(MAKEINFO, makeinfo) | |
482 | AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) | |
483 | AM_MISSING_PROG([AUTOCONF], [autoconf]) | |
484 | AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) | |
485 | AM_MISSING_PROG([AUTOHEADER], [autoheader]) | |
486 | AM_MISSING_PROG([MAKEINFO], [makeinfo]) | |
507 | 487 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
508 | 488 | AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
509 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | |
489 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
490 | # For better backward compatibility. To be removed once Automake 1.9.x | |
491 | # dies out for good. For more background, see: | |
492 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
493 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
494 | AC_SUBST([mkdir_p], ['$(MKDIR_P)']) | |
510 | 495 | # We need awk for the "check" target. The system "awk" is bad on |
511 | 496 | # some platforms. |
512 | 497 | AC_REQUIRE([AC_PROG_AWK])dnl |
517 | 502 | [_AM_PROG_TAR([v7])])]) |
518 | 503 | _AM_IF_OPTION([no-dependencies],, |
519 | 504 | [AC_PROVIDE_IFELSE([AC_PROG_CC], |
520 | [_AM_DEPENDENCIES(CC)], | |
521 | [define([AC_PROG_CC], | |
522 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
505 | [_AM_DEPENDENCIES([CC])], | |
506 | [m4_define([AC_PROG_CC], | |
507 | m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl | |
523 | 508 | AC_PROVIDE_IFELSE([AC_PROG_CXX], |
524 | [_AM_DEPENDENCIES(CXX)], | |
525 | [define([AC_PROG_CXX], | |
526 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
509 | [_AM_DEPENDENCIES([CXX])], | |
510 | [m4_define([AC_PROG_CXX], | |
511 | m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl | |
527 | 512 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
528 | [_AM_DEPENDENCIES(OBJC)], | |
529 | [define([AC_PROG_OBJC], | |
530 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
531 | ]) | |
532 | _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
533 | dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | |
534 | dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
535 | dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
513 | [_AM_DEPENDENCIES([OBJC])], | |
514 | [m4_define([AC_PROG_OBJC], | |
515 | m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl | |
516 | AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |
517 | [_AM_DEPENDENCIES([OBJCXX])], | |
518 | [m4_define([AC_PROG_OBJCXX], | |
519 | m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl | |
520 | ]) | |
521 | AC_REQUIRE([AM_SILENT_RULES])dnl | |
522 | dnl The testsuite driver may need to know about EXEEXT, so add the | |
523 | dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This | |
524 | dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
536 | 525 | AC_CONFIG_COMMANDS_PRE(dnl |
537 | 526 | [m4_provide_if([_AM_COMPILER_EXEEXT], |
538 | 527 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
539 | 528 | ]) |
540 | 529 | |
541 | dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
530 | dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
542 | 531 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
543 | 532 | dnl mangled by Autoconf and run in a shell conditional statement. |
544 | 533 | m4_define([_AC_COMPILER_EXEEXT], |
566 | 555 | done |
567 | 556 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
568 | 557 | |
569 | # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, | |
570 | # Inc. | |
571 | # | |
572 | # This file is free software; the Free Software Foundation | |
573 | # gives unlimited permission to copy and/or distribute it, | |
574 | # with or without modifications, as long as this notice is preserved. | |
575 | ||
576 | # serial 1 | |
558 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
559 | # | |
560 | # This file is free software; the Free Software Foundation | |
561 | # gives unlimited permission to copy and/or distribute it, | |
562 | # with or without modifications, as long as this notice is preserved. | |
577 | 563 | |
578 | 564 | # AM_PROG_INSTALL_SH |
579 | 565 | # ------------------ |
588 | 574 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
589 | 575 | esac |
590 | 576 | fi |
591 | AC_SUBST(install_sh)]) | |
592 | ||
593 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | |
594 | # | |
595 | # This file is free software; the Free Software Foundation | |
596 | # gives unlimited permission to copy and/or distribute it, | |
597 | # with or without modifications, as long as this notice is preserved. | |
598 | ||
599 | # serial 2 | |
577 | AC_SUBST([install_sh])]) | |
578 | ||
579 | # Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
580 | # | |
581 | # This file is free software; the Free Software Foundation | |
582 | # gives unlimited permission to copy and/or distribute it, | |
583 | # with or without modifications, as long as this notice is preserved. | |
600 | 584 | |
601 | 585 | # Check whether the underlying file-system supports filenames |
602 | 586 | # with a leading dot. For instance MS-DOS doesn't. |
613 | 597 | |
614 | 598 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
615 | 599 | |
616 | # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | |
617 | # | |
618 | # This file is free software; the Free Software Foundation | |
619 | # gives unlimited permission to copy and/or distribute it, | |
620 | # with or without modifications, as long as this notice is preserved. | |
621 | ||
622 | # serial 4 | |
600 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
601 | # | |
602 | # This file is free software; the Free Software Foundation | |
603 | # gives unlimited permission to copy and/or distribute it, | |
604 | # with or without modifications, as long as this notice is preserved. | |
623 | 605 | |
624 | 606 | # AM_MAKE_INCLUDE() |
625 | 607 | # ----------------- |
638 | 620 | _am_result=none |
639 | 621 | # First try GNU make style include. |
640 | 622 | echo "include confinc" > confmf |
641 | # Ignore all kinds of additional output from `make'. | |
623 | # Ignore all kinds of additional output from 'make'. | |
642 | 624 | case `$am_make -s -f confmf 2> /dev/null` in #( |
643 | 625 | *the\ am__doit\ target*) |
644 | 626 | am__include=include |
663 | 645 | rm -f confinc confmf |
664 | 646 | ]) |
665 | 647 | |
666 | # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
667 | # Free Software Foundation, Inc. | |
668 | # | |
669 | # This file is free software; the Free Software Foundation | |
670 | # gives unlimited permission to copy and/or distribute it, | |
671 | # with or without modifications, as long as this notice is preserved. | |
672 | ||
673 | # serial 6 | |
648 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
649 | # | |
650 | # This file is free software; the Free Software Foundation | |
651 | # gives unlimited permission to copy and/or distribute it, | |
652 | # with or without modifications, as long as this notice is preserved. | |
674 | 653 | |
675 | 654 | # AM_PROG_CC_C_O |
676 | 655 | # -------------- |
700 | 679 | |
701 | 680 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
702 | 681 | |
703 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
704 | # Free Software Foundation, Inc. | |
705 | # | |
706 | # This file is free software; the Free Software Foundation | |
707 | # gives unlimited permission to copy and/or distribute it, | |
708 | # with or without modifications, as long as this notice is preserved. | |
709 | ||
710 | # serial 6 | |
682 | # Copyright (C) 1997-2013 Free Software Foundation, Inc. | |
683 | # | |
684 | # This file is free software; the Free Software Foundation | |
685 | # gives unlimited permission to copy and/or distribute it, | |
686 | # with or without modifications, as long as this notice is preserved. | |
711 | 687 | |
712 | 688 | # AM_MISSING_PROG(NAME, PROGRAM) |
713 | 689 | # ------------------------------ |
716 | 692 | $1=${$1-"${am_missing_run}$2"} |
717 | 693 | AC_SUBST($1)]) |
718 | 694 | |
719 | ||
720 | 695 | # AM_MISSING_HAS_RUN |
721 | 696 | # ------------------ |
722 | # Define MISSING if not defined so far and test if it supports --run. | |
723 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
697 | # Define MISSING if not defined so far and test if it is modern enough. | |
698 | # If it is, set am_missing_run to use it, otherwise, to nothing. | |
724 | 699 | AC_DEFUN([AM_MISSING_HAS_RUN], |
725 | 700 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
726 | 701 | AC_REQUIRE_AUX_FILE([missing])dnl |
733 | 708 | esac |
734 | 709 | fi |
735 | 710 | # Use eval to expand $SHELL |
736 | if eval "$MISSING --run true"; then | |
737 | am_missing_run="$MISSING --run " | |
711 | if eval "$MISSING --is-lightweight"; then | |
712 | am_missing_run="$MISSING " | |
738 | 713 | else |
739 | 714 | am_missing_run= |
740 | AC_MSG_WARN([`missing' script is too old or missing]) | |
741 | fi | |
742 | ]) | |
743 | ||
744 | # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, | |
745 | # Inc. | |
746 | # | |
747 | # This file is free software; the Free Software Foundation | |
748 | # gives unlimited permission to copy and/or distribute it, | |
749 | # with or without modifications, as long as this notice is preserved. | |
750 | ||
751 | # serial 1 | |
752 | ||
753 | # AM_PROG_MKDIR_P | |
754 | # --------------- | |
755 | # Check for `mkdir -p'. | |
756 | AC_DEFUN([AM_PROG_MKDIR_P], | |
757 | [AC_PREREQ([2.60])dnl | |
758 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
759 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
760 | dnl while keeping a definition of mkdir_p for backward compatibility. | |
761 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
762 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
763 | dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
764 | dnl adjustment using top_builddir (which is defined more often than | |
765 | dnl MKDIR_P). | |
766 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
767 | case $mkdir_p in | |
768 | [[\\/$]]* | ?:[[\\/]]*) ;; | |
769 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
770 | esac | |
715 | AC_MSG_WARN(['missing' script is too old or missing]) | |
716 | fi | |
771 | 717 | ]) |
772 | 718 | |
773 | 719 | # Helper functions for option handling. -*- Autoconf -*- |
774 | 720 | |
775 | # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software | |
776 | # Foundation, Inc. | |
777 | # | |
778 | # This file is free software; the Free Software Foundation | |
779 | # gives unlimited permission to copy and/or distribute it, | |
780 | # with or without modifications, as long as this notice is preserved. | |
781 | ||
782 | # serial 5 | |
721 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
722 | # | |
723 | # This file is free software; the Free Software Foundation | |
724 | # gives unlimited permission to copy and/or distribute it, | |
725 | # with or without modifications, as long as this notice is preserved. | |
783 | 726 | |
784 | 727 | # _AM_MANGLE_OPTION(NAME) |
785 | 728 | # ----------------------- |
790 | 733 | # -------------------- |
791 | 734 | # Set option NAME. Presently that only means defining a flag for this option. |
792 | 735 | AC_DEFUN([_AM_SET_OPTION], |
793 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
736 | [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) | |
794 | 737 | |
795 | 738 | # _AM_SET_OPTIONS(OPTIONS) |
796 | 739 | # ------------------------ |
806 | 749 | |
807 | 750 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
808 | 751 | |
809 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | |
810 | # Free Software Foundation, Inc. | |
811 | # | |
812 | # This file is free software; the Free Software Foundation | |
813 | # gives unlimited permission to copy and/or distribute it, | |
814 | # with or without modifications, as long as this notice is preserved. | |
815 | ||
816 | # serial 5 | |
752 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
753 | # | |
754 | # This file is free software; the Free Software Foundation | |
755 | # gives unlimited permission to copy and/or distribute it, | |
756 | # with or without modifications, as long as this notice is preserved. | |
817 | 757 | |
818 | 758 | # AM_SANITY_CHECK |
819 | 759 | # --------------- |
820 | 760 | AC_DEFUN([AM_SANITY_CHECK], |
821 | 761 | [AC_MSG_CHECKING([whether build environment is sane]) |
822 | # Just in case | |
823 | sleep 1 | |
824 | echo timestamp > conftest.file | |
825 | 762 | # Reject unsafe characters in $srcdir or the absolute working directory |
826 | 763 | # name. Accept space and tab only in the latter. |
827 | 764 | am_lf=' |
832 | 769 | esac |
833 | 770 | case $srcdir in |
834 | 771 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
835 | AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |
772 | AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; | |
836 | 773 | esac |
837 | 774 | |
838 | # Do `set' in a subshell so we don't clobber the current shell's | |
775 | # Do 'set' in a subshell so we don't clobber the current shell's | |
839 | 776 | # arguments. Must try -L first in case configure is actually a |
840 | 777 | # symlink; some systems play weird games with the mod time of symlinks |
841 | 778 | # (eg FreeBSD returns the mod time of the symlink's containing |
842 | 779 | # directory). |
843 | 780 | if ( |
844 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
845 | if test "$[*]" = "X"; then | |
846 | # -L didn't work. | |
847 | set X `ls -t "$srcdir/configure" conftest.file` | |
848 | fi | |
849 | rm -f conftest.file | |
850 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
851 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
852 | ||
853 | # If neither matched, then we have a broken ls. This can happen | |
854 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
855 | # broken ls alias from the environment. This has actually | |
856 | # happened. Such a system could not be considered "sane". | |
857 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
858 | alias in your environment]) | |
859 | fi | |
860 | ||
781 | am_has_slept=no | |
782 | for am_try in 1 2; do | |
783 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
784 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
785 | if test "$[*]" = "X"; then | |
786 | # -L didn't work. | |
787 | set X `ls -t "$srcdir/configure" conftest.file` | |
788 | fi | |
789 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
790 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
791 | ||
792 | # If neither matched, then we have a broken ls. This can happen | |
793 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
794 | # broken ls alias from the environment. This has actually | |
795 | # happened. Such a system could not be considered "sane". | |
796 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
797 | alias in your environment]) | |
798 | fi | |
799 | if test "$[2]" = conftest.file || test $am_try -eq 2; then | |
800 | break | |
801 | fi | |
802 | # Just in case. | |
803 | sleep 1 | |
804 | am_has_slept=yes | |
805 | done | |
861 | 806 | test "$[2]" = conftest.file |
862 | 807 | ) |
863 | 808 | then |
867 | 812 | AC_MSG_ERROR([newly created file is older than distributed files! |
868 | 813 | Check your system clock]) |
869 | 814 | fi |
870 | AC_MSG_RESULT(yes)]) | |
871 | ||
872 | # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. | |
873 | # | |
874 | # This file is free software; the Free Software Foundation | |
875 | # gives unlimited permission to copy and/or distribute it, | |
876 | # with or without modifications, as long as this notice is preserved. | |
877 | ||
878 | # serial 1 | |
815 | AC_MSG_RESULT([yes]) | |
816 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
817 | # generated files are strictly newer. | |
818 | am_sleep_pid= | |
819 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
820 | ( sleep 1 ) & | |
821 | am_sleep_pid=$! | |
822 | fi | |
823 | AC_CONFIG_COMMANDS_PRE( | |
824 | [AC_MSG_CHECKING([that generated files are newer than configure]) | |
825 | if test -n "$am_sleep_pid"; then | |
826 | # Hide warnings about reused PIDs. | |
827 | wait $am_sleep_pid 2>/dev/null | |
828 | fi | |
829 | AC_MSG_RESULT([done])]) | |
830 | rm -f conftest.file | |
831 | ]) | |
832 | ||
833 | # Copyright (C) 2009-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. | |
838 | ||
839 | # AM_SILENT_RULES([DEFAULT]) | |
840 | # -------------------------- | |
841 | # Enable less verbose build rules; with the default set to DEFAULT | |
842 | # ("yes" being less verbose, "no" or empty being verbose). | |
843 | AC_DEFUN([AM_SILENT_RULES], | |
844 | [AC_ARG_ENABLE([silent-rules], [dnl | |
845 | AS_HELP_STRING( | |
846 | [--enable-silent-rules], | |
847 | [less verbose build output (undo: "make V=1")]) | |
848 | AS_HELP_STRING( | |
849 | [--disable-silent-rules], | |
850 | [verbose build output (undo: "make V=0")])dnl | |
851 | ]) | |
852 | case $enable_silent_rules in @%:@ ((( | |
853 | yes) AM_DEFAULT_VERBOSITY=0;; | |
854 | no) AM_DEFAULT_VERBOSITY=1;; | |
855 | *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; | |
856 | esac | |
857 | dnl | |
858 | dnl A few 'make' implementations (e.g., NonStop OS and NextStep) | |
859 | dnl do not support nested variable expansions. | |
860 | dnl See automake bug#9928 and bug#10237. | |
861 | am_make=${MAKE-make} | |
862 | AC_CACHE_CHECK([whether $am_make supports nested variables], | |
863 | [am_cv_make_support_nested_variables], | |
864 | [if AS_ECHO([['TRUE=$(BAR$(V)) | |
865 | BAR0=false | |
866 | BAR1=true | |
867 | V=1 | |
868 | am__doit: | |
869 | @$(TRUE) | |
870 | .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then | |
871 | am_cv_make_support_nested_variables=yes | |
872 | else | |
873 | am_cv_make_support_nested_variables=no | |
874 | fi]) | |
875 | if test $am_cv_make_support_nested_variables = yes; then | |
876 | dnl Using '$V' instead of '$(V)' breaks IRIX make. | |
877 | AM_V='$(V)' | |
878 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
879 | else | |
880 | AM_V=$AM_DEFAULT_VERBOSITY | |
881 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
882 | fi | |
883 | AC_SUBST([AM_V])dnl | |
884 | AM_SUBST_NOTMAKE([AM_V])dnl | |
885 | AC_SUBST([AM_DEFAULT_V])dnl | |
886 | AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl | |
887 | AC_SUBST([AM_DEFAULT_VERBOSITY])dnl | |
888 | AM_BACKSLASH='\' | |
889 | AC_SUBST([AM_BACKSLASH])dnl | |
890 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl | |
891 | ]) | |
892 | ||
893 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
894 | # | |
895 | # This file is free software; the Free Software Foundation | |
896 | # gives unlimited permission to copy and/or distribute it, | |
897 | # with or without modifications, as long as this notice is preserved. | |
879 | 898 | |
880 | 899 | # AM_PROG_INSTALL_STRIP |
881 | 900 | # --------------------- |
882 | # One issue with vendor `install' (even GNU) is that you can't | |
901 | # One issue with vendor 'install' (even GNU) is that you can't | |
883 | 902 | # specify the program used to strip binaries. This is especially |
884 | 903 | # annoying in cross-compiling environments, where the build's strip |
885 | 904 | # is unlikely to handle the host's binaries. |
886 | 905 | # Fortunately install-sh will honor a STRIPPROG variable, so we |
887 | # always use install-sh in `make install-strip', and initialize | |
906 | # always use install-sh in "make install-strip", and initialize | |
888 | 907 | # STRIPPROG with the value of the STRIP variable (set by the user). |
889 | 908 | AC_DEFUN([AM_PROG_INSTALL_STRIP], |
890 | 909 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
891 | # Installed binaries are usually stripped using `strip' when the user | |
892 | # run `make install-strip'. However `strip' might not be the right | |
910 | # Installed binaries are usually stripped using 'strip' when the user | |
911 | # run "make install-strip". However 'strip' might not be the right | |
893 | 912 | # tool to use in cross-compilation environments, therefore Automake |
894 | # will honor the `STRIP' environment variable to overrule this program. | |
895 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
913 | # will honor the 'STRIP' environment variable to overrule this program. | |
914 | dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. | |
896 | 915 | if test "$cross_compiling" != no; then |
897 | 916 | AC_CHECK_TOOL([STRIP], [strip], :) |
898 | 917 | fi |
899 | 918 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
900 | 919 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
901 | 920 | |
902 | # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. | |
903 | # | |
904 | # This file is free software; the Free Software Foundation | |
905 | # gives unlimited permission to copy and/or distribute it, | |
906 | # with or without modifications, as long as this notice is preserved. | |
907 | ||
908 | # serial 3 | |
921 | # Copyright (C) 2006-2013 Free Software Foundation, Inc. | |
922 | # | |
923 | # This file is free software; the Free Software Foundation | |
924 | # gives unlimited permission to copy and/or distribute it, | |
925 | # with or without modifications, as long as this notice is preserved. | |
909 | 926 | |
910 | 927 | # _AM_SUBST_NOTMAKE(VARIABLE) |
911 | 928 | # --------------------------- |
920 | 937 | |
921 | 938 | # Check how to create a tarball. -*- Autoconf -*- |
922 | 939 | |
923 | # Copyright (C) 2004, 2005, 2012 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. | |
928 | ||
929 | # serial 2 | |
940 | # Copyright (C) 2004-2013 Free Software Foundation, Inc. | |
941 | # | |
942 | # This file is free software; the Free Software Foundation | |
943 | # gives unlimited permission to copy and/or distribute it, | |
944 | # with or without modifications, as long as this notice is preserved. | |
930 | 945 | |
931 | 946 | # _AM_PROG_TAR(FORMAT) |
932 | 947 | # -------------------- |
933 | 948 | # Check how to create a tarball in format FORMAT. |
934 | # FORMAT should be one of `v7', `ustar', or `pax'. | |
949 | # FORMAT should be one of 'v7', 'ustar', or 'pax'. | |
935 | 950 | # |
936 | 951 | # Substitute a variable $(am__tar) that is a command |
937 | 952 | # writing to stdout a FORMAT-tarball containing the directory |
941 | 956 | # Substitute a variable $(am__untar) that extract such |
942 | 957 | # a tarball read from stdin. |
943 | 958 | # $(am__untar) < result.tar |
959 | # | |
944 | 960 | AC_DEFUN([_AM_PROG_TAR], |
945 | 961 | [# Always define AMTAR for backward compatibility. Yes, it's still used |
946 | 962 | # in the wild :-( We should find a proper way to deprecate it ... |
947 | 963 | AC_SUBST([AMTAR], ['$${TAR-tar}']) |
964 | ||
965 | # We'll loop over all known methods to create a tar archive until one works. | |
966 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
967 | ||
948 | 968 | m4_if([$1], [v7], |
949 | [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
950 | [m4_case([$1], [ustar],, [pax],, | |
951 | [m4_fatal([Unknown tar format])]) | |
952 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
953 | # Loop over all known methods to create a tar archive until one works. | |
954 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
955 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
956 | # Do not fold the above two line into one, because Tru64 sh and | |
957 | # Solaris sh will not grok spaces in the rhs of `-'. | |
958 | for _am_tool in $_am_tools | |
959 | do | |
960 | case $_am_tool in | |
961 | gnutar) | |
962 | for _am_tar in tar gnutar gtar; | |
963 | do | |
964 | AM_RUN_LOG([$_am_tar --version]) && break | |
965 | done | |
966 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
967 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
968 | am__untar="$_am_tar -xf -" | |
969 | ;; | |
970 | plaintar) | |
971 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
972 | # ustar tarball either. | |
973 | (tar --version) >/dev/null 2>&1 && continue | |
974 | am__tar='tar chf - "$$tardir"' | |
975 | am__tar_='tar chf - "$tardir"' | |
976 | am__untar='tar xf -' | |
977 | ;; | |
978 | pax) | |
979 | am__tar='pax -L -x $1 -w "$$tardir"' | |
980 | am__tar_='pax -L -x $1 -w "$tardir"' | |
981 | am__untar='pax -r' | |
982 | ;; | |
983 | cpio) | |
984 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
985 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
986 | am__untar='cpio -i -H $1 -d' | |
987 | ;; | |
988 | none) | |
989 | am__tar=false | |
990 | am__tar_=false | |
991 | am__untar=false | |
992 | ;; | |
993 | esac | |
994 | ||
995 | # If the value was cached, stop now. We just wanted to have am__tar | |
996 | # and am__untar set. | |
997 | test -n "${am_cv_prog_tar_$1}" && break | |
998 | ||
999 | # tar/untar a dummy directory, and stop if the command works | |
969 | [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], | |
970 | ||
971 | [m4_case([$1], | |
972 | [ustar], | |
973 | [# The POSIX 1988 'ustar' format is defined with fixed-size fields. | |
974 | # There is notably a 21 bits limit for the UID and the GID. In fact, | |
975 | # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 | |
976 | # and bug#13588). | |
977 | am_max_uid=2097151 # 2^21 - 1 | |
978 | am_max_gid=$am_max_uid | |
979 | # The $UID and $GID variables are not portable, so we need to resort | |
980 | # to the POSIX-mandated id(1) utility. Errors in the 'id' calls | |
981 | # below are definitely unexpected, so allow the users to see them | |
982 | # (that is, avoid stderr redirection). | |
983 | am_uid=`id -u || echo unknown` | |
984 | am_gid=`id -g || echo unknown` | |
985 | AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) | |
986 | if test $am_uid -le $am_max_uid; then | |
987 | AC_MSG_RESULT([yes]) | |
988 | else | |
989 | AC_MSG_RESULT([no]) | |
990 | _am_tools=none | |
991 | fi | |
992 | AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) | |
993 | if test $am_gid -le $am_max_gid; then | |
994 | AC_MSG_RESULT([yes]) | |
995 | else | |
996 | AC_MSG_RESULT([no]) | |
997 | _am_tools=none | |
998 | fi], | |
999 | ||
1000 | [pax], | |
1001 | [], | |
1002 | ||
1003 | [m4_fatal([Unknown tar format])]) | |
1004 | ||
1005 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
1006 | ||
1007 | # Go ahead even if we have the value already cached. We do so because we | |
1008 | # need to set the values for the 'am__tar' and 'am__untar' variables. | |
1009 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
1010 | ||
1011 | for _am_tool in $_am_tools; do | |
1012 | case $_am_tool in | |
1013 | gnutar) | |
1014 | for _am_tar in tar gnutar gtar; do | |
1015 | AM_RUN_LOG([$_am_tar --version]) && break | |
1016 | done | |
1017 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
1018 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
1019 | am__untar="$_am_tar -xf -" | |
1020 | ;; | |
1021 | plaintar) | |
1022 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
1023 | # ustar tarball either. | |
1024 | (tar --version) >/dev/null 2>&1 && continue | |
1025 | am__tar='tar chf - "$$tardir"' | |
1026 | am__tar_='tar chf - "$tardir"' | |
1027 | am__untar='tar xf -' | |
1028 | ;; | |
1029 | pax) | |
1030 | am__tar='pax -L -x $1 -w "$$tardir"' | |
1031 | am__tar_='pax -L -x $1 -w "$tardir"' | |
1032 | am__untar='pax -r' | |
1033 | ;; | |
1034 | cpio) | |
1035 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
1036 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
1037 | am__untar='cpio -i -H $1 -d' | |
1038 | ;; | |
1039 | none) | |
1040 | am__tar=false | |
1041 | am__tar_=false | |
1042 | am__untar=false | |
1043 | ;; | |
1044 | esac | |
1045 | ||
1046 | # If the value was cached, stop now. We just wanted to have am__tar | |
1047 | # and am__untar set. | |
1048 | test -n "${am_cv_prog_tar_$1}" && break | |
1049 | ||
1050 | # tar/untar a dummy directory, and stop if the command works. | |
1051 | rm -rf conftest.dir | |
1052 | mkdir conftest.dir | |
1053 | echo GrepMe > conftest.dir/file | |
1054 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1055 | rm -rf conftest.dir | |
1056 | if test -s conftest.tar; then | |
1057 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
1058 | AM_RUN_LOG([cat conftest.dir/file]) | |
1059 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1060 | fi | |
1061 | done | |
1000 | 1062 | rm -rf conftest.dir |
1001 | mkdir conftest.dir | |
1002 | echo GrepMe > conftest.dir/file | |
1003 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1004 | rm -rf conftest.dir | |
1005 | if test -s conftest.tar; then | |
1006 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
1007 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1008 | fi | |
1009 | done | |
1010 | rm -rf conftest.dir | |
1011 | ||
1012 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1013 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1063 | ||
1064 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1065 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1066 | ||
1014 | 1067 | AC_SUBST([am__tar]) |
1015 | 1068 | AC_SUBST([am__untar]) |
1016 | 1069 | ]) # _AM_PROG_TAR |
1017 | 1070 | |
1071 | m4_include([m4/ac_backport_259_ssizet.m4]) | |
1018 | 1072 | m4_include([m4/acx_pthread.m4]) |
1019 | 1073 | m4_include([m4/libtool.m4]) |
1020 | 1074 | m4_include([m4/ltoptions.m4]) |
514 | 514 | |
515 | 515 | BEV_LOCK(bev); |
516 | 516 | rv = bev_p->dns_error; |
517 | BEV_LOCK(bev); | |
517 | BEV_UNLOCK(bev); | |
518 | 518 | |
519 | 519 | return rv; |
520 | 520 | } |
0 | /* config.h.in. Generated from configure.in by autoheader. */ | |
0 | /* config.h.in. Generated from configure.ac by autoheader. */ | |
1 | 1 | |
2 | 2 | /* Define if libevent should build without support for a debug mode */ |
3 | 3 | #undef DISABLE_DEBUG_MODE |
693 | 693 | EGREP |
694 | 694 | GREP |
695 | 695 | CPP |
696 | SED | |
696 | 697 | LN_S |
697 | SED | |
698 | 698 | am__fastdepCC_FALSE |
699 | 699 | am__fastdepCC_TRUE |
700 | 700 | CCDEPMODE |
720 | 720 | build_vendor |
721 | 721 | build_cpu |
722 | 722 | build |
723 | AM_BACKSLASH | |
724 | AM_DEFAULT_VERBOSITY | |
725 | AM_DEFAULT_V | |
726 | AM_V | |
723 | 727 | am__untar |
724 | 728 | am__tar |
725 | 729 | AMTAR |
784 | 788 | ac_subst_files='' |
785 | 789 | ac_user_opts=' |
786 | 790 | enable_option_checking |
791 | enable_silent_rules | |
787 | 792 | enable_dependency_tracking |
788 | 793 | enable_gcc_warnings |
789 | 794 | enable_thread_support |
1426 | 1431 | --disable-option-checking ignore unrecognized --enable/--with options |
1427 | 1432 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1428 | 1433 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1429 | --disable-dependency-tracking speeds up one-time build | |
1430 | --enable-dependency-tracking do not reject slow dependency extractors | |
1434 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1435 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1436 | --enable-dependency-tracking | |
1437 | do not reject slow dependency extractors | |
1438 | --disable-dependency-tracking | |
1439 | speeds up one-time build | |
1431 | 1440 | --enable-gcc-warnings enable verbose warnings with GCC |
1432 | 1441 | --disable-thread-support |
1433 | 1442 | disable support for threading |
2589 | 2598 | |
2590 | 2599 | |
2591 | 2600 | |
2592 | am__api_version='1.11' | |
2601 | am__api_version='1.13' | |
2593 | 2602 | |
2594 | 2603 | ac_aux_dir= |
2595 | 2604 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2715 | 2724 | |
2716 | 2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2717 | 2726 | $as_echo_n "checking whether build environment is sane... " >&6; } |
2718 | # Just in case | |
2719 | sleep 1 | |
2720 | echo timestamp > conftest.file | |
2721 | 2727 | # Reject unsafe characters in $srcdir or the absolute working directory |
2722 | 2728 | # name. Accept space and tab only in the latter. |
2723 | 2729 | am_lf=' |
2728 | 2734 | esac |
2729 | 2735 | case $srcdir in |
2730 | 2736 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2731 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2737 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2732 | 2738 | esac |
2733 | 2739 | |
2734 | # Do `set' in a subshell so we don't clobber the current shell's | |
2740 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2735 | 2741 | # arguments. Must try -L first in case configure is actually a |
2736 | 2742 | # symlink; some systems play weird games with the mod time of symlinks |
2737 | 2743 | # (eg FreeBSD returns the mod time of the symlink's containing |
2738 | 2744 | # directory). |
2739 | 2745 | if ( |
2740 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2741 | if test "$*" = "X"; then | |
2742 | # -L didn't work. | |
2743 | set X `ls -t "$srcdir/configure" conftest.file` | |
2744 | fi | |
2745 | rm -f conftest.file | |
2746 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2747 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2748 | ||
2749 | # If neither matched, then we have a broken ls. This can happen | |
2750 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2751 | # broken ls alias from the environment. This has actually | |
2752 | # happened. Such a system could not be considered "sane". | |
2753 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2754 | alias in your environment" "$LINENO" 5 | |
2755 | fi | |
2756 | ||
2746 | am_has_slept=no | |
2747 | for am_try in 1 2; do | |
2748 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2749 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2750 | if test "$*" = "X"; then | |
2751 | # -L didn't work. | |
2752 | set X `ls -t "$srcdir/configure" conftest.file` | |
2753 | fi | |
2754 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2755 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2756 | ||
2757 | # If neither matched, then we have a broken ls. This can happen | |
2758 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2759 | # broken ls alias from the environment. This has actually | |
2760 | # happened. Such a system could not be considered "sane". | |
2761 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2762 | alias in your environment" "$LINENO" 5 | |
2763 | fi | |
2764 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2765 | break | |
2766 | fi | |
2767 | # Just in case. | |
2768 | sleep 1 | |
2769 | am_has_slept=yes | |
2770 | done | |
2757 | 2771 | test "$2" = conftest.file |
2758 | 2772 | ) |
2759 | 2773 | then |
2765 | 2779 | fi |
2766 | 2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2767 | 2781 | $as_echo "yes" >&6; } |
2782 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2783 | # generated files are strictly newer. | |
2784 | am_sleep_pid= | |
2785 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2786 | ( sleep 1 ) & | |
2787 | am_sleep_pid=$! | |
2788 | fi | |
2789 | ||
2790 | rm -f conftest.file | |
2791 | ||
2768 | 2792 | test "$program_prefix" != NONE && |
2769 | 2793 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2770 | 2794 | # Use a double $ so make ignores it. |
2787 | 2811 | esac |
2788 | 2812 | fi |
2789 | 2813 | # Use eval to expand $SHELL |
2790 | if eval "$MISSING --run true"; then | |
2791 | am_missing_run="$MISSING --run " | |
2814 | if eval "$MISSING --is-lightweight"; then | |
2815 | am_missing_run="$MISSING " | |
2792 | 2816 | else |
2793 | 2817 | am_missing_run= |
2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
2795 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2819 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2796 | 2820 | fi |
2797 | 2821 | |
2798 | 2822 | if test x"${install_sh}" != xset; then |
2804 | 2828 | esac |
2805 | 2829 | fi |
2806 | 2830 | |
2807 | # Installed binaries are usually stripped using `strip' when the user | |
2808 | # run `make install-strip'. However `strip' might not be the right | |
2831 | # Installed binaries are usually stripped using 'strip' when the user | |
2832 | # run "make install-strip". However 'strip' might not be the right | |
2809 | 2833 | # tool to use in cross-compilation environments, therefore Automake |
2810 | # will honor the `STRIP' environment variable to overrule this program. | |
2834 | # will honor the 'STRIP' environment variable to overrule this program. | |
2811 | 2835 | if test "$cross_compiling" != no; then |
2812 | 2836 | if test -n "$ac_tool_prefix"; then |
2813 | 2837 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2946 | 2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2947 | 2971 | $as_echo "$MKDIR_P" >&6; } |
2948 | 2972 | |
2949 | mkdir_p="$MKDIR_P" | |
2950 | case $mkdir_p in | |
2951 | [\\/$]* | ?:[\\/]*) ;; | |
2952 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2953 | esac | |
2954 | ||
2955 | 2973 | for ac_prog in gawk mawk nawk awk |
2956 | 2974 | do |
2957 | 2975 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3034 | 3052 | fi |
3035 | 3053 | rmdir .tst 2>/dev/null |
3036 | 3054 | |
3055 | # Check whether --enable-silent-rules was given. | |
3056 | if test "${enable_silent_rules+set}" = set; then : | |
3057 | enableval=$enable_silent_rules; | |
3058 | fi | |
3059 | ||
3060 | case $enable_silent_rules in # ((( | |
3061 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3062 | no) AM_DEFAULT_VERBOSITY=1;; | |
3063 | *) AM_DEFAULT_VERBOSITY=1;; | |
3064 | esac | |
3065 | am_make=${MAKE-make} | |
3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3067 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3068 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3069 | $as_echo_n "(cached) " >&6 | |
3070 | else | |
3071 | if $as_echo 'TRUE=$(BAR$(V)) | |
3072 | BAR0=false | |
3073 | BAR1=true | |
3074 | V=1 | |
3075 | am__doit: | |
3076 | @$(TRUE) | |
3077 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3078 | am_cv_make_support_nested_variables=yes | |
3079 | else | |
3080 | am_cv_make_support_nested_variables=no | |
3081 | fi | |
3082 | fi | |
3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3084 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3085 | if test $am_cv_make_support_nested_variables = yes; then | |
3086 | AM_V='$(V)' | |
3087 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3088 | else | |
3089 | AM_V=$AM_DEFAULT_VERBOSITY | |
3090 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3091 | fi | |
3092 | AM_BACKSLASH='\' | |
3093 | ||
3037 | 3094 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3038 | 3095 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
3039 | 3096 | # is not polluted with repeated "-I." |
3055 | 3112 | |
3056 | 3113 | |
3057 | 3114 | # Define the identity of the package. |
3115 | ||
3058 | 3116 | PACKAGE=libevent |
3059 | VERSION=2.0.21-stable | |
3117 | VERSION=2.0.21-stable-dev | |
3060 | 3118 | |
3061 | 3119 | |
3062 | 3120 | cat >>confdefs.h <<_ACEOF |
3083 | 3141 | |
3084 | 3142 | |
3085 | 3143 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
3144 | ||
3145 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3146 | # dies out for good. For more background, see: | |
3147 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3148 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3149 | mkdir_p='$(MKDIR_P)' | |
3086 | 3150 | |
3087 | 3151 | # We need awk for the "check" target. The system "awk" is bad on |
3088 | 3152 | # some platforms. |
3090 | 3154 | # in the wild :-( We should find a proper way to deprecate it ... |
3091 | 3155 | AMTAR='$${TAR-tar}' |
3092 | 3156 | |
3157 | ||
3158 | # We'll loop over all known methods to create a tar archive until one works. | |
3159 | _am_tools='gnutar pax cpio none' | |
3160 | ||
3093 | 3161 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
3094 | 3162 | |
3095 | 3163 | |
3096 | 3164 | |
3097 | 3165 | |
3098 | 3166 | |
3167 | ||
3099 | 3168 | ac_config_headers="$ac_config_headers config.h" |
3100 | 3169 | |
3101 | 3170 | |
3102 | $as_echo "#define NUMERIC_VERSION 0x02001500" >>confdefs.h | |
3171 | $as_echo "#define NUMERIC_VERSION 0x02001501" >>confdefs.h | |
3103 | 3172 | |
3104 | 3173 | |
3105 | 3174 | if test "$prefix" = "NONE"; then |
3992 | 4061 | _am_result=none |
3993 | 4062 | # First try GNU make style include. |
3994 | 4063 | echo "include confinc" > confmf |
3995 | # Ignore all kinds of additional output from `make'. | |
4064 | # Ignore all kinds of additional output from 'make'. | |
3996 | 4065 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3997 | 4066 | *the\ am__doit\ target*) |
3998 | 4067 | am__include=include |
4048 | 4117 | # We make a subdir and do the tests there. Otherwise we can end up |
4049 | 4118 | # making bogus files that we don't know about and never remove. For |
4050 | 4119 | # instance it was reported that on HP-UX the gcc test will end up |
4051 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4052 | # in D'. | |
4120 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4121 | # in D". | |
4053 | 4122 | rm -rf conftest.dir |
4054 | 4123 | mkdir conftest.dir |
4055 | 4124 | # Copy depcomp to subdir because otherwise we won't find it if we're |
4084 | 4153 | : > sub/conftest.c |
4085 | 4154 | for i in 1 2 3 4 5 6; do |
4086 | 4155 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
4087 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4088 | # Solaris 8's {/usr,}/bin/sh. | |
4089 | touch sub/conftst$i.h | |
4156 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4157 | # Solaris 10 /bin/sh. | |
4158 | echo '/* dummy */' > sub/conftst$i.h | |
4090 | 4159 | done |
4091 | 4160 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
4092 | 4161 | |
4093 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4162 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4094 | 4163 | # mode. It turns out that the SunPro C++ compiler does not properly |
4095 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4096 | # versions had trouble with output in subdirs | |
4164 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4165 | # versions had trouble with output in subdirs. | |
4097 | 4166 | am__obj=sub/conftest.${OBJEXT-o} |
4098 | 4167 | am__minus_obj="-o $am__obj" |
4099 | 4168 | case $depmode in |
4102 | 4171 | test "$am__universal" = false || continue |
4103 | 4172 | ;; |
4104 | 4173 | nosideeffect) |
4105 | # after this tag, mechanisms are not by side-effect, so they'll | |
4106 | # only be used when explicitly requested | |
4174 | # After this tag, mechanisms are not by side-effect, so they'll | |
4175 | # only be used when explicitly requested. | |
4107 | 4176 | if test "x$enable_dependency_tracking" = xyes; then |
4108 | 4177 | continue |
4109 | 4178 | else |
4111 | 4180 | fi |
4112 | 4181 | ;; |
4113 | 4182 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
4114 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4183 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4115 | 4184 | # not run yet. These depmodes are late enough in the game, and |
4116 | 4185 | # so weak that their functioning should not be impacted. |
4117 | 4186 | am__obj=conftest.${OBJEXT-o} |
4291 | 4360 | fi |
4292 | 4361 | |
4293 | 4362 | |
4363 | ||
4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4365 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4366 | LN_S=$as_ln_s | |
4367 | if test "$LN_S" = "ln -s"; then | |
4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4369 | $as_echo "yes" >&6; } | |
4370 | else | |
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4372 | $as_echo "no, using $LN_S" >&6; } | |
4373 | fi | |
4374 | ||
4375 | # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE | |
4376 | ||
4377 | # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older | |
4378 | # versions | |
4294 | 4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4295 | 4380 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
4296 | 4381 | if ${ac_cv_path_SED+:} false; then : |
4359 | 4444 | $as_echo "$ac_cv_path_SED" >&6; } |
4360 | 4445 | SED="$ac_cv_path_SED" |
4361 | 4446 | rm -f conftest.sed |
4362 | ||
4363 | ||
4364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4365 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4366 | LN_S=$as_ln_s | |
4367 | if test "$LN_S" = "ln -s"; then | |
4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4369 | $as_echo "yes" >&6; } | |
4370 | else | |
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4372 | $as_echo "no, using $LN_S" >&6; } | |
4373 | fi | |
4374 | ||
4375 | 4447 | |
4376 | 4448 | |
4377 | 4449 | |
15232 | 15304 | LTLIBOBJS=$ac_ltlibobjs |
15233 | 15305 | |
15234 | 15306 | |
15307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
15308 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
15309 | if test -n "$am_sleep_pid"; then | |
15310 | # Hide warnings about reused PIDs. | |
15311 | wait $am_sleep_pid 2>/dev/null | |
15312 | fi | |
15313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
15314 | $as_echo "done" >&6; } | |
15235 | 15315 | if test -n "$EXEEXT"; then |
15236 | 15316 | am__EXEEXT_TRUE= |
15237 | 15317 | am__EXEEXT_FALSE='#' |
16783 | 16863 | |
16784 | 16864 | case $ac_file$ac_mode in |
16785 | 16865 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
16786 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
16866 | # Older Autoconf quotes --file arguments for eval, but not when files | |
16787 | 16867 | # are listed without --file. Let's play safe and only enable the eval |
16788 | 16868 | # if we detect the quoting. |
16789 | 16869 | case $CONFIG_FILES in |
16796 | 16876 | # Strip MF so we end up with the name of the file. |
16797 | 16877 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
16798 | 16878 | # Check whether this is an Automake generated Makefile or not. |
16799 | # We used to match only the files named `Makefile.in', but | |
16879 | # We used to match only the files named 'Makefile.in', but | |
16800 | 16880 | # some people rename them; so instead we look at the file content. |
16801 | 16881 | # Grep'ing the first line is not enough: some people post-process |
16802 | 16882 | # each Makefile.in and add a new line on top of each file to say so. |
16830 | 16910 | continue |
16831 | 16911 | fi |
16832 | 16912 | # Extract the definition of DEPDIR, am__include, and am__quote |
16833 | # from the Makefile without running `make'. | |
16913 | # from the Makefile without running 'make'. | |
16834 | 16914 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
16835 | 16915 | test -z "$DEPDIR" && continue |
16836 | 16916 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
16837 | test -z "am__include" && continue | |
16917 | test -z "$am__include" && continue | |
16838 | 16918 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
16839 | # When using ansi2knr, U may be empty or an underscore; expand it | |
16840 | U=`sed -n 's/^U = //p' < "$mf"` | |
16841 | 16919 | # Find all dependency output files, they are included files with |
16842 | 16920 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
16843 | 16921 | # simplest approach to changing $(DEPDIR) to its actual value in the |
16844 | 16922 | # expansion. |
16845 | 16923 | for file in `sed -n " |
16846 | 16924 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
16847 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
16925 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
16848 | 16926 | # Make sure the directory exists. |
16849 | 16927 | test -f "$dirpart/$file" && continue |
16850 | 16928 | fdir=`$as_dirname -- "$file" || |
0 | dnl configure.in for libevent | |
1 | dnl Copyright 2000-2007 Niels Provos | |
2 | dnl Copyright 2007-2012 Niels Provos and Nick Mathewson | |
3 | dnl | |
4 | dnl See LICENSE for copying information. | |
5 | dnl | |
6 | dnl Original version Dug Song <dugsong@monkey.org> | |
7 | ||
8 | AC_PREREQ(2.59) | |
9 | AC_INIT(event.c) | |
10 | ||
11 | AC_CONFIG_MACRO_DIR([m4]) | |
12 | ||
13 | AM_INIT_AUTOMAKE(libevent,2.0.21-stable-dev) | |
14 | AC_CONFIG_HEADERS(config.h) | |
15 | AC_DEFINE(NUMERIC_VERSION, 0x02001501, [Numeric representation of the version]) | |
16 | ||
17 | dnl Initialize prefix. | |
18 | if test "$prefix" = "NONE"; then | |
19 | prefix="/usr/local" | |
20 | fi | |
21 | ||
22 | AC_CANONICAL_BUILD | |
23 | AC_CANONICAL_HOST | |
24 | dnl the 'build' machine is where we run configure and compile | |
25 | dnl the 'host' machine is where the resulting stuff runs. | |
26 | ||
27 | case "$host_os" in | |
28 | ||
29 | osf5*) | |
30 | CFLAGS="$CFLAGS -D_OSF_SOURCE" | |
31 | ;; | |
32 | esac | |
33 | ||
34 | dnl Checks for programs. | |
35 | AC_PROG_CC | |
36 | AM_PROG_CC_C_O | |
37 | AC_PROG_INSTALL | |
38 | AC_PROG_LN_S | |
39 | # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE | |
40 | ||
41 | # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older | |
42 | # versions | |
43 | ifdef([AC_PROG_SED], [AC_PROG_SED], [ | |
44 | AC_CHECK_PROGS(SED, [gsed sed]) | |
45 | ]) | |
46 | ||
47 | AC_PROG_GCC_TRADITIONAL | |
48 | ||
49 | # We need to test for at least gcc 2.95 here, because older versions don't | |
50 | # have -fno-strict-aliasing | |
51 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ | |
52 | #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95) | |
53 | #error | |
54 | #endif])], have_gcc295=yes, have_gcc295=no) | |
55 | ||
56 | if test "$GCC" = "yes" ; then | |
57 | # Enable many gcc warnings by default... | |
58 | CFLAGS="$CFLAGS -Wall" | |
59 | # And disable the strict-aliasing optimization, since it breaks | |
60 | # our sockaddr-handling code in strange ways. | |
61 | if test x$have_gcc295 = xyes; then | |
62 | CFLAGS="$CFLAGS -fno-strict-aliasing" | |
63 | fi | |
64 | fi | |
65 | ||
66 | # OS X Lion started deprecating the system openssl. Let's just disable | |
67 | # all deprecation warnings on OS X. | |
68 | case "$host_os" in | |
69 | ||
70 | darwin*) | |
71 | CFLAGS="$CFLAGS -Wno-deprecated-declarations" | |
72 | ;; | |
73 | esac | |
74 | ||
75 | AC_ARG_ENABLE(gcc-warnings, | |
76 | AS_HELP_STRING(--enable-gcc-warnings, enable verbose warnings with GCC)) | |
77 | AC_ARG_ENABLE(thread-support, | |
78 | AS_HELP_STRING(--disable-thread-support, disable support for threading), | |
79 | [], [enable_thread_support=yes]) | |
80 | AC_ARG_ENABLE(malloc-replacement, | |
81 | AS_HELP_STRING(--disable-malloc-replacement, disable support for replacing the memory mgt functions), | |
82 | [], [enable_malloc_replacement=yes]) | |
83 | AC_ARG_ENABLE(openssl, | |
84 | AS_HELP_STRING(--disable-openssl, disable support for openssl encryption), | |
85 | [], [enable_openssl=yes]) | |
86 | AC_ARG_ENABLE(debug-mode, | |
87 | AS_HELP_STRING(--disable-debug-mode, disable support for running in debug mode), | |
88 | [], [enable_debug_mode=yes]) | |
89 | AC_ARG_ENABLE([libevent-install], | |
90 | AS_HELP_STRING([--disable-libevent-install, disable installation of libevent]), | |
91 | [], [enable_libevent_install=yes]) | |
92 | AC_ARG_ENABLE([libevent-regress], | |
93 | AS_HELP_STRING([--disable-libevent-regress, skip regress in make check]), | |
94 | [], [enable_libevent_regress=yes]) | |
95 | AC_ARG_ENABLE([function-sections], | |
96 | AS_HELP_STRING([--enable-function-sections, make static library allow smaller binaries with --gc-sections]), | |
97 | [], [enable_function_sections=no]) | |
98 | ||
99 | ||
100 | AC_PROG_LIBTOOL | |
101 | ||
102 | dnl Uncomment "AC_DISABLE_SHARED" to make shared librraries not get | |
103 | dnl built by default. You can also turn shared libs on and off from | |
104 | dnl the command line with --enable-shared and --disable-shared. | |
105 | dnl AC_DISABLE_SHARED | |
106 | AC_SUBST(LIBTOOL_DEPS) | |
107 | ||
108 | AM_CONDITIONAL([BUILD_REGRESS], [test "$enable_libevent_regress" = "yes"]) | |
109 | ||
110 | dnl Checks for libraries. | |
111 | AC_SEARCH_LIBS([inet_ntoa], [nsl]) | |
112 | AC_SEARCH_LIBS([socket], [socket]) | |
113 | AC_SEARCH_LIBS([inet_aton], [resolv]) | |
114 | AC_SEARCH_LIBS([clock_gettime], [rt]) | |
115 | AC_SEARCH_LIBS([sendfile], [sendfile]) | |
116 | ||
117 | dnl - check if the macro WIN32 is defined on this compiler. | |
118 | dnl - (this is how we check for a windows version of GCC) | |
119 | AC_MSG_CHECKING(for WIN32) | |
120 | AC_TRY_COMPILE(, | |
121 | [ | |
122 | #ifndef WIN32 | |
123 | die horribly | |
124 | #endif | |
125 | ], | |
126 | bwin32=true; AC_MSG_RESULT(yes), | |
127 | bwin32=false; AC_MSG_RESULT(no), | |
128 | ) | |
129 | ||
130 | dnl - check if the macro __CYGWIN__ is defined on this compiler. | |
131 | dnl - (this is how we check for a cygwin version of GCC) | |
132 | AC_MSG_CHECKING(for CYGWIN) | |
133 | AC_TRY_COMPILE(, | |
134 | [ | |
135 | #ifndef __CYGWIN__ | |
136 | die horribly | |
137 | #endif | |
138 | ], | |
139 | cygwin=true; AC_MSG_RESULT(yes), | |
140 | cygwin=false; AC_MSG_RESULT(no), | |
141 | ) | |
142 | ||
143 | AC_CHECK_HEADERS([zlib.h]) | |
144 | ||
145 | if test "x$ac_cv_header_zlib_h" = "xyes"; then | |
146 | dnl Determine if we have zlib for regression tests | |
147 | dnl Don't put this one in LIBS | |
148 | save_LIBS="$LIBS" | |
149 | LIBS="" | |
150 | ZLIB_LIBS="" | |
151 | have_zlib=no | |
152 | AC_SEARCH_LIBS([inflateEnd], [z], | |
153 | [have_zlib=yes | |
154 | ZLIB_LIBS="$LIBS" | |
155 | AC_DEFINE(HAVE_LIBZ, 1, [Define if the system has zlib])]) | |
156 | LIBS="$save_LIBS" | |
157 | AC_SUBST(ZLIB_LIBS) | |
158 | fi | |
159 | AM_CONDITIONAL(ZLIB_REGRESS, [test "$have_zlib" = "yes"]) | |
160 | ||
161 | dnl See if we have openssl. This doesn't go in LIBS either. | |
162 | if test "$bwin32" = true; then | |
163 | EV_LIB_WS32=-lws2_32 | |
164 | EV_LIB_GDI=-lgdi32 | |
165 | else | |
166 | EV_LIB_WS32= | |
167 | EV_LIB_GDI= | |
168 | fi | |
169 | AC_SUBST(EV_LIB_WS32) | |
170 | AC_SUBST(EV_LIB_GDI) | |
171 | AC_SUBST(OPENSSL_LIBADD) | |
172 | ||
173 | AC_CHECK_HEADERS([openssl/bio.h]) | |
174 | ||
175 | if test "$enable_openssl" = "yes"; then | |
176 | save_LIBS="$LIBS" | |
177 | LIBS="" | |
178 | OPENSSL_LIBS="" | |
179 | have_openssl=no | |
180 | AC_SEARCH_LIBS([SSL_new], [ssl], | |
181 | [have_openssl=yes | |
182 | OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" | |
183 | AC_DEFINE(HAVE_OPENSSL, 1, [Define if the system has openssl])], | |
184 | [have_openssl=no], | |
185 | [-lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD]) | |
186 | LIBS="$save_LIBS" | |
187 | AC_SUBST(OPENSSL_LIBS) | |
188 | fi | |
189 | ||
190 | dnl Checks for header files. | |
191 | AC_HEADER_STDC | |
192 | AC_CHECK_HEADERS([fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h]) | |
193 | AC_CHECK_HEADERS([sys/stat.h]) | |
194 | AC_CHECK_HEADERS(sys/sysctl.h, [], [], [ | |
195 | #ifdef HAVE_SYS_PARAM_H | |
196 | #include <sys/param.h> | |
197 | #endif | |
198 | ]) | |
199 | if test "x$ac_cv_header_sys_queue_h" = "xyes"; then | |
200 | AC_MSG_CHECKING(for TAILQ_FOREACH in sys/queue.h) | |
201 | AC_EGREP_CPP(yes, | |
202 | [ | |
203 | #include <sys/queue.h> | |
204 | #ifdef TAILQ_FOREACH | |
205 | yes | |
206 | #endif | |
207 | ], [AC_MSG_RESULT(yes) | |
208 | AC_DEFINE(HAVE_TAILQFOREACH, 1, | |
209 | [Define if TAILQ_FOREACH is defined in <sys/queue.h>])], | |
210 | AC_MSG_RESULT(no) | |
211 | ) | |
212 | fi | |
213 | ||
214 | if test "x$ac_cv_header_sys_time_h" = "xyes"; then | |
215 | AC_MSG_CHECKING(for timeradd in sys/time.h) | |
216 | AC_EGREP_CPP(yes, | |
217 | [ | |
218 | #include <sys/time.h> | |
219 | #ifdef timeradd | |
220 | yes | |
221 | #endif | |
222 | ], [ AC_DEFINE(HAVE_TIMERADD, 1, | |
223 | [Define if timeradd is defined in <sys/time.h>]) | |
224 | AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no) | |
225 | ) | |
226 | fi | |
227 | ||
228 | if test "x$ac_cv_header_sys_time_h" = "xyes"; then | |
229 | AC_MSG_CHECKING(for timercmp in sys/time.h) | |
230 | AC_EGREP_CPP(yes, | |
231 | [ | |
232 | #include <sys/time.h> | |
233 | #ifdef timercmp | |
234 | yes | |
235 | #endif | |
236 | ], [ AC_DEFINE(HAVE_TIMERCMP, 1, | |
237 | [Define if timercmp is defined in <sys/time.h>]) | |
238 | AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no) | |
239 | ) | |
240 | fi | |
241 | ||
242 | if test "x$ac_cv_header_sys_time_h" = "xyes"; then | |
243 | AC_MSG_CHECKING(for timerclear in sys/time.h) | |
244 | AC_EGREP_CPP(yes, | |
245 | [ | |
246 | #include <sys/time.h> | |
247 | #ifdef timerclear | |
248 | yes | |
249 | #endif | |
250 | ], [ AC_DEFINE(HAVE_TIMERCLEAR, 1, | |
251 | [Define if timerclear is defined in <sys/time.h>]) | |
252 | AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no) | |
253 | ) | |
254 | fi | |
255 | ||
256 | if test "x$ac_cv_header_sys_time_h" = "xyes"; then | |
257 | AC_MSG_CHECKING(for timerisset in sys/time.h) | |
258 | AC_EGREP_CPP(yes, | |
259 | [ | |
260 | #include <sys/time.h> | |
261 | #ifdef timerisset | |
262 | yes | |
263 | #endif | |
264 | ], [ AC_DEFINE(HAVE_TIMERISSET, 1, | |
265 | [Define if timerisset is defined in <sys/time.h>]) | |
266 | AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no) | |
267 | ) | |
268 | fi | |
269 | ||
270 | if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then | |
271 | AC_CHECK_DECLS([CTL_KERN, KERN_RANDOM, RANDOM_UUID, KERN_ARND], [], [], | |
272 | [[#include <sys/types.h> | |
273 | #include <sys/sysctl.h>]] | |
274 | ) | |
275 | fi | |
276 | ||
277 | AM_CONDITIONAL(BUILD_WIN32, test x$bwin32 = xtrue) | |
278 | AM_CONDITIONAL(BUILD_CYGWIN, test x$cygwin = xtrue) | |
279 | AM_CONDITIONAL(BUILD_WITH_NO_UNDEFINED, test x$bwin32 = xtrue || test x$cygwin = xtrue) | |
280 | ||
281 | if test x$bwin32 = xtrue; then | |
282 | AC_SEARCH_LIBS([getservbyname],[ws2_32]) | |
283 | fi | |
284 | ||
285 | dnl Checks for typedefs, structures, and compiler characteristics. | |
286 | AC_C_CONST | |
287 | AC_C_INLINE | |
288 | AC_HEADER_TIME | |
289 | ||
290 | dnl Checks for library functions. | |
291 | AC_CHECK_FUNCS([gettimeofday vasprintf fcntl clock_gettime strtok_r strsep]) | |
292 | AC_CHECK_FUNCS([getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl]) | |
293 | AC_CHECK_FUNCS([umask]) | |
294 | ||
295 | AC_CACHE_CHECK( | |
296 | [for getaddrinfo], | |
297 | [libevent_cv_getaddrinfo], | |
298 | [AC_LINK_IFELSE( | |
299 | [AC_LANG_PROGRAM( | |
300 | [[ | |
301 | #ifdef HAVE_NETDB_H | |
302 | #include <netdb.h> | |
303 | #endif | |
304 | ]], | |
305 | [[ | |
306 | getaddrinfo; | |
307 | ]] | |
308 | )], | |
309 | [libevent_cv_getaddrinfo=yes], | |
310 | [libevent_cv_getaddrinfo=no] | |
311 | )] | |
312 | ) | |
313 | if test "$libevent_cv_getaddrinfo" = "yes" ; then | |
314 | AC_DEFINE([HAVE_GETADDRINFO], [1], [Do we have getaddrinfo()?]) | |
315 | else | |
316 | ||
317 | AC_CHECK_FUNCS([getservbyname]) | |
318 | # Check for gethostbyname_r in all its glorious incompatible versions. | |
319 | # (This is cut-and-pasted from Tor, which based its logic on | |
320 | # Python's configure.in.) | |
321 | AH_TEMPLATE(HAVE_GETHOSTBYNAME_R, | |
322 | [Define this if you have any gethostbyname_r()]) | |
323 | ||
324 | AC_CHECK_FUNC(gethostbyname_r, [ | |
325 | AC_MSG_CHECKING([how many arguments gethostbyname_r() wants]) | |
326 | OLD_CFLAGS=$CFLAGS | |
327 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | |
328 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ | |
329 | #include <netdb.h> | |
330 | ], [[ | |
331 | char *cp1, *cp2; | |
332 | struct hostent *h1, *h2; | |
333 | int i1, i2; | |
334 | (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2); | |
335 | ]])],[ | |
336 | AC_DEFINE(HAVE_GETHOSTBYNAME_R) | |
337 | AC_DEFINE(HAVE_GETHOSTBYNAME_R_6_ARG, 1, | |
338 | [Define this if gethostbyname_r takes 6 arguments]) | |
339 | AC_MSG_RESULT(6) | |
340 | ], [ | |
341 | AC_TRY_COMPILE([ | |
342 | #include <netdb.h> | |
343 | ], [ | |
344 | char *cp1, *cp2; | |
345 | struct hostent *h1; | |
346 | int i1, i2; | |
347 | (void)gethostbyname_r(cp1,h1,cp2,i1,&i2); | |
348 | ], [ | |
349 | AC_DEFINE(HAVE_GETHOSTBYNAME_R) | |
350 | AC_DEFINE(HAVE_GETHOSTBYNAME_R_5_ARG, 1, | |
351 | [Define this if gethostbyname_r takes 5 arguments]) | |
352 | AC_MSG_RESULT(5) | |
353 | ], [ | |
354 | AC_TRY_COMPILE([ | |
355 | #include <netdb.h> | |
356 | ], [ | |
357 | char *cp1; | |
358 | struct hostent *h1; | |
359 | struct hostent_data hd; | |
360 | (void) gethostbyname_r(cp1,h1,&hd); | |
361 | ], [ | |
362 | AC_DEFINE(HAVE_GETHOSTBYNAME_R) | |
363 | AC_DEFINE(HAVE_GETHOSTBYNAME_R_3_ARG, 1, | |
364 | [Define this if gethostbyname_r takes 3 arguments]) | |
365 | AC_MSG_RESULT(3) | |
366 | ], [ | |
367 | AC_MSG_RESULT(0) | |
368 | ]) | |
369 | ]) | |
370 | ]) | |
371 | CFLAGS=$OLD_CFLAGS | |
372 | ]) | |
373 | ||
374 | fi | |
375 | ||
376 | AC_CHECK_SIZEOF(long) | |
377 | ||
378 | AC_MSG_CHECKING(for F_SETFD in fcntl.h) | |
379 | AC_EGREP_CPP(yes, | |
380 | [ | |
381 | #define _GNU_SOURCE | |
382 | #include <fcntl.h> | |
383 | #ifdef F_SETFD | |
384 | yes | |
385 | #endif | |
386 | ], [ AC_DEFINE(HAVE_SETFD, 1, | |
387 | [Define if F_SETFD is defined in <fcntl.h>]) | |
388 | AC_MSG_RESULT(yes) ], AC_MSG_RESULT(no)) | |
389 | ||
390 | needsignal=no | |
391 | haveselect=no | |
392 | if test x$bwin32 != xtrue; then | |
393 | AC_CHECK_FUNCS(select, [haveselect=yes], ) | |
394 | if test "x$haveselect" = "xyes" ; then | |
395 | needsignal=yes | |
396 | fi | |
397 | fi | |
398 | AM_CONDITIONAL(SELECT_BACKEND, [test "x$haveselect" = "xyes"]) | |
399 | ||
400 | havepoll=no | |
401 | AC_CHECK_FUNCS(poll, [havepoll=yes], ) | |
402 | if test "x$havepoll" = "xyes" ; then | |
403 | needsignal=yes | |
404 | fi | |
405 | AM_CONDITIONAL(POLL_BACKEND, [test "x$havepoll" = "xyes"]) | |
406 | ||
407 | havedevpoll=no | |
408 | if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then | |
409 | AC_DEFINE(HAVE_DEVPOLL, 1, | |
410 | [Define if /dev/poll is available]) | |
411 | fi | |
412 | AM_CONDITIONAL(DEVPOLL_BACKEND, [test "x$ac_cv_header_sys_devpoll_h" = "xyes"]) | |
413 | ||
414 | havekqueue=no | |
415 | if test "x$ac_cv_header_sys_event_h" = "xyes"; then | |
416 | AC_CHECK_FUNCS(kqueue, [havekqueue=yes], ) | |
417 | if test "x$havekqueue" = "xyes" ; then | |
418 | AC_MSG_CHECKING(for working kqueue) | |
419 | AC_TRY_RUN( | |
420 | #include <sys/types.h> | |
421 | #include <sys/time.h> | |
422 | #include <sys/event.h> | |
423 | #include <stdio.h> | |
424 | #include <unistd.h> | |
425 | #include <fcntl.h> | |
426 | ||
427 | int | |
428 | main(int argc, char **argv) | |
429 | { | |
430 | int kq; | |
431 | int n; | |
432 | int fd[[2]]; | |
433 | struct kevent ev; | |
434 | struct timespec ts; | |
435 | char buf[[8000]]; | |
436 | ||
437 | if (pipe(fd) == -1) | |
438 | exit(1); | |
439 | if (fcntl(fd[[1]], F_SETFL, O_NONBLOCK) == -1) | |
440 | exit(1); | |
441 | ||
442 | while ((n = write(fd[[1]], buf, sizeof(buf))) == sizeof(buf)) | |
443 | ; | |
444 | ||
445 | if ((kq = kqueue()) == -1) | |
446 | exit(1); | |
447 | ||
448 | memset(&ev, 0, sizeof(ev)); | |
449 | ev.ident = fd[[1]]; | |
450 | ev.filter = EVFILT_WRITE; | |
451 | ev.flags = EV_ADD | EV_ENABLE; | |
452 | n = kevent(kq, &ev, 1, NULL, 0, NULL); | |
453 | if (n == -1) | |
454 | exit(1); | |
455 | ||
456 | read(fd[[0]], buf, sizeof(buf)); | |
457 | ||
458 | ts.tv_sec = 0; | |
459 | ts.tv_nsec = 0; | |
460 | n = kevent(kq, NULL, 0, &ev, 1, &ts); | |
461 | if (n == -1 || n == 0) | |
462 | exit(1); | |
463 | ||
464 | exit(0); | |
465 | }, [AC_MSG_RESULT(yes) | |
466 | AC_DEFINE(HAVE_WORKING_KQUEUE, 1, | |
467 | [Define if kqueue works correctly with pipes]) | |
468 | havekqueue=yes | |
469 | ], AC_MSG_RESULT(no), AC_MSG_RESULT(no)) | |
470 | fi | |
471 | fi | |
472 | AM_CONDITIONAL(KQUEUE_BACKEND, [test "x$havekqueue" = "xyes"]) | |
473 | ||
474 | haveepollsyscall=no | |
475 | haveepoll=no | |
476 | AC_CHECK_FUNCS(epoll_ctl, [haveepoll=yes], ) | |
477 | if test "x$haveepoll" = "xyes" ; then | |
478 | AC_DEFINE(HAVE_EPOLL, 1, | |
479 | [Define if your system supports the epoll system calls]) | |
480 | needsignal=yes | |
481 | fi | |
482 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
483 | if test "x$haveepoll" = "xno" ; then | |
484 | AC_MSG_CHECKING(for epoll system call) | |
485 | AC_TRY_RUN( | |
486 | #include <stdint.h> | |
487 | #include <sys/param.h> | |
488 | #include <sys/types.h> | |
489 | #include <sys/syscall.h> | |
490 | #include <sys/epoll.h> | |
491 | #include <unistd.h> | |
492 | ||
493 | int | |
494 | epoll_create(int size) | |
495 | { | |
496 | return (syscall(__NR_epoll_create, size)); | |
497 | } | |
498 | ||
499 | int | |
500 | main(int argc, char **argv) | |
501 | { | |
502 | int epfd; | |
503 | ||
504 | epfd = epoll_create(256); | |
505 | exit (epfd == -1 ? 1 : 0); | |
506 | }, [AC_MSG_RESULT(yes) | |
507 | AC_DEFINE(HAVE_EPOLL, 1, | |
508 | [Define if your system supports the epoll system calls]) | |
509 | needsignal=yes | |
510 | have_epoll=yes | |
511 | AC_LIBOBJ(epoll_sub) | |
512 | ], AC_MSG_RESULT(no), AC_MSG_RESULT(no)) | |
513 | fi | |
514 | fi | |
515 | AM_CONDITIONAL(EPOLL_BACKEND, [test "x$haveepoll" = "xyes"]) | |
516 | ||
517 | haveeventports=no | |
518 | AC_CHECK_FUNCS(port_create, [haveeventports=yes], ) | |
519 | if test "x$haveeventports" = "xyes" ; then | |
520 | AC_DEFINE(HAVE_EVENT_PORTS, 1, | |
521 | [Define if your system supports event ports]) | |
522 | needsignal=yes | |
523 | fi | |
524 | AM_CONDITIONAL(EVPORT_BACKEND, [test "x$haveeventports" = "xyes"]) | |
525 | ||
526 | if test "x$bwin32" = "xtrue"; then | |
527 | needsignal=yes | |
528 | fi | |
529 | ||
530 | AM_CONDITIONAL(SIGNAL_SUPPORT, [test "x$needsignal" = "xyes"]) | |
531 | ||
532 | AC_TYPE_PID_T | |
533 | AC_TYPE_SIZE_T | |
534 | AC_TYPE_SSIZE_T | |
535 | ||
536 | AC_CHECK_TYPES([uint64_t, uint32_t, uint16_t, uint8_t, uintptr_t], , , | |
537 | [#ifdef HAVE_STDINT_H | |
538 | #include <stdint.h> | |
539 | #elif defined(HAVE_INTTYPES_H) | |
540 | #include <inttypes.h> | |
541 | #endif | |
542 | #ifdef HAVE_SYS_TYPES_H | |
543 | #include <sys/types.h> | |
544 | #endif]) | |
545 | ||
546 | AC_CHECK_TYPES([fd_mask], , , | |
547 | [#ifdef HAVE_SYS_TYPES_H | |
548 | #include <sys/types.h> | |
549 | #endif | |
550 | #ifdef HAVE_SYS_SELECT_H | |
551 | #include <sys/select.h> | |
552 | #endif]) | |
553 | ||
554 | AC_CHECK_SIZEOF(long long) | |
555 | AC_CHECK_SIZEOF(long) | |
556 | AC_CHECK_SIZEOF(int) | |
557 | AC_CHECK_SIZEOF(short) | |
558 | AC_CHECK_SIZEOF(size_t) | |
559 | AC_CHECK_SIZEOF(void *) | |
560 | ||
561 | AC_CHECK_TYPES([struct in6_addr, struct sockaddr_in6, sa_family_t, struct addrinfo, struct sockaddr_storage], , , | |
562 | [#define _GNU_SOURCE | |
563 | #include <sys/types.h> | |
564 | #ifdef HAVE_NETINET_IN_H | |
565 | #include <netinet/in.h> | |
566 | #endif | |
567 | #ifdef HAVE_NETINET_IN6_H | |
568 | #include <netinet/in6.h> | |
569 | #endif | |
570 | #ifdef HAVE_SYS_SOCKET_H | |
571 | #include <sys/socket.h> | |
572 | #endif | |
573 | #ifdef HAVE_NETDB_H | |
574 | #include <netdb.h> | |
575 | #endif | |
576 | #ifdef WIN32 | |
577 | #define WIN32_WINNT 0x400 | |
578 | #define _WIN32_WINNT 0x400 | |
579 | #define WIN32_LEAN_AND_MEAN | |
580 | #if defined(_MSC_VER) && (_MSC_VER < 1300) | |
581 | #include <winsock.h> | |
582 | #else | |
583 | #include <winsock2.h> | |
584 | #include <ws2tcpip.h> | |
585 | #endif | |
586 | #endif | |
587 | ]) | |
588 | AC_CHECK_MEMBERS([struct in6_addr.s6_addr32, struct in6_addr.s6_addr16, struct sockaddr_in.sin_len, struct sockaddr_in6.sin6_len, struct sockaddr_storage.ss_family, struct sockaddr_storage.__ss_family], , , | |
589 | [#include <sys/types.h> | |
590 | #ifdef HAVE_NETINET_IN_H | |
591 | #include <netinet/in.h> | |
592 | #endif | |
593 | #ifdef HAVE_NETINET_IN6_H | |
594 | #include <netinet/in6.h> | |
595 | #endif | |
596 | #ifdef HAVE_SYS_SOCKET_H | |
597 | #include <sys/socket.h> | |
598 | #endif | |
599 | #ifdef WIN32 | |
600 | #define WIN32_WINNT 0x400 | |
601 | #define _WIN32_WINNT 0x400 | |
602 | #define WIN32_LEAN_AND_MEAN | |
603 | #if defined(_MSC_VER) && (_MSC_VER < 1300) | |
604 | #include <winsock.h> | |
605 | #else | |
606 | #include <winsock2.h> | |
607 | #include <ws2tcpip.h> | |
608 | #endif | |
609 | #endif | |
610 | ]) | |
611 | ||
612 | AC_MSG_CHECKING([for socklen_t]) | |
613 | AC_TRY_COMPILE([ | |
614 | #include <sys/types.h> | |
615 | #include <sys/socket.h>], | |
616 | [socklen_t x;], | |
617 | AC_MSG_RESULT([yes]), | |
618 | [AC_MSG_RESULT([no]) | |
619 | AC_DEFINE(socklen_t, unsigned int, | |
620 | [Define to unsigned int if you dont have it])] | |
621 | ) | |
622 | ||
623 | AC_MSG_CHECKING([whether our compiler supports __func__]) | |
624 | AC_TRY_COMPILE([], | |
625 | [ const char *cp = __func__; ], | |
626 | AC_MSG_RESULT([yes]), | |
627 | AC_MSG_RESULT([no]) | |
628 | AC_MSG_CHECKING([whether our compiler supports __FUNCTION__]) | |
629 | AC_TRY_COMPILE([], | |
630 | [ const char *cp = __FUNCTION__; ], | |
631 | AC_MSG_RESULT([yes]) | |
632 | AC_DEFINE(__func__, __FUNCTION__, | |
633 | [Define to appropriate substitue if compiler doesnt have __func__]), | |
634 | AC_MSG_RESULT([no]) | |
635 | AC_DEFINE(__func__, __FILE__, | |
636 | [Define to appropriate substitue if compiler doesnt have __func__]))) | |
637 | ||
638 | ||
639 | # check if we can compile with pthreads | |
640 | have_pthreads=no | |
641 | if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then | |
642 | ACX_PTHREAD([ | |
643 | AC_DEFINE(HAVE_PTHREADS, 1, | |
644 | [Define if we have pthreads on this system]) | |
645 | have_pthreads=yes]) | |
646 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
647 | AC_CHECK_SIZEOF(pthread_t, , | |
648 | [AC_INCLUDES_DEFAULT() | |
649 | #include <pthread.h> ] | |
650 | ) | |
651 | fi | |
652 | AM_CONDITIONAL(PTHREADS, [test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"]) | |
653 | ||
654 | # check if we should compile locking into the library | |
655 | if test x$enable_thread_support = xno; then | |
656 | AC_DEFINE(DISABLE_THREAD_SUPPORT, 1, | |
657 | [Define if libevent should not be compiled with thread support]) | |
658 | fi | |
659 | ||
660 | # check if we should hard-code the mm functions. | |
661 | if test x$enable_malloc_replacement = xno; then | |
662 | AC_DEFINE(DISABLE_MM_REPLACEMENT, 1, | |
663 | [Define if libevent should not allow replacing the mm functions]) | |
664 | fi | |
665 | ||
666 | # check if we should hard-code debugging out | |
667 | if test x$enable_debug_mode = xno; then | |
668 | AC_DEFINE(DISABLE_DEBUG_MODE, 1, | |
669 | [Define if libevent should build without support for a debug mode]) | |
670 | fi | |
671 | ||
672 | # check if we have and should use openssl | |
673 | AM_CONDITIONAL(OPENSSL, [test "$enable_openssl" != "no" && test "$have_openssl" = "yes"]) | |
674 | ||
675 | # Add some more warnings which we use in development but not in the | |
676 | # released versions. (Some relevant gcc versions can't handle these.) | |
677 | if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then | |
678 | ||
679 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ | |
680 | #if !defined(__GNUC__) || (__GNUC__ < 4) | |
681 | #error | |
682 | #endif])], have_gcc4=yes, have_gcc4=no) | |
683 | ||
684 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ | |
685 | #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2) | |
686 | #error | |
687 | #endif])], have_gcc42=yes, have_gcc42=no) | |
688 | ||
689 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ | |
690 | #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
691 | #error | |
692 | #endif])], have_gcc45=yes, have_gcc45=no) | |
693 | ||
694 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ | |
695 | #if !defined(__clang__) | |
696 | #error | |
697 | #endif])], have_clang=yes, have_clang=no) | |
698 | ||
699 | CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror" | |
700 | CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing" | |
701 | ||
702 | if test x$have_gcc4 = xyes ; then | |
703 | # These warnings break gcc 3.3.5 and work on gcc 4.0.2 | |
704 | CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement" | |
705 | #CFLAGS="$CFLAGS -Wold-style-definition" | |
706 | fi | |
707 | ||
708 | if test x$have_gcc42 = xyes ; then | |
709 | # These warnings break gcc 4.0.2 and work on gcc 4.2 | |
710 | CFLAGS="$CFLAGS -Waddress" | |
711 | fi | |
712 | ||
713 | if test x$have_gcc42 = xyes && test x$have_clang = xno; then | |
714 | # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2 | |
715 | CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init" | |
716 | fi | |
717 | ||
718 | if test x$have_gcc45 = xyes ; then | |
719 | # These warnings work on gcc 4.5 | |
720 | CFLAGS="$CFLAGS -Wlogical-op" | |
721 | fi | |
722 | ||
723 | if test x$have_clang = xyes; then | |
724 | # Disable the unused-function warnings, because these trigger | |
725 | # for minheap-internal.h related code. | |
726 | CFLAGS="$CFLAGS -Wno-unused-function" | |
727 | fi | |
728 | ||
729 | ##This will break the world on some 64-bit architectures | |
730 | # CFLAGS="$CFLAGS -Winline" | |
731 | ||
732 | fi | |
733 | ||
734 | LIBEVENT_GC_SECTIONS= | |
735 | if test "$GCC" = yes && test "$enable_function_sections" = yes ; then | |
736 | AC_CACHE_CHECK( | |
737 | [if linker supports omitting unused code and data], | |
738 | [libevent_cv_gc_sections_runs], | |
739 | [ | |
740 | dnl NetBSD will link but likely not run with --gc-sections | |
741 | dnl http://bugs.ntp.org/1844 | |
742 | dnl http://gnats.netbsd.org/40401 | |
743 | dnl --gc-sections causes attempt to load as linux elf, with | |
744 | dnl wrong syscalls in place. Test a little gauntlet of | |
745 | dnl simple stdio read code checking for errors, expecting | |
746 | dnl enough syscall differences that the NetBSD code will | |
747 | dnl fail even with Linux emulation working as designed. | |
748 | dnl A shorter test could be refined by someone with access | |
749 | dnl to a NetBSD host with Linux emulation working. | |
750 | origCFLAGS="$CFLAGS" | |
751 | CFLAGS="$CFLAGS -Wl,--gc-sections" | |
752 | AC_LINK_IFELSE( | |
753 | [AC_LANG_PROGRAM( | |
754 | [[ | |
755 | #include <stdlib.h> | |
756 | #include <stdio.h> | |
757 | ]], | |
758 | [[ | |
759 | FILE * fpC; | |
760 | char buf[32]; | |
761 | size_t cch; | |
762 | int read_success_once; | |
763 | ||
764 | fpC = fopen("conftest.c", "r"); | |
765 | if (NULL == fpC) | |
766 | exit(1); | |
767 | do { | |
768 | cch = fread(buf, sizeof(buf), 1, fpC); | |
769 | read_success_once |= (0 != cch); | |
770 | } while (0 != cch); | |
771 | if (!read_success_once) | |
772 | exit(2); | |
773 | if (!feof(fpC)) | |
774 | exit(3); | |
775 | if (0 != fclose(fpC)) | |
776 | exit(4); | |
777 | ||
778 | exit(EXIT_SUCCESS); | |
779 | ]] | |
780 | )], | |
781 | [ | |
782 | dnl We have to do this invocation manually so that we can | |
783 | dnl get the output of conftest.err to make sure it doesn't | |
784 | dnl mention gc-sections. | |
785 | if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then | |
786 | libevent_cv_gc_sections_runs=no | |
787 | else | |
788 | libevent_cv_gc_sections_runs=no | |
789 | ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes | |
790 | fi | |
791 | ], | |
792 | [libevent_cv_gc_sections_runs=no] | |
793 | ) | |
794 | CFLAGS="$origCFLAGS" | |
795 | AS_UNSET([origCFLAGS]) | |
796 | ] | |
797 | ) | |
798 | case "$libevent_cv_gc_sections_runs" in | |
799 | yes) | |
800 | CFLAGS="-ffunction-sections -fdata-sections $CFLAGS" | |
801 | LIBEVENT_GC_SECTIONS="-Wl,--gc-sections" | |
802 | ;; | |
803 | esac | |
804 | fi | |
805 | AC_SUBST([LIBEVENT_GC_SECTIONS]) | |
806 | ||
807 | AM_CONDITIONAL([INSTALL_LIBEVENT], [test "$enable_libevent_install" = "yes"]) | |
808 | ||
809 | AC_CONFIG_FILES( [libevent.pc libevent_openssl.pc libevent_pthreads.pc] ) | |
810 | AC_OUTPUT(Makefile include/Makefile test/Makefile sample/Makefile) |
0 | dnl configure.in for libevent | |
1 | dnl Copyright 2000-2007 Niels Provos | |
2 | dnl Copyright 2007-2012 Niels Provos and Nick Mathewson | |
3 | dnl | |
4 | dnl See LICENSE for copying information. | |
5 | dnl | |
6 | dnl Original version Dug Song <dugsong@monkey.org> | |
7 | ||
8 | AC_PREREQ(2.59c) | |
9 | AC_INIT(event.c) | |
10 | ||
11 | AC_CONFIG_MACRO_DIR([m4]) | |
12 | ||
13 | AM_INIT_AUTOMAKE(libevent,2.0.21-stable) | |
14 | AM_CONFIG_HEADER(config.h) | |
15 | AC_DEFINE(NUMERIC_VERSION, 0x02001500, [Numeric representation of the version]) | |
16 | ||
17 | dnl Initialize prefix. | |
18 | if test "$prefix" = "NONE"; then | |
19 | prefix="/usr/local" | |
20 | fi | |
21 | ||
22 | AC_CANONICAL_BUILD | |
23 | AC_CANONICAL_HOST | |
24 | dnl the 'build' machine is where we run configure and compile | |
25 | dnl the 'host' machine is where the resulting stuff runs. | |
26 | ||
27 | case "$host_os" in | |
28 | ||
29 | osf5*) | |
30 | CFLAGS="$CFLAGS -D_OSF_SOURCE" | |
31 | ;; | |
32 | esac | |
33 | ||
34 | dnl Checks for programs. | |
35 | AC_PROG_CC | |
36 | AM_PROG_CC_C_O | |
37 | AC_PROG_SED | |
38 | AC_PROG_INSTALL | |
39 | AC_PROG_LN_S | |
40 | AC_PROG_MKDIR_P | |
41 | ||
42 | AC_PROG_GCC_TRADITIONAL | |
43 | ||
44 | # We need to test for at least gcc 2.95 here, because older versions don't | |
45 | # have -fno-strict-aliasing | |
46 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ | |
47 | #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95) | |
48 | #error | |
49 | #endif])], have_gcc295=yes, have_gcc295=no) | |
50 | ||
51 | if test "$GCC" = "yes" ; then | |
52 | # Enable many gcc warnings by default... | |
53 | CFLAGS="$CFLAGS -Wall" | |
54 | # And disable the strict-aliasing optimization, since it breaks | |
55 | # our sockaddr-handling code in strange ways. | |
56 | if test x$have_gcc295 = xyes; then | |
57 | CFLAGS="$CFLAGS -fno-strict-aliasing" | |
58 | fi | |
59 | fi | |
60 | ||
61 | # OS X Lion started deprecating the system openssl. Let's just disable | |
62 | # all deprecation warnings on OS X. | |
63 | case "$host_os" in | |
64 | ||
65 | darwin*) | |
66 | CFLAGS="$CFLAGS -Wno-deprecated-declarations" | |
67 | ;; | |
68 | esac | |
69 | ||
70 | AC_ARG_ENABLE(gcc-warnings, | |
71 | AS_HELP_STRING(--enable-gcc-warnings, enable verbose warnings with GCC)) | |
72 | AC_ARG_ENABLE(thread-support, | |
73 | AS_HELP_STRING(--disable-thread-support, disable support for threading), | |
74 | [], [enable_thread_support=yes]) | |
75 | AC_ARG_ENABLE(malloc-replacement, | |
76 | AS_HELP_STRING(--disable-malloc-replacement, disable support for replacing the memory mgt functions), | |
77 | [], [enable_malloc_replacement=yes]) | |
78 | AC_ARG_ENABLE(openssl, | |
79 | AS_HELP_STRING(--disable-openssl, disable support for openssl encryption), | |
80 | [], [enable_openssl=yes]) | |
81 | AC_ARG_ENABLE(debug-mode, | |
82 | AS_HELP_STRING(--disable-debug-mode, disable support for running in debug mode), | |
83 | [], [enable_debug_mode=yes]) | |
84 | AC_ARG_ENABLE([libevent-install], | |
85 | AS_HELP_STRING([--disable-libevent-install, disable installation of libevent]), | |
86 | [], [enable_libevent_install=yes]) | |
87 | AC_ARG_ENABLE([libevent-regress], | |
88 | AS_HELP_STRING([--disable-libevent-regress, skip regress in make check]), | |
89 | [], [enable_libevent_regress=yes]) | |
90 | AC_ARG_ENABLE([function-sections], | |
91 | AS_HELP_STRING([--enable-function-sections, make static library allow smaller binaries with --gc-sections]), | |
92 | [], [enable_function_sections=no]) | |
93 | ||
94 | ||
95 | AC_PROG_LIBTOOL | |
96 | ||
97 | dnl Uncomment "AC_DISABLE_SHARED" to make shared librraries not get | |
98 | dnl built by default. You can also turn shared libs on and off from | |
99 | dnl the command line with --enable-shared and --disable-shared. | |
100 | dnl AC_DISABLE_SHARED | |
101 | AC_SUBST(LIBTOOL_DEPS) | |
102 | ||
103 | AM_CONDITIONAL([BUILD_REGRESS], [test "$enable_libevent_regress" = "yes"]) | |
104 | ||
105 | dnl Checks for libraries. | |
106 | AC_SEARCH_LIBS([inet_ntoa], [nsl]) | |
107 | AC_SEARCH_LIBS([socket], [socket]) | |
108 | AC_SEARCH_LIBS([inet_aton], [resolv]) | |
109 | AC_SEARCH_LIBS([clock_gettime], [rt]) | |
110 | AC_SEARCH_LIBS([sendfile], [sendfile]) | |
111 | ||
112 | dnl - check if the macro WIN32 is defined on this compiler. | |
113 | dnl - (this is how we check for a windows version of GCC) | |
114 | AC_MSG_CHECKING(for WIN32) | |
115 | AC_TRY_COMPILE(, | |
116 | [ | |
117 | #ifndef WIN32 | |
118 | die horribly | |
119 | #endif | |
120 | ], | |
121 | bwin32=true; AC_MSG_RESULT(yes), | |
122 | bwin32=false; AC_MSG_RESULT(no), | |
123 | ) | |
124 | ||
125 | dnl - check if the macro __CYGWIN__ is defined on this compiler. | |
126 | dnl - (this is how we check for a cygwin version of GCC) | |
127 | AC_MSG_CHECKING(for CYGWIN) | |
128 | AC_TRY_COMPILE(, | |
129 | [ | |
130 | #ifndef __CYGWIN__ | |
131 | die horribly | |
132 | #endif | |
133 | ], | |
134 | cygwin=true; AC_MSG_RESULT(yes), | |
135 | cygwin=false; AC_MSG_RESULT(no), | |
136 | ) | |
137 | ||
138 | AC_CHECK_HEADERS([zlib.h]) | |
139 | ||
140 | if test "x$ac_cv_header_zlib_h" = "xyes"; then | |
141 | dnl Determine if we have zlib for regression tests | |
142 | dnl Don't put this one in LIBS | |
143 | save_LIBS="$LIBS" | |
144 | LIBS="" | |
145 | ZLIB_LIBS="" | |
146 | have_zlib=no | |
147 | AC_SEARCH_LIBS([inflateEnd], [z], | |
148 | [have_zlib=yes | |
149 | ZLIB_LIBS="$LIBS" | |
150 | AC_DEFINE(HAVE_LIBZ, 1, [Define if the system has zlib])]) | |
151 | LIBS="$save_LIBS" | |
152 | AC_SUBST(ZLIB_LIBS) | |
153 | fi | |
154 | AM_CONDITIONAL(ZLIB_REGRESS, [test "$have_zlib" = "yes"]) | |
155 | ||
156 | dnl See if we have openssl. This doesn't go in LIBS either. | |
157 | if test "$bwin32" = true; then | |
158 | EV_LIB_WS32=-lws2_32 | |
159 | EV_LIB_GDI=-lgdi32 | |
160 | else | |
161 | EV_LIB_WS32= | |
162 | EV_LIB_GDI= | |
163 | fi | |
164 | AC_SUBST(EV_LIB_WS32) | |
165 | AC_SUBST(EV_LIB_GDI) | |
166 | AC_SUBST(OPENSSL_LIBADD) | |
167 | ||
168 | AC_CHECK_HEADERS([openssl/bio.h]) | |
169 | ||
170 | if test "$enable_openssl" = "yes"; then | |
171 | save_LIBS="$LIBS" | |
172 | LIBS="" | |
173 | OPENSSL_LIBS="" | |
174 | have_openssl=no | |
175 | AC_SEARCH_LIBS([SSL_new], [ssl], | |
176 | [have_openssl=yes | |
177 | OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" | |
178 | AC_DEFINE(HAVE_OPENSSL, 1, [Define if the system has openssl])], | |
179 | [have_openssl=no], | |
180 | [-lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD]) | |
181 | LIBS="$save_LIBS" | |
182 | AC_SUBST(OPENSSL_LIBS) | |
183 | fi | |
184 | ||
185 | dnl Checks for header files. | |
186 | AC_HEADER_STDC | |
187 | AC_CHECK_HEADERS([fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h]) | |
188 | AC_CHECK_HEADERS([sys/stat.h]) | |
189 | AC_CHECK_HEADERS(sys/sysctl.h, [], [], [ | |
190 | #ifdef HAVE_SYS_PARAM_H | |
191 | #include <sys/param.h> | |
192 | #endif | |
193 | ]) | |
194 | if test "x$ac_cv_header_sys_queue_h" = "xyes"; then | |
195 | AC_MSG_CHECKING(for TAILQ_FOREACH in sys/queue.h) | |
196 | AC_EGREP_CPP(yes, | |
197 | [ | |
198 | #include <sys/queue.h> | |
199 | #ifdef TAILQ_FOREACH | |
200 | yes | |
201 | #endif | |
202 | ], [AC_MSG_RESULT(yes) | |
203 | AC_DEFINE(HAVE_TAILQFOREACH, 1, | |
204 | [Define if TAILQ_FOREACH is defined in <sys/queue.h>])], | |
205 | AC_MSG_RESULT(no) | |
206 | ) | |
207 | fi | |
208 | ||
209 | if test "x$ac_cv_header_sys_time_h" = "xyes"; then | |
210 | AC_MSG_CHECKING(for timeradd in sys/time.h) | |
211 | AC_EGREP_CPP(yes, | |
212 | [ | |
213 | #include <sys/time.h> | |
214 | #ifdef timeradd | |
215 | yes | |
216 | #endif | |
217 | ], [ AC_DEFINE(HAVE_TIMERADD, 1, | |
218 | [Define if timeradd is defined in <sys/time.h>]) | |
219 | AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no) | |
220 | ) | |
221 | fi | |
222 | ||
223 | if test "x$ac_cv_header_sys_time_h" = "xyes"; then | |
224 | AC_MSG_CHECKING(for timercmp in sys/time.h) | |
225 | AC_EGREP_CPP(yes, | |
226 | [ | |
227 | #include <sys/time.h> | |
228 | #ifdef timercmp | |
229 | yes | |
230 | #endif | |
231 | ], [ AC_DEFINE(HAVE_TIMERCMP, 1, | |
232 | [Define if timercmp is defined in <sys/time.h>]) | |
233 | AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no) | |
234 | ) | |
235 | fi | |
236 | ||
237 | if test "x$ac_cv_header_sys_time_h" = "xyes"; then | |
238 | AC_MSG_CHECKING(for timerclear in sys/time.h) | |
239 | AC_EGREP_CPP(yes, | |
240 | [ | |
241 | #include <sys/time.h> | |
242 | #ifdef timerclear | |
243 | yes | |
244 | #endif | |
245 | ], [ AC_DEFINE(HAVE_TIMERCLEAR, 1, | |
246 | [Define if timerclear is defined in <sys/time.h>]) | |
247 | AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no) | |
248 | ) | |
249 | fi | |
250 | ||
251 | if test "x$ac_cv_header_sys_time_h" = "xyes"; then | |
252 | AC_MSG_CHECKING(for timerisset in sys/time.h) | |
253 | AC_EGREP_CPP(yes, | |
254 | [ | |
255 | #include <sys/time.h> | |
256 | #ifdef timerisset | |
257 | yes | |
258 | #endif | |
259 | ], [ AC_DEFINE(HAVE_TIMERISSET, 1, | |
260 | [Define if timerisset is defined in <sys/time.h>]) | |
261 | AC_MSG_RESULT(yes)] ,AC_MSG_RESULT(no) | |
262 | ) | |
263 | fi | |
264 | ||
265 | if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then | |
266 | AC_CHECK_DECLS([CTL_KERN, KERN_RANDOM, RANDOM_UUID, KERN_ARND], [], [], | |
267 | [[#include <sys/types.h> | |
268 | #include <sys/sysctl.h>]] | |
269 | ) | |
270 | fi | |
271 | ||
272 | AM_CONDITIONAL(BUILD_WIN32, test x$bwin32 = xtrue) | |
273 | AM_CONDITIONAL(BUILD_CYGWIN, test x$cygwin = xtrue) | |
274 | AM_CONDITIONAL(BUILD_WITH_NO_UNDEFINED, test x$bwin32 = xtrue || test x$cygwin = xtrue) | |
275 | ||
276 | if test x$bwin32 = xtrue; then | |
277 | AC_SEARCH_LIBS([getservbyname],[ws2_32]) | |
278 | fi | |
279 | ||
280 | dnl Checks for typedefs, structures, and compiler characteristics. | |
281 | AC_C_CONST | |
282 | AC_C_INLINE | |
283 | AC_HEADER_TIME | |
284 | ||
285 | dnl Checks for library functions. | |
286 | AC_CHECK_FUNCS([gettimeofday vasprintf fcntl clock_gettime strtok_r strsep]) | |
287 | AC_CHECK_FUNCS([getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl]) | |
288 | AC_CHECK_FUNCS([umask]) | |
289 | ||
290 | AC_CACHE_CHECK( | |
291 | [for getaddrinfo], | |
292 | [libevent_cv_getaddrinfo], | |
293 | [AC_LINK_IFELSE( | |
294 | [AC_LANG_PROGRAM( | |
295 | [[ | |
296 | #ifdef HAVE_NETDB_H | |
297 | #include <netdb.h> | |
298 | #endif | |
299 | ]], | |
300 | [[ | |
301 | getaddrinfo; | |
302 | ]] | |
303 | )], | |
304 | [libevent_cv_getaddrinfo=yes], | |
305 | [libevent_cv_getaddrinfo=no] | |
306 | )] | |
307 | ) | |
308 | if test "$libevent_cv_getaddrinfo" = "yes" ; then | |
309 | AC_DEFINE([HAVE_GETADDRINFO], [1], [Do we have getaddrinfo()?]) | |
310 | else | |
311 | ||
312 | AC_CHECK_FUNCS([getservbyname]) | |
313 | # Check for gethostbyname_r in all its glorious incompatible versions. | |
314 | # (This is cut-and-pasted from Tor, which based its logic on | |
315 | # Python's configure.in.) | |
316 | AH_TEMPLATE(HAVE_GETHOSTBYNAME_R, | |
317 | [Define this if you have any gethostbyname_r()]) | |
318 | ||
319 | AC_CHECK_FUNC(gethostbyname_r, [ | |
320 | AC_MSG_CHECKING([how many arguments gethostbyname_r() wants]) | |
321 | OLD_CFLAGS=$CFLAGS | |
322 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | |
323 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ | |
324 | #include <netdb.h> | |
325 | ], [[ | |
326 | char *cp1, *cp2; | |
327 | struct hostent *h1, *h2; | |
328 | int i1, i2; | |
329 | (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2); | |
330 | ]])],[ | |
331 | AC_DEFINE(HAVE_GETHOSTBYNAME_R) | |
332 | AC_DEFINE(HAVE_GETHOSTBYNAME_R_6_ARG, 1, | |
333 | [Define this if gethostbyname_r takes 6 arguments]) | |
334 | AC_MSG_RESULT(6) | |
335 | ], [ | |
336 | AC_TRY_COMPILE([ | |
337 | #include <netdb.h> | |
338 | ], [ | |
339 | char *cp1, *cp2; | |
340 | struct hostent *h1; | |
341 | int i1, i2; | |
342 | (void)gethostbyname_r(cp1,h1,cp2,i1,&i2); | |
343 | ], [ | |
344 | AC_DEFINE(HAVE_GETHOSTBYNAME_R) | |
345 | AC_DEFINE(HAVE_GETHOSTBYNAME_R_5_ARG, 1, | |
346 | [Define this if gethostbyname_r takes 5 arguments]) | |
347 | AC_MSG_RESULT(5) | |
348 | ], [ | |
349 | AC_TRY_COMPILE([ | |
350 | #include <netdb.h> | |
351 | ], [ | |
352 | char *cp1; | |
353 | struct hostent *h1; | |
354 | struct hostent_data hd; | |
355 | (void) gethostbyname_r(cp1,h1,&hd); | |
356 | ], [ | |
357 | AC_DEFINE(HAVE_GETHOSTBYNAME_R) | |
358 | AC_DEFINE(HAVE_GETHOSTBYNAME_R_3_ARG, 1, | |
359 | [Define this if gethostbyname_r takes 3 arguments]) | |
360 | AC_MSG_RESULT(3) | |
361 | ], [ | |
362 | AC_MSG_RESULT(0) | |
363 | ]) | |
364 | ]) | |
365 | ]) | |
366 | CFLAGS=$OLD_CFLAGS | |
367 | ]) | |
368 | ||
369 | fi | |
370 | ||
371 | AC_CHECK_SIZEOF(long) | |
372 | ||
373 | AC_MSG_CHECKING(for F_SETFD in fcntl.h) | |
374 | AC_EGREP_CPP(yes, | |
375 | [ | |
376 | #define _GNU_SOURCE | |
377 | #include <fcntl.h> | |
378 | #ifdef F_SETFD | |
379 | yes | |
380 | #endif | |
381 | ], [ AC_DEFINE(HAVE_SETFD, 1, | |
382 | [Define if F_SETFD is defined in <fcntl.h>]) | |
383 | AC_MSG_RESULT(yes) ], AC_MSG_RESULT(no)) | |
384 | ||
385 | needsignal=no | |
386 | haveselect=no | |
387 | if test x$bwin32 != xtrue; then | |
388 | AC_CHECK_FUNCS(select, [haveselect=yes], ) | |
389 | if test "x$haveselect" = "xyes" ; then | |
390 | needsignal=yes | |
391 | fi | |
392 | fi | |
393 | AM_CONDITIONAL(SELECT_BACKEND, [test "x$haveselect" = "xyes"]) | |
394 | ||
395 | havepoll=no | |
396 | AC_CHECK_FUNCS(poll, [havepoll=yes], ) | |
397 | if test "x$havepoll" = "xyes" ; then | |
398 | needsignal=yes | |
399 | fi | |
400 | AM_CONDITIONAL(POLL_BACKEND, [test "x$havepoll" = "xyes"]) | |
401 | ||
402 | havedevpoll=no | |
403 | if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then | |
404 | AC_DEFINE(HAVE_DEVPOLL, 1, | |
405 | [Define if /dev/poll is available]) | |
406 | fi | |
407 | AM_CONDITIONAL(DEVPOLL_BACKEND, [test "x$ac_cv_header_sys_devpoll_h" = "xyes"]) | |
408 | ||
409 | havekqueue=no | |
410 | if test "x$ac_cv_header_sys_event_h" = "xyes"; then | |
411 | AC_CHECK_FUNCS(kqueue, [havekqueue=yes], ) | |
412 | if test "x$havekqueue" = "xyes" ; then | |
413 | AC_MSG_CHECKING(for working kqueue) | |
414 | AC_TRY_RUN( | |
415 | #include <sys/types.h> | |
416 | #include <sys/time.h> | |
417 | #include <sys/event.h> | |
418 | #include <stdio.h> | |
419 | #include <unistd.h> | |
420 | #include <fcntl.h> | |
421 | ||
422 | int | |
423 | main(int argc, char **argv) | |
424 | { | |
425 | int kq; | |
426 | int n; | |
427 | int fd[[2]]; | |
428 | struct kevent ev; | |
429 | struct timespec ts; | |
430 | char buf[[8000]]; | |
431 | ||
432 | if (pipe(fd) == -1) | |
433 | exit(1); | |
434 | if (fcntl(fd[[1]], F_SETFL, O_NONBLOCK) == -1) | |
435 | exit(1); | |
436 | ||
437 | while ((n = write(fd[[1]], buf, sizeof(buf))) == sizeof(buf)) | |
438 | ; | |
439 | ||
440 | if ((kq = kqueue()) == -1) | |
441 | exit(1); | |
442 | ||
443 | memset(&ev, 0, sizeof(ev)); | |
444 | ev.ident = fd[[1]]; | |
445 | ev.filter = EVFILT_WRITE; | |
446 | ev.flags = EV_ADD | EV_ENABLE; | |
447 | n = kevent(kq, &ev, 1, NULL, 0, NULL); | |
448 | if (n == -1) | |
449 | exit(1); | |
450 | ||
451 | read(fd[[0]], buf, sizeof(buf)); | |
452 | ||
453 | ts.tv_sec = 0; | |
454 | ts.tv_nsec = 0; | |
455 | n = kevent(kq, NULL, 0, &ev, 1, &ts); | |
456 | if (n == -1 || n == 0) | |
457 | exit(1); | |
458 | ||
459 | exit(0); | |
460 | }, [AC_MSG_RESULT(yes) | |
461 | AC_DEFINE(HAVE_WORKING_KQUEUE, 1, | |
462 | [Define if kqueue works correctly with pipes]) | |
463 | havekqueue=yes | |
464 | ], AC_MSG_RESULT(no), AC_MSG_RESULT(no)) | |
465 | fi | |
466 | fi | |
467 | AM_CONDITIONAL(KQUEUE_BACKEND, [test "x$havekqueue" = "xyes"]) | |
468 | ||
469 | haveepollsyscall=no | |
470 | haveepoll=no | |
471 | AC_CHECK_FUNCS(epoll_ctl, [haveepoll=yes], ) | |
472 | if test "x$haveepoll" = "xyes" ; then | |
473 | AC_DEFINE(HAVE_EPOLL, 1, | |
474 | [Define if your system supports the epoll system calls]) | |
475 | needsignal=yes | |
476 | fi | |
477 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
478 | if test "x$haveepoll" = "xno" ; then | |
479 | AC_MSG_CHECKING(for epoll system call) | |
480 | AC_TRY_RUN( | |
481 | #include <stdint.h> | |
482 | #include <sys/param.h> | |
483 | #include <sys/types.h> | |
484 | #include <sys/syscall.h> | |
485 | #include <sys/epoll.h> | |
486 | #include <unistd.h> | |
487 | ||
488 | int | |
489 | epoll_create(int size) | |
490 | { | |
491 | return (syscall(__NR_epoll_create, size)); | |
492 | } | |
493 | ||
494 | int | |
495 | main(int argc, char **argv) | |
496 | { | |
497 | int epfd; | |
498 | ||
499 | epfd = epoll_create(256); | |
500 | exit (epfd == -1 ? 1 : 0); | |
501 | }, [AC_MSG_RESULT(yes) | |
502 | AC_DEFINE(HAVE_EPOLL, 1, | |
503 | [Define if your system supports the epoll system calls]) | |
504 | needsignal=yes | |
505 | have_epoll=yes | |
506 | AC_LIBOBJ(epoll_sub) | |
507 | ], AC_MSG_RESULT(no), AC_MSG_RESULT(no)) | |
508 | fi | |
509 | fi | |
510 | AM_CONDITIONAL(EPOLL_BACKEND, [test "x$haveepoll" = "xyes"]) | |
511 | ||
512 | haveeventports=no | |
513 | AC_CHECK_FUNCS(port_create, [haveeventports=yes], ) | |
514 | if test "x$haveeventports" = "xyes" ; then | |
515 | AC_DEFINE(HAVE_EVENT_PORTS, 1, | |
516 | [Define if your system supports event ports]) | |
517 | needsignal=yes | |
518 | fi | |
519 | AM_CONDITIONAL(EVPORT_BACKEND, [test "x$haveeventports" = "xyes"]) | |
520 | ||
521 | if test "x$bwin32" = "xtrue"; then | |
522 | needsignal=yes | |
523 | fi | |
524 | ||
525 | AM_CONDITIONAL(SIGNAL_SUPPORT, [test "x$needsignal" = "xyes"]) | |
526 | ||
527 | AC_TYPE_PID_T | |
528 | AC_TYPE_SIZE_T | |
529 | AC_TYPE_SSIZE_T | |
530 | ||
531 | AC_CHECK_TYPES([uint64_t, uint32_t, uint16_t, uint8_t, uintptr_t], , , | |
532 | [#ifdef HAVE_STDINT_H | |
533 | #include <stdint.h> | |
534 | #elif defined(HAVE_INTTYPES_H) | |
535 | #include <inttypes.h> | |
536 | #endif | |
537 | #ifdef HAVE_SYS_TYPES_H | |
538 | #include <sys/types.h> | |
539 | #endif]) | |
540 | ||
541 | AC_CHECK_TYPES([fd_mask], , , | |
542 | [#ifdef HAVE_SYS_TYPES_H | |
543 | #include <sys/types.h> | |
544 | #endif | |
545 | #ifdef HAVE_SYS_SELECT_H | |
546 | #include <sys/select.h> | |
547 | #endif]) | |
548 | ||
549 | AC_CHECK_SIZEOF(long long) | |
550 | AC_CHECK_SIZEOF(long) | |
551 | AC_CHECK_SIZEOF(int) | |
552 | AC_CHECK_SIZEOF(short) | |
553 | AC_CHECK_SIZEOF(size_t) | |
554 | AC_CHECK_SIZEOF(void *) | |
555 | ||
556 | AC_CHECK_TYPES([struct in6_addr, struct sockaddr_in6, sa_family_t, struct addrinfo, struct sockaddr_storage], , , | |
557 | [#define _GNU_SOURCE | |
558 | #include <sys/types.h> | |
559 | #ifdef HAVE_NETINET_IN_H | |
560 | #include <netinet/in.h> | |
561 | #endif | |
562 | #ifdef HAVE_NETINET_IN6_H | |
563 | #include <netinet/in6.h> | |
564 | #endif | |
565 | #ifdef HAVE_SYS_SOCKET_H | |
566 | #include <sys/socket.h> | |
567 | #endif | |
568 | #ifdef HAVE_NETDB_H | |
569 | #include <netdb.h> | |
570 | #endif | |
571 | #ifdef WIN32 | |
572 | #define WIN32_WINNT 0x400 | |
573 | #define _WIN32_WINNT 0x400 | |
574 | #define WIN32_LEAN_AND_MEAN | |
575 | #if defined(_MSC_VER) && (_MSC_VER < 1300) | |
576 | #include <winsock.h> | |
577 | #else | |
578 | #include <winsock2.h> | |
579 | #include <ws2tcpip.h> | |
580 | #endif | |
581 | #endif | |
582 | ]) | |
583 | AC_CHECK_MEMBERS([struct in6_addr.s6_addr32, struct in6_addr.s6_addr16, struct sockaddr_in.sin_len, struct sockaddr_in6.sin6_len, struct sockaddr_storage.ss_family, struct sockaddr_storage.__ss_family], , , | |
584 | [#include <sys/types.h> | |
585 | #ifdef HAVE_NETINET_IN_H | |
586 | #include <netinet/in.h> | |
587 | #endif | |
588 | #ifdef HAVE_NETINET_IN6_H | |
589 | #include <netinet/in6.h> | |
590 | #endif | |
591 | #ifdef HAVE_SYS_SOCKET_H | |
592 | #include <sys/socket.h> | |
593 | #endif | |
594 | #ifdef WIN32 | |
595 | #define WIN32_WINNT 0x400 | |
596 | #define _WIN32_WINNT 0x400 | |
597 | #define WIN32_LEAN_AND_MEAN | |
598 | #if defined(_MSC_VER) && (_MSC_VER < 1300) | |
599 | #include <winsock.h> | |
600 | #else | |
601 | #include <winsock2.h> | |
602 | #include <ws2tcpip.h> | |
603 | #endif | |
604 | #endif | |
605 | ]) | |
606 | ||
607 | AC_MSG_CHECKING([for socklen_t]) | |
608 | AC_TRY_COMPILE([ | |
609 | #include <sys/types.h> | |
610 | #include <sys/socket.h>], | |
611 | [socklen_t x;], | |
612 | AC_MSG_RESULT([yes]), | |
613 | [AC_MSG_RESULT([no]) | |
614 | AC_DEFINE(socklen_t, unsigned int, | |
615 | [Define to unsigned int if you dont have it])] | |
616 | ) | |
617 | ||
618 | AC_MSG_CHECKING([whether our compiler supports __func__]) | |
619 | AC_TRY_COMPILE([], | |
620 | [ const char *cp = __func__; ], | |
621 | AC_MSG_RESULT([yes]), | |
622 | AC_MSG_RESULT([no]) | |
623 | AC_MSG_CHECKING([whether our compiler supports __FUNCTION__]) | |
624 | AC_TRY_COMPILE([], | |
625 | [ const char *cp = __FUNCTION__; ], | |
626 | AC_MSG_RESULT([yes]) | |
627 | AC_DEFINE(__func__, __FUNCTION__, | |
628 | [Define to appropriate substitue if compiler doesnt have __func__]), | |
629 | AC_MSG_RESULT([no]) | |
630 | AC_DEFINE(__func__, __FILE__, | |
631 | [Define to appropriate substitue if compiler doesnt have __func__]))) | |
632 | ||
633 | ||
634 | # check if we can compile with pthreads | |
635 | have_pthreads=no | |
636 | if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then | |
637 | ACX_PTHREAD([ | |
638 | AC_DEFINE(HAVE_PTHREADS, 1, | |
639 | [Define if we have pthreads on this system]) | |
640 | have_pthreads=yes]) | |
641 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
642 | AC_CHECK_SIZEOF(pthread_t, , | |
643 | [AC_INCLUDES_DEFAULT() | |
644 | #include <pthread.h> ] | |
645 | ) | |
646 | fi | |
647 | AM_CONDITIONAL(PTHREADS, [test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"]) | |
648 | ||
649 | # check if we should compile locking into the library | |
650 | if test x$enable_thread_support = xno; then | |
651 | AC_DEFINE(DISABLE_THREAD_SUPPORT, 1, | |
652 | [Define if libevent should not be compiled with thread support]) | |
653 | fi | |
654 | ||
655 | # check if we should hard-code the mm functions. | |
656 | if test x$enable_malloc_replacement = xno; then | |
657 | AC_DEFINE(DISABLE_MM_REPLACEMENT, 1, | |
658 | [Define if libevent should not allow replacing the mm functions]) | |
659 | fi | |
660 | ||
661 | # check if we should hard-code debugging out | |
662 | if test x$enable_debug_mode = xno; then | |
663 | AC_DEFINE(DISABLE_DEBUG_MODE, 1, | |
664 | [Define if libevent should build without support for a debug mode]) | |
665 | fi | |
666 | ||
667 | # check if we have and should use openssl | |
668 | AM_CONDITIONAL(OPENSSL, [test "$enable_openssl" != "no" && test "$have_openssl" = "yes"]) | |
669 | ||
670 | # Add some more warnings which we use in development but not in the | |
671 | # released versions. (Some relevant gcc versions can't handle these.) | |
672 | if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then | |
673 | ||
674 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ | |
675 | #if !defined(__GNUC__) || (__GNUC__ < 4) | |
676 | #error | |
677 | #endif])], have_gcc4=yes, have_gcc4=no) | |
678 | ||
679 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ | |
680 | #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2) | |
681 | #error | |
682 | #endif])], have_gcc42=yes, have_gcc42=no) | |
683 | ||
684 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ | |
685 | #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
686 | #error | |
687 | #endif])], have_gcc45=yes, have_gcc45=no) | |
688 | ||
689 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ | |
690 | #if !defined(__clang__) | |
691 | #error | |
692 | #endif])], have_clang=yes, have_clang=no) | |
693 | ||
694 | CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror" | |
695 | CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing" | |
696 | ||
697 | if test x$have_gcc4 = xyes ; then | |
698 | # These warnings break gcc 3.3.5 and work on gcc 4.0.2 | |
699 | CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement" | |
700 | #CFLAGS="$CFLAGS -Wold-style-definition" | |
701 | fi | |
702 | ||
703 | if test x$have_gcc42 = xyes ; then | |
704 | # These warnings break gcc 4.0.2 and work on gcc 4.2 | |
705 | CFLAGS="$CFLAGS -Waddress" | |
706 | fi | |
707 | ||
708 | if test x$have_gcc42 = xyes && test x$have_clang = xno; then | |
709 | # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2 | |
710 | CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init" | |
711 | fi | |
712 | ||
713 | if test x$have_gcc45 = xyes ; then | |
714 | # These warnings work on gcc 4.5 | |
715 | CFLAGS="$CFLAGS -Wlogical-op" | |
716 | fi | |
717 | ||
718 | if test x$have_clang = xyes; then | |
719 | # Disable the unused-function warnings, because these trigger | |
720 | # for minheap-internal.h related code. | |
721 | CFLAGS="$CFLAGS -Wno-unused-function" | |
722 | fi | |
723 | ||
724 | ##This will break the world on some 64-bit architectures | |
725 | # CFLAGS="$CFLAGS -Winline" | |
726 | ||
727 | fi | |
728 | ||
729 | LIBEVENT_GC_SECTIONS= | |
730 | if test "$GCC" = yes && test "$enable_function_sections" = yes ; then | |
731 | AC_CACHE_CHECK( | |
732 | [if linker supports omitting unused code and data], | |
733 | [libevent_cv_gc_sections_runs], | |
734 | [ | |
735 | dnl NetBSD will link but likely not run with --gc-sections | |
736 | dnl http://bugs.ntp.org/1844 | |
737 | dnl http://gnats.netbsd.org/40401 | |
738 | dnl --gc-sections causes attempt to load as linux elf, with | |
739 | dnl wrong syscalls in place. Test a little gauntlet of | |
740 | dnl simple stdio read code checking for errors, expecting | |
741 | dnl enough syscall differences that the NetBSD code will | |
742 | dnl fail even with Linux emulation working as designed. | |
743 | dnl A shorter test could be refined by someone with access | |
744 | dnl to a NetBSD host with Linux emulation working. | |
745 | origCFLAGS="$CFLAGS" | |
746 | CFLAGS="$CFLAGS -Wl,--gc-sections" | |
747 | AC_LINK_IFELSE( | |
748 | [AC_LANG_PROGRAM( | |
749 | [[ | |
750 | #include <stdlib.h> | |
751 | #include <stdio.h> | |
752 | ]], | |
753 | [[ | |
754 | FILE * fpC; | |
755 | char buf[32]; | |
756 | size_t cch; | |
757 | int read_success_once; | |
758 | ||
759 | fpC = fopen("conftest.c", "r"); | |
760 | if (NULL == fpC) | |
761 | exit(1); | |
762 | do { | |
763 | cch = fread(buf, sizeof(buf), 1, fpC); | |
764 | read_success_once |= (0 != cch); | |
765 | } while (0 != cch); | |
766 | if (!read_success_once) | |
767 | exit(2); | |
768 | if (!feof(fpC)) | |
769 | exit(3); | |
770 | if (0 != fclose(fpC)) | |
771 | exit(4); | |
772 | ||
773 | exit(EXIT_SUCCESS); | |
774 | ]] | |
775 | )], | |
776 | [ | |
777 | dnl We have to do this invocation manually so that we can | |
778 | dnl get the output of conftest.err to make sure it doesn't | |
779 | dnl mention gc-sections. | |
780 | if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then | |
781 | libevent_cv_gc_sections_runs=no | |
782 | else | |
783 | libevent_cv_gc_sections_runs=no | |
784 | ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes | |
785 | fi | |
786 | ], | |
787 | [libevent_cv_gc_sections_runs=no] | |
788 | ) | |
789 | CFLAGS="$origCFLAGS" | |
790 | AS_UNSET([origCFLAGS]) | |
791 | ] | |
792 | ) | |
793 | case "$libevent_cv_gc_sections_runs" in | |
794 | yes) | |
795 | CFLAGS="-ffunction-sections -fdata-sections $CFLAGS" | |
796 | LIBEVENT_GC_SECTIONS="-Wl,--gc-sections" | |
797 | ;; | |
798 | esac | |
799 | fi | |
800 | AC_SUBST([LIBEVENT_GC_SECTIONS]) | |
801 | ||
802 | AM_CONDITIONAL([INSTALL_LIBEVENT], [test "$enable_libevent_install" = "yes"]) | |
803 | ||
804 | AC_CONFIG_FILES( [libevent.pc libevent_openssl.pc libevent_pthreads.pc] ) | |
805 | AC_OUTPUT(Makefile include/Makefile test/Makefile sample/Makefile) |
2213 | 2213 | /* for evdns_transmit */ |
2214 | 2214 | req->transmit_me = 1; |
2215 | 2215 | EVUTIL_ASSERT(req->trans_id != 0xffff); |
2216 | ||
2217 | if (!req->ns) | |
2218 | { | |
2219 | /* unable to transmit request if no nameservers */ | |
2220 | return 1; | |
2221 | } | |
2216 | 2222 | |
2217 | 2223 | if (req->ns->choked) { |
2218 | 2224 | /* don't bother trying to write to a socket */ |
111 | 111 | #define LOAD(name) \ |
112 | 112 | name##_fn = GetProcAddress(lib, #name) |
113 | 113 | LOAD(InitializeConditionVariable); |
114 | LOAD(SleepConditionVariable); | |
114 | LOAD(SleepConditionVariableCS); | |
115 | 115 | LOAD(WakeAllConditionVariable); |
116 | 116 | LOAD(WakeConditionVariable); |
117 | 117 |
258 | 258 | goto tidy_up_and_fail; |
259 | 259 | if (size != sizeof(listen_addr)) |
260 | 260 | goto abort_tidy_up_and_fail; |
261 | evutil_closesocket(listener); | |
262 | 261 | /* Now check we are talking to ourself by matching port and host on the |
263 | 262 | two sockets. */ |
264 | 263 | if (getsockname(connector, (struct sockaddr *) &connect_addr, &size) == -1) |
268 | 267 | || listen_addr.sin_addr.s_addr != connect_addr.sin_addr.s_addr |
269 | 268 | || listen_addr.sin_port != connect_addr.sin_port) |
270 | 269 | goto abort_tidy_up_and_fail; |
270 | evutil_closesocket(listener); | |
271 | 271 | fd[0] = connector; |
272 | 272 | fd[1] = acceptor; |
273 | 273 | |
1561 | 1561 | int r; |
1562 | 1562 | if (!buflen) |
1563 | 1563 | return 0; |
1564 | #ifdef _MSC_VER | |
1564 | #if defined(_MSC_VER) || defined(WIN32) | |
1565 | 1565 | r = _vsnprintf(buf, buflen, format, ap); |
1566 | 1566 | if (r < 0) |
1567 | 1567 | r = _vscprintf(format, ap); |
2180 | 2180 | int |
2181 | 2181 | evhttp_connection_connect(struct evhttp_connection *evcon) |
2182 | 2182 | { |
2183 | int old_state = evcon->state; | |
2184 | ||
2183 | 2185 | if (evcon->state == EVCON_CONNECTING) |
2184 | 2186 | return (0); |
2185 | 2187 | |
2208 | 2210 | /* make sure that we get a write callback */ |
2209 | 2211 | bufferevent_enable(evcon->bufev, EV_WRITE); |
2210 | 2212 | |
2213 | evcon->state = EVCON_CONNECTING; | |
2214 | ||
2211 | 2215 | if (bufferevent_socket_connect_hostname(evcon->bufev, evcon->dns_base, |
2212 | 2216 | AF_UNSPEC, evcon->address, evcon->port) < 0) { |
2217 | evcon->state = old_state; | |
2213 | 2218 | event_sock_warn(evcon->fd, "%s: connection to \"%s\" failed", |
2214 | 2219 | __func__, evcon->address); |
2215 | 2220 | /* some operating systems return ECONNREFUSED immediately |
2219 | 2224 | evhttp_connection_cb_cleanup(evcon); |
2220 | 2225 | return (0); |
2221 | 2226 | } |
2222 | ||
2223 | evcon->state = EVCON_CONNECTING; | |
2224 | 2227 | |
2225 | 2228 | return (0); |
2226 | 2229 | } |
0 | # Makefile.in generated by automake 1.11.6 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.3 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
5 | # Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
21 | 20 | # See LICENSE for copying information. |
22 | 21 | |
23 | 22 | VPATH = @srcdir@ |
24 | am__make_dryrun = \ | |
25 | { \ | |
26 | am__dry=no; \ | |
23 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
24 | am__make_running_with_option = \ | |
25 | case $${target_option-} in \ | |
26 | ?) ;; \ | |
27 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
28 | "target option '$${target_option-}' specified" >&2; \ | |
29 | exit 1;; \ | |
30 | esac; \ | |
31 | has_opt=no; \ | |
32 | sane_makeflags=$$MAKEFLAGS; \ | |
33 | if $(am__is_gnu_make); then \ | |
34 | sane_makeflags=$$MFLAGS; \ | |
35 | else \ | |
27 | 36 | case $$MAKEFLAGS in \ |
28 | 37 | *\\[\ \ ]*) \ |
29 | echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
30 | | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
31 | *) \ | |
32 | for am__flg in $$MAKEFLAGS; do \ | |
33 | case $$am__flg in \ | |
34 | *=*|--*) ;; \ | |
35 | *n*) am__dry=yes; break;; \ | |
36 | esac; \ | |
37 | done;; \ | |
38 | bs=\\; \ | |
39 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
40 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
38 | 41 | esac; \ |
39 | test $$am__dry = yes; \ | |
40 | } | |
42 | fi; \ | |
43 | skip_next=no; \ | |
44 | strip_trailopt () \ | |
45 | { \ | |
46 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
47 | }; \ | |
48 | for flg in $$sane_makeflags; do \ | |
49 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
50 | case $$flg in \ | |
51 | *=*|--*) continue;; \ | |
52 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
53 | -*I?*) strip_trailopt 'I';; \ | |
54 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
55 | -*O?*) strip_trailopt 'O';; \ | |
56 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
57 | -*l?*) strip_trailopt 'l';; \ | |
58 | -[dEDm]) skip_next=yes;; \ | |
59 | -[JT]) skip_next=yes;; \ | |
60 | esac; \ | |
61 | case $$flg in \ | |
62 | *$$target_option*) has_opt=yes; break;; \ | |
63 | esac; \ | |
64 | done; \ | |
65 | test $$has_opt = yes | |
66 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
67 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
41 | 68 | pkgdatadir = $(datadir)/@PACKAGE@ |
42 | 69 | pkgincludedir = $(includedir)/@PACKAGE@ |
43 | 70 | pkglibdir = $(libdir)/@PACKAGE@ |
57 | 84 | build_triplet = @build@ |
58 | 85 | host_triplet = @host@ |
59 | 86 | subdir = include |
60 | DIST_COMMON = $(am__nobase_include_HEADERS_DIST) \ | |
61 | $(am__noinst_HEADERS_DIST) $(srcdir)/Makefile.am \ | |
62 | $(srcdir)/Makefile.in | |
87 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
88 | $(am__nobase_include_HEADERS_DIST) $(am__noinst_HEADERS_DIST) | |
63 | 89 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
64 | am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ | |
65 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ | |
66 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | |
67 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.in | |
90 | am__aclocal_m4_deps = $(top_srcdir)/m4/ac_backport_259_ssizet.m4 \ | |
91 | $(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/libtool.m4 \ | |
92 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | |
93 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | |
94 | $(top_srcdir)/configure.ac | |
68 | 95 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
69 | 96 | $(ACLOCAL_M4) |
70 | 97 | mkinstalldirs = $(install_sh) -d |
71 | 98 | CONFIG_HEADER = $(top_builddir)/config.h |
72 | 99 | CONFIG_CLEAN_FILES = |
73 | 100 | CONFIG_CLEAN_VPATH_FILES = |
101 | AM_V_P = $(am__v_P_@AM_V@) | |
102 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
103 | am__v_P_0 = false | |
104 | am__v_P_1 = : | |
105 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
106 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
107 | am__v_GEN_0 = @echo " GEN " $@; | |
108 | am__v_GEN_1 = | |
109 | AM_V_at = $(am__v_at_@AM_V@) | |
110 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
111 | am__v_at_0 = @ | |
112 | am__v_at_1 = | |
74 | 113 | SOURCES = |
75 | 114 | DIST_SOURCES = |
76 | 115 | am__can_run_installinfo = \ |
126 | 165 | event2/tag_compat.h event2/thread.h event2/util.h |
127 | 166 | HEADERS = $(nobase_include_HEADERS) $(nobase_nodist_include_HEADERS) \ |
128 | 167 | $(nodist_noinst_HEADERS) $(noinst_HEADERS) |
168 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
169 | # Read a list of newline-separated strings from the standard input, | |
170 | # and print each of them once, without duplicates. Input order is | |
171 | # *not* preserved. | |
172 | am__uniquify_input = $(AWK) '\ | |
173 | BEGIN { nonempty = 0; } \ | |
174 | { items[$$0] = 1; nonempty = 1; } \ | |
175 | END { if (nonempty) { for (i in items) print i; }; } \ | |
176 | ' | |
177 | # Make sure the list of sources is unique. This is necessary because, | |
178 | # e.g., the same source file might be shared among _SOURCES variables | |
179 | # for different programs/libraries. | |
180 | am__define_uniq_tagged_files = \ | |
181 | list='$(am__tagged_files)'; \ | |
182 | unique=`for i in $$list; do \ | |
183 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
184 | done | $(am__uniquify_input)` | |
129 | 185 | ETAGS = etags |
130 | 186 | CTAGS = ctags |
131 | 187 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
132 | 188 | ACLOCAL = @ACLOCAL@ |
133 | 189 | AMTAR = @AMTAR@ |
190 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | |
134 | 191 | AR = @AR@ |
135 | 192 | AUTOCONF = @AUTOCONF@ |
136 | 193 | AUTOHEADER = @AUTOHEADER@ |
373 | 430 | $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \ |
374 | 431 | dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) |
375 | 432 | |
376 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
377 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
378 | unique=`for i in $$list; do \ | |
379 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
380 | done | \ | |
381 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
382 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
383 | mkid -fID $$unique | |
384 | tags: TAGS | |
385 | ||
386 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
387 | $(TAGS_FILES) $(LISP) | |
433 | ID: $(am__tagged_files) | |
434 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
435 | tags: tags-am | |
436 | TAGS: tags | |
437 | ||
438 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
388 | 439 | set x; \ |
389 | 440 | here=`pwd`; \ |
390 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
391 | unique=`for i in $$list; do \ | |
392 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
393 | done | \ | |
394 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
395 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
441 | $(am__define_uniq_tagged_files); \ | |
396 | 442 | shift; \ |
397 | 443 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
398 | 444 | test -n "$$unique" || unique=$$empty_fix; \ |
404 | 450 | $$unique; \ |
405 | 451 | fi; \ |
406 | 452 | fi |
407 | ctags: CTAGS | |
408 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
409 | $(TAGS_FILES) $(LISP) | |
410 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
411 | unique=`for i in $$list; do \ | |
412 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
413 | done | \ | |
414 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
415 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
453 | ctags: ctags-am | |
454 | ||
455 | CTAGS: ctags | |
456 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
457 | $(am__define_uniq_tagged_files); \ | |
416 | 458 | test -z "$(CTAGS_ARGS)$$unique" \ |
417 | 459 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
418 | 460 | $$unique |
421 | 463 | here=`$(am__cd) $(top_builddir) && pwd` \ |
422 | 464 | && $(am__cd) $(top_srcdir) \ |
423 | 465 | && gtags -i $(GTAGS_ARGS) "$$here" |
466 | cscopelist: cscopelist-am | |
467 | ||
468 | cscopelist-am: $(am__tagged_files) | |
469 | list='$(am__tagged_files)'; \ | |
470 | case "$(srcdir)" in \ | |
471 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
472 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
473 | esac; \ | |
474 | for i in $$list; do \ | |
475 | if test -f "$$i"; then \ | |
476 | echo "$(subdir)/$$i"; \ | |
477 | else \ | |
478 | echo "$$sdir/$$i"; \ | |
479 | fi; \ | |
480 | done >> $(top_builddir)/cscope.files | |
424 | 481 | |
425 | 482 | distclean-tags: |
426 | 483 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
562 | 619 | |
563 | 620 | .MAKE: install-am install-strip |
564 | 621 | |
565 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | |
566 | clean-libtool ctags distclean distclean-generic \ | |
567 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | |
568 | html-am info info-am install install-am install-data \ | |
569 | install-data-am install-dvi install-dvi-am install-exec \ | |
570 | install-exec-am install-html install-html-am install-info \ | |
571 | install-info-am install-man install-nobase_includeHEADERS \ | |
622 | .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ | |
623 | clean-libtool cscopelist-am ctags ctags-am distclean \ | |
624 | distclean-generic distclean-libtool distclean-tags distdir dvi \ | |
625 | dvi-am html html-am info info-am install install-am \ | |
626 | install-data install-data-am install-dvi install-dvi-am \ | |
627 | install-exec install-exec-am install-html install-html-am \ | |
628 | install-info install-info-am install-man \ | |
629 | install-nobase_includeHEADERS \ | |
572 | 630 | install-nobase_nodist_includeHEADERS install-pdf \ |
573 | 631 | install-pdf-am install-ps install-ps-am install-strip \ |
574 | 632 | installcheck installcheck-am installdirs maintainer-clean \ |
575 | 633 | maintainer-clean-generic mostlyclean mostlyclean-generic \ |
576 | mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ | |
634 | mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ | |
577 | 635 | uninstall-am uninstall-nobase_includeHEADERS \ |
578 | 636 | uninstall-nobase_nodist_includeHEADERS |
579 | 637 |
768 | 768 | #endif |
769 | 769 | |
770 | 770 | /** |
771 | Makes the data at the begging of an evbuffer contiguous. | |
771 | Makes the data at the beginning of an evbuffer contiguous. | |
772 | 772 | |
773 | 773 | @param buf the evbuffer to make contiguous |
774 | 774 | @param size the number of bytes to make contiguous, or -1 to make the |
406 | 406 | evutil_make_socket_nonblocking(new_fd); |
407 | 407 | |
408 | 408 | if (lev->cb == NULL) { |
409 | evutil_closesocket(new_fd); | |
409 | 410 | UNLOCK(lev); |
410 | 411 | return; |
411 | 412 | } |
0 | AN_IDENTIFIER([ssize_t], [AC_TYPE_SSIZE_T]) | |
1 | AC_DEFUN([AC_TYPE_SSIZE_T], [AC_CHECK_TYPE(ssize_t, int)]) | |
2 |
0 | # Makefile.in generated by automake 1.11.6 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.3 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
5 | # Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
21 | 20 | # See LICENSE for copying information. |
22 | 21 | |
23 | 22 | VPATH = @srcdir@ |
24 | am__make_dryrun = \ | |
25 | { \ | |
26 | am__dry=no; \ | |
23 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
24 | am__make_running_with_option = \ | |
25 | case $${target_option-} in \ | |
26 | ?) ;; \ | |
27 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
28 | "target option '$${target_option-}' specified" >&2; \ | |
29 | exit 1;; \ | |
30 | esac; \ | |
31 | has_opt=no; \ | |
32 | sane_makeflags=$$MAKEFLAGS; \ | |
33 | if $(am__is_gnu_make); then \ | |
34 | sane_makeflags=$$MFLAGS; \ | |
35 | else \ | |
27 | 36 | case $$MAKEFLAGS in \ |
28 | 37 | *\\[\ \ ]*) \ |
29 | echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
30 | | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
31 | *) \ | |
32 | for am__flg in $$MAKEFLAGS; do \ | |
33 | case $$am__flg in \ | |
34 | *=*|--*) ;; \ | |
35 | *n*) am__dry=yes; break;; \ | |
36 | esac; \ | |
37 | done;; \ | |
38 | bs=\\; \ | |
39 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
40 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
38 | 41 | esac; \ |
39 | test $$am__dry = yes; \ | |
40 | } | |
42 | fi; \ | |
43 | skip_next=no; \ | |
44 | strip_trailopt () \ | |
45 | { \ | |
46 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
47 | }; \ | |
48 | for flg in $$sane_makeflags; do \ | |
49 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
50 | case $$flg in \ | |
51 | *=*|--*) continue;; \ | |
52 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
53 | -*I?*) strip_trailopt 'I';; \ | |
54 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
55 | -*O?*) strip_trailopt 'O';; \ | |
56 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
57 | -*l?*) strip_trailopt 'l';; \ | |
58 | -[dEDm]) skip_next=yes;; \ | |
59 | -[JT]) skip_next=yes;; \ | |
60 | esac; \ | |
61 | case $$flg in \ | |
62 | *$$target_option*) has_opt=yes; break;; \ | |
63 | esac; \ | |
64 | done; \ | |
65 | test $$has_opt = yes | |
66 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
67 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
41 | 68 | pkgdatadir = $(datadir)/@PACKAGE@ |
42 | 69 | pkgincludedir = $(includedir)/@PACKAGE@ |
43 | 70 | pkglibdir = $(libdir)/@PACKAGE@ |
61 | 88 | http-server$(EXEEXT) $(am__EXEEXT_1) |
62 | 89 | @OPENSSL_TRUE@am__append_1 = le-proxy |
63 | 90 | subdir = sample |
64 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | |
91 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am | |
65 | 92 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
66 | am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ | |
67 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ | |
68 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | |
69 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.in | |
93 | am__aclocal_m4_deps = $(top_srcdir)/m4/ac_backport_259_ssizet.m4 \ | |
94 | $(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/libtool.m4 \ | |
95 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | |
96 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | |
97 | $(top_srcdir)/configure.ac | |
70 | 98 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
71 | 99 | $(ACLOCAL_M4) |
72 | 100 | mkinstalldirs = $(install_sh) -d |
80 | 108 | dns_example_LDADD = $(LDADD) |
81 | 109 | am__DEPENDENCIES_1 = |
82 | 110 | dns_example_DEPENDENCIES = $(am__DEPENDENCIES_1) ../libevent.la |
111 | AM_V_lt = $(am__v_lt_@AM_V@) | |
112 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) | |
113 | am__v_lt_0 = --silent | |
114 | am__v_lt_1 = | |
83 | 115 | am_event_test_OBJECTS = event-test.$(OBJEXT) |
84 | 116 | event_test_OBJECTS = $(am_event_test_OBJECTS) |
85 | 117 | event_test_LDADD = $(LDADD) |
106 | 138 | time_test_OBJECTS = $(am_time_test_OBJECTS) |
107 | 139 | time_test_LDADD = $(LDADD) |
108 | 140 | time_test_DEPENDENCIES = $(am__DEPENDENCIES_1) ../libevent.la |
141 | AM_V_P = $(am__v_P_@AM_V@) | |
142 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
143 | am__v_P_0 = false | |
144 | am__v_P_1 = : | |
145 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
146 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
147 | am__v_GEN_0 = @echo " GEN " $@; | |
148 | am__v_GEN_1 = | |
149 | AM_V_at = $(am__v_at_@AM_V@) | |
150 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
151 | am__v_at_0 = @ | |
152 | am__v_at_1 = | |
109 | 153 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
110 | 154 | depcomp = |
111 | 155 | am__depfiles_maybe = |
112 | 156 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ |
113 | 157 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
114 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | |
115 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | |
116 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
158 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | |
159 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | |
160 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | |
161 | $(AM_CFLAGS) $(CFLAGS) | |
162 | AM_V_CC = $(am__v_CC_@AM_V@) | |
163 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) | |
164 | am__v_CC_0 = @echo " CC " $@; | |
165 | am__v_CC_1 = | |
117 | 166 | CCLD = $(CC) |
118 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | |
119 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | |
120 | $(LDFLAGS) -o $@ | |
167 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | |
168 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | |
169 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | |
170 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) | |
171 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) | |
172 | am__v_CCLD_0 = @echo " CCLD " $@; | |
173 | am__v_CCLD_1 = | |
121 | 174 | SOURCES = $(dns_example_SOURCES) $(event_test_SOURCES) \ |
122 | 175 | $(hello_world_SOURCES) $(http_server_SOURCES) \ |
123 | 176 | $(le_proxy_SOURCES) $(signal_test_SOURCES) \ |
131 | 184 | n|no|NO) false;; \ |
132 | 185 | *) (install-info --version) >/dev/null 2>&1;; \ |
133 | 186 | esac |
187 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
188 | # Read a list of newline-separated strings from the standard input, | |
189 | # and print each of them once, without duplicates. Input order is | |
190 | # *not* preserved. | |
191 | am__uniquify_input = $(AWK) '\ | |
192 | BEGIN { nonempty = 0; } \ | |
193 | { items[$$0] = 1; nonempty = 1; } \ | |
194 | END { if (nonempty) { for (i in items) print i; }; } \ | |
195 | ' | |
196 | # Make sure the list of sources is unique. This is necessary because, | |
197 | # e.g., the same source file might be shared among _SOURCES variables | |
198 | # for different programs/libraries. | |
199 | am__define_uniq_tagged_files = \ | |
200 | list='$(am__tagged_files)'; \ | |
201 | unique=`for i in $$list; do \ | |
202 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
203 | done | $(am__uniquify_input)` | |
134 | 204 | ETAGS = etags |
135 | 205 | CTAGS = ctags |
136 | 206 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
137 | 207 | ACLOCAL = @ACLOCAL@ |
138 | 208 | AMTAR = @AMTAR@ |
209 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | |
139 | 210 | AR = @AR@ |
140 | 211 | AUTOCONF = @AUTOCONF@ |
141 | 212 | AUTOHEADER = @AUTOHEADER@ |
313 | 384 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ |
314 | 385 | echo " rm -f" $$list; \ |
315 | 386 | rm -f $$list |
387 | ||
316 | 388 | dns-example$(EXEEXT): $(dns_example_OBJECTS) $(dns_example_DEPENDENCIES) $(EXTRA_dns_example_DEPENDENCIES) |
317 | 389 | @rm -f dns-example$(EXEEXT) |
318 | $(LINK) $(dns_example_OBJECTS) $(dns_example_LDADD) $(LIBS) | |
390 | $(AM_V_CCLD)$(LINK) $(dns_example_OBJECTS) $(dns_example_LDADD) $(LIBS) | |
391 | ||
319 | 392 | event-test$(EXEEXT): $(event_test_OBJECTS) $(event_test_DEPENDENCIES) $(EXTRA_event_test_DEPENDENCIES) |
320 | 393 | @rm -f event-test$(EXEEXT) |
321 | $(LINK) $(event_test_OBJECTS) $(event_test_LDADD) $(LIBS) | |
394 | $(AM_V_CCLD)$(LINK) $(event_test_OBJECTS) $(event_test_LDADD) $(LIBS) | |
395 | ||
322 | 396 | hello-world$(EXEEXT): $(hello_world_OBJECTS) $(hello_world_DEPENDENCIES) $(EXTRA_hello_world_DEPENDENCIES) |
323 | 397 | @rm -f hello-world$(EXEEXT) |
324 | $(LINK) $(hello_world_OBJECTS) $(hello_world_LDADD) $(LIBS) | |
398 | $(AM_V_CCLD)$(LINK) $(hello_world_OBJECTS) $(hello_world_LDADD) $(LIBS) | |
399 | ||
325 | 400 | http-server$(EXEEXT): $(http_server_OBJECTS) $(http_server_DEPENDENCIES) $(EXTRA_http_server_DEPENDENCIES) |
326 | 401 | @rm -f http-server$(EXEEXT) |
327 | $(LINK) $(http_server_OBJECTS) $(http_server_LDADD) $(LIBS) | |
402 | $(AM_V_CCLD)$(LINK) $(http_server_OBJECTS) $(http_server_LDADD) $(LIBS) | |
403 | ||
328 | 404 | le-proxy$(EXEEXT): $(le_proxy_OBJECTS) $(le_proxy_DEPENDENCIES) $(EXTRA_le_proxy_DEPENDENCIES) |
329 | 405 | @rm -f le-proxy$(EXEEXT) |
330 | $(LINK) $(le_proxy_OBJECTS) $(le_proxy_LDADD) $(LIBS) | |
406 | $(AM_V_CCLD)$(LINK) $(le_proxy_OBJECTS) $(le_proxy_LDADD) $(LIBS) | |
407 | ||
331 | 408 | signal-test$(EXEEXT): $(signal_test_OBJECTS) $(signal_test_DEPENDENCIES) $(EXTRA_signal_test_DEPENDENCIES) |
332 | 409 | @rm -f signal-test$(EXEEXT) |
333 | $(LINK) $(signal_test_OBJECTS) $(signal_test_LDADD) $(LIBS) | |
410 | $(AM_V_CCLD)$(LINK) $(signal_test_OBJECTS) $(signal_test_LDADD) $(LIBS) | |
411 | ||
334 | 412 | time-test$(EXEEXT): $(time_test_OBJECTS) $(time_test_DEPENDENCIES) $(EXTRA_time_test_DEPENDENCIES) |
335 | 413 | @rm -f time-test$(EXEEXT) |
336 | $(LINK) $(time_test_OBJECTS) $(time_test_LDADD) $(LIBS) | |
414 | $(AM_V_CCLD)$(LINK) $(time_test_OBJECTS) $(time_test_LDADD) $(LIBS) | |
337 | 415 | |
338 | 416 | mostlyclean-compile: |
339 | 417 | -rm -f *.$(OBJEXT) |
342 | 420 | -rm -f *.tab.c |
343 | 421 | |
344 | 422 | .c.o: |
345 | $(COMPILE) -c $< | |
423 | $(AM_V_CC)$(COMPILE) -c $< | |
346 | 424 | |
347 | 425 | .c.obj: |
348 | $(COMPILE) -c `$(CYGPATH_W) '$<'` | |
426 | $(AM_V_CC)$(COMPILE) -c `$(CYGPATH_W) '$<'` | |
349 | 427 | |
350 | 428 | .c.lo: |
351 | $(LTCOMPILE) -c -o $@ $< | |
429 | $(AM_V_CC)$(LTCOMPILE) -c -o $@ $< | |
352 | 430 | |
353 | 431 | mostlyclean-libtool: |
354 | 432 | -rm -f *.lo |
356 | 434 | clean-libtool: |
357 | 435 | -rm -rf .libs _libs |
358 | 436 | |
359 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
360 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
361 | unique=`for i in $$list; do \ | |
362 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
363 | done | \ | |
364 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
365 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
366 | mkid -fID $$unique | |
367 | tags: TAGS | |
368 | ||
369 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
370 | $(TAGS_FILES) $(LISP) | |
437 | ID: $(am__tagged_files) | |
438 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
439 | tags: tags-am | |
440 | TAGS: tags | |
441 | ||
442 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
371 | 443 | set x; \ |
372 | 444 | here=`pwd`; \ |
373 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
374 | unique=`for i in $$list; do \ | |
375 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
376 | done | \ | |
377 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
378 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
445 | $(am__define_uniq_tagged_files); \ | |
379 | 446 | shift; \ |
380 | 447 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
381 | 448 | test -n "$$unique" || unique=$$empty_fix; \ |
387 | 454 | $$unique; \ |
388 | 455 | fi; \ |
389 | 456 | fi |
390 | ctags: CTAGS | |
391 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
392 | $(TAGS_FILES) $(LISP) | |
393 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
394 | unique=`for i in $$list; do \ | |
395 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
396 | done | \ | |
397 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
398 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
457 | ctags: ctags-am | |
458 | ||
459 | CTAGS: ctags | |
460 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
461 | $(am__define_uniq_tagged_files); \ | |
399 | 462 | test -z "$(CTAGS_ARGS)$$unique" \ |
400 | 463 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
401 | 464 | $$unique |
404 | 467 | here=`$(am__cd) $(top_builddir) && pwd` \ |
405 | 468 | && $(am__cd) $(top_srcdir) \ |
406 | 469 | && gtags -i $(GTAGS_ARGS) "$$here" |
470 | cscopelist: cscopelist-am | |
471 | ||
472 | cscopelist-am: $(am__tagged_files) | |
473 | list='$(am__tagged_files)'; \ | |
474 | case "$(srcdir)" in \ | |
475 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
476 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
477 | esac; \ | |
478 | for i in $$list; do \ | |
479 | if test -f "$$i"; then \ | |
480 | echo "$(subdir)/$$i"; \ | |
481 | else \ | |
482 | echo "$$sdir/$$i"; \ | |
483 | fi; \ | |
484 | done >> $(top_builddir)/cscope.files | |
407 | 485 | |
408 | 486 | distclean-tags: |
409 | 487 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
544 | 622 | |
545 | 623 | .MAKE: install-am install-strip |
546 | 624 | |
547 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | |
548 | clean-libtool clean-noinstPROGRAMS ctags distclean \ | |
549 | distclean-compile distclean-generic distclean-libtool \ | |
550 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | |
551 | install install-am install-data install-data-am install-dvi \ | |
552 | install-dvi-am install-exec install-exec-am install-html \ | |
553 | install-html-am install-info install-info-am install-man \ | |
554 | install-pdf install-pdf-am install-ps install-ps-am \ | |
555 | install-strip installcheck installcheck-am installdirs \ | |
556 | maintainer-clean maintainer-clean-generic mostlyclean \ | |
557 | mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ | |
558 | pdf pdf-am ps ps-am tags uninstall uninstall-am | |
625 | .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ | |
626 | clean-libtool clean-noinstPROGRAMS cscopelist-am ctags \ | |
627 | ctags-am distclean distclean-compile distclean-generic \ | |
628 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | |
629 | html-am info info-am install install-am install-data \ | |
630 | install-data-am install-dvi install-dvi-am install-exec \ | |
631 | install-exec-am install-html install-html-am install-info \ | |
632 | install-info-am install-man install-pdf install-pdf-am \ | |
633 | install-ps install-ps-am install-strip installcheck \ | |
634 | installcheck-am installdirs maintainer-clean \ | |
635 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | |
636 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | |
637 | tags tags-am uninstall uninstall-am | |
559 | 638 | |
560 | 639 | |
561 | 640 | verify: |
131 | 131 | while (evbuffer_get_length(buf)) { |
132 | 132 | int n; |
133 | 133 | char cbuf[128]; |
134 | n = evbuffer_remove(buf, cbuf, sizeof(buf)-1); | |
134 | n = evbuffer_remove(buf, cbuf, sizeof(cbuf)); | |
135 | 135 | if (n > 0) |
136 | 136 | (void) fwrite(cbuf, 1, n, stdout); |
137 | 137 | } |
18 | 18 | EXTRA_PROGRAMS = regress |
19 | 19 | noinst_HEADERS = tinytest.h tinytest_macros.h regress.h tinytest_local.h |
20 | 20 | |
21 | TESTS = $(top_srcdir)/test/test.sh | |
21 | # We need to copy this file, since automake doesn't want us to use top_srcdir | |
22 | # in TESTS. | |
23 | TESTS = test-script.sh | |
24 | ||
25 | test-script.sh: test.sh | |
26 | cp $< $@ | |
27 | ||
28 | DISTCLEANFILES = test-script.sh | |
22 | 29 | |
23 | 30 | BUILT_SOURCES = |
24 | 31 | if BUILD_REGRESS |
90 | 97 | |
91 | 98 | CLEANFILES = rpcgen-attempted |
92 | 99 | |
93 | DISTCLEANFILES = *~ | |
100 | DISTCLEANFILES += *~ | |
94 | 101 | |
95 | 102 | verify: check |
96 | 103 |
0 | # Makefile.in generated by automake 1.11.6 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.3 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
5 | # Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
22 | 21 | |
23 | 22 | |
24 | 23 | VPATH = @srcdir@ |
25 | am__make_dryrun = \ | |
26 | { \ | |
27 | am__dry=no; \ | |
24 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
25 | am__make_running_with_option = \ | |
26 | case $${target_option-} in \ | |
27 | ?) ;; \ | |
28 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
29 | "target option '$${target_option-}' specified" >&2; \ | |
30 | exit 1;; \ | |
31 | esac; \ | |
32 | has_opt=no; \ | |
33 | sane_makeflags=$$MAKEFLAGS; \ | |
34 | if $(am__is_gnu_make); then \ | |
35 | sane_makeflags=$$MFLAGS; \ | |
36 | else \ | |
28 | 37 | case $$MAKEFLAGS in \ |
29 | 38 | *\\[\ \ ]*) \ |
30 | echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
31 | | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
32 | *) \ | |
33 | for am__flg in $$MAKEFLAGS; do \ | |
34 | case $$am__flg in \ | |
35 | *=*|--*) ;; \ | |
36 | *n*) am__dry=yes; break;; \ | |
37 | esac; \ | |
38 | done;; \ | |
39 | bs=\\; \ | |
40 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
41 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
39 | 42 | esac; \ |
40 | test $$am__dry = yes; \ | |
41 | } | |
43 | fi; \ | |
44 | skip_next=no; \ | |
45 | strip_trailopt () \ | |
46 | { \ | |
47 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
48 | }; \ | |
49 | for flg in $$sane_makeflags; do \ | |
50 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
51 | case $$flg in \ | |
52 | *=*|--*) continue;; \ | |
53 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
54 | -*I?*) strip_trailopt 'I';; \ | |
55 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
56 | -*O?*) strip_trailopt 'O';; \ | |
57 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
58 | -*l?*) strip_trailopt 'l';; \ | |
59 | -[dEDm]) skip_next=yes;; \ | |
60 | -[JT]) skip_next=yes;; \ | |
61 | esac; \ | |
62 | case $$flg in \ | |
63 | *$$target_option*) has_opt=yes; break;; \ | |
64 | esac; \ | |
65 | done; \ | |
66 | test $$has_opt = yes | |
67 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
68 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
42 | 69 | pkgdatadir = $(datadir)/@PACKAGE@ |
43 | 70 | pkgincludedir = $(includedir)/@PACKAGE@ |
44 | 71 | pkglibdir = $(libdir)/@PACKAGE@ |
70 | 97 | @OPENSSL_TRUE@am__append_5 = regress_ssl.c |
71 | 98 | @OPENSSL_TRUE@am__append_6 = ../libevent_openssl.la -lssl -lcrypto ${OPENSSL_LIBADD} |
72 | 99 | subdir = test |
73 | DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ | |
74 | $(srcdir)/Makefile.in | |
100 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
101 | $(top_srcdir)/../depcomp $(noinst_HEADERS) \ | |
102 | $(top_srcdir)/../test-driver | |
75 | 103 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
76 | am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \ | |
77 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ | |
78 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | |
79 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.in | |
104 | am__aclocal_m4_deps = $(top_srcdir)/m4/ac_backport_259_ssizet.m4 \ | |
105 | $(top_srcdir)/m4/acx_pthread.m4 $(top_srcdir)/m4/libtool.m4 \ | |
106 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | |
107 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | |
108 | $(top_srcdir)/configure.ac | |
80 | 109 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
81 | 110 | $(ACLOCAL_M4) |
82 | 111 | mkinstalldirs = $(install_sh) -d |
89 | 118 | bench_OBJECTS = $(am_bench_OBJECTS) |
90 | 119 | am__DEPENDENCIES_1 = |
91 | 120 | bench_DEPENDENCIES = $(am__DEPENDENCIES_1) ../libevent.la |
121 | AM_V_lt = $(am__v_lt_@AM_V@) | |
122 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) | |
123 | am__v_lt_0 = --silent | |
124 | am__v_lt_1 = | |
92 | 125 | am_bench_cascade_OBJECTS = bench_cascade.$(OBJEXT) |
93 | 126 | bench_cascade_OBJECTS = $(am_bench_cascade_OBJECTS) |
94 | 127 | bench_cascade_DEPENDENCIES = $(am__DEPENDENCIES_1) ../libevent.la |
129 | 162 | regress_DEPENDENCIES = $(am__DEPENDENCIES_1) ../libevent.la \ |
130 | 163 | $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_1) \ |
131 | 164 | $(am__DEPENDENCIES_3) |
132 | regress_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | |
133 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(regress_LDFLAGS) \ | |
134 | $(LDFLAGS) -o $@ | |
165 | regress_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | |
166 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | |
167 | $(regress_LDFLAGS) $(LDFLAGS) -o $@ | |
135 | 168 | am_test_changelist_OBJECTS = test-changelist.$(OBJEXT) |
136 | 169 | test_changelist_OBJECTS = $(am_test_changelist_OBJECTS) |
137 | 170 | test_changelist_DEPENDENCIES = ../libevent_core.la |
150 | 183 | am_test_weof_OBJECTS = test-weof.$(OBJEXT) |
151 | 184 | test_weof_OBJECTS = $(am_test_weof_OBJECTS) |
152 | 185 | test_weof_DEPENDENCIES = ../libevent_core.la |
186 | AM_V_P = $(am__v_P_@AM_V@) | |
187 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
188 | am__v_P_0 = false | |
189 | am__v_P_1 = : | |
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 " $@; | |
193 | am__v_GEN_1 = | |
194 | AM_V_at = $(am__v_at_@AM_V@) | |
195 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
196 | am__v_at_0 = @ | |
197 | am__v_at_1 = | |
153 | 198 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
154 | 199 | depcomp = $(SHELL) $(top_srcdir)/../depcomp |
155 | 200 | am__depfiles_maybe = depfiles |
156 | 201 | am__mv = mv -f |
157 | 202 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ |
158 | 203 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) |
159 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | |
160 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | |
161 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
204 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | |
205 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | |
206 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | |
207 | $(AM_CFLAGS) $(CFLAGS) | |
208 | AM_V_CC = $(am__v_CC_@AM_V@) | |
209 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) | |
210 | am__v_CC_0 = @echo " CC " $@; | |
211 | am__v_CC_1 = | |
162 | 212 | CCLD = $(CC) |
163 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | |
164 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | |
165 | $(LDFLAGS) -o $@ | |
213 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | |
214 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | |
215 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | |
216 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) | |
217 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) | |
218 | am__v_CCLD_0 = @echo " CCLD " $@; | |
219 | am__v_CCLD_1 = | |
166 | 220 | SOURCES = $(bench_SOURCES) $(bench_cascade_SOURCES) \ |
167 | 221 | $(bench_http_SOURCES) $(bench_httpclient_SOURCES) \ |
168 | 222 | $(regress_SOURCES) $(test_changelist_SOURCES) \ |
181 | 235 | *) (install-info --version) >/dev/null 2>&1;; \ |
182 | 236 | esac |
183 | 237 | HEADERS = $(noinst_HEADERS) |
238 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
239 | # Read a list of newline-separated strings from the standard input, | |
240 | # and print each of them once, without duplicates. Input order is | |
241 | # *not* preserved. | |
242 | am__uniquify_input = $(AWK) '\ | |
243 | BEGIN { nonempty = 0; } \ | |
244 | { items[$$0] = 1; nonempty = 1; } \ | |
245 | END { if (nonempty) { for (i in items) print i; }; } \ | |
246 | ' | |
247 | # Make sure the list of sources is unique. This is necessary because, | |
248 | # e.g., the same source file might be shared among _SOURCES variables | |
249 | # for different programs/libraries. | |
250 | am__define_uniq_tagged_files = \ | |
251 | list='$(am__tagged_files)'; \ | |
252 | unique=`for i in $$list; do \ | |
253 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
254 | done | $(am__uniquify_input)` | |
184 | 255 | ETAGS = etags |
185 | 256 | CTAGS = ctags |
186 | am__tty_colors = \ | |
187 | red=; grn=; lgn=; blu=; std= | |
257 | am__tty_colors_dummy = \ | |
258 | mgn= red= grn= lgn= blu= brg= std=; \ | |
259 | am__color_tests=no | |
260 | am__tty_colors = { \ | |
261 | $(am__tty_colors_dummy); \ | |
262 | if test "X$(AM_COLOR_TESTS)" = Xno; then \ | |
263 | am__color_tests=no; \ | |
264 | elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ | |
265 | am__color_tests=yes; \ | |
266 | elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ | |
267 | am__color_tests=yes; \ | |
268 | fi; \ | |
269 | if test $$am__color_tests = yes; then \ | |
270 | red='[0;31m'; \ | |
271 | grn='[0;32m'; \ | |
272 | lgn='[1;32m'; \ | |
273 | blu='[1;34m'; \ | |
274 | mgn='[0;35m'; \ | |
275 | brg='[1m'; \ | |
276 | std='[m'; \ | |
277 | fi; \ | |
278 | } | |
279 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | |
280 | am__vpath_adj = case $$p in \ | |
281 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | |
282 | *) f=$$p;; \ | |
283 | esac; | |
284 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | |
285 | am__install_max = 40 | |
286 | am__nobase_strip_setup = \ | |
287 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | |
288 | am__nobase_strip = \ | |
289 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | |
290 | am__nobase_list = $(am__nobase_strip_setup); \ | |
291 | for p in $$list; do echo "$$p $$p"; done | \ | |
292 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | |
293 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | |
294 | if (++n[$$2] == $(am__install_max)) \ | |
295 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | |
296 | END { for (dir in files) print dir, files[dir] }' | |
297 | am__base_list = \ | |
298 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | |
299 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | |
300 | am__uninstall_files_from_dir = { \ | |
301 | test -z "$$files" \ | |
302 | || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ | |
303 | || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ | |
304 | $(am__cd) "$$dir" && rm -f $$files; }; \ | |
305 | } | |
306 | am__recheck_rx = ^[ ]*:recheck:[ ]* | |
307 | am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* | |
308 | am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* | |
309 | # A command that, given a newline-separated list of test names on the | |
310 | # standard input, print the name of the tests that are to be re-run | |
311 | # upon "make recheck". | |
312 | am__list_recheck_tests = $(AWK) '{ \ | |
313 | recheck = 1; \ | |
314 | while ((rc = (getline line < ($$0 ".trs"))) != 0) \ | |
315 | { \ | |
316 | if (rc < 0) \ | |
317 | { \ | |
318 | if ((getline line2 < ($$0 ".log")) < 0) \ | |
319 | recheck = 0; \ | |
320 | break; \ | |
321 | } \ | |
322 | else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ | |
323 | { \ | |
324 | recheck = 0; \ | |
325 | break; \ | |
326 | } \ | |
327 | else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ | |
328 | { \ | |
329 | break; \ | |
330 | } \ | |
331 | }; \ | |
332 | if (recheck) \ | |
333 | print $$0; \ | |
334 | close ($$0 ".trs"); \ | |
335 | close ($$0 ".log"); \ | |
336 | }' | |
337 | # A command that, given a newline-separated list of test names on the | |
338 | # standard input, create the global log from their .trs and .log files. | |
339 | am__create_global_log = $(AWK) ' \ | |
340 | function fatal(msg) \ | |
341 | { \ | |
342 | print "fatal: making $@: " msg | "cat >&2"; \ | |
343 | exit 1; \ | |
344 | } \ | |
345 | function rst_section(header) \ | |
346 | { \ | |
347 | print header; \ | |
348 | len = length(header); \ | |
349 | for (i = 1; i <= len; i = i + 1) \ | |
350 | printf "="; \ | |
351 | printf "\n\n"; \ | |
352 | } \ | |
353 | { \ | |
354 | copy_in_global_log = 1; \ | |
355 | global_test_result = "RUN"; \ | |
356 | while ((rc = (getline line < ($$0 ".trs"))) != 0) \ | |
357 | { \ | |
358 | if (rc < 0) \ | |
359 | fatal("failed to read from " $$0 ".trs"); \ | |
360 | if (line ~ /$(am__global_test_result_rx)/) \ | |
361 | { \ | |
362 | sub("$(am__global_test_result_rx)", "", line); \ | |
363 | sub("[ ]*$$", "", line); \ | |
364 | global_test_result = line; \ | |
365 | } \ | |
366 | else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ | |
367 | copy_in_global_log = 0; \ | |
368 | }; \ | |
369 | if (copy_in_global_log) \ | |
370 | { \ | |
371 | rst_section(global_test_result ": " $$0); \ | |
372 | while ((rc = (getline line < ($$0 ".log"))) != 0) \ | |
373 | { \ | |
374 | if (rc < 0) \ | |
375 | fatal("failed to read from " $$0 ".log"); \ | |
376 | print line; \ | |
377 | }; \ | |
378 | printf "\n"; \ | |
379 | }; \ | |
380 | close ($$0 ".trs"); \ | |
381 | close ($$0 ".log"); \ | |
382 | }' | |
383 | # Restructured Text title. | |
384 | am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } | |
385 | # Solaris 10 'make', and several other traditional 'make' implementations, | |
386 | # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it | |
387 | # by disabling -e (using the XSI extension "set +e") if it's set. | |
388 | am__sh_e_setup = case $$- in *e*) set +e;; esac | |
389 | # Default flags passed to test drivers. | |
390 | am__common_driver_flags = \ | |
391 | --color-tests "$$am__color_tests" \ | |
392 | --enable-hard-errors "$$am__enable_hard_errors" \ | |
393 | --expect-failure "$$am__expect_failure" | |
394 | # To be inserted before the command running the test. Creates the | |
395 | # directory for the log if needed. Stores in $dir the directory | |
396 | # containing $f, in $tst the test, in $log the log. Executes the | |
397 | # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and | |
398 | # passes TESTS_ENVIRONMENT. Set up options for the wrapper that | |
399 | # will run the test scripts (or their associated LOG_COMPILER, if | |
400 | # thy have one). | |
401 | am__check_pre = \ | |
402 | $(am__sh_e_setup); \ | |
403 | $(am__vpath_adj_setup) $(am__vpath_adj) \ | |
404 | $(am__tty_colors); \ | |
405 | srcdir=$(srcdir); export srcdir; \ | |
406 | case "$@" in \ | |
407 | */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ | |
408 | *) am__odir=.;; \ | |
409 | esac; \ | |
410 | test "x$$am__odir" = x"." || test -d "$$am__odir" \ | |
411 | || $(MKDIR_P) "$$am__odir" || exit $$?; \ | |
412 | if test -f "./$$f"; then dir=./; \ | |
413 | elif test -f "$$f"; then dir=; \ | |
414 | else dir="$(srcdir)/"; fi; \ | |
415 | tst=$$dir$$f; log='$@'; \ | |
416 | if test -n '$(DISABLE_HARD_ERRORS)'; then \ | |
417 | am__enable_hard_errors=no; \ | |
418 | else \ | |
419 | am__enable_hard_errors=yes; \ | |
420 | fi; \ | |
421 | case " $(XFAIL_TESTS) " in \ | |
422 | *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ | |
423 | am__expect_failure=yes;; \ | |
424 | *) \ | |
425 | am__expect_failure=no;; \ | |
426 | esac; \ | |
427 | $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) | |
428 | # A shell command to get the names of the tests scripts with any registered | |
429 | # extension removed (i.e., equivalently, the names of the test logs, with | |
430 | # the '.log' extension removed). The result is saved in the shell variable | |
431 | # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, | |
432 | # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", | |
433 | # since that might cause problem with VPATH rewrites for suffix-less tests. | |
434 | # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. | |
435 | am__set_TESTS_bases = \ | |
436 | bases='$(TEST_LOGS)'; \ | |
437 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ | |
438 | bases=`echo $$bases` | |
439 | RECHECK_LOGS = $(TEST_LOGS) | |
440 | AM_RECURSIVE_TARGETS = check recheck | |
441 | TEST_SUITE_LOG = test-suite.log | |
442 | TEST_EXTENSIONS = @EXEEXT@ .test | |
443 | LOG_DRIVER = $(SHELL) $(top_srcdir)/../test-driver | |
444 | LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) | |
445 | am__set_b = \ | |
446 | case '$@' in \ | |
447 | */*) \ | |
448 | case '$*' in \ | |
449 | */*) b='$*';; \ | |
450 | *) b=`echo '$@' | sed 's/\.log$$//'`; \ | |
451 | esac;; \ | |
452 | *) \ | |
453 | b='$*';; \ | |
454 | esac | |
455 | am__test_logs1 = $(TESTS:=.log) | |
456 | am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) | |
457 | TEST_LOGS = $(am__test_logs2:.test.log=.log) | |
458 | TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/../test-driver | |
459 | TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ | |
460 | $(TEST_LOG_FLAGS) | |
188 | 461 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
189 | 462 | ACLOCAL = @ACLOCAL@ |
190 | 463 | AMTAR = @AMTAR@ |
464 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | |
191 | 465 | AR = @AR@ |
192 | 466 | AUTOCONF = @AUTOCONF@ |
193 | 467 | AUTOHEADER = @AUTOHEADER@ |
314 | 588 | AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/compat -I$(top_srcdir)/include -I../include -DTINYTEST_LOCAL |
315 | 589 | EXTRA_DIST = regress.rpc regress.gen.h regress.gen.c rpcgen_wrapper.sh test.sh |
316 | 590 | noinst_HEADERS = tinytest.h tinytest_macros.h regress.h tinytest_local.h |
317 | TESTS = $(top_srcdir)/test/test.sh | |
591 | ||
592 | # We need to copy this file, since automake doesn't want us to use top_srcdir | |
593 | # in TESTS. | |
594 | TESTS = test-script.sh | |
595 | DISTCLEANFILES = test-script.sh *~ | |
318 | 596 | BUILT_SOURCES = $(am__append_2) |
319 | 597 | test_init_SOURCES = test-init.c |
320 | 598 | test_init_LDADD = ../libevent_core.la |
351 | 629 | bench_httpclient_SOURCES = bench_httpclient.c |
352 | 630 | bench_httpclient_LDADD = $(LIBEVENT_GC_SECTIONS) ../libevent_core.la |
353 | 631 | CLEANFILES = rpcgen-attempted |
354 | DISTCLEANFILES = *~ | |
355 | 632 | all: $(BUILT_SOURCES) |
356 | 633 | $(MAKE) $(AM_MAKEFLAGS) all-am |
357 | 634 | |
358 | 635 | .SUFFIXES: |
359 | .SUFFIXES: .c .lo .o .obj | |
636 | .SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs | |
360 | 637 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) |
361 | 638 | @for dep in $?; do \ |
362 | 639 | case '$(am__configure_deps)' in \ |
396 | 673 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ |
397 | 674 | echo " rm -f" $$list; \ |
398 | 675 | rm -f $$list |
676 | ||
399 | 677 | bench$(EXEEXT): $(bench_OBJECTS) $(bench_DEPENDENCIES) $(EXTRA_bench_DEPENDENCIES) |
400 | 678 | @rm -f bench$(EXEEXT) |
401 | $(LINK) $(bench_OBJECTS) $(bench_LDADD) $(LIBS) | |
679 | $(AM_V_CCLD)$(LINK) $(bench_OBJECTS) $(bench_LDADD) $(LIBS) | |
680 | ||
402 | 681 | bench_cascade$(EXEEXT): $(bench_cascade_OBJECTS) $(bench_cascade_DEPENDENCIES) $(EXTRA_bench_cascade_DEPENDENCIES) |
403 | 682 | @rm -f bench_cascade$(EXEEXT) |
404 | $(LINK) $(bench_cascade_OBJECTS) $(bench_cascade_LDADD) $(LIBS) | |
683 | $(AM_V_CCLD)$(LINK) $(bench_cascade_OBJECTS) $(bench_cascade_LDADD) $(LIBS) | |
684 | ||
405 | 685 | bench_http$(EXEEXT): $(bench_http_OBJECTS) $(bench_http_DEPENDENCIES) $(EXTRA_bench_http_DEPENDENCIES) |
406 | 686 | @rm -f bench_http$(EXEEXT) |
407 | $(LINK) $(bench_http_OBJECTS) $(bench_http_LDADD) $(LIBS) | |
687 | $(AM_V_CCLD)$(LINK) $(bench_http_OBJECTS) $(bench_http_LDADD) $(LIBS) | |
688 | ||
408 | 689 | bench_httpclient$(EXEEXT): $(bench_httpclient_OBJECTS) $(bench_httpclient_DEPENDENCIES) $(EXTRA_bench_httpclient_DEPENDENCIES) |
409 | 690 | @rm -f bench_httpclient$(EXEEXT) |
410 | $(LINK) $(bench_httpclient_OBJECTS) $(bench_httpclient_LDADD) $(LIBS) | |
691 | $(AM_V_CCLD)$(LINK) $(bench_httpclient_OBJECTS) $(bench_httpclient_LDADD) $(LIBS) | |
692 | ||
411 | 693 | regress$(EXEEXT): $(regress_OBJECTS) $(regress_DEPENDENCIES) $(EXTRA_regress_DEPENDENCIES) |
412 | 694 | @rm -f regress$(EXEEXT) |
413 | $(regress_LINK) $(regress_OBJECTS) $(regress_LDADD) $(LIBS) | |
695 | $(AM_V_CCLD)$(regress_LINK) $(regress_OBJECTS) $(regress_LDADD) $(LIBS) | |
696 | ||
414 | 697 | test-changelist$(EXEEXT): $(test_changelist_OBJECTS) $(test_changelist_DEPENDENCIES) $(EXTRA_test_changelist_DEPENDENCIES) |
415 | 698 | @rm -f test-changelist$(EXEEXT) |
416 | $(LINK) $(test_changelist_OBJECTS) $(test_changelist_LDADD) $(LIBS) | |
699 | $(AM_V_CCLD)$(LINK) $(test_changelist_OBJECTS) $(test_changelist_LDADD) $(LIBS) | |
700 | ||
417 | 701 | test-eof$(EXEEXT): $(test_eof_OBJECTS) $(test_eof_DEPENDENCIES) $(EXTRA_test_eof_DEPENDENCIES) |
418 | 702 | @rm -f test-eof$(EXEEXT) |
419 | $(LINK) $(test_eof_OBJECTS) $(test_eof_LDADD) $(LIBS) | |
703 | $(AM_V_CCLD)$(LINK) $(test_eof_OBJECTS) $(test_eof_LDADD) $(LIBS) | |
704 | ||
420 | 705 | test-init$(EXEEXT): $(test_init_OBJECTS) $(test_init_DEPENDENCIES) $(EXTRA_test_init_DEPENDENCIES) |
421 | 706 | @rm -f test-init$(EXEEXT) |
422 | $(LINK) $(test_init_OBJECTS) $(test_init_LDADD) $(LIBS) | |
707 | $(AM_V_CCLD)$(LINK) $(test_init_OBJECTS) $(test_init_LDADD) $(LIBS) | |
708 | ||
423 | 709 | test-ratelim$(EXEEXT): $(test_ratelim_OBJECTS) $(test_ratelim_DEPENDENCIES) $(EXTRA_test_ratelim_DEPENDENCIES) |
424 | 710 | @rm -f test-ratelim$(EXEEXT) |
425 | $(LINK) $(test_ratelim_OBJECTS) $(test_ratelim_LDADD) $(LIBS) | |
711 | $(AM_V_CCLD)$(LINK) $(test_ratelim_OBJECTS) $(test_ratelim_LDADD) $(LIBS) | |
712 | ||
426 | 713 | test-time$(EXEEXT): $(test_time_OBJECTS) $(test_time_DEPENDENCIES) $(EXTRA_test_time_DEPENDENCIES) |
427 | 714 | @rm -f test-time$(EXEEXT) |
428 | $(LINK) $(test_time_OBJECTS) $(test_time_LDADD) $(LIBS) | |
715 | $(AM_V_CCLD)$(LINK) $(test_time_OBJECTS) $(test_time_LDADD) $(LIBS) | |
716 | ||
429 | 717 | test-weof$(EXEEXT): $(test_weof_OBJECTS) $(test_weof_DEPENDENCIES) $(EXTRA_test_weof_DEPENDENCIES) |
430 | 718 | @rm -f test-weof$(EXEEXT) |
431 | $(LINK) $(test_weof_OBJECTS) $(test_weof_LDADD) $(LIBS) | |
719 | $(AM_V_CCLD)$(LINK) $(test_weof_OBJECTS) $(test_weof_LDADD) $(LIBS) | |
432 | 720 | |
433 | 721 | mostlyclean-compile: |
434 | 722 | -rm -f *.$(OBJEXT) |
466 | 754 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-weof.Po@am__quote@ |
467 | 755 | |
468 | 756 | .c.o: |
469 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
470 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
471 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
472 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
473 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | |
757 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
758 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
759 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
760 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
761 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< | |
474 | 762 | |
475 | 763 | .c.obj: |
476 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | |
477 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
478 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
479 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
480 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | |
764 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | |
765 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
766 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
767 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
768 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` | |
481 | 769 | |
482 | 770 | .c.lo: |
483 | @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
484 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | |
485 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | |
486 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
487 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | |
771 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
772 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | |
773 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | |
774 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
775 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< | |
488 | 776 | |
489 | 777 | regress-regress.o: regress.c |
490 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.o -MD -MP -MF $(DEPDIR)/regress-regress.Tpo -c -o regress-regress.o `test -f 'regress.c' || echo '$(srcdir)/'`regress.c | |
491 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress.Tpo $(DEPDIR)/regress-regress.Po | |
492 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress.c' object='regress-regress.o' libtool=no @AMDEPBACKSLASH@ | |
493 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
494 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.o `test -f 'regress.c' || echo '$(srcdir)/'`regress.c | |
778 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.o -MD -MP -MF $(DEPDIR)/regress-regress.Tpo -c -o regress-regress.o `test -f 'regress.c' || echo '$(srcdir)/'`regress.c | |
779 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress.Tpo $(DEPDIR)/regress-regress.Po | |
780 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress.c' object='regress-regress.o' libtool=no @AMDEPBACKSLASH@ | |
781 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
782 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.o `test -f 'regress.c' || echo '$(srcdir)/'`regress.c | |
495 | 783 | |
496 | 784 | regress-regress.obj: regress.c |
497 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.obj -MD -MP -MF $(DEPDIR)/regress-regress.Tpo -c -o regress-regress.obj `if test -f 'regress.c'; then $(CYGPATH_W) 'regress.c'; else $(CYGPATH_W) '$(srcdir)/regress.c'; fi` | |
498 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress.Tpo $(DEPDIR)/regress-regress.Po | |
499 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress.c' object='regress-regress.obj' libtool=no @AMDEPBACKSLASH@ | |
500 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
501 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.obj `if test -f 'regress.c'; then $(CYGPATH_W) 'regress.c'; else $(CYGPATH_W) '$(srcdir)/regress.c'; fi` | |
785 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.obj -MD -MP -MF $(DEPDIR)/regress-regress.Tpo -c -o regress-regress.obj `if test -f 'regress.c'; then $(CYGPATH_W) 'regress.c'; else $(CYGPATH_W) '$(srcdir)/regress.c'; fi` | |
786 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress.Tpo $(DEPDIR)/regress-regress.Po | |
787 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress.c' object='regress-regress.obj' libtool=no @AMDEPBACKSLASH@ | |
788 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
789 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.obj `if test -f 'regress.c'; then $(CYGPATH_W) 'regress.c'; else $(CYGPATH_W) '$(srcdir)/regress.c'; fi` | |
502 | 790 | |
503 | 791 | regress-regress_buffer.o: regress_buffer.c |
504 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_buffer.o -MD -MP -MF $(DEPDIR)/regress-regress_buffer.Tpo -c -o regress-regress_buffer.o `test -f 'regress_buffer.c' || echo '$(srcdir)/'`regress_buffer.c | |
505 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_buffer.Tpo $(DEPDIR)/regress-regress_buffer.Po | |
506 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_buffer.c' object='regress-regress_buffer.o' libtool=no @AMDEPBACKSLASH@ | |
507 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
508 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_buffer.o `test -f 'regress_buffer.c' || echo '$(srcdir)/'`regress_buffer.c | |
792 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_buffer.o -MD -MP -MF $(DEPDIR)/regress-regress_buffer.Tpo -c -o regress-regress_buffer.o `test -f 'regress_buffer.c' || echo '$(srcdir)/'`regress_buffer.c | |
793 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_buffer.Tpo $(DEPDIR)/regress-regress_buffer.Po | |
794 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_buffer.c' object='regress-regress_buffer.o' libtool=no @AMDEPBACKSLASH@ | |
795 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
796 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_buffer.o `test -f 'regress_buffer.c' || echo '$(srcdir)/'`regress_buffer.c | |
509 | 797 | |
510 | 798 | regress-regress_buffer.obj: regress_buffer.c |
511 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_buffer.obj -MD -MP -MF $(DEPDIR)/regress-regress_buffer.Tpo -c -o regress-regress_buffer.obj `if test -f 'regress_buffer.c'; then $(CYGPATH_W) 'regress_buffer.c'; else $(CYGPATH_W) '$(srcdir)/regress_buffer.c'; fi` | |
512 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_buffer.Tpo $(DEPDIR)/regress-regress_buffer.Po | |
513 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_buffer.c' object='regress-regress_buffer.obj' libtool=no @AMDEPBACKSLASH@ | |
514 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
515 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_buffer.obj `if test -f 'regress_buffer.c'; then $(CYGPATH_W) 'regress_buffer.c'; else $(CYGPATH_W) '$(srcdir)/regress_buffer.c'; fi` | |
799 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_buffer.obj -MD -MP -MF $(DEPDIR)/regress-regress_buffer.Tpo -c -o regress-regress_buffer.obj `if test -f 'regress_buffer.c'; then $(CYGPATH_W) 'regress_buffer.c'; else $(CYGPATH_W) '$(srcdir)/regress_buffer.c'; fi` | |
800 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_buffer.Tpo $(DEPDIR)/regress-regress_buffer.Po | |
801 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_buffer.c' object='regress-regress_buffer.obj' libtool=no @AMDEPBACKSLASH@ | |
802 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
803 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_buffer.obj `if test -f 'regress_buffer.c'; then $(CYGPATH_W) 'regress_buffer.c'; else $(CYGPATH_W) '$(srcdir)/regress_buffer.c'; fi` | |
516 | 804 | |
517 | 805 | regress-regress_http.o: regress_http.c |
518 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_http.o -MD -MP -MF $(DEPDIR)/regress-regress_http.Tpo -c -o regress-regress_http.o `test -f 'regress_http.c' || echo '$(srcdir)/'`regress_http.c | |
519 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_http.Tpo $(DEPDIR)/regress-regress_http.Po | |
520 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_http.c' object='regress-regress_http.o' libtool=no @AMDEPBACKSLASH@ | |
521 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
522 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_http.o `test -f 'regress_http.c' || echo '$(srcdir)/'`regress_http.c | |
806 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_http.o -MD -MP -MF $(DEPDIR)/regress-regress_http.Tpo -c -o regress-regress_http.o `test -f 'regress_http.c' || echo '$(srcdir)/'`regress_http.c | |
807 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_http.Tpo $(DEPDIR)/regress-regress_http.Po | |
808 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_http.c' object='regress-regress_http.o' libtool=no @AMDEPBACKSLASH@ | |
809 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
810 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_http.o `test -f 'regress_http.c' || echo '$(srcdir)/'`regress_http.c | |
523 | 811 | |
524 | 812 | regress-regress_http.obj: regress_http.c |
525 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_http.obj -MD -MP -MF $(DEPDIR)/regress-regress_http.Tpo -c -o regress-regress_http.obj `if test -f 'regress_http.c'; then $(CYGPATH_W) 'regress_http.c'; else $(CYGPATH_W) '$(srcdir)/regress_http.c'; fi` | |
526 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_http.Tpo $(DEPDIR)/regress-regress_http.Po | |
527 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_http.c' object='regress-regress_http.obj' libtool=no @AMDEPBACKSLASH@ | |
528 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
529 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_http.obj `if test -f 'regress_http.c'; then $(CYGPATH_W) 'regress_http.c'; else $(CYGPATH_W) '$(srcdir)/regress_http.c'; fi` | |
813 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_http.obj -MD -MP -MF $(DEPDIR)/regress-regress_http.Tpo -c -o regress-regress_http.obj `if test -f 'regress_http.c'; then $(CYGPATH_W) 'regress_http.c'; else $(CYGPATH_W) '$(srcdir)/regress_http.c'; fi` | |
814 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_http.Tpo $(DEPDIR)/regress-regress_http.Po | |
815 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_http.c' object='regress-regress_http.obj' libtool=no @AMDEPBACKSLASH@ | |
816 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
817 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_http.obj `if test -f 'regress_http.c'; then $(CYGPATH_W) 'regress_http.c'; else $(CYGPATH_W) '$(srcdir)/regress_http.c'; fi` | |
530 | 818 | |
531 | 819 | regress-regress_dns.o: regress_dns.c |
532 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_dns.o -MD -MP -MF $(DEPDIR)/regress-regress_dns.Tpo -c -o regress-regress_dns.o `test -f 'regress_dns.c' || echo '$(srcdir)/'`regress_dns.c | |
533 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_dns.Tpo $(DEPDIR)/regress-regress_dns.Po | |
534 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_dns.c' object='regress-regress_dns.o' libtool=no @AMDEPBACKSLASH@ | |
535 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
536 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_dns.o `test -f 'regress_dns.c' || echo '$(srcdir)/'`regress_dns.c | |
820 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_dns.o -MD -MP -MF $(DEPDIR)/regress-regress_dns.Tpo -c -o regress-regress_dns.o `test -f 'regress_dns.c' || echo '$(srcdir)/'`regress_dns.c | |
821 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_dns.Tpo $(DEPDIR)/regress-regress_dns.Po | |
822 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_dns.c' object='regress-regress_dns.o' libtool=no @AMDEPBACKSLASH@ | |
823 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
824 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_dns.o `test -f 'regress_dns.c' || echo '$(srcdir)/'`regress_dns.c | |
537 | 825 | |
538 | 826 | regress-regress_dns.obj: regress_dns.c |
539 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_dns.obj -MD -MP -MF $(DEPDIR)/regress-regress_dns.Tpo -c -o regress-regress_dns.obj `if test -f 'regress_dns.c'; then $(CYGPATH_W) 'regress_dns.c'; else $(CYGPATH_W) '$(srcdir)/regress_dns.c'; fi` | |
540 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_dns.Tpo $(DEPDIR)/regress-regress_dns.Po | |
541 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_dns.c' object='regress-regress_dns.obj' libtool=no @AMDEPBACKSLASH@ | |
542 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
543 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_dns.obj `if test -f 'regress_dns.c'; then $(CYGPATH_W) 'regress_dns.c'; else $(CYGPATH_W) '$(srcdir)/regress_dns.c'; fi` | |
827 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_dns.obj -MD -MP -MF $(DEPDIR)/regress-regress_dns.Tpo -c -o regress-regress_dns.obj `if test -f 'regress_dns.c'; then $(CYGPATH_W) 'regress_dns.c'; else $(CYGPATH_W) '$(srcdir)/regress_dns.c'; fi` | |
828 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_dns.Tpo $(DEPDIR)/regress-regress_dns.Po | |
829 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_dns.c' object='regress-regress_dns.obj' libtool=no @AMDEPBACKSLASH@ | |
830 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
831 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_dns.obj `if test -f 'regress_dns.c'; then $(CYGPATH_W) 'regress_dns.c'; else $(CYGPATH_W) '$(srcdir)/regress_dns.c'; fi` | |
544 | 832 | |
545 | 833 | regress-regress_testutils.o: regress_testutils.c |
546 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_testutils.o -MD -MP -MF $(DEPDIR)/regress-regress_testutils.Tpo -c -o regress-regress_testutils.o `test -f 'regress_testutils.c' || echo '$(srcdir)/'`regress_testutils.c | |
547 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_testutils.Tpo $(DEPDIR)/regress-regress_testutils.Po | |
548 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_testutils.c' object='regress-regress_testutils.o' libtool=no @AMDEPBACKSLASH@ | |
549 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
550 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_testutils.o `test -f 'regress_testutils.c' || echo '$(srcdir)/'`regress_testutils.c | |
834 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_testutils.o -MD -MP -MF $(DEPDIR)/regress-regress_testutils.Tpo -c -o regress-regress_testutils.o `test -f 'regress_testutils.c' || echo '$(srcdir)/'`regress_testutils.c | |
835 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_testutils.Tpo $(DEPDIR)/regress-regress_testutils.Po | |
836 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_testutils.c' object='regress-regress_testutils.o' libtool=no @AMDEPBACKSLASH@ | |
837 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
838 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_testutils.o `test -f 'regress_testutils.c' || echo '$(srcdir)/'`regress_testutils.c | |
551 | 839 | |
552 | 840 | regress-regress_testutils.obj: regress_testutils.c |
553 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_testutils.obj -MD -MP -MF $(DEPDIR)/regress-regress_testutils.Tpo -c -o regress-regress_testutils.obj `if test -f 'regress_testutils.c'; then $(CYGPATH_W) 'regress_testutils.c'; else $(CYGPATH_W) '$(srcdir)/regress_testutils.c'; fi` | |
554 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_testutils.Tpo $(DEPDIR)/regress-regress_testutils.Po | |
555 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_testutils.c' object='regress-regress_testutils.obj' libtool=no @AMDEPBACKSLASH@ | |
556 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
557 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_testutils.obj `if test -f 'regress_testutils.c'; then $(CYGPATH_W) 'regress_testutils.c'; else $(CYGPATH_W) '$(srcdir)/regress_testutils.c'; fi` | |
841 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_testutils.obj -MD -MP -MF $(DEPDIR)/regress-regress_testutils.Tpo -c -o regress-regress_testutils.obj `if test -f 'regress_testutils.c'; then $(CYGPATH_W) 'regress_testutils.c'; else $(CYGPATH_W) '$(srcdir)/regress_testutils.c'; fi` | |
842 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_testutils.Tpo $(DEPDIR)/regress-regress_testutils.Po | |
843 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_testutils.c' object='regress-regress_testutils.obj' libtool=no @AMDEPBACKSLASH@ | |
844 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
845 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_testutils.obj `if test -f 'regress_testutils.c'; then $(CYGPATH_W) 'regress_testutils.c'; else $(CYGPATH_W) '$(srcdir)/regress_testutils.c'; fi` | |
558 | 846 | |
559 | 847 | regress-regress_rpc.o: regress_rpc.c |
560 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_rpc.o -MD -MP -MF $(DEPDIR)/regress-regress_rpc.Tpo -c -o regress-regress_rpc.o `test -f 'regress_rpc.c' || echo '$(srcdir)/'`regress_rpc.c | |
561 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_rpc.Tpo $(DEPDIR)/regress-regress_rpc.Po | |
562 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_rpc.c' object='regress-regress_rpc.o' libtool=no @AMDEPBACKSLASH@ | |
563 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
564 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_rpc.o `test -f 'regress_rpc.c' || echo '$(srcdir)/'`regress_rpc.c | |
848 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_rpc.o -MD -MP -MF $(DEPDIR)/regress-regress_rpc.Tpo -c -o regress-regress_rpc.o `test -f 'regress_rpc.c' || echo '$(srcdir)/'`regress_rpc.c | |
849 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_rpc.Tpo $(DEPDIR)/regress-regress_rpc.Po | |
850 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_rpc.c' object='regress-regress_rpc.o' libtool=no @AMDEPBACKSLASH@ | |
851 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
852 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_rpc.o `test -f 'regress_rpc.c' || echo '$(srcdir)/'`regress_rpc.c | |
565 | 853 | |
566 | 854 | regress-regress_rpc.obj: regress_rpc.c |
567 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_rpc.obj -MD -MP -MF $(DEPDIR)/regress-regress_rpc.Tpo -c -o regress-regress_rpc.obj `if test -f 'regress_rpc.c'; then $(CYGPATH_W) 'regress_rpc.c'; else $(CYGPATH_W) '$(srcdir)/regress_rpc.c'; fi` | |
568 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_rpc.Tpo $(DEPDIR)/regress-regress_rpc.Po | |
569 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_rpc.c' object='regress-regress_rpc.obj' libtool=no @AMDEPBACKSLASH@ | |
570 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
571 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_rpc.obj `if test -f 'regress_rpc.c'; then $(CYGPATH_W) 'regress_rpc.c'; else $(CYGPATH_W) '$(srcdir)/regress_rpc.c'; fi` | |
855 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_rpc.obj -MD -MP -MF $(DEPDIR)/regress-regress_rpc.Tpo -c -o regress-regress_rpc.obj `if test -f 'regress_rpc.c'; then $(CYGPATH_W) 'regress_rpc.c'; else $(CYGPATH_W) '$(srcdir)/regress_rpc.c'; fi` | |
856 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_rpc.Tpo $(DEPDIR)/regress-regress_rpc.Po | |
857 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_rpc.c' object='regress-regress_rpc.obj' libtool=no @AMDEPBACKSLASH@ | |
858 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
859 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_rpc.obj `if test -f 'regress_rpc.c'; then $(CYGPATH_W) 'regress_rpc.c'; else $(CYGPATH_W) '$(srcdir)/regress_rpc.c'; fi` | |
572 | 860 | |
573 | 861 | regress-regress.gen.o: regress.gen.c |
574 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.gen.o -MD -MP -MF $(DEPDIR)/regress-regress.gen.Tpo -c -o regress-regress.gen.o `test -f 'regress.gen.c' || echo '$(srcdir)/'`regress.gen.c | |
575 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress.gen.Tpo $(DEPDIR)/regress-regress.gen.Po | |
576 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress.gen.c' object='regress-regress.gen.o' libtool=no @AMDEPBACKSLASH@ | |
577 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
578 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.gen.o `test -f 'regress.gen.c' || echo '$(srcdir)/'`regress.gen.c | |
862 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.gen.o -MD -MP -MF $(DEPDIR)/regress-regress.gen.Tpo -c -o regress-regress.gen.o `test -f 'regress.gen.c' || echo '$(srcdir)/'`regress.gen.c | |
863 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress.gen.Tpo $(DEPDIR)/regress-regress.gen.Po | |
864 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress.gen.c' object='regress-regress.gen.o' libtool=no @AMDEPBACKSLASH@ | |
865 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
866 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.gen.o `test -f 'regress.gen.c' || echo '$(srcdir)/'`regress.gen.c | |
579 | 867 | |
580 | 868 | regress-regress.gen.obj: regress.gen.c |
581 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.gen.obj -MD -MP -MF $(DEPDIR)/regress-regress.gen.Tpo -c -o regress-regress.gen.obj `if test -f 'regress.gen.c'; then $(CYGPATH_W) 'regress.gen.c'; else $(CYGPATH_W) '$(srcdir)/regress.gen.c'; fi` | |
582 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress.gen.Tpo $(DEPDIR)/regress-regress.gen.Po | |
583 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress.gen.c' object='regress-regress.gen.obj' libtool=no @AMDEPBACKSLASH@ | |
584 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
585 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.gen.obj `if test -f 'regress.gen.c'; then $(CYGPATH_W) 'regress.gen.c'; else $(CYGPATH_W) '$(srcdir)/regress.gen.c'; fi` | |
869 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress.gen.obj -MD -MP -MF $(DEPDIR)/regress-regress.gen.Tpo -c -o regress-regress.gen.obj `if test -f 'regress.gen.c'; then $(CYGPATH_W) 'regress.gen.c'; else $(CYGPATH_W) '$(srcdir)/regress.gen.c'; fi` | |
870 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress.gen.Tpo $(DEPDIR)/regress-regress.gen.Po | |
871 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress.gen.c' object='regress-regress.gen.obj' libtool=no @AMDEPBACKSLASH@ | |
872 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
873 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress.gen.obj `if test -f 'regress.gen.c'; then $(CYGPATH_W) 'regress.gen.c'; else $(CYGPATH_W) '$(srcdir)/regress.gen.c'; fi` | |
586 | 874 | |
587 | 875 | regress-regress_et.o: regress_et.c |
588 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_et.o -MD -MP -MF $(DEPDIR)/regress-regress_et.Tpo -c -o regress-regress_et.o `test -f 'regress_et.c' || echo '$(srcdir)/'`regress_et.c | |
589 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_et.Tpo $(DEPDIR)/regress-regress_et.Po | |
590 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_et.c' object='regress-regress_et.o' libtool=no @AMDEPBACKSLASH@ | |
591 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
592 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_et.o `test -f 'regress_et.c' || echo '$(srcdir)/'`regress_et.c | |
876 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_et.o -MD -MP -MF $(DEPDIR)/regress-regress_et.Tpo -c -o regress-regress_et.o `test -f 'regress_et.c' || echo '$(srcdir)/'`regress_et.c | |
877 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_et.Tpo $(DEPDIR)/regress-regress_et.Po | |
878 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_et.c' object='regress-regress_et.o' libtool=no @AMDEPBACKSLASH@ | |
879 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
880 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_et.o `test -f 'regress_et.c' || echo '$(srcdir)/'`regress_et.c | |
593 | 881 | |
594 | 882 | regress-regress_et.obj: regress_et.c |
595 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_et.obj -MD -MP -MF $(DEPDIR)/regress-regress_et.Tpo -c -o regress-regress_et.obj `if test -f 'regress_et.c'; then $(CYGPATH_W) 'regress_et.c'; else $(CYGPATH_W) '$(srcdir)/regress_et.c'; fi` | |
596 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_et.Tpo $(DEPDIR)/regress-regress_et.Po | |
597 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_et.c' object='regress-regress_et.obj' libtool=no @AMDEPBACKSLASH@ | |
598 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
599 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_et.obj `if test -f 'regress_et.c'; then $(CYGPATH_W) 'regress_et.c'; else $(CYGPATH_W) '$(srcdir)/regress_et.c'; fi` | |
883 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_et.obj -MD -MP -MF $(DEPDIR)/regress-regress_et.Tpo -c -o regress-regress_et.obj `if test -f 'regress_et.c'; then $(CYGPATH_W) 'regress_et.c'; else $(CYGPATH_W) '$(srcdir)/regress_et.c'; fi` | |
884 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_et.Tpo $(DEPDIR)/regress-regress_et.Po | |
885 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_et.c' object='regress-regress_et.obj' libtool=no @AMDEPBACKSLASH@ | |
886 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
887 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_et.obj `if test -f 'regress_et.c'; then $(CYGPATH_W) 'regress_et.c'; else $(CYGPATH_W) '$(srcdir)/regress_et.c'; fi` | |
600 | 888 | |
601 | 889 | regress-regress_bufferevent.o: regress_bufferevent.c |
602 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_bufferevent.o -MD -MP -MF $(DEPDIR)/regress-regress_bufferevent.Tpo -c -o regress-regress_bufferevent.o `test -f 'regress_bufferevent.c' || echo '$(srcdir)/'`regress_bufferevent.c | |
603 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_bufferevent.Tpo $(DEPDIR)/regress-regress_bufferevent.Po | |
604 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_bufferevent.c' object='regress-regress_bufferevent.o' libtool=no @AMDEPBACKSLASH@ | |
605 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
606 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_bufferevent.o `test -f 'regress_bufferevent.c' || echo '$(srcdir)/'`regress_bufferevent.c | |
890 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_bufferevent.o -MD -MP -MF $(DEPDIR)/regress-regress_bufferevent.Tpo -c -o regress-regress_bufferevent.o `test -f 'regress_bufferevent.c' || echo '$(srcdir)/'`regress_bufferevent.c | |
891 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_bufferevent.Tpo $(DEPDIR)/regress-regress_bufferevent.Po | |
892 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_bufferevent.c' object='regress-regress_bufferevent.o' libtool=no @AMDEPBACKSLASH@ | |
893 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
894 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_bufferevent.o `test -f 'regress_bufferevent.c' || echo '$(srcdir)/'`regress_bufferevent.c | |
607 | 895 | |
608 | 896 | regress-regress_bufferevent.obj: regress_bufferevent.c |
609 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_bufferevent.obj -MD -MP -MF $(DEPDIR)/regress-regress_bufferevent.Tpo -c -o regress-regress_bufferevent.obj `if test -f 'regress_bufferevent.c'; then $(CYGPATH_W) 'regress_bufferevent.c'; else $(CYGPATH_W) '$(srcdir)/regress_bufferevent.c'; fi` | |
610 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_bufferevent.Tpo $(DEPDIR)/regress-regress_bufferevent.Po | |
611 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_bufferevent.c' object='regress-regress_bufferevent.obj' libtool=no @AMDEPBACKSLASH@ | |
612 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
613 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_bufferevent.obj `if test -f 'regress_bufferevent.c'; then $(CYGPATH_W) 'regress_bufferevent.c'; else $(CYGPATH_W) '$(srcdir)/regress_bufferevent.c'; fi` | |
897 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_bufferevent.obj -MD -MP -MF $(DEPDIR)/regress-regress_bufferevent.Tpo -c -o regress-regress_bufferevent.obj `if test -f 'regress_bufferevent.c'; then $(CYGPATH_W) 'regress_bufferevent.c'; else $(CYGPATH_W) '$(srcdir)/regress_bufferevent.c'; fi` | |
898 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_bufferevent.Tpo $(DEPDIR)/regress-regress_bufferevent.Po | |
899 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_bufferevent.c' object='regress-regress_bufferevent.obj' libtool=no @AMDEPBACKSLASH@ | |
900 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
901 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_bufferevent.obj `if test -f 'regress_bufferevent.c'; then $(CYGPATH_W) 'regress_bufferevent.c'; else $(CYGPATH_W) '$(srcdir)/regress_bufferevent.c'; fi` | |
614 | 902 | |
615 | 903 | regress-regress_listener.o: regress_listener.c |
616 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_listener.o -MD -MP -MF $(DEPDIR)/regress-regress_listener.Tpo -c -o regress-regress_listener.o `test -f 'regress_listener.c' || echo '$(srcdir)/'`regress_listener.c | |
617 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_listener.Tpo $(DEPDIR)/regress-regress_listener.Po | |
618 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_listener.c' object='regress-regress_listener.o' libtool=no @AMDEPBACKSLASH@ | |
619 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
620 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_listener.o `test -f 'regress_listener.c' || echo '$(srcdir)/'`regress_listener.c | |
904 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_listener.o -MD -MP -MF $(DEPDIR)/regress-regress_listener.Tpo -c -o regress-regress_listener.o `test -f 'regress_listener.c' || echo '$(srcdir)/'`regress_listener.c | |
905 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_listener.Tpo $(DEPDIR)/regress-regress_listener.Po | |
906 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_listener.c' object='regress-regress_listener.o' libtool=no @AMDEPBACKSLASH@ | |
907 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
908 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_listener.o `test -f 'regress_listener.c' || echo '$(srcdir)/'`regress_listener.c | |
621 | 909 | |
622 | 910 | regress-regress_listener.obj: regress_listener.c |
623 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_listener.obj -MD -MP -MF $(DEPDIR)/regress-regress_listener.Tpo -c -o regress-regress_listener.obj `if test -f 'regress_listener.c'; then $(CYGPATH_W) 'regress_listener.c'; else $(CYGPATH_W) '$(srcdir)/regress_listener.c'; fi` | |
624 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_listener.Tpo $(DEPDIR)/regress-regress_listener.Po | |
625 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_listener.c' object='regress-regress_listener.obj' libtool=no @AMDEPBACKSLASH@ | |
626 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
627 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_listener.obj `if test -f 'regress_listener.c'; then $(CYGPATH_W) 'regress_listener.c'; else $(CYGPATH_W) '$(srcdir)/regress_listener.c'; fi` | |
911 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_listener.obj -MD -MP -MF $(DEPDIR)/regress-regress_listener.Tpo -c -o regress-regress_listener.obj `if test -f 'regress_listener.c'; then $(CYGPATH_W) 'regress_listener.c'; else $(CYGPATH_W) '$(srcdir)/regress_listener.c'; fi` | |
912 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_listener.Tpo $(DEPDIR)/regress-regress_listener.Po | |
913 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_listener.c' object='regress-regress_listener.obj' libtool=no @AMDEPBACKSLASH@ | |
914 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
915 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_listener.obj `if test -f 'regress_listener.c'; then $(CYGPATH_W) 'regress_listener.c'; else $(CYGPATH_W) '$(srcdir)/regress_listener.c'; fi` | |
628 | 916 | |
629 | 917 | regress-regress_util.o: regress_util.c |
630 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_util.o -MD -MP -MF $(DEPDIR)/regress-regress_util.Tpo -c -o regress-regress_util.o `test -f 'regress_util.c' || echo '$(srcdir)/'`regress_util.c | |
631 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_util.Tpo $(DEPDIR)/regress-regress_util.Po | |
632 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_util.c' object='regress-regress_util.o' libtool=no @AMDEPBACKSLASH@ | |
633 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
634 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_util.o `test -f 'regress_util.c' || echo '$(srcdir)/'`regress_util.c | |
918 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_util.o -MD -MP -MF $(DEPDIR)/regress-regress_util.Tpo -c -o regress-regress_util.o `test -f 'regress_util.c' || echo '$(srcdir)/'`regress_util.c | |
919 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_util.Tpo $(DEPDIR)/regress-regress_util.Po | |
920 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_util.c' object='regress-regress_util.o' libtool=no @AMDEPBACKSLASH@ | |
921 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
922 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_util.o `test -f 'regress_util.c' || echo '$(srcdir)/'`regress_util.c | |
635 | 923 | |
636 | 924 | regress-regress_util.obj: regress_util.c |
637 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_util.obj -MD -MP -MF $(DEPDIR)/regress-regress_util.Tpo -c -o regress-regress_util.obj `if test -f 'regress_util.c'; then $(CYGPATH_W) 'regress_util.c'; else $(CYGPATH_W) '$(srcdir)/regress_util.c'; fi` | |
638 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_util.Tpo $(DEPDIR)/regress-regress_util.Po | |
639 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_util.c' object='regress-regress_util.obj' libtool=no @AMDEPBACKSLASH@ | |
640 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
641 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_util.obj `if test -f 'regress_util.c'; then $(CYGPATH_W) 'regress_util.c'; else $(CYGPATH_W) '$(srcdir)/regress_util.c'; fi` | |
925 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_util.obj -MD -MP -MF $(DEPDIR)/regress-regress_util.Tpo -c -o regress-regress_util.obj `if test -f 'regress_util.c'; then $(CYGPATH_W) 'regress_util.c'; else $(CYGPATH_W) '$(srcdir)/regress_util.c'; fi` | |
926 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_util.Tpo $(DEPDIR)/regress-regress_util.Po | |
927 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_util.c' object='regress-regress_util.obj' libtool=no @AMDEPBACKSLASH@ | |
928 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
929 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_util.obj `if test -f 'regress_util.c'; then $(CYGPATH_W) 'regress_util.c'; else $(CYGPATH_W) '$(srcdir)/regress_util.c'; fi` | |
642 | 930 | |
643 | 931 | regress-tinytest.o: tinytest.c |
644 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-tinytest.o -MD -MP -MF $(DEPDIR)/regress-tinytest.Tpo -c -o regress-tinytest.o `test -f 'tinytest.c' || echo '$(srcdir)/'`tinytest.c | |
645 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-tinytest.Tpo $(DEPDIR)/regress-tinytest.Po | |
646 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tinytest.c' object='regress-tinytest.o' libtool=no @AMDEPBACKSLASH@ | |
647 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
648 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-tinytest.o `test -f 'tinytest.c' || echo '$(srcdir)/'`tinytest.c | |
932 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-tinytest.o -MD -MP -MF $(DEPDIR)/regress-tinytest.Tpo -c -o regress-tinytest.o `test -f 'tinytest.c' || echo '$(srcdir)/'`tinytest.c | |
933 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-tinytest.Tpo $(DEPDIR)/regress-tinytest.Po | |
934 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tinytest.c' object='regress-tinytest.o' libtool=no @AMDEPBACKSLASH@ | |
935 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
936 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-tinytest.o `test -f 'tinytest.c' || echo '$(srcdir)/'`tinytest.c | |
649 | 937 | |
650 | 938 | regress-tinytest.obj: tinytest.c |
651 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-tinytest.obj -MD -MP -MF $(DEPDIR)/regress-tinytest.Tpo -c -o regress-tinytest.obj `if test -f 'tinytest.c'; then $(CYGPATH_W) 'tinytest.c'; else $(CYGPATH_W) '$(srcdir)/tinytest.c'; fi` | |
652 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-tinytest.Tpo $(DEPDIR)/regress-tinytest.Po | |
653 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tinytest.c' object='regress-tinytest.obj' libtool=no @AMDEPBACKSLASH@ | |
654 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
655 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-tinytest.obj `if test -f 'tinytest.c'; then $(CYGPATH_W) 'tinytest.c'; else $(CYGPATH_W) '$(srcdir)/tinytest.c'; fi` | |
939 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-tinytest.obj -MD -MP -MF $(DEPDIR)/regress-tinytest.Tpo -c -o regress-tinytest.obj `if test -f 'tinytest.c'; then $(CYGPATH_W) 'tinytest.c'; else $(CYGPATH_W) '$(srcdir)/tinytest.c'; fi` | |
940 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-tinytest.Tpo $(DEPDIR)/regress-tinytest.Po | |
941 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tinytest.c' object='regress-tinytest.obj' libtool=no @AMDEPBACKSLASH@ | |
942 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
943 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-tinytest.obj `if test -f 'tinytest.c'; then $(CYGPATH_W) 'tinytest.c'; else $(CYGPATH_W) '$(srcdir)/tinytest.c'; fi` | |
656 | 944 | |
657 | 945 | regress-regress_main.o: regress_main.c |
658 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_main.o -MD -MP -MF $(DEPDIR)/regress-regress_main.Tpo -c -o regress-regress_main.o `test -f 'regress_main.c' || echo '$(srcdir)/'`regress_main.c | |
659 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_main.Tpo $(DEPDIR)/regress-regress_main.Po | |
660 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_main.c' object='regress-regress_main.o' libtool=no @AMDEPBACKSLASH@ | |
661 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
662 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_main.o `test -f 'regress_main.c' || echo '$(srcdir)/'`regress_main.c | |
946 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_main.o -MD -MP -MF $(DEPDIR)/regress-regress_main.Tpo -c -o regress-regress_main.o `test -f 'regress_main.c' || echo '$(srcdir)/'`regress_main.c | |
947 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_main.Tpo $(DEPDIR)/regress-regress_main.Po | |
948 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_main.c' object='regress-regress_main.o' libtool=no @AMDEPBACKSLASH@ | |
949 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
950 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_main.o `test -f 'regress_main.c' || echo '$(srcdir)/'`regress_main.c | |
663 | 951 | |
664 | 952 | regress-regress_main.obj: regress_main.c |
665 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_main.obj -MD -MP -MF $(DEPDIR)/regress-regress_main.Tpo -c -o regress-regress_main.obj `if test -f 'regress_main.c'; then $(CYGPATH_W) 'regress_main.c'; else $(CYGPATH_W) '$(srcdir)/regress_main.c'; fi` | |
666 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_main.Tpo $(DEPDIR)/regress-regress_main.Po | |
667 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_main.c' object='regress-regress_main.obj' libtool=no @AMDEPBACKSLASH@ | |
668 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
669 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_main.obj `if test -f 'regress_main.c'; then $(CYGPATH_W) 'regress_main.c'; else $(CYGPATH_W) '$(srcdir)/regress_main.c'; fi` | |
953 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_main.obj -MD -MP -MF $(DEPDIR)/regress-regress_main.Tpo -c -o regress-regress_main.obj `if test -f 'regress_main.c'; then $(CYGPATH_W) 'regress_main.c'; else $(CYGPATH_W) '$(srcdir)/regress_main.c'; fi` | |
954 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_main.Tpo $(DEPDIR)/regress-regress_main.Po | |
955 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_main.c' object='regress-regress_main.obj' libtool=no @AMDEPBACKSLASH@ | |
956 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
957 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_main.obj `if test -f 'regress_main.c'; then $(CYGPATH_W) 'regress_main.c'; else $(CYGPATH_W) '$(srcdir)/regress_main.c'; fi` | |
670 | 958 | |
671 | 959 | regress-regress_minheap.o: regress_minheap.c |
672 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_minheap.o -MD -MP -MF $(DEPDIR)/regress-regress_minheap.Tpo -c -o regress-regress_minheap.o `test -f 'regress_minheap.c' || echo '$(srcdir)/'`regress_minheap.c | |
673 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_minheap.Tpo $(DEPDIR)/regress-regress_minheap.Po | |
674 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_minheap.c' object='regress-regress_minheap.o' libtool=no @AMDEPBACKSLASH@ | |
675 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
676 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_minheap.o `test -f 'regress_minheap.c' || echo '$(srcdir)/'`regress_minheap.c | |
960 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_minheap.o -MD -MP -MF $(DEPDIR)/regress-regress_minheap.Tpo -c -o regress-regress_minheap.o `test -f 'regress_minheap.c' || echo '$(srcdir)/'`regress_minheap.c | |
961 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_minheap.Tpo $(DEPDIR)/regress-regress_minheap.Po | |
962 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_minheap.c' object='regress-regress_minheap.o' libtool=no @AMDEPBACKSLASH@ | |
963 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
964 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_minheap.o `test -f 'regress_minheap.c' || echo '$(srcdir)/'`regress_minheap.c | |
677 | 965 | |
678 | 966 | regress-regress_minheap.obj: regress_minheap.c |
679 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_minheap.obj -MD -MP -MF $(DEPDIR)/regress-regress_minheap.Tpo -c -o regress-regress_minheap.obj `if test -f 'regress_minheap.c'; then $(CYGPATH_W) 'regress_minheap.c'; else $(CYGPATH_W) '$(srcdir)/regress_minheap.c'; fi` | |
680 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_minheap.Tpo $(DEPDIR)/regress-regress_minheap.Po | |
681 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_minheap.c' object='regress-regress_minheap.obj' libtool=no @AMDEPBACKSLASH@ | |
682 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
683 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_minheap.obj `if test -f 'regress_minheap.c'; then $(CYGPATH_W) 'regress_minheap.c'; else $(CYGPATH_W) '$(srcdir)/regress_minheap.c'; fi` | |
967 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_minheap.obj -MD -MP -MF $(DEPDIR)/regress-regress_minheap.Tpo -c -o regress-regress_minheap.obj `if test -f 'regress_minheap.c'; then $(CYGPATH_W) 'regress_minheap.c'; else $(CYGPATH_W) '$(srcdir)/regress_minheap.c'; fi` | |
968 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_minheap.Tpo $(DEPDIR)/regress-regress_minheap.Po | |
969 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_minheap.c' object='regress-regress_minheap.obj' libtool=no @AMDEPBACKSLASH@ | |
970 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
971 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_minheap.obj `if test -f 'regress_minheap.c'; then $(CYGPATH_W) 'regress_minheap.c'; else $(CYGPATH_W) '$(srcdir)/regress_minheap.c'; fi` | |
684 | 972 | |
685 | 973 | regress-regress_thread.o: regress_thread.c |
686 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_thread.o -MD -MP -MF $(DEPDIR)/regress-regress_thread.Tpo -c -o regress-regress_thread.o `test -f 'regress_thread.c' || echo '$(srcdir)/'`regress_thread.c | |
687 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_thread.Tpo $(DEPDIR)/regress-regress_thread.Po | |
688 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_thread.c' object='regress-regress_thread.o' libtool=no @AMDEPBACKSLASH@ | |
689 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
690 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_thread.o `test -f 'regress_thread.c' || echo '$(srcdir)/'`regress_thread.c | |
974 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_thread.o -MD -MP -MF $(DEPDIR)/regress-regress_thread.Tpo -c -o regress-regress_thread.o `test -f 'regress_thread.c' || echo '$(srcdir)/'`regress_thread.c | |
975 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_thread.Tpo $(DEPDIR)/regress-regress_thread.Po | |
976 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_thread.c' object='regress-regress_thread.o' libtool=no @AMDEPBACKSLASH@ | |
977 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
978 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_thread.o `test -f 'regress_thread.c' || echo '$(srcdir)/'`regress_thread.c | |
691 | 979 | |
692 | 980 | regress-regress_thread.obj: regress_thread.c |
693 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_thread.obj -MD -MP -MF $(DEPDIR)/regress-regress_thread.Tpo -c -o regress-regress_thread.obj `if test -f 'regress_thread.c'; then $(CYGPATH_W) 'regress_thread.c'; else $(CYGPATH_W) '$(srcdir)/regress_thread.c'; fi` | |
694 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_thread.Tpo $(DEPDIR)/regress-regress_thread.Po | |
695 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_thread.c' object='regress-regress_thread.obj' libtool=no @AMDEPBACKSLASH@ | |
696 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
697 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_thread.obj `if test -f 'regress_thread.c'; then $(CYGPATH_W) 'regress_thread.c'; else $(CYGPATH_W) '$(srcdir)/regress_thread.c'; fi` | |
981 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_thread.obj -MD -MP -MF $(DEPDIR)/regress-regress_thread.Tpo -c -o regress-regress_thread.obj `if test -f 'regress_thread.c'; then $(CYGPATH_W) 'regress_thread.c'; else $(CYGPATH_W) '$(srcdir)/regress_thread.c'; fi` | |
982 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_thread.Tpo $(DEPDIR)/regress-regress_thread.Po | |
983 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_thread.c' object='regress-regress_thread.obj' libtool=no @AMDEPBACKSLASH@ | |
984 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
985 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_thread.obj `if test -f 'regress_thread.c'; then $(CYGPATH_W) 'regress_thread.c'; else $(CYGPATH_W) '$(srcdir)/regress_thread.c'; fi` | |
698 | 986 | |
699 | 987 | regress-regress_zlib.o: regress_zlib.c |
700 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_zlib.o -MD -MP -MF $(DEPDIR)/regress-regress_zlib.Tpo -c -o regress-regress_zlib.o `test -f 'regress_zlib.c' || echo '$(srcdir)/'`regress_zlib.c | |
701 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_zlib.Tpo $(DEPDIR)/regress-regress_zlib.Po | |
702 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_zlib.c' object='regress-regress_zlib.o' libtool=no @AMDEPBACKSLASH@ | |
703 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
704 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_zlib.o `test -f 'regress_zlib.c' || echo '$(srcdir)/'`regress_zlib.c | |
988 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_zlib.o -MD -MP -MF $(DEPDIR)/regress-regress_zlib.Tpo -c -o regress-regress_zlib.o `test -f 'regress_zlib.c' || echo '$(srcdir)/'`regress_zlib.c | |
989 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_zlib.Tpo $(DEPDIR)/regress-regress_zlib.Po | |
990 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_zlib.c' object='regress-regress_zlib.o' libtool=no @AMDEPBACKSLASH@ | |
991 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
992 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_zlib.o `test -f 'regress_zlib.c' || echo '$(srcdir)/'`regress_zlib.c | |
705 | 993 | |
706 | 994 | regress-regress_zlib.obj: regress_zlib.c |
707 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_zlib.obj -MD -MP -MF $(DEPDIR)/regress-regress_zlib.Tpo -c -o regress-regress_zlib.obj `if test -f 'regress_zlib.c'; then $(CYGPATH_W) 'regress_zlib.c'; else $(CYGPATH_W) '$(srcdir)/regress_zlib.c'; fi` | |
708 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_zlib.Tpo $(DEPDIR)/regress-regress_zlib.Po | |
709 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_zlib.c' object='regress-regress_zlib.obj' libtool=no @AMDEPBACKSLASH@ | |
710 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
711 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_zlib.obj `if test -f 'regress_zlib.c'; then $(CYGPATH_W) 'regress_zlib.c'; else $(CYGPATH_W) '$(srcdir)/regress_zlib.c'; fi` | |
995 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_zlib.obj -MD -MP -MF $(DEPDIR)/regress-regress_zlib.Tpo -c -o regress-regress_zlib.obj `if test -f 'regress_zlib.c'; then $(CYGPATH_W) 'regress_zlib.c'; else $(CYGPATH_W) '$(srcdir)/regress_zlib.c'; fi` | |
996 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_zlib.Tpo $(DEPDIR)/regress-regress_zlib.Po | |
997 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_zlib.c' object='regress-regress_zlib.obj' libtool=no @AMDEPBACKSLASH@ | |
998 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
999 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_zlib.obj `if test -f 'regress_zlib.c'; then $(CYGPATH_W) 'regress_zlib.c'; else $(CYGPATH_W) '$(srcdir)/regress_zlib.c'; fi` | |
712 | 1000 | |
713 | 1001 | regress-regress_iocp.o: regress_iocp.c |
714 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_iocp.o -MD -MP -MF $(DEPDIR)/regress-regress_iocp.Tpo -c -o regress-regress_iocp.o `test -f 'regress_iocp.c' || echo '$(srcdir)/'`regress_iocp.c | |
715 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_iocp.Tpo $(DEPDIR)/regress-regress_iocp.Po | |
716 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_iocp.c' object='regress-regress_iocp.o' libtool=no @AMDEPBACKSLASH@ | |
717 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
718 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_iocp.o `test -f 'regress_iocp.c' || echo '$(srcdir)/'`regress_iocp.c | |
1002 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_iocp.o -MD -MP -MF $(DEPDIR)/regress-regress_iocp.Tpo -c -o regress-regress_iocp.o `test -f 'regress_iocp.c' || echo '$(srcdir)/'`regress_iocp.c | |
1003 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_iocp.Tpo $(DEPDIR)/regress-regress_iocp.Po | |
1004 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_iocp.c' object='regress-regress_iocp.o' libtool=no @AMDEPBACKSLASH@ | |
1005 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1006 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_iocp.o `test -f 'regress_iocp.c' || echo '$(srcdir)/'`regress_iocp.c | |
719 | 1007 | |
720 | 1008 | regress-regress_iocp.obj: regress_iocp.c |
721 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_iocp.obj -MD -MP -MF $(DEPDIR)/regress-regress_iocp.Tpo -c -o regress-regress_iocp.obj `if test -f 'regress_iocp.c'; then $(CYGPATH_W) 'regress_iocp.c'; else $(CYGPATH_W) '$(srcdir)/regress_iocp.c'; fi` | |
722 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_iocp.Tpo $(DEPDIR)/regress-regress_iocp.Po | |
723 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_iocp.c' object='regress-regress_iocp.obj' libtool=no @AMDEPBACKSLASH@ | |
724 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
725 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_iocp.obj `if test -f 'regress_iocp.c'; then $(CYGPATH_W) 'regress_iocp.c'; else $(CYGPATH_W) '$(srcdir)/regress_iocp.c'; fi` | |
1009 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_iocp.obj -MD -MP -MF $(DEPDIR)/regress-regress_iocp.Tpo -c -o regress-regress_iocp.obj `if test -f 'regress_iocp.c'; then $(CYGPATH_W) 'regress_iocp.c'; else $(CYGPATH_W) '$(srcdir)/regress_iocp.c'; fi` | |
1010 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_iocp.Tpo $(DEPDIR)/regress-regress_iocp.Po | |
1011 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_iocp.c' object='regress-regress_iocp.obj' libtool=no @AMDEPBACKSLASH@ | |
1012 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1013 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_iocp.obj `if test -f 'regress_iocp.c'; then $(CYGPATH_W) 'regress_iocp.c'; else $(CYGPATH_W) '$(srcdir)/regress_iocp.c'; fi` | |
726 | 1014 | |
727 | 1015 | regress-regress_ssl.o: regress_ssl.c |
728 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_ssl.o -MD -MP -MF $(DEPDIR)/regress-regress_ssl.Tpo -c -o regress-regress_ssl.o `test -f 'regress_ssl.c' || echo '$(srcdir)/'`regress_ssl.c | |
729 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_ssl.Tpo $(DEPDIR)/regress-regress_ssl.Po | |
730 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_ssl.c' object='regress-regress_ssl.o' libtool=no @AMDEPBACKSLASH@ | |
731 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
732 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_ssl.o `test -f 'regress_ssl.c' || echo '$(srcdir)/'`regress_ssl.c | |
1016 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_ssl.o -MD -MP -MF $(DEPDIR)/regress-regress_ssl.Tpo -c -o regress-regress_ssl.o `test -f 'regress_ssl.c' || echo '$(srcdir)/'`regress_ssl.c | |
1017 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_ssl.Tpo $(DEPDIR)/regress-regress_ssl.Po | |
1018 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_ssl.c' object='regress-regress_ssl.o' libtool=no @AMDEPBACKSLASH@ | |
1019 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1020 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_ssl.o `test -f 'regress_ssl.c' || echo '$(srcdir)/'`regress_ssl.c | |
733 | 1021 | |
734 | 1022 | regress-regress_ssl.obj: regress_ssl.c |
735 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_ssl.obj -MD -MP -MF $(DEPDIR)/regress-regress_ssl.Tpo -c -o regress-regress_ssl.obj `if test -f 'regress_ssl.c'; then $(CYGPATH_W) 'regress_ssl.c'; else $(CYGPATH_W) '$(srcdir)/regress_ssl.c'; fi` | |
736 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/regress-regress_ssl.Tpo $(DEPDIR)/regress-regress_ssl.Po | |
737 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='regress_ssl.c' object='regress-regress_ssl.obj' libtool=no @AMDEPBACKSLASH@ | |
738 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
739 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_ssl.obj `if test -f 'regress_ssl.c'; then $(CYGPATH_W) 'regress_ssl.c'; else $(CYGPATH_W) '$(srcdir)/regress_ssl.c'; fi` | |
1023 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT regress-regress_ssl.obj -MD -MP -MF $(DEPDIR)/regress-regress_ssl.Tpo -c -o regress-regress_ssl.obj `if test -f 'regress_ssl.c'; then $(CYGPATH_W) 'regress_ssl.c'; else $(CYGPATH_W) '$(srcdir)/regress_ssl.c'; fi` | |
1024 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/regress-regress_ssl.Tpo $(DEPDIR)/regress-regress_ssl.Po | |
1025 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='regress_ssl.c' object='regress-regress_ssl.obj' libtool=no @AMDEPBACKSLASH@ | |
1026 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1027 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(regress_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o regress-regress_ssl.obj `if test -f 'regress_ssl.c'; then $(CYGPATH_W) 'regress_ssl.c'; else $(CYGPATH_W) '$(srcdir)/regress_ssl.c'; fi` | |
740 | 1028 | |
741 | 1029 | mostlyclean-libtool: |
742 | 1030 | -rm -f *.lo |
744 | 1032 | clean-libtool: |
745 | 1033 | -rm -rf .libs _libs |
746 | 1034 | |
747 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
748 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
749 | unique=`for i in $$list; do \ | |
750 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
751 | done | \ | |
752 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
753 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
754 | mkid -fID $$unique | |
755 | tags: TAGS | |
756 | ||
757 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
758 | $(TAGS_FILES) $(LISP) | |
1035 | ID: $(am__tagged_files) | |
1036 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
1037 | tags: tags-am | |
1038 | TAGS: tags | |
1039 | ||
1040 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
759 | 1041 | set x; \ |
760 | 1042 | here=`pwd`; \ |
761 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
762 | unique=`for i in $$list; do \ | |
763 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
764 | done | \ | |
765 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
766 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
1043 | $(am__define_uniq_tagged_files); \ | |
767 | 1044 | shift; \ |
768 | 1045 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
769 | 1046 | test -n "$$unique" || unique=$$empty_fix; \ |
775 | 1052 | $$unique; \ |
776 | 1053 | fi; \ |
777 | 1054 | fi |
778 | ctags: CTAGS | |
779 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
780 | $(TAGS_FILES) $(LISP) | |
781 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
782 | unique=`for i in $$list; do \ | |
783 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
784 | done | \ | |
785 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
786 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
1055 | ctags: ctags-am | |
1056 | ||
1057 | CTAGS: ctags | |
1058 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
1059 | $(am__define_uniq_tagged_files); \ | |
787 | 1060 | test -z "$(CTAGS_ARGS)$$unique" \ |
788 | 1061 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
789 | 1062 | $$unique |
792 | 1065 | here=`$(am__cd) $(top_builddir) && pwd` \ |
793 | 1066 | && $(am__cd) $(top_srcdir) \ |
794 | 1067 | && gtags -i $(GTAGS_ARGS) "$$here" |
1068 | cscopelist: cscopelist-am | |
1069 | ||
1070 | cscopelist-am: $(am__tagged_files) | |
1071 | list='$(am__tagged_files)'; \ | |
1072 | case "$(srcdir)" in \ | |
1073 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
1074 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
1075 | esac; \ | |
1076 | for i in $$list; do \ | |
1077 | if test -f "$$i"; then \ | |
1078 | echo "$(subdir)/$$i"; \ | |
1079 | else \ | |
1080 | echo "$$sdir/$$i"; \ | |
1081 | fi; \ | |
1082 | done >> $(top_builddir)/cscope.files | |
795 | 1083 | |
796 | 1084 | distclean-tags: |
797 | 1085 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
798 | 1086 | |
799 | check-TESTS: $(TESTS) | |
800 | @failed=0; all=0; xfail=0; xpass=0; skip=0; \ | |
801 | srcdir=$(srcdir); export srcdir; \ | |
802 | list=' $(TESTS) '; \ | |
803 | $(am__tty_colors); \ | |
804 | if test -n "$$list"; then \ | |
805 | for tst in $$list; do \ | |
806 | if test -f ./$$tst; then dir=./; \ | |
807 | elif test -f $$tst; then dir=; \ | |
808 | else dir="$(srcdir)/"; fi; \ | |
809 | if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ | |
810 | all=`expr $$all + 1`; \ | |
811 | case " $(XFAIL_TESTS) " in \ | |
812 | *[\ \ ]$$tst[\ \ ]*) \ | |
813 | xpass=`expr $$xpass + 1`; \ | |
814 | failed=`expr $$failed + 1`; \ | |
815 | col=$$red; res=XPASS; \ | |
816 | ;; \ | |
817 | *) \ | |
818 | col=$$grn; res=PASS; \ | |
819 | ;; \ | |
820 | esac; \ | |
821 | elif test $$? -ne 77; then \ | |
822 | all=`expr $$all + 1`; \ | |
823 | case " $(XFAIL_TESTS) " in \ | |
824 | *[\ \ ]$$tst[\ \ ]*) \ | |
825 | xfail=`expr $$xfail + 1`; \ | |
826 | col=$$lgn; res=XFAIL; \ | |
827 | ;; \ | |
828 | *) \ | |
829 | failed=`expr $$failed + 1`; \ | |
830 | col=$$red; res=FAIL; \ | |
831 | ;; \ | |
832 | esac; \ | |
1087 | # Recover from deleted '.trs' file; this should ensure that | |
1088 | # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create | |
1089 | # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells | |
1090 | # to avoid problems with "make -n". | |
1091 | .log.trs: | |
1092 | rm -f $< $@ | |
1093 | $(MAKE) $(AM_MAKEFLAGS) $< | |
1094 | ||
1095 | # Leading 'am--fnord' is there to ensure the list of targets does not | |
1096 | # expand to empty, as could happen e.g. with make check TESTS=''. | |
1097 | am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) | |
1098 | am--force-recheck: | |
1099 | @: | |
1100 | ||
1101 | $(TEST_SUITE_LOG): $(TEST_LOGS) | |
1102 | @$(am__set_TESTS_bases); \ | |
1103 | am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ | |
1104 | redo_bases=`for i in $$bases; do \ | |
1105 | am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ | |
1106 | done`; \ | |
1107 | if test -n "$$redo_bases"; then \ | |
1108 | redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ | |
1109 | redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ | |
1110 | if $(am__make_dryrun); then :; else \ | |
1111 | rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ | |
1112 | fi; \ | |
1113 | fi; \ | |
1114 | if test -n "$$am__remaking_logs"; then \ | |
1115 | echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ | |
1116 | "recursion detected" >&2; \ | |
1117 | else \ | |
1118 | am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ | |
1119 | fi; \ | |
1120 | if $(am__make_dryrun); then :; else \ | |
1121 | st=0; \ | |
1122 | errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ | |
1123 | for i in $$redo_bases; do \ | |
1124 | test -f $$i.trs && test -r $$i.trs \ | |
1125 | || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ | |
1126 | test -f $$i.log && test -r $$i.log \ | |
1127 | || { echo "$$errmsg $$i.log" >&2; st=1; }; \ | |
1128 | done; \ | |
1129 | test $$st -eq 0 || exit 1; \ | |
1130 | fi | |
1131 | @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ | |
1132 | ws='[ ]'; \ | |
1133 | results=`for b in $$bases; do echo $$b.trs; done`; \ | |
1134 | test -n "$$results" || results=/dev/null; \ | |
1135 | all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ | |
1136 | pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ | |
1137 | fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ | |
1138 | skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ | |
1139 | xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ | |
1140 | xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ | |
1141 | error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ | |
1142 | if test `expr $$fail + $$xpass + $$error` -eq 0; then \ | |
1143 | success=true; \ | |
1144 | else \ | |
1145 | success=false; \ | |
1146 | fi; \ | |
1147 | br='==================='; br=$$br$$br$$br$$br; \ | |
1148 | result_count () \ | |
1149 | { \ | |
1150 | if test x"$$1" = x"--maybe-color"; then \ | |
1151 | maybe_colorize=yes; \ | |
1152 | elif test x"$$1" = x"--no-color"; then \ | |
1153 | maybe_colorize=no; \ | |
833 | 1154 | else \ |
834 | skip=`expr $$skip + 1`; \ | |
835 | col=$$blu; res=SKIP; \ | |
1155 | echo "$@: invalid 'result_count' usage" >&2; exit 4; \ | |
836 | 1156 | fi; \ |
837 | echo "$${col}$$res$${std}: $$tst"; \ | |
838 | done; \ | |
839 | if test "$$all" -eq 1; then \ | |
840 | tests="test"; \ | |
841 | All=""; \ | |
842 | else \ | |
843 | tests="tests"; \ | |
844 | All="All "; \ | |
845 | fi; \ | |
846 | if test "$$failed" -eq 0; then \ | |
847 | if test "$$xfail" -eq 0; then \ | |
848 | banner="$$All$$all $$tests passed"; \ | |
1157 | shift; \ | |
1158 | desc=$$1 count=$$2; \ | |
1159 | if test $$maybe_colorize = yes && test $$count -gt 0; then \ | |
1160 | color_start=$$3 color_end=$$std; \ | |
849 | 1161 | else \ |
850 | if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ | |
851 | banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ | |
1162 | color_start= color_end=; \ | |
852 | 1163 | fi; \ |
853 | else \ | |
854 | if test "$$xpass" -eq 0; then \ | |
855 | banner="$$failed of $$all $$tests failed"; \ | |
856 | else \ | |
857 | if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ | |
858 | banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ | |
859 | fi; \ | |
860 | fi; \ | |
861 | dashes="$$banner"; \ | |
862 | skipped=""; \ | |
863 | if test "$$skip" -ne 0; then \ | |
864 | if test "$$skip" -eq 1; then \ | |
865 | skipped="($$skip test was not run)"; \ | |
866 | else \ | |
867 | skipped="($$skip tests were not run)"; \ | |
868 | fi; \ | |
869 | test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ | |
870 | dashes="$$skipped"; \ | |
871 | fi; \ | |
872 | report=""; \ | |
873 | if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ | |
874 | report="Please report to $(PACKAGE_BUGREPORT)"; \ | |
875 | test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ | |
876 | dashes="$$report"; \ | |
877 | fi; \ | |
878 | dashes=`echo "$$dashes" | sed s/./=/g`; \ | |
879 | if test "$$failed" -eq 0; then \ | |
880 | col="$$grn"; \ | |
881 | else \ | |
882 | col="$$red"; \ | |
883 | fi; \ | |
884 | echo "$${col}$$dashes$${std}"; \ | |
885 | echo "$${col}$$banner$${std}"; \ | |
886 | test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \ | |
887 | test -z "$$report" || echo "$${col}$$report$${std}"; \ | |
888 | echo "$${col}$$dashes$${std}"; \ | |
889 | test "$$failed" -eq 0; \ | |
890 | else :; fi | |
1164 | echo "$${color_start}# $$desc $$count$${color_end}"; \ | |
1165 | }; \ | |
1166 | create_testsuite_report () \ | |
1167 | { \ | |
1168 | result_count $$1 "TOTAL:" $$all "$$brg"; \ | |
1169 | result_count $$1 "PASS: " $$pass "$$grn"; \ | |
1170 | result_count $$1 "SKIP: " $$skip "$$blu"; \ | |
1171 | result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ | |
1172 | result_count $$1 "FAIL: " $$fail "$$red"; \ | |
1173 | result_count $$1 "XPASS:" $$xpass "$$red"; \ | |
1174 | result_count $$1 "ERROR:" $$error "$$mgn"; \ | |
1175 | }; \ | |
1176 | { \ | |
1177 | echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ | |
1178 | $(am__rst_title); \ | |
1179 | create_testsuite_report --no-color; \ | |
1180 | echo; \ | |
1181 | echo ".. contents:: :depth: 2"; \ | |
1182 | echo; \ | |
1183 | for b in $$bases; do echo $$b; done \ | |
1184 | | $(am__create_global_log); \ | |
1185 | } >$(TEST_SUITE_LOG).tmp || exit 1; \ | |
1186 | mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ | |
1187 | if $$success; then \ | |
1188 | col="$$grn"; \ | |
1189 | else \ | |
1190 | col="$$red"; \ | |
1191 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ | |
1192 | fi; \ | |
1193 | echo "$${col}$$br$${std}"; \ | |
1194 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
1195 | echo "$${col}$$br$${std}"; \ | |
1196 | create_testsuite_report --maybe-color; \ | |
1197 | echo "$$col$$br$$std"; \ | |
1198 | if $$success; then :; else \ | |
1199 | echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ | |
1200 | if test -n "$(PACKAGE_BUGREPORT)"; then \ | |
1201 | echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ | |
1202 | fi; \ | |
1203 | echo "$$col$$br$$std"; \ | |
1204 | fi; \ | |
1205 | $$success || exit 1 | |
1206 | ||
1207 | check-TESTS: | |
1208 | @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list | |
1209 | @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list | |
1210 | @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
1211 | @set +e; $(am__set_TESTS_bases); \ | |
1212 | log_list=`for i in $$bases; do echo $$i.log; done`; \ | |
1213 | trs_list=`for i in $$bases; do echo $$i.trs; done`; \ | |
1214 | log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ | |
1215 | $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ | |
1216 | exit $$?; | |
1217 | recheck: all | |
1218 | @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
1219 | @set +e; $(am__set_TESTS_bases); \ | |
1220 | bases=`for i in $$bases; do echo $$i; done \ | |
1221 | | $(am__list_recheck_tests)` || exit 1; \ | |
1222 | log_list=`for i in $$bases; do echo $$i.log; done`; \ | |
1223 | log_list=`echo $$log_list`; \ | |
1224 | $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ | |
1225 | am__force_recheck=am--force-recheck \ | |
1226 | TEST_LOGS="$$log_list"; \ | |
1227 | exit $$? | |
1228 | test-script.sh.log: test-script.sh | |
1229 | @p='test-script.sh'; \ | |
1230 | b='test-script.sh'; \ | |
1231 | $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ | |
1232 | --log-file $$b.log --trs-file $$b.trs \ | |
1233 | $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ | |
1234 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
1235 | .test.log: | |
1236 | @p='$<'; \ | |
1237 | $(am__set_b); \ | |
1238 | $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ | |
1239 | --log-file $$b.log --trs-file $$b.trs \ | |
1240 | $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ | |
1241 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
1242 | @am__EXEEXT_TRUE@.test$(EXEEXT).log: | |
1243 | @am__EXEEXT_TRUE@ @p='$<'; \ | |
1244 | @am__EXEEXT_TRUE@ $(am__set_b); \ | |
1245 | @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ | |
1246 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ | |
1247 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ | |
1248 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) | |
891 | 1249 | |
892 | 1250 | distdir: $(DISTFILES) |
893 | 1251 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
946 | 1304 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ |
947 | 1305 | fi |
948 | 1306 | mostlyclean-generic: |
1307 | -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) | |
1308 | -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) | |
1309 | -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
949 | 1310 | |
950 | 1311 | clean-generic: |
951 | 1312 | -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) |
1032 | 1393 | |
1033 | 1394 | .MAKE: all check check-am install install-am install-strip |
1034 | 1395 | |
1035 | .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ | |
1036 | clean-generic clean-libtool clean-noinstPROGRAMS ctags \ | |
1037 | distclean distclean-compile distclean-generic \ | |
1396 | .PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \ | |
1397 | clean-generic clean-libtool clean-noinstPROGRAMS cscopelist-am \ | |
1398 | ctags ctags-am distclean distclean-compile distclean-generic \ | |
1038 | 1399 | distclean-libtool distclean-tags distdir dvi dvi-am html \ |
1039 | 1400 | html-am info info-am install install-am install-data \ |
1040 | 1401 | install-data-am install-dvi install-dvi-am install-exec \ |
1044 | 1405 | installcheck-am installdirs maintainer-clean \ |
1045 | 1406 | maintainer-clean-generic mostlyclean mostlyclean-compile \ |
1046 | 1407 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ |
1047 | tags uninstall uninstall-am | |
1048 | ||
1408 | recheck tags tags-am uninstall uninstall-am | |
1409 | ||
1410 | ||
1411 | test-script.sh: test.sh | |
1412 | cp $< $@ | |
1049 | 1413 | |
1050 | 1414 | regress.gen.c regress.gen.h: rpcgen-attempted |
1051 | 1415 |
3012 | 3012 | static void |
3013 | 3013 | http_connection_fail_done(struct evhttp_request *req, void *arg) |
3014 | 3014 | { |
3015 | struct evhttp_connection *evcon = arg; | |
3016 | struct event_base *base = evhttp_connection_get_base(evcon); | |
3017 | ||
3015 | 3018 | /* An ENETUNREACH error results in an unrecoverable |
3016 | 3019 | * evhttp_connection error (see evhttp_connection_fail()). The |
3017 | 3020 | * connection will be reset, and the user will be notified with a NULL |
3018 | 3021 | * req parameter. */ |
3019 | 3022 | tt_assert(!req); |
3020 | 3023 | |
3024 | evhttp_connection_free(evcon); | |
3025 | ||
3021 | 3026 | test_ok = 1; |
3022 | 3027 | |
3023 | 3028 | end: |
3024 | event_base_loopexit(arg, NULL); | |
3029 | event_base_loopexit(base, NULL); | |
3025 | 3030 | } |
3026 | 3031 | |
3027 | 3032 | /* Test unrecoverable evhttp_connection errors by generating an ENETUNREACH |
3052 | 3057 | * server using our make request method. |
3053 | 3058 | */ |
3054 | 3059 | |
3055 | req = evhttp_request_new(http_connection_fail_done, data->base); | |
3060 | req = evhttp_request_new(http_connection_fail_done, evcon); | |
3056 | 3061 | tt_assert(req); |
3057 | 3062 | |
3058 | 3063 | if (evhttp_make_request(evcon, req, EVHTTP_REQ_GET, "/") == -1) { |
3064 | 3069 | tt_int_op(test_ok, ==, 1); |
3065 | 3070 | |
3066 | 3071 | end: |
3067 | if (evcon) | |
3068 | evhttp_connection_free(evcon); | |
3072 | ; | |
3069 | 3073 | } |
3070 | 3074 | |
3071 | 3075 | static void |
0 | 0 | #! /bin/sh |
1 | # Common stub for a few missing GNU programs while installing. | |
2 | ||
3 | scriptversion=2012-01-06.13; # UTC | |
4 | ||
5 | # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, | |
6 | # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. | |
7 | # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |
1 | # Common wrapper for a few potentially missing GNU programs. | |
2 | ||
3 | scriptversion=2012-06-26.16; # UTC | |
4 | ||
5 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
6 | # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |
8 | 7 | |
9 | 8 | # This program is free software; you can redistribute it and/or modify |
10 | 9 | # it under the terms of the GNU General Public License as published by |
25 | 24 | # the same distribution terms that you use for the rest of that program. |
26 | 25 | |
27 | 26 | if test $# -eq 0; then |
28 | echo 1>&2 "Try \`$0 --help' for more information" | |
27 | echo 1>&2 "Try '$0 --help' for more information" | |
29 | 28 | exit 1 |
30 | 29 | fi |
31 | 30 | |
32 | run=: | |
33 | sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' | |
34 | sed_minuso='s/.* -o \([^ ]*\).*/\1/p' | |
35 | ||
36 | # In the cases where this matters, `missing' is being run in the | |
37 | # srcdir already. | |
38 | if test -f configure.ac; then | |
39 | configure_ac=configure.ac | |
40 | else | |
41 | configure_ac=configure.in | |
42 | fi | |
43 | ||
44 | msg="missing on your system" | |
45 | ||
46 | 31 | case $1 in |
47 | --run) | |
48 | # Try to run requested program, and just exit if it succeeds. | |
49 | run= | |
50 | shift | |
51 | "$@" && exit 0 | |
52 | # Exit code 63 means version mismatch. This often happens | |
53 | # when the user try to use an ancient version of a tool on | |
54 | # a file that requires a minimum version. In this case we | |
55 | # we should proceed has if the program had been absent, or | |
56 | # if --run hadn't been passed. | |
57 | if test $? = 63; then | |
58 | run=: | |
59 | msg="probably too old" | |
60 | fi | |
61 | ;; | |
32 | ||
33 | --is-lightweight) | |
34 | # Used by our autoconf macros to check whether the available missing | |
35 | # script is modern enough. | |
36 | exit 0 | |
37 | ;; | |
38 | ||
39 | --run) | |
40 | # Back-compat with the calling convention used by older automake. | |
41 | shift | |
42 | ;; | |
62 | 43 | |
63 | 44 | -h|--h|--he|--hel|--help) |
64 | 45 | echo "\ |
65 | 46 | $0 [OPTION]... PROGRAM [ARGUMENT]... |
66 | 47 | |
67 | Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | |
68 | error status if there is no known handling for PROGRAM. | |
48 | Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due | |
49 | to PROGRAM being missing or too old. | |
69 | 50 | |
70 | 51 | Options: |
71 | 52 | -h, --help display this help and exit |
72 | 53 | -v, --version output version information and exit |
73 | --run try to run the given command, and emulate it if it fails | |
74 | 54 | |
75 | 55 | Supported PROGRAM values: |
76 | aclocal touch file \`aclocal.m4' | |
77 | autoconf touch file \`configure' | |
78 | autoheader touch file \`config.h.in' | |
79 | autom4te touch the output file, or create a stub one | |
80 | automake touch all \`Makefile.in' files | |
81 | bison create \`y.tab.[ch]', if possible, from existing .[ch] | |
82 | flex create \`lex.yy.c', if possible, from existing .c | |
83 | help2man touch the output file | |
84 | lex create \`lex.yy.c', if possible, from existing .c | |
85 | makeinfo touch the output file | |
86 | yacc create \`y.tab.[ch]', if possible, from existing .[ch] | |
87 | ||
88 | Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and | |
89 | \`g' are ignored when checking the name. | |
56 | aclocal autoconf autoheader autom4te automake makeinfo | |
57 | bison yacc flex lex help2man | |
58 | ||
59 | Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and | |
60 | 'g' are ignored when checking the name. | |
90 | 61 | |
91 | 62 | Send bug reports to <bug-automake@gnu.org>." |
92 | 63 | exit $? |
98 | 69 | ;; |
99 | 70 | |
100 | 71 | -*) |
101 | echo 1>&2 "$0: Unknown \`$1' option" | |
102 | echo 1>&2 "Try \`$0 --help' for more information" | |
72 | echo 1>&2 "$0: unknown '$1' option" | |
73 | echo 1>&2 "Try '$0 --help' for more information" | |
103 | 74 | exit 1 |
104 | 75 | ;; |
105 | 76 | |
106 | 77 | esac |
107 | 78 | |
108 | # normalize program name to check for. | |
109 | program=`echo "$1" | sed ' | |
110 | s/^gnu-//; t | |
111 | s/^gnu//; t | |
112 | s/^g//; t'` | |
113 | ||
114 | # Now exit if we have it, but it failed. Also exit now if we | |
115 | # don't have it and --version was passed (most likely to detect | |
116 | # the program). This is about non-GNU programs, so use $1 not | |
117 | # $program. | |
118 | case $1 in | |
119 | lex*|yacc*) | |
120 | # Not GNU programs, they don't have --version. | |
121 | ;; | |
122 | ||
123 | *) | |
124 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | |
125 | # We have it, but it failed. | |
126 | exit 1 | |
127 | elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | |
128 | # Could not run --version or --help. This is probably someone | |
129 | # running `$TOOL --version' or `$TOOL --help' to check whether | |
130 | # $TOOL exists and not knowing $TOOL uses missing. | |
131 | exit 1 | |
132 | fi | |
133 | ;; | |
134 | esac | |
135 | ||
136 | # If it does not exist, or fails to run (possibly an outdated version), | |
137 | # try to emulate it. | |
138 | case $program in | |
139 | aclocal*) | |
140 | echo 1>&2 "\ | |
141 | WARNING: \`$1' is $msg. You should only need it if | |
142 | you modified \`acinclude.m4' or \`${configure_ac}'. You might want | |
143 | to install the \`Automake' and \`Perl' packages. Grab them from | |
144 | any GNU archive site." | |
145 | touch aclocal.m4 | |
146 | ;; | |
147 | ||
148 | autoconf*) | |
149 | echo 1>&2 "\ | |
150 | WARNING: \`$1' is $msg. You should only need it if | |
151 | you modified \`${configure_ac}'. You might want to install the | |
152 | \`Autoconf' and \`GNU m4' packages. Grab them from any GNU | |
153 | archive site." | |
154 | touch configure | |
155 | ;; | |
156 | ||
157 | autoheader*) | |
158 | echo 1>&2 "\ | |
159 | WARNING: \`$1' is $msg. You should only need it if | |
160 | you modified \`acconfig.h' or \`${configure_ac}'. You might want | |
161 | to install the \`Autoconf' and \`GNU m4' packages. Grab them | |
162 | from any GNU archive site." | |
163 | files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` | |
164 | test -z "$files" && files="config.h" | |
165 | touch_files= | |
166 | for f in $files; do | |
167 | case $f in | |
168 | *:*) touch_files="$touch_files "`echo "$f" | | |
169 | sed -e 's/^[^:]*://' -e 's/:.*//'`;; | |
170 | *) touch_files="$touch_files $f.in";; | |
171 | esac | |
172 | done | |
173 | touch $touch_files | |
174 | ;; | |
175 | ||
176 | automake*) | |
177 | echo 1>&2 "\ | |
178 | WARNING: \`$1' is $msg. You should only need it if | |
179 | you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. | |
180 | You might want to install the \`Automake' and \`Perl' packages. | |
181 | Grab them from any GNU archive site." | |
182 | find . -type f -name Makefile.am -print | | |
183 | sed 's/\.am$/.in/' | | |
184 | while read f; do touch "$f"; done | |
185 | ;; | |
186 | ||
187 | autom4te*) | |
188 | echo 1>&2 "\ | |
189 | WARNING: \`$1' is needed, but is $msg. | |
190 | You might have modified some files without having the | |
191 | proper tools for further handling them. | |
192 | You can get \`$1' as part of \`Autoconf' from any GNU | |
193 | archive site." | |
194 | ||
195 | file=`echo "$*" | sed -n "$sed_output"` | |
196 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
197 | if test -f "$file"; then | |
198 | touch $file | |
199 | else | |
200 | test -z "$file" || exec >$file | |
201 | echo "#! /bin/sh" | |
202 | echo "# Created by GNU Automake missing as a replacement of" | |
203 | echo "# $ $@" | |
204 | echo "exit 0" | |
205 | chmod +x $file | |
206 | exit 1 | |
207 | fi | |
208 | ;; | |
209 | ||
210 | bison*|yacc*) | |
211 | echo 1>&2 "\ | |
212 | WARNING: \`$1' $msg. You should only need it if | |
213 | you modified a \`.y' file. You may need the \`Bison' package | |
214 | in order for those modifications to take effect. You can get | |
215 | \`Bison' from any GNU archive site." | |
216 | rm -f y.tab.c y.tab.h | |
217 | if test $# -ne 1; then | |
218 | eval LASTARG=\${$#} | |
219 | case $LASTARG in | |
220 | *.y) | |
221 | SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` | |
222 | if test -f "$SRCFILE"; then | |
223 | cp "$SRCFILE" y.tab.c | |
224 | fi | |
225 | SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` | |
226 | if test -f "$SRCFILE"; then | |
227 | cp "$SRCFILE" y.tab.h | |
228 | fi | |
229 | ;; | |
230 | esac | |
231 | fi | |
232 | if test ! -f y.tab.h; then | |
233 | echo >y.tab.h | |
234 | fi | |
235 | if test ! -f y.tab.c; then | |
236 | echo 'main() { return 0; }' >y.tab.c | |
237 | fi | |
238 | ;; | |
239 | ||
240 | lex*|flex*) | |
241 | echo 1>&2 "\ | |
242 | WARNING: \`$1' is $msg. You should only need it if | |
243 | you modified a \`.l' file. You may need the \`Flex' package | |
244 | in order for those modifications to take effect. You can get | |
245 | \`Flex' from any GNU archive site." | |
246 | rm -f lex.yy.c | |
247 | if test $# -ne 1; then | |
248 | eval LASTARG=\${$#} | |
249 | case $LASTARG in | |
250 | *.l) | |
251 | SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` | |
252 | if test -f "$SRCFILE"; then | |
253 | cp "$SRCFILE" lex.yy.c | |
254 | fi | |
255 | ;; | |
256 | esac | |
257 | fi | |
258 | if test ! -f lex.yy.c; then | |
259 | echo 'main() { return 0; }' >lex.yy.c | |
260 | fi | |
261 | ;; | |
262 | ||
263 | help2man*) | |
264 | echo 1>&2 "\ | |
265 | WARNING: \`$1' is $msg. You should only need it if | |
266 | you modified a dependency of a manual page. You may need the | |
267 | \`Help2man' package in order for those modifications to take | |
268 | effect. You can get \`Help2man' from any GNU archive site." | |
269 | ||
270 | file=`echo "$*" | sed -n "$sed_output"` | |
271 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
272 | if test -f "$file"; then | |
273 | touch $file | |
274 | else | |
275 | test -z "$file" || exec >$file | |
276 | echo ".ab help2man is required to generate this page" | |
277 | exit $? | |
278 | fi | |
279 | ;; | |
280 | ||
281 | makeinfo*) | |
282 | echo 1>&2 "\ | |
283 | WARNING: \`$1' is $msg. You should only need it if | |
284 | you modified a \`.texi' or \`.texinfo' file, or any other file | |
285 | indirectly affecting the aspect of the manual. The spurious | |
286 | call might also be the consequence of using a buggy \`make' (AIX, | |
287 | DU, IRIX). You might want to install the \`Texinfo' package or | |
288 | the \`GNU make' package. Grab either from any GNU archive site." | |
289 | # The file to touch is that specified with -o ... | |
290 | file=`echo "$*" | sed -n "$sed_output"` | |
291 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
292 | if test -z "$file"; then | |
293 | # ... or it is the one specified with @setfilename ... | |
294 | infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` | |
295 | file=`sed -n ' | |
296 | /^@setfilename/{ | |
297 | s/.* \([^ ]*\) *$/\1/ | |
298 | p | |
299 | q | |
300 | }' $infile` | |
301 | # ... or it is derived from the source name (dir/f.texi becomes f.info) | |
302 | test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info | |
303 | fi | |
304 | # If the file does not exist, the user really needs makeinfo; | |
305 | # let's fail without touching anything. | |
306 | test -f $file || exit 1 | |
307 | touch $file | |
308 | ;; | |
309 | ||
310 | *) | |
311 | echo 1>&2 "\ | |
312 | WARNING: \`$1' is needed, and is $msg. | |
313 | You might have modified some files without having the | |
314 | proper tools for further handling them. Check the \`README' file, | |
315 | it often tells you about the needed prerequisites for installing | |
316 | this package. You may also peek at any GNU archive site, in case | |
317 | some other package would contain this missing \`$1' program." | |
318 | exit 1 | |
319 | ;; | |
320 | esac | |
321 | ||
322 | 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 | |
323 | 207 | |
324 | 208 | # Local variables: |
325 | 209 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
0 | # Makefile.in generated by automake 1.11.6 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.3 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
5 | # Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
16 | 15 | |
17 | 16 | |
18 | 17 | VPATH = @srcdir@ |
19 | am__make_dryrun = \ | |
20 | { \ | |
21 | 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 \ | |
22 | 31 | case $$MAKEFLAGS in \ |
23 | 32 | *\\[\ \ ]*) \ |
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;; \ | |
33 | bs=\\; \ | |
34 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
35 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
33 | 36 | esac; \ |
34 | test $$am__dry = yes; \ | |
35 | } | |
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)) | |
36 | 63 | pkgdatadir = $(datadir)/@PACKAGE@ |
37 | 64 | pkgincludedir = $(includedir)/@PACKAGE@ |
38 | 65 | pkglibdir = $(libdir)/@PACKAGE@ |
52 | 79 | build_triplet = @build@ |
53 | 80 | host_triplet = @host@ |
54 | 81 | subdir = src |
55 | DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \ | |
56 | $(srcdir)/Makefile.in | |
82 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
83 | $(top_srcdir)/depcomp $(include_HEADERS) | |
57 | 84 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
58 | 85 | am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \ |
59 | 86 | $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ |
81 | 108 | AM_V_lt = $(am__v_lt_@AM_V@) |
82 | 109 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
83 | 110 | am__v_lt_0 = --silent |
111 | am__v_lt_1 = | |
84 | 112 | libcommon_daemon_lib_la_DEPENDENCIES = compat/libcompat.la |
85 | 113 | am_libcommon_daemon_lib_la_OBJECTS = log.lo marshal.lo ctl.lo \ |
86 | 114 | lldpd-structs.lo |
87 | 115 | libcommon_daemon_lib_la_OBJECTS = \ |
88 | 116 | $(am_libcommon_daemon_lib_la_OBJECTS) |
117 | AM_V_P = $(am__v_P_@AM_V@) | |
118 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
119 | am__v_P_0 = false | |
120 | am__v_P_1 = : | |
121 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
122 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
123 | am__v_GEN_0 = @echo " GEN " $@; | |
124 | am__v_GEN_1 = | |
125 | AM_V_at = $(am__v_at_@AM_V@) | |
126 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
127 | am__v_at_0 = @ | |
128 | am__v_at_1 = | |
89 | 129 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
90 | 130 | depcomp = $(SHELL) $(top_srcdir)/depcomp |
91 | 131 | am__depfiles_maybe = depfiles |
98 | 138 | $(AM_CFLAGS) $(CFLAGS) |
99 | 139 | AM_V_CC = $(am__v_CC_@AM_V@) |
100 | 140 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) |
101 | am__v_CC_0 = @echo " CC " $@; | |
102 | AM_V_at = $(am__v_at_@AM_V@) | |
103 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
104 | am__v_at_0 = @ | |
141 | am__v_CC_0 = @echo " CC " $@; | |
142 | am__v_CC_1 = | |
105 | 143 | CCLD = $(CC) |
106 | 144 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
107 | 145 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
108 | 146 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
109 | 147 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
110 | 148 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) |
111 | am__v_CCLD_0 = @echo " CCLD " $@; | |
112 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
113 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
114 | am__v_GEN_0 = @echo " GEN " $@; | |
149 | am__v_CCLD_0 = @echo " CCLD " $@; | |
150 | am__v_CCLD_1 = | |
115 | 151 | SOURCES = $(libcommon_daemon_client_la_SOURCES) \ |
116 | 152 | $(libcommon_daemon_lib_la_SOURCES) |
117 | 153 | DIST_SOURCES = $(libcommon_daemon_client_la_SOURCES) \ |
150 | 186 | } |
151 | 187 | am__installdirs = "$(DESTDIR)$(includedir)" |
152 | 188 | HEADERS = $(include_HEADERS) |
189 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
190 | # Read a list of newline-separated strings from the standard input, | |
191 | # and print each of them once, without duplicates. Input order is | |
192 | # *not* preserved. | |
193 | am__uniquify_input = $(AWK) '\ | |
194 | BEGIN { nonempty = 0; } \ | |
195 | { items[$$0] = 1; nonempty = 1; } \ | |
196 | END { if (nonempty) { for (i in items) print i; }; } \ | |
197 | ' | |
198 | # Make sure the list of sources is unique. This is necessary because, | |
199 | # e.g., the same source file might be shared among _SOURCES variables | |
200 | # for different programs/libraries. | |
201 | am__define_uniq_tagged_files = \ | |
202 | list='$(am__tagged_files)'; \ | |
203 | unique=`for i in $$list; do \ | |
204 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
205 | done | $(am__uniquify_input)` | |
153 | 206 | ETAGS = etags |
154 | 207 | CTAGS = ctags |
155 | 208 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
364 | 417 | |
365 | 418 | clean-noinstLTLIBRARIES: |
366 | 419 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) |
367 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | |
368 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | |
369 | test "$$dir" != "$$p" || dir=.; \ | |
370 | echo "rm -f \"$${dir}/so_locations\""; \ | |
371 | rm -f "$${dir}/so_locations"; \ | |
372 | done | |
420 | @list='$(noinst_LTLIBRARIES)'; \ | |
421 | locs=`for p in $$list; do echo $$p; done | \ | |
422 | sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ | |
423 | sort -u`; \ | |
424 | test -z "$$locs" || { \ | |
425 | echo rm -f $${locs}; \ | |
426 | rm -f $${locs}; \ | |
427 | } | |
428 | ||
373 | 429 | libcommon-daemon-client.la: $(libcommon_daemon_client_la_OBJECTS) $(libcommon_daemon_client_la_DEPENDENCIES) $(EXTRA_libcommon_daemon_client_la_DEPENDENCIES) |
374 | 430 | $(AM_V_CCLD)$(LINK) $(libcommon_daemon_client_la_OBJECTS) $(libcommon_daemon_client_la_LIBADD) $(LIBS) |
431 | ||
375 | 432 | libcommon-daemon-lib.la: $(libcommon_daemon_lib_la_OBJECTS) $(libcommon_daemon_lib_la_DEPENDENCIES) $(EXTRA_libcommon_daemon_lib_la_DEPENDENCIES) |
376 | 433 | $(AM_V_CCLD)$(LINK) $(libcommon_daemon_lib_la_OBJECTS) $(libcommon_daemon_lib_la_LIBADD) $(LIBS) |
377 | 434 | |
434 | 491 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ |
435 | 492 | dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) |
436 | 493 | |
437 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
438 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
439 | unique=`for i in $$list; do \ | |
440 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
441 | done | \ | |
442 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
443 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
444 | mkid -fID $$unique | |
445 | tags: TAGS | |
446 | ||
447 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
448 | $(TAGS_FILES) $(LISP) | |
494 | ID: $(am__tagged_files) | |
495 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
496 | tags: tags-am | |
497 | TAGS: tags | |
498 | ||
499 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
449 | 500 | set x; \ |
450 | 501 | here=`pwd`; \ |
451 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
452 | unique=`for i in $$list; do \ | |
453 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
454 | done | \ | |
455 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
456 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
502 | $(am__define_uniq_tagged_files); \ | |
457 | 503 | shift; \ |
458 | 504 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
459 | 505 | test -n "$$unique" || unique=$$empty_fix; \ |
465 | 511 | $$unique; \ |
466 | 512 | fi; \ |
467 | 513 | fi |
468 | ctags: CTAGS | |
469 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
470 | $(TAGS_FILES) $(LISP) | |
471 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
472 | unique=`for i in $$list; do \ | |
473 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
474 | done | \ | |
475 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
476 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
514 | ctags: ctags-am | |
515 | ||
516 | CTAGS: ctags | |
517 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
518 | $(am__define_uniq_tagged_files); \ | |
477 | 519 | test -z "$(CTAGS_ARGS)$$unique" \ |
478 | 520 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
479 | 521 | $$unique |
482 | 524 | here=`$(am__cd) $(top_builddir) && pwd` \ |
483 | 525 | && $(am__cd) $(top_srcdir) \ |
484 | 526 | && gtags -i $(GTAGS_ARGS) "$$here" |
527 | cscopelist: cscopelist-am | |
528 | ||
529 | cscopelist-am: $(am__tagged_files) | |
530 | list='$(am__tagged_files)'; \ | |
531 | case "$(srcdir)" in \ | |
532 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
533 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
534 | esac; \ | |
535 | for i in $$list; do \ | |
536 | if test -f "$$i"; then \ | |
537 | echo "$(subdir)/$$i"; \ | |
538 | else \ | |
539 | echo "$$sdir/$$i"; \ | |
540 | fi; \ | |
541 | done >> $(top_builddir)/cscope.files | |
485 | 542 | |
486 | 543 | distclean-tags: |
487 | 544 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
626 | 683 | |
627 | 684 | .MAKE: install-am install-strip |
628 | 685 | |
629 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | |
630 | clean-libtool clean-noinstLTLIBRARIES ctags distclean \ | |
631 | distclean-compile distclean-generic distclean-libtool \ | |
632 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | |
633 | install install-am install-data install-data-am install-dvi \ | |
634 | install-dvi-am install-exec install-exec-am install-html \ | |
635 | install-html-am install-includeHEADERS install-info \ | |
636 | install-info-am install-man install-pdf install-pdf-am \ | |
637 | install-ps install-ps-am install-strip installcheck \ | |
638 | installcheck-am installdirs maintainer-clean \ | |
639 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | |
640 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | |
641 | tags uninstall uninstall-am uninstall-includeHEADERS | |
686 | .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ | |
687 | clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ | |
688 | ctags-am distclean distclean-compile distclean-generic \ | |
689 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | |
690 | html-am info info-am install install-am install-data \ | |
691 | install-data-am install-dvi install-dvi-am install-exec \ | |
692 | install-exec-am install-html install-html-am \ | |
693 | install-includeHEADERS install-info install-info-am \ | |
694 | install-man install-pdf install-pdf-am install-ps \ | |
695 | install-ps-am install-strip installcheck installcheck-am \ | |
696 | installdirs maintainer-clean maintainer-clean-generic \ | |
697 | mostlyclean mostlyclean-compile mostlyclean-generic \ | |
698 | mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ | |
699 | uninstall-am uninstall-includeHEADERS | |
642 | 700 | |
643 | 701 | |
644 | 702 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
10 | 10 | |
11 | 11 | lldpcli_SOURCES = client.h lldpcli.c display.c \ |
12 | 12 | conf.c conf-med.c conf-dot3.c conf-power.c \ |
13 | conf-lldp.c conf-system.c \ | |
13 | 14 | commands.c show.c \ |
14 | 15 | misc.c tokenizer.c \ |
15 | 16 | writer.h text_writer.c kv_writer.c |
0 | # Makefile.in generated by automake 1.11.6 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.3 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
5 | # Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
15 | 14 | @SET_MAKE@ |
16 | 15 | |
17 | 16 | VPATH = @srcdir@ |
18 | am__make_dryrun = \ | |
19 | { \ | |
20 | am__dry=no; \ | |
17 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
18 | am__make_running_with_option = \ | |
19 | case $${target_option-} in \ | |
20 | ?) ;; \ | |
21 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
22 | "target option '$${target_option-}' specified" >&2; \ | |
23 | exit 1;; \ | |
24 | esac; \ | |
25 | has_opt=no; \ | |
26 | sane_makeflags=$$MAKEFLAGS; \ | |
27 | if $(am__is_gnu_make); then \ | |
28 | sane_makeflags=$$MFLAGS; \ | |
29 | else \ | |
21 | 30 | case $$MAKEFLAGS in \ |
22 | 31 | *\\[\ \ ]*) \ |
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;; \ | |
32 | bs=\\; \ | |
33 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
34 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
32 | 35 | esac; \ |
33 | test $$am__dry = yes; \ | |
34 | } | |
36 | fi; \ | |
37 | skip_next=no; \ | |
38 | strip_trailopt () \ | |
39 | { \ | |
40 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
41 | }; \ | |
42 | for flg in $$sane_makeflags; do \ | |
43 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
44 | case $$flg in \ | |
45 | *=*|--*) continue;; \ | |
46 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
47 | -*I?*) strip_trailopt 'I';; \ | |
48 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
49 | -*O?*) strip_trailopt 'O';; \ | |
50 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
51 | -*l?*) strip_trailopt 'l';; \ | |
52 | -[dEDm]) skip_next=yes;; \ | |
53 | -[JT]) skip_next=yes;; \ | |
54 | esac; \ | |
55 | case $$flg in \ | |
56 | *$$target_option*) has_opt=yes; break;; \ | |
57 | esac; \ | |
58 | done; \ | |
59 | test $$has_opt = yes | |
60 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
61 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
35 | 62 | pkgdatadir = $(datadir)/@PACKAGE@ |
36 | 63 | pkgincludedir = $(includedir)/@PACKAGE@ |
37 | 64 | pkglibdir = $(libdir)/@PACKAGE@ |
58 | 85 | @USE_JSON_TRUE@am__append_5 = @JANSSON_CFLAGS@ |
59 | 86 | @USE_JSON_TRUE@am__append_6 = @JANSSON_LIBS@ |
60 | 87 | subdir = src/client |
61 | DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \ | |
62 | $(srcdir)/Makefile.in | |
88 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
89 | $(top_srcdir)/depcomp $(dist_man_MANS) | |
63 | 90 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
64 | 91 | am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \ |
65 | 92 | $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ |
82 | 109 | am__installdirs = "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man8dir)" |
83 | 110 | PROGRAMS = $(sbin_PROGRAMS) |
84 | 111 | am__lldpcli_SOURCES_DIST = client.h lldpcli.c display.c conf.c \ |
85 | conf-med.c conf-dot3.c conf-power.c commands.c show.c misc.c \ | |
86 | tokenizer.c writer.h text_writer.c kv_writer.c xml_writer.c \ | |
87 | json_writer.c | |
112 | conf-med.c conf-dot3.c conf-power.c conf-lldp.c conf-system.c \ | |
113 | commands.c show.c misc.c tokenizer.c writer.h text_writer.c \ | |
114 | kv_writer.c xml_writer.c json_writer.c | |
88 | 115 | @USE_XML_TRUE@am__objects_1 = lldpcli-xml_writer.$(OBJEXT) |
89 | 116 | @USE_JSON_TRUE@am__objects_2 = lldpcli-json_writer.$(OBJEXT) |
90 | 117 | am_lldpcli_OBJECTS = lldpcli-lldpcli.$(OBJEXT) \ |
91 | 118 | lldpcli-display.$(OBJEXT) lldpcli-conf.$(OBJEXT) \ |
92 | 119 | lldpcli-conf-med.$(OBJEXT) lldpcli-conf-dot3.$(OBJEXT) \ |
93 | lldpcli-conf-power.$(OBJEXT) lldpcli-commands.$(OBJEXT) \ | |
120 | lldpcli-conf-power.$(OBJEXT) lldpcli-conf-lldp.$(OBJEXT) \ | |
121 | lldpcli-conf-system.$(OBJEXT) lldpcli-commands.$(OBJEXT) \ | |
94 | 122 | lldpcli-show.$(OBJEXT) lldpcli-misc.$(OBJEXT) \ |
95 | 123 | lldpcli-tokenizer.$(OBJEXT) lldpcli-text_writer.$(OBJEXT) \ |
96 | 124 | lldpcli-kv_writer.$(OBJEXT) $(am__objects_1) $(am__objects_2) |
102 | 130 | AM_V_lt = $(am__v_lt_@AM_V@) |
103 | 131 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
104 | 132 | am__v_lt_0 = --silent |
133 | am__v_lt_1 = | |
105 | 134 | lldpcli_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
106 | 135 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(lldpcli_CFLAGS) \ |
107 | 136 | $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
137 | AM_V_P = $(am__v_P_@AM_V@) | |
138 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
139 | am__v_P_0 = false | |
140 | am__v_P_1 = : | |
141 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
142 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
143 | am__v_GEN_0 = @echo " GEN " $@; | |
144 | am__v_GEN_1 = | |
145 | AM_V_at = $(am__v_at_@AM_V@) | |
146 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
147 | am__v_at_0 = @ | |
148 | am__v_at_1 = | |
108 | 149 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
109 | 150 | depcomp = $(SHELL) $(top_srcdir)/depcomp |
110 | 151 | am__depfiles_maybe = depfiles |
117 | 158 | $(AM_CFLAGS) $(CFLAGS) |
118 | 159 | AM_V_CC = $(am__v_CC_@AM_V@) |
119 | 160 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) |
120 | am__v_CC_0 = @echo " CC " $@; | |
121 | AM_V_at = $(am__v_at_@AM_V@) | |
122 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
123 | am__v_at_0 = @ | |
161 | am__v_CC_0 = @echo " CC " $@; | |
162 | am__v_CC_1 = | |
124 | 163 | CCLD = $(CC) |
125 | 164 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
126 | 165 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
127 | 166 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
128 | 167 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
129 | 168 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) |
130 | am__v_CCLD_0 = @echo " CCLD " $@; | |
131 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
132 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
133 | am__v_GEN_0 = @echo " GEN " $@; | |
169 | am__v_CCLD_0 = @echo " CCLD " $@; | |
170 | am__v_CCLD_1 = | |
134 | 171 | SOURCES = $(lldpcli_SOURCES) |
135 | 172 | DIST_SOURCES = $(am__lldpcli_SOURCES_DIST) |
136 | 173 | am__can_run_installinfo = \ |
168 | 205 | man8dir = $(mandir)/man8 |
169 | 206 | NROFF = nroff |
170 | 207 | MANS = $(dist_man_MANS) |
208 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
209 | # Read a list of newline-separated strings from the standard input, | |
210 | # and print each of them once, without duplicates. Input order is | |
211 | # *not* preserved. | |
212 | am__uniquify_input = $(AWK) '\ | |
213 | BEGIN { nonempty = 0; } \ | |
214 | { items[$$0] = 1; nonempty = 1; } \ | |
215 | END { if (nonempty) { for (i in items) print i; }; } \ | |
216 | ' | |
217 | # Make sure the list of sources is unique. This is necessary because, | |
218 | # e.g., the same source file might be shared among _SOURCES variables | |
219 | # for different programs/libraries. | |
220 | am__define_uniq_tagged_files = \ | |
221 | list='$(am__tagged_files)'; \ | |
222 | unique=`for i in $$list; do \ | |
223 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
224 | done | $(am__uniquify_input)` | |
171 | 225 | ETAGS = etags |
172 | 226 | CTAGS = ctags |
173 | 227 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
336 | 390 | AM_CFLAGS = -I $(top_srcdir)/include |
337 | 391 | dist_man_MANS = lldpcli.8 lldpctl.8 |
338 | 392 | lldpcli_SOURCES = client.h lldpcli.c display.c conf.c conf-med.c \ |
339 | conf-dot3.c conf-power.c commands.c show.c misc.c tokenizer.c \ | |
340 | writer.h text_writer.c kv_writer.c $(am__append_1) \ | |
341 | $(am__append_4) | |
393 | conf-dot3.c conf-power.c conf-lldp.c conf-system.c commands.c \ | |
394 | show.c misc.c tokenizer.c writer.h text_writer.c kv_writer.c \ | |
395 | $(am__append_1) $(am__append_4) | |
342 | 396 | lldpcli_LDADD = $(top_builddir)/src/libcommon-daemon-client.la \ |
343 | 397 | $(top_builddir)/src/lib/liblldpctl.la @READLINE_LIBS@ \ |
344 | 398 | $(am__append_3) $(am__append_6) |
386 | 440 | fi; \ |
387 | 441 | for p in $$list; do echo "$$p $$p"; done | \ |
388 | 442 | sed 's/$(EXEEXT)$$//' | \ |
389 | while read p p1; do if test -f $$p || test -f $$p1; \ | |
390 | then echo "$$p"; echo "$$p"; else :; fi; \ | |
443 | while read p p1; do if test -f $$p \ | |
444 | || test -f $$p1 \ | |
445 | ; then echo "$$p"; echo "$$p"; else :; fi; \ | |
391 | 446 | done | \ |
392 | sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ | |
447 | sed -e 'p;s,.*/,,;n;h' \ | |
448 | -e 's|.*|.|' \ | |
393 | 449 | -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ |
394 | 450 | sed 'N;N;N;s,\n, ,g' | \ |
395 | 451 | $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ |
410 | 466 | @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ |
411 | 467 | files=`for p in $$list; do echo "$$p"; done | \ |
412 | 468 | sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ |
413 | -e 's/$$/$(EXEEXT)/' `; \ | |
469 | -e 's/$$/$(EXEEXT)/' \ | |
470 | `; \ | |
414 | 471 | test -n "$$list" || exit 0; \ |
415 | 472 | echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \ |
416 | 473 | cd "$(DESTDIR)$(sbindir)" && rm -f $$files |
423 | 480 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ |
424 | 481 | echo " rm -f" $$list; \ |
425 | 482 | rm -f $$list |
483 | ||
426 | 484 | lldpcli$(EXEEXT): $(lldpcli_OBJECTS) $(lldpcli_DEPENDENCIES) $(EXTRA_lldpcli_DEPENDENCIES) |
427 | 485 | @rm -f lldpcli$(EXEEXT) |
428 | 486 | $(AM_V_CCLD)$(lldpcli_LINK) $(lldpcli_OBJECTS) $(lldpcli_LDADD) $(LIBS) |
435 | 493 | |
436 | 494 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-commands.Po@am__quote@ |
437 | 495 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-conf-dot3.Po@am__quote@ |
496 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-conf-lldp.Po@am__quote@ | |
438 | 497 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-conf-med.Po@am__quote@ |
439 | 498 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-conf-power.Po@am__quote@ |
499 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-conf-system.Po@am__quote@ | |
440 | 500 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-conf.Po@am__quote@ |
441 | 501 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-display.Po@am__quote@ |
442 | 502 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lldpcli-json_writer.Po@am__quote@ |
552 | 612 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conf-power.c' object='lldpcli-conf-power.obj' libtool=no @AMDEPBACKSLASH@ |
553 | 613 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
554 | 614 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -c -o lldpcli-conf-power.obj `if test -f 'conf-power.c'; then $(CYGPATH_W) 'conf-power.c'; else $(CYGPATH_W) '$(srcdir)/conf-power.c'; fi` |
615 | ||
616 | lldpcli-conf-lldp.o: conf-lldp.c | |
617 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -MT lldpcli-conf-lldp.o -MD -MP -MF $(DEPDIR)/lldpcli-conf-lldp.Tpo -c -o lldpcli-conf-lldp.o `test -f 'conf-lldp.c' || echo '$(srcdir)/'`conf-lldp.c | |
618 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lldpcli-conf-lldp.Tpo $(DEPDIR)/lldpcli-conf-lldp.Po | |
619 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conf-lldp.c' object='lldpcli-conf-lldp.o' libtool=no @AMDEPBACKSLASH@ | |
620 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
621 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -c -o lldpcli-conf-lldp.o `test -f 'conf-lldp.c' || echo '$(srcdir)/'`conf-lldp.c | |
622 | ||
623 | lldpcli-conf-lldp.obj: conf-lldp.c | |
624 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -MT lldpcli-conf-lldp.obj -MD -MP -MF $(DEPDIR)/lldpcli-conf-lldp.Tpo -c -o lldpcli-conf-lldp.obj `if test -f 'conf-lldp.c'; then $(CYGPATH_W) 'conf-lldp.c'; else $(CYGPATH_W) '$(srcdir)/conf-lldp.c'; fi` | |
625 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lldpcli-conf-lldp.Tpo $(DEPDIR)/lldpcli-conf-lldp.Po | |
626 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conf-lldp.c' object='lldpcli-conf-lldp.obj' libtool=no @AMDEPBACKSLASH@ | |
627 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
628 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -c -o lldpcli-conf-lldp.obj `if test -f 'conf-lldp.c'; then $(CYGPATH_W) 'conf-lldp.c'; else $(CYGPATH_W) '$(srcdir)/conf-lldp.c'; fi` | |
629 | ||
630 | lldpcli-conf-system.o: conf-system.c | |
631 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -MT lldpcli-conf-system.o -MD -MP -MF $(DEPDIR)/lldpcli-conf-system.Tpo -c -o lldpcli-conf-system.o `test -f 'conf-system.c' || echo '$(srcdir)/'`conf-system.c | |
632 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lldpcli-conf-system.Tpo $(DEPDIR)/lldpcli-conf-system.Po | |
633 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conf-system.c' object='lldpcli-conf-system.o' libtool=no @AMDEPBACKSLASH@ | |
634 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
635 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -c -o lldpcli-conf-system.o `test -f 'conf-system.c' || echo '$(srcdir)/'`conf-system.c | |
636 | ||
637 | lldpcli-conf-system.obj: conf-system.c | |
638 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -MT lldpcli-conf-system.obj -MD -MP -MF $(DEPDIR)/lldpcli-conf-system.Tpo -c -o lldpcli-conf-system.obj `if test -f 'conf-system.c'; then $(CYGPATH_W) 'conf-system.c'; else $(CYGPATH_W) '$(srcdir)/conf-system.c'; fi` | |
639 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/lldpcli-conf-system.Tpo $(DEPDIR)/lldpcli-conf-system.Po | |
640 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='conf-system.c' object='lldpcli-conf-system.obj' libtool=no @AMDEPBACKSLASH@ | |
641 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
642 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -c -o lldpcli-conf-system.obj `if test -f 'conf-system.c'; then $(CYGPATH_W) 'conf-system.c'; else $(CYGPATH_W) '$(srcdir)/conf-system.c'; fi` | |
555 | 643 | |
556 | 644 | lldpcli-commands.o: commands.c |
557 | 645 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lldpcli_CFLAGS) $(CFLAGS) -MT lldpcli-commands.o -MD -MP -MF $(DEPDIR)/lldpcli-commands.Tpo -c -o lldpcli-commands.o `test -f 'commands.c' || echo '$(srcdir)/'`commands.c |
714 | 802 | -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ |
715 | 803 | dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir) |
716 | 804 | |
717 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
718 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
719 | unique=`for i in $$list; do \ | |
720 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
721 | done | \ | |
722 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
723 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
724 | mkid -fID $$unique | |
725 | tags: TAGS | |
726 | ||
727 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
728 | $(TAGS_FILES) $(LISP) | |
805 | ID: $(am__tagged_files) | |
806 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
807 | tags: tags-am | |
808 | TAGS: tags | |
809 | ||
810 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
729 | 811 | set x; \ |
730 | 812 | here=`pwd`; \ |
731 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
732 | unique=`for i in $$list; do \ | |
733 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
734 | done | \ | |
735 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
736 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
813 | $(am__define_uniq_tagged_files); \ | |
737 | 814 | shift; \ |
738 | 815 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
739 | 816 | test -n "$$unique" || unique=$$empty_fix; \ |
745 | 822 | $$unique; \ |
746 | 823 | fi; \ |
747 | 824 | fi |
748 | ctags: CTAGS | |
749 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
750 | $(TAGS_FILES) $(LISP) | |
751 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
752 | unique=`for i in $$list; do \ | |
753 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
754 | done | \ | |
755 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
756 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
825 | ctags: ctags-am | |
826 | ||
827 | CTAGS: ctags | |
828 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
829 | $(am__define_uniq_tagged_files); \ | |
757 | 830 | test -z "$(CTAGS_ARGS)$$unique" \ |
758 | 831 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
759 | 832 | $$unique |
762 | 835 | here=`$(am__cd) $(top_builddir) && pwd` \ |
763 | 836 | && $(am__cd) $(top_srcdir) \ |
764 | 837 | && gtags -i $(GTAGS_ARGS) "$$here" |
838 | cscopelist: cscopelist-am | |
839 | ||
840 | cscopelist-am: $(am__tagged_files) | |
841 | list='$(am__tagged_files)'; \ | |
842 | case "$(srcdir)" in \ | |
843 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
844 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
845 | esac; \ | |
846 | for i in $$list; do \ | |
847 | if test -f "$$i"; then \ | |
848 | echo "$(subdir)/$$i"; \ | |
849 | else \ | |
850 | echo "$$sdir/$$i"; \ | |
851 | fi; \ | |
852 | done >> $(top_builddir)/cscope.files | |
765 | 853 | |
766 | 854 | distclean-tags: |
767 | 855 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
768 | 856 | |
769 | 857 | distdir: $(DISTFILES) |
770 | @list='$(MANS)'; if test -n "$$list"; then \ | |
771 | list=`for p in $$list; do \ | |
772 | if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ | |
773 | if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ | |
774 | if test -n "$$list" && \ | |
775 | grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ | |
776 | echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ | |
777 | grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ | |
778 | echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ | |
779 | echo " typically \`make maintainer-clean' will remove them" >&2; \ | |
780 | exit 1; \ | |
781 | else :; fi; \ | |
782 | else :; fi | |
783 | 858 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
784 | 859 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
785 | 860 | list='$(DISTFILES)'; \ |
921 | 996 | |
922 | 997 | .MAKE: install-am install-strip |
923 | 998 | |
924 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | |
925 | clean-libtool clean-sbinPROGRAMS ctags distclean \ | |
926 | distclean-compile distclean-generic distclean-libtool \ | |
927 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | |
928 | install install-am install-data install-data-am install-dvi \ | |
929 | install-dvi-am install-exec install-exec-am install-exec-local \ | |
930 | install-html install-html-am install-info install-info-am \ | |
931 | install-man install-man8 install-pdf install-pdf-am install-ps \ | |
999 | .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ | |
1000 | clean-libtool clean-sbinPROGRAMS cscopelist-am ctags ctags-am \ | |
1001 | distclean distclean-compile distclean-generic \ | |
1002 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | |
1003 | html-am info info-am install install-am install-data \ | |
1004 | install-data-am install-dvi install-dvi-am install-exec \ | |
1005 | install-exec-am install-exec-local install-html \ | |
1006 | install-html-am install-info install-info-am install-man \ | |
1007 | install-man8 install-pdf install-pdf-am install-ps \ | |
932 | 1008 | install-ps-am install-sbinPROGRAMS install-strip installcheck \ |
933 | 1009 | installcheck-am installdirs maintainer-clean \ |
934 | 1010 | maintainer-clean-generic mostlyclean mostlyclean-compile \ |
935 | 1011 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ |
936 | tags uninstall uninstall-am uninstall-local uninstall-man \ | |
937 | uninstall-man8 uninstall-sbinPROGRAMS | |
1012 | tags tags-am uninstall uninstall-am uninstall-local \ | |
1013 | uninstall-man uninstall-man8 uninstall-sbinPROGRAMS | |
938 | 1014 | |
939 | 1015 | |
940 | 1016 | install-exec-local: lldpcli |
123 | 123 | |
124 | 124 | /* conf*.c */ |
125 | 125 | void register_commands_configure(struct cmd_node *); |
126 | void register_commands_configure_system(struct cmd_node *); | |
127 | void register_commands_configure_lldp(struct cmd_node *); | |
126 | 128 | void register_commands_configure_med(struct cmd_node *, struct cmd_node *); |
127 | 129 | void register_commands_configure_dot3(struct cmd_node *); |
128 | 130 | void register_commands_medpow(struct cmd_node *); |
0 | /* -*- mode: c; c-file-style: "openbsd" -*- */ | |
1 | /* | |
2 | * Copyright (c) 2013 Vincent Bernat <bernat@luffy.cx> | |
3 | * | |
4 | * Permission to use, copy, modify, and/or distribute this software for any | |
5 | * purpose with or without fee is hereby granted, provided that the above | |
6 | * copyright notice and this permission notice appear in all copies. | |
7 | * | |
8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
15 | */ | |
16 | ||
17 | #include <unistd.h> | |
18 | #include <string.h> | |
19 | ||
20 | #include "client.h" | |
21 | #include "../log.h" | |
22 | ||
23 | static int | |
24 | cmd_txdelay(struct lldpctl_conn_t *conn, struct writer *w, | |
25 | struct cmd_env *env, void *arg) | |
26 | { | |
27 | log_debug("lldpctl", "set transmit delay"); | |
28 | ||
29 | lldpctl_atom_t *config = lldpctl_get_configuration(conn); | |
30 | if (config == NULL) { | |
31 | log_warnx("lldpctl", "unable to get configuration from lldpd. %s", | |
32 | lldpctl_last_strerror(conn)); | |
33 | return 0; | |
34 | } | |
35 | if (lldpctl_atom_set_str(config, | |
36 | lldpctl_k_config_tx_interval, cmdenv_get(env, "tx-interval")) == NULL) { | |
37 | log_warnx("lldpctl", "unable to set transmit delay. %s", | |
38 | lldpctl_last_strerror(conn)); | |
39 | lldpctl_atom_dec_ref(config); | |
40 | return 0; | |
41 | } | |
42 | log_info("lldpctl", "transmit delay set to new value"); | |
43 | lldpctl_atom_dec_ref(config); | |
44 | return 1; | |
45 | } | |
46 | ||
47 | static int | |
48 | cmd_txhold(struct lldpctl_conn_t *conn, struct writer *w, | |
49 | struct cmd_env *env, void *arg) | |
50 | { | |
51 | log_debug("lldpctl", "set transmit hold"); | |
52 | ||
53 | lldpctl_atom_t *config = lldpctl_get_configuration(conn); | |
54 | if (config == NULL) { | |
55 | log_warnx("lldpctl", "unable to get configuration from lldpd. %s", | |
56 | lldpctl_last_strerror(conn)); | |
57 | return 0; | |
58 | } | |
59 | if (lldpctl_atom_set_str(config, | |
60 | lldpctl_k_config_tx_hold, cmdenv_get(env, "tx-hold")) == NULL) { | |
61 | log_warnx("lldpctl", "unable to set transmit hold. %s", | |
62 | lldpctl_last_strerror(conn)); | |
63 | lldpctl_atom_dec_ref(config); | |
64 | return 0; | |
65 | } | |
66 | log_info("lldpctl", "transmit hold set to new value %s", cmdenv_get(env, "tx-hold")); | |
67 | lldpctl_atom_dec_ref(config); | |
68 | return 1; | |
69 | } | |
70 | ||
71 | /** | |
72 | * Register `configure lldp` commands. | |
73 | * | |
74 | * Those are the commands that are related to the LLDP protocol but not | |
75 | * Dot1/Dot3/MED. Commands not related to LLDP should go in system instead. | |
76 | */ | |
77 | void | |
78 | register_commands_configure_lldp(struct cmd_node *configure) | |
79 | { | |
80 | struct cmd_node *configure_lldp = commands_new( | |
81 | configure, | |
82 | "lldp", "LLDP configuration", | |
83 | NULL, NULL, NULL); | |
84 | ||
85 | commands_new( | |
86 | commands_new( | |
87 | commands_new(configure_lldp, | |
88 | "tx-interval", "Set LLDP transmit delay", | |
89 | cmd_check_no_env, NULL, "ports"), | |
90 | NULL, "LLDP transmit delay in seconds", | |
91 | NULL, cmd_store_env_value, "tx-interval"), | |
92 | NEWLINE, "Set LLDP transmit delay", | |
93 | NULL, cmd_txdelay, NULL); | |
94 | ||
95 | commands_new( | |
96 | commands_new( | |
97 | commands_new(configure_lldp, | |
98 | "tx-hold", "Set LLDP transmit hold", | |
99 | cmd_check_no_env, NULL, "ports"), | |
100 | NULL, "LLDP transmit hold in seconds", | |
101 | NULL, cmd_store_env_value, "tx-hold"), | |
102 | NEWLINE, "Set LLDP transmit hold", | |
103 | NULL, cmd_txhold, NULL); | |
104 | } |
0 | /* -*- mode: c; c-file-style: "openbsd" -*- */ | |
1 | /* | |
2 | * Copyright (c) 2013 Vincent Bernat <bernat@luffy.cx> | |
3 | * | |
4 | * Permission to use, copy, modify, and/or distribute this software for any | |
5 | * purpose with or without fee is hereby granted, provided that the above | |
6 | * copyright notice and this permission notice appear in all copies. | |
7 | * | |
8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
15 | */ | |
16 | ||
17 | #include <unistd.h> | |
18 | #include <string.h> | |
19 | ||
20 | #include "client.h" | |
21 | #include "../log.h" | |
22 | ||
23 | static int | |
24 | cmd_iface_pattern(struct lldpctl_conn_t *conn, struct writer *w, | |
25 | struct cmd_env *env, void *arg) | |
26 | { | |
27 | log_debug("lldpctl", "set iface pattern"); | |
28 | ||
29 | lldpctl_atom_t *config = lldpctl_get_configuration(conn); | |
30 | if (config == NULL) { | |
31 | log_warnx("lldpctl", "unable to get configuration from lldpd. %s", | |
32 | lldpctl_last_strerror(conn)); | |
33 | return 0; | |
34 | } | |
35 | if (lldpctl_atom_set_str(config, | |
36 | lldpctl_k_config_iface_pattern, cmdenv_get(env, "iface-pattern")) == NULL) { | |
37 | log_warnx("lldpctl", "unable to set iface-pattern. %s", | |
38 | lldpctl_last_strerror(conn)); | |
39 | lldpctl_atom_dec_ref(config); | |
40 | return 0; | |
41 | } | |
42 | log_info("lldpctl", "iface-pattern set to new value %s", cmdenv_get(env, "iface-pattern")); | |
43 | lldpctl_atom_dec_ref(config); | |
44 | return 1; | |
45 | } | |
46 | ||
47 | static int | |
48 | cmd_system_description(struct lldpctl_conn_t *conn, struct writer *w, | |
49 | struct cmd_env *env, void *arg) | |
50 | { | |
51 | int platform = 0; | |
52 | const char *value = cmdenv_get(env, "description"); | |
53 | if (!value) { | |
54 | platform = 1; | |
55 | value = cmdenv_get(env, "platform"); | |
56 | } | |
57 | log_debug("lldpctl", "set %s description", platform?"platform":"system"); | |
58 | lldpctl_atom_t *config = lldpctl_get_configuration(conn); | |
59 | if (config == NULL) { | |
60 | log_warnx("lldpctl", "unable to get configuration from lldpd. %s", | |
61 | lldpctl_last_strerror(conn)); | |
62 | return 0; | |
63 | } | |
64 | if (lldpctl_atom_set_str(config, | |
65 | platform?lldpctl_k_config_platform:lldpctl_k_config_description, | |
66 | value) == NULL) { | |
67 | log_warnx("lldpctl", "unable to set description. %s", | |
68 | lldpctl_last_strerror(conn)); | |
69 | lldpctl_atom_dec_ref(config); | |
70 | return 0; | |
71 | } | |
72 | log_info("lldpctl", "description set to new value %s", | |
73 | value); | |
74 | lldpctl_atom_dec_ref(config); | |
75 | return 1; | |
76 | } | |
77 | ||
78 | /** | |
79 | * Register `configure system` commands. | |
80 | * | |
81 | * Those are the commands to configure protocol-independant stuff. | |
82 | */ | |
83 | void | |
84 | register_commands_configure_system(struct cmd_node *configure) | |
85 | { | |
86 | struct cmd_node *configure_system = commands_new( | |
87 | configure, | |
88 | "system", "System configuration", | |
89 | cmd_check_no_env, NULL, "ports"); | |
90 | struct cmd_node *configure_interface = commands_new( | |
91 | configure_system, | |
92 | "interface", "Configure interface related items", | |
93 | NULL, NULL, NULL); | |
94 | ||
95 | commands_new( | |
96 | commands_new( | |
97 | commands_new(configure_system, | |
98 | "description", "Override chassis description", | |
99 | NULL, NULL, NULL), | |
100 | NULL, "Chassis description", | |
101 | NULL, cmd_store_env_value, "description"), | |
102 | NEWLINE, "Override chassis description", | |
103 | NULL, cmd_system_description, NULL); | |
104 | ||
105 | commands_new( | |
106 | commands_new( | |
107 | commands_new(configure_system, | |
108 | "platform", "Override platform description", | |
109 | NULL, NULL, NULL), | |
110 | NULL, "Platform description (CDP)", | |
111 | NULL, cmd_store_env_value, "platform"), | |
112 | NEWLINE, "Override platform description", | |
113 | NULL, cmd_system_description, NULL); | |
114 | ||
115 | commands_new( | |
116 | commands_new( | |
117 | commands_new(configure_interface, | |
118 | "pattern", "Set active interface pattern", | |
119 | NULL, NULL, NULL), | |
120 | NULL, "Interface pattern (comma separated list of wildcards)", | |
121 | NULL, cmd_store_env_value, "iface-pattern"), | |
122 | NEWLINE, "Set active interface pattern", | |
123 | NULL, cmd_iface_pattern, NULL); | |
124 | } |
20 | 20 | #include "client.h" |
21 | 21 | #include "../log.h" |
22 | 22 | |
23 | static int | |
24 | cmd_txdelay(struct lldpctl_conn_t *conn, struct writer *w, | |
25 | struct cmd_env *env, void *arg) | |
26 | { | |
27 | log_debug("lldpctl", "set transmit delay"); | |
28 | ||
29 | lldpctl_atom_t *config = lldpctl_get_configuration(conn); | |
30 | if (config == NULL) { | |
31 | log_warnx("lldpctl", "unable to get configuration from lldpd. %s", | |
32 | lldpctl_last_strerror(conn)); | |
33 | return 0; | |
34 | } | |
35 | if (lldpctl_atom_set_str(config, | |
36 | lldpctl_k_config_tx_interval, cmdenv_get(env, "tx-interval")) == NULL) { | |
37 | log_warnx("lldpctl", "unable to set transmit delay. %s", | |
38 | lldpctl_last_strerror(conn)); | |
39 | lldpctl_atom_dec_ref(config); | |
40 | return 0; | |
41 | } | |
42 | log_info("lldpctl", "transmit delay set to new value"); | |
43 | lldpctl_atom_dec_ref(config); | |
44 | return 1; | |
45 | } | |
46 | ||
47 | /** | |
48 | * Register `configure lldp` commands. | |
49 | */ | |
50 | void | |
51 | register_commands_configure_lldp(struct cmd_node *configure) | |
52 | { | |
53 | struct cmd_node *configure_lldp = commands_new( | |
54 | configure, | |
55 | "lldp", "LLDP configuration", | |
56 | NULL, NULL, NULL); | |
57 | ||
58 | commands_new( | |
59 | commands_new( | |
60 | commands_new(configure_lldp, | |
61 | "tx-interval", "Set LLDP transmit delay", | |
62 | cmd_check_no_env, NULL, "ports"), | |
63 | NULL, "LLDP transmit delay in seconds", | |
64 | NULL, cmd_store_env_value, "tx-interval"), | |
65 | NEWLINE, "Set LLDP transmit delay", | |
66 | NULL, cmd_txdelay, NULL); | |
67 | } | |
68 | ||
69 | 23 | /** |
70 | 24 | * Register `configure` and `no configure` commands. |
71 | 25 | */ |
85 | 39 | cmd_restrict_ports(configure); |
86 | 40 | cmd_restrict_ports(unconfigure); |
87 | 41 | |
88 | register_commands_configure_lldp(configure); | |
89 | register_commands_configure_med(configure, unconfigure); | |
90 | register_commands_configure_dot3(configure); | |
42 | register_commands_configure_system(configure); | |
43 | register_commands_configure_lldp(configure); | |
44 | register_commands_configure_med(configure, unconfigure); | |
45 | register_commands_configure_dot3(configure); | |
91 | 46 | } |
708 | 708 | |
709 | 709 | tag_datatag(w, "tx-delay", "Transmit delay", |
710 | 710 | lldpctl_atom_get_str(configuration, lldpctl_k_config_tx_interval)); |
711 | tag_datatag(w, "tx-hold", "Transmit hold", | |
712 | lldpctl_atom_get_str(configuration, lldpctl_k_config_tx_hold)); | |
711 | 713 | tag_datatag(w, "rx-only", "Receive mode", |
712 | 714 | lldpctl_atom_get_int(configuration, lldpctl_k_config_receiveonly)? |
713 | 715 | "yes":"no"); |
166 | 166 | .Ed |
167 | 167 | |
168 | 168 | .Cd configure |
169 | .Op ports Ar ethX Op ,... | |
169 | .Cd system description Ar description | |
170 | .Bd -ragged -offset XXXXXX | |
171 | Override chassis description with the provided value instead of using | |
172 | kernel name, node name, kernel version, build date and architecture. | |
173 | .Ed | |
174 | ||
175 | .Cd configure | |
176 | .Cd system platform Ar description | |
177 | .Bd -ragged -offset XXXXXX | |
178 | Override platform description with the provided value instead of using | |
179 | kernel name. This value is currently only used for CDP. | |
180 | .Ed | |
181 | ||
182 | .Cd configure | |
183 | .Cd system interface pattern Ar pattern | |
184 | .Bd -ragged -offset XXXXXX | |
185 | Set the pattern of valid interfaces to use. When not set, | |
186 | .Nm lldpd | |
187 | will listen on all available interfaces. This option can use | |
188 | wildcards. Several interfaces can be specified separated by commas. | |
189 | It is also possible to blacklist an interface by suffixing it with an | |
190 | exclamation mark. When an interface is both specified with and without | |
191 | an exclamation mark, it is blacklisted. For example, with | |
192 | .Em eth*,!eth1,!eth2 | |
193 | .Nm lldpd | |
194 | will only listen to interfaces starting by | |
195 | .Em eth | |
196 | with the exception of | |
197 | .Em eth1 | |
198 | and | |
199 | .Em eth2 . | |
200 | .Ed | |
201 | ||
202 | .Cd configure | |
170 | 203 | .Cd lldp tx-interval Ar interval |
171 | 204 | .Bd -ragged -offset XXXXXX |
172 | 205 | Change transmit delay to the specified value in seconds. The transmit |
173 | 206 | delay is the delay between two transmissions of LLDP PDU. The default |
174 | 207 | value is 30 seconds. |
208 | .Ed | |
209 | ||
210 | .Cd configure | |
211 | .Cd lldp tx-hold Ar hold | |
212 | .Bd -ragged -offset XXXXXX | |
213 | Change transmit hold value to the specified value. This value is used | |
214 | to compute the TTL of transmitted packets which is the product of this | |
215 | value and of the transmit delay. The default value is 4 and therefore | |
216 | the default TTL is 120 seconds. | |
175 | 217 | .Ed |
176 | 218 | |
177 | 219 | .Cd configure med fast-start |
471 | 471 | size_t len; |
472 | 472 | char *line; |
473 | 473 | while ((line = fgetln(file, &len))) { |
474 | line = strndup(line, len); | |
474 | 475 | if (line[len - 1] == '\n') { |
475 | 476 | line[len - 1] = '\0'; |
476 | 477 | parse_and_exec(conn, fmt, line); |
88 | 88 | return 1; |
89 | 89 | } |
90 | 90 | |
91 | struct watcharg { | |
92 | struct cmd_env *env; | |
93 | struct writer *w; | |
94 | }; | |
95 | ||
91 | 96 | /** |
92 | 97 | * Callback for the next function to display a new neighbor. |
93 | 98 | */ |
98 | 103 | lldpctl_atom_t *neighbor, |
99 | 104 | void *data) |
100 | 105 | { |
101 | struct cmd_env *env = data; | |
102 | struct writer *w = (struct writer *)cmdenv_get(env, "writer"); | |
106 | struct watcharg *wa = data; | |
107 | struct cmd_env *env = wa->env; | |
108 | struct writer *w = wa->w; | |
103 | 109 | const char *interfaces = cmdenv_get(env, "ports"); |
104 | 110 | if (interfaces && !contains(interfaces, lldpctl_atom_get_str(interface, |
105 | 111 | lldpctl_k_interface_name))) |
132 | 138 | struct cmd_env *env, void *arg) |
133 | 139 | { |
134 | 140 | int watch = 1; |
141 | struct watcharg wa = { | |
142 | .env = env, | |
143 | .w = w | |
144 | }; | |
135 | 145 | log_debug("lldpctl", "watch for neighbor changes"); |
136 | if (lldpctl_watch_callback(conn, watchcb, env) < 0) { | |
146 | if (lldpctl_watch_callback(conn, watchcb, &wa) < 0) { | |
137 | 147 | log_warnx("lldpctl", "unable to watch for neighbors. %s", |
138 | 148 | lldpctl_last_strerror(conn)); |
139 | 149 | return 0; |
140 | 150 | } |
141 | cmdenv_put(env, "writer", (const char*)w); /* Hackish, but we really | |
142 | * don't care. */ | |
143 | 151 | while (watch) { |
144 | 152 | if (lldpctl_watch(conn) < 0) { |
145 | 153 | log_warnx("lldpctl", "unable to watch for neighbors. %s", |
0 | # Makefile.in generated by automake 1.11.6 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.3 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
5 | # Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
15 | 14 | @SET_MAKE@ |
16 | 15 | |
17 | 16 | VPATH = @srcdir@ |
18 | am__make_dryrun = \ | |
19 | { \ | |
20 | am__dry=no; \ | |
17 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
18 | am__make_running_with_option = \ | |
19 | case $${target_option-} in \ | |
20 | ?) ;; \ | |
21 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
22 | "target option '$${target_option-}' specified" >&2; \ | |
23 | exit 1;; \ | |
24 | esac; \ | |
25 | has_opt=no; \ | |
26 | sane_makeflags=$$MAKEFLAGS; \ | |
27 | if $(am__is_gnu_make); then \ | |
28 | sane_makeflags=$$MFLAGS; \ | |
29 | else \ | |
21 | 30 | case $$MAKEFLAGS in \ |
22 | 31 | *\\[\ \ ]*) \ |
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;; \ | |
32 | bs=\\; \ | |
33 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
34 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
32 | 35 | esac; \ |
33 | test $$am__dry = yes; \ | |
34 | } | |
36 | fi; \ | |
37 | skip_next=no; \ | |
38 | strip_trailopt () \ | |
39 | { \ | |
40 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
41 | }; \ | |
42 | for flg in $$sane_makeflags; do \ | |
43 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
44 | case $$flg in \ | |
45 | *=*|--*) continue;; \ | |
46 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
47 | -*I?*) strip_trailopt 'I';; \ | |
48 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
49 | -*O?*) strip_trailopt 'O';; \ | |
50 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
51 | -*l?*) strip_trailopt 'l';; \ | |
52 | -[dEDm]) skip_next=yes;; \ | |
53 | -[JT]) skip_next=yes;; \ | |
54 | esac; \ | |
55 | case $$flg in \ | |
56 | *$$target_option*) has_opt=yes; break;; \ | |
57 | esac; \ | |
58 | done; \ | |
59 | test $$has_opt = yes | |
60 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
61 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
35 | 62 | pkgdatadir = $(datadir)/@PACKAGE@ |
36 | 63 | pkgincludedir = $(includedir)/@PACKAGE@ |
37 | 64 | pkglibdir = $(libdir)/@PACKAGE@ |
51 | 78 | build_triplet = @build@ |
52 | 79 | host_triplet = @host@ |
53 | 80 | subdir = src/compat |
54 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in fgetln.c \ | |
55 | malloc.c realloc.c strlcpy.c strnlen.c | |
81 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am realloc.c \ | |
82 | setproctitle.c strnlen.c malloc.c strlcpy.c fgetln.c \ | |
83 | $(top_srcdir)/depcomp | |
56 | 84 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
57 | 85 | am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \ |
58 | 86 | $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ |
79 | 107 | AM_V_lt = $(am__v_lt_@AM_V@) |
80 | 108 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
81 | 109 | am__v_lt_0 = --silent |
110 | am__v_lt_1 = | |
111 | AM_V_P = $(am__v_P_@AM_V@) | |
112 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
113 | am__v_P_0 = false | |
114 | am__v_P_1 = : | |
115 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
116 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
117 | am__v_GEN_0 = @echo " GEN " $@; | |
118 | am__v_GEN_1 = | |
119 | AM_V_at = $(am__v_at_@AM_V@) | |
120 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
121 | am__v_at_0 = @ | |
122 | am__v_at_1 = | |
82 | 123 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
83 | 124 | depcomp = $(SHELL) $(top_srcdir)/depcomp |
84 | 125 | am__depfiles_maybe = depfiles |
91 | 132 | $(AM_CFLAGS) $(CFLAGS) |
92 | 133 | AM_V_CC = $(am__v_CC_@AM_V@) |
93 | 134 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) |
94 | am__v_CC_0 = @echo " CC " $@; | |
95 | AM_V_at = $(am__v_at_@AM_V@) | |
96 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
97 | am__v_at_0 = @ | |
135 | am__v_CC_0 = @echo " CC " $@; | |
136 | am__v_CC_1 = | |
98 | 137 | CCLD = $(CC) |
99 | 138 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
100 | 139 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
101 | 140 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
102 | 141 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
103 | 142 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) |
104 | am__v_CCLD_0 = @echo " CCLD " $@; | |
105 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
106 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
107 | am__v_GEN_0 = @echo " GEN " $@; | |
143 | am__v_CCLD_0 = @echo " CCLD " $@; | |
144 | am__v_CCLD_1 = | |
108 | 145 | SOURCES = $(libcompat_la_SOURCES) |
109 | 146 | DIST_SOURCES = $(libcompat_la_SOURCES) |
110 | 147 | am__can_run_installinfo = \ |
112 | 149 | n|no|NO) false;; \ |
113 | 150 | *) (install-info --version) >/dev/null 2>&1;; \ |
114 | 151 | esac |
152 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
153 | # Read a list of newline-separated strings from the standard input, | |
154 | # and print each of them once, without duplicates. Input order is | |
155 | # *not* preserved. | |
156 | am__uniquify_input = $(AWK) '\ | |
157 | BEGIN { nonempty = 0; } \ | |
158 | { items[$$0] = 1; nonempty = 1; } \ | |
159 | END { if (nonempty) { for (i in items) print i; }; } \ | |
160 | ' | |
161 | # Make sure the list of sources is unique. This is necessary because, | |
162 | # e.g., the same source file might be shared among _SOURCES variables | |
163 | # for different programs/libraries. | |
164 | am__define_uniq_tagged_files = \ | |
165 | list='$(am__tagged_files)'; \ | |
166 | unique=`for i in $$list; do \ | |
167 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
168 | done | $(am__uniquify_input)` | |
115 | 169 | ETAGS = etags |
116 | 170 | CTAGS = ctags |
117 | 171 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
317 | 371 | |
318 | 372 | clean-noinstLTLIBRARIES: |
319 | 373 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) |
320 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | |
321 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | |
322 | test "$$dir" != "$$p" || dir=.; \ | |
323 | echo "rm -f \"$${dir}/so_locations\""; \ | |
324 | rm -f "$${dir}/so_locations"; \ | |
325 | done | |
374 | @list='$(noinst_LTLIBRARIES)'; \ | |
375 | locs=`for p in $$list; do echo $$p; done | \ | |
376 | sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ | |
377 | sort -u`; \ | |
378 | test -z "$$locs" || { \ | |
379 | echo rm -f $${locs}; \ | |
380 | rm -f $${locs}; \ | |
381 | } | |
382 | ||
326 | 383 | libcompat.la: $(libcompat_la_OBJECTS) $(libcompat_la_DEPENDENCIES) $(EXTRA_libcompat_la_DEPENDENCIES) |
327 | 384 | $(AM_V_CCLD)$(LINK) $(libcompat_la_OBJECTS) $(libcompat_la_LIBADD) $(LIBS) |
328 | 385 | |
335 | 392 | @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/fgetln.Plo@am__quote@ |
336 | 393 | @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/malloc.Plo@am__quote@ |
337 | 394 | @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/realloc.Plo@am__quote@ |
395 | @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/setproctitle.Plo@am__quote@ | |
338 | 396 | @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strlcpy.Plo@am__quote@ |
339 | 397 | @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strnlen.Plo@am__quote@ |
340 | 398 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/empty.Plo@am__quote@ |
366 | 424 | clean-libtool: |
367 | 425 | -rm -rf .libs _libs |
368 | 426 | |
369 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
370 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
371 | unique=`for i in $$list; do \ | |
372 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
373 | done | \ | |
374 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
375 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
376 | mkid -fID $$unique | |
377 | tags: TAGS | |
378 | ||
379 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
380 | $(TAGS_FILES) $(LISP) | |
427 | ID: $(am__tagged_files) | |
428 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
429 | tags: tags-am | |
430 | TAGS: tags | |
431 | ||
432 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
381 | 433 | set x; \ |
382 | 434 | here=`pwd`; \ |
383 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
384 | unique=`for i in $$list; do \ | |
385 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
386 | done | \ | |
387 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
388 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
435 | $(am__define_uniq_tagged_files); \ | |
389 | 436 | shift; \ |
390 | 437 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
391 | 438 | test -n "$$unique" || unique=$$empty_fix; \ |
397 | 444 | $$unique; \ |
398 | 445 | fi; \ |
399 | 446 | fi |
400 | ctags: CTAGS | |
401 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
402 | $(TAGS_FILES) $(LISP) | |
403 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
404 | unique=`for i in $$list; do \ | |
405 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
406 | done | \ | |
407 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
408 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
447 | ctags: ctags-am | |
448 | ||
449 | CTAGS: ctags | |
450 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
451 | $(am__define_uniq_tagged_files); \ | |
409 | 452 | test -z "$(CTAGS_ARGS)$$unique" \ |
410 | 453 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
411 | 454 | $$unique |
414 | 457 | here=`$(am__cd) $(top_builddir) && pwd` \ |
415 | 458 | && $(am__cd) $(top_srcdir) \ |
416 | 459 | && gtags -i $(GTAGS_ARGS) "$$here" |
460 | cscopelist: cscopelist-am | |
461 | ||
462 | cscopelist-am: $(am__tagged_files) | |
463 | list='$(am__tagged_files)'; \ | |
464 | case "$(srcdir)" in \ | |
465 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
466 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
467 | esac; \ | |
468 | for i in $$list; do \ | |
469 | if test -f "$$i"; then \ | |
470 | echo "$(subdir)/$$i"; \ | |
471 | else \ | |
472 | echo "$$sdir/$$i"; \ | |
473 | fi; \ | |
474 | done >> $(top_builddir)/cscope.files | |
417 | 475 | |
418 | 476 | distclean-tags: |
419 | 477 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
555 | 613 | |
556 | 614 | .MAKE: install-am install-strip |
557 | 615 | |
558 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | |
559 | clean-libtool clean-noinstLTLIBRARIES ctags distclean \ | |
560 | distclean-compile distclean-generic distclean-libtool \ | |
561 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | |
562 | install install-am install-data install-data-am install-dvi \ | |
563 | install-dvi-am install-exec install-exec-am install-html \ | |
564 | install-html-am install-info install-info-am install-man \ | |
565 | install-pdf install-pdf-am install-ps install-ps-am \ | |
566 | install-strip installcheck installcheck-am installdirs \ | |
567 | maintainer-clean maintainer-clean-generic mostlyclean \ | |
568 | mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ | |
569 | pdf pdf-am ps ps-am tags uninstall uninstall-am | |
616 | .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ | |
617 | clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ | |
618 | ctags-am distclean distclean-compile distclean-generic \ | |
619 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | |
620 | html-am info info-am install install-am install-data \ | |
621 | install-data-am install-dvi install-dvi-am install-exec \ | |
622 | install-exec-am install-html install-html-am install-info \ | |
623 | install-info-am install-man install-pdf install-pdf-am \ | |
624 | install-ps install-ps-am install-strip installcheck \ | |
625 | installcheck-am installdirs maintainer-clean \ | |
626 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | |
627 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | |
628 | tags tags-am uninstall uninstall-am | |
570 | 629 | |
571 | 630 | |
572 | 631 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
34 | 34 | |
35 | 35 | #include <stdio.h> |
36 | 36 | #include <stddef.h> |
37 | #ifdef HAVE_LIBBSD | |
38 | # include <bsd/stdio.h> | |
39 | # include <bsd/string.h> | |
40 | # include <bsd/unistd.h> | |
41 | #endif | |
37 | 42 | |
38 | 43 | #if !HAVE_STRLCPY |
39 | 44 | size_t strlcpy(char *, const char *, size_t); |
47 | 52 | char *fgetln(FILE *, size_t *); |
48 | 53 | #endif |
49 | 54 | |
55 | #if !HAVE_SETPROCTITLE | |
56 | void setproctitle(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); | |
57 | #endif | |
58 | ||
50 | 59 | #if !HAVE_MALLOC |
51 | 60 | void *malloc(size_t size); |
52 | 61 | #endif |
0 | /* -*- mode: c; c-file-style: "openbsd" -*- */ | |
1 | /* | |
2 | * Copyright (c) 2013 Vincent Bernat <bernat@luffy.cx> | |
3 | * | |
4 | * Permission to use, copy, modify, and/or distribute this software for any | |
5 | * purpose with or without fee is hereby granted, provided that the above | |
6 | * copyright notice and this permission notice appear in all copies. | |
7 | * | |
8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
15 | */ | |
16 | ||
17 | void | |
18 | setproctitle(const char *fmt, ...) | |
19 | { | |
20 | /* Do nothing. */ | |
21 | } |
0 | # Makefile.in generated by automake 1.11.6 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.3 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
5 | # Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
16 | 15 | |
17 | 16 | |
18 | 17 | VPATH = @srcdir@ |
19 | am__make_dryrun = \ | |
20 | { \ | |
21 | 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 \ | |
22 | 31 | case $$MAKEFLAGS in \ |
23 | 32 | *\\[\ \ ]*) \ |
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;; \ | |
33 | bs=\\; \ | |
34 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
35 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
33 | 36 | esac; \ |
34 | test $$am__dry = yes; \ | |
35 | } | |
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)) | |
36 | 63 | pkgdatadir = $(datadir)/@PACKAGE@ |
37 | 64 | pkgincludedir = $(includedir)/@PACKAGE@ |
38 | 65 | pkglibdir = $(libdir)/@PACKAGE@ |
100 | 127 | @USE_SNMP_TRUE@am__append_9 = @NETSNMP_CFLAGS@ |
101 | 128 | @USE_SNMP_TRUE@am__append_10 = @NETSNMP_LIBS@ |
102 | 129 | subdir = src/daemon |
103 | DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.am \ | |
104 | $(srcdir)/Makefile.in | |
130 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
131 | $(top_srcdir)/depcomp $(dist_man_MANS) | |
105 | 132 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
106 | 133 | am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \ |
107 | 134 | $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ |
176 | 203 | AM_V_lt = $(am__v_lt_@AM_V@) |
177 | 204 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
178 | 205 | am__v_lt_0 = --silent |
206 | am__v_lt_1 = | |
179 | 207 | liblldpd_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
180 | 208 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(liblldpd_la_CFLAGS) \ |
181 | 209 | $(CFLAGS) $(liblldpd_la_LDFLAGS) $(LDFLAGS) -o $@ |
184 | 212 | am_lldpd_OBJECTS = main.$(OBJEXT) |
185 | 213 | lldpd_OBJECTS = $(am_lldpd_OBJECTS) |
186 | 214 | lldpd_DEPENDENCIES = liblldpd.la |
215 | AM_V_P = $(am__v_P_@AM_V@) | |
216 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
217 | am__v_P_0 = false | |
218 | am__v_P_1 = : | |
219 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
220 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
221 | am__v_GEN_0 = @echo " GEN " $@; | |
222 | am__v_GEN_1 = | |
223 | AM_V_at = $(am__v_at_@AM_V@) | |
224 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
225 | am__v_at_0 = @ | |
226 | am__v_at_1 = | |
187 | 227 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
188 | 228 | depcomp = $(SHELL) $(top_srcdir)/depcomp |
189 | 229 | am__depfiles_maybe = depfiles |
196 | 236 | $(AM_CFLAGS) $(CFLAGS) |
197 | 237 | AM_V_CC = $(am__v_CC_@AM_V@) |
198 | 238 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) |
199 | am__v_CC_0 = @echo " CC " $@; | |
200 | AM_V_at = $(am__v_at_@AM_V@) | |
201 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
202 | am__v_at_0 = @ | |
239 | am__v_CC_0 = @echo " CC " $@; | |
240 | am__v_CC_1 = | |
203 | 241 | CCLD = $(CC) |
204 | 242 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
205 | 243 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
206 | 244 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
207 | 245 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
208 | 246 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) |
209 | am__v_CCLD_0 = @echo " CCLD " $@; | |
210 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
211 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
212 | am__v_GEN_0 = @echo " GEN " $@; | |
247 | am__v_CCLD_0 = @echo " CCLD " $@; | |
248 | am__v_CCLD_1 = | |
213 | 249 | SOURCES = $(liblldpd_la_SOURCES) $(lldpd_SOURCES) |
214 | 250 | DIST_SOURCES = $(am__liblldpd_la_SOURCES_DIST) $(lldpd_SOURCES) |
215 | 251 | am__can_run_installinfo = \ |
247 | 283 | man8dir = $(mandir)/man8 |
248 | 284 | NROFF = nroff |
249 | 285 | MANS = $(dist_man_MANS) |
286 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
287 | # Read a list of newline-separated strings from the standard input, | |
288 | # and print each of them once, without duplicates. Input order is | |
289 | # *not* preserved. | |
290 | am__uniquify_input = $(AWK) '\ | |
291 | BEGIN { nonempty = 0; } \ | |
292 | { items[$$0] = 1; nonempty = 1; } \ | |
293 | END { if (nonempty) { for (i in items) print i; }; } \ | |
294 | ' | |
295 | # Make sure the list of sources is unique. This is necessary because, | |
296 | # e.g., the same source file might be shared among _SOURCES variables | |
297 | # for different programs/libraries. | |
298 | am__define_uniq_tagged_files = \ | |
299 | list='$(am__tagged_files)'; \ | |
300 | unique=`for i in $$list; do \ | |
301 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
302 | done | $(am__uniquify_input)` | |
250 | 303 | ETAGS = etags |
251 | 304 | CTAGS = ctags |
252 | 305 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
467 | 520 | |
468 | 521 | clean-noinstLTLIBRARIES: |
469 | 522 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) |
470 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | |
471 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | |
472 | test "$$dir" != "$$p" || dir=.; \ | |
473 | echo "rm -f \"$${dir}/so_locations\""; \ | |
474 | rm -f "$${dir}/so_locations"; \ | |
475 | done | |
523 | @list='$(noinst_LTLIBRARIES)'; \ | |
524 | locs=`for p in $$list; do echo $$p; done | \ | |
525 | sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ | |
526 | sort -u`; \ | |
527 | test -z "$$locs" || { \ | |
528 | echo rm -f $${locs}; \ | |
529 | rm -f $${locs}; \ | |
530 | } | |
531 | ||
476 | 532 | liblldpd.la: $(liblldpd_la_OBJECTS) $(liblldpd_la_DEPENDENCIES) $(EXTRA_liblldpd_la_DEPENDENCIES) |
477 | 533 | $(AM_V_CCLD)$(liblldpd_la_LINK) $(liblldpd_la_OBJECTS) $(liblldpd_la_LIBADD) $(LIBS) |
478 | 534 | install-sbinPROGRAMS: $(sbin_PROGRAMS) |
484 | 540 | fi; \ |
485 | 541 | for p in $$list; do echo "$$p $$p"; done | \ |
486 | 542 | sed 's/$(EXEEXT)$$//' | \ |
487 | while read p p1; do if test -f $$p || test -f $$p1; \ | |
488 | then echo "$$p"; echo "$$p"; else :; fi; \ | |
543 | while read p p1; do if test -f $$p \ | |
544 | || test -f $$p1 \ | |
545 | ; then echo "$$p"; echo "$$p"; else :; fi; \ | |
489 | 546 | done | \ |
490 | sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ | |
547 | sed -e 'p;s,.*/,,;n;h' \ | |
548 | -e 's|.*|.|' \ | |
491 | 549 | -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ |
492 | 550 | sed 'N;N;N;s,\n, ,g' | \ |
493 | 551 | $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ |
508 | 566 | @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \ |
509 | 567 | files=`for p in $$list; do echo "$$p"; done | \ |
510 | 568 | sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ |
511 | -e 's/$$/$(EXEEXT)/' `; \ | |
569 | -e 's/$$/$(EXEEXT)/' \ | |
570 | `; \ | |
512 | 571 | test -n "$$list" || exit 0; \ |
513 | 572 | echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \ |
514 | 573 | cd "$(DESTDIR)$(sbindir)" && rm -f $$files |
521 | 580 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ |
522 | 581 | echo " rm -f" $$list; \ |
523 | 582 | rm -f $$list |
583 | ||
524 | 584 | lldpd$(EXEEXT): $(lldpd_OBJECTS) $(lldpd_DEPENDENCIES) $(EXTRA_lldpd_DEPENDENCIES) |
525 | 585 | @rm -f lldpd$(EXEEXT) |
526 | 586 | $(AM_V_CCLD)$(LINK) $(lldpd_OBJECTS) $(lldpd_LDADD) $(LIBS) |
811 | 871 | -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ |
812 | 872 | dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir) |
813 | 873 | |
814 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
815 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
816 | unique=`for i in $$list; do \ | |
817 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
818 | done | \ | |
819 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
820 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
821 | mkid -fID $$unique | |
822 | tags: TAGS | |
823 | ||
824 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
825 | $(TAGS_FILES) $(LISP) | |
874 | ID: $(am__tagged_files) | |
875 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
876 | tags: tags-am | |
877 | TAGS: tags | |
878 | ||
879 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
826 | 880 | set x; \ |
827 | 881 | here=`pwd`; \ |
828 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
829 | unique=`for i in $$list; do \ | |
830 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
831 | done | \ | |
832 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
833 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
882 | $(am__define_uniq_tagged_files); \ | |
834 | 883 | shift; \ |
835 | 884 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
836 | 885 | test -n "$$unique" || unique=$$empty_fix; \ |
842 | 891 | $$unique; \ |
843 | 892 | fi; \ |
844 | 893 | fi |
845 | ctags: CTAGS | |
846 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
847 | $(TAGS_FILES) $(LISP) | |
848 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
849 | unique=`for i in $$list; do \ | |
850 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
851 | done | \ | |
852 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
853 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
894 | ctags: ctags-am | |
895 | ||
896 | CTAGS: ctags | |
897 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
898 | $(am__define_uniq_tagged_files); \ | |
854 | 899 | test -z "$(CTAGS_ARGS)$$unique" \ |
855 | 900 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
856 | 901 | $$unique |
859 | 904 | here=`$(am__cd) $(top_builddir) && pwd` \ |
860 | 905 | && $(am__cd) $(top_srcdir) \ |
861 | 906 | && gtags -i $(GTAGS_ARGS) "$$here" |
907 | cscopelist: cscopelist-am | |
908 | ||
909 | cscopelist-am: $(am__tagged_files) | |
910 | list='$(am__tagged_files)'; \ | |
911 | case "$(srcdir)" in \ | |
912 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
913 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
914 | esac; \ | |
915 | for i in $$list; do \ | |
916 | if test -f "$$i"; then \ | |
917 | echo "$(subdir)/$$i"; \ | |
918 | else \ | |
919 | echo "$$sdir/$$i"; \ | |
920 | fi; \ | |
921 | done >> $(top_builddir)/cscope.files | |
862 | 922 | |
863 | 923 | distclean-tags: |
864 | 924 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
865 | 925 | |
866 | 926 | distdir: $(DISTFILES) |
867 | @list='$(MANS)'; if test -n "$$list"; then \ | |
868 | list=`for p in $$list; do \ | |
869 | if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ | |
870 | if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ | |
871 | if test -n "$$list" && \ | |
872 | grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ | |
873 | echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ | |
874 | grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ | |
875 | echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ | |
876 | echo " typically \`make maintainer-clean' will remove them" >&2; \ | |
877 | exit 1; \ | |
878 | else :; fi; \ | |
879 | else :; fi | |
880 | 927 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
881 | 928 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
882 | 929 | list='$(DISTFILES)'; \ |
1018 | 1065 | |
1019 | 1066 | .MAKE: install-am install-strip |
1020 | 1067 | |
1021 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | |
1022 | clean-libtool clean-noinstLTLIBRARIES clean-sbinPROGRAMS ctags \ | |
1023 | distclean distclean-compile distclean-generic \ | |
1024 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | |
1025 | html-am info info-am install install-am install-data \ | |
1026 | install-data-am install-dvi install-dvi-am install-exec \ | |
1027 | install-exec-am install-html install-html-am install-info \ | |
1028 | install-info-am install-man install-man8 install-pdf \ | |
1029 | install-pdf-am install-ps install-ps-am install-sbinPROGRAMS \ | |
1030 | install-strip installcheck installcheck-am installdirs \ | |
1031 | maintainer-clean maintainer-clean-generic mostlyclean \ | |
1032 | mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ | |
1033 | pdf pdf-am ps ps-am tags uninstall uninstall-am uninstall-man \ | |
1068 | .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ | |
1069 | clean-libtool clean-noinstLTLIBRARIES clean-sbinPROGRAMS \ | |
1070 | cscopelist-am ctags ctags-am distclean distclean-compile \ | |
1071 | distclean-generic distclean-libtool distclean-tags distdir dvi \ | |
1072 | dvi-am html html-am info info-am install install-am \ | |
1073 | install-data install-data-am install-dvi install-dvi-am \ | |
1074 | install-exec install-exec-am install-html install-html-am \ | |
1075 | install-info install-info-am install-man install-man8 \ | |
1076 | install-pdf install-pdf-am install-ps install-ps-am \ | |
1077 | install-sbinPROGRAMS install-strip installcheck \ | |
1078 | installcheck-am installdirs maintainer-clean \ | |
1079 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | |
1080 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | |
1081 | tags tags-am uninstall uninstall-am uninstall-man \ | |
1034 | 1082 | uninstall-man8 uninstall-sbinPROGRAMS |
1035 | 1083 | |
1036 | 1084 |
32 | 32 | { |
33 | 33 | ssize_t output_len; |
34 | 34 | log_debug("rpc", "client requested configuration"); |
35 | output_len = marshal_serialize(lldpd_config, &cfg->g_config, output); | |
35 | output_len = lldpd_config_serialize(&cfg->g_config, output); | |
36 | 36 | if (output_len <= 0) { |
37 | 37 | output_len = 0; |
38 | 38 | *type = NONE; |
46 | 46 | void *input, int input_len, void **output, int *subscribed) |
47 | 47 | { |
48 | 48 | struct lldpd_config *config; |
49 | void *p; | |
50 | 49 | |
51 | 50 | log_debug("rpc", "client request a change in configuration"); |
52 | 51 | /* Get the proposed configuration. */ |
53 | if (marshal_unserialize(lldpd_config, input, input_len, &p) <= 0) { | |
52 | if (lldpd_config_unserialize(input, input_len, &config) <= 0) { | |
54 | 53 | *type = NONE; |
55 | 54 | return 0; |
56 | 55 | } |
57 | config = p; | |
58 | ||
56 | ||
59 | 57 | /* What needs to be done? Transmit delay? */ |
60 | 58 | if (config->c_tx_interval > 0) { |
61 | 59 | log_debug("rpc", "client change transmit interval to %d", |
62 | 60 | config->c_tx_interval); |
63 | 61 | cfg->g_config.c_tx_interval = config->c_tx_interval; |
62 | LOCAL_CHASSIS(cfg)->c_ttl = cfg->g_config.c_tx_interval * | |
63 | cfg->g_config.c_tx_hold; | |
64 | } | |
65 | if (config->c_tx_hold > 0) { | |
66 | log_debug("rpc", "client change transmit hold to %d", | |
67 | config->c_tx_hold); | |
68 | cfg->g_config.c_tx_hold = config->c_tx_hold; | |
69 | LOCAL_CHASSIS(cfg)->c_ttl = cfg->g_config.c_tx_interval * | |
70 | cfg->g_config.c_tx_hold; | |
64 | 71 | } |
65 | 72 | if (config->c_tx_interval < 0) { |
66 | 73 | log_debug("rpc", "client asked for immediate retransmission"); |
85 | 92 | cfg->g_config.c_tx_fast_interval = config->c_tx_fast_interval; |
86 | 93 | } |
87 | 94 | #endif |
95 | if (config->c_iface_pattern) { | |
96 | log_debug("rpc", "change interface pattern to %s", config->c_iface_pattern); | |
97 | free(cfg->g_config.c_iface_pattern); | |
98 | cfg->g_config.c_iface_pattern = strdup(config->c_iface_pattern); | |
99 | levent_update_now(cfg); | |
100 | } | |
101 | if (config->c_description) { | |
102 | log_debug("rpc", "change chassis description to %s", config->c_description); | |
103 | free(cfg->g_config.c_description); | |
104 | cfg->g_config.c_description = strdup(config->c_description); | |
105 | levent_update_now(cfg); | |
106 | } | |
107 | if (config->c_platform) { | |
108 | log_debug("rpc", "change platform description to %s", config->c_platform); | |
109 | free(cfg->g_config.c_platform); | |
110 | cfg->g_config.c_platform = strdup(config->c_platform); | |
111 | levent_update_now(cfg); | |
112 | } | |
88 | 113 | |
89 | 114 | lldpd_config_cleanup(config); |
115 | free(config); | |
90 | 116 | |
91 | 117 | return 0; |
92 | 118 | } |
116 | 142 | TAILQ_INSERT_TAIL(&ifs, iff, next); |
117 | 143 | } |
118 | 144 | |
119 | output_len = marshal_serialize(lldpd_interface_list, &ifs, output); | |
145 | output_len = lldpd_interface_list_serialize(&ifs, output); | |
120 | 146 | if (output_len <= 0) { |
121 | 147 | output_len = 0; |
122 | 148 | *type = NONE; |
143 | 169 | void *input, int input_len, void **output, int *subscribed) |
144 | 170 | { |
145 | 171 | char *name; |
172 | struct lldpd_hardware *hardware; | |
146 | 173 | void *p; |
147 | struct lldpd_hardware *hardware; | |
148 | 174 | |
149 | 175 | /* Get name of the interface */ |
150 | 176 | if (marshal_unserialize(string, input, input_len, &p) <= 0) { |
157 | 183 | log_debug("rpc", "client request interface %s", name); |
158 | 184 | TAILQ_FOREACH(hardware, &cfg->g_hardware, h_entries) |
159 | 185 | if (!strcmp(hardware->h_ifname, name)) { |
160 | int output_len = marshal_serialize(lldpd_hardware, hardware, output); | |
186 | int output_len = lldpd_hardware_serialize(hardware, output); | |
161 | 187 | free(name); |
162 | 188 | if (output_len <= 0) { |
163 | 189 | *type = NONE; |
181 | 207 | void *input, int input_len, void **output, int *subscribed) |
182 | 208 | { |
183 | 209 | int ret = 0; |
184 | void *p; | |
185 | 210 | struct lldpd_port_set *set = NULL; |
186 | 211 | struct lldpd_hardware *hardware = NULL; |
187 | 212 | #ifdef ENABLE_LLDPMED |
188 | 213 | struct lldpd_med_loc *loc = NULL; |
189 | 214 | #endif |
190 | 215 | |
191 | if (marshal_unserialize(lldpd_port_set, input, input_len, &p) <= 0) { | |
216 | if (lldpd_port_set_unserialize(input, input_len, &set) <= 0) { | |
192 | 217 | *type = NONE; |
193 | 218 | return 0; |
194 | 219 | } |
195 | set = p; | |
196 | 220 | if (!set->ifname) { |
197 | 221 | log_warnx("rpc", "no interface provided"); |
198 | 222 | goto set_port_finished; |
308 | 308 | hardware->h_ifname); |
309 | 309 | goto malformed; |
310 | 310 | } |
311 | chassis->c_ttl = LLDPD_TTL; | |
311 | chassis->c_ttl = cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold; | |
312 | 312 | chassis->c_id_subtype = LLDP_CHASSISID_SUBTYPE_LLADDR; |
313 | 313 | chassis->c_id_len = ETHER_ADDR_LEN; |
314 | 314 | if ((chassis->c_id = (char *)malloc(ETHER_ADDR_LEN)) == NULL) { |
254 | 254 | sizeof(backup_p_entries)); |
255 | 255 | memset(&neighbor->p_entries, 0, |
256 | 256 | sizeof(backup_p_entries)); |
257 | output_len = marshal_serialize(lldpd_neighbor_change, | |
258 | &neigh, &output); | |
257 | output_len = lldpd_neighbor_change_serialize(&neigh, &output); | |
259 | 258 | memcpy(&neighbor->p_entries, &backup_p_entries, |
260 | 259 | sizeof(backup_p_entries)); |
261 | 260 | |
402 | 401 | if (cfg->g_iface_event != NULL) |
403 | 402 | tv.tv_sec *= 20; |
404 | 403 | event_add(cfg->g_main_loop, &tv); |
404 | } | |
405 | ||
406 | void | |
407 | levent_update_now(struct lldpd *cfg) | |
408 | { | |
409 | if (cfg->g_main_loop) | |
410 | event_active(cfg->g_main_loop, EV_TIMEOUT, 1); | |
405 | 411 | } |
406 | 412 | |
407 | 413 | void |
688 | 694 | TAILQ_FOREACH(hardware, &cfg->g_hardware, h_entries) { |
689 | 695 | TAILQ_FOREACH(port, &hardware->h_rports, p_entries) { |
690 | 696 | next = port->p_chassis->c_ttl - (now - port->p_lastupdate); |
691 | if (next > 0 && next < tv.tv_sec) | |
697 | if (next >= 0 && next < tv.tv_sec) | |
692 | 698 | tv.tv_sec = next; |
693 | 699 | } |
694 | 700 | } |
213 | 213 | } |
214 | 214 | |
215 | 215 | static void |
216 | lldpd_count_neighbors(struct lldpd *cfg) | |
217 | { | |
218 | #if HAVE_SETPROCTITLE | |
219 | struct lldpd_chassis *chassis; | |
220 | const char *neighbor; | |
221 | unsigned neighbors = 0; | |
222 | TAILQ_FOREACH(chassis, &cfg->g_chassis, c_entries) { | |
223 | neighbors++; | |
224 | neighbor = chassis->c_name; | |
225 | } | |
226 | neighbors--; | |
227 | if (neighbors == 0) | |
228 | setproctitle("no neighbor"); | |
229 | else if (neighbors == 1 && neighbor) | |
230 | setproctitle("connected to %s", neighbor); | |
231 | else | |
232 | setproctitle("%d neighbor%s", neighbors, | |
233 | (neighbors > 1)?"s":""); | |
234 | #else | |
235 | (void)cfg; | |
236 | #endif | |
237 | } | |
238 | ||
239 | static void | |
216 | 240 | notify_clients_deletion(struct lldpd_hardware *hardware, |
217 | 241 | struct lldpd_port *rport) |
218 | 242 | { |
239 | 263 | char save[offsetof(struct lldpd_port, p_id_subtype)]; |
240 | 264 | memcpy(save, port, sizeof(save)); |
241 | 265 | memset(port, 0, sizeof(save)); |
242 | output_len = marshal_serialize(lldpd_port, port, (void**)&output); | |
266 | output_len = lldpd_port_serialize(port, (void**)&output); | |
243 | 267 | memcpy(port, save, sizeof(save)); |
244 | 268 | if (output_len == -1) { |
245 | 269 | log_warnx("localchassis", |
293 | 317 | } |
294 | 318 | } |
295 | 319 | |
320 | lldpd_count_neighbors(cfg); | |
296 | 321 | levent_schedule_cleanup(cfg); |
297 | 322 | } |
298 | 323 | |
377 | 402 | if (s < sizeof(struct ether_header) + 4) |
378 | 403 | /* Too short, just discard it */ |
379 | 404 | return; |
405 | ||
380 | 406 | /* Decapsulate VLAN frames */ |
381 | if (((struct ether_header*)frame)->ether_type == htons(ETHERTYPE_VLAN)) { | |
407 | struct ether_header eheader; | |
408 | memcpy(&eheader, frame, sizeof(struct ether_header)); | |
409 | if (eheader.ether_type == htons(ETHERTYPE_VLAN)) { | |
382 | 410 | /* VLAN decapsulation means to shift 4 bytes left the frame from |
383 | 411 | * offset 2*ETHER_ADDR_LEN */ |
384 | 412 | memmove(frame + 2*ETHER_ADDR_LEN, frame + 2*ETHER_ADDR_LEN + 4, s - 2*ETHER_ADDR_LEN); |
790 | 818 | hardware->h_ifname); |
791 | 819 | lldpd_decode(cfg, buffer, n, hardware); |
792 | 820 | lldpd_hide_all(cfg); /* Immediatly hide */ |
821 | lldpd_count_neighbors(cfg); | |
793 | 822 | free(buffer); |
794 | 823 | } |
795 | 824 | |
982 | 1011 | lldpd_update_localports(cfg); |
983 | 1012 | log_debug("loop", "update information for local chassis"); |
984 | 1013 | lldpd_update_localchassis(cfg); |
1014 | lldpd_count_neighbors(cfg); | |
985 | 1015 | } |
986 | 1016 | |
987 | 1017 | static void |
1400 | 1430 | cfg->g_config.c_paused = 1; |
1401 | 1431 | cfg->g_config.c_receiveonly = receiveonly; |
1402 | 1432 | cfg->g_config.c_tx_interval = LLDPD_TX_INTERVAL; |
1433 | cfg->g_config.c_tx_hold = LLDPD_TX_HOLD; | |
1403 | 1434 | cfg->g_config.c_max_neighbors = LLDPD_MAX_NEIGHBORS; |
1404 | 1435 | #ifdef ENABLE_LLDPMED |
1405 | 1436 | cfg->g_config.c_enable_fast_start = enable_fast_start; |
1449 | 1480 | #endif |
1450 | 1481 | |
1451 | 1482 | /* Set TTL */ |
1452 | lchassis->c_ttl = LLDPD_TTL; | |
1483 | lchassis->c_ttl = cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold; | |
1453 | 1484 | |
1454 | 1485 | log_debug("main", "initialize protocols"); |
1455 | 1486 | cfg->g_protocols = protos; |
61 | 61 | |
62 | 62 | #define SYSFS_CLASS_NET "/sys/class/net/" |
63 | 63 | #define SYSFS_CLASS_DMI "/sys/class/dmi/id/" |
64 | #define LLDPD_TTL 120 | |
65 | 64 | #define LLDPD_TX_INTERVAL 30 |
65 | #define LLDPD_TX_HOLD 4 | |
66 | #define LLDPD_TTL LLDPD_TX_INTERVAL * LLDPD_TX_HOLD | |
66 | 67 | #define LLDPD_TX_MSGDELAY 1 |
67 | 68 | #define LLDPD_MAX_NEIGHBORS 4 |
68 | 69 | #define LLDPD_PID_FILE "/var/run/lldpd.pid" |
144 | 145 | void levent_hardware_release(struct lldpd_hardware *); |
145 | 146 | void levent_ctl_notify(char *, int, struct lldpd_port *); |
146 | 147 | void levent_send_now(struct lldpd *); |
148 | void levent_update_now(struct lldpd *); | |
147 | 149 | int levent_iface_subscribe(struct lldpd *, int); |
148 | 150 | void levent_schedule_pdu(struct lldpd_hardware *); |
149 | 151 | void levent_schedule_cleanup(struct lldpd *); |
229 | 229 | ctlname[len] = 0; |
230 | 230 | |
231 | 231 | ctl_cleanup(ctlname); |
232 | free(ctlname); | |
232 | 233 | |
233 | 234 | /* Ack */ |
234 | 235 | must_write(remote, &rc, sizeof(int)); |
477 | 478 | |
478 | 479 | /* Don't see sent packets */ |
479 | 480 | #ifdef HOST_OS_OPENBSD |
480 | enable = BPF_DIRECTION_IN; | |
481 | enable = BPF_DIRECTION_OUT; | |
481 | 482 | if (ioctl(fd, BIOCSDIRFILT, (caddr_t)&enable) < 0) |
482 | 483 | #else |
483 | 484 | enable = 0; |
630 | 631 | int cmd; |
631 | 632 | struct dispatch_actions *a; |
632 | 633 | |
634 | setproctitle("monitor"); | |
633 | 635 | while (!may_read(remote, &cmd, sizeof(int))) { |
634 | 636 | for (a = actions; a->function != NULL; a++) { |
635 | 637 | if (cmd == a->msg) { |
363 | 363 | goto malformed; |
364 | 364 | } |
365 | 365 | TAILQ_INSERT_TAIL(&chassis->c_mgmt, mgmt, m_entries); |
366 | chassis->c_ttl = LLDPD_TTL; | |
366 | chassis->c_ttl = cfg?(cfg->g_config.c_tx_interval * cfg->g_config.c_tx_hold): | |
367 | LLDPD_TTL; | |
367 | 368 | |
368 | 369 | port->p_id_subtype = LLDP_PORTID_SUBTYPE_LOCAL; |
369 | 370 | if (asprintf(&port->p_id, "%02x-%02x-%02x", |
4 | 4 | |
5 | 5 | liblldpctl_la_SOURCES = lldpctl.h private.h errors.c connection.c atom.c atom-private.c |
6 | 6 | liblldpctl_la_LIBADD = $(top_builddir)/src/libcommon-daemon-lib.la |
7 | liblldpctl_la_LDFLAGS = -export-symbols-regex '^lldpctl_' -version-info 3:0:3 | |
7 | liblldpctl_la_LDFLAGS = -export-symbols-regex '^lldpctl_' -version-info 4:0:0 | |
8 | 8 | |
9 | 9 | # -version-info format is `current`:`revision`:`age`. For more details, see: |
10 | 10 | # http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 |
0 | # Makefile.in generated by automake 1.11.6 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.3 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
5 | # Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
17 | 16 | |
18 | 17 | |
19 | 18 | VPATH = @srcdir@ |
20 | am__make_dryrun = \ | |
21 | { \ | |
22 | 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 \ | |
23 | 32 | case $$MAKEFLAGS in \ |
24 | 33 | *\\[\ \ ]*) \ |
25 | echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
26 | | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
27 | *) \ | |
28 | for am__flg in $$MAKEFLAGS; do \ | |
29 | case $$am__flg in \ | |
30 | *=*|--*) ;; \ | |
31 | *n*) am__dry=yes; break;; \ | |
32 | esac; \ | |
33 | done;; \ | |
34 | bs=\\; \ | |
35 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
36 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
34 | 37 | esac; \ |
35 | test $$am__dry = yes; \ | |
36 | } | |
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)) | |
37 | 64 | pkgdatadir = $(datadir)/@PACKAGE@ |
38 | 65 | pkgincludedir = $(includedir)/@PACKAGE@ |
39 | 66 | pkglibdir = $(libdir)/@PACKAGE@ |
53 | 80 | build_triplet = @build@ |
54 | 81 | host_triplet = @host@ |
55 | 82 | subdir = src/lib |
56 | DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \ | |
57 | $(srcdir)/Makefile.in $(srcdir)/lldpctl.pc.in | |
83 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
84 | $(srcdir)/lldpctl.pc.in $(top_srcdir)/depcomp \ | |
85 | $(include_HEADERS) | |
58 | 86 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
59 | 87 | am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \ |
60 | 88 | $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ |
112 | 140 | AM_V_lt = $(am__v_lt_@AM_V@) |
113 | 141 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
114 | 142 | am__v_lt_0 = --silent |
143 | am__v_lt_1 = | |
115 | 144 | liblldpctl_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
116 | 145 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
117 | 146 | $(liblldpctl_la_LDFLAGS) $(LDFLAGS) -o $@ |
147 | AM_V_P = $(am__v_P_@AM_V@) | |
148 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
149 | am__v_P_0 = false | |
150 | am__v_P_1 = : | |
151 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
152 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
153 | am__v_GEN_0 = @echo " GEN " $@; | |
154 | am__v_GEN_1 = | |
155 | AM_V_at = $(am__v_at_@AM_V@) | |
156 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
157 | am__v_at_0 = @ | |
158 | am__v_at_1 = | |
118 | 159 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
119 | 160 | depcomp = $(SHELL) $(top_srcdir)/depcomp |
120 | 161 | am__depfiles_maybe = depfiles |
127 | 168 | $(AM_CFLAGS) $(CFLAGS) |
128 | 169 | AM_V_CC = $(am__v_CC_@AM_V@) |
129 | 170 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) |
130 | am__v_CC_0 = @echo " CC " $@; | |
131 | AM_V_at = $(am__v_at_@AM_V@) | |
132 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
133 | am__v_at_0 = @ | |
171 | am__v_CC_0 = @echo " CC " $@; | |
172 | am__v_CC_1 = | |
134 | 173 | CCLD = $(CC) |
135 | 174 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
136 | 175 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
137 | 176 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
138 | 177 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
139 | 178 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) |
140 | am__v_CCLD_0 = @echo " CCLD " $@; | |
141 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
142 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
143 | am__v_GEN_0 = @echo " GEN " $@; | |
179 | am__v_CCLD_0 = @echo " CCLD " $@; | |
180 | am__v_CCLD_1 = | |
144 | 181 | SOURCES = $(liblldpctl_la_SOURCES) |
145 | 182 | DIST_SOURCES = $(liblldpctl_la_SOURCES) |
146 | 183 | am__can_run_installinfo = \ |
150 | 187 | esac |
151 | 188 | DATA = $(pkgconfig_DATA) |
152 | 189 | HEADERS = $(include_HEADERS) |
190 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
191 | # Read a list of newline-separated strings from the standard input, | |
192 | # and print each of them once, without duplicates. Input order is | |
193 | # *not* preserved. | |
194 | am__uniquify_input = $(AWK) '\ | |
195 | BEGIN { nonempty = 0; } \ | |
196 | { items[$$0] = 1; nonempty = 1; } \ | |
197 | END { if (nonempty) { for (i in items) print i; }; } \ | |
198 | ' | |
199 | # Make sure the list of sources is unique. This is necessary because, | |
200 | # e.g., the same source file might be shared among _SOURCES variables | |
201 | # for different programs/libraries. | |
202 | am__define_uniq_tagged_files = \ | |
203 | list='$(am__tagged_files)'; \ | |
204 | unique=`for i in $$list; do \ | |
205 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
206 | done | $(am__uniquify_input)` | |
153 | 207 | ETAGS = etags |
154 | 208 | CTAGS = ctags |
155 | 209 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
320 | 374 | include_HEADERS = lldpctl.h |
321 | 375 | liblldpctl_la_SOURCES = lldpctl.h private.h errors.c connection.c atom.c atom-private.c |
322 | 376 | liblldpctl_la_LIBADD = $(top_builddir)/src/libcommon-daemon-lib.la |
323 | liblldpctl_la_LDFLAGS = -export-symbols-regex '^lldpctl_' -version-info 3:0:3 | |
377 | liblldpctl_la_LDFLAGS = -export-symbols-regex '^lldpctl_' -version-info 4:0:0 | |
324 | 378 | |
325 | 379 | # -version-info format is `current`:`revision`:`age`. For more details, see: |
326 | 380 | # http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 |
362 | 416 | $(am__aclocal_m4_deps): |
363 | 417 | lldpctl.pc: $(top_builddir)/config.status $(srcdir)/lldpctl.pc.in |
364 | 418 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ |
419 | ||
365 | 420 | install-libLTLIBRARIES: $(lib_LTLIBRARIES) |
366 | 421 | @$(NORMAL_INSTALL) |
367 | 422 | @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ |
388 | 443 | |
389 | 444 | clean-libLTLIBRARIES: |
390 | 445 | -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) |
391 | @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ | |
392 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | |
393 | test "$$dir" != "$$p" || dir=.; \ | |
394 | echo "rm -f \"$${dir}/so_locations\""; \ | |
395 | rm -f "$${dir}/so_locations"; \ | |
396 | done | |
446 | @list='$(lib_LTLIBRARIES)'; \ | |
447 | locs=`for p in $$list; do echo $$p; done | \ | |
448 | sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ | |
449 | sort -u`; \ | |
450 | test -z "$$locs" || { \ | |
451 | echo rm -f $${locs}; \ | |
452 | rm -f $${locs}; \ | |
453 | } | |
454 | ||
397 | 455 | liblldpctl.la: $(liblldpctl_la_OBJECTS) $(liblldpctl_la_DEPENDENCIES) $(EXTRA_liblldpctl_la_DEPENDENCIES) |
398 | 456 | $(AM_V_CCLD)$(liblldpctl_la_LINK) -rpath $(libdir) $(liblldpctl_la_OBJECTS) $(liblldpctl_la_LIBADD) $(LIBS) |
399 | 457 | |
477 | 535 | files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ |
478 | 536 | dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir) |
479 | 537 | |
480 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
481 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
482 | unique=`for i in $$list; do \ | |
483 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
484 | done | \ | |
485 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
486 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
487 | mkid -fID $$unique | |
488 | tags: TAGS | |
489 | ||
490 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
491 | $(TAGS_FILES) $(LISP) | |
538 | ID: $(am__tagged_files) | |
539 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
540 | tags: tags-am | |
541 | TAGS: tags | |
542 | ||
543 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
492 | 544 | set x; \ |
493 | 545 | here=`pwd`; \ |
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; }; }'`; \ | |
546 | $(am__define_uniq_tagged_files); \ | |
500 | 547 | shift; \ |
501 | 548 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
502 | 549 | test -n "$$unique" || unique=$$empty_fix; \ |
508 | 555 | $$unique; \ |
509 | 556 | fi; \ |
510 | 557 | fi |
511 | ctags: CTAGS | |
512 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
513 | $(TAGS_FILES) $(LISP) | |
514 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
515 | unique=`for i in $$list; do \ | |
516 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
517 | done | \ | |
518 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
519 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
558 | ctags: ctags-am | |
559 | ||
560 | CTAGS: ctags | |
561 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
562 | $(am__define_uniq_tagged_files); \ | |
520 | 563 | test -z "$(CTAGS_ARGS)$$unique" \ |
521 | 564 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
522 | 565 | $$unique |
525 | 568 | here=`$(am__cd) $(top_builddir) && pwd` \ |
526 | 569 | && $(am__cd) $(top_srcdir) \ |
527 | 570 | && gtags -i $(GTAGS_ARGS) "$$here" |
571 | cscopelist: cscopelist-am | |
572 | ||
573 | cscopelist-am: $(am__tagged_files) | |
574 | list='$(am__tagged_files)'; \ | |
575 | case "$(srcdir)" in \ | |
576 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
577 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
578 | esac; \ | |
579 | for i in $$list; do \ | |
580 | if test -f "$$i"; then \ | |
581 | echo "$(subdir)/$$i"; \ | |
582 | else \ | |
583 | echo "$$sdir/$$i"; \ | |
584 | fi; \ | |
585 | done >> $(top_builddir)/cscope.files | |
528 | 586 | |
529 | 587 | distclean-tags: |
530 | 588 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
670 | 728 | |
671 | 729 | .MAKE: install-am install-strip |
672 | 730 | |
673 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | |
674 | clean-libLTLIBRARIES clean-libtool ctags distclean \ | |
675 | distclean-compile distclean-generic distclean-libtool \ | |
676 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | |
677 | install install-am install-data install-data-am install-dvi \ | |
678 | install-dvi-am install-exec install-exec-am install-html \ | |
679 | install-html-am install-includeHEADERS install-info \ | |
680 | install-info-am install-libLTLIBRARIES install-man install-pdf \ | |
681 | install-pdf-am install-pkgconfigDATA install-ps install-ps-am \ | |
682 | install-strip installcheck installcheck-am installdirs \ | |
683 | maintainer-clean maintainer-clean-generic mostlyclean \ | |
684 | mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ | |
685 | pdf pdf-am ps ps-am tags uninstall uninstall-am \ | |
686 | uninstall-includeHEADERS uninstall-libLTLIBRARIES \ | |
687 | uninstall-pkgconfigDATA | |
731 | .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ | |
732 | clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ | |
733 | ctags-am distclean distclean-compile distclean-generic \ | |
734 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | |
735 | html-am info info-am install install-am install-data \ | |
736 | install-data-am install-dvi install-dvi-am install-exec \ | |
737 | install-exec-am install-html install-html-am \ | |
738 | install-includeHEADERS install-info install-info-am \ | |
739 | install-libLTLIBRARIES install-man install-pdf install-pdf-am \ | |
740 | install-pkgconfigDATA install-ps install-ps-am install-strip \ | |
741 | installcheck installcheck-am installdirs maintainer-clean \ | |
742 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | |
743 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | |
744 | tags tags-am uninstall uninstall-am uninstall-includeHEADERS \ | |
745 | uninstall-libLTLIBRARIES uninstall-pkgconfigDATA | |
688 | 746 | |
689 | 747 | |
690 | 748 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
366 | 366 | return res?res:""; |
367 | 367 | } |
368 | 368 | |
369 | static lldpctl_atom_t* | |
370 | _lldpctl_atom_set_str_config(lldpctl_atom_t *atom, lldpctl_key_t key, | |
371 | const char *value) | |
372 | { | |
373 | struct _lldpctl_atom_config_t *c = | |
374 | (struct _lldpctl_atom_config_t *)atom; | |
375 | struct lldpd_config config; | |
376 | char *iface_pattern = NULL; | |
377 | char *description = NULL; | |
378 | int rc, len; | |
379 | ||
380 | memset(&config, 0, sizeof(struct lldpd_config)); | |
381 | len = strlen(value) + 1; | |
382 | ||
383 | switch (key) { | |
384 | case lldpctl_k_config_iface_pattern: | |
385 | iface_pattern = _lldpctl_alloc_in_atom(atom, strlen(value) + 1); | |
386 | if (!iface_pattern) | |
387 | return NULL; | |
388 | memcpy(iface_pattern, value, len); | |
389 | config.c_iface_pattern = iface_pattern; | |
390 | free(c->config->c_iface_pattern); | |
391 | c->config->c_iface_pattern = strdup(iface_pattern); | |
392 | break; | |
393 | case lldpctl_k_config_description: | |
394 | description = _lldpctl_alloc_in_atom(atom, strlen(value) + 1); | |
395 | if (!description) | |
396 | return NULL; | |
397 | memcpy(description, value, len); | |
398 | config.c_description = description; | |
399 | free(c->config->c_description); | |
400 | c->config->c_description = strdup(description); | |
401 | break; | |
402 | case lldpctl_k_config_platform: | |
403 | description = _lldpctl_alloc_in_atom(atom, strlen(value) + 1); | |
404 | if (!description) | |
405 | return NULL; | |
406 | memcpy(description, value, len); | |
407 | config.c_platform = description; | |
408 | free(c->config->c_platform); | |
409 | c->config->c_description = strdup(description); | |
410 | break; | |
411 | default: | |
412 | SET_ERROR(atom->conn, LLDPCTL_ERR_NOT_EXIST); | |
413 | return NULL; | |
414 | } | |
415 | ||
416 | rc = _lldpctl_do_something(atom->conn, | |
417 | CONN_STATE_SET_CONFIG_SEND, CONN_STATE_SET_CONFIG_RECV, | |
418 | NULL, | |
419 | SET_CONFIG, &config, &MARSHAL_INFO(lldpd_config), | |
420 | NULL, NULL); | |
421 | if (rc == 0) return atom; | |
422 | ||
423 | return NULL; | |
424 | } | |
425 | ||
369 | 426 | static long int |
370 | 427 | _lldpctl_atom_get_int_config(lldpctl_atom_t *atom, lldpctl_key_t key) |
371 | 428 | { |
388 | 445 | case lldpctl_k_config_fast_start_interval: |
389 | 446 | return c->config->c_tx_fast_interval; |
390 | 447 | #endif |
448 | case lldpctl_k_config_tx_hold: | |
449 | return c->config->c_tx_hold; | |
391 | 450 | default: |
392 | 451 | return SET_ERROR(atom->conn, LLDPCTL_ERR_NOT_EXIST); |
393 | 452 | } |
420 | 479 | config.c_tx_fast_interval = c->config->c_tx_fast_interval = value; |
421 | 480 | break; |
422 | 481 | #endif |
482 | case lldpctl_k_config_tx_hold: | |
483 | config.c_tx_hold = value; | |
484 | if (value > 0) c->config->c_tx_hold = value; | |
485 | break; | |
423 | 486 | default: |
424 | 487 | SET_ERROR(atom->conn, LLDPCTL_ERR_NOT_EXIST); |
425 | 488 | return NULL; |
2469 | 2532 | .init = _lldpctl_atom_new_config, |
2470 | 2533 | .free = _lldpctl_atom_free_config, |
2471 | 2534 | .get_str = _lldpctl_atom_get_str_config, |
2535 | .set_str = _lldpctl_atom_set_str_config, | |
2472 | 2536 | .get_int = _lldpctl_atom_get_int_config, |
2473 | 2537 | .set_int = _lldpctl_atom_set_int_config }, |
2474 | 2538 | { atom_interfaces_list, sizeof(struct _lldpctl_atom_interfaces_list_t), |
156 | 156 | { |
157 | 157 | uint8_t *buffer = NULL; |
158 | 158 | ssize_t rc; |
159 | if (conn->input_buffer_len >= length) return 0; | |
160 | 159 | |
161 | 160 | if ((buffer = malloc(length)) == NULL) |
162 | 161 | return SET_ERROR(conn, LLDPCTL_ERR_NOMEM); |
584 | 584 | lldpctl_k_config_tx_interval, /**< `(I,WO)` Transmit interval. When set to -1, it is meant to transmit now. */ |
585 | 585 | lldpctl_k_config_receiveonly, /**< `(I,WO)` Receive only mode */ |
586 | 586 | lldpctl_k_config_mgmt_pattern, /**< `(S)` Pattern to choose the management address */ |
587 | lldpctl_k_config_iface_pattern, /**< `(S)` Pattern of enabled interfaces */ | |
587 | lldpctl_k_config_iface_pattern, /**< `(S,WO)` Pattern of enabled interfaces */ | |
588 | 588 | lldpctl_k_config_cid_pattern, /**< `(S)` Interface pattern to choose the chassis ID */ |
589 | lldpctl_k_config_description, /**< `(S)` Chassis description overridden */ | |
590 | lldpctl_k_config_platform, /**< `(S)` Platform description overridden (CDP) */ | |
589 | lldpctl_k_config_description, /**< `(S,WO)` Chassis description overridden */ | |
590 | lldpctl_k_config_platform, /**< `(S,WO)` Platform description overridden (CDP) */ | |
591 | 591 | lldpctl_k_config_advertise_version, /**< `(I)` Advertise version */ |
592 | 592 | lldpctl_k_config_lldpmed_noinventory, /**< `(I)` Disable LLDP-MED inventory */ |
593 | 593 | lldpctl_k_config_paused, /**< `(I)` lldpd is paused */ |
594 | 594 | lldpctl_k_config_fast_start_enabled, /**< `(I,WO)` Is fast start enabled */ |
595 | 595 | lldpctl_k_config_fast_start_interval, /**< `(I,WO)` Start fast transmit interval */ |
596 | 596 | |
597 | lldpctl_k_interface_name, /**< `(S)` The interface name. */ | |
598 | ||
599 | lldpctl_k_port_name, /**< `(S)` The port name. Only works for a local port. */ | |
597 | lldpctl_k_interface_name = 1000, /**< `(S)` The interface name. */ | |
598 | ||
599 | lldpctl_k_port_name = 1100, /**< `(S)` The port name. Only works for a local port. */ | |
600 | 600 | lldpctl_k_port_index, /**< `(I)` The port index. Only works for a local port. */ |
601 | 601 | /** |
602 | 602 | * `(AL)` The list of known neighbors for this port. |
603 | 603 | * |
604 | 604 | * A neighbor is in fact a remote port. |
605 | 605 | */ |
606 | lldpctl_k_port_neighbors, | |
606 | lldpctl_k_port_neighbors = 1200, | |
607 | 607 | lldpctl_k_port_protocol, /**< `(IS)` The protocol that was used to retrieve this information. */ |
608 | 608 | lldpctl_k_port_age, /**< `(I)` Age of information, seconds from epoch. */ |
609 | 609 | lldpctl_k_port_id_subtype, /**< `(IS)` The subtype ID of this port. */ |
611 | 611 | lldpctl_k_port_descr, /**< `(S)` The description of this port. */ |
612 | 612 | lldpctl_k_port_hidden, /**< `(I)` Is this port hidden (or should it be displayed?)? */ |
613 | 613 | |
614 | lldpctl_k_port_dot3_mfs, /**< `(I)` MFS */ | |
614 | lldpctl_k_port_dot3_mfs = 1300, /**< `(I)` MFS */ | |
615 | 615 | lldpctl_k_port_dot3_aggregid, /**< `(I)` Port aggregation ID */ |
616 | 616 | lldpctl_k_port_dot3_autoneg_support, /**< `(I)` Autonegotiation support. */ |
617 | 617 | lldpctl_k_port_dot3_autoneg_enabled, /**< `(I)` Autonegotiation enabled. */ |
618 | 618 | lldpctl_k_port_dot3_autoneg_advertised, /**< `(I)` Advertised protocols. See `LLDP_DOT3_LINK_AUTONEG_*` */ |
619 | 619 | lldpctl_k_port_dot3_mautype, /**< `(IS)` Current MAU type. See `LLDP_DOT3_MAU_*` */ |
620 | 620 | |
621 | lldpctl_k_port_dot3_power, /**< `(A,WO)` Dot3 power related stuff. */ | |
621 | lldpctl_k_port_dot3_power = 1400, /**< `(A,WO)` Dot3 power related stuff. */ | |
622 | 622 | lldpctl_k_dot3_power_devicetype, /**< `(IS,W)` Device type. See `LLDP_DOT3_POWER_PSE/PD` */ |
623 | 623 | lldpctl_k_dot3_power_supported, /**< `(I,W)` Is MDI power supported. */ |
624 | 624 | lldpctl_k_dot3_power_enabled, /**< `(I,W)` Is MDI power enabled. */ |
631 | 631 | lldpctl_k_dot3_power_allocated, /**< `(I,W)` 802.3AT power allocated */ |
632 | 632 | lldpctl_k_dot3_power_requested, /**< `(I,W)` 802.3AT power requested */ |
633 | 633 | |
634 | lldpctl_k_port_vlan_pvid, /**< `(I)` Primary VLAN ID */ | |
634 | lldpctl_k_port_vlan_pvid = 1500, /**< `(I)` Primary VLAN ID */ | |
635 | 635 | lldpctl_k_port_vlans, /**< `(AL)` List of VLAN */ |
636 | 636 | lldpctl_k_vlan_id, /**< `(I)` VLAN ID */ |
637 | 637 | lldpctl_k_vlan_name, /**< `(S)` VLAN name */ |
638 | 638 | |
639 | lldpctl_k_port_ppvids, /**< `(AL)` List of PPVIDs */ | |
639 | lldpctl_k_port_ppvids = 1600, /**< `(AL)` List of PPVIDs */ | |
640 | 640 | lldpctl_k_ppvid_status, /**< `(I)` Status of PPVID (see `LLDP_PPVID_CAP_*`) */ |
641 | 641 | lldpctl_k_ppvid_id, /**< `(I)` ID of PPVID */ |
642 | 642 | |
643 | lldpctl_k_port_pis, /**< `(AL)` List of PIDs */ | |
643 | lldpctl_k_port_pis = 1700, /**< `(AL)` List of PIDs */ | |
644 | 644 | lldpctl_k_pi_id, /**< `(B)` PID value */ |
645 | 645 | |
646 | lldpctl_k_chassis_index, /**< `(I)` The chassis index. */ | |
646 | lldpctl_k_chassis_index = 1800, /**< `(I)` The chassis index. */ | |
647 | 647 | lldpctl_k_chassis_id_subtype, /**< `(IS)` The subtype ID of this chassis. */ |
648 | 648 | lldpctl_k_chassis_id, /**< `(BS)` The ID of this chassis. */ |
649 | 649 | lldpctl_k_chassis_name, /**< `(S)` The name of this chassis. */ |
652 | 652 | lldpctl_k_chassis_cap_enabled, /**< `(I)` Enabled capabilities (see `LLDP_CAP_*`) */ |
653 | 653 | lldpctl_k_chassis_mgmt, /**< `(AL)` List of management addresses */ |
654 | 654 | |
655 | lldpctl_k_chassis_med_type, /**< `(IS)` Chassis MED type. See `LLDP_MED_CLASS_*` */ | |
655 | lldpctl_k_chassis_med_type = 1900, /**< `(IS)` Chassis MED type. See `LLDP_MED_CLASS_*` */ | |
656 | 656 | lldpctl_k_chassis_med_cap, /**< `(I)` Available MED capabilitied. See `LLDP_MED_CAP_*` */ |
657 | 657 | lldpctl_k_chassis_med_inventory_hw, /**< `(S)` LLDP MED inventory "Hardware Revision" */ |
658 | 658 | lldpctl_k_chassis_med_inventory_sw, /**< `(S)` LLDP MED inventory "Software Revision" */ |
662 | 662 | lldpctl_k_chassis_med_inventory_model, /**< `(S)` LLDP MED inventory "Model" */ |
663 | 663 | lldpctl_k_chassis_med_inventory_asset, /**< `(S)` LLDP MED inventory "Asset ID" */ |
664 | 664 | |
665 | lldpctl_k_port_med_policies, /**< `(AL,WO)` MED policies attached to a port. */ | |
665 | lldpctl_k_port_med_policies = 2000, /**< `(AL,WO)` MED policies attached to a port. */ | |
666 | 666 | lldpctl_k_med_policy_type, /**< `(IS,W)` MED policy app type. See `LLDP_MED_APPTYPE_*`. 0 if a policy is not defined. */ |
667 | 667 | lldpctl_k_med_policy_unknown, /**< `(I,W)` Is MED policy defined? */ |
668 | 668 | lldpctl_k_med_policy_tagged, /**< `(I,W)` MED policy tagging */ |
670 | 670 | lldpctl_k_med_policy_priority, /**< `(I,W)` MED policy priority */ |
671 | 671 | lldpctl_k_med_policy_dscp, /**< `(I,W)` MED policy DSCP */ |
672 | 672 | |
673 | lldpctl_k_port_med_locations, /**< `(AL,WO)` MED locations attached to a port. */ | |
673 | lldpctl_k_port_med_locations = 2100, /**< `(AL,WO)` MED locations attached to a port. */ | |
674 | 674 | lldpctl_k_med_location_format, /**< `(IS,W)` MED location format. See |
675 | 675 | * `LLDP_MED_LOCFORMAT_*`. 0 if this |
676 | 676 | * location is not defined. When written, |
683 | 683 | lldpctl_k_med_location_altitude_unit, /**< `(S,W)` MED altitude unit. See `LLDP_MED_LOCATION_ALTITUDE_UNIT_*`. |
684 | 684 | * Only if format is COORD. */ |
685 | 685 | |
686 | lldpctl_k_med_location_country, /**< `(S,W)` MED country. Only if format is CIVIC. */ | |
686 | lldpctl_k_med_location_country = 2200, /**< `(S,W)` MED country. Only if format is CIVIC. */ | |
687 | 687 | lldpctl_k_med_location_elin, /**< `(S,W)` MED ELIN. Only if format is ELIN. */ |
688 | 688 | |
689 | lldpctl_k_med_location_ca_elements, /**< `(AL,WC)` MED civic address elements. Only if format is CIVIC */ | |
689 | lldpctl_k_med_location_ca_elements = 2300, /**< `(AL,WC)` MED civic address elements. Only if format is CIVIC */ | |
690 | 690 | lldpctl_k_med_civicaddress_type, /**< `(IS,W)` MED civic address type. */ |
691 | 691 | lldpctl_k_med_civicaddress_value, /**< `(S,W)` MED civic address value. */ |
692 | 692 | |
693 | lldpctl_k_port_med_power, /**< `(A,WO)` LLDP-MED power related stuff. */ | |
693 | lldpctl_k_port_med_power = 2400, /**< `(A,WO)` LLDP-MED power related stuff. */ | |
694 | 694 | lldpctl_k_med_power_type, /**< `(IS,W)` LLDP MED power device type. See `LLDP_MED_POW_TYPE_*` */ |
695 | 695 | lldpctl_k_med_power_source, /**< `(IS,W)` LLDP MED power source. See `LLDP_MED_POW_SOURCE_*` */ |
696 | 696 | lldpctl_k_med_power_priority, /**< `(IS,W)` LLDP MED power priority. See `LLDP_MED_POW_PRIO_*` */ |
697 | 697 | lldpctl_k_med_power_val, /**< `(I,W)` LLDP MED power value */ |
698 | 698 | |
699 | lldpctl_k_mgmt_ip, /**< `(S)` IP address */ | |
700 | ||
701 | lldpctl_k_tx_cnt, /**< `(I)` tx cnt. Only works for a local port. */ | |
699 | lldpctl_k_mgmt_ip = 3000, /**< `(S)` IP address */ | |
700 | ||
701 | lldpctl_k_tx_cnt = 4000, /**< `(I)` tx cnt. Only works for a local port. */ | |
702 | 702 | lldpctl_k_rx_cnt, /**< `(I)` rx cnt. Only works for a local port. */ |
703 | 703 | lldpctl_k_rx_discarded_cnt, /**< `(I)` discarded cnt. Only works for a local port. */ |
704 | 704 | lldpctl_k_rx_unrecognized_cnt, /**< `(I)` unrecognized cnt. Only works for a local port. */ |
705 | 705 | lldpctl_k_ageout_cnt, /**< `(I)` ageout cnt. Only works for a local port. */ |
706 | 706 | lldpctl_k_insert_cnt, /**< `(I)` insert cnt. Only works for a local port. */ |
707 | 707 | lldpctl_k_delete_cnt, /**< `(I)` delete cnt. Only works for a local port. */ |
708 | lldpctl_k_config_tx_hold, /**< `(I,WO)` Transmit hold interval. */ | |
708 | 709 | } lldpctl_key_t; |
709 | 710 | |
710 | 711 | /** |
121 | 121 | port_next = TAILQ_NEXT(port, p_entries); |
122 | 122 | del = (expire == NULL); |
123 | 123 | if (expire && |
124 | (now - port->p_lastupdate > port->p_chassis->c_ttl)) { | |
124 | (now - port->p_lastupdate >= port->p_chassis->c_ttl)) { | |
125 | 125 | hardware->h_ageout_cnt++; |
126 | 126 | hardware->h_delete_cnt++; |
127 | 127 | expire(hardware, port); |
49 | 49 | }; |
50 | 50 | MARSHAL_BEGIN(lldpd_ppvid) |
51 | 51 | MARSHAL_TQE(lldpd_ppvid, p_entries) |
52 | MARSHAL_END; | |
52 | MARSHAL_END(lldpd_ppvid); | |
53 | 53 | |
54 | 54 | struct lldpd_vlan { |
55 | 55 | TAILQ_ENTRY(lldpd_vlan) v_entries; |
59 | 59 | MARSHAL_BEGIN(lldpd_vlan) |
60 | 60 | MARSHAL_TQE(lldpd_vlan, v_entries) |
61 | 61 | MARSHAL_STR(lldpd_vlan, v_name) |
62 | MARSHAL_END; | |
62 | MARSHAL_END(lldpd_vlan); | |
63 | 63 | |
64 | 64 | struct lldpd_pi { |
65 | 65 | TAILQ_ENTRY(lldpd_pi) p_entries; |
69 | 69 | MARSHAL_BEGIN(lldpd_pi) |
70 | 70 | MARSHAL_TQE(lldpd_pi, p_entries) |
71 | 71 | MARSHAL_FSTR(lldpd_pi, p_pi, p_pi_len) |
72 | MARSHAL_END; | |
72 | MARSHAL_END(lldpd_pi); | |
73 | 73 | #endif |
74 | 74 | |
75 | 75 | #ifdef ENABLE_LLDPMED |
92 | 92 | }; |
93 | 93 | MARSHAL_BEGIN(lldpd_med_loc) |
94 | 94 | MARSHAL_FSTR(lldpd_med_loc, data, data_len) |
95 | MARSHAL_END; | |
95 | MARSHAL_END(lldpd_med_loc); | |
96 | 96 | |
97 | 97 | struct lldpd_med_power { |
98 | 98 | u_int8_t devicetype; /* PD or PSE */ |
160 | 160 | }; |
161 | 161 | MARSHAL_BEGIN(lldpd_mgmt) |
162 | 162 | MARSHAL_TQE(lldpd_mgmt, m_entries) |
163 | MARSHAL_END; | |
163 | MARSHAL_END(lldpd_mgmt); | |
164 | 164 | |
165 | 165 | struct lldpd_chassis { |
166 | 166 | TAILQ_ENTRY(lldpd_chassis) c_entries; |
211 | 211 | MARSHAL_STR(lldpd_chassis, c_med_model) |
212 | 212 | MARSHAL_STR(lldpd_chassis, c_med_asset) |
213 | 213 | #endif |
214 | MARSHAL_END; | |
214 | MARSHAL_END(lldpd_chassis); | |
215 | 215 | |
216 | 216 | |
217 | 217 | struct lldpd_port { |
269 | 269 | MARSHAL_SUBTQ(lldpd_port, lldpd_ppvid, p_ppvids) |
270 | 270 | MARSHAL_SUBTQ(lldpd_port, lldpd_pi, p_pids) |
271 | 271 | #endif |
272 | MARSHAL_END; | |
272 | MARSHAL_END(lldpd_port); | |
273 | 273 | |
274 | 274 | /* Used to modify some port related settings */ |
275 | 275 | struct lldpd_port_set { |
293 | 293 | #ifdef ENABLE_DOT3 |
294 | 294 | MARSHAL_POINTER(lldpd_port_set, lldpd_dot3_power, dot3_power) |
295 | 295 | #endif |
296 | MARSHAL_END; | |
296 | MARSHAL_END(lldpd_port_set); | |
297 | 297 | |
298 | 298 | /* Smart mode / Hide mode */ |
299 | 299 | #define SMART_INCOMING_FILTER (1<<0) /* Incoming filtering enabled */ |
330 | 330 | int c_tx_fast_init; /* Num of lldpd lldppdu's for fast start */ |
331 | 331 | int c_tx_fast_interval; /* Time intr between sends during fast start */ |
332 | 332 | #endif |
333 | int c_tx_hold; /* Transmit hold */ | |
333 | 334 | }; |
334 | 335 | MARSHAL_BEGIN(lldpd_config) |
335 | 336 | MARSHAL_STR(lldpd_config, c_mgmt_pattern) |
337 | 338 | MARSHAL_STR(lldpd_config, c_iface_pattern) |
338 | 339 | MARSHAL_STR(lldpd_config, c_platform) |
339 | 340 | MARSHAL_STR(lldpd_config, c_description) |
340 | MARSHAL_END; | |
341 | MARSHAL_END(lldpd_config); | |
341 | 342 | |
342 | 343 | struct lldpd_frame { |
343 | 344 | int size; |
404 | 405 | MARSHAL_IGNORE(lldpd_hardware, h_cfg) |
405 | 406 | MARSHAL_SUBSTRUCT(lldpd_hardware, lldpd_port, h_lport) |
406 | 407 | MARSHAL_SUBTQ(lldpd_hardware, lldpd_port, h_rports) |
407 | MARSHAL_END; | |
408 | MARSHAL_END(lldpd_hardware); | |
408 | 409 | |
409 | 410 | struct lldpd_interface { |
410 | 411 | TAILQ_ENTRY(lldpd_interface) next; |
413 | 414 | MARSHAL_BEGIN(lldpd_interface) |
414 | 415 | MARSHAL_TQE(lldpd_interface, next) |
415 | 416 | MARSHAL_STR(lldpd_interface, name) |
416 | MARSHAL_END; | |
417 | MARSHAL_END(lldpd_interface); | |
417 | 418 | TAILQ_HEAD(lldpd_interface_list, lldpd_interface); |
418 | 419 | MARSHAL_TQ(lldpd_interface_list, lldpd_interface); |
419 | 420 | |
428 | 429 | MARSHAL_BEGIN(lldpd_neighbor_change) |
429 | 430 | MARSHAL_STR(lldpd_neighbor_change, ifname) |
430 | 431 | MARSHAL_POINTER(lldpd_neighbor_change, lldpd_port, neighbor) |
431 | MARSHAL_END; | |
432 | MARSHAL_END(lldpd_neighbor_change); | |
432 | 433 | |
433 | 434 | /* Cleanup functions */ |
434 | 435 | void lldpd_chassis_mgmt_cleanup(struct lldpd_chassis *); |
130 | 130 | char *result; |
131 | 131 | if (vasprintf(&result, fmt, ap) != -1) { |
132 | 132 | logh(pri, result); |
133 | free(result); | |
133 | 134 | return; |
134 | 135 | } |
135 | 136 | /* Otherwise, fallback to output on stderr. */ |
29 | 29 | |
30 | 30 | #include "lldpd-structs.h" |
31 | 31 | |
32 | /* Stolen from CCAN */ | |
33 | #define ALIGNOF(t) ((char *)(&((struct { char c; t _h; } *)0)->_h) - (char *)0) | |
34 | ||
32 | 35 | /* A serialized object */ |
33 | 36 | struct marshal_serialized { |
34 | 37 | void *orig; /* Original reference. Also enforce alignment. */ |
128 | 131 | /* Then, serialize inner structures */ |
129 | 132 | for (current = mi->pointers; current->mi; current++) { |
130 | 133 | size_t sublen; |
134 | size_t padlen; | |
131 | 135 | void *source; |
132 | 136 | void *target = NULL; |
133 | 137 | if (current->kind == ignore) continue; |
162 | 166 | } |
163 | 167 | } |
164 | 168 | if (sublen == 0) continue; /* This was already serialized */ |
165 | /* Append the result */ | |
166 | new = realloc(serialized, len + sublen); | |
169 | /* Append the result, force alignment to be able to unserialize it */ | |
170 | padlen = ALIGNOF(struct marshal_serialized); | |
171 | padlen = (padlen - (len % padlen)) % padlen; | |
172 | new = realloc(serialized, len + padlen + sublen); | |
167 | 173 | if (!new) { |
168 | 174 | log_warnx("marshal", "unable to allocate more memory to serialize structure %s", |
169 | 175 | mi->name); |
172 | 178 | len = -1; |
173 | 179 | goto marshal_error; |
174 | 180 | } |
175 | memcpy((unsigned char *)new + len, target, sublen); | |
181 | memset((unsigned char *)new + len, 0, padlen); | |
182 | memcpy((unsigned char *)new + len + padlen, target, sublen); | |
176 | 183 | free(target); |
177 | len += sublen; | |
184 | len += sublen + padlen; | |
178 | 185 | serialized = (struct marshal_serialized *)new; |
179 | 186 | } |
180 | 187 | |
298 | 305 | /* Then, each substructure */ |
299 | 306 | for (current = mi->pointers; current->mi; current++) { |
300 | 307 | size_t sublen; |
308 | size_t padlen; | |
301 | 309 | new = (unsigned char *)*output + current->offset; |
302 | 310 | if (current->kind == ignore) { |
303 | 311 | memset((unsigned char *)*output + current->offset, |
321 | 329 | /* Deserialize */ |
322 | 330 | if (current->offset2) |
323 | 331 | memcpy(&osize, (unsigned char *)*output + current->offset2, sizeof(int)); |
324 | sublen = marshal_unserialize_(current->mi, | |
325 | (unsigned char *)buffer + total_len, len - total_len, &new, pointers, | |
326 | current->kind == substruct, osize); | |
327 | if (sublen == 0) { | |
332 | padlen = ALIGNOF(struct marshal_serialized); | |
333 | padlen = (padlen - (total_len % padlen)) % padlen; | |
334 | if (len < total_len + padlen || ((sublen = marshal_unserialize_(current->mi, | |
335 | (unsigned char *)buffer + total_len + padlen, | |
336 | len - total_len - padlen, &new, pointers, | |
337 | current->kind == substruct, osize)) == 0)) { | |
328 | 338 | log_warnx("marshal", "unable to serialize substructure %s for %s", |
329 | 339 | current->mi->name, mi->name); |
330 | 340 | total_len = 0; |
334 | 344 | if (current->kind == pointer) |
335 | 345 | memcpy((unsigned char *)*output + current->offset, |
336 | 346 | &new, sizeof(void *)); |
337 | total_len += sublen; | |
347 | total_len += sublen + padlen; | |
338 | 348 | } |
339 | 349 | |
340 | 350 | unmarshal_error: |
56 | 56 | marshal. The marshalled type has to be a structure. */ |
57 | 57 | #define MARSHAL_INFO(type) marshal_info_##type |
58 | 58 | #ifdef MARSHAL_EXPORT |
59 | #define MARSHAL_HELPER_FUNCTIONS(type, ttype) \ | |
60 | ssize_t \ | |
61 | type ## _serialize(ttype *source, void *buffer) { \ | |
62 | return marshal_serialize(type, \ | |
63 | source, buffer); \ | |
64 | } \ | |
65 | size_t \ | |
66 | type ## _unserialize(void *buffer, size_t len, \ | |
67 | ttype **destination) { \ | |
68 | void *p; \ | |
69 | size_t rc; \ | |
70 | rc = marshal_unserialize(type, \ | |
71 | buffer, len, &p); \ | |
72 | if (rc <= 0) return rc; \ | |
73 | *destination = p; \ | |
74 | return rc; \ | |
75 | } | |
59 | 76 | #define MARSHAL_BEGIN(type) struct marshal_info MARSHAL_INFO(type) = \ |
60 | 77 | { \ |
61 | 78 | .name = #type, \ |
71 | 88 | .offset2 = offsetof(struct type, len), \ |
72 | 89 | .kind = pointer, \ |
73 | 90 | .mi = &marshal_info_fstring }, |
74 | #define MARSHAL_END MARSHAL_SUBINFO_NULL }} | |
91 | #define MARSHAL_END(type) MARSHAL_SUBINFO_NULL }}; \ | |
92 | MARSHAL_HELPER_FUNCTIONS(type, struct type) | |
75 | 93 | #else |
76 | #define MARSHAL_BEGIN(type) extern struct marshal_info MARSHAL_INFO(type) | |
94 | #define MARSHAL_HELPER_FUNCTIONS(type, ttype) \ | |
95 | ssize_t type ## _serialize(ttype*, void*); \ | |
96 | size_t type ## _unserialize(void*, size_t, ttype**); | |
97 | #define MARSHAL_BEGIN(type) extern struct marshal_info MARSHAL_INFO(type); | |
77 | 98 | #define MARSHAL_ADD(...) |
78 | 99 | #define MARSHAL_FSTR(...) |
79 | #define MARSHAL_END | |
100 | #define MARSHAL_END(type) MARSHAL_HELPER_FUNCTIONS(type, struct type) | |
80 | 101 | #endif |
81 | 102 | /* Shortcuts */ |
82 | 103 | #define MARSHAL_POINTER(...) MARSHAL_ADD(pointer, ##__VA_ARGS__) |
98 | 119 | MARSHAL_IGNORE(type, field.tqh_last) |
99 | 120 | #define MARSHAL(type) \ |
100 | 121 | MARSHAL_BEGIN(type) \ |
101 | MARSHAL_END | |
122 | MARSHAL_END(type) | |
102 | 123 | #define MARSHAL_TQ(type, subtype) \ |
103 | 124 | MARSHAL_BEGIN(type) \ |
104 | 125 | MARSHAL_TQH(type, subtype) \ |
105 | MARSHAL_END | |
126 | MARSHAL_END(type) | |
106 | 127 | |
107 | 128 | /* Serialization */ |
108 | 129 | ssize_t marshal_serialize_(struct marshal_info *, void *, void **, int, void *, int) |
0 | #! /bin/sh | |
1 | # test-driver - basic testsuite driver script. | |
2 | ||
3 | scriptversion=2012-06-27.10; # UTC | |
4 | ||
5 | # Copyright (C) 2011-2013 Free Software Foundation, Inc. | |
6 | # | |
7 | # This program is free software; you can redistribute it and/or modify | |
8 | # it under the terms of the GNU General Public License as published by | |
9 | # the Free Software Foundation; either version 2, or (at your option) | |
10 | # any later version. | |
11 | # | |
12 | # This program is distributed in the hope that it will be useful, | |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | # GNU General Public License for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU General Public License | |
18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 | ||
20 | # As a special exception to the GNU General Public License, if you | |
21 | # distribute this file as part of a program that contains a | |
22 | # configuration script generated by Autoconf, you may include it under | |
23 | # the same distribution terms that you use for the rest of that program. | |
24 | ||
25 | # This file is maintained in Automake, please report | |
26 | # bugs to <bug-automake@gnu.org> or send patches to | |
27 | # <automake-patches@gnu.org>. | |
28 | ||
29 | # Make unconditional expansion of undefined variables an error. This | |
30 | # helps a lot in preventing typo-related bugs. | |
31 | set -u | |
32 | ||
33 | usage_error () | |
34 | { | |
35 | echo "$0: $*" >&2 | |
36 | print_usage >&2 | |
37 | exit 2 | |
38 | } | |
39 | ||
40 | print_usage () | |
41 | { | |
42 | cat <<END | |
43 | Usage: | |
44 | test-driver --test-name=NAME --log-file=PATH --trs-file=PATH | |
45 | [--expect-failure={yes|no}] [--color-tests={yes|no}] | |
46 | [--enable-hard-errors={yes|no}] [--] TEST-SCRIPT | |
47 | The '--test-name', '--log-file' and '--trs-file' options are mandatory. | |
48 | END | |
49 | } | |
50 | ||
51 | # TODO: better error handling in option parsing (in particular, ensure | |
52 | # TODO: $log_file, $trs_file and $test_name are defined). | |
53 | test_name= # Used for reporting. | |
54 | log_file= # Where to save the output of the test script. | |
55 | trs_file= # Where to save the metadata of the test run. | |
56 | expect_failure=no | |
57 | color_tests=no | |
58 | enable_hard_errors=yes | |
59 | while test $# -gt 0; do | |
60 | case $1 in | |
61 | --help) print_usage; exit $?;; | |
62 | --version) echo "test-driver $scriptversion"; exit $?;; | |
63 | --test-name) test_name=$2; shift;; | |
64 | --log-file) log_file=$2; shift;; | |
65 | --trs-file) trs_file=$2; shift;; | |
66 | --color-tests) color_tests=$2; shift;; | |
67 | --expect-failure) expect_failure=$2; shift;; | |
68 | --enable-hard-errors) enable_hard_errors=$2; shift;; | |
69 | --) shift; break;; | |
70 | -*) usage_error "invalid option: '$1'";; | |
71 | esac | |
72 | shift | |
73 | done | |
74 | ||
75 | if test $color_tests = yes; then | |
76 | # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'. | |
77 | red='[0;31m' # Red. | |
78 | grn='[0;32m' # Green. | |
79 | lgn='[1;32m' # Light green. | |
80 | blu='[1;34m' # Blue. | |
81 | mgn='[0;35m' # Magenta. | |
82 | std='[m' # No color. | |
83 | else | |
84 | red= grn= lgn= blu= mgn= std= | |
85 | fi | |
86 | ||
87 | do_exit='rm -f $log_file $trs_file; (exit $st); exit $st' | |
88 | trap "st=129; $do_exit" 1 | |
89 | trap "st=130; $do_exit" 2 | |
90 | trap "st=141; $do_exit" 13 | |
91 | trap "st=143; $do_exit" 15 | |
92 | ||
93 | # Test script is run here. | |
94 | "$@" >$log_file 2>&1 | |
95 | estatus=$? | |
96 | if test $enable_hard_errors = no && test $estatus -eq 99; then | |
97 | estatus=1 | |
98 | fi | |
99 | ||
100 | case $estatus:$expect_failure in | |
101 | 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; | |
102 | 0:*) col=$grn res=PASS recheck=no gcopy=no;; | |
103 | 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; | |
104 | 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; | |
105 | *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; | |
106 | *:*) col=$red res=FAIL recheck=yes gcopy=yes;; | |
107 | esac | |
108 | ||
109 | # Report outcome to console. | |
110 | echo "${col}${res}${std}: $test_name" | |
111 | ||
112 | # Register the test result, and other relevant metadata. | |
113 | echo ":test-result: $res" > $trs_file | |
114 | echo ":global-test-result: $res" >> $trs_file | |
115 | echo ":recheck: $recheck" >> $trs_file | |
116 | echo ":copy-in-global-log: $gcopy" >> $trs_file | |
117 | ||
118 | # Local Variables: | |
119 | # mode: shell-script | |
120 | # sh-indentation: 2 | |
121 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
122 | # time-stamp-start: "scriptversion=" | |
123 | # time-stamp-format: "%:y-%02m-%02d.%02H" | |
124 | # time-stamp-time-zone: "UTC" | |
125 | # time-stamp-end: "; # UTC" | |
126 | # End: |
0 | # Makefile.in generated by automake 1.11.6 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.3 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
5 | # Foundation, Inc. | |
3 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | |
4 | ||
6 | 5 | # This Makefile.in is free software; the Free Software Foundation |
7 | 6 | # gives unlimited permission to copy and/or distribute it, |
8 | 7 | # with or without modifications, as long as this notice is preserved. |
14 | 13 | |
15 | 14 | @SET_MAKE@ |
16 | 15 | VPATH = @srcdir@ |
17 | am__make_dryrun = \ | |
18 | { \ | |
19 | am__dry=no; \ | |
16 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | |
17 | am__make_running_with_option = \ | |
18 | case $${target_option-} in \ | |
19 | ?) ;; \ | |
20 | *) echo "am__make_running_with_option: internal error: invalid" \ | |
21 | "target option '$${target_option-}' specified" >&2; \ | |
22 | exit 1;; \ | |
23 | esac; \ | |
24 | has_opt=no; \ | |
25 | sane_makeflags=$$MAKEFLAGS; \ | |
26 | if $(am__is_gnu_make); then \ | |
27 | sane_makeflags=$$MFLAGS; \ | |
28 | else \ | |
20 | 29 | case $$MAKEFLAGS in \ |
21 | 30 | *\\[\ \ ]*) \ |
22 | echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | |
23 | | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ | |
24 | *) \ | |
25 | for am__flg in $$MAKEFLAGS; do \ | |
26 | case $$am__flg in \ | |
27 | *=*|--*) ;; \ | |
28 | *n*) am__dry=yes; break;; \ | |
29 | esac; \ | |
30 | done;; \ | |
31 | bs=\\; \ | |
32 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | |
33 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | |
31 | 34 | esac; \ |
32 | test $$am__dry = yes; \ | |
33 | } | |
35 | fi; \ | |
36 | skip_next=no; \ | |
37 | strip_trailopt () \ | |
38 | { \ | |
39 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | |
40 | }; \ | |
41 | for flg in $$sane_makeflags; do \ | |
42 | test $$skip_next = yes && { skip_next=no; continue; }; \ | |
43 | case $$flg in \ | |
44 | *=*|--*) continue;; \ | |
45 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | |
46 | -*I?*) strip_trailopt 'I';; \ | |
47 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | |
48 | -*O?*) strip_trailopt 'O';; \ | |
49 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | |
50 | -*l?*) strip_trailopt 'l';; \ | |
51 | -[dEDm]) skip_next=yes;; \ | |
52 | -[JT]) skip_next=yes;; \ | |
53 | esac; \ | |
54 | case $$flg in \ | |
55 | *$$target_option*) has_opt=yes; break;; \ | |
56 | esac; \ | |
57 | done; \ | |
58 | test $$has_opt = yes | |
59 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | |
60 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | |
34 | 61 | pkgdatadir = $(datadir)/@PACKAGE@ |
35 | 62 | pkgincludedir = $(includedir)/@PACKAGE@ |
36 | 63 | pkglibdir = $(libdir)/@PACKAGE@ |
55 | 82 | @HAVE_CHECK_TRUE@@USE_SNMP_TRUE@am__append_2 = check_snmp |
56 | 83 | @HAVE_CHECK_TRUE@check_PROGRAMS = $(am__EXEEXT_2) |
57 | 84 | subdir = tests |
58 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | |
85 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
86 | $(top_srcdir)/depcomp $(top_srcdir)/test-driver | |
59 | 87 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
60 | 88 | am__aclocal_m4_deps = $(top_srcdir)/m4/args.m4 \ |
61 | 89 | $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ |
90 | 118 | AM_V_lt = $(am__v_lt_@AM_V@) |
91 | 119 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) |
92 | 120 | am__v_lt_0 = --silent |
121 | am__v_lt_1 = | |
93 | 122 | am__check_edp_SOURCES_DIST = check_edp.c \ |
94 | 123 | $(top_srcdir)/src/daemon/lldpd.h common.h common.c |
95 | 124 | @HAVE_CHECK_TRUE@am_check_edp_OBJECTS = check_edp.$(OBJEXT) \ |
130 | 159 | check_sonmp_LDADD = $(LDADD) |
131 | 160 | @HAVE_CHECK_TRUE@check_sonmp_DEPENDENCIES = \ |
132 | 161 | @HAVE_CHECK_TRUE@ $(top_builddir)/src/daemon/liblldpd.la |
162 | AM_V_P = $(am__v_P_@AM_V@) | |
163 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | |
164 | am__v_P_0 = false | |
165 | am__v_P_1 = : | |
166 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
167 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
168 | am__v_GEN_0 = @echo " GEN " $@; | |
169 | am__v_GEN_1 = | |
170 | AM_V_at = $(am__v_at_@AM_V@) | |
171 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
172 | am__v_at_0 = @ | |
173 | am__v_at_1 = | |
133 | 174 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
134 | 175 | depcomp = $(SHELL) $(top_srcdir)/depcomp |
135 | 176 | am__depfiles_maybe = depfiles |
142 | 183 | $(AM_CFLAGS) $(CFLAGS) |
143 | 184 | AM_V_CC = $(am__v_CC_@AM_V@) |
144 | 185 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) |
145 | am__v_CC_0 = @echo " CC " $@; | |
146 | AM_V_at = $(am__v_at_@AM_V@) | |
147 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | |
148 | am__v_at_0 = @ | |
186 | am__v_CC_0 = @echo " CC " $@; | |
187 | am__v_CC_1 = | |
149 | 188 | CCLD = $(CC) |
150 | 189 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ |
151 | 190 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ |
152 | 191 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ |
153 | 192 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) |
154 | 193 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) |
155 | am__v_CCLD_0 = @echo " CCLD " $@; | |
156 | AM_V_GEN = $(am__v_GEN_@AM_V@) | |
157 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | |
158 | am__v_GEN_0 = @echo " GEN " $@; | |
194 | am__v_CCLD_0 = @echo " CCLD " $@; | |
195 | am__v_CCLD_1 = | |
159 | 196 | SOURCES = $(check_cdp_SOURCES) $(check_edp_SOURCES) \ |
160 | 197 | $(check_lldp_SOURCES) $(check_marshal_SOURCES) \ |
161 | 198 | $(check_snmp_SOURCES) $(check_sonmp_SOURCES) |
168 | 205 | n|no|NO) false;; \ |
169 | 206 | *) (install-info --version) >/dev/null 2>&1;; \ |
170 | 207 | esac |
208 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | |
209 | # Read a list of newline-separated strings from the standard input, | |
210 | # and print each of them once, without duplicates. Input order is | |
211 | # *not* preserved. | |
212 | am__uniquify_input = $(AWK) '\ | |
213 | BEGIN { nonempty = 0; } \ | |
214 | { items[$$0] = 1; nonempty = 1; } \ | |
215 | END { if (nonempty) { for (i in items) print i; }; } \ | |
216 | ' | |
217 | # Make sure the list of sources is unique. This is necessary because, | |
218 | # e.g., the same source file might be shared among _SOURCES variables | |
219 | # for different programs/libraries. | |
220 | am__define_uniq_tagged_files = \ | |
221 | list='$(am__tagged_files)'; \ | |
222 | unique=`for i in $$list; do \ | |
223 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
224 | done | $(am__uniquify_input)` | |
171 | 225 | ETAGS = etags |
172 | 226 | CTAGS = ctags |
173 | am__tty_colors = \ | |
174 | red=; grn=; lgn=; blu=; std= | |
227 | am__tty_colors_dummy = \ | |
228 | mgn= red= grn= lgn= blu= brg= std=; \ | |
229 | am__color_tests=no | |
230 | am__tty_colors = { \ | |
231 | $(am__tty_colors_dummy); \ | |
232 | if test "X$(AM_COLOR_TESTS)" = Xno; then \ | |
233 | am__color_tests=no; \ | |
234 | elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ | |
235 | am__color_tests=yes; \ | |
236 | elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ | |
237 | am__color_tests=yes; \ | |
238 | fi; \ | |
239 | if test $$am__color_tests = yes; then \ | |
240 | red='[0;31m'; \ | |
241 | grn='[0;32m'; \ | |
242 | lgn='[1;32m'; \ | |
243 | blu='[1;34m'; \ | |
244 | mgn='[0;35m'; \ | |
245 | brg='[1m'; \ | |
246 | std='[m'; \ | |
247 | fi; \ | |
248 | } | |
249 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | |
250 | am__vpath_adj = case $$p in \ | |
251 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | |
252 | *) f=$$p;; \ | |
253 | esac; | |
254 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | |
255 | am__install_max = 40 | |
256 | am__nobase_strip_setup = \ | |
257 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | |
258 | am__nobase_strip = \ | |
259 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | |
260 | am__nobase_list = $(am__nobase_strip_setup); \ | |
261 | for p in $$list; do echo "$$p $$p"; done | \ | |
262 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | |
263 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | |
264 | if (++n[$$2] == $(am__install_max)) \ | |
265 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | |
266 | END { for (dir in files) print dir, files[dir] }' | |
267 | am__base_list = \ | |
268 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | |
269 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | |
270 | am__uninstall_files_from_dir = { \ | |
271 | test -z "$$files" \ | |
272 | || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ | |
273 | || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ | |
274 | $(am__cd) "$$dir" && rm -f $$files; }; \ | |
275 | } | |
276 | am__recheck_rx = ^[ ]*:recheck:[ ]* | |
277 | am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* | |
278 | am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* | |
279 | # A command that, given a newline-separated list of test names on the | |
280 | # standard input, print the name of the tests that are to be re-run | |
281 | # upon "make recheck". | |
282 | am__list_recheck_tests = $(AWK) '{ \ | |
283 | recheck = 1; \ | |
284 | while ((rc = (getline line < ($$0 ".trs"))) != 0) \ | |
285 | { \ | |
286 | if (rc < 0) \ | |
287 | { \ | |
288 | if ((getline line2 < ($$0 ".log")) < 0) \ | |
289 | recheck = 0; \ | |
290 | break; \ | |
291 | } \ | |
292 | else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ | |
293 | { \ | |
294 | recheck = 0; \ | |
295 | break; \ | |
296 | } \ | |
297 | else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ | |
298 | { \ | |
299 | break; \ | |
300 | } \ | |
301 | }; \ | |
302 | if (recheck) \ | |
303 | print $$0; \ | |
304 | close ($$0 ".trs"); \ | |
305 | close ($$0 ".log"); \ | |
306 | }' | |
307 | # A command that, given a newline-separated list of test names on the | |
308 | # standard input, create the global log from their .trs and .log files. | |
309 | am__create_global_log = $(AWK) ' \ | |
310 | function fatal(msg) \ | |
311 | { \ | |
312 | print "fatal: making $@: " msg | "cat >&2"; \ | |
313 | exit 1; \ | |
314 | } \ | |
315 | function rst_section(header) \ | |
316 | { \ | |
317 | print header; \ | |
318 | len = length(header); \ | |
319 | for (i = 1; i <= len; i = i + 1) \ | |
320 | printf "="; \ | |
321 | printf "\n\n"; \ | |
322 | } \ | |
323 | { \ | |
324 | copy_in_global_log = 1; \ | |
325 | global_test_result = "RUN"; \ | |
326 | while ((rc = (getline line < ($$0 ".trs"))) != 0) \ | |
327 | { \ | |
328 | if (rc < 0) \ | |
329 | fatal("failed to read from " $$0 ".trs"); \ | |
330 | if (line ~ /$(am__global_test_result_rx)/) \ | |
331 | { \ | |
332 | sub("$(am__global_test_result_rx)", "", line); \ | |
333 | sub("[ ]*$$", "", line); \ | |
334 | global_test_result = line; \ | |
335 | } \ | |
336 | else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \ | |
337 | copy_in_global_log = 0; \ | |
338 | }; \ | |
339 | if (copy_in_global_log) \ | |
340 | { \ | |
341 | rst_section(global_test_result ": " $$0); \ | |
342 | while ((rc = (getline line < ($$0 ".log"))) != 0) \ | |
343 | { \ | |
344 | if (rc < 0) \ | |
345 | fatal("failed to read from " $$0 ".log"); \ | |
346 | print line; \ | |
347 | }; \ | |
348 | printf "\n"; \ | |
349 | }; \ | |
350 | close ($$0 ".trs"); \ | |
351 | close ($$0 ".log"); \ | |
352 | }' | |
353 | # Restructured Text title. | |
354 | am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; } | |
355 | # Solaris 10 'make', and several other traditional 'make' implementations, | |
356 | # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it | |
357 | # by disabling -e (using the XSI extension "set +e") if it's set. | |
358 | am__sh_e_setup = case $$- in *e*) set +e;; esac | |
359 | # Default flags passed to test drivers. | |
360 | am__common_driver_flags = \ | |
361 | --color-tests "$$am__color_tests" \ | |
362 | --enable-hard-errors "$$am__enable_hard_errors" \ | |
363 | --expect-failure "$$am__expect_failure" | |
364 | # To be inserted before the command running the test. Creates the | |
365 | # directory for the log if needed. Stores in $dir the directory | |
366 | # containing $f, in $tst the test, in $log the log. Executes the | |
367 | # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and | |
368 | # passes TESTS_ENVIRONMENT. Set up options for the wrapper that | |
369 | # will run the test scripts (or their associated LOG_COMPILER, if | |
370 | # thy have one). | |
371 | am__check_pre = \ | |
372 | $(am__sh_e_setup); \ | |
373 | $(am__vpath_adj_setup) $(am__vpath_adj) \ | |
374 | $(am__tty_colors); \ | |
375 | srcdir=$(srcdir); export srcdir; \ | |
376 | case "$@" in \ | |
377 | */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \ | |
378 | *) am__odir=.;; \ | |
379 | esac; \ | |
380 | test "x$$am__odir" = x"." || test -d "$$am__odir" \ | |
381 | || $(MKDIR_P) "$$am__odir" || exit $$?; \ | |
382 | if test -f "./$$f"; then dir=./; \ | |
383 | elif test -f "$$f"; then dir=; \ | |
384 | else dir="$(srcdir)/"; fi; \ | |
385 | tst=$$dir$$f; log='$@'; \ | |
386 | if test -n '$(DISABLE_HARD_ERRORS)'; then \ | |
387 | am__enable_hard_errors=no; \ | |
388 | else \ | |
389 | am__enable_hard_errors=yes; \ | |
390 | fi; \ | |
391 | case " $(XFAIL_TESTS) " in \ | |
392 | *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \ | |
393 | am__expect_failure=yes;; \ | |
394 | *) \ | |
395 | am__expect_failure=no;; \ | |
396 | esac; \ | |
397 | $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT) | |
398 | # A shell command to get the names of the tests scripts with any registered | |
399 | # extension removed (i.e., equivalently, the names of the test logs, with | |
400 | # the '.log' extension removed). The result is saved in the shell variable | |
401 | # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly, | |
402 | # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)", | |
403 | # since that might cause problem with VPATH rewrites for suffix-less tests. | |
404 | # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'. | |
405 | am__set_TESTS_bases = \ | |
406 | bases='$(TEST_LOGS)'; \ | |
407 | bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ | |
408 | bases=`echo $$bases` | |
409 | RECHECK_LOGS = $(TEST_LOGS) | |
410 | AM_RECURSIVE_TARGETS = check recheck | |
411 | TEST_SUITE_LOG = test-suite.log | |
412 | TEST_EXTENSIONS = @EXEEXT@ .test | |
413 | LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver | |
414 | LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS) | |
415 | am__set_b = \ | |
416 | case '$@' in \ | |
417 | */*) \ | |
418 | case '$*' in \ | |
419 | */*) b='$*';; \ | |
420 | *) b=`echo '$@' | sed 's/\.log$$//'`; \ | |
421 | esac;; \ | |
422 | *) \ | |
423 | b='$*';; \ | |
424 | esac | |
425 | am__test_logs1 = $(TESTS:=.log) | |
426 | am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log) | |
427 | TEST_LOGS = $(am__test_logs2:.test.log=.log) | |
428 | TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver | |
429 | TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \ | |
430 | $(TEST_LOG_FLAGS) | |
175 | 431 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
176 | 432 | ACLOCAL = @ACLOCAL@ |
177 | 433 | AMTAR = @AMTAR@ |
366 | 622 | all: all-am |
367 | 623 | |
368 | 624 | .SUFFIXES: |
369 | .SUFFIXES: .c .lo .o .obj | |
625 | .SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs | |
370 | 626 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) |
371 | 627 | @for dep in $?; do \ |
372 | 628 | case '$(am__configure_deps)' in \ |
406 | 662 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ |
407 | 663 | echo " rm -f" $$list; \ |
408 | 664 | rm -f $$list |
665 | ||
409 | 666 | check_cdp$(EXEEXT): $(check_cdp_OBJECTS) $(check_cdp_DEPENDENCIES) $(EXTRA_check_cdp_DEPENDENCIES) |
410 | 667 | @rm -f check_cdp$(EXEEXT) |
411 | 668 | $(AM_V_CCLD)$(LINK) $(check_cdp_OBJECTS) $(check_cdp_LDADD) $(LIBS) |
669 | ||
412 | 670 | check_edp$(EXEEXT): $(check_edp_OBJECTS) $(check_edp_DEPENDENCIES) $(EXTRA_check_edp_DEPENDENCIES) |
413 | 671 | @rm -f check_edp$(EXEEXT) |
414 | 672 | $(AM_V_CCLD)$(LINK) $(check_edp_OBJECTS) $(check_edp_LDADD) $(LIBS) |
673 | ||
415 | 674 | check_lldp$(EXEEXT): $(check_lldp_OBJECTS) $(check_lldp_DEPENDENCIES) $(EXTRA_check_lldp_DEPENDENCIES) |
416 | 675 | @rm -f check_lldp$(EXEEXT) |
417 | 676 | $(AM_V_CCLD)$(LINK) $(check_lldp_OBJECTS) $(check_lldp_LDADD) $(LIBS) |
677 | ||
418 | 678 | check_marshal$(EXEEXT): $(check_marshal_OBJECTS) $(check_marshal_DEPENDENCIES) $(EXTRA_check_marshal_DEPENDENCIES) |
419 | 679 | @rm -f check_marshal$(EXEEXT) |
420 | 680 | $(AM_V_CCLD)$(LINK) $(check_marshal_OBJECTS) $(check_marshal_LDADD) $(LIBS) |
681 | ||
421 | 682 | check_snmp$(EXEEXT): $(check_snmp_OBJECTS) $(check_snmp_DEPENDENCIES) $(EXTRA_check_snmp_DEPENDENCIES) |
422 | 683 | @rm -f check_snmp$(EXEEXT) |
423 | 684 | $(AM_V_CCLD)$(LINK) $(check_snmp_OBJECTS) $(check_snmp_LDADD) $(LIBS) |
685 | ||
424 | 686 | check_sonmp$(EXEEXT): $(check_sonmp_OBJECTS) $(check_sonmp_DEPENDENCIES) $(EXTRA_check_sonmp_DEPENDENCIES) |
425 | 687 | @rm -f check_sonmp$(EXEEXT) |
426 | 688 | $(AM_V_CCLD)$(LINK) $(check_sonmp_OBJECTS) $(check_sonmp_LDADD) $(LIBS) |
466 | 728 | clean-libtool: |
467 | 729 | -rm -rf .libs _libs |
468 | 730 | |
469 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
470 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
471 | unique=`for i in $$list; do \ | |
472 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
473 | done | \ | |
474 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
475 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
476 | mkid -fID $$unique | |
477 | tags: TAGS | |
478 | ||
479 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
480 | $(TAGS_FILES) $(LISP) | |
731 | ID: $(am__tagged_files) | |
732 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
733 | tags: tags-am | |
734 | TAGS: tags | |
735 | ||
736 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
481 | 737 | set x; \ |
482 | 738 | here=`pwd`; \ |
483 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
484 | unique=`for i in $$list; do \ | |
485 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
486 | done | \ | |
487 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
488 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
739 | $(am__define_uniq_tagged_files); \ | |
489 | 740 | shift; \ |
490 | 741 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
491 | 742 | test -n "$$unique" || unique=$$empty_fix; \ |
497 | 748 | $$unique; \ |
498 | 749 | fi; \ |
499 | 750 | fi |
500 | ctags: CTAGS | |
501 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | |
502 | $(TAGS_FILES) $(LISP) | |
503 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
504 | unique=`for i in $$list; do \ | |
505 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
506 | done | \ | |
507 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
508 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
751 | ctags: ctags-am | |
752 | ||
753 | CTAGS: ctags | |
754 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
755 | $(am__define_uniq_tagged_files); \ | |
509 | 756 | test -z "$(CTAGS_ARGS)$$unique" \ |
510 | 757 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
511 | 758 | $$unique |
514 | 761 | here=`$(am__cd) $(top_builddir) && pwd` \ |
515 | 762 | && $(am__cd) $(top_srcdir) \ |
516 | 763 | && gtags -i $(GTAGS_ARGS) "$$here" |
764 | cscopelist: cscopelist-am | |
765 | ||
766 | cscopelist-am: $(am__tagged_files) | |
767 | list='$(am__tagged_files)'; \ | |
768 | case "$(srcdir)" in \ | |
769 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | |
770 | *) sdir=$(subdir)/$(srcdir) ;; \ | |
771 | esac; \ | |
772 | for i in $$list; do \ | |
773 | if test -f "$$i"; then \ | |
774 | echo "$(subdir)/$$i"; \ | |
775 | else \ | |
776 | echo "$$sdir/$$i"; \ | |
777 | fi; \ | |
778 | done >> $(top_builddir)/cscope.files | |
517 | 779 | |
518 | 780 | distclean-tags: |
519 | 781 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
520 | 782 | |
521 | check-TESTS: $(TESTS) | |
522 | @failed=0; all=0; xfail=0; xpass=0; skip=0; \ | |
523 | srcdir=$(srcdir); export srcdir; \ | |
524 | list=' $(TESTS) '; \ | |
525 | $(am__tty_colors); \ | |
526 | if test -n "$$list"; then \ | |
527 | for tst in $$list; do \ | |
528 | if test -f ./$$tst; then dir=./; \ | |
529 | elif test -f $$tst; then dir=; \ | |
530 | else dir="$(srcdir)/"; fi; \ | |
531 | if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ | |
532 | all=`expr $$all + 1`; \ | |
533 | case " $(XFAIL_TESTS) " in \ | |
534 | *[\ \ ]$$tst[\ \ ]*) \ | |
535 | xpass=`expr $$xpass + 1`; \ | |
536 | failed=`expr $$failed + 1`; \ | |
537 | col=$$red; res=XPASS; \ | |
538 | ;; \ | |
539 | *) \ | |
540 | col=$$grn; res=PASS; \ | |
541 | ;; \ | |
542 | esac; \ | |
543 | elif test $$? -ne 77; then \ | |
544 | all=`expr $$all + 1`; \ | |
545 | case " $(XFAIL_TESTS) " in \ | |
546 | *[\ \ ]$$tst[\ \ ]*) \ | |
547 | xfail=`expr $$xfail + 1`; \ | |
548 | col=$$lgn; res=XFAIL; \ | |
549 | ;; \ | |
550 | *) \ | |
551 | failed=`expr $$failed + 1`; \ | |
552 | col=$$red; res=FAIL; \ | |
553 | ;; \ | |
554 | esac; \ | |
783 | # Recover from deleted '.trs' file; this should ensure that | |
784 | # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create | |
785 | # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells | |
786 | # to avoid problems with "make -n". | |
787 | .log.trs: | |
788 | rm -f $< $@ | |
789 | $(MAKE) $(AM_MAKEFLAGS) $< | |
790 | ||
791 | # Leading 'am--fnord' is there to ensure the list of targets does not | |
792 | # expand to empty, as could happen e.g. with make check TESTS=''. | |
793 | am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck) | |
794 | am--force-recheck: | |
795 | @: | |
796 | ||
797 | $(TEST_SUITE_LOG): $(TEST_LOGS) | |
798 | @$(am__set_TESTS_bases); \ | |
799 | am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ | |
800 | redo_bases=`for i in $$bases; do \ | |
801 | am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ | |
802 | done`; \ | |
803 | if test -n "$$redo_bases"; then \ | |
804 | redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ | |
805 | redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ | |
806 | if $(am__make_dryrun); then :; else \ | |
807 | rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ | |
808 | fi; \ | |
809 | fi; \ | |
810 | if test -n "$$am__remaking_logs"; then \ | |
811 | echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \ | |
812 | "recursion detected" >&2; \ | |
813 | else \ | |
814 | am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ | |
815 | fi; \ | |
816 | if $(am__make_dryrun); then :; else \ | |
817 | st=0; \ | |
818 | errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \ | |
819 | for i in $$redo_bases; do \ | |
820 | test -f $$i.trs && test -r $$i.trs \ | |
821 | || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ | |
822 | test -f $$i.log && test -r $$i.log \ | |
823 | || { echo "$$errmsg $$i.log" >&2; st=1; }; \ | |
824 | done; \ | |
825 | test $$st -eq 0 || exit 1; \ | |
826 | fi | |
827 | @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \ | |
828 | ws='[ ]'; \ | |
829 | results=`for b in $$bases; do echo $$b.trs; done`; \ | |
830 | test -n "$$results" || results=/dev/null; \ | |
831 | all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ | |
832 | pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ | |
833 | fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ | |
834 | skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ | |
835 | xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ | |
836 | xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ | |
837 | error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ | |
838 | if test `expr $$fail + $$xpass + $$error` -eq 0; then \ | |
839 | success=true; \ | |
840 | else \ | |
841 | success=false; \ | |
842 | fi; \ | |
843 | br='==================='; br=$$br$$br$$br$$br; \ | |
844 | result_count () \ | |
845 | { \ | |
846 | if test x"$$1" = x"--maybe-color"; then \ | |
847 | maybe_colorize=yes; \ | |
848 | elif test x"$$1" = x"--no-color"; then \ | |
849 | maybe_colorize=no; \ | |
555 | 850 | else \ |
556 | skip=`expr $$skip + 1`; \ | |
557 | col=$$blu; res=SKIP; \ | |
851 | echo "$@: invalid 'result_count' usage" >&2; exit 4; \ | |
558 | 852 | fi; \ |
559 | echo "$${col}$$res$${std}: $$tst"; \ | |
560 | done; \ | |
561 | if test "$$all" -eq 1; then \ | |
562 | tests="test"; \ | |
563 | All=""; \ | |
564 | else \ | |
565 | tests="tests"; \ | |
566 | All="All "; \ | |
567 | fi; \ | |
568 | if test "$$failed" -eq 0; then \ | |
569 | if test "$$xfail" -eq 0; then \ | |
570 | banner="$$All$$all $$tests passed"; \ | |
853 | shift; \ | |
854 | desc=$$1 count=$$2; \ | |
855 | if test $$maybe_colorize = yes && test $$count -gt 0; then \ | |
856 | color_start=$$3 color_end=$$std; \ | |
571 | 857 | else \ |
572 | if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ | |
573 | banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ | |
858 | color_start= color_end=; \ | |
574 | 859 | fi; \ |
575 | else \ | |
576 | if test "$$xpass" -eq 0; then \ | |
577 | banner="$$failed of $$all $$tests failed"; \ | |
578 | else \ | |
579 | if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ | |
580 | banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ | |
581 | fi; \ | |
582 | fi; \ | |
583 | dashes="$$banner"; \ | |
584 | skipped=""; \ | |
585 | if test "$$skip" -ne 0; then \ | |
586 | if test "$$skip" -eq 1; then \ | |
587 | skipped="($$skip test was not run)"; \ | |
588 | else \ | |
589 | skipped="($$skip tests were not run)"; \ | |
590 | fi; \ | |
591 | test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ | |
592 | dashes="$$skipped"; \ | |
593 | fi; \ | |
594 | report=""; \ | |
595 | if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ | |
596 | report="Please report to $(PACKAGE_BUGREPORT)"; \ | |
597 | test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ | |
598 | dashes="$$report"; \ | |
599 | fi; \ | |
600 | dashes=`echo "$$dashes" | sed s/./=/g`; \ | |
601 | if test "$$failed" -eq 0; then \ | |
602 | col="$$grn"; \ | |
603 | else \ | |
604 | col="$$red"; \ | |
605 | fi; \ | |
606 | echo "$${col}$$dashes$${std}"; \ | |
607 | echo "$${col}$$banner$${std}"; \ | |
608 | test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \ | |
609 | test -z "$$report" || echo "$${col}$$report$${std}"; \ | |
610 | echo "$${col}$$dashes$${std}"; \ | |
611 | test "$$failed" -eq 0; \ | |
612 | else :; fi | |
860 | echo "$${color_start}# $$desc $$count$${color_end}"; \ | |
861 | }; \ | |
862 | create_testsuite_report () \ | |
863 | { \ | |
864 | result_count $$1 "TOTAL:" $$all "$$brg"; \ | |
865 | result_count $$1 "PASS: " $$pass "$$grn"; \ | |
866 | result_count $$1 "SKIP: " $$skip "$$blu"; \ | |
867 | result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ | |
868 | result_count $$1 "FAIL: " $$fail "$$red"; \ | |
869 | result_count $$1 "XPASS:" $$xpass "$$red"; \ | |
870 | result_count $$1 "ERROR:" $$error "$$mgn"; \ | |
871 | }; \ | |
872 | { \ | |
873 | echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \ | |
874 | $(am__rst_title); \ | |
875 | create_testsuite_report --no-color; \ | |
876 | echo; \ | |
877 | echo ".. contents:: :depth: 2"; \ | |
878 | echo; \ | |
879 | for b in $$bases; do echo $$b; done \ | |
880 | | $(am__create_global_log); \ | |
881 | } >$(TEST_SUITE_LOG).tmp || exit 1; \ | |
882 | mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \ | |
883 | if $$success; then \ | |
884 | col="$$grn"; \ | |
885 | else \ | |
886 | col="$$red"; \ | |
887 | test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ | |
888 | fi; \ | |
889 | echo "$${col}$$br$${std}"; \ | |
890 | echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ | |
891 | echo "$${col}$$br$${std}"; \ | |
892 | create_testsuite_report --maybe-color; \ | |
893 | echo "$$col$$br$$std"; \ | |
894 | if $$success; then :; else \ | |
895 | echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \ | |
896 | if test -n "$(PACKAGE_BUGREPORT)"; then \ | |
897 | echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ | |
898 | fi; \ | |
899 | echo "$$col$$br$$std"; \ | |
900 | fi; \ | |
901 | $$success || exit 1 | |
902 | ||
903 | check-TESTS: | |
904 | @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list | |
905 | @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list | |
906 | @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
907 | @set +e; $(am__set_TESTS_bases); \ | |
908 | log_list=`for i in $$bases; do echo $$i.log; done`; \ | |
909 | trs_list=`for i in $$bases; do echo $$i.trs; done`; \ | |
910 | log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ | |
911 | $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ | |
912 | exit $$?; | |
913 | recheck: all $(check_PROGRAMS) | |
914 | @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
915 | @set +e; $(am__set_TESTS_bases); \ | |
916 | bases=`for i in $$bases; do echo $$i; done \ | |
917 | | $(am__list_recheck_tests)` || exit 1; \ | |
918 | log_list=`for i in $$bases; do echo $$i.log; done`; \ | |
919 | log_list=`echo $$log_list`; \ | |
920 | $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \ | |
921 | am__force_recheck=am--force-recheck \ | |
922 | TEST_LOGS="$$log_list"; \ | |
923 | exit $$? | |
924 | check_marshal.log: check_marshal$(EXEEXT) | |
925 | @p='check_marshal$(EXEEXT)'; \ | |
926 | b='check_marshal'; \ | |
927 | $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ | |
928 | --log-file $$b.log --trs-file $$b.trs \ | |
929 | $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ | |
930 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
931 | check_lldp.log: check_lldp$(EXEEXT) | |
932 | @p='check_lldp$(EXEEXT)'; \ | |
933 | b='check_lldp'; \ | |
934 | $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ | |
935 | --log-file $$b.log --trs-file $$b.trs \ | |
936 | $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ | |
937 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
938 | check_cdp.log: check_cdp$(EXEEXT) | |
939 | @p='check_cdp$(EXEEXT)'; \ | |
940 | b='check_cdp'; \ | |
941 | $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ | |
942 | --log-file $$b.log --trs-file $$b.trs \ | |
943 | $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ | |
944 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
945 | check_sonmp.log: check_sonmp$(EXEEXT) | |
946 | @p='check_sonmp$(EXEEXT)'; \ | |
947 | b='check_sonmp'; \ | |
948 | $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ | |
949 | --log-file $$b.log --trs-file $$b.trs \ | |
950 | $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ | |
951 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
952 | check_edp.log: check_edp$(EXEEXT) | |
953 | @p='check_edp$(EXEEXT)'; \ | |
954 | b='check_edp'; \ | |
955 | $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ | |
956 | --log-file $$b.log --trs-file $$b.trs \ | |
957 | $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ | |
958 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
959 | check_snmp.log: check_snmp$(EXEEXT) | |
960 | @p='check_snmp$(EXEEXT)'; \ | |
961 | b='check_snmp'; \ | |
962 | $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ | |
963 | --log-file $$b.log --trs-file $$b.trs \ | |
964 | $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ | |
965 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
966 | .test.log: | |
967 | @p='$<'; \ | |
968 | $(am__set_b); \ | |
969 | $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ | |
970 | --log-file $$b.log --trs-file $$b.trs \ | |
971 | $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ | |
972 | "$$tst" $(AM_TESTS_FD_REDIRECT) | |
973 | @am__EXEEXT_TRUE@.test$(EXEEXT).log: | |
974 | @am__EXEEXT_TRUE@ @p='$<'; \ | |
975 | @am__EXEEXT_TRUE@ $(am__set_b); \ | |
976 | @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \ | |
977 | @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ | |
978 | @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ | |
979 | @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) | |
613 | 980 | |
614 | 981 | distdir: $(DISTFILES) |
615 | 982 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
668 | 1035 | fi |
669 | 1036 | mostlyclean-generic: |
670 | 1037 | -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) |
1038 | -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS) | |
1039 | -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs) | |
1040 | -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) | |
671 | 1041 | |
672 | 1042 | clean-generic: |
673 | 1043 | |
751 | 1121 | |
752 | 1122 | .MAKE: check-am install-am install-strip |
753 | 1123 | |
754 | .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ | |
755 | clean-checkPROGRAMS clean-generic clean-libtool ctags \ | |
756 | distclean distclean-compile distclean-generic \ | |
1124 | .PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \ | |
1125 | clean-checkPROGRAMS clean-generic clean-libtool cscopelist-am \ | |
1126 | ctags ctags-am distclean distclean-compile distclean-generic \ | |
757 | 1127 | distclean-libtool distclean-tags distdir dvi dvi-am html \ |
758 | 1128 | html-am info info-am install install-am install-data \ |
759 | 1129 | install-data-am install-dvi install-dvi-am install-exec \ |
763 | 1133 | installcheck-am installdirs maintainer-clean \ |
764 | 1134 | maintainer-clean-generic mostlyclean mostlyclean-compile \ |
765 | 1135 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ |
766 | tags uninstall uninstall-am | |
1136 | recheck tags tags-am uninstall uninstall-am | |
767 | 1137 | |
768 | 1138 | |
769 | 1139 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
32 | 32 | .a5 = { 'A', 'B', 'C', 'D', 'E', 'F', 'G'}, |
33 | 33 | }; |
34 | 34 | struct struct_simple *destination; |
35 | void *p; | |
36 | void *buffer; | |
37 | size_t len, len2; | |
38 | ||
39 | len = marshal_serialize(struct_simple, &source, &buffer); | |
35 | void *buffer; | |
36 | size_t len, len2; | |
37 | ||
38 | len = struct_simple_serialize(&source, &buffer); | |
40 | 39 | fail_unless(len > 0, "Unable to serialize"); |
41 | 40 | memset(&source, 0, sizeof(struct struct_simple)); |
42 | len2 = marshal_unserialize(struct_simple, buffer, len, &p); | |
43 | fail_unless(len2 > 0, "Unable to deserialize"); | |
44 | destination = p; | |
41 | len2 = struct_simple_unserialize(buffer, len, &destination); | |
42 | fail_unless(len2 > 0, "Unable to deserialize"); | |
45 | 43 | free(buffer); |
46 | 44 | ck_assert_int_eq(len, len2); |
47 | 45 | ck_assert_int_eq(destination->a1, 78452); |
66 | 64 | }; |
67 | 65 | MARSHAL_BEGIN(struct_sub) |
68 | 66 | MARSHAL_SUBSTRUCT(struct_sub, struct_simple, e2) |
69 | MARSHAL_END; | |
67 | MARSHAL_END(struct_sub); | |
70 | 68 | |
71 | 69 | START_TEST(test_substruct_structure) { |
72 | 70 | struct struct_sub source = { |
82 | 80 | }; |
83 | 81 | |
84 | 82 | struct struct_sub *destination; |
85 | void *p; | |
86 | void *buffer; | |
87 | size_t len, len2; | |
88 | ||
89 | len = marshal_serialize(struct_sub, &source, &buffer); | |
83 | void *buffer; | |
84 | size_t len, len2; | |
85 | ||
86 | len = struct_sub_serialize(&source, &buffer); | |
90 | 87 | fail_unless(len > 0, "Unable to serialize"); |
91 | 88 | memset(&source, 0, sizeof(struct struct_sub)); |
92 | len2 = marshal_unserialize(struct_sub, buffer, len, &p); | |
93 | fail_unless(len2 > 0, "Unable to deserialize"); | |
94 | free(buffer); | |
95 | destination = p; | |
89 | len2 = struct_sub_unserialize(buffer, len, &destination); | |
90 | fail_unless(len2 > 0, "Unable to deserialize"); | |
91 | free(buffer); | |
96 | 92 | ck_assert_int_eq(len, len2); |
97 | 93 | ck_assert_int_eq(destination->e1, -5122); |
98 | 94 | ck_assert_int_eq(destination->e2.a1, 78452); |
120 | 116 | }; |
121 | 117 | MARSHAL_BEGIN(struct_onepointer) |
122 | 118 | MARSHAL_POINTER(struct_onepointer, struct_simple, b4) |
123 | MARSHAL_END; | |
119 | MARSHAL_END(struct_onepointer); | |
124 | 120 | |
125 | 121 | START_TEST(test_pointer_structure) { |
126 | 122 | struct struct_simple source_simple = { |
139 | 135 | }; |
140 | 136 | |
141 | 137 | struct struct_onepointer *destination; |
142 | void *p; | |
143 | void *buffer; | |
144 | size_t len, len2; | |
145 | ||
146 | len = marshal_serialize(struct_onepointer, &source, &buffer); | |
138 | void *buffer; | |
139 | size_t len, len2; | |
140 | ||
141 | len = struct_onepointer_serialize(&source, &buffer); | |
147 | 142 | fail_unless(len > 0, "Unable to serialize"); |
148 | 143 | memset(&source_simple, 0, sizeof(struct struct_simple)); |
149 | 144 | memset(&source, 0, sizeof(struct struct_onepointer)); |
150 | len2 = marshal_unserialize(struct_onepointer, buffer, len, &p); | |
151 | fail_unless(len2 > 0, "Unable to deserialize"); | |
152 | free(buffer); | |
153 | destination = p; | |
145 | len2 = struct_onepointer_unserialize(buffer, len, &destination); | |
146 | fail_unless(len2 > 0, "Unable to deserialize"); | |
147 | free(buffer); | |
154 | 148 | ck_assert_int_eq(len, len2); |
155 | 149 | ck_assert_int_eq(destination->b1, 18); |
156 | 150 | ck_assert_int_eq(destination->b2, 15454); |
181 | 175 | MARSHAL_BEGIN(struct_nestedpointers) |
182 | 176 | MARSHAL_POINTER(struct_nestedpointers, struct_simple, c3) |
183 | 177 | MARSHAL_POINTER(struct_nestedpointers, struct_onepointer, c4) |
184 | MARSHAL_END; | |
178 | MARSHAL_END(struct_nestedpointers); | |
185 | 179 | |
186 | 180 | START_TEST(test_several_pointers_structure) { |
187 | 181 | struct struct_simple source_simple1 = { |
214 | 208 | }; |
215 | 209 | |
216 | 210 | struct struct_nestedpointers *destination; |
217 | void *p; | |
218 | void *buffer; | |
219 | size_t len, len2; | |
220 | ||
221 | len = marshal_serialize(struct_nestedpointers, &source, &buffer); | |
211 | void *buffer; | |
212 | size_t len, len2; | |
213 | ||
214 | len = struct_nestedpointers_serialize(&source, &buffer); | |
222 | 215 | fail_unless(len > 0, "Unable to serialize"); |
223 | 216 | memset(&source_simple1, 0, sizeof(struct struct_simple)); |
224 | 217 | memset(&source_simple2, 0, sizeof(struct struct_simple)); |
225 | 218 | memset(&source_onepointer, 0, sizeof(struct struct_onepointer)); |
226 | 219 | memset(&source, 0, sizeof(struct struct_nestedpointers)); |
227 | len2 = marshal_unserialize(struct_nestedpointers, buffer, len, &p); | |
228 | fail_unless(len2 > 0, "Unable to deserialize"); | |
229 | free(buffer); | |
230 | destination = p; | |
220 | len2 = struct_nestedpointers_unserialize(buffer, len, &destination); | |
221 | fail_unless(len2 > 0, "Unable to deserialize"); | |
222 | free(buffer); | |
231 | 223 | ck_assert_int_eq(len, len2); |
232 | 224 | ck_assert_int_eq(destination->c1, 4542); |
233 | 225 | ck_assert_int_eq(destination->c2, 5665454); |
275 | 267 | }; |
276 | 268 | |
277 | 269 | struct struct_nestedpointers *destination; |
278 | void *p; | |
279 | void *buffer; | |
280 | size_t len, len2; | |
281 | ||
282 | len = marshal_serialize(struct_nestedpointers, &source, &buffer); | |
270 | void *buffer; | |
271 | size_t len, len2; | |
272 | ||
273 | len = struct_nestedpointers_serialize(&source, &buffer); | |
283 | 274 | fail_unless(len > 0, "Unable to serialize"); |
284 | 275 | memset(&source_simple2, 0, sizeof(struct struct_simple)); |
285 | 276 | memset(&source, 0, sizeof(struct struct_nestedpointers)); |
286 | len2 = marshal_unserialize(struct_nestedpointers, buffer, len, &p); | |
287 | fail_unless(len2 > 0, "Unable to deserialize"); | |
288 | free(buffer); | |
289 | destination = p; | |
277 | len2 = struct_nestedpointers_unserialize(buffer, len, &destination); | |
278 | fail_unless(len2 > 0, "Unable to deserialize"); | |
279 | free(buffer); | |
290 | 280 | ck_assert_int_eq(len, len2); |
291 | 281 | ck_assert_int_eq(destination->c1, 4542); |
292 | 282 | ck_assert_int_eq(destination->c2, 5665454); |
312 | 302 | MARSHAL_POINTER(struct_multipleref, struct_simple, f2) |
313 | 303 | MARSHAL_POINTER(struct_multipleref, struct_simple, f3) |
314 | 304 | MARSHAL_POINTER(struct_multipleref, struct_nestedpointers, f4) |
315 | MARSHAL_END; | |
305 | MARSHAL_END(struct_multipleref); | |
316 | 306 | |
317 | 307 | START_TEST(test_multiple_references) { |
318 | 308 | struct struct_simple source_simple = { |
334 | 324 | }; |
335 | 325 | |
336 | 326 | struct struct_multipleref *destination; |
337 | void *p; | |
338 | 327 | void *buffer = NULL; |
339 | 328 | size_t len, len2; |
340 | 329 | |
341 | len = marshal_serialize(struct_multipleref, &source, &buffer); | |
330 | len = struct_multipleref_serialize(&source, &buffer); | |
342 | 331 | fail_unless(buffer != NULL, "Buffer is empty"); |
343 | 332 | fail_unless(len > 0, "Unable to serialize"); |
344 | 333 | memset(&source_simple, 0, sizeof(struct struct_simple)); |
345 | 334 | memset(&source_nested, 0, sizeof(struct struct_nestedpointers)); |
346 | 335 | memset(&source, 0, sizeof(struct struct_multipleref)); |
347 | len2 = marshal_unserialize(struct_multipleref, buffer, len, &p); | |
348 | fail_unless(len2 > 0, "Unable to deserialize"); | |
349 | free(buffer); | |
350 | destination = p; | |
336 | len2 = struct_multipleref_unserialize(buffer, len, &destination); | |
337 | fail_unless(len2 > 0, "Unable to deserialize"); | |
338 | free(buffer); | |
351 | 339 | ck_assert_int_eq(len, len2); |
352 | 340 | ck_assert_int_eq(destination->f1, 15); |
353 | 341 | ck_assert_int_eq(destination->f2, destination->f3); |
367 | 355 | }; |
368 | 356 | MARSHAL_BEGIN(struct_circularref) |
369 | 357 | MARSHAL_POINTER(struct_circularref, struct_circularref, g2) |
370 | MARSHAL_END; | |
358 | MARSHAL_END(struct_circularref); | |
371 | 359 | |
372 | 360 | START_TEST(test_circular_references) { |
373 | 361 | struct struct_circularref source = { |
376 | 364 | }; |
377 | 365 | |
378 | 366 | struct struct_circularref *destination; |
379 | void *p; | |
380 | 367 | void *buffer = NULL; |
381 | 368 | size_t len, len2; |
382 | 369 | |
383 | len = marshal_serialize(struct_circularref, &source, &buffer); | |
370 | len = struct_circularref_serialize(&source, &buffer); | |
384 | 371 | fail_unless(len > 0, "Unable to serialize"); |
385 | 372 | memset(&source, 0, sizeof(struct struct_circularref)); |
386 | len2 = marshal_unserialize(struct_circularref, buffer, len, &p); | |
387 | fail_unless(len2 > 0, "Unable to deserialize"); | |
388 | free(buffer); | |
389 | destination = p; | |
373 | len2 = struct_circularref_unserialize(buffer, len, &destination); | |
374 | fail_unless(len2 > 0, "Unable to deserialize"); | |
375 | free(buffer); | |
390 | 376 | ck_assert_int_eq(len, len2); |
391 | 377 | ck_assert_int_eq(destination->g1, 42); |
392 | 378 | ck_assert_int_eq(destination->g2->g1, 42); |
406 | 392 | }; |
407 | 393 | |
408 | 394 | struct struct_nestedpointers *destination; |
409 | void *p; | |
410 | 395 | void *buffer; |
411 | 396 | size_t len, len2; |
412 | 397 | int i, j; |
413 | 398 | |
414 | 399 | log_register(donothing); |
415 | 400 | |
416 | len = marshal_serialize(struct_nestedpointers, &source, &buffer); | |
401 | len = struct_nestedpointers_serialize(&source, &buffer); | |
417 | 402 | fail_unless(len > 0, "Unable to serialize"); |
418 | 403 | memset(&source_simple1, 0, sizeof(struct struct_simple)); |
419 | 404 | memset(&source_onepointer, 0, sizeof(struct struct_onepointer)); |
421 | 406 | /* Loop 30 times to ease debugging leaks with valgrind */ |
422 | 407 | for (j = 0; j < 30; j++) { |
423 | 408 | for (i = 0; i < len; i++) { |
424 | len2 = marshal_unserialize(struct_nestedpointers, buffer, 1, &p); | |
409 | len2 = struct_nestedpointers_unserialize(buffer, 1, &destination); | |
425 | 410 | fail_unless(len2 == 0, |
426 | 411 | "Should not be able to deserialize, too small (%d<%d)", |
427 | 412 | i, len); |
428 | 413 | } |
429 | 414 | } |
430 | len2 = marshal_unserialize(struct_nestedpointers, buffer, len + 5, &p); | |
415 | len2 = struct_nestedpointers_unserialize(buffer, len + 5, &destination); | |
431 | 416 | fail_unless(len2 == len, "Deserialized too much"); |
432 | destination = p; | |
433 | 417 | free(destination->c3); |
434 | 418 | free(destination->c4); free(destination); free(buffer); |
435 | 419 | |
445 | 429 | MARSHAL_BEGIN(struct_simpleentry) |
446 | 430 | MARSHAL_TQE(struct_simpleentry, s_entries) |
447 | 431 | MARSHAL_POINTER(struct_simpleentry, struct_simple, g2) |
448 | MARSHAL_END; | |
432 | MARSHAL_END(struct_simpleentry); | |
449 | 433 | |
450 | 434 | TAILQ_HEAD(list_simple, struct_simpleentry); |
451 | 435 | MARSHAL_TQ(list_simple, struct_simpleentry); |
476 | 460 | .g2 = &source_simple, |
477 | 461 | }; |
478 | 462 | struct list_simple *destination; |
479 | void *p; | |
480 | 463 | void *buffer; |
481 | 464 | size_t len, len2; |
482 | 465 | struct struct_simpleentry *e1, *e2; |
488 | 471 | TAILQ_INSERT_TAIL(&source, &entry3, s_entries); |
489 | 472 | TAILQ_INSERT_TAIL(&source, &entry4, s_entries); |
490 | 473 | |
491 | len = marshal_serialize(list_simple, &source, &buffer); | |
474 | len = list_simple_serialize(&source, &buffer); | |
492 | 475 | fail_unless(len > 0, "Unable to serialize"); |
493 | 476 | memset(&source, 0, sizeof(struct list_simple)); |
494 | 477 | memset(&entry1, 0, sizeof(struct struct_simpleentry)); |
495 | 478 | memset(&entry2, 0, sizeof(struct struct_simpleentry)); |
496 | 479 | memset(&entry3, 0, sizeof(struct struct_simpleentry)); |
497 | 480 | memset(&entry4, 0, sizeof(struct struct_simpleentry)); |
498 | len2 = marshal_unserialize(list_simple, buffer, len, &p); | |
499 | fail_unless(len2 > 0, "Unable to deserialize"); | |
500 | free(buffer); | |
501 | ||
502 | destination = p; | |
481 | len2 = list_simple_unserialize(buffer, len, &destination); | |
482 | fail_unless(len2 > 0, "Unable to deserialize"); | |
483 | free(buffer); | |
484 | ||
503 | 485 | e1 = TAILQ_FIRST(destination); |
504 | 486 | ck_assert_int_eq(e1->g1, 47); |
505 | 487 | s = e1->g2; |
530 | 512 | }; |
531 | 513 | MARSHAL_BEGIN(struct_withlist) |
532 | 514 | MARSHAL_SUBTQ(struct_withlist, struct_simpleentry, i2) |
533 | MARSHAL_END; | |
515 | MARSHAL_END(struct_withlist); | |
534 | 516 | |
535 | 517 | START_TEST(test_embedded_list) { |
536 | 518 | struct struct_withlist source = { |
561 | 543 | .g2 = &source_simple, |
562 | 544 | }; |
563 | 545 | struct struct_withlist *destination; |
564 | void *p; | |
565 | 546 | void *buffer; |
566 | 547 | size_t len, len2; |
567 | 548 | struct struct_simpleentry *e1, *e2; |
573 | 554 | TAILQ_INSERT_TAIL(&source.i2, &entry3, s_entries); |
574 | 555 | TAILQ_INSERT_TAIL(&source.i2, &entry4, s_entries); |
575 | 556 | |
576 | len = marshal_serialize(struct_withlist, &source, &buffer); | |
557 | len = struct_withlist_serialize(&source, &buffer); | |
577 | 558 | fail_unless(len > 0, "Unable to serialize"); |
578 | 559 | memset(&source, 0, sizeof(struct list_simple)); |
579 | 560 | memset(&entry1, 0, sizeof(struct struct_simpleentry)); |
580 | 561 | memset(&entry2, 0, sizeof(struct struct_simpleentry)); |
581 | 562 | memset(&entry3, 0, sizeof(struct struct_simpleentry)); |
582 | 563 | memset(&entry4, 0, sizeof(struct struct_simpleentry)); |
583 | len2 = marshal_unserialize(struct_withlist, buffer, len, &p); | |
584 | fail_unless(len2 > 0, "Unable to deserialize"); | |
585 | free(buffer); | |
586 | ||
587 | destination = p; | |
564 | len2 = struct_withlist_unserialize(buffer, len, &destination); | |
565 | fail_unless(len2 > 0, "Unable to deserialize"); | |
566 | free(buffer); | |
567 | ||
588 | 568 | ck_assert_int_eq(destination->i1, 45424); |
589 | 569 | ck_assert_int_eq(destination->i3, 4542); |
590 | 570 | e1 = TAILQ_FIRST(&destination->i2); |
619 | 599 | MARSHAL_BEGIN(struct_string) |
620 | 600 | MARSHAL_STR(struct_string, s2) |
621 | 601 | MARSHAL_STR(struct_string, s3) |
622 | MARSHAL_END; | |
602 | MARSHAL_END(struct_string); | |
623 | 603 | |
624 | 604 | START_TEST(test_string) { |
625 | 605 | struct struct_string source = { |
628 | 608 | .s3 = "String 3", |
629 | 609 | }; |
630 | 610 | struct struct_string *destination; |
631 | void *p; | |
632 | void *buffer; | |
633 | size_t len, len2; | |
634 | ||
635 | len = marshal_serialize(struct_string, &source, &buffer); | |
611 | void *buffer; | |
612 | size_t len, len2; | |
613 | ||
614 | len = struct_string_serialize(&source, &buffer); | |
636 | 615 | fail_unless(len > 0, "Unable to serialize"); |
637 | 616 | memset(&source, 0, sizeof(struct struct_string)); |
638 | len2 = marshal_unserialize(struct_string, buffer, len, &p); | |
639 | fail_unless(len2 > 0, "Unable to deserialize"); | |
640 | free(buffer); | |
641 | destination = p; | |
617 | len2 = struct_string_unserialize(buffer, len, &destination); | |
618 | fail_unless(len2 > 0, "Unable to deserialize"); | |
619 | free(buffer); | |
642 | 620 | ck_assert_int_eq(len, len2); |
643 | 621 | ck_assert_int_eq(destination->s1, 44444); |
644 | 622 | ck_assert_str_eq(destination->s2, "String 2"); |
657 | 635 | MARSHAL_BEGIN(struct_fixedstring) |
658 | 636 | MARSHAL_FSTR(struct_fixedstring, s2, s2_len) |
659 | 637 | MARSHAL_STR(struct_fixedstring, s3) |
660 | MARSHAL_END; | |
638 | MARSHAL_END(struct_fixedstring); | |
661 | 639 | |
662 | 640 | START_TEST(test_fixed_string) { |
663 | 641 | struct struct_fixedstring source = { |
667 | 645 | .s3 = "String 3", |
668 | 646 | }; |
669 | 647 | struct struct_fixedstring *destination; |
670 | void *p; | |
671 | void *buffer; | |
672 | size_t len, len2; | |
673 | ||
674 | len = marshal_serialize(struct_fixedstring, &source, &buffer); | |
648 | void *buffer; | |
649 | size_t len, len2; | |
650 | ||
651 | len = struct_fixedstring_serialize(&source, &buffer); | |
675 | 652 | fail_unless(len > 0, "Unable to serialize"); |
676 | 653 | memset(&source, 0, sizeof(struct struct_fixedstring)); |
677 | len2 = marshal_unserialize(struct_fixedstring, buffer, len, &p); | |
678 | fail_unless(len2 > 0, "Unable to deserialize"); | |
679 | free(buffer); | |
680 | destination = p; | |
654 | len2 = struct_fixedstring_unserialize(buffer, len, &destination); | |
655 | fail_unless(len2 > 0, "Unable to deserialize"); | |
656 | free(buffer); | |
681 | 657 | ck_assert_int_eq(len, len2); |
682 | 658 | ck_assert_int_eq(destination->s1, 44444); |
683 | 659 | ck_assert_int_eq(destination->s2_len, 8); |
701 | 677 | }; |
702 | 678 | MARSHAL_BEGIN(struct_ignore) |
703 | 679 | MARSHAL_IGNORE(struct_ignore, t2) |
704 | MARSHAL_END; | |
680 | MARSHAL_END(struct_ignore); | |
705 | 681 | |
706 | 682 | START_TEST(test_ignore) { |
707 | 683 | struct struct_ignore source = { |
710 | 686 | .t3 = 11111, |
711 | 687 | }; |
712 | 688 | struct struct_ignore *destination; |
713 | void *p; | |
714 | void *buffer; | |
715 | size_t len, len2; | |
716 | ||
717 | len = marshal_serialize(struct_ignore, &source, &buffer); | |
689 | void *buffer; | |
690 | size_t len, len2; | |
691 | ||
692 | len = struct_ignore_serialize(&source, &buffer); | |
718 | 693 | fail_unless(len > 0, "Unable to serialize"); |
719 | 694 | memset(&source, 0, sizeof(struct struct_ignore)); |
720 | len2 = marshal_unserialize(struct_ignore, buffer, len, &p); | |
721 | fail_unless(len2 > 0, "Unable to deserialize"); | |
722 | free(buffer); | |
723 | destination = p; | |
695 | len2 = struct_ignore_unserialize(buffer, len, &destination); | |
696 | fail_unless(len2 > 0, "Unable to deserialize"); | |
697 | free(buffer); | |
724 | 698 | ck_assert_int_eq(len, len2); |
725 | 699 | ck_assert_int_eq(destination->t1, 4544); |
726 | 700 | ck_assert_int_eq(destination->t2, NULL); |
749 | 723 | memcpy(&source_simple2, &source_simple1, sizeof(source_simple1)); |
750 | 724 | memcpy(&entry2, &entry1, sizeof(entry1)); |
751 | 725 | entry2.g2 = &source_simple2; |
752 | ssize_t len1 = marshal_serialize(struct_simpleentry, &entry1, &buffer1); | |
753 | ssize_t len2 = marshal_serialize(struct_simpleentry, &entry2, &buffer2); | |
726 | ssize_t len1 = struct_simpleentry_serialize(&entry1, &buffer1); | |
727 | ssize_t len2 = struct_simpleentry_serialize(&entry2, &buffer2); | |
754 | 728 | fail_unless(len1 > 0, "Unable to serialize"); |
755 | 729 | fail_unless(len2 > 0, "Unable to serialize"); |
756 | 730 | ck_assert_int_eq(len1, len2); |