Codebase list unrtf / ea46fa9
Imported Upstream version 0.21.5 Willi Mann 9 years ago
40 changed file(s) with 14477 addition(s) and 21358 deletion(s). Raw diff Collapse all Expand all
4242 - changed processing of --html (etc.) args so that "-t html" and
4343 "--html" are equivalent, i.e. both subject to search path set with
4444 "-P"
45 0.21.3:
46 - major changes to code page support and UTF handling
47 - improved LaTeX output
48 - /usr/local/lib no longer hard wired - set by configure
49 0.21.4:
50 - ignore embedded picture which cannot be rendered
51 - allow unnested bold/italic to be interpreted as expected. Such input
52 may be outside the RTF spec, but can be created by TextEdit. The
53 change has been limited to the bold command (cmd_b in convert.c)
54 on an experimental basis. If no bugs appear it could be more generally
55 applied.
56 0.21.5:
57 - improved code for the unnested case and extended to more RTF commands
58
00 Installation Instructions
11 *************************
22
3 Copyright (C) 1994-1996, 1999-2002, 2004-2012 Free Software Foundation,
3 Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
44 Inc.
55
66 Copying and distribution of this file, with or without modification,
0 # Makefile.in generated by automake 1.12.1 from Makefile.am.
0 # Makefile.in generated by automake 1.14 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2012 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1515
1616 # this is the main Makefile.am
1717 VPATH = @srcdir@
18 am__make_dryrun = \
19 { \
20 am__dry=no; \
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19 am__make_running_with_option = \
20 case $${target_option-} in \
21 ?) ;; \
22 *) echo "am__make_running_with_option: internal error: invalid" \
23 "target option '$${target_option-}' specified" >&2; \
24 exit 1;; \
25 esac; \
26 has_opt=no; \
27 sane_makeflags=$$MAKEFLAGS; \
28 if $(am__is_gnu_make); then \
29 sane_makeflags=$$MFLAGS; \
30 else \
2131 case $$MAKEFLAGS in \
2232 *\\[\ \ ]*) \
23 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
24 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
25 *) \
26 for am__flg in $$MAKEFLAGS; do \
27 case $$am__flg in \
28 *=*|--*) ;; \
29 *n*) am__dry=yes; break;; \
30 esac; \
31 done;; \
33 bs=\\; \
34 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
3236 esac; \
33 test $$am__dry = yes; \
34 }
37 fi; \
38 skip_next=no; \
39 strip_trailopt () \
40 { \
41 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42 }; \
43 for flg in $$sane_makeflags; do \
44 test $$skip_next = yes && { skip_next=no; continue; }; \
45 case $$flg in \
46 *=*|--*) continue;; \
47 -*I) strip_trailopt 'I'; skip_next=yes;; \
48 -*I?*) strip_trailopt 'I';; \
49 -*O) strip_trailopt 'O'; skip_next=yes;; \
50 -*O?*) strip_trailopt 'O';; \
51 -*l) strip_trailopt 'l'; skip_next=yes;; \
52 -*l?*) strip_trailopt 'l';; \
53 -[dEDm]) skip_next=yes;; \
54 -[JT]) skip_next=yes;; \
55 esac; \
56 case $$flg in \
57 *$$target_option*) has_opt=yes; break;; \
58 esac; \
59 done; \
60 test $$has_opt = yes
61 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
3563 pkgdatadir = $(datadir)/@PACKAGE@
3664 pkgincludedir = $(includedir)/@PACKAGE@
3765 pkglibdir = $(libdir)/@PACKAGE@
5179 build_triplet = @build@
5280 host_triplet = @host@
5381 subdir = .
54 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
55 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
82 DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \
83 $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
84 $(top_srcdir)/configure $(am__configure_deps) \
85 $(srcdir)/config.h.in COPYING config/compile \
86 config/config.guess config/config.sub config/depcomp \
87 config/install-sh config/missing $(top_srcdir)/config/compile \
5688 $(top_srcdir)/config/config.guess \
5789 $(top_srcdir)/config/config.sub \
58 $(top_srcdir)/config/install-sh $(top_srcdir)/config/missing \
59 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
60 config/config.guess config/config.sub config/depcomp \
61 config/install-sh config/missing
90 $(top_srcdir)/config/install-sh $(top_srcdir)/config/missing
6291 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
6392 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
6493 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
6998 CONFIG_HEADER = config.h
7099 CONFIG_CLEAN_FILES =
71100 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 =
72113 SOURCES =
73114 DIST_SOURCES =
74 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
75 html-recursive info-recursive install-data-recursive \
76 install-dvi-recursive install-exec-recursive \
77 install-html-recursive install-info-recursive \
78 install-pdf-recursive install-ps-recursive install-recursive \
79 installcheck-recursive installdirs-recursive pdf-recursive \
80 ps-recursive uninstall-recursive
115 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
116 ctags-recursive dvi-recursive html-recursive info-recursive \
117 install-data-recursive install-dvi-recursive \
118 install-exec-recursive install-html-recursive \
119 install-info-recursive install-pdf-recursive \
120 install-ps-recursive install-recursive installcheck-recursive \
121 installdirs-recursive pdf-recursive ps-recursive \
122 tags-recursive uninstall-recursive
81123 am__can_run_installinfo = \
82124 case $$AM_UPDATE_INFO_DIR in \
83125 n|no|NO) false;; \
85127 esac
86128 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
87129 distclean-recursive maintainer-clean-recursive
88 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
89 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
130 am__recursive_targets = \
131 $(RECURSIVE_TARGETS) \
132 $(RECURSIVE_CLEAN_TARGETS) \
133 $(am__extra_recursive_targets)
134 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
90135 cscope distdir dist dist-all distcheck
136 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
137 $(LISP)config.h.in
138 # Read a list of newline-separated strings from the standard input,
139 # and print each of them once, without duplicates. Input order is
140 # *not* preserved.
141 am__uniquify_input = $(AWK) '\
142 BEGIN { nonempty = 0; } \
143 { items[$$0] = 1; nonempty = 1; } \
144 END { if (nonempty) { for (i in items) print i; }; } \
145 '
146 # Make sure the list of sources is unique. This is necessary because,
147 # e.g., the same source file might be shared among _SOURCES variables
148 # for different programs/libraries.
149 am__define_uniq_tagged_files = \
150 list='$(am__tagged_files)'; \
151 unique=`for i in $$list; do \
152 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
153 done | $(am__uniquify_input)`
91154 ETAGS = etags
92155 CTAGS = ctags
93156 CSCOPE = cscope
136199 distcleancheck_listfiles = find . -type f -print
137200 ACLOCAL = @ACLOCAL@
138201 AMTAR = @AMTAR@
202 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
139203 AUTOCONF = @AUTOCONF@
140204 AUTOHEADER = @AUTOHEADER@
141205 AUTOMAKE = @AUTOMAKE@
276340 $(am__aclocal_m4_deps):
277341
278342 config.h: stamp-h1
279 @if test ! -f $@; then rm -f stamp-h1; else :; fi
280 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
343 @test -f $@ || rm -f stamp-h1
344 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
281345
282346 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
283347 @rm -f stamp-h1
296360 # (1) if the variable is set in 'config.status', edit 'config.status'
297361 # (which will cause the Makefiles to be regenerated when you run 'make');
298362 # (2) otherwise, pass the desired values on the 'make' command line.
299 $(RECURSIVE_TARGETS):
300 @fail= failcom='exit 1'; \
301 for f in x $$MAKEFLAGS; do \
302 case $$f in \
303 *=* | --[!k]*);; \
304 *k*) failcom='fail=yes';; \
305 esac; \
306 done; \
363 $(am__recursive_targets):
364 @fail=; \
365 if $(am__make_keepgoing); then \
366 failcom='fail=yes'; \
367 else \
368 failcom='exit 1'; \
369 fi; \
307370 dot_seen=no; \
308371 target=`echo $@ | sed s/-recursive//`; \
309 list='$(SUBDIRS)'; for subdir in $$list; do \
372 case "$@" in \
373 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
374 *) list='$(SUBDIRS)' ;; \
375 esac; \
376 for subdir in $$list; do \
310377 echo "Making $$target in $$subdir"; \
311378 if test "$$subdir" = "."; then \
312379 dot_seen=yes; \
321388 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
322389 fi; test -z "$$fail"
323390
324 $(RECURSIVE_CLEAN_TARGETS):
325 @fail= failcom='exit 1'; \
326 for f in x $$MAKEFLAGS; do \
327 case $$f in \
328 *=* | --[!k]*);; \
329 *k*) failcom='fail=yes';; \
330 esac; \
331 done; \
332 dot_seen=no; \
333 case "$@" in \
334 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
335 *) list='$(SUBDIRS)' ;; \
336 esac; \
337 rev=''; for subdir in $$list; do \
338 if test "$$subdir" = "."; then :; else \
339 rev="$$subdir $$rev"; \
340 fi; \
341 done; \
342 rev="$$rev ."; \
343 target=`echo $@ | sed s/-recursive//`; \
344 for subdir in $$rev; do \
345 echo "Making $$target in $$subdir"; \
346 if test "$$subdir" = "."; then \
347 local_target="$$target-am"; \
348 else \
349 local_target="$$target"; \
350 fi; \
351 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
352 || eval $$failcom; \
353 done && test -z "$$fail"
354 tags-recursive:
355 list='$(SUBDIRS)'; for subdir in $$list; do \
356 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
357 done
358 ctags-recursive:
359 list='$(SUBDIRS)'; for subdir in $$list; do \
360 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
361 done
362 cscopelist-recursive:
363 list='$(SUBDIRS)'; for subdir in $$list; do \
364 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \
365 done
366
367 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
368 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
369 unique=`for i in $$list; do \
370 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
371 done | \
372 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
373 END { if (nonempty) { for (i in files) print i; }; }'`; \
374 mkid -fID $$unique
375 tags: TAGS
376
377 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
378 $(TAGS_FILES) $(LISP)
391 ID: $(am__tagged_files)
392 $(am__define_uniq_tagged_files); mkid -fID $$unique
393 tags: tags-recursive
394 TAGS: tags
395
396 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
379397 set x; \
380398 here=`pwd`; \
381399 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
391409 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
392410 fi; \
393411 done; \
394 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
395 unique=`for i in $$list; do \
396 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
397 done | \
398 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
399 END { if (nonempty) { for (i in files) print i; }; }'`; \
412 $(am__define_uniq_tagged_files); \
400413 shift; \
401414 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
402415 test -n "$$unique" || unique=$$empty_fix; \
408421 $$unique; \
409422 fi; \
410423 fi
411 ctags: CTAGS
412 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
413 $(TAGS_FILES) $(LISP)
414 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
415 unique=`for i in $$list; do \
416 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
417 done | \
418 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
419 END { if (nonempty) { for (i in files) print i; }; }'`; \
424 ctags: ctags-recursive
425
426 CTAGS: ctags
427 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
428 $(am__define_uniq_tagged_files); \
420429 test -z "$(CTAGS_ARGS)$$unique" \
421430 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
422431 $$unique
425434 here=`$(am__cd) $(top_builddir) && pwd` \
426435 && $(am__cd) $(top_srcdir) \
427436 && gtags -i $(GTAGS_ARGS) "$$here"
428
429437 cscope: cscope.files
430438 test ! -s cscope.files \
431439 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
432
433440 clean-cscope:
434441 -rm -f cscope.files
435
436 cscope.files: clean-cscope cscopelist-recursive cscopelist
437
438 cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP)
439 list='$(SOURCES) $(HEADERS) $(LISP)'; \
442 cscope.files: clean-cscope cscopelist
443 cscopelist: cscopelist-recursive
444
445 cscopelist-am: $(am__tagged_files)
446 list='$(am__tagged_files)'; \
440447 case "$(srcdir)" in \
441448 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
442449 *) sdir=$(subdir)/$(srcdir) ;; \
534541 $(am__post_remove_distdir)
535542
536543 dist-tarZ: distdir
544 @echo WARNING: "Support for shar distribution archives is" \
545 "deprecated." >&2
546 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
537547 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
538548 $(am__post_remove_distdir)
539549
540550 dist-shar: distdir
551 @echo WARNING: "Support for distribution archives compressed with" \
552 "legacy program 'compress' is deprecated." >&2
553 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
541554 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
542555 $(am__post_remove_distdir)
543556
570583 *.zip*) \
571584 unzip $(distdir).zip ;;\
572585 esac
573 chmod -R a-w $(distdir); chmod u+w $(distdir)
574 mkdir $(distdir)/_build
575 mkdir $(distdir)/_inst
586 chmod -R a-w $(distdir)
587 chmod u+w $(distdir)
588 mkdir $(distdir)/_build $(distdir)/_inst
576589 chmod a-w $(distdir)
577590 test -d $(distdir)/_build || exit 0; \
578591 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
738751
739752 uninstall-am:
740753
741 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
742 cscopelist-recursive ctags-recursive install-am install-strip \
743 tags-recursive
744
745 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
746 all all-am am--refresh check check-am clean clean-cscope \
747 clean-generic cscope cscopelist cscopelist-recursive ctags \
748 ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-lzip \
749 dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
750 distclean-generic distclean-hdr distclean-tags distcleancheck \
751 distdir distuninstallcheck dvi dvi-am html html-am info \
752 info-am install install-am install-data install-data-am \
753 install-dvi install-dvi-am install-exec install-exec-am \
754 install-html install-html-am install-info install-info-am \
755 install-man install-pdf install-pdf-am install-ps \
756 install-ps-am install-strip installcheck installcheck-am \
757 installdirs installdirs-am maintainer-clean \
758 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
759 pdf-am ps ps-am tags tags-recursive uninstall uninstall-am
754 .MAKE: $(am__recursive_targets) all install-am install-strip
755
756 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
757 am--refresh check check-am clean clean-cscope clean-generic \
758 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
759 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
760 distcheck distclean distclean-generic distclean-hdr \
761 distclean-tags distcleancheck distdir distuninstallcheck dvi \
762 dvi-am html html-am info info-am install install-am \
763 install-data install-data-am install-dvi install-dvi-am \
764 install-exec install-exec-am install-html install-html-am \
765 install-info install-info-am install-man install-pdf \
766 install-pdf-am install-ps install-ps-am install-strip \
767 installcheck installcheck-am installdirs installdirs-am \
768 maintainer-clean maintainer-clean-generic mostlyclean \
769 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
770 uninstall-am
760771
761772
762773 # Tell versions [3.59,3.63) of GNU make to not export all variables.
0 # generated automatically by aclocal 1.12.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.14 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
1212
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1314 m4_ifndef([AC_AUTOCONF_VERSION],
1415 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
1516 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
1819 If you have problems, you may need to regenerate the build system entirely.
1920 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2021
21 # Copyright (C) 2002-2012 Free Software Foundation, Inc.
22 #
23 # This file is free software; the Free Software Foundation
24 # gives unlimited permission to copy and/or distribute it,
25 # with or without modifications, as long as this notice is preserved.
26
27 # serial 8
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.
2827
2928 # AM_AUTOMAKE_VERSION(VERSION)
3029 # ----------------------------
3231 # generated from the m4 files accompanying Automake X.Y.
3332 # (This private macro should not be called outside this file.)
3433 AC_DEFUN([AM_AUTOMAKE_VERSION],
35 [am__api_version='1.12'
34 [am__api_version='1.14'
3635 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3736 dnl require some minimum version. Point them to the right macro.
38 m4_if([$1], [1.12.1], [],
37 m4_if([$1], [1.14], [],
3938 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
4039 ])
4140
5150 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5251 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5352 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54 [AM_AUTOMAKE_VERSION([1.12.1])dnl
53 [AM_AUTOMAKE_VERSION([1.14])dnl
5554 m4_ifndef([AC_AUTOCONF_VERSION],
5655 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5756 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
5857
5958 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
6059
61 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
62 #
63 # This file is free software; the Free Software Foundation
64 # gives unlimited permission to copy and/or distribute it,
65 # with or without modifications, as long as this notice is preserved.
66
67 # serial 2
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.
6865
6966 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
7067 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
113110
114111 # AM_CONDITIONAL -*- Autoconf -*-
115112
116 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
117 #
118 # This file is free software; the Free Software Foundation
119 # gives unlimited permission to copy and/or distribute it,
120 # with or without modifications, as long as this notice is preserved.
121
122 # serial 10
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.
123118
124119 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
125120 # -------------------------------------
146141 Usually this means the macro was only invoked conditionally.]])
147142 fi])])
148143
149 # Copyright (C) 1999-2012 Free Software Foundation, Inc.
150 #
151 # This file is free software; the Free Software Foundation
152 # gives unlimited permission to copy and/or distribute it,
153 # with or without modifications, as long as this notice is preserved.
154
155 # serial 17
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
156150
157151 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
158152 # written in clear, in which case automake, when reading aclocal.m4,
338332
339333 # Generate code to set up dependency tracking. -*- Autoconf -*-
340334
341 # Copyright (C) 1999-2012 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 6
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
348341
349342 # _AM_OUTPUT_DEPENDENCY_COMMANDS
350343 # ------------------------------
351344 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
352345 [{
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
354347 # are listed without --file. Let's play safe and only enable the eval
355348 # if we detect the quoting.
356349 case $CONFIG_FILES in
379372 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
380373 test -z "$DEPDIR" && continue
381374 am__include=`sed -n 's/^am__include = //p' < "$mf"`
382 test -z "am__include" && continue
375 test -z "$am__include" && continue
383376 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
384377 # Find all dependency output files, they are included files with
385378 # $(DEPDIR) in their names. We invoke sed twice because it is the
415408
416409 # Do all the work for Automake. -*- Autoconf -*-
417410
418 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
419 #
420 # This file is free software; the Free Software Foundation
421 # gives unlimited permission to copy and/or distribute it,
422 # with or without modifications, as long as this notice is preserved.
423
424 # serial 19
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.
425416
426417 # This macro actually does too much. Some checks are only needed if
427418 # your package does certain things. But this isn't really a big deal.
419
420 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
421 m4_define([AC_PROG_CC],
422 m4_defn([AC_PROG_CC])
423 [_AM_PROG_CC_C_O
424 ])
428425
429426 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
430427 # AM_INIT_AUTOMAKE([OPTIONS])
438435 # arguments mandatory, and then we can depend on a new Autoconf
439436 # release and drop the old call support.
440437 AC_DEFUN([AM_INIT_AUTOMAKE],
441 [AC_PREREQ([2.62])dnl
438 [AC_PREREQ([2.65])dnl
442439 dnl Autoconf wants to disallow AM_ names. We explicitly allow
443440 dnl the ones we care about.
444441 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
468465 dnl Distinguish between old-style and new-style calls.
469466 m4_ifval([$2],
470467 [AC_DIAGNOSE([obsolete],
471 [$0: two- and three-arguments forms are deprecated. For more info, see:
472 http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
468 [$0: two- and three-arguments forms are deprecated.])
473469 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
474470 AC_SUBST([PACKAGE], [$1])dnl
475471 AC_SUBST([VERSION], [$2])],
497493 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
498494 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
499495 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
500 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
496 # For better backward compatibility. To be removed once Automake 1.9.x
497 # dies out for good. For more background, see:
498 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
499 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
500 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
501501 # We need awk for the "check" target. The system "awk" is bad on
502502 # some platforms.
503503 AC_REQUIRE([AC_PROG_AWK])dnl
519519 [_AM_DEPENDENCIES([OBJC])],
520520 [m4_define([AC_PROG_OBJC],
521521 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
522 dnl Support for Objective C++ was only introduced in Autoconf 2.65,
523 dnl but we still cater to Autoconf 2.62.
524 m4_ifdef([AC_PROG_OBJCXX],
525 [AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
522 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
526523 [_AM_DEPENDENCIES([OBJCXX])],
527524 [m4_define([AC_PROG_OBJCXX],
528 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
529 ])
530 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
531 dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
532 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
533 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
525 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
526 ])
527 AC_REQUIRE([AM_SILENT_RULES])dnl
528 dnl The testsuite driver may need to know about EXEEXT, so add the
529 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
530 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
534531 AC_CONFIG_COMMANDS_PRE(dnl
535532 [m4_provide_if([_AM_COMPILER_EXEEXT],
536533 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
537 ])
534
535 # POSIX will say in a future version that running "rm -f" with no argument
536 # is OK; and we want to be able to make that assumption in our Makefile
537 # recipes. So use an aggressive probe to check that the usage we want is
538 # actually supported "in the wild" to an acceptable degree.
539 # See automake bug#10828.
540 # To make any issue more visible, cause the running configure to be aborted
541 # by default if the 'rm' program in use doesn't match our expectations; the
542 # user can still override this though.
543 if rm -f && rm -fr && rm -rf; then : OK; else
544 cat >&2 <<'END'
545 Oops!
546
547 Your 'rm' program seems unable to run without file operands specified
548 on the command line, even when the '-f' option is present. This is contrary
549 to the behaviour of most rm programs out there, and not conforming with
550 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
551
552 Please tell bug-automake@gnu.org about your system, including the value
553 of your $PATH and any error possibly output before this message. This
554 can help us improve future automake versions.
555
556 END
557 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
558 echo 'Configuration will proceed anyway, since you have set the' >&2
559 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
560 echo >&2
561 else
562 cat >&2 <<'END'
563 Aborting the configuration process, to ensure you take notice of the issue.
564
565 You can download and install GNU coreutils to get an 'rm' implementation
566 that behaves properly: <http://www.gnu.org/software/coreutils/>.
567
568 If you want to complete the configuration process using your problematic
569 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
570 to "yes", and re-run configure.
571
572 END
573 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
574 fi
575 fi])
538576
539577 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
540578 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
541579 dnl mangled by Autoconf and run in a shell conditional statement.
542580 m4_define([_AC_COMPILER_EXEEXT],
543581 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
544
545582
546583 # When config.status generates a header, we must update the stamp-h file.
547584 # This file resides in the same directory as the config header
564601 done
565602 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
566603
567 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
568 #
569 # This file is free software; the Free Software Foundation
570 # gives unlimited permission to copy and/or distribute it,
571 # with or without modifications, as long as this notice is preserved.
572
573 # serial 8
604 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
605 #
606 # This file is free software; the Free Software Foundation
607 # gives unlimited permission to copy and/or distribute it,
608 # with or without modifications, as long as this notice is preserved.
574609
575610 # AM_PROG_INSTALL_SH
576611 # ------------------
587622 fi
588623 AC_SUBST([install_sh])])
589624
590 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
591 #
592 # This file is free software; the Free Software Foundation
593 # gives unlimited permission to copy and/or distribute it,
594 # with or without modifications, as long as this notice is preserved.
595
596 # serial 2
625 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
626 #
627 # This file is free software; the Free Software Foundation
628 # gives unlimited permission to copy and/or distribute it,
629 # with or without modifications, as long as this notice is preserved.
597630
598631 # Check whether the underlying file-system supports filenames
599632 # with a leading dot. For instance MS-DOS doesn't.
611644 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
612645 # From Jim Meyering
613646
614 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
615 #
616 # This file is free software; the Free Software Foundation
617 # gives unlimited permission to copy and/or distribute it,
618 # with or without modifications, as long as this notice is preserved.
619
620 # serial 7
647 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
648 #
649 # This file is free software; the Free Software Foundation
650 # gives unlimited permission to copy and/or distribute it,
651 # with or without modifications, as long as this notice is preserved.
621652
622653 # AM_MAINTAINER_MODE([DEFAULT-MODE])
623654 # ----------------------------------
646677 ]
647678 )
648679
649 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
650
651680 # Check to see how 'make' treats includes. -*- Autoconf -*-
652681
653 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
654 #
655 # This file is free software; the Free Software Foundation
656 # gives unlimited permission to copy and/or distribute it,
657 # with or without modifications, as long as this notice is preserved.
658
659 # serial 5
682 # Copyright (C) 2001-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.
660687
661688 # AM_MAKE_INCLUDE()
662689 # -----------------
702729
703730 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
704731
705 # Copyright (C) 1997-2012 Free Software Foundation, Inc.
706 #
707 # This file is free software; the Free Software Foundation
708 # gives unlimited permission to copy and/or distribute it,
709 # with or without modifications, as long as this notice is preserved.
710
711 # serial 7
732 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
733 #
734 # This file is free software; the Free Software Foundation
735 # gives unlimited permission to copy and/or distribute it,
736 # with or without modifications, as long as this notice is preserved.
712737
713738 # AM_MISSING_PROG(NAME, PROGRAM)
714739 # ------------------------------
717742 $1=${$1-"${am_missing_run}$2"}
718743 AC_SUBST($1)])
719744
720
721745 # AM_MISSING_HAS_RUN
722746 # ------------------
723 # Define MISSING if not defined so far and test if it supports --run.
724 # If it does, set am_missing_run to use it, otherwise, to nothing.
747 # Define MISSING if not defined so far and test if it is modern enough.
748 # If it is, set am_missing_run to use it, otherwise, to nothing.
725749 AC_DEFUN([AM_MISSING_HAS_RUN],
726750 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
727751 AC_REQUIRE_AUX_FILE([missing])dnl
734758 esac
735759 fi
736760 # Use eval to expand $SHELL
737 if eval "$MISSING --run true"; then
738 am_missing_run="$MISSING --run "
761 if eval "$MISSING --is-lightweight"; then
762 am_missing_run="$MISSING "
739763 else
740764 am_missing_run=
741765 AC_MSG_WARN(['missing' script is too old or missing])
744768
745769 # Helper functions for option handling. -*- Autoconf -*-
746770
747 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
748 #
749 # This file is free software; the Free Software Foundation
750 # gives unlimited permission to copy and/or distribute it,
751 # with or without modifications, as long as this notice is preserved.
752
753 # serial 6
771 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
772 #
773 # This file is free software; the Free Software Foundation
774 # gives unlimited permission to copy and/or distribute it,
775 # with or without modifications, as long as this notice is preserved.
754776
755777 # _AM_MANGLE_OPTION(NAME)
756778 # -----------------------
775797 AC_DEFUN([_AM_IF_OPTION],
776798 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
777799
800 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
801 #
802 # This file is free software; the Free Software Foundation
803 # gives unlimited permission to copy and/or distribute it,
804 # with or without modifications, as long as this notice is preserved.
805
806 # _AM_PROG_CC_C_O
807 # ---------------
808 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
809 # to automatically call this.
810 AC_DEFUN([_AM_PROG_CC_C_O],
811 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
812 AC_REQUIRE_AUX_FILE([compile])dnl
813 AC_LANG_PUSH([C])dnl
814 AC_CACHE_CHECK(
815 [whether $CC understands -c and -o together],
816 [am_cv_prog_cc_c_o],
817 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
818 # Make sure it works both with $CC and with simple cc.
819 # Following AC_PROG_CC_C_O, we do the test twice because some
820 # compilers refuse to overwrite an existing .o file with -o,
821 # though they will create one.
822 am_cv_prog_cc_c_o=yes
823 for am_i in 1 2; do
824 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
825 && test -f conftest2.$ac_objext; then
826 : OK
827 else
828 am_cv_prog_cc_c_o=no
829 break
830 fi
831 done
832 rm -f core conftest*
833 unset am_i])
834 if test "$am_cv_prog_cc_c_o" != yes; then
835 # Losing compiler, so override with the script.
836 # FIXME: It is wrong to rewrite CC.
837 # But if we don't then we get into trouble of one sort or another.
838 # A longer-term fix would be to have automake use am__CC in this case,
839 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
840 CC="$am_aux_dir/compile $CC"
841 fi
842 AC_LANG_POP([C])])
843
844 # For backward compatibility.
845 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
846
847 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
848 #
849 # This file is free software; the Free Software Foundation
850 # gives unlimited permission to copy and/or distribute it,
851 # with or without modifications, as long as this notice is preserved.
852
853 # AM_RUN_LOG(COMMAND)
854 # -------------------
855 # Run COMMAND, save the exit status in ac_status, and log it.
856 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
857 AC_DEFUN([AM_RUN_LOG],
858 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
859 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
860 ac_status=$?
861 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
862 (exit $ac_status); }])
863
778864 # Check to make sure that the build environment is sane. -*- Autoconf -*-
779865
780 # Copyright (C) 1996-2012 Free Software Foundation, Inc.
781 #
782 # This file is free software; the Free Software Foundation
783 # gives unlimited permission to copy and/or distribute it,
784 # with or without modifications, as long as this notice is preserved.
785
786 # serial 9
866 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
867 #
868 # This file is free software; the Free Software Foundation
869 # gives unlimited permission to copy and/or distribute it,
870 # with or without modifications, as long as this notice is preserved.
787871
788872 # AM_SANITY_CHECK
789873 # ---------------
860944 rm -f conftest.file
861945 ])
862946
863 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
864 #
865 # This file is free software; the Free Software Foundation
866 # gives unlimited permission to copy and/or distribute it,
867 # with or without modifications, as long as this notice is preserved.
868
869 # serial 2
947 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
948 #
949 # This file is free software; the Free Software Foundation
950 # gives unlimited permission to copy and/or distribute it,
951 # with or without modifications, as long as this notice is preserved.
952
953 # AM_SILENT_RULES([DEFAULT])
954 # --------------------------
955 # Enable less verbose build rules; with the default set to DEFAULT
956 # ("yes" being less verbose, "no" or empty being verbose).
957 AC_DEFUN([AM_SILENT_RULES],
958 [AC_ARG_ENABLE([silent-rules], [dnl
959 AS_HELP_STRING(
960 [--enable-silent-rules],
961 [less verbose build output (undo: "make V=1")])
962 AS_HELP_STRING(
963 [--disable-silent-rules],
964 [verbose build output (undo: "make V=0")])dnl
965 ])
966 case $enable_silent_rules in @%:@ (((
967 yes) AM_DEFAULT_VERBOSITY=0;;
968 no) AM_DEFAULT_VERBOSITY=1;;
969 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
970 esac
971 dnl
972 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
973 dnl do not support nested variable expansions.
974 dnl See automake bug#9928 and bug#10237.
975 am_make=${MAKE-make}
976 AC_CACHE_CHECK([whether $am_make supports nested variables],
977 [am_cv_make_support_nested_variables],
978 [if AS_ECHO([['TRUE=$(BAR$(V))
979 BAR0=false
980 BAR1=true
981 V=1
982 am__doit:
983 @$(TRUE)
984 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
985 am_cv_make_support_nested_variables=yes
986 else
987 am_cv_make_support_nested_variables=no
988 fi])
989 if test $am_cv_make_support_nested_variables = yes; then
990 dnl Using '$V' instead of '$(V)' breaks IRIX make.
991 AM_V='$(V)'
992 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
993 else
994 AM_V=$AM_DEFAULT_VERBOSITY
995 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
996 fi
997 AC_SUBST([AM_V])dnl
998 AM_SUBST_NOTMAKE([AM_V])dnl
999 AC_SUBST([AM_DEFAULT_V])dnl
1000 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1001 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1002 AM_BACKSLASH='\'
1003 AC_SUBST([AM_BACKSLASH])dnl
1004 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1005 ])
1006
1007 # Copyright (C) 2001-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.
8701012
8711013 # AM_PROG_INSTALL_STRIP
8721014 # ---------------------
8901032 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8911033 AC_SUBST([INSTALL_STRIP_PROGRAM])])
8921034
893 # Copyright (C) 2006-2012 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.
898
899 # serial 3
1035 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1036 #
1037 # This file is free software; the Free Software Foundation
1038 # gives unlimited permission to copy and/or distribute it,
1039 # with or without modifications, as long as this notice is preserved.
9001040
9011041 # _AM_SUBST_NOTMAKE(VARIABLE)
9021042 # ---------------------------
9111051
9121052 # Check how to create a tarball. -*- Autoconf -*-
9131053
914 # Copyright (C) 2004-2012 Free Software Foundation, Inc.
915 #
916 # This file is free software; the Free Software Foundation
917 # gives unlimited permission to copy and/or distribute it,
918 # with or without modifications, as long as this notice is preserved.
919
920 # serial 3
1054 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1055 #
1056 # This file is free software; the Free Software Foundation
1057 # gives unlimited permission to copy and/or distribute it,
1058 # with or without modifications, as long as this notice is preserved.
9211059
9221060 # _AM_PROG_TAR(FORMAT)
9231061 # --------------------
9321070 # Substitute a variable $(am__untar) that extract such
9331071 # a tarball read from stdin.
9341072 # $(am__untar) < result.tar
1073 #
9351074 AC_DEFUN([_AM_PROG_TAR],
9361075 [# Always define AMTAR for backward compatibility. Yes, it's still used
9371076 # in the wild :-( We should find a proper way to deprecate it ...
9381077 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1078
1079 # We'll loop over all known methods to create a tar archive until one works.
1080 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1081
9391082 m4_if([$1], [v7],
940 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
941 [m4_case([$1], [ustar],, [pax],,
942 [m4_fatal([Unknown tar format])])
943 AC_MSG_CHECKING([how to create a $1 tar archive])
944 # Loop over all known methods to create a tar archive until one works.
945 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
946 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
947 # Do not fold the above two line into one, because Tru64 sh and
948 # Solaris sh will not grok spaces in the rhs of '-'.
949 for _am_tool in $_am_tools
950 do
951 case $_am_tool in
952 gnutar)
953 for _am_tar in tar gnutar gtar;
954 do
955 AM_RUN_LOG([$_am_tar --version]) && break
956 done
957 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
958 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
959 am__untar="$_am_tar -xf -"
960 ;;
961 plaintar)
962 # Must skip GNU tar: if it does not support --format= it doesn't create
963 # ustar tarball either.
964 (tar --version) >/dev/null 2>&1 && continue
965 am__tar='tar chf - "$$tardir"'
966 am__tar_='tar chf - "$tardir"'
967 am__untar='tar xf -'
968 ;;
969 pax)
970 am__tar='pax -L -x $1 -w "$$tardir"'
971 am__tar_='pax -L -x $1 -w "$tardir"'
972 am__untar='pax -r'
973 ;;
974 cpio)
975 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
976 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
977 am__untar='cpio -i -H $1 -d'
978 ;;
979 none)
980 am__tar=false
981 am__tar_=false
982 am__untar=false
983 ;;
984 esac
985
986 # If the value was cached, stop now. We just wanted to have am__tar
987 # and am__untar set.
988 test -n "${am_cv_prog_tar_$1}" && break
989
990 # tar/untar a dummy directory, and stop if the command works
1083 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1084
1085 [m4_case([$1],
1086 [ustar],
1087 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1088 # There is notably a 21 bits limit for the UID and the GID. In fact,
1089 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1090 # and bug#13588).
1091 am_max_uid=2097151 # 2^21 - 1
1092 am_max_gid=$am_max_uid
1093 # The $UID and $GID variables are not portable, so we need to resort
1094 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1095 # below are definitely unexpected, so allow the users to see them
1096 # (that is, avoid stderr redirection).
1097 am_uid=`id -u || echo unknown`
1098 am_gid=`id -g || echo unknown`
1099 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1100 if test $am_uid -le $am_max_uid; then
1101 AC_MSG_RESULT([yes])
1102 else
1103 AC_MSG_RESULT([no])
1104 _am_tools=none
1105 fi
1106 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1107 if test $am_gid -le $am_max_gid; then
1108 AC_MSG_RESULT([yes])
1109 else
1110 AC_MSG_RESULT([no])
1111 _am_tools=none
1112 fi],
1113
1114 [pax],
1115 [],
1116
1117 [m4_fatal([Unknown tar format])])
1118
1119 AC_MSG_CHECKING([how to create a $1 tar archive])
1120
1121 # Go ahead even if we have the value already cached. We do so because we
1122 # need to set the values for the 'am__tar' and 'am__untar' variables.
1123 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1124
1125 for _am_tool in $_am_tools; do
1126 case $_am_tool in
1127 gnutar)
1128 for _am_tar in tar gnutar gtar; do
1129 AM_RUN_LOG([$_am_tar --version]) && break
1130 done
1131 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1132 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1133 am__untar="$_am_tar -xf -"
1134 ;;
1135 plaintar)
1136 # Must skip GNU tar: if it does not support --format= it doesn't create
1137 # ustar tarball either.
1138 (tar --version) >/dev/null 2>&1 && continue
1139 am__tar='tar chf - "$$tardir"'
1140 am__tar_='tar chf - "$tardir"'
1141 am__untar='tar xf -'
1142 ;;
1143 pax)
1144 am__tar='pax -L -x $1 -w "$$tardir"'
1145 am__tar_='pax -L -x $1 -w "$tardir"'
1146 am__untar='pax -r'
1147 ;;
1148 cpio)
1149 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1150 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1151 am__untar='cpio -i -H $1 -d'
1152 ;;
1153 none)
1154 am__tar=false
1155 am__tar_=false
1156 am__untar=false
1157 ;;
1158 esac
1159
1160 # If the value was cached, stop now. We just wanted to have am__tar
1161 # and am__untar set.
1162 test -n "${am_cv_prog_tar_$1}" && break
1163
1164 # tar/untar a dummy directory, and stop if the command works.
1165 rm -rf conftest.dir
1166 mkdir conftest.dir
1167 echo GrepMe > conftest.dir/file
1168 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1169 rm -rf conftest.dir
1170 if test -s conftest.tar; then
1171 AM_RUN_LOG([$am__untar <conftest.tar])
1172 AM_RUN_LOG([cat conftest.dir/file])
1173 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1174 fi
1175 done
9911176 rm -rf conftest.dir
992 mkdir conftest.dir
993 echo GrepMe > conftest.dir/file
994 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
995 rm -rf conftest.dir
996 if test -s conftest.tar; then
997 AM_RUN_LOG([$am__untar <conftest.tar])
998 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
999 fi
1000 done
1001 rm -rf conftest.dir
1002
1003 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1004 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1177
1178 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1179 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1180
10051181 AC_SUBST([am__tar])
10061182 AC_SUBST([am__untar])
10071183 ]) # _AM_PROG_TAR
+0
-5741
autom4te.cache/output.0 less more
0 @%:@! /bin/sh
1 @%:@ Guess values for system-dependent variables and create Makefiles.
2 @%:@ Generated by GNU Autoconf 2.69 for unrtf 0.21.3.
3 @%:@
4 @%:@ Report bugs to <bug-unrtf@gnu.org>.
5 @%:@
6 @%:@
7 @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8 @%:@
9 @%:@
10 @%:@ This configure script is free software; the Free Software Foundation
11 @%:@ gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in @%:@(
27 *posix*) :
28 set -o posix ;; @%:@(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in @%:@(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in @%:@((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in @%:@ ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
161 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163 emulate sh
164 NULLCMD=:
165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 # is contrary to our usage. Disable this feature.
167 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168 setopt NO_GLOB_SUBST
169 else
170 case \`(set -o) 2>/dev/null\` in @%:@(
171 *posix*) :
172 set -o posix ;; @%:@(
173 *) :
174 ;;
175 esac
176 fi
177 "
178 as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
183
184 exitcode=0
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
192 exitcode=1; echo positional parameters were not saved.
193 fi
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test \$(( 1 + 1 )) = 2 || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203 else
204 as_have_required=no
205 fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208 else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 as_found=false
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 do
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in @%:@(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi; }
236 IFS=$as_save_IFS
237
238
239 if test "x$CONFIG_SHELL" != x; then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in @%:@ ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-unrtf@gnu.org
269 $0: about your system, including any error possibly output
270 $0: before this message. Then install a modern shell, or
271 $0: manually run the script under such a shell if you do
272 $0: have one."
273 fi
274 exit 1
275 fi
276 fi
277 fi
278 SHELL=${CONFIG_SHELL-/bin/sh}
279 export SHELL
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
283
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
287 @%:@ as_fn_unset VAR
288 @%:@ ---------------
289 @%:@ Portably unset VAR.
290 as_fn_unset ()
291 {
292 { eval $1=; unset $1;}
293 }
294 as_unset=as_fn_unset
295
296 @%:@ as_fn_set_status STATUS
297 @%:@ -----------------------
298 @%:@ Set @S|@? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301 return $1
302 } @%:@ as_fn_set_status
303
304 @%:@ as_fn_exit STATUS
305 @%:@ -----------------
306 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } @%:@ as_fn_exit
313
314 @%:@ as_fn_mkdir_p
315 @%:@ -------------
316 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
317 as_fn_mkdir_p ()
318 {
319
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360 } @%:@ as_fn_mkdir_p
361
362 @%:@ as_fn_executable_p FILE
363 @%:@ -----------------------
364 @%:@ Test if FILE is an executable regular file.
365 as_fn_executable_p ()
366 {
367 test -f "$1" && test -x "$1"
368 } @%:@ as_fn_executable_p
369 @%:@ as_fn_append VAR VALUE
370 @%:@ ----------------------
371 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
372 @%:@ advantage of any shell optimizations that allow amortized linear growth over
373 @%:@ repeated appends, instead of the typical quadratic growth present in naive
374 @%:@ implementations.
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
377 {
378 eval $1+=\$2
379 }'
380 else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385 fi # as_fn_append
386
387 @%:@ as_fn_arith ARG...
388 @%:@ ------------------
389 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
390 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
391 @%:@ must be portable across @S|@(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397 else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402 fi # as_fn_arith
403
404
405 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
406 @%:@ ----------------------------------------
407 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 @%:@ script with STATUS, using 1 if that was 0.
410 as_fn_error ()
411 {
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 fi
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419 } @%:@ as_fn_error
420
421 if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424 else
425 as_expr=false
426 fi
427
428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430 else
431 as_basename=false
432 fi
433
434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436 else
437 as_dirname=false
438 fi
439
440 as_me=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 $as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
458
459 # Avoid depending upon Character Ranges.
460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits='0123456789'
464 as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
500 }
501
502 ECHO_C= ECHO_N= ECHO_T=
503 case `echo -n x` in @%:@(((((
504 -n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
511 *)
512 ECHO_N='-n';;
513 esac
514
515 rm -f conf$$ conf$$.exe conf$$.file
516 if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518 else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
521 fi
522 if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
535 fi
536 else
537 as_ln_s='cp -pR'
538 fi
539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 rmdir conf$$.dir 2>/dev/null
541
542 if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544 else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
547 fi
548
549 as_test_x='test -x'
550 as_executable_p=as_fn_executable_p
551
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559 test -n "$DJDIR" || exec 7<&0 </dev/null
560 exec 6>&1
561
562 # Name of the host.
563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564 # so uname gets run too.
565 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567 #
568 # Initializations.
569 #
570 ac_default_prefix=/usr/local
571 ac_clean_files=
572 ac_config_libobj_dir=.
573 LIB@&t@OBJS=
574 cross_compiling=no
575 subdirs=
576 MFLAGS=
577 MAKEFLAGS=
578
579 # Identity of this package.
580 PACKAGE_NAME='unrtf'
581 PACKAGE_TARNAME='unrtf'
582 PACKAGE_VERSION='0.21.3'
583 PACKAGE_STRING='unrtf 0.21.3'
584 PACKAGE_BUGREPORT='bug-unrtf@gnu.org'
585 PACKAGE_URL=''
586
587 ac_unique_file="src/attr.c"
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 # include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 # include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 ac_subst_vars='am__EXEEXT_FALSE
625 am__EXEEXT_TRUE
626 LTLIBOBJS
627 host_os
628 host_vendor
629 host_cpu
630 host
631 build_os
632 build_vendor
633 build_cpu
634 build
635 LIB@&t@OBJS
636 EGREP
637 GREP
638 CPP
639 am__fastdepCC_FALSE
640 am__fastdepCC_TRUE
641 CCDEPMODE
642 am__nodep
643 AMDEPBACKSLASH
644 AMDEP_FALSE
645 AMDEP_TRUE
646 am__quote
647 am__include
648 DEPDIR
649 OBJEXT
650 EXEEXT
651 ac_ct_CC
652 CPPFLAGS
653 LDFLAGS
654 CFLAGS
655 CC
656 MAINT
657 MAINTAINER_MODE_FALSE
658 MAINTAINER_MODE_TRUE
659 am__untar
660 am__tar
661 AMTAR
662 am__leading_dot
663 SET_MAKE
664 AWK
665 mkdir_p
666 MKDIR_P
667 INSTALL_STRIP_PROGRAM
668 STRIP
669 install_sh
670 MAKEINFO
671 AUTOHEADER
672 AUTOMAKE
673 AUTOCONF
674 ACLOCAL
675 VERSION
676 PACKAGE
677 CYGPATH_W
678 am__isrc
679 INSTALL_DATA
680 INSTALL_SCRIPT
681 INSTALL_PROGRAM
682 target_alias
683 host_alias
684 build_alias
685 LIBS
686 ECHO_T
687 ECHO_N
688 ECHO_C
689 DEFS
690 mandir
691 localedir
692 libdir
693 psdir
694 pdfdir
695 dvidir
696 htmldir
697 infodir
698 docdir
699 oldincludedir
700 includedir
701 localstatedir
702 sharedstatedir
703 sysconfdir
704 datadir
705 datarootdir
706 libexecdir
707 sbindir
708 bindir
709 program_transform_name
710 prefix
711 exec_prefix
712 PACKAGE_URL
713 PACKAGE_BUGREPORT
714 PACKAGE_STRING
715 PACKAGE_VERSION
716 PACKAGE_TARNAME
717 PACKAGE_NAME
718 PATH_SEPARATOR
719 SHELL'
720 ac_subst_files=''
721 ac_user_opts='
722 enable_option_checking
723 enable_maintainer_mode
724 enable_dependency_tracking
725 '
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
729 CC
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
734 CPP'
735
736
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 ac_unrecognized_opts=
741 ac_unrecognized_sep=
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
744 cache_file=/dev/null
745 exec_prefix=NONE
746 no_create=
747 no_recursion=
748 prefix=NONE
749 program_prefix=NONE
750 program_suffix=NONE
751 program_transform_name=s,x,x,
752 silent=
753 site=
754 srcdir=
755 verbose=
756 x_includes=NONE
757 x_libraries=NONE
758
759 # Installation directory options.
760 # These are left unexpanded so users can "make install exec_prefix=/foo"
761 # and all the variables that are supposed to be based on exec_prefix
762 # by default will actually change.
763 # Use braces instead of parens because sh, perl, etc. also accept them.
764 # (The list follows the same order as the GNU Coding Standards.)
765 bindir='${exec_prefix}/bin'
766 sbindir='${exec_prefix}/sbin'
767 libexecdir='${exec_prefix}/libexec'
768 datarootdir='${prefix}/share'
769 datadir='${datarootdir}'
770 sysconfdir='${prefix}/etc'
771 sharedstatedir='${prefix}/com'
772 localstatedir='${prefix}/var'
773 includedir='${prefix}/include'
774 oldincludedir='/usr/include'
775 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
776 infodir='${datarootdir}/info'
777 htmldir='${docdir}'
778 dvidir='${docdir}'
779 pdfdir='${docdir}'
780 psdir='${docdir}'
781 libdir='${exec_prefix}/lib'
782 localedir='${datarootdir}/locale'
783 mandir='${datarootdir}/man'
784
785 ac_prev=
786 ac_dashdash=
787 for ac_option
788 do
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\$ac_option
792 ac_prev=
793 continue
794 fi
795
796 case $ac_option in
797 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798 *=) ac_optarg= ;;
799 *) ac_optarg=yes ;;
800 esac
801
802 # Accept the important Cygnus configure options, so we can diagnose typos.
803
804 case $ac_dashdash$ac_option in
805 --)
806 ac_dashdash=yes ;;
807
808 -bindir | --bindir | --bindi | --bind | --bin | --bi)
809 ac_prev=bindir ;;
810 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
811 bindir=$ac_optarg ;;
812
813 -build | --build | --buil | --bui | --bu)
814 ac_prev=build_alias ;;
815 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
816 build_alias=$ac_optarg ;;
817
818 -cache-file | --cache-file | --cache-fil | --cache-fi \
819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
820 ac_prev=cache_file ;;
821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
823 cache_file=$ac_optarg ;;
824
825 --config-cache | -C)
826 cache_file=config.cache ;;
827
828 -datadir | --datadir | --datadi | --datad)
829 ac_prev=datadir ;;
830 -datadir=* | --datadir=* | --datadi=* | --datad=*)
831 datadir=$ac_optarg ;;
832
833 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
834 | --dataroo | --dataro | --datar)
835 ac_prev=datarootdir ;;
836 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
837 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
838 datarootdir=$ac_optarg ;;
839
840 -disable-* | --disable-*)
841 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
844 as_fn_error $? "invalid feature name: $ac_useropt"
845 ac_useropt_orig=$ac_useropt
846 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847 case $ac_user_opts in
848 *"
849 "enable_$ac_useropt"
850 "*) ;;
851 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
852 ac_unrecognized_sep=', ';;
853 esac
854 eval enable_$ac_useropt=no ;;
855
856 -docdir | --docdir | --docdi | --doc | --do)
857 ac_prev=docdir ;;
858 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
859 docdir=$ac_optarg ;;
860
861 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
862 ac_prev=dvidir ;;
863 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
864 dvidir=$ac_optarg ;;
865
866 -enable-* | --enable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 as_fn_error $? "invalid feature name: $ac_useropt"
871 ac_useropt_orig=$ac_useropt
872 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873 case $ac_user_opts in
874 *"
875 "enable_$ac_useropt"
876 "*) ;;
877 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
878 ac_unrecognized_sep=', ';;
879 esac
880 eval enable_$ac_useropt=\$ac_optarg ;;
881
882 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
883 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
884 | --exec | --exe | --ex)
885 ac_prev=exec_prefix ;;
886 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
887 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
888 | --exec=* | --exe=* | --ex=*)
889 exec_prefix=$ac_optarg ;;
890
891 -gas | --gas | --ga | --g)
892 # Obsolete; use --with-gas.
893 with_gas=yes ;;
894
895 -help | --help | --hel | --he | -h)
896 ac_init_help=long ;;
897 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
898 ac_init_help=recursive ;;
899 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
900 ac_init_help=short ;;
901
902 -host | --host | --hos | --ho)
903 ac_prev=host_alias ;;
904 -host=* | --host=* | --hos=* | --ho=*)
905 host_alias=$ac_optarg ;;
906
907 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
908 ac_prev=htmldir ;;
909 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
910 | --ht=*)
911 htmldir=$ac_optarg ;;
912
913 -includedir | --includedir | --includedi | --included | --include \
914 | --includ | --inclu | --incl | --inc)
915 ac_prev=includedir ;;
916 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
917 | --includ=* | --inclu=* | --incl=* | --inc=*)
918 includedir=$ac_optarg ;;
919
920 -infodir | --infodir | --infodi | --infod | --info | --inf)
921 ac_prev=infodir ;;
922 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
923 infodir=$ac_optarg ;;
924
925 -libdir | --libdir | --libdi | --libd)
926 ac_prev=libdir ;;
927 -libdir=* | --libdir=* | --libdi=* | --libd=*)
928 libdir=$ac_optarg ;;
929
930 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
931 | --libexe | --libex | --libe)
932 ac_prev=libexecdir ;;
933 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
934 | --libexe=* | --libex=* | --libe=*)
935 libexecdir=$ac_optarg ;;
936
937 -localedir | --localedir | --localedi | --localed | --locale)
938 ac_prev=localedir ;;
939 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
940 localedir=$ac_optarg ;;
941
942 -localstatedir | --localstatedir | --localstatedi | --localstated \
943 | --localstate | --localstat | --localsta | --localst | --locals)
944 ac_prev=localstatedir ;;
945 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
946 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
947 localstatedir=$ac_optarg ;;
948
949 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
950 ac_prev=mandir ;;
951 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
952 mandir=$ac_optarg ;;
953
954 -nfp | --nfp | --nf)
955 # Obsolete; use --without-fp.
956 with_fp=no ;;
957
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c | -n)
960 no_create=yes ;;
961
962 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
963 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
964 no_recursion=yes ;;
965
966 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
967 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
968 | --oldin | --oldi | --old | --ol | --o)
969 ac_prev=oldincludedir ;;
970 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
971 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
972 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
973 oldincludedir=$ac_optarg ;;
974
975 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
976 ac_prev=prefix ;;
977 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
978 prefix=$ac_optarg ;;
979
980 -program-prefix | --program-prefix | --program-prefi | --program-pref \
981 | --program-pre | --program-pr | --program-p)
982 ac_prev=program_prefix ;;
983 -program-prefix=* | --program-prefix=* | --program-prefi=* \
984 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
985 program_prefix=$ac_optarg ;;
986
987 -program-suffix | --program-suffix | --program-suffi | --program-suff \
988 | --program-suf | --program-su | --program-s)
989 ac_prev=program_suffix ;;
990 -program-suffix=* | --program-suffix=* | --program-suffi=* \
991 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
992 program_suffix=$ac_optarg ;;
993
994 -program-transform-name | --program-transform-name \
995 | --program-transform-nam | --program-transform-na \
996 | --program-transform-n | --program-transform- \
997 | --program-transform | --program-transfor \
998 | --program-transfo | --program-transf \
999 | --program-trans | --program-tran \
1000 | --progr-tra | --program-tr | --program-t)
1001 ac_prev=program_transform_name ;;
1002 -program-transform-name=* | --program-transform-name=* \
1003 | --program-transform-nam=* | --program-transform-na=* \
1004 | --program-transform-n=* | --program-transform-=* \
1005 | --program-transform=* | --program-transfor=* \
1006 | --program-transfo=* | --program-transf=* \
1007 | --program-trans=* | --program-tran=* \
1008 | --progr-tra=* | --program-tr=* | --program-t=*)
1009 program_transform_name=$ac_optarg ;;
1010
1011 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1012 ac_prev=pdfdir ;;
1013 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1014 pdfdir=$ac_optarg ;;
1015
1016 -psdir | --psdir | --psdi | --psd | --ps)
1017 ac_prev=psdir ;;
1018 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1019 psdir=$ac_optarg ;;
1020
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 silent=yes ;;
1024
1025 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1026 ac_prev=sbindir ;;
1027 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1028 | --sbi=* | --sb=*)
1029 sbindir=$ac_optarg ;;
1030
1031 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1032 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1033 | --sharedst | --shareds | --shared | --share | --shar \
1034 | --sha | --sh)
1035 ac_prev=sharedstatedir ;;
1036 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1037 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1038 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1039 | --sha=* | --sh=*)
1040 sharedstatedir=$ac_optarg ;;
1041
1042 -site | --site | --sit)
1043 ac_prev=site ;;
1044 -site=* | --site=* | --sit=*)
1045 site=$ac_optarg ;;
1046
1047 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1048 ac_prev=srcdir ;;
1049 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1050 srcdir=$ac_optarg ;;
1051
1052 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1053 | --syscon | --sysco | --sysc | --sys | --sy)
1054 ac_prev=sysconfdir ;;
1055 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1056 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1057 sysconfdir=$ac_optarg ;;
1058
1059 -target | --target | --targe | --targ | --tar | --ta | --t)
1060 ac_prev=target_alias ;;
1061 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1062 target_alias=$ac_optarg ;;
1063
1064 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1065 verbose=yes ;;
1066
1067 -version | --version | --versio | --versi | --vers | -V)
1068 ac_init_version=: ;;
1069
1070 -with-* | --with-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid package name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079 "with_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval with_$ac_useropt=\$ac_optarg ;;
1085
1086 -without-* | --without-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error $? "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095 "with_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval with_$ac_useropt=no ;;
1101
1102 --x)
1103 # Obsolete; use --with-x.
1104 with_x=yes ;;
1105
1106 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1107 | --x-incl | --x-inc | --x-in | --x-i)
1108 ac_prev=x_includes ;;
1109 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1110 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1111 x_includes=$ac_optarg ;;
1112
1113 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1114 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1115 ac_prev=x_libraries ;;
1116 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1117 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1118 x_libraries=$ac_optarg ;;
1119
1120 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1121 Try \`$0 --help' for more information"
1122 ;;
1123
1124 *=*)
1125 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1126 # Reject names that are not valid shell variable names.
1127 case $ac_envvar in #(
1128 '' | [0-9]* | *[!_$as_cr_alnum]* )
1129 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1130 esac
1131 eval $ac_envvar=\$ac_optarg
1132 export $ac_envvar ;;
1133
1134 *)
1135 # FIXME: should be removed in autoconf 3.0.
1136 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1137 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1138 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1139 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1140 ;;
1141
1142 esac
1143 done
1144
1145 if test -n "$ac_prev"; then
1146 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1147 as_fn_error $? "missing argument to $ac_option"
1148 fi
1149
1150 if test -n "$ac_unrecognized_opts"; then
1151 case $enable_option_checking in
1152 no) ;;
1153 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1154 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1155 esac
1156 fi
1157
1158 # Check all directory arguments for consistency.
1159 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1160 datadir sysconfdir sharedstatedir localstatedir includedir \
1161 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1162 libdir localedir mandir
1163 do
1164 eval ac_val=\$$ac_var
1165 # Remove trailing slashes.
1166 case $ac_val in
1167 */ )
1168 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1169 eval $ac_var=\$ac_val;;
1170 esac
1171 # Be sure to have absolute directory names.
1172 case $ac_val in
1173 [\\/$]* | ?:[\\/]* ) continue;;
1174 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1175 esac
1176 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1177 done
1178
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1182 build=$build_alias
1183 host=$host_alias
1184 target=$target_alias
1185
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 elif test "x$build_alias" != "x$host_alias"; then
1191 cross_compiling=yes
1192 fi
1193 fi
1194
1195 ac_tool_prefix=
1196 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1197
1198 test "$silent" = yes && exec 6>/dev/null
1199
1200
1201 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1202 ac_ls_di=`ls -di .` &&
1203 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1204 as_fn_error $? "working directory cannot be determined"
1205 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1206 as_fn_error $? "pwd does not report name of working directory"
1207
1208
1209 # Find the source files, if location was not specified.
1210 if test -z "$srcdir"; then
1211 ac_srcdir_defaulted=yes
1212 # Try the directory containing this script, then the parent directory.
1213 ac_confdir=`$as_dirname -- "$as_myself" ||
1214 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1215 X"$as_myself" : 'X\(//\)[^/]' \| \
1216 X"$as_myself" : 'X\(//\)$' \| \
1217 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1218 $as_echo X"$as_myself" |
1219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1220 s//\1/
1221 q
1222 }
1223 /^X\(\/\/\)[^/].*/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)$/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\).*/{
1232 s//\1/
1233 q
1234 }
1235 s/.*/./; q'`
1236 srcdir=$ac_confdir
1237 if test ! -r "$srcdir/$ac_unique_file"; then
1238 srcdir=..
1239 fi
1240 else
1241 ac_srcdir_defaulted=no
1242 fi
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1244 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1245 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1246 fi
1247 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1248 ac_abs_confdir=`(
1249 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1250 pwd)`
1251 # When building in place, set srcdir=.
1252 if test "$ac_abs_confdir" = "$ac_pwd"; then
1253 srcdir=.
1254 fi
1255 # Remove unnecessary trailing slashes from srcdir.
1256 # Double slashes in file names in object file debugging info
1257 # mess up M-x gdb in Emacs.
1258 case $srcdir in
1259 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1260 esac
1261 for ac_var in $ac_precious_vars; do
1262 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1263 eval ac_env_${ac_var}_value=\$${ac_var}
1264 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1265 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1266 done
1267
1268 #
1269 # Report the --help message.
1270 #
1271 if test "$ac_init_help" = "long"; then
1272 # Omit some internal or obsolete options to make the list less imposing.
1273 # This message is too long to be a string in the A/UX 3.1 sh.
1274 cat <<_ACEOF
1275 \`configure' configures unrtf 0.21.3 to adapt to many kinds of systems.
1276
1277 Usage: $0 [OPTION]... [VAR=VALUE]...
1278
1279 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1280 VAR=VALUE. See below for descriptions of some of the useful variables.
1281
1282 Defaults for the options are specified in brackets.
1283
1284 Configuration:
1285 -h, --help display this help and exit
1286 --help=short display options specific to this package
1287 --help=recursive display the short help of all the included packages
1288 -V, --version display version information and exit
1289 -q, --quiet, --silent do not print \`checking ...' messages
1290 --cache-file=FILE cache test results in FILE [disabled]
1291 -C, --config-cache alias for \`--cache-file=config.cache'
1292 -n, --no-create do not create output files
1293 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1294
1295 Installation directories:
1296 --prefix=PREFIX install architecture-independent files in PREFIX
1297 @<:@@S|@ac_default_prefix@:>@
1298 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1299 @<:@PREFIX@:>@
1300
1301 By default, \`make install' will install all the files in
1302 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1303 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1304 for instance \`--prefix=\$HOME'.
1305
1306 For better control, use the options below.
1307
1308 Fine tuning of the installation directories:
1309 --bindir=DIR user executables [EPREFIX/bin]
1310 --sbindir=DIR system admin executables [EPREFIX/sbin]
1311 --libexecdir=DIR program executables [EPREFIX/libexec]
1312 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1313 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1314 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1315 --libdir=DIR object code libraries [EPREFIX/lib]
1316 --includedir=DIR C header files [PREFIX/include]
1317 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1318 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1319 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1320 --infodir=DIR info documentation [DATAROOTDIR/info]
1321 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1322 --mandir=DIR man documentation [DATAROOTDIR/man]
1323 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/unrtf@:>@
1324 --htmldir=DIR html documentation [DOCDIR]
1325 --dvidir=DIR dvi documentation [DOCDIR]
1326 --pdfdir=DIR pdf documentation [DOCDIR]
1327 --psdir=DIR ps documentation [DOCDIR]
1328 _ACEOF
1329
1330 cat <<\_ACEOF
1331
1332 Program names:
1333 --program-prefix=PREFIX prepend PREFIX to installed program names
1334 --program-suffix=SUFFIX append SUFFIX to installed program names
1335 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1336
1337 System types:
1338 --build=BUILD configure for building on BUILD [guessed]
1339 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1340 _ACEOF
1341 fi
1342
1343 if test -n "$ac_init_help"; then
1344 case $ac_init_help in
1345 short | recursive ) echo "Configuration of unrtf 0.21.3:";;
1346 esac
1347 cat <<\_ACEOF
1348
1349 Optional Features:
1350 --disable-option-checking ignore unrecognized --enable/--with options
1351 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1352 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1353 --enable-maintainer-mode
1354 enable make rules and dependencies not useful (and
1355 sometimes confusing) to the casual installer
1356 --enable-dependency-tracking
1357 do not reject slow dependency extractors
1358 --disable-dependency-tracking
1359 speeds up one-time build
1360
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CPP C preprocessor
1370
1371 Use these variables to override the choices made by `configure' or to help
1372 it to find libraries and programs with nonstandard names/locations.
1373
1374 Report bugs to <bug-unrtf@gnu.org>.
1375 _ACEOF
1376 ac_status=$?
1377 fi
1378
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" ||
1383 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1384 continue
1385 ac_builddir=.
1386
1387 case "$ac_dir" in
1388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *)
1390 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1391 # A ".." for each directory in $ac_dir_suffix.
1392 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1393 case $ac_top_builddir_sub in
1394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 esac ;;
1397 esac
1398 ac_abs_top_builddir=$ac_pwd
1399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1400 # for backward compatibility:
1401 ac_top_builddir=$ac_top_build_prefix
1402
1403 case $srcdir in
1404 .) # We are building in place.
1405 ac_srcdir=.
1406 ac_top_srcdir=$ac_top_builddir_sub
1407 ac_abs_top_srcdir=$ac_pwd ;;
1408 [\\/]* | ?:[\\/]* ) # Absolute name.
1409 ac_srcdir=$srcdir$ac_dir_suffix;
1410 ac_top_srcdir=$srcdir
1411 ac_abs_top_srcdir=$srcdir ;;
1412 *) # Relative name.
1413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1414 ac_top_srcdir=$ac_top_build_prefix$srcdir
1415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1416 esac
1417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1418
1419 cd "$ac_dir" || { ac_status=$?; continue; }
1420 # Check for guested configure.
1421 if test -f "$ac_srcdir/configure.gnu"; then
1422 echo &&
1423 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1424 elif test -f "$ac_srcdir/configure"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure" --help=recursive
1427 else
1428 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1429 fi || ac_status=$?
1430 cd "$ac_pwd" || { ac_status=$?; break; }
1431 done
1432 fi
1433
1434 test -n "$ac_init_help" && exit $ac_status
1435 if $ac_init_version; then
1436 cat <<\_ACEOF
1437 unrtf configure 0.21.3
1438 generated by GNU Autoconf 2.69
1439
1440 Copyright (C) 2012 Free Software Foundation, Inc.
1441 This configure script is free software; the Free Software Foundation
1442 gives unlimited permission to copy, distribute and modify it.
1443 _ACEOF
1444 exit
1445 fi
1446
1447 ## ------------------------ ##
1448 ## Autoconf initialization. ##
1449 ## ------------------------ ##
1450
1451 @%:@ ac_fn_c_try_compile LINENO
1452 @%:@ --------------------------
1453 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1454 ac_fn_c_try_compile ()
1455 {
1456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1457 rm -f conftest.$ac_objext
1458 if { { ac_try="$ac_compile"
1459 case "(($ac_try" in
1460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1461 *) ac_try_echo=$ac_try;;
1462 esac
1463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1464 $as_echo "$ac_try_echo"; } >&5
1465 (eval "$ac_compile") 2>conftest.err
1466 ac_status=$?
1467 if test -s conftest.err; then
1468 grep -v '^ *+' conftest.err >conftest.er1
1469 cat conftest.er1 >&5
1470 mv -f conftest.er1 conftest.err
1471 fi
1472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1473 test $ac_status = 0; } && {
1474 test -z "$ac_c_werror_flag" ||
1475 test ! -s conftest.err
1476 } && test -s conftest.$ac_objext; then :
1477 ac_retval=0
1478 else
1479 $as_echo "$as_me: failed program was:" >&5
1480 sed 's/^/| /' conftest.$ac_ext >&5
1481
1482 ac_retval=1
1483 fi
1484 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1485 as_fn_set_status $ac_retval
1486
1487 } @%:@ ac_fn_c_try_compile
1488
1489 @%:@ ac_fn_c_try_cpp LINENO
1490 @%:@ ----------------------
1491 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_cpp ()
1493 {
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 if { { ac_try="$ac_cpp conftest.$ac_ext"
1496 case "(($ac_try" in
1497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1498 *) ac_try_echo=$ac_try;;
1499 esac
1500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1501 $as_echo "$ac_try_echo"; } >&5
1502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1503 ac_status=$?
1504 if test -s conftest.err; then
1505 grep -v '^ *+' conftest.err >conftest.er1
1506 cat conftest.er1 >&5
1507 mv -f conftest.er1 conftest.err
1508 fi
1509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; } > conftest.i && {
1511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1512 test ! -s conftest.err
1513 }; then :
1514 ac_retval=0
1515 else
1516 $as_echo "$as_me: failed program was:" >&5
1517 sed 's/^/| /' conftest.$ac_ext >&5
1518
1519 ac_retval=1
1520 fi
1521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1522 as_fn_set_status $ac_retval
1523
1524 } @%:@ ac_fn_c_try_cpp
1525
1526 @%:@ ac_fn_c_try_run LINENO
1527 @%:@ ----------------------
1528 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1529 @%:@ that executables *can* be run.
1530 ac_fn_c_try_run ()
1531 {
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if { { ac_try="$ac_link"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_link") 2>&5
1541 ac_status=$?
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1544 { { case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_try") 2>&5
1551 ac_status=$?
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; }; }; then :
1554 ac_retval=0
1555 else
1556 $as_echo "$as_me: program exited with status $ac_status" >&5
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560 ac_retval=$ac_status
1561 fi
1562 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564 as_fn_set_status $ac_retval
1565
1566 } @%:@ ac_fn_c_try_run
1567
1568 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1569 @%:@ -------------------------------------------------------
1570 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1571 @%:@ the include files in INCLUDES and setting the cache variable VAR
1572 @%:@ accordingly.
1573 ac_fn_c_check_header_mongrel ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if eval \${$3+:} false; then :
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1578 $as_echo_n "checking for $2... " >&6; }
1579 if eval \${$3+:} false; then :
1580 $as_echo_n "(cached) " >&6
1581 fi
1582 eval ac_res=\$$3
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1584 $as_echo "$ac_res" >&6; }
1585 else
1586 # Is the header compilable?
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1588 $as_echo_n "checking $2 usability... " >&6; }
1589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1590 /* end confdefs.h. */
1591 $4
1592 @%:@include <$2>
1593 _ACEOF
1594 if ac_fn_c_try_compile "$LINENO"; then :
1595 ac_header_compiler=yes
1596 else
1597 ac_header_compiler=no
1598 fi
1599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1601 $as_echo "$ac_header_compiler" >&6; }
1602
1603 # Is the header present?
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1605 $as_echo_n "checking $2 presence... " >&6; }
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1608 @%:@include <$2>
1609 _ACEOF
1610 if ac_fn_c_try_cpp "$LINENO"; then :
1611 ac_header_preproc=yes
1612 else
1613 ac_header_preproc=no
1614 fi
1615 rm -f conftest.err conftest.i conftest.$ac_ext
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1617 $as_echo "$ac_header_preproc" >&6; }
1618
1619 # So? What about this header?
1620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1621 yes:no: )
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1623 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1625 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1626 ;;
1627 no:yes:* )
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1629 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1631 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1633 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1635 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1637 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1638 ( $as_echo "## -------------------------------- ##
1639 ## Report this to bug-unrtf@gnu.org ##
1640 ## -------------------------------- ##"
1641 ) | sed "s/^/$as_me: WARNING: /" >&2
1642 ;;
1643 esac
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if eval \${$3+:} false; then :
1647 $as_echo_n "(cached) " >&6
1648 else
1649 eval "$3=\$ac_header_compiler"
1650 fi
1651 eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654 fi
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657 } @%:@ ac_fn_c_check_header_mongrel
1658
1659 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1660 @%:@ -------------------------------------------------------
1661 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1662 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1663 ac_fn_c_check_header_compile ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667 $as_echo_n "checking for $2... " >&6; }
1668 if eval \${$3+:} false; then :
1669 $as_echo_n "(cached) " >&6
1670 else
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1673 $4
1674 @%:@include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_compile "$LINENO"; then :
1677 eval "$3=yes"
1678 else
1679 eval "$3=no"
1680 fi
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 fi
1683 eval ac_res=\$$3
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687
1688 } @%:@ ac_fn_c_check_header_compile
1689
1690 @%:@ ac_fn_c_try_link LINENO
1691 @%:@ -----------------------
1692 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_link ()
1694 {
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext conftest$ac_exeext
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1710 fi
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest$ac_exeext && {
1716 test "$cross_compiling" = yes ||
1717 test -x conftest$ac_exeext
1718 }; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725 fi
1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728 # interfere with the next link command; also delete a directory that is
1729 # left behind by Apple's compiler. We do this before executing the actions.
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } @%:@ ac_fn_c_try_link
1735
1736 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1737 @%:@ ----------------------------------
1738 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1739 ac_fn_c_check_func ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1751 #define $2 innocuous_$2
1752
1753 /* System header to define __stub macros and hopefully few prototypes,
1754 which can conflict with char $2 (); below.
1755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1756 <limits.h> exists even on freestanding compilers. */
1757
1758 #ifdef __STDC__
1759 # include <limits.h>
1760 #else
1761 # include <assert.h>
1762 #endif
1763
1764 #undef $2
1765
1766 /* Override any GCC internal prototype to avoid an error.
1767 Use char because int might match the return type of a GCC
1768 builtin and then its argument prototype would still apply. */
1769 #ifdef __cplusplus
1770 extern "C"
1771 #endif
1772 char $2 ();
1773 /* The GNU C library defines this for functions which it implements
1774 to always fail with ENOSYS. Some functions are actually named
1775 something starting with __ and the normal name is an alias. */
1776 #if defined __stub_$2 || defined __stub___$2
1777 choke me
1778 #endif
1779
1780 int
1781 main ()
1782 {
1783 return $2 ();
1784 ;
1785 return 0;
1786 }
1787 _ACEOF
1788 if ac_fn_c_try_link "$LINENO"; then :
1789 eval "$3=yes"
1790 else
1791 eval "$3=no"
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext \
1794 conftest$ac_exeext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801 } @%:@ ac_fn_c_check_func
1802 cat >config.log <<_ACEOF
1803 This file contains any messages produced by compilers while
1804 running configure, to aid debugging if configure makes a mistake.
1805
1806 It was created by unrtf $as_me 0.21.3, which was
1807 generated by GNU Autoconf 2.69. Invocation command line was
1808
1809 $ $0 $@
1810
1811 _ACEOF
1812 exec 5>>config.log
1813 {
1814 cat <<_ASUNAME
1815 ## --------- ##
1816 ## Platform. ##
1817 ## --------- ##
1818
1819 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1820 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1821 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1822 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1823 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1824
1825 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1826 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1827
1828 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1829 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1830 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1831 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1832 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1833 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1834 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1835
1836 _ASUNAME
1837
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1840 do
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 $as_echo "PATH: $as_dir"
1844 done
1845 IFS=$as_save_IFS
1846
1847 } >&5
1848
1849 cat >&5 <<_ACEOF
1850
1851
1852 ## ----------- ##
1853 ## Core tests. ##
1854 ## ----------- ##
1855
1856 _ACEOF
1857
1858
1859 # Keep a trace of the command line.
1860 # Strip out --no-create and --no-recursion so they do not pile up.
1861 # Strip out --silent because we don't want to record it for future runs.
1862 # Also quote any args containing shell meta-characters.
1863 # Make two passes to allow for proper duplicate-argument suppression.
1864 ac_configure_args=
1865 ac_configure_args0=
1866 ac_configure_args1=
1867 ac_must_keep_next=false
1868 for ac_pass in 1 2
1869 do
1870 for ac_arg
1871 do
1872 case $ac_arg in
1873 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1875 | -silent | --silent | --silen | --sile | --sil)
1876 continue ;;
1877 *\'*)
1878 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1879 esac
1880 case $ac_pass in
1881 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1882 2)
1883 as_fn_append ac_configure_args1 " '$ac_arg'"
1884 if test $ac_must_keep_next = true; then
1885 ac_must_keep_next=false # Got value, back to normal.
1886 else
1887 case $ac_arg in
1888 *=* | --config-cache | -C | -disable-* | --disable-* \
1889 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1890 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1891 | -with-* | --with-* | -without-* | --without-* | --x)
1892 case "$ac_configure_args0 " in
1893 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1894 esac
1895 ;;
1896 -* ) ac_must_keep_next=true ;;
1897 esac
1898 fi
1899 as_fn_append ac_configure_args " '$ac_arg'"
1900 ;;
1901 esac
1902 done
1903 done
1904 { ac_configure_args0=; unset ac_configure_args0;}
1905 { ac_configure_args1=; unset ac_configure_args1;}
1906
1907 # When interrupted or exit'd, cleanup temporary files, and complete
1908 # config.log. We remove comments because anyway the quotes in there
1909 # would cause problems or look ugly.
1910 # WARNING: Use '\'' to represent an apostrophe within the trap.
1911 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1912 trap 'exit_status=$?
1913 # Save into config.log some information that might help in debugging.
1914 {
1915 echo
1916
1917 $as_echo "## ---------------- ##
1918 ## Cache variables. ##
1919 ## ---------------- ##"
1920 echo
1921 # The following way of writing the cache mishandles newlines in values,
1922 (
1923 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1924 eval ac_val=\$$ac_var
1925 case $ac_val in #(
1926 *${as_nl}*)
1927 case $ac_var in #(
1928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1930 esac
1931 case $ac_var in #(
1932 _ | IFS | as_nl) ;; #(
1933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1934 *) { eval $ac_var=; unset $ac_var;} ;;
1935 esac ;;
1936 esac
1937 done
1938 (set) 2>&1 |
1939 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1940 *${as_nl}ac_space=\ *)
1941 sed -n \
1942 "s/'\''/'\''\\\\'\'''\''/g;
1943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1944 ;; #(
1945 *)
1946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1947 ;;
1948 esac |
1949 sort
1950 )
1951 echo
1952
1953 $as_echo "## ----------------- ##
1954 ## Output variables. ##
1955 ## ----------------- ##"
1956 echo
1957 for ac_var in $ac_subst_vars
1958 do
1959 eval ac_val=\$$ac_var
1960 case $ac_val in
1961 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962 esac
1963 $as_echo "$ac_var='\''$ac_val'\''"
1964 done | sort
1965 echo
1966
1967 if test -n "$ac_subst_files"; then
1968 $as_echo "## ------------------- ##
1969 ## File substitutions. ##
1970 ## ------------------- ##"
1971 echo
1972 for ac_var in $ac_subst_files
1973 do
1974 eval ac_val=\$$ac_var
1975 case $ac_val in
1976 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977 esac
1978 $as_echo "$ac_var='\''$ac_val'\''"
1979 done | sort
1980 echo
1981 fi
1982
1983 if test -s confdefs.h; then
1984 $as_echo "## ----------- ##
1985 ## confdefs.h. ##
1986 ## ----------- ##"
1987 echo
1988 cat confdefs.h
1989 echo
1990 fi
1991 test "$ac_signal" != 0 &&
1992 $as_echo "$as_me: caught signal $ac_signal"
1993 $as_echo "$as_me: exit $exit_status"
1994 } >&5
1995 rm -f core *.core core.conftest.* &&
1996 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1997 exit $exit_status
1998 ' 0
1999 for ac_signal in 1 2 13 15; do
2000 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2001 done
2002 ac_signal=0
2003
2004 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2005 rm -f -r conftest* confdefs.h
2006
2007 $as_echo "/* confdefs.h */" > confdefs.h
2008
2009 # Predefined preprocessor variables.
2010
2011 cat >>confdefs.h <<_ACEOF
2012 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2013 _ACEOF
2014
2015 cat >>confdefs.h <<_ACEOF
2016 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2017 _ACEOF
2018
2019 cat >>confdefs.h <<_ACEOF
2020 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2021 _ACEOF
2022
2023 cat >>confdefs.h <<_ACEOF
2024 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2025 _ACEOF
2026
2027 cat >>confdefs.h <<_ACEOF
2028 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2029 _ACEOF
2030
2031 cat >>confdefs.h <<_ACEOF
2032 @%:@define PACKAGE_URL "$PACKAGE_URL"
2033 _ACEOF
2034
2035
2036 # Let the site file select an alternate cache file if it wants to.
2037 # Prefer an explicitly selected file to automatically selected ones.
2038 ac_site_file1=NONE
2039 ac_site_file2=NONE
2040 if test -n "$CONFIG_SITE"; then
2041 # We do not want a PATH search for config.site.
2042 case $CONFIG_SITE in @%:@((
2043 -*) ac_site_file1=./$CONFIG_SITE;;
2044 */*) ac_site_file1=$CONFIG_SITE;;
2045 *) ac_site_file1=./$CONFIG_SITE;;
2046 esac
2047 elif test "x$prefix" != xNONE; then
2048 ac_site_file1=$prefix/share/config.site
2049 ac_site_file2=$prefix/etc/config.site
2050 else
2051 ac_site_file1=$ac_default_prefix/share/config.site
2052 ac_site_file2=$ac_default_prefix/etc/config.site
2053 fi
2054 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2055 do
2056 test "x$ac_site_file" = xNONE && continue
2057 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2059 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2060 sed 's/^/| /' "$ac_site_file" >&5
2061 . "$ac_site_file" \
2062 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2064 as_fn_error $? "failed to load site script $ac_site_file
2065 See \`config.log' for more details" "$LINENO" 5; }
2066 fi
2067 done
2068
2069 if test -r "$cache_file"; then
2070 # Some versions of bash will fail to source /dev/null (special files
2071 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2072 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2074 $as_echo "$as_me: loading cache $cache_file" >&6;}
2075 case $cache_file in
2076 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2077 *) . "./$cache_file";;
2078 esac
2079 fi
2080 else
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2082 $as_echo "$as_me: creating cache $cache_file" >&6;}
2083 >$cache_file
2084 fi
2085
2086 # Check that the precious variables saved in the cache have kept the same
2087 # value.
2088 ac_cache_corrupted=false
2089 for ac_var in $ac_precious_vars; do
2090 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2091 eval ac_new_set=\$ac_env_${ac_var}_set
2092 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2093 eval ac_new_val=\$ac_env_${ac_var}_value
2094 case $ac_old_set,$ac_new_set in
2095 set,)
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2097 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2098 ac_cache_corrupted=: ;;
2099 ,set)
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2101 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2102 ac_cache_corrupted=: ;;
2103 ,);;
2104 *)
2105 if test "x$ac_old_val" != "x$ac_new_val"; then
2106 # differences in whitespace do not lead to failure.
2107 ac_old_val_w=`echo x $ac_old_val`
2108 ac_new_val_w=`echo x $ac_new_val`
2109 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2111 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2112 ac_cache_corrupted=:
2113 else
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2115 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2116 eval $ac_var=\$ac_old_val
2117 fi
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2119 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2121 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2122 fi;;
2123 esac
2124 # Pass precious variables to config.status.
2125 if test "$ac_new_set" = set; then
2126 case $ac_new_val in
2127 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2128 *) ac_arg=$ac_var=$ac_new_val ;;
2129 esac
2130 case " $ac_configure_args " in
2131 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2132 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2133 esac
2134 fi
2135 done
2136 if $ac_cache_corrupted; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2140 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2141 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2142 fi
2143 ## -------------------- ##
2144 ## Main body of script. ##
2145 ## -------------------- ##
2146
2147 ac_ext=c
2148 ac_cpp='$CPP $CPPFLAGS'
2149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2152
2153
2154
2155 ac_aux_dir=
2156 for ac_dir in config "$srcdir"/config; do
2157 if test -f "$ac_dir/install-sh"; then
2158 ac_aux_dir=$ac_dir
2159 ac_install_sh="$ac_aux_dir/install-sh -c"
2160 break
2161 elif test -f "$ac_dir/install.sh"; then
2162 ac_aux_dir=$ac_dir
2163 ac_install_sh="$ac_aux_dir/install.sh -c"
2164 break
2165 elif test -f "$ac_dir/shtool"; then
2166 ac_aux_dir=$ac_dir
2167 ac_install_sh="$ac_aux_dir/shtool install -c"
2168 break
2169 fi
2170 done
2171 if test -z "$ac_aux_dir"; then
2172 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2173 fi
2174
2175 # These three variables are undocumented and unsupported,
2176 # and are intended to be withdrawn in a future Autoconf release.
2177 # They can cause serious problems if a builder's source tree is in a directory
2178 # whose full name contains unusual characters.
2179 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2180 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2181 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2182
2183
2184 ac_config_headers="$ac_config_headers config.h"
2185
2186
2187 # Initialize automake
2188
2189 am__api_version='1.12'
2190
2191 # Find a good install program. We prefer a C program (faster),
2192 # so one script is as good as another. But avoid the broken or
2193 # incompatible versions:
2194 # SysV /etc/install, /usr/sbin/install
2195 # SunOS /usr/etc/install
2196 # IRIX /sbin/install
2197 # AIX /bin/install
2198 # AmigaOS /C/install, which installs bootblocks on floppy discs
2199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2202 # OS/2's system install, which has a completely different semantic
2203 # ./install, which can be erroneously created by make from ./install.sh.
2204 # Reject install programs that cannot install multiple files.
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2206 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2207 if test -z "$INSTALL"; then
2208 if ${ac_cv_path_install+:} false; then :
2209 $as_echo_n "(cached) " >&6
2210 else
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2213 do
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 # Account for people who put trailing slashes in PATH elements.
2217 case $as_dir/ in @%:@((
2218 ./ | .// | /[cC]/* | \
2219 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2220 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2221 /usr/ucb/* ) ;;
2222 *)
2223 # OSF1 and SCO ODT 3.0 have their own names for install.
2224 # Don't use installbsd from OSF since it installs stuff as root
2225 # by default.
2226 for ac_prog in ginstall scoinst install; do
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2229 if test $ac_prog = install &&
2230 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2231 # AIX install. It has an incompatible calling convention.
2232 :
2233 elif test $ac_prog = install &&
2234 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2235 # program-specific install script used by HP pwplus--don't use.
2236 :
2237 else
2238 rm -rf conftest.one conftest.two conftest.dir
2239 echo one > conftest.one
2240 echo two > conftest.two
2241 mkdir conftest.dir
2242 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2243 test -s conftest.one && test -s conftest.two &&
2244 test -s conftest.dir/conftest.one &&
2245 test -s conftest.dir/conftest.two
2246 then
2247 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2248 break 3
2249 fi
2250 fi
2251 fi
2252 done
2253 done
2254 ;;
2255 esac
2256
2257 done
2258 IFS=$as_save_IFS
2259
2260 rm -rf conftest.one conftest.two conftest.dir
2261
2262 fi
2263 if test "${ac_cv_path_install+set}" = set; then
2264 INSTALL=$ac_cv_path_install
2265 else
2266 # As a last resort, use the slow shell script. Don't cache a
2267 # value for INSTALL within a source directory, because that will
2268 # break other packages using the cache if that directory is
2269 # removed, or if the value is a relative name.
2270 INSTALL=$ac_install_sh
2271 fi
2272 fi
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2274 $as_echo "$INSTALL" >&6; }
2275
2276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2277 # It thinks the first close brace ends the variable substitution.
2278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2279
2280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2281
2282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2283
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2285 $as_echo_n "checking whether build environment is sane... " >&6; }
2286 # Reject unsafe characters in $srcdir or the absolute working directory
2287 # name. Accept space and tab only in the latter.
2288 am_lf='
2289 '
2290 case `pwd` in
2291 *[\\\"\#\$\&\'\`$am_lf]*)
2292 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2293 esac
2294 case $srcdir in
2295 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2296 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2297 esac
2298
2299 # Do 'set' in a subshell so we don't clobber the current shell's
2300 # arguments. Must try -L first in case configure is actually a
2301 # symlink; some systems play weird games with the mod time of symlinks
2302 # (eg FreeBSD returns the mod time of the symlink's containing
2303 # directory).
2304 if (
2305 am_has_slept=no
2306 for am_try in 1 2; do
2307 echo "timestamp, slept: $am_has_slept" > conftest.file
2308 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2309 if test "$*" = "X"; then
2310 # -L didn't work.
2311 set X `ls -t "$srcdir/configure" conftest.file`
2312 fi
2313 if test "$*" != "X $srcdir/configure conftest.file" \
2314 && test "$*" != "X conftest.file $srcdir/configure"; then
2315
2316 # If neither matched, then we have a broken ls. This can happen
2317 # if, for instance, CONFIG_SHELL is bash and it inherits a
2318 # broken ls alias from the environment. This has actually
2319 # happened. Such a system could not be considered "sane".
2320 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2321 alias in your environment" "$LINENO" 5
2322 fi
2323 if test "$2" = conftest.file || test $am_try -eq 2; then
2324 break
2325 fi
2326 # Just in case.
2327 sleep 1
2328 am_has_slept=yes
2329 done
2330 test "$2" = conftest.file
23