Codebase list ptouch-driver / 956db9d
Import upstream version 1.5.1+git20200908.469c0cc, md5 58064115ac8e689ab36a56d2f145c6dd Debian Janitor 3 years ago
45 changed file(s) with 8456 addition(s) and 375 deletion(s). Raw diff Collapse all Expand all
+0
-20
.gitignore less more
0 *.o
1 .deps
2 /Makefile
3 /Makefile.in
4 /aclocal.m4
5 /autom4te.cache
6 /config.h
7 /config.h.in
8 /config.h.in~
9 /config.log
10 /config.status
11 /configure
12 /doc
13 /ptexplain
14 /ptouch-driver-foomatic.spec
15 /ptouch-driver.spec
16 /rastertoptch
17 /stamp-h1
18 /ptouch-driver-*.tar.gz
19 /generated
+0
-97
CONTRIBUTING.md less more
0 # Contributing to the project
1
2 When contributing to this repository, please first discuss the change you wish to make via issue,
3 email, or any other method with the owners of this repository.
4
5 To submit your change, please:
6
7 - Create a Fork using Github's tools.
8 - Create a branch inside your fork and make your changes on the branch.
9 - Submit a Pull Request to this project. Please use the description field to explain:
10 * A summary of the changes you have made.
11 * The reasoning behind the changes. Why do they help the project? Do they fix a bug?
12 * Links to any open issues which you think your change may resolve or affect.
13 - Make any improvements which are highlighted in the pull review comments.
14
15 This project has a Code of Conduct, which is shown below. Please read it before contributing.
16
17 And above all, thank you for your contribution!
18
19
20 # Contributor Covenant Code of Conduct
21
22 ## Our Pledge
23
24 In the interest of fostering an open and welcoming environment, we as
25 contributors and maintainers pledge to make participation in our project and
26 our community a harassment-free experience for everyone, regardless of age, body
27 size, disability, ethnicity, sex characteristics, gender identity and expression,
28 level of experience, education, socio-economic status, nationality, personal
29 appearance, race, religion, or sexual identity and orientation.
30
31 ## Our Standards
32
33 Examples of behavior that contributes to creating a positive environment
34 include:
35
36 * Using welcoming and inclusive language
37 * Being respectful of differing viewpoints and experiences
38 * Gracefully accepting constructive criticism
39 * Focusing on what is best for the community
40 * Showing empathy towards other community members
41
42 Examples of unacceptable behavior by participants include:
43
44 * The use of sexualized language or imagery and unwelcome sexual attention or
45 advances
46 * Trolling, insulting/derogatory comments, and personal or political attacks
47 * Public or private harassment
48 * Publishing others' private information, such as a physical or electronic
49 address, without explicit permission
50 * Other conduct which could reasonably be considered inappropriate in a
51 professional setting
52
53 ## Our Responsibilities
54
55 Project maintainers are responsible for clarifying the standards of acceptable
56 behavior and are expected to take appropriate and fair corrective action in
57 response to any instances of unacceptable behavior.
58
59 Project maintainers have the right and responsibility to remove, edit, or
60 reject comments, commits, code, wiki edits, issues, and other contributions
61 that are not aligned to this Code of Conduct, or to ban temporarily or
62 permanently any contributor for other behaviors that they deem inappropriate,
63 threatening, offensive, or harmful.
64
65 ## Scope
66
67 This Code of Conduct applies within all project spaces, and it also applies when
68 an individual is representing the project or its community in public spaces.
69 Examples of representing a project or community include using an official
70 project e-mail address, posting via an official social media account, or acting
71 as an appointed representative at an online or offline event. Representation of
72 a project may be further defined and clarified by project maintainers.
73
74 ## Enforcement
75
76 Instances of abusive, harassing, or otherwise unacceptable behavior may be
77 reported by contacting the project team at philpem@gmail.com. All
78 complaints will be reviewed and investigated and will result in a response that
79 is deemed necessary and appropriate to the circumstances. The project team is
80 obligated to maintain confidentiality with regard to the reporter of an incident.
81 Further details of specific enforcement policies may be posted separately.
82
83 Project maintainers who do not follow or enforce the Code of Conduct in good
84 faith may face temporary or permanent repercussions as determined by other
85 members of the project's leadership.
86
87 ## Attribution
88
89 This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
90 available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
91
92 [homepage]: https://www.contributor-covenant.org
93
94 For answers to common questions about this code of conduct, see
95 https://www.contributor-covenant.org/faq
96
Examples/PT-P700/12mm-1.png less more
Binary diff not shown
Examples/PT-P700/12mm.prn less more
Binary diff not shown
+0
-16
Examples/PT-P700/12mm.ptexplain less more
0 00 Reset (100)
1 ESC @ Initialize
2 ESC i a 01 Switch to raster mode
3 ESC i U 4a 00 0c 52 54 00 fc 91 b1 00 00 02 00 00 00 Undocumented command
4 ESC i z 84 00 0c 00 e1 00 00 00 00 00 Print information command ([02=kind] 04=width [08=length] [40=quality] 80=recover) width=12 lines=225 page=first
5 ESC i M 40 Various mode settings (40=auto_cut [80=mirror])
6 ESC i K 08 Advanced mode settings ([01=draft] [04=half_cut] 08=nochain [10=special_tape] [40=hires] [80=no_clearing])
7 ESC i d 0e 00 Specify margin amount (14 lines)
8 M 02 Select compression mode (TIFF)
9 G 0a 00 Raster graphics transfer (10 bytes)
10 [221 more G lines]
11 G 0a 00 Raster graphics transfer (10 bytes)
12 Z Zero raster graphics
13 Z Zero raster graphics
14 ^Z End of job
15 Raster data written to 12mm-1.png
Examples/PT-P900W/12mm-Draft-1.png less more
Binary diff not shown
Examples/PT-P900W/12mm-Draft.prn less more
Binary diff not shown
+0
-18
Examples/PT-P900W/12mm-Draft.ptexplain less more
0 00 Reset (200)
1 ESC @ Initialize
2 ESC i a 01 Switch to raster mode
3 ESC i U 4a 00 0c 52 54 00 fc 91 b1 00 00 07 00 00 00 Undocumented command
4 ESC i z 86 09 0c 00 2c 01 00 00 02 00 Print information command (02=kind 04=width [08=length] [40=quality] 80=recover) kind=0x09 width=12 lines=300 page=last
5 ESC i M 40 Various mode settings (40=auto_cut [80=mirror])
6 ESC i A 01 Cut every 1 label
7 ESC i K 0d Advanced mode settings (01=draft 04=half_cut 08=nochain [10=special_tape] [40=hires] [80=no_clearing])
8 ESC i k 63 01 00 Undocumented command
9 ESC i d 07 00 Specify margin amount (7 lines)
10 M 02 Select compression mode (TIFF)
11 G 0a 00 Raster graphics transfer (10 bytes)
12 [296 more G lines]
13 G 0a 00 Raster graphics transfer (10 bytes)
14 Z Zero raster graphics
15 Z Zero raster graphics
16 ^Z End of job
17 Raster data written to 12mm-Draft1.png
Examples/PT-P900W/12mm-Resolution-1.png less more
Binary diff not shown
Examples/PT-P900W/12mm-Resolution.prn less more
Binary diff not shown
+0
-19
Examples/PT-P900W/12mm-Resolution.ptexplain less more
0 00 Reset (200)
1 ESC @ Initialize
2 ESC i a 01 Switch to raster mode
3 ESC i U 4a 00 0c 52 54 00 fc 91 b1 00 00 09 00 00 00 Undocumented command
4 ESC i z 86 09 0c 00 ae 04 00 00 02 00 Print information command (02=kind 04=width [08=length] [40=quality] 80=recover) kind=0x09 width=12 lines=1198 page=last
5 ESC i M 40 Various mode settings (40=auto_cut [80=mirror])
6 ESC i A 01 Cut every 1 label
7 ESC i K 4c Advanced mode settings ([01=draft] 04=half_cut 08=nochain [10=special_tape] 40=hires [80=no_clearing])
8 ESC i k 63 01 00 Undocumented command
9 ESC i d 1c 00 Specify margin amount (28 lines)
10 M 02 Select compression mode (TIFF)
11 G 0a 00 Raster graphics transfer (10 bytes)
12 [1193 more G lines]
13 G 0a 00 Raster graphics transfer (10 bytes)
14 Z Zero raster graphics
15 Z Zero raster graphics
16 Z Zero raster graphics
17 ^Z End of job
18 Raster data written to 12mm-Resolution-1.png
Examples/PT-P900W/12mm-Standard-1.png less more
Binary diff not shown
Examples/PT-P900W/12mm-Standard.prn less more
Binary diff not shown
+0
-18
Examples/PT-P900W/12mm-Standard.ptexplain less more
0 00 Reset (200)
1 ESC @ Initialize
2 ESC i a 01 Switch to raster mode
3 ESC i U 4a 00 0c 52 54 00 fc 91 b1 00 00 08 00 00 00 Undocumented command
4 ESC i z 84 00 0c 00 57 02 00 00 02 00 Print information command ([02=kind] 04=width [08=length] [40=quality] 80=recover) width=12 lines=599 page=last
5 ESC i M 40 Various mode settings (40=auto_cut [80=mirror])
6 ESC i A 01 Cut every 1 label
7 ESC i K 0c Advanced mode settings ([01=draft] 04=half_cut 08=nochain [10=special_tape] [40=hires] [80=no_clearing])
8 ESC i k 63 01 00 Undocumented command
9 ESC i d 0e 00 Specify margin amount (14 lines)
10 M 02 Select compression mode (TIFF)
11 G 0a 00 Raster graphics transfer (10 bytes)
12 [595 more G lines]
13 G 0a 00 Raster graphics transfer (10 bytes)
14 Z Zero raster graphics
15 Z Zero raster graphics
16 ^Z End of job
17 Raster data written to 12mm-Standard-1.png
Examples/QL-820NWB/Label-29x90mm-Quality-1.png less more
Binary diff not shown
Examples/QL-820NWB/Label-29x90mm-Quality.prn less more
Binary diff not shown
+0
-16
Examples/QL-820NWB/Label-29x90mm-Quality.ptexplain less more
0 00 Reset (400)
1 ESC @ Initialize
2 ESC i a 01 Switch to raster mode
3 ESC i ! 01 Switch automatic status notification mode (do not notify)
4 ESC i U 4a 00 0c 52 54 00 fc 91 b1 00 00 0b 00 00 00 Undocumented command
5 ESC i z ce 0b 1d 5a df 03 00 00 00 00 Print information command (02=kind 04=width 08=length 40=quality 80=recover) kind=0x0b width=29 length=90 lines=991 page=first
6 ESC i M 40 Various mode settings (40=auto_cut [80=mirror])
7 ESC i A 01 Cut every 1 label
8 ESC i K 08 Advanced mode settings ([01=draft] [04=half_cut] 08=nochain [10=special_tape] [40=hires] [80=no_clearing])
9 ESC i d 00 00 Specify margin amount (0 lines)
10 M 02 Select compression mode (TIFF)
11 g 00 06 Raster graphics transfer (6 bytes)
12 [989 more g lines]
13 g 00 08 Raster graphics transfer (8 bytes)
14 ^Z End of job
15 Raster data written to Label-29x90mm-Quality-1.png
Examples/QL-820NWB/Label-29x90mm-Resolution-1.png less more
Binary diff not shown
Examples/QL-820NWB/Label-29x90mm-Resolution.prn less more
Binary diff not shown
+0
-16
Examples/QL-820NWB/Label-29x90mm-Resolution.ptexplain less more
0 00 Reset (400)
1 ESC @ Initialize
2 ESC i a 01 Switch to raster mode
3 ESC i ! 01 Switch automatic status notification mode (do not notify)
4 ESC i U 4a 00 0c 52 54 00 fc 91 b1 00 00 0c 00 00 00 Undocumented command
5 ESC i z ce 0b 1d 5a be 07 00 00 00 00 Print information command (02=kind 04=width 08=length 40=quality 80=recover) kind=0x0b width=29 length=90 lines=1982 page=first
6 ESC i M 40 Various mode settings (40=auto_cut [80=mirror])
7 ESC i A 01 Cut every 1 label
8 ESC i K 4a Advanced mode settings ([01=draft] [04=half_cut] 08=nochain [10=special_tape] 40=hires [80=no_clearing] 02=unknown)
9 ESC i d 00 00 Specify margin amount (0 lines)
10 M 02 Select compression mode (TIFF)
11 g 00 02 Raster graphics transfer (2 bytes)
12 [1980 more g lines]
13 g 00 09 Raster graphics transfer (9 bytes)
14 ^Z End of job
15 Raster data written to Label-29x90mm-Resolution-1.png
Examples/QL-820NWB/Label-29x90mm-Speed-1.png less more
Binary diff not shown
Examples/QL-820NWB/Label-29x90mm-Speed.prn less more
Binary diff not shown
+0
-16
Examples/QL-820NWB/Label-29x90mm-Speed.ptexplain less more
0 00 Reset (400)
1 ESC @ Initialize
2 ESC i a 01 Switch to raster mode
3 ESC i ! 01 Switch automatic status notification mode (do not notify)
4 ESC i U 4a 00 0c 52 54 00 fc 91 b1 00 00 0a 00 00 00 Undocumented command
5 ESC i z 8e 0b 1d 5a df 03 00 00 00 00 Print information command (02=kind 04=width 08=length [40=quality] 80=recover) kind=0x0b width=29 length=90 lines=991 page=first
6 ESC i M 40 Various mode settings (40=auto_cut [80=mirror])
7 ESC i A 01 Cut every 1 label
8 ESC i K 08 Advanced mode settings ([01=draft] [04=half_cut] 08=nochain [10=special_tape] [40=hires] [80=no_clearing])
9 ESC i d 00 00 Specify margin amount (0 lines)
10 M 02 Select compression mode (TIFF)
11 g 00 06 Raster graphics transfer (6 bytes)
12 [989 more g lines]
13 g 00 08 Raster graphics transfer (8 bytes)
14 ^Z End of job
15 Raster data written to Label-29x90mm-Speed-1.png
Examples/QL-820NWB/Tape-29x90mm-Quality-1.png less more
Binary diff not shown
Examples/QL-820NWB/Tape-29x90mm-Quality.prn less more
Binary diff not shown
+0
-18
Examples/QL-820NWB/Tape-29x90mm-Quality.ptexplain less more
0 00 Reset (400)
1 ESC @ Initialize
2 ESC i a 01 Switch to raster mode
3 ESC i ! 01 Switch automatic status notification mode (do not notify)
4 ESC i U 4a 00 0c 52 54 00 fc 91 b1 00 00 05 00 00 00 Undocumented command
5 ESC i z c6 0a 1d 00 e2 03 00 00 00 00 Print information command (02=kind 04=width [08=length] 40=quality 80=recover) kind=0x0a width=29 lines=994 page=first
6 ESC i M 40 Various mode settings (40=auto_cut [80=mirror])
7 ESC i A 01 Cut every 1 label
8 ESC i K 08 Advanced mode settings ([01=draft] [04=half_cut] 08=nochain [10=special_tape] [40=hires] [80=no_clearing])
9 ESC i d 23 00 Specify margin amount (35 lines)
10 M 02 Select compression mode (TIFF)
11 g 00 06 Raster graphics transfer (6 bytes)
12 [990 more g lines]
13 g 00 08 Raster graphics transfer (8 bytes)
14 Z Zero raster graphics
15 Z Zero raster graphics
16 ^Z End of job
17 Raster data written to Tape-29x90mm-Quality-1.png
Examples/QL-820NWB/Tape-29x90mm-Resolution-1.png less more
Binary diff not shown
Examples/QL-820NWB/Tape-29x90mm-Resolution.prn less more
Binary diff not shown
+0
-17
Examples/QL-820NWB/Tape-29x90mm-Resolution.ptexplain less more
0 00 Reset (400)
1 ESC @ Initialize
2 ESC i a 01 Switch to raster mode
3 ESC i ! 01 Switch automatic status notification mode (do not notify)
4 ESC i U 4a 00 0c 52 54 00 fc 91 b1 00 00 06 00 00 00 Undocumented command
5 ESC i z c6 0a 1d 00 c3 07 00 00 00 00 Print information command (02=kind 04=width [08=length] 40=quality 80=recover) kind=0x0a width=29 lines=1987 page=first
6 ESC i M 40 Various mode settings (40=auto_cut [80=mirror])
7 ESC i A 01 Cut every 1 label
8 ESC i K 4a Advanced mode settings ([01=draft] [04=half_cut] 08=nochain [10=special_tape] 40=hires [80=no_clearing] 02=unknown)
9 ESC i d 46 00 Specify margin amount (70 lines)
10 M 02 Select compression mode (TIFF)
11 g 00 02 Raster graphics transfer (2 bytes)
12 [1984 more g lines]
13 g 00 08 Raster graphics transfer (8 bytes)
14 Z Zero raster graphics
15 ^Z End of job
16 Raster data written to Tape-29x90mm-Resolution-1.png
Examples/QL-820NWB/Tape-29x90mm-Speed-1.png less more
Binary diff not shown
Examples/QL-820NWB/Tape-29x90mm-Speed.prn less more
Binary diff not shown
+0
-18
Examples/QL-820NWB/Tape-29x90mm-Speed.ptexplain less more
0 00 Reset (400)
1 ESC @ Initialize
2 ESC i a 01 Switch to raster mode
3 ESC i ! 01 Switch automatic status notification mode (do not notify)
4 ESC i U 4a 00 0c 52 54 00 fc 91 b1 00 00 04 00 00 00 Undocumented command
5 ESC i z 86 0a 1d 00 e2 03 00 00 00 00 Print information command (02=kind 04=width [08=length] [40=quality] 80=recover) kind=0x0a width=29 lines=994 page=first
6 ESC i M 40 Various mode settings (40=auto_cut [80=mirror])
7 ESC i A 01 Cut every 1 label
8 ESC i K 08 Advanced mode settings ([01=draft] [04=half_cut] 08=nochain [10=special_tape] [40=hires] [80=no_clearing])
9 ESC i d 23 00 Specify margin amount (35 lines)
10 M 02 Select compression mode (TIFF)
11 g 00 06 Raster graphics transfer (6 bytes)
12 [990 more g lines]
13 g 00 08 Raster graphics transfer (8 bytes)
14 Z Zero raster graphics
15 Z Zero raster graphics
16 ^Z End of job
17 Raster data written to Tape-29x90mm-Speed-1.png
5252 printer/Brother-PT-1960.xml \
5353 printer/Brother-PT-2300.xml \
5454 printer/Brother-PT-2420PC.xml \
55 printer/Brother-PT-2430PC.xml \
5556 printer/Brother-PT-2450DX.xml \
5657 printer/Brother-PT-2500PC.xml \
5758 printer/Brother-PT-2600.xml \
6162 printer/Brother-PT-9200PC.xml \
6263 printer/Brother-PT-9400.xml \
6364 printer/Brother-PT-9500PC.xml \
64 printer/Brother-PT-9600.xml
65 printer/Brother-PT-9600.xml \
66 printer/Brother-PT-9700PC.xml
6567 OPTIONS = opt/Brother-PTQL-Align.xml \
6668 opt/Brother-PTQL-AutoCut.xml \
6769 opt/Brother-PTQL-ChainPrinting.xml \
0 # Makefile.in generated by automake 1.16.3 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16
17 VPATH = @srcdir@
18 am__is_gnu_make = { \
19 if test -z '$(MAKELEVEL)'; then \
20 false; \
21 elif test -n '$(MAKE_HOST)'; then \
22 true; \
23 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
24 true; \
25 else \
26 false; \
27 fi; \
28 }
29 am__make_running_with_option = \
30 case $${target_option-} in \
31 ?) ;; \
32 *) echo "am__make_running_with_option: internal error: invalid" \
33 "target option '$${target_option-}' specified" >&2; \
34 exit 1;; \
35 esac; \
36 has_opt=no; \
37 sane_makeflags=$$MAKEFLAGS; \
38 if $(am__is_gnu_make); then \
39 sane_makeflags=$$MFLAGS; \
40 else \
41 case $$MAKEFLAGS in \
42 *\\[\ \ ]*) \
43 bs=\\; \
44 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
45 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
46 esac; \
47 fi; \
48 skip_next=no; \
49 strip_trailopt () \
50 { \
51 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
52 }; \
53 for flg in $$sane_makeflags; do \
54 test $$skip_next = yes && { skip_next=no; continue; }; \
55 case $$flg in \
56 *=*|--*) continue;; \
57 -*I) strip_trailopt 'I'; skip_next=yes;; \
58 -*I?*) strip_trailopt 'I';; \
59 -*O) strip_trailopt 'O'; skip_next=yes;; \
60 -*O?*) strip_trailopt 'O';; \
61 -*l) strip_trailopt 'l'; skip_next=yes;; \
62 -*l?*) strip_trailopt 'l';; \
63 -[dEDm]) skip_next=yes;; \
64 -[JT]) skip_next=yes;; \
65 esac; \
66 case $$flg in \
67 *$$target_option*) has_opt=yes; break;; \
68 esac; \
69 done; \
70 test $$has_opt = yes
71 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
72 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
73 pkgdatadir = $(datadir)/@PACKAGE@
74 pkgincludedir = $(includedir)/@PACKAGE@
75 pkglibdir = $(libdir)/@PACKAGE@
76 pkglibexecdir = $(libexecdir)/@PACKAGE@
77 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
78 install_sh_DATA = $(install_sh) -c -m 644
79 install_sh_PROGRAM = $(install_sh) -c
80 install_sh_SCRIPT = $(install_sh) -c
81 INSTALL_HEADER = $(INSTALL_DATA)
82 transform = $(program_transform_name)
83 NORMAL_INSTALL = :
84 PRE_INSTALL = :
85 POST_INSTALL = :
86 NORMAL_UNINSTALL = :
87 PRE_UNINSTALL = :
88 POST_UNINSTALL = :
89 execfilter_PROGRAMS = rastertoptch$(EXEEXT)
90 noinst_PROGRAMS = ptexplain$(EXEEXT)
91 subdir = .
92 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
93 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
94 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
95 $(ACLOCAL_M4)
96 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
97 $(am__configure_deps) $(am__DIST_COMMON)
98 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
99 configure.lineno config.status.lineno
100 mkinstalldirs = $(install_sh) -d
101 CONFIG_HEADER = config.h
102 CONFIG_CLEAN_FILES = ptouch-driver.spec ptouch-driver-foomatic.spec
103 CONFIG_CLEAN_VPATH_FILES =
104 am__installdirs = "$(DESTDIR)$(execfilterdir)" \
105 "$(DESTDIR)$(driversdir)" "$(DESTDIR)$(optionsdir)" \
106 "$(DESTDIR)$(printersdir)"
107 PROGRAMS = $(execfilter_PROGRAMS) $(noinst_PROGRAMS)
108 ptexplain_SOURCES = ptexplain.c
109 ptexplain_OBJECTS = ptexplain.$(OBJEXT)
110 am__DEPENDENCIES_1 =
111 ptexplain_DEPENDENCIES = $(am__DEPENDENCIES_1)
112 rastertoptch_SOURCES = rastertoptch.c
113 rastertoptch_OBJECTS = rastertoptch-rastertoptch.$(OBJEXT)
114 rastertoptch_DEPENDENCIES = $(am__DEPENDENCIES_1) \
115 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
116 AM_V_P = $(am__v_P_@AM_V@)
117 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
118 am__v_P_0 = false
119 am__v_P_1 = :
120 AM_V_GEN = $(am__v_GEN_@AM_V@)
121 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
122 am__v_GEN_0 = @echo " GEN " $@;
123 am__v_GEN_1 =
124 AM_V_at = $(am__v_at_@AM_V@)
125 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
126 am__v_at_0 = @
127 am__v_at_1 =
128 DEFAULT_INCLUDES = -I.@am__isrc@
129 depcomp = $(SHELL) $(top_srcdir)/depcomp
130 am__maybe_remake_depfiles = depfiles
131 am__depfiles_remade = ./$(DEPDIR)/ptexplain.Po \
132 ./$(DEPDIR)/rastertoptch-rastertoptch.Po
133 am__mv = mv -f
134 AM_V_lt = $(am__v_lt_@AM_V@)
135 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
136 am__v_lt_0 = --silent
137 am__v_lt_1 =
138 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
139 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
140 AM_V_CC = $(am__v_CC_@AM_V@)
141 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
142 am__v_CC_0 = @echo " CC " $@;
143 am__v_CC_1 =
144 CCLD = $(CC)
145 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
146 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
147 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
148 am__v_CCLD_0 = @echo " CCLD " $@;
149 am__v_CCLD_1 =
150 SOURCES = ptexplain.c rastertoptch.c
151 DIST_SOURCES = ptexplain.c rastertoptch.c
152 am__can_run_installinfo = \
153 case $$AM_UPDATE_INFO_DIR in \
154 n|no|NO) false;; \
155 *) (install-info --version) >/dev/null 2>&1;; \
156 esac
157 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
158 am__vpath_adj = case $$p in \
159 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
160 *) f=$$p;; \
161 esac;
162 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
163 am__install_max = 40
164 am__nobase_strip_setup = \
165 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
166 am__nobase_strip = \
167 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
168 am__nobase_list = $(am__nobase_strip_setup); \
169 for p in $$list; do echo "$$p $$p"; done | \
170 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
171 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
172 if (++n[$$2] == $(am__install_max)) \
173 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
174 END { for (dir in files) print dir, files[dir] }'
175 am__base_list = \
176 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
177 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
178 am__uninstall_files_from_dir = { \
179 test -z "$$files" \
180 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
181 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
182 $(am__cd) "$$dir" && rm -f $$files; }; \
183 }
184 DATA = $(drivers_DATA) $(options_DATA) $(printers_DATA)
185 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
186 config.h.in
187 # Read a list of newline-separated strings from the standard input,
188 # and print each of them once, without duplicates. Input order is
189 # *not* preserved.
190 am__uniquify_input = $(AWK) '\
191 BEGIN { nonempty = 0; } \
192 { items[$$0] = 1; nonempty = 1; } \
193 END { if (nonempty) { for (i in items) print i; }; } \
194 '
195 # Make sure the list of sources is unique. This is necessary because,
196 # e.g., the same source file might be shared among _SOURCES variables
197 # for different programs/libraries.
198 am__define_uniq_tagged_files = \
199 list='$(am__tagged_files)'; \
200 unique=`for i in $$list; do \
201 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
202 done | $(am__uniquify_input)`
203 ETAGS = etags
204 CTAGS = ctags
205 CSCOPE = cscope
206 AM_RECURSIVE_TARGETS = cscope
207 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
208 $(srcdir)/ptouch-driver-foomatic.spec.in \
209 $(srcdir)/ptouch-driver.spec.in AUTHORS COPYING ChangeLog \
210 INSTALL NEWS README compile depcomp install-sh missing
211 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
212 distdir = $(PACKAGE)-$(VERSION)
213 top_distdir = $(distdir)
214 am__remove_distdir = \
215 if test -d "$(distdir)"; then \
216 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
217 && rm -rf "$(distdir)" \
218 || { sleep 5 && rm -rf "$(distdir)"; }; \
219 else :; fi
220 am__post_remove_distdir = $(am__remove_distdir)
221 DIST_ARCHIVES = $(distdir).tar.gz
222 GZIP_ENV = --best
223 DIST_TARGETS = dist-gzip
224 # Exists only to be overridden by the user if desired.
225 AM_DISTCHECK_DVI_TARGET = dvi
226 distuninstallcheck_listfiles = find . -type f -print
227 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
228 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
229 distcleancheck_listfiles = find . -type f -print
230 ACLOCAL = @ACLOCAL@
231 AMTAR = @AMTAR@
232 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
233 AUTOCONF = @AUTOCONF@
234 AUTOHEADER = @AUTOHEADER@
235 AUTOMAKE = @AUTOMAKE@
236 AWK = @AWK@
237 CC = @CC@
238 CCDEPMODE = @CCDEPMODE@
239 CFLAGS = @CFLAGS@
240 CPP = @CPP@
241 CPPFLAGS = @CPPFLAGS@
242 CYGPATH_W = @CYGPATH_W@
243 DEFS = @DEFS@
244 DEPDIR = @DEPDIR@
245 ECHO_C = @ECHO_C@
246 ECHO_N = @ECHO_N@
247 ECHO_T = @ECHO_T@
248 EGREP = @EGREP@
249 EXEEXT = @EXEEXT@
250 GREP = @GREP@
251 INSTALL = @INSTALL@
252 INSTALL_DATA = @INSTALL_DATA@
253 INSTALL_PROGRAM = @INSTALL_PROGRAM@
254 INSTALL_SCRIPT = @INSTALL_SCRIPT@
255 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
256 LDFLAGS = @LDFLAGS@
257 LIBCUPS = @LIBCUPS@
258 LIBCUPSIMAGE = @LIBCUPSIMAGE@
259 LIBM = @LIBM@
260 LIBOBJS = @LIBOBJS@
261 LIBPNG = @LIBPNG@
262 LIBS = @LIBS@
263 LTLIBOBJS = @LTLIBOBJS@
264 MAKEINFO = @MAKEINFO@
265 MKDIR_P = @MKDIR_P@
266 OBJEXT = @OBJEXT@
267 PACKAGE = @PACKAGE@
268 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
269 PACKAGE_NAME = @PACKAGE_NAME@
270 PACKAGE_STRING = @PACKAGE_STRING@
271 PACKAGE_TARNAME = @PACKAGE_TARNAME@
272 PACKAGE_URL = @PACKAGE_URL@
273 PACKAGE_VERSION = @PACKAGE_VERSION@
274 PATH_SEPARATOR = @PATH_SEPARATOR@
275 SET_MAKE = @SET_MAKE@
276 SHELL = @SHELL@
277 STRIP = @STRIP@
278 VERSION = @VERSION@
279 abs_builddir = @abs_builddir@
280 abs_srcdir = @abs_srcdir@
281 abs_top_builddir = @abs_top_builddir@
282 abs_top_srcdir = @abs_top_srcdir@
283 ac_ct_CC = @ac_ct_CC@
284 am__include = @am__include@
285 am__leading_dot = @am__leading_dot@
286 am__quote = @am__quote@
287 am__tar = @am__tar@
288 am__untar = @am__untar@
289 bindir = @bindir@
290 build_alias = @build_alias@
291 builddir = @builddir@
292 datadir = @datadir@
293 datarootdir = @datarootdir@
294 docdir = @docdir@
295 dvidir = @dvidir@
296 exec_prefix = @exec_prefix@
297 host_alias = @host_alias@
298 htmldir = @htmldir@
299 includedir = @includedir@
300 infodir = @infodir@
301 install_sh = @install_sh@
302 libdir = @libdir@
303 libexecdir = @libexecdir@
304 localedir = @localedir@
305 localstatedir = @localstatedir@
306 mandir = @mandir@
307 mkdir_p = @mkdir_p@
308 oldincludedir = @oldincludedir@
309 pdfdir = @pdfdir@
310 prefix = @prefix@
311 program_transform_name = @program_transform_name@
312 psdir = @psdir@
313 runstatedir = @runstatedir@
314 sbindir = @sbindir@
315 sharedstatedir = @sharedstatedir@
316 srcdir = @srcdir@
317 sysconfdir = @sysconfdir@
318 target_alias = @target_alias@
319 top_build_prefix = @top_build_prefix@
320 top_builddir = @top_builddir@
321 top_srcdir = @top_srcdir@
322 execfilterdir = $(libdir)/cups/filter
323 rastertoptch_CPPFLAGS = -D_GNU_SOURCE
324 rastertoptch_LDADD = $(LIBM) $(LIBCUPS) $(LIBCUPSIMAGE)
325 ptexplain_LDADD = $(LIBPNG)
326 DRIVERS = driver/ptouch-pt.xml \
327 driver/ptouch-ql.xml
328
329 PRINTERS = printer/Brother-QL-500.xml \
330 printer/Brother-QL-550.xml \
331 printer/Brother-QL-570.xml \
332 printer/Brother-QL-650TD.xml \
333 printer/Brother-QL-800.xml \
334 printer/Brother-QL-810W.xml \
335 printer/Brother-QL-820NWB.xml \
336 printer/Brother-PT-PC.xml \
337 printer/Brother-PT-18R.xml \
338 printer/Brother-PT-550A.xml \
339 printer/Brother-PT-E550W.xml \
340 printer/Brother-PT-P700.xml \
341 printer/Brother-PT-P900W.xml \
342 printer/Brother-PT-P950NW.xml \
343 printer/Brother-PT-1500PC.xml \
344 printer/Brother-PT-1950VP.xml \
345 printer/Brother-PT-1950.xml \
346 printer/Brother-PT-1960.xml \
347 printer/Brother-PT-2300.xml \
348 printer/Brother-PT-2420PC.xml \
349 printer/Brother-PT-2430PC.xml \
350 printer/Brother-PT-2450DX.xml \
351 printer/Brother-PT-2500PC.xml \
352 printer/Brother-PT-2600.xml \
353 printer/Brother-PT-2610.xml \
354 printer/Brother-PT-3600.xml \
355 printer/Brother-PT-9200DX.xml \
356 printer/Brother-PT-9200PC.xml \
357 printer/Brother-PT-9400.xml \
358 printer/Brother-PT-9500PC.xml \
359 printer/Brother-PT-9600.xml \
360 printer/Brother-PT-9700PC.xml
361
362 OPTIONS = opt/Brother-PTQL-Align.xml \
363 opt/Brother-PTQL-AutoCut.xml \
364 opt/Brother-PTQL-ChainPrinting.xml \
365 opt/Brother-PTQL-BytesPerLine.xml \
366 opt/Brother-PTQL-ConcatPages.xml \
367 opt/Brother-PTQL-CutLabel.xml \
368 opt/Brother-PTQL-LabelPreamble.xml \
369 opt/Brother-PTQL-LastPageFlag.xml \
370 opt/Brother-PTQL-MinMargin.xml \
371 opt/Brother-PTQL-MirrorPrint.xml \
372 opt/Brother-PTQL-NegativePrint.xml \
373 opt/Brother-PTQL-PixelTransfer.xml \
374 opt/Brother-PTQL-Resolution.xml \
375 opt/Brother-PTQL-Series.xml \
376 opt/Brother-PTQL-SoftwareMirror.xml \
377 opt/Brother-PTQL-TransferMode.xml \
378 opt/Brother-PT-HalfCut.xml \
379 opt/Brother-PT-LabelRecovery.xml \
380 opt/Brother-PT-LegacyHires.xml \
381 opt/Brother-PT-LegacyTransferMode.xml \
382 opt/Brother-PT-Margin.xml \
383 opt/Brother-PT-PageSize.xml \
384 opt/Brother-QL-CutMark.xml \
385 opt/Brother-QL-Margin.xml \
386 opt/Brother-QL-MediaType.xml \
387 opt/Brother-QL-PageSize.xml \
388 opt/Brother-QL-PrintDensity.xml \
389 opt/Brother-QL-PrintQuality.xml \
390 opt/Brother-QL-StatusNotification.xml
391
392 foomaticdbdir = $(datadir)/foomatic/db/source
393 driversdir = $(foomaticdbdir)/driver
394 drivers_DATA = $(addprefix generated/,$(DRIVERS))
395 printersdir = $(foomaticdbdir)/printer
396 printers_DATA = $(addprefix generated/,$(PRINTERS))
397 optionsdir = $(foomaticdbdir)/opt
398 options_DATA = $(addprefix generated/,$(OPTIONS))
399 EXTRA_DIST = Doxyfile $(PACKAGE).spec.in \
400 $(PACKAGE)-foomatic.spec.in \
401 $(DRIVERS) $(PRINTERS) $(OPTIONS) \
402 foomaticalize
403
404 RPMBUILD = rpmbuild -ba
405 RPMSOURCESDIR = $(HOME)/src/SOURCES
406 XMLSCHEMA = /usr/share/foomatic/xmlschema
407 all: config.h
408 $(MAKE) $(AM_MAKEFLAGS) all-am
409
410 .SUFFIXES:
411 .SUFFIXES: .c .o .obj
412 am--refresh: Makefile
413 @:
414 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
415 @for dep in $?; do \
416 case '$(am__configure_deps)' in \
417 *$$dep*) \
418 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
419 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
420 && exit 0; \
421 exit 1;; \
422 esac; \
423 done; \
424 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
425 $(am__cd) $(top_srcdir) && \
426 $(AUTOMAKE) --gnu Makefile
427 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
428 @case '$?' in \
429 *config.status*) \
430 echo ' $(SHELL) ./config.status'; \
431 $(SHELL) ./config.status;; \
432 *) \
433 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
434 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
435 esac;
436
437 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
438 $(SHELL) ./config.status --recheck
439
440 $(top_srcdir)/configure: $(am__configure_deps)
441 $(am__cd) $(srcdir) && $(AUTOCONF)
442 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
443 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
444 $(am__aclocal_m4_deps):
445
446 config.h: stamp-h1
447 @test -f $@ || rm -f stamp-h1
448 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
449
450 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
451 @rm -f stamp-h1
452 cd $(top_builddir) && $(SHELL) ./config.status config.h
453 $(srcdir)/config.h.in: $(am__configure_deps)
454 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
455 rm -f stamp-h1
456 touch $@
457
458 distclean-hdr:
459 -rm -f config.h stamp-h1
460 ptouch-driver.spec: $(top_builddir)/config.status $(srcdir)/ptouch-driver.spec.in
461 cd $(top_builddir) && $(SHELL) ./config.status $@
462 ptouch-driver-foomatic.spec: $(top_builddir)/config.status $(srcdir)/ptouch-driver-foomatic.spec.in
463 cd $(top_builddir) && $(SHELL) ./config.status $@
464 install-execfilterPROGRAMS: $(execfilter_PROGRAMS)
465 @$(NORMAL_INSTALL)
466 @list='$(execfilter_PROGRAMS)'; test -n "$(execfilterdir)" || list=; \
467 if test -n "$$list"; then \
468 echo " $(MKDIR_P) '$(DESTDIR)$(execfilterdir)'"; \
469 $(MKDIR_P) "$(DESTDIR)$(execfilterdir)" || exit 1; \
470 fi; \
471 for p in $$list; do echo "$$p $$p"; done | \
472 sed 's/$(EXEEXT)$$//' | \
473 while read p p1; do if test -f $$p \
474 ; then echo "$$p"; echo "$$p"; else :; fi; \
475 done | \
476 sed -e 'p;s,.*/,,;n;h' \
477 -e 's|.*|.|' \
478 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
479 sed 'N;N;N;s,\n, ,g' | \
480 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
481 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
482 if ($$2 == $$4) files[d] = files[d] " " $$1; \
483 else { print "f", $$3 "/" $$4, $$1; } } \
484 END { for (d in files) print "f", d, files[d] }' | \
485 while read type dir files; do \
486 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
487 test -z "$$files" || { \
488 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(execfilterdir)$$dir'"; \
489 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(execfilterdir)$$dir" || exit $$?; \
490 } \
491 ; done
492
493 uninstall-execfilterPROGRAMS:
494 @$(NORMAL_UNINSTALL)
495 @list='$(execfilter_PROGRAMS)'; test -n "$(execfilterdir)" || list=; \
496 files=`for p in $$list; do echo "$$p"; done | \
497 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
498 -e 's/$$/$(EXEEXT)/' \
499 `; \
500 test -n "$$list" || exit 0; \
501 echo " ( cd '$(DESTDIR)$(execfilterdir)' && rm -f" $$files ")"; \
502 cd "$(DESTDIR)$(execfilterdir)" && rm -f $$files
503
504 clean-execfilterPROGRAMS:
505 -test -z "$(execfilter_PROGRAMS)" || rm -f $(execfilter_PROGRAMS)
506
507 clean-noinstPROGRAMS:
508 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
509
510 ptexplain$(EXEEXT): $(ptexplain_OBJECTS) $(ptexplain_DEPENDENCIES) $(EXTRA_ptexplain_DEPENDENCIES)
511 @rm -f ptexplain$(EXEEXT)
512 $(AM_V_CCLD)$(LINK) $(ptexplain_OBJECTS) $(ptexplain_LDADD) $(LIBS)
513
514 rastertoptch$(EXEEXT): $(rastertoptch_OBJECTS) $(rastertoptch_DEPENDENCIES) $(EXTRA_rastertoptch_DEPENDENCIES)
515 @rm -f rastertoptch$(EXEEXT)
516 $(AM_V_CCLD)$(LINK) $(rastertoptch_OBJECTS) $(rastertoptch_LDADD) $(LIBS)
517
518 mostlyclean-compile:
519 -rm -f *.$(OBJEXT)
520
521 distclean-compile:
522 -rm -f *.tab.c
523
524 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ptexplain.Po@am__quote@ # am--include-marker
525 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rastertoptch-rastertoptch.Po@am__quote@ # am--include-marker
526
527 $(am__depfiles_remade):
528 @$(MKDIR_P) $(@D)
529 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
530
531 am--depfiles: $(am__depfiles_remade)
532
533 .c.o:
534 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
535 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
536 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
537 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
538 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
539
540 .c.obj:
541 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
542 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
543 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
544 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
545 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
546
547 rastertoptch-rastertoptch.o: rastertoptch.c
548 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(rastertoptch_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT rastertoptch-rastertoptch.o -MD -MP -MF $(DEPDIR)/rastertoptch-rastertoptch.Tpo -c -o rastertoptch-rastertoptch.o `test -f 'rastertoptch.c' || echo '$(srcdir)/'`rastertoptch.c
549 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/rastertoptch-rastertoptch.Tpo $(DEPDIR)/rastertoptch-rastertoptch.Po
550 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rastertoptch.c' object='rastertoptch-rastertoptch.o' libtool=no @AMDEPBACKSLASH@
551 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
552 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(rastertoptch_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o rastertoptch-rastertoptch.o `test -f 'rastertoptch.c' || echo '$(srcdir)/'`rastertoptch.c
553
554 rastertoptch-rastertoptch.obj: rastertoptch.c
555 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(rastertoptch_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT rastertoptch-rastertoptch.obj -MD -MP -MF $(DEPDIR)/rastertoptch-rastertoptch.Tpo -c -o rastertoptch-rastertoptch.obj `if test -f 'rastertoptch.c'; then $(CYGPATH_W) 'rastertoptch.c'; else $(CYGPATH_W) '$(srcdir)/rastertoptch.c'; fi`
556 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/rastertoptch-rastertoptch.Tpo $(DEPDIR)/rastertoptch-rastertoptch.Po
557 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rastertoptch.c' object='rastertoptch-rastertoptch.obj' libtool=no @AMDEPBACKSLASH@
558 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
559 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(rastertoptch_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o rastertoptch-rastertoptch.obj `if test -f 'rastertoptch.c'; then $(CYGPATH_W) 'rastertoptch.c'; else $(CYGPATH_W) '$(srcdir)/rastertoptch.c'; fi`
560 install-driversDATA: $(drivers_DATA)
561 @$(NORMAL_INSTALL)
562 @list='$(drivers_DATA)'; test -n "$(driversdir)" || list=; \
563 if test -n "$$list"; then \
564 echo " $(MKDIR_P) '$(DESTDIR)$(driversdir)'"; \
565 $(MKDIR_P) "$(DESTDIR)$(driversdir)" || exit 1; \
566 fi; \
567 for p in $$list; do \
568 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
569 echo "$$d$$p"; \
570 done | $(am__base_list) | \
571 while read files; do \
572 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(driversdir)'"; \
573 $(INSTALL_DATA) $$files "$(DESTDIR)$(driversdir)" || exit $$?; \
574 done
575
576 uninstall-driversDATA:
577 @$(NORMAL_UNINSTALL)
578 @list='$(drivers_DATA)'; test -n "$(driversdir)" || list=; \
579 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
580 dir='$(DESTDIR)$(driversdir)'; $(am__uninstall_files_from_dir)
581 install-optionsDATA: $(options_DATA)
582 @$(NORMAL_INSTALL)
583 @list='$(options_DATA)'; test -n "$(optionsdir)" || list=; \
584 if test -n "$$list"; then \
585 echo " $(MKDIR_P) '$(DESTDIR)$(optionsdir)'"; \
586 $(MKDIR_P) "$(DESTDIR)$(optionsdir)" || exit 1; \
587 fi; \
588 for p in $$list; do \
589 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
590 echo "$$d$$p"; \
591 done | $(am__base_list) | \
592 while read files; do \
593 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(optionsdir)'"; \
594 $(INSTALL_DATA) $$files "$(DESTDIR)$(optionsdir)" || exit $$?; \
595 done
596
597 uninstall-optionsDATA:
598 @$(NORMAL_UNINSTALL)
599 @list='$(options_DATA)'; test -n "$(optionsdir)" || list=; \
600 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
601 dir='$(DESTDIR)$(optionsdir)'; $(am__uninstall_files_from_dir)
602 install-printersDATA: $(printers_DATA)
603 @$(NORMAL_INSTALL)
604 @list='$(printers_DATA)'; test -n "$(printersdir)" || list=; \
605 if test -n "$$list"; then \
606 echo " $(MKDIR_P) '$(DESTDIR)$(printersdir)'"; \
607 $(MKDIR_P) "$(DESTDIR)$(printersdir)" || exit 1; \
608 fi; \
609 for p in $$list; do \
610 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
611 echo "$$d$$p"; \
612 done | $(am__base_list) | \
613 while read files; do \
614 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(printersdir)'"; \
615 $(INSTALL_DATA) $$files "$(DESTDIR)$(printersdir)" || exit $$?; \
616 done
617
618 uninstall-printersDATA:
619 @$(NORMAL_UNINSTALL)
620 @list='$(printers_DATA)'; test -n "$(printersdir)" || list=; \
621 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
622 dir='$(DESTDIR)$(printersdir)'; $(am__uninstall_files_from_dir)
623
624 ID: $(am__tagged_files)
625 $(am__define_uniq_tagged_files); mkid -fID $$unique
626 tags: tags-am
627 TAGS: tags
628
629 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
630 set x; \
631 here=`pwd`; \
632 $(am__define_uniq_tagged_files); \
633 shift; \
634 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
635 test -n "$$unique" || unique=$$empty_fix; \
636 if test $$# -gt 0; then \
637 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
638 "$$@" $$unique; \
639 else \
640 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
641 $$unique; \
642 fi; \
643 fi
644 ctags: ctags-am
645
646 CTAGS: ctags
647 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
648 $(am__define_uniq_tagged_files); \
649 test -z "$(CTAGS_ARGS)$$unique" \
650 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
651 $$unique
652
653 GTAGS:
654 here=`$(am__cd) $(top_builddir) && pwd` \
655 && $(am__cd) $(top_srcdir) \
656 && gtags -i $(GTAGS_ARGS) "$$here"
657 cscope: cscope.files
658 test ! -s cscope.files \
659 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
660 clean-cscope:
661 -rm -f cscope.files
662 cscope.files: clean-cscope cscopelist
663 cscopelist: cscopelist-am
664
665 cscopelist-am: $(am__tagged_files)
666 list='$(am__tagged_files)'; \
667 case "$(srcdir)" in \
668 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
669 *) sdir=$(subdir)/$(srcdir) ;; \
670 esac; \
671 for i in $$list; do \
672 if test -f "$$i"; then \
673 echo "$(subdir)/$$i"; \
674 else \
675 echo "$$sdir/$$i"; \
676 fi; \
677 done >> $(top_builddir)/cscope.files
678
679 distclean-tags:
680 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
681 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
682
683 distdir: $(BUILT_SOURCES)
684 $(MAKE) $(AM_MAKEFLAGS) distdir-am
685
686 distdir-am: $(DISTFILES)
687 $(am__remove_distdir)
688 test -d "$(distdir)" || mkdir "$(distdir)"
689 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
690 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
691 list='$(DISTFILES)'; \
692 dist_files=`for file in $$list; do echo $$file; done | \
693 sed -e "s|^$$srcdirstrip/||;t" \
694 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
695 case $$dist_files in \
696 */*) $(MKDIR_P) `echo "$$dist_files" | \
697 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
698 sort -u` ;; \
699 esac; \
700 for file in $$dist_files; do \
701 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
702 if test -d $$d/$$file; then \
703 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
704 if test -d "$(distdir)/$$file"; then \
705 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
706 fi; \
707 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
708 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
709 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
710 fi; \
711 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
712 else \
713 test -f "$(distdir)/$$file" \
714 || cp -p $$d/$$file "$(distdir)/$$file" \
715 || exit 1; \
716 fi; \
717 done
718 -test -n "$(am__skip_mode_fix)" \
719 || find "$(distdir)" -type d ! -perm -755 \
720 -exec chmod u+rwx,go+rx {} \; -o \
721 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
722 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
723 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
724 || chmod -R a+r "$(distdir)"
725 dist-gzip: distdir
726 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
727 $(am__post_remove_distdir)
728
729 dist-bzip2: distdir
730 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
731 $(am__post_remove_distdir)
732
733 dist-lzip: distdir
734 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
735 $(am__post_remove_distdir)
736
737 dist-xz: distdir
738 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
739 $(am__post_remove_distdir)
740
741 dist-zstd: distdir
742 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
743 $(am__post_remove_distdir)
744
745 dist-tarZ: distdir
746 @echo WARNING: "Support for distribution archives compressed with" \
747 "legacy program 'compress' is deprecated." >&2
748 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
749 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
750 $(am__post_remove_distdir)
751
752 dist-shar: distdir
753 @echo WARNING: "Support for shar distribution archives is" \
754 "deprecated." >&2
755 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
756 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
757 $(am__post_remove_distdir)
758
759 dist-zip: distdir
760 -rm -f $(distdir).zip
761 zip -rq $(distdir).zip $(distdir)
762 $(am__post_remove_distdir)
763
764 dist dist-all:
765 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
766 $(am__post_remove_distdir)
767
768 # This target untars the dist file and tries a VPATH configuration. Then
769 # it guarantees that the distribution is self-contained by making another
770 # tarfile.
771 distcheck: dist
772 case '$(DIST_ARCHIVES)' in \
773 *.tar.gz*) \
774 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
775 *.tar.bz2*) \
776 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
777 *.tar.lz*) \
778 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
779 *.tar.xz*) \
780 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
781 *.tar.Z*) \
782 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
783 *.shar.gz*) \
784 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
785 *.zip*) \
786 unzip $(distdir).zip ;;\
787 *.tar.zst*) \
788 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
789 esac
790 chmod -R a-w $(distdir)
791 chmod u+w $(distdir)
792 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
793 chmod a-w $(distdir)
794 test -d $(distdir)/_build || exit 0; \
795 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
796 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
797 && am__cwd=`pwd` \
798 && $(am__cd) $(distdir)/_build/sub \
799 && ../../configure \
800 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
801 $(DISTCHECK_CONFIGURE_FLAGS) \
802 --srcdir=../.. --prefix="$$dc_install_base" \
803 && $(MAKE) $(AM_MAKEFLAGS) \
804 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
805 && $(MAKE) $(AM_MAKEFLAGS) check \
806 && $(MAKE) $(AM_MAKEFLAGS) install \
807 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
808 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
809 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
810 distuninstallcheck \
811 && chmod -R a-w "$$dc_install_base" \
812 && ({ \
813 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
814 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
815 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
816 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
817 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
818 } || { rm -rf "$$dc_destdir"; exit 1; }) \
819 && rm -rf "$$dc_destdir" \
820 && $(MAKE) $(AM_MAKEFLAGS) dist \
821 && rm -rf $(DIST_ARCHIVES) \
822 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
823 && cd "$$am__cwd" \
824 || exit 1
825 $(am__post_remove_distdir)
826 @(echo "$(distdir) archives ready for distribution: "; \
827 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
828 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
829 distuninstallcheck:
830 @test -n '$(distuninstallcheck_dir)' || { \
831 echo 'ERROR: trying to run $@ with an empty' \
832 '$$(distuninstallcheck_dir)' >&2; \
833 exit 1; \
834 }; \
835 $(am__cd) '$(distuninstallcheck_dir)' || { \
836 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
837 exit 1; \
838 }; \
839 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
840 || { echo "ERROR: files left after uninstall:" ; \
841 if test -n "$(DESTDIR)"; then \
842 echo " (check DESTDIR support)"; \
843 fi ; \
844 $(distuninstallcheck_listfiles) ; \
845 exit 1; } >&2
846 distcleancheck: distclean
847 @if test '$(srcdir)' = . ; then \
848 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
849 exit 1 ; \
850 fi
851 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
852 || { echo "ERROR: files left in build directory after distclean:" ; \
853 $(distcleancheck_listfiles) ; \
854 exit 1; } >&2
855 check-am: all-am
856 check: check-am
857 all-am: Makefile $(PROGRAMS) $(DATA) config.h
858 installdirs:
859 for dir in "$(DESTDIR)$(execfilterdir)" "$(DESTDIR)$(driversdir)" "$(DESTDIR)$(optionsdir)" "$(DESTDIR)$(printersdir)"; do \
860 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
861 done
862 install: install-am
863 install-exec: install-exec-am
864 install-data: install-data-am
865 uninstall: uninstall-am
866
867 install-am: all-am
868 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
869
870 installcheck: installcheck-am
871 install-strip:
872 if test -z '$(STRIP)'; then \
873 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
874 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
875 install; \
876 else \
877 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
878 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
879 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
880 fi
881 mostlyclean-generic:
882
883 clean-generic:
884
885 distclean-generic:
886 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
887 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
888
889 maintainer-clean-generic:
890 @echo "This command is intended for maintainers to use"
891 @echo "it deletes files that may require special tools to rebuild."
892 clean: clean-am
893
894 clean-am: clean-execfilterPROGRAMS clean-generic clean-local \
895 clean-noinstPROGRAMS mostlyclean-am
896
897 distclean: distclean-am
898 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
899 -rm -f ./$(DEPDIR)/ptexplain.Po
900 -rm -f ./$(DEPDIR)/rastertoptch-rastertoptch.Po
901 -rm -f Makefile
902 distclean-am: clean-am distclean-compile distclean-generic \
903 distclean-hdr distclean-tags
904
905 dvi: dvi-am
906
907 dvi-am:
908
909 html: html-am
910
911 html-am:
912
913 info: info-am
914
915 info-am:
916
917 install-data-am: install-driversDATA install-optionsDATA \
918 install-printersDATA
919
920 install-dvi: install-dvi-am
921
922 install-dvi-am:
923
924 install-exec-am: install-execfilterPROGRAMS
925
926 install-html: install-html-am
927
928 install-html-am:
929
930 install-info: install-info-am
931
932 install-info-am:
933
934 install-man:
935
936 install-pdf: install-pdf-am
937
938 install-pdf-am:
939
940 install-ps: install-ps-am
941
942 install-ps-am:
943
944 installcheck-am:
945
946 maintainer-clean: maintainer-clean-am
947 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
948 -rm -rf $(top_srcdir)/autom4te.cache
949 -rm -f ./$(DEPDIR)/ptexplain.Po
950 -rm -f ./$(DEPDIR)/rastertoptch-rastertoptch.Po
951 -rm -f Makefile
952 maintainer-clean-am: distclean-am maintainer-clean-generic
953
954 mostlyclean: mostlyclean-am
955
956 mostlyclean-am: mostlyclean-compile mostlyclean-generic
957
958 pdf: pdf-am
959
960 pdf-am:
961
962 ps: ps-am
963
964 ps-am:
965
966 uninstall-am: uninstall-driversDATA uninstall-execfilterPROGRAMS \
967 uninstall-optionsDATA uninstall-printersDATA
968
969 .MAKE: all install-am install-strip
970
971 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles am--refresh check \
972 check-am clean clean-cscope clean-execfilterPROGRAMS \
973 clean-generic clean-local clean-noinstPROGRAMS cscope \
974 cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
975 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
976 dist-zstd distcheck distclean distclean-compile \
977 distclean-generic distclean-hdr distclean-tags distcleancheck \
978 distdir distuninstallcheck dvi dvi-am html html-am info \
979 info-am install install-am install-data install-data-am \
980 install-driversDATA install-dvi install-dvi-am install-exec \
981 install-exec-am install-execfilterPROGRAMS install-html \
982 install-html-am install-info install-info-am install-man \
983 install-optionsDATA install-pdf install-pdf-am \
984 install-printersDATA install-ps install-ps-am install-strip \
985 installcheck installcheck-am installdirs maintainer-clean \
986 maintainer-clean-generic mostlyclean mostlyclean-compile \
987 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
988 uninstall-am uninstall-driversDATA \
989 uninstall-execfilterPROGRAMS uninstall-optionsDATA \
990 uninstall-printersDATA
991
992 .PRECIOUS: Makefile
993
994
995 dist-rpm: $(RPMSOURCESDIR)/$(distdir).tar.gz \
996 $(PACKAGE).spec $(PACKAGE)-foomatic.spec
997 $(RPMBUILD) $(PACKAGE).spec
998 $(RPMBUILD) $(PACKAGE)-foomatic.spec
999
1000 $(RPMSOURCESDIR)/$(distdir).tar.gz: $(distdir).tar.gz
1001 cp $< $@
1002
1003 %.spec: $(srcdir)/%.spec.in $(top_builddir)/config.status
1004 @case '$?' in \
1005 *config.status*) \
1006 echo ' $(SHELL) ./config.status'; \
1007 $(SHELL) ./config.status;; \
1008 *) \
1009 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
1010 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
1011 esac;
1012
1013 export PACKAGE_STRING
1014 $(addprefix generated/,$(DRIVERS)): generated/stamp-h1
1015 $(addprefix generated/,$(PRINTERS)): generated/stamp-h1
1016 $(addprefix generated/,$(OPTIONS)): generated/stamp-h1
1017 generated/stamp-h1: $(DRIVERS) $(PRINTERS) $(OPTIONS) foomaticalize
1018 $(srcdir)/foomaticalize --srcdir=$(srcdir) --out=generated $(DRIVERS) $(PRINTERS) $(OPTIONS)
1019 @touch $@
1020
1021 clean-local:
1022 -rm -rf generated
1023 xmlschema-driver: $(DRIVERS)
1024 @xmllint --noout --schema $(XMLSCHEMA)/driver.xsd $+
1025 xmlschema-printer: $(PRINTERS)
1026 @for xml in $+; do \
1027 echo -n "$$xml "; \
1028 xmlstarlet ed \
1029 -d '/printer/unverified' \
1030 -d '/printer/select' \
1031 "$$xml" \
1032 | xmllint --noout --schema $(XMLSCHEMA)/printer.xsd -; \
1033 done
1034 xmlschema-option: $(OPTIONS)
1035 @xmllint --noout --schema $(XMLSCHEMA)/option.xsd $+
1036
1037 xmlschema: xmlschema-driver xmlschema-printer xmlschema-option
1038 xmllint:
1039 @xmllint --noout $(DRIVERS) $(PRINTERS) $(OPTIONS)
1040
1041 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1042 # Otherwise a system limit (for SysV at least) may be exceeded.
1043 .NOEXPORT:
0 # generated automatically by aclocal 1.16.3 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
3
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22 # Copyright (C) 2002-2020 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.
27
28 # AM_AUTOMAKE_VERSION(VERSION)
29 # ----------------------------
30 # Automake X.Y traces this macro to ensure aclocal.m4 has been
31 # generated from the m4 files accompanying Automake X.Y.
32 # (This private macro should not be called outside this file.)
33 AC_DEFUN([AM_AUTOMAKE_VERSION],
34 [am__api_version='1.16'
35 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.16.3], [],
38 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39 ])
40
41 # _AM_AUTOCONF_VERSION(VERSION)
42 # -----------------------------
43 # aclocal traces this macro to find the Autoconf version.
44 # This is a private macro too. Using m4_define simplifies
45 # the logic in aclocal, which can simply ignore this definition.
46 m4_define([_AM_AUTOCONF_VERSION], [])
47
48 # AM_SET_CURRENT_AUTOMAKE_VERSION
49 # -------------------------------
50 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.16.3])dnl
54 m4_ifndef([AC_AUTOCONF_VERSION],
55 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
57
58 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
59
60 # Copyright (C) 2001-2020 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.
65
66 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
68 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
69 #
70 # Of course, Automake must honor this variable whenever it calls a
71 # tool from the auxiliary directory. The problem is that $srcdir (and
72 # therefore $ac_aux_dir as well) can be either absolute or relative,
73 # depending on how configure is run. This is pretty annoying, since
74 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
75 # source directory, any form will work fine, but in subdirectories a
76 # relative path needs to be adjusted first.
77 #
78 # $ac_aux_dir/missing
79 # fails when called from a subdirectory if $ac_aux_dir is relative
80 # $top_srcdir/$ac_aux_dir/missing
81 # fails if $ac_aux_dir is absolute,
82 # fails when called from a subdirectory in a VPATH build with
83 # a relative $ac_aux_dir
84 #
85 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86 # are both prefixed by $srcdir. In an in-source build this is usually
87 # harmless because $srcdir is '.', but things will broke when you
88 # start a VPATH build or use an absolute $srcdir.
89 #
90 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
92 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93 # and then we would define $MISSING as
94 # MISSING="\${SHELL} $am_aux_dir/missing"
95 # This will work as long as MISSING is not called from configure, because
96 # unfortunately $(top_srcdir) has no meaning in configure.
97 # However there are other variables, like CC, which are often used in
98 # configure, and could therefore not use this "fixed" $ac_aux_dir.
99 #
100 # Another solution, used here, is to always expand $ac_aux_dir to an
101 # absolute PATH. The drawback is that using absolute paths prevent a
102 # configured tree to be moved without reconfiguration.
103
104 AC_DEFUN([AM_AUX_DIR_EXPAND],
105 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
106 # Expand $ac_aux_dir to an absolute path.
107 am_aux_dir=`cd "$ac_aux_dir" && pwd`
108 ])
109
110 # AM_CONDITIONAL -*- Autoconf -*-
111
112 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
113 #
114 # This file is free software; the Free Software Foundation
115 # gives unlimited permission to copy and/or distribute it,
116 # with or without modifications, as long as this notice is preserved.
117
118 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
119 # -------------------------------------
120 # Define a conditional.
121 AC_DEFUN([AM_CONDITIONAL],
122 [AC_PREREQ([2.52])dnl
123 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
124 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
125 AC_SUBST([$1_TRUE])dnl
126 AC_SUBST([$1_FALSE])dnl
127 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
128 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
129 m4_define([_AM_COND_VALUE_$1], [$2])dnl
130 if $2; then
131 $1_TRUE=
132 $1_FALSE='#'
133 else
134 $1_TRUE='#'
135 $1_FALSE=
136 fi
137 AC_CONFIG_COMMANDS_PRE(
138 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
139 AC_MSG_ERROR([[conditional "$1" was never defined.
140 Usually this means the macro was only invoked conditionally.]])
141 fi])])
142
143 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
144 #
145 # This file is free software; the Free Software Foundation
146 # gives unlimited permission to copy and/or distribute it,
147 # with or without modifications, as long as this notice is preserved.
148
149
150 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
151 # written in clear, in which case automake, when reading aclocal.m4,
152 # will think it sees a *use*, and therefore will trigger all it's
153 # C support machinery. Also note that it means that autoscan, seeing
154 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
155
156
157 # _AM_DEPENDENCIES(NAME)
158 # ----------------------
159 # See how the compiler implements dependency checking.
160 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
161 # We try a few techniques and use that to set a single cache variable.
162 #
163 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
164 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
165 # dependency, and given that the user is not expected to run this macro,
166 # just rely on AC_PROG_CC.
167 AC_DEFUN([_AM_DEPENDENCIES],
168 [AC_REQUIRE([AM_SET_DEPDIR])dnl
169 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
170 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
171 AC_REQUIRE([AM_DEP_TRACK])dnl
172
173 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
174 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
175 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
176 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
177 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
178 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
179 [depcc="$$1" am_compiler_list=])
180
181 AC_CACHE_CHECK([dependency style of $depcc],
182 [am_cv_$1_dependencies_compiler_type],
183 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
184 # We make a subdir and do the tests there. Otherwise we can end up
185 # making bogus files that we don't know about and never remove. For
186 # instance it was reported that on HP-UX the gcc test will end up
187 # making a dummy file named 'D' -- because '-MD' means "put the output
188 # in D".
189 rm -rf conftest.dir
190 mkdir conftest.dir
191 # Copy depcomp to subdir because otherwise we won't find it if we're
192 # using a relative directory.
193 cp "$am_depcomp" conftest.dir
194 cd conftest.dir
195 # We will build objects and dependencies in a subdirectory because
196 # it helps to detect inapplicable dependency modes. For instance
197 # both Tru64's cc and ICC support -MD to output dependencies as a
198 # side effect of compilation, but ICC will put the dependencies in
199 # the current directory while Tru64 will put them in the object
200 # directory.
201 mkdir sub
202
203 am_cv_$1_dependencies_compiler_type=none
204 if test "$am_compiler_list" = ""; then
205 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
206 fi
207 am__universal=false
208 m4_case([$1], [CC],
209 [case " $depcc " in #(
210 *\ -arch\ *\ -arch\ *) am__universal=true ;;
211 esac],
212 [CXX],
213 [case " $depcc " in #(
214 *\ -arch\ *\ -arch\ *) am__universal=true ;;
215 esac])
216
217 for depmode in $am_compiler_list; do
218 # Setup a source with many dependencies, because some compilers
219 # like to wrap large dependency lists on column 80 (with \), and
220 # we should not choose a depcomp mode which is confused by this.
221 #
222 # We need to recreate these files for each test, as the compiler may
223 # overwrite some of them when testing with obscure command lines.
224 # This happens at least with the AIX C compiler.
225 : > sub/conftest.c
226 for i in 1 2 3 4 5 6; do
227 echo '#include "conftst'$i'.h"' >> sub/conftest.c
228 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
229 # Solaris 10 /bin/sh.
230 echo '/* dummy */' > sub/conftst$i.h
231 done
232 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
233
234 # We check with '-c' and '-o' for the sake of the "dashmstdout"
235 # mode. It turns out that the SunPro C++ compiler does not properly
236 # handle '-M -o', and we need to detect this. Also, some Intel
237 # versions had trouble with output in subdirs.
238 am__obj=sub/conftest.${OBJEXT-o}
239 am__minus_obj="-o $am__obj"
240 case $depmode in
241 gcc)
242 # This depmode causes a compiler race in universal mode.
243 test "$am__universal" = false || continue
244 ;;
245 nosideeffect)
246 # After this tag, mechanisms are not by side-effect, so they'll
247 # only be used when explicitly requested.
248 if test "x$enable_dependency_tracking" = xyes; then
249 continue
250 else
251 break
252 fi
253 ;;
254 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
255 # This compiler won't grok '-c -o', but also, the minuso test has
256 # not run yet. These depmodes are late enough in the game, and
257 # so weak that their functioning should not be impacted.
258 am__obj=conftest.${OBJEXT-o}
259 am__minus_obj=
260 ;;
261 none) break ;;
262 esac
263 if depmode=$depmode \
264 source=sub/conftest.c object=$am__obj \
265 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
266 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
267 >/dev/null 2>conftest.err &&
268 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
269 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
270 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
271 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
272 # icc doesn't choke on unknown options, it will just issue warnings
273 # or remarks (even with -Werror). So we grep stderr for any message
274 # that says an option was ignored or not supported.
275 # When given -MP, icc 7.0 and 7.1 complain thusly:
276 # icc: Command line warning: ignoring option '-M'; no argument required
277 # The diagnosis changed in icc 8.0:
278 # icc: Command line remark: option '-MP' not supported
279 if (grep 'ignoring option' conftest.err ||
280 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
281 am_cv_$1_dependencies_compiler_type=$depmode
282 break
283 fi
284 fi
285 done
286
287 cd ..
288 rm -rf conftest.dir
289 else
290 am_cv_$1_dependencies_compiler_type=none
291 fi
292 ])
293 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
294 AM_CONDITIONAL([am__fastdep$1], [
295 test "x$enable_dependency_tracking" != xno \
296 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
297 ])
298
299
300 # AM_SET_DEPDIR
301 # -------------
302 # Choose a directory name for dependency files.
303 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
304 AC_DEFUN([AM_SET_DEPDIR],
305 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
306 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
307 ])
308
309
310 # AM_DEP_TRACK
311 # ------------
312 AC_DEFUN([AM_DEP_TRACK],
313 [AC_ARG_ENABLE([dependency-tracking], [dnl
314 AS_HELP_STRING(
315 [--enable-dependency-tracking],
316 [do not reject slow dependency extractors])
317 AS_HELP_STRING(
318 [--disable-dependency-tracking],
319 [speeds up one-time build])])
320 if test "x$enable_dependency_tracking" != xno; then
321 am_depcomp="$ac_aux_dir/depcomp"
322 AMDEPBACKSLASH='\'
323 am__nodep='_no'
324 fi
325 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
326 AC_SUBST([AMDEPBACKSLASH])dnl
327 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
328 AC_SUBST([am__nodep])dnl
329 _AM_SUBST_NOTMAKE([am__nodep])dnl
330 ])
331
332 # Generate code to set up dependency tracking. -*- Autoconf -*-
333
334 # Copyright (C) 1999-2020 Free Software Foundation, Inc.
335 #
336 # This file is free software; the Free Software Foundation
337 # gives unlimited permission to copy and/or distribute it,
338 # with or without modifications, as long as this notice is preserved.
339
340 # _AM_OUTPUT_DEPENDENCY_COMMANDS
341 # ------------------------------
342 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
343 [{
344 # Older Autoconf quotes --file arguments for eval, but not when files
345 # are listed without --file. Let's play safe and only enable the eval
346 # if we detect the quoting.
347 # TODO: see whether this extra hack can be removed once we start
348 # requiring Autoconf 2.70 or later.
349 AS_CASE([$CONFIG_FILES],
350 [*\'*], [eval set x "$CONFIG_FILES"],
351 [*], [set x $CONFIG_FILES])
352 shift
353 # Used to flag and report bootstrapping failures.
354 am_rc=0
355 for am_mf
356 do
357 # Strip MF so we end up with the name of the file.
358 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
359 # Check whether this is an Automake generated Makefile which includes
360 # dependency-tracking related rules and includes.
361 # Grep'ing the whole file directly is not great: AIX grep has a line
362 # limit of 2048, but all sed's we know have understand at least 4000.
363 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
364 || continue
365 am_dirpart=`AS_DIRNAME(["$am_mf"])`
366 am_filepart=`AS_BASENAME(["$am_mf"])`
367 AM_RUN_LOG([cd "$am_dirpart" \
368 && sed -e '/# am--include-marker/d' "$am_filepart" \
369 | $MAKE -f - am--depfiles]) || am_rc=$?
370 done
371 if test $am_rc -ne 0; then
372 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
373 for automatic dependency tracking. If GNU make was not used, consider
374 re-running the configure script with MAKE="gmake" (or whatever is
375 necessary). You can also try re-running configure with the
376 '--disable-dependency-tracking' option to at least be able to build
377 the package (albeit without support for automatic dependency tracking).])
378 fi
379 AS_UNSET([am_dirpart])
380 AS_UNSET([am_filepart])
381 AS_UNSET([am_mf])
382 AS_UNSET([am_rc])
383 rm -f conftest-deps.mk
384 }
385 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
386
387
388 # AM_OUTPUT_DEPENDENCY_COMMANDS
389 # -----------------------------
390 # This macro should only be invoked once -- use via AC_REQUIRE.
391 #
392 # This code is only required when automatic dependency tracking is enabled.
393 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
394 # order to bootstrap the dependency handling code.
395 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
396 [AC_CONFIG_COMMANDS([depfiles],
397 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
398 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
399
400 # Do all the work for Automake. -*- Autoconf -*-
401
402 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
403 #
404 # This file is free software; the Free Software Foundation
405 # gives unlimited permission to copy and/or distribute it,
406 # with or without modifications, as long as this notice is preserved.
407
408 # This macro actually does too much. Some checks are only needed if
409 # your package does certain things. But this isn't really a big deal.
410
411 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
412 m4_define([AC_PROG_CC],
413 m4_defn([AC_PROG_CC])
414 [_AM_PROG_CC_C_O
415 ])
416
417 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
418 # AM_INIT_AUTOMAKE([OPTIONS])
419 # -----------------------------------------------
420 # The call with PACKAGE and VERSION arguments is the old style
421 # call (pre autoconf-2.50), which is being phased out. PACKAGE
422 # and VERSION should now be passed to AC_INIT and removed from
423 # the call to AM_INIT_AUTOMAKE.
424 # We support both call styles for the transition. After
425 # the next Automake release, Autoconf can make the AC_INIT
426 # arguments mandatory, and then we can depend on a new Autoconf
427 # release and drop the old call support.
428 AC_DEFUN([AM_INIT_AUTOMAKE],
429 [AC_PREREQ([2.65])dnl
430 dnl Autoconf wants to disallow AM_ names. We explicitly allow
431 dnl the ones we care about.
432 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
433 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
434 AC_REQUIRE([AC_PROG_INSTALL])dnl
435 if test "`cd $srcdir && pwd`" != "`pwd`"; then
436 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
437 # is not polluted with repeated "-I."
438 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
439 # test to see if srcdir already configured
440 if test -f $srcdir/config.status; then
441 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
442 fi
443 fi
444
445 # test whether we have cygpath
446 if test -z "$CYGPATH_W"; then
447 if (cygpath --version) >/dev/null 2>/dev/null; then
448 CYGPATH_W='cygpath -w'
449 else
450 CYGPATH_W=echo
451 fi
452 fi
453 AC_SUBST([CYGPATH_W])
454
455 # Define the identity of the package.
456 dnl Distinguish between old-style and new-style calls.
457 m4_ifval([$2],
458 [AC_DIAGNOSE([obsolete],
459 [$0: two- and three-arguments forms are deprecated.])
460 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
461 AC_SUBST([PACKAGE], [$1])dnl
462 AC_SUBST([VERSION], [$2])],
463 [_AM_SET_OPTIONS([$1])dnl
464 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
465 m4_if(
466 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
467 [ok:ok],,
468 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
469 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
470 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
471
472 _AM_IF_OPTION([no-define],,
473 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
474 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
475
476 # Some tools Automake needs.
477 AC_REQUIRE([AM_SANITY_CHECK])dnl
478 AC_REQUIRE([AC_ARG_PROGRAM])dnl
479 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
480 AM_MISSING_PROG([AUTOCONF], [autoconf])
481 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
482 AM_MISSING_PROG([AUTOHEADER], [autoheader])
483 AM_MISSING_PROG([MAKEINFO], [makeinfo])
484 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
485 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
486 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
487 # For better backward compatibility. To be removed once Automake 1.9.x
488 # dies out for good. For more background, see:
489 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
490 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
491 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
492 # We need awk for the "check" target (and possibly the TAP driver). The
493 # system "awk" is bad on some platforms.
494 AC_REQUIRE([AC_PROG_AWK])dnl
495 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
496 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
497 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
498 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
499 [_AM_PROG_TAR([v7])])])
500 _AM_IF_OPTION([no-dependencies],,
501 [AC_PROVIDE_IFELSE([AC_PROG_CC],
502 [_AM_DEPENDENCIES([CC])],
503 [m4_define([AC_PROG_CC],
504 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
505 AC_PROVIDE_IFELSE([AC_PROG_CXX],
506 [_AM_DEPENDENCIES([CXX])],
507 [m4_define([AC_PROG_CXX],
508 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
509 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
510 [_AM_DEPENDENCIES([OBJC])],
511 [m4_define([AC_PROG_OBJC],
512 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
513 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
514 [_AM_DEPENDENCIES([OBJCXX])],
515 [m4_define([AC_PROG_OBJCXX],
516 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
517 ])
518 AC_REQUIRE([AM_SILENT_RULES])dnl
519 dnl The testsuite driver may need to know about EXEEXT, so add the
520 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
521 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
522 AC_CONFIG_COMMANDS_PRE(dnl
523 [m4_provide_if([_AM_COMPILER_EXEEXT],
524 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
525
526 # POSIX will say in a future version that running "rm -f" with no argument
527 # is OK; and we want to be able to make that assumption in our Makefile
528 # recipes. So use an aggressive probe to check that the usage we want is
529 # actually supported "in the wild" to an acceptable degree.
530 # See automake bug#10828.
531 # To make any issue more visible, cause the running configure to be aborted
532 # by default if the 'rm' program in use doesn't match our expectations; the
533 # user can still override this though.
534 if rm -f && rm -fr && rm -rf; then : OK; else
535 cat >&2 <<'END'
536 Oops!
537
538 Your 'rm' program seems unable to run without file operands specified
539 on the command line, even when the '-f' option is present. This is contrary
540 to the behaviour of most rm programs out there, and not conforming with
541 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
542
543 Please tell bug-automake@gnu.org about your system, including the value
544 of your $PATH and any error possibly output before this message. This
545 can help us improve future automake versions.
546
547 END
548 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
549 echo 'Configuration will proceed anyway, since you have set the' >&2
550 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
551 echo >&2
552 else
553 cat >&2 <<'END'
554 Aborting the configuration process, to ensure you take notice of the issue.
555
556 You can download and install GNU coreutils to get an 'rm' implementation
557 that behaves properly: <https://www.gnu.org/software/coreutils/>.
558
559 If you want to complete the configuration process using your problematic
560 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
561 to "yes", and re-run configure.
562
563 END
564 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
565 fi
566 fi
567 dnl The trailing newline in this macro's definition is deliberate, for
568 dnl backward compatibility and to allow trailing 'dnl'-style comments
569 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
570 ])
571
572 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
573 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
574 dnl mangled by Autoconf and run in a shell conditional statement.
575 m4_define([_AC_COMPILER_EXEEXT],
576 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
577
578 # When config.status generates a header, we must update the stamp-h file.
579 # This file resides in the same directory as the config header
580 # that is generated. The stamp files are numbered to have different names.
581
582 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
583 # loop where config.status creates the headers, so we can generate
584 # our stamp files there.
585 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
586 [# Compute $1's index in $config_headers.
587 _am_arg=$1
588 _am_stamp_count=1
589 for _am_header in $config_headers :; do
590 case $_am_header in
591 $_am_arg | $_am_arg:* )
592 break ;;
593 * )
594 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
595 esac
596 done
597 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
598
599 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
600 #
601 # This file is free software; the Free Software Foundation
602 # gives unlimited permission to copy and/or distribute it,
603 # with or without modifications, as long as this notice is preserved.
604
605 # AM_PROG_INSTALL_SH
606 # ------------------
607 # Define $install_sh.
608 AC_DEFUN([AM_PROG_INSTALL_SH],
609 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
610 if test x"${install_sh+set}" != xset; then
611 case $am_aux_dir in
612 *\ * | *\ *)
613 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
614 *)
615 install_sh="\${SHELL} $am_aux_dir/install-sh"
616 esac
617 fi
618 AC_SUBST([install_sh])])
619
620 # Copyright (C) 2003-2020 Free Software Foundation, Inc.
621 #
622 # This file is free software; the Free Software Foundation
623 # gives unlimited permission to copy and/or distribute it,
624 # with or without modifications, as long as this notice is preserved.
625
626 # Check whether the underlying file-system supports filenames
627 # with a leading dot. For instance MS-DOS doesn't.
628 AC_DEFUN([AM_SET_LEADING_DOT],
629 [rm -rf .tst 2>/dev/null
630 mkdir .tst 2>/dev/null
631 if test -d .tst; then
632 am__leading_dot=.
633 else
634 am__leading_dot=_
635 fi
636 rmdir .tst 2>/dev/null
637 AC_SUBST([am__leading_dot])])
638
639 # Check to see how 'make' treats includes. -*- Autoconf -*-
640
641 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
642 #
643 # This file is free software; the Free Software Foundation
644 # gives unlimited permission to copy and/or distribute it,
645 # with or without modifications, as long as this notice is preserved.
646
647 # AM_MAKE_INCLUDE()
648 # -----------------
649 # Check whether make has an 'include' directive that can support all
650 # the idioms we need for our automatic dependency tracking code.
651 AC_DEFUN([AM_MAKE_INCLUDE],
652 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
653 cat > confinc.mk << 'END'
654 am__doit:
655 @echo this is the am__doit target >confinc.out
656 .PHONY: am__doit
657 END
658 am__include="#"
659 am__quote=
660 # BSD make does it like this.
661 echo '.include "confinc.mk" # ignored' > confmf.BSD
662 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
663 echo 'include confinc.mk # ignored' > confmf.GNU
664 _am_result=no
665 for s in GNU BSD; do
666 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
667 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
668 ['0:this is the am__doit target'],
669 [AS_CASE([$s],
670 [BSD], [am__include='.include' am__quote='"'],
671 [am__include='include' am__quote=''])])
672 if test "$am__include" != "#"; then
673 _am_result="yes ($s style)"
674 break
675 fi
676 done
677 rm -f confinc.* confmf.*
678 AC_MSG_RESULT([${_am_result}])
679 AC_SUBST([am__include])])
680 AC_SUBST([am__quote])])
681
682 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
683
684 # Copyright (C) 1997-2020 Free Software Foundation, Inc.
685 #
686 # This file is free software; the Free Software Foundation
687 # gives unlimited permission to copy and/or distribute it,
688 # with or without modifications, as long as this notice is preserved.
689
690 # AM_MISSING_PROG(NAME, PROGRAM)
691 # ------------------------------
692 AC_DEFUN([AM_MISSING_PROG],
693 [AC_REQUIRE([AM_MISSING_HAS_RUN])
694 $1=${$1-"${am_missing_run}$2"}
695 AC_SUBST($1)])
696
697 # AM_MISSING_HAS_RUN
698 # ------------------
699 # Define MISSING if not defined so far and test if it is modern enough.
700 # If it is, set am_missing_run to use it, otherwise, to nothing.
701 AC_DEFUN([AM_MISSING_HAS_RUN],
702 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
703 AC_REQUIRE_AUX_FILE([missing])dnl
704 if test x"${MISSING+set}" != xset; then
705 MISSING="\${SHELL} '$am_aux_dir/missing'"
706 fi
707 # Use eval to expand $SHELL
708 if eval "$MISSING --is-lightweight"; then
709 am_missing_run="$MISSING "
710 else
711 am_missing_run=
712 AC_MSG_WARN(['missing' script is too old or missing])
713 fi
714 ])
715
716 # Helper functions for option handling. -*- Autoconf -*-
717
718 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
719 #
720 # This file is free software; the Free Software Foundation
721 # gives unlimited permission to copy and/or distribute it,
722 # with or without modifications, as long as this notice is preserved.
723
724 # _AM_MANGLE_OPTION(NAME)
725 # -----------------------
726 AC_DEFUN([_AM_MANGLE_OPTION],
727 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
728
729 # _AM_SET_OPTION(NAME)
730 # --------------------
731 # Set option NAME. Presently that only means defining a flag for this option.
732 AC_DEFUN([_AM_SET_OPTION],
733 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
734
735 # _AM_SET_OPTIONS(OPTIONS)
736 # ------------------------
737 # OPTIONS is a space-separated list of Automake options.
738 AC_DEFUN([_AM_SET_OPTIONS],
739 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
740
741 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
742 # -------------------------------------------
743 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
744 AC_DEFUN([_AM_IF_OPTION],
745 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
746
747 # Copyright (C) 1999-2020 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 # _AM_PROG_CC_C_O
754 # ---------------
755 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
756 # to automatically call this.
757 AC_DEFUN([_AM_PROG_CC_C_O],
758 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
759 AC_REQUIRE_AUX_FILE([compile])dnl
760 AC_LANG_PUSH([C])dnl
761 AC_CACHE_CHECK(
762 [whether $CC understands -c and -o together],
763 [am_cv_prog_cc_c_o],
764 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
765 # Make sure it works both with $CC and with simple cc.
766 # Following AC_PROG_CC_C_O, we do the test twice because some
767 # compilers refuse to overwrite an existing .o file with -o,
768 # though they will create one.
769 am_cv_prog_cc_c_o=yes
770 for am_i in 1 2; do
771 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
772 && test -f conftest2.$ac_objext; then
773 : OK
774 else
775 am_cv_prog_cc_c_o=no
776 break
777 fi
778 done
779 rm -f core conftest*
780 unset am_i])
781 if test "$am_cv_prog_cc_c_o" != yes; then
782 # Losing compiler, so override with the script.
783 # FIXME: It is wrong to rewrite CC.
784 # But if we don't then we get into trouble of one sort or another.
785 # A longer-term fix would be to have automake use am__CC in this case,
786 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
787 CC="$am_aux_dir/compile $CC"
788 fi
789 AC_LANG_POP([C])])
790
791 # For backward compatibility.
792 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
793
794 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
795 #
796 # This file is free software; the Free Software Foundation
797 # gives unlimited permission to copy and/or distribute it,
798 # with or without modifications, as long as this notice is preserved.
799
800 # AM_RUN_LOG(COMMAND)
801 # -------------------
802 # Run COMMAND, save the exit status in ac_status, and log it.
803 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
804 AC_DEFUN([AM_RUN_LOG],
805 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
806 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
807 ac_status=$?
808 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
809 (exit $ac_status); }])
810
811 # Check to make sure that the build environment is sane. -*- Autoconf -*-
812
813 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
814 #
815 # This file is free software; the Free Software Foundation
816 # gives unlimited permission to copy and/or distribute it,
817 # with or without modifications, as long as this notice is preserved.
818
819 # AM_SANITY_CHECK
820 # ---------------
821 AC_DEFUN([AM_SANITY_CHECK],
822 [AC_MSG_CHECKING([whether build environment is sane])
823 # Reject unsafe characters in $srcdir or the absolute working directory
824 # name. Accept space and tab only in the latter.
825 am_lf='
826 '
827 case `pwd` in
828 *[[\\\"\#\$\&\'\`$am_lf]]*)
829 AC_MSG_ERROR([unsafe absolute working directory name]);;
830 esac
831 case $srcdir in
832 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
833 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
834 esac
835
836 # Do 'set' in a subshell so we don't clobber the current shell's
837 # arguments. Must try -L first in case configure is actually a
838 # symlink; some systems play weird games with the mod time of symlinks
839 # (eg FreeBSD returns the mod time of the symlink's containing
840 # directory).
841 if (
842 am_has_slept=no
843 for am_try in 1 2; do
844 echo "timestamp, slept: $am_has_slept" > conftest.file
845 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
846 if test "$[*]" = "X"; then
847 # -L didn't work.
848 set X `ls -t "$srcdir/configure" conftest.file`
849 fi
850 if test "$[*]" != "X $srcdir/configure conftest.file" \
851 && test "$[*]" != "X conftest.file $srcdir/configure"; then
852
853 # If neither matched, then we have a broken ls. This can happen
854 # if, for instance, CONFIG_SHELL is bash and it inherits a
855 # broken ls alias from the environment. This has actually
856 # happened. Such a system could not be considered "sane".
857 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
858 alias in your environment])
859 fi
860 if test "$[2]" = conftest.file || test $am_try -eq 2; then
861 break
862 fi
863 # Just in case.
864 sleep 1
865 am_has_slept=yes
866 done
867 test "$[2]" = conftest.file
868 )
869 then
870 # Ok.
871 :
872 else
873 AC_MSG_ERROR([newly created file is older than distributed files!
874 Check your system clock])
875 fi
876 AC_MSG_RESULT([yes])
877 # If we didn't sleep, we still need to ensure time stamps of config.status and
878 # generated files are strictly newer.
879 am_sleep_pid=
880 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
881 ( sleep 1 ) &
882 am_sleep_pid=$!
883 fi
884 AC_CONFIG_COMMANDS_PRE(
885 [AC_MSG_CHECKING([that generated files are newer than configure])
886 if test -n "$am_sleep_pid"; then
887 # Hide warnings about reused PIDs.
888 wait $am_sleep_pid 2>/dev/null
889 fi
890 AC_MSG_RESULT([done])])
891 rm -f conftest.file
892 ])
893
894 # Copyright (C) 2009-2020 Free Software Foundation, Inc.
895 #
896 # This file is free software; the Free Software Foundation
897 # gives unlimited permission to copy and/or distribute it,
898 # with or without modifications, as long as this notice is preserved.
899
900 # AM_SILENT_RULES([DEFAULT])
901 # --------------------------
902 # Enable less verbose build rules; with the default set to DEFAULT
903 # ("yes" being less verbose, "no" or empty being verbose).
904 AC_DEFUN([AM_SILENT_RULES],
905 [AC_ARG_ENABLE([silent-rules], [dnl
906 AS_HELP_STRING(
907 [--enable-silent-rules],
908 [less verbose build output (undo: "make V=1")])
909 AS_HELP_STRING(
910 [--disable-silent-rules],
911 [verbose build output (undo: "make V=0")])dnl
912 ])
913 case $enable_silent_rules in @%:@ (((
914 yes) AM_DEFAULT_VERBOSITY=0;;
915 no) AM_DEFAULT_VERBOSITY=1;;
916 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
917 esac
918 dnl
919 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
920 dnl do not support nested variable expansions.
921 dnl See automake bug#9928 and bug#10237.
922 am_make=${MAKE-make}
923 AC_CACHE_CHECK([whether $am_make supports nested variables],
924 [am_cv_make_support_nested_variables],
925 [if AS_ECHO([['TRUE=$(BAR$(V))
926 BAR0=false
927 BAR1=true
928 V=1
929 am__doit:
930 @$(TRUE)
931 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
932 am_cv_make_support_nested_variables=yes
933 else
934 am_cv_make_support_nested_variables=no
935 fi])
936 if test $am_cv_make_support_nested_variables = yes; then
937 dnl Using '$V' instead of '$(V)' breaks IRIX make.
938 AM_V='$(V)'
939 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
940 else
941 AM_V=$AM_DEFAULT_VERBOSITY
942 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
943 fi
944 AC_SUBST([AM_V])dnl
945 AM_SUBST_NOTMAKE([AM_V])dnl
946 AC_SUBST([AM_DEFAULT_V])dnl
947 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
948 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
949 AM_BACKSLASH='\'
950 AC_SUBST([AM_BACKSLASH])dnl
951 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
952 ])
953
954 # Copyright (C) 2001-2020 Free Software Foundation, Inc.
955 #
956 # This file is free software; the Free Software Foundation
957 # gives unlimited permission to copy and/or distribute it,
958 # with or without modifications, as long as this notice is preserved.
959
960 # AM_PROG_INSTALL_STRIP
961 # ---------------------
962 # One issue with vendor 'install' (even GNU) is that you can't
963 # specify the program used to strip binaries. This is especially
964 # annoying in cross-compiling environments, where the build's strip
965 # is unlikely to handle the host's binaries.
966 # Fortunately install-sh will honor a STRIPPROG variable, so we
967 # always use install-sh in "make install-strip", and initialize
968 # STRIPPROG with the value of the STRIP variable (set by the user).
969 AC_DEFUN([AM_PROG_INSTALL_STRIP],
970 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
971 # Installed binaries are usually stripped using 'strip' when the user
972 # run "make install-strip". However 'strip' might not be the right
973 # tool to use in cross-compilation environments, therefore Automake
974 # will honor the 'STRIP' environment variable to overrule this program.
975 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
976 if test "$cross_compiling" != no; then
977 AC_CHECK_TOOL([STRIP], [strip], :)
978 fi
979 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
980 AC_SUBST([INSTALL_STRIP_PROGRAM])])
981
982 # Copyright (C) 2006-2020 Free Software Foundation, Inc.
983 #
984 # This file is free software; the Free Software Foundation
985 # gives unlimited permission to copy and/or distribute it,
986 # with or without modifications, as long as this notice is preserved.
987
988 # _AM_SUBST_NOTMAKE(VARIABLE)
989 # ---------------------------
990 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
991 # This macro is traced by Automake.
992 AC_DEFUN([_AM_SUBST_NOTMAKE])
993
994 # AM_SUBST_NOTMAKE(VARIABLE)
995 # --------------------------
996 # Public sister of _AM_SUBST_NOTMAKE.
997 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
998
999 # Check how to create a tarball. -*- Autoconf -*-
1000
1001 # Copyright (C) 2004-2020 Free Software Foundation, Inc.
1002 #
1003 # This file is free software; the Free Software Foundation
1004 # gives unlimited permission to copy and/or distribute it,
1005 # with or without modifications, as long as this notice is preserved.
1006
1007 # _AM_PROG_TAR(FORMAT)
1008 # --------------------
1009 # Check how to create a tarball in format FORMAT.
1010 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1011 #
1012 # Substitute a variable $(am__tar) that is a command
1013 # writing to stdout a FORMAT-tarball containing the directory
1014 # $tardir.
1015 # tardir=directory && $(am__tar) > result.tar
1016 #
1017 # Substitute a variable $(am__untar) that extract such
1018 # a tarball read from stdin.
1019 # $(am__untar) < result.tar
1020 #
1021 AC_DEFUN([_AM_PROG_TAR],
1022 [# Always define AMTAR for backward compatibility. Yes, it's still used
1023 # in the wild :-( We should find a proper way to deprecate it ...
1024 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1025
1026 # We'll loop over all known methods to create a tar archive until one works.
1027 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1028
1029 m4_if([$1], [v7],
1030 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1031
1032 [m4_case([$1],
1033 [ustar],
1034 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1035 # There is notably a 21 bits limit for the UID and the GID. In fact,
1036 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1037 # and bug#13588).
1038 am_max_uid=2097151 # 2^21 - 1
1039 am_max_gid=$am_max_uid
1040 # The $UID and $GID variables are not portable, so we need to resort
1041 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1042 # below are definitely unexpected, so allow the users to see them
1043 # (that is, avoid stderr redirection).
1044 am_uid=`id -u || echo unknown`
1045 am_gid=`id -g || echo unknown`
1046 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1047 if test $am_uid -le $am_max_uid; then
1048 AC_MSG_RESULT([yes])
1049 else
1050 AC_MSG_RESULT([no])
1051 _am_tools=none
1052 fi
1053 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1054 if test $am_gid -le $am_max_gid; then
1055 AC_MSG_RESULT([yes])
1056 else
1057 AC_MSG_RESULT([no])
1058 _am_tools=none
1059 fi],
1060
1061 [pax],
1062 [],
1063
1064 [m4_fatal([Unknown tar format])])
1065
1066 AC_MSG_CHECKING([how to create a $1 tar archive])
1067
1068 # Go ahead even if we have the value already cached. We do so because we
1069 # need to set the values for the 'am__tar' and 'am__untar' variables.
1070 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1071
1072 for _am_tool in $_am_tools; do
1073 case $_am_tool in
1074 gnutar)
1075 for _am_tar in tar gnutar gtar; do
1076 AM_RUN_LOG([$_am_tar --version]) && break
1077 done
1078 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1079 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1080 am__untar="$_am_tar -xf -"
1081 ;;
1082 plaintar)
1083 # Must skip GNU tar: if it does not support --format= it doesn't create
1084 # ustar tarball either.
1085 (tar --version) >/dev/null 2>&1 && continue
1086 am__tar='tar chf - "$$tardir"'
1087 am__tar_='tar chf - "$tardir"'
1088 am__untar='tar xf -'
1089 ;;
1090 pax)
1091 am__tar='pax -L -x $1 -w "$$tardir"'
1092 am__tar_='pax -L -x $1 -w "$tardir"'
1093 am__untar='pax -r'
1094 ;;
1095 cpio)
1096 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1097 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1098 am__untar='cpio -i -H $1 -d'
1099 ;;
1100 none)
1101 am__tar=false
1102 am__tar_=false
1103 am__untar=false
1104 ;;
1105 esac
1106
1107 # If the value was cached, stop now. We just wanted to have am__tar
1108 # and am__untar set.
1109 test -n "${am_cv_prog_tar_$1}" && break
1110
1111 # tar/untar a dummy directory, and stop if the command works.
1112 rm -rf conftest.dir
1113 mkdir conftest.dir
1114 echo GrepMe > conftest.dir/file
1115 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1116 rm -rf conftest.dir
1117 if test -s conftest.tar; then
1118 AM_RUN_LOG([$am__untar <conftest.tar])
1119 AM_RUN_LOG([cat conftest.dir/file])
1120 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1121 fi
1122 done
1123 rm -rf conftest.dir
1124
1125 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1126 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1127
1128 AC_SUBST([am__tar])
1129 AC_SUBST([am__untar])
1130 ]) # _AM_PROG_TAR
1131
+0
-3
autogen.sh less more
0 #!/bin/sh
1 rm -rf autom4te.cache configure config.*
2 autoreconf --install || exit 1
0 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* Define to 1 if you have the <cups/cups.h> header file. */
3 #undef HAVE_CUPS_CUPS_H
4
5 /* Define to 1 if you have the <cups/raster.h> header file. */
6 #undef HAVE_CUPS_RASTER_H
7
8 /* Define to 1 if you have the <inttypes.h> header file. */
9 #undef HAVE_INTTYPES_H
10
11 /* Define to 1 if you have the `cups' library (-lcups). */
12 #undef HAVE_LIBCUPS
13
14 /* Define to 1 if you have the `cupsimage' library (-lcupsimage). */
15 #undef HAVE_LIBCUPSIMAGE
16
17 /* Define to 1 if you have the `m' library (-lm). */
18 #undef HAVE_LIBM
19
20 /* Define to 1 if you have the `png' library (-lpng). */
21 #undef HAVE_LIBPNG
22
23 /* Define to 1 if you have the <memory.h> header file. */
24 #undef HAVE_MEMORY_H
25
26 /* Define to 1 if you have the <stdint.h> header file. */
27 #undef HAVE_STDINT_H
28
29 /* Define to 1 if you have the <stdlib.h> header file. */
30 #undef HAVE_STDLIB_H
31
32 /* Define to 1 if you have the `strcasecmp' function. */
33 #undef HAVE_STRCASECMP
34
35 /* Define to 1 if you have the <strings.h> header file. */
36 #undef HAVE_STRINGS_H
37
38 /* Define to 1 if you have the <string.h> header file. */
39 #undef HAVE_STRING_H
40
41 /* Define to 1 if you have the `strtol' function. */
42 #undef HAVE_STRTOL
43
44 /* Define to 1 if you have the <sys/stat.h> header file. */
45 #undef HAVE_SYS_STAT_H
46
47 /* Define to 1 if you have the <sys/types.h> header file. */
48 #undef HAVE_SYS_TYPES_H
49
50 /* Define to 1 if you have the <unistd.h> header file. */
51 #undef HAVE_UNISTD_H
52
53 /* Name of package */
54 #undef PACKAGE
55
56 /* Define to the address where bug reports for this package should be sent. */
57 #undef PACKAGE_BUGREPORT
58
59 /* Define to the full name of this package. */
60 #undef PACKAGE_NAME
61
62 /* Define to the full name and version of this package. */
63 #undef PACKAGE_STRING
64
65 /* Define to the one symbol short name of this package. */
66 #undef PACKAGE_TARNAME
67
68 /* Define to the home page for this package. */
69 #undef PACKAGE_URL
70
71 /* Define to the version of this package. */
72 #undef PACKAGE_VERSION
73
74 /* Define to 1 if you have the ANSI C header files. */
75 #undef STDC_HEADERS
76
77 /* Version number of package */
78 #undef VERSION
79
80 /* Define to empty if `const' does not conform to ANSI C. */
81 #undef const
82
83 /* Define to `__inline__' or `__inline' if that's what the C compiler
84 calls it, or to nothing if 'inline' is not supported under any name. */
85 #ifndef __cplusplus
86 #undef inline
87 #endif
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for ptouch-driver 1.5.
3 #
4 # Report bugs to <andreas.gruenbacher@gmail.com>.
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
269 $0: andreas.gruenbacher@gmail.com about your system,
270 $0: including any error possibly output before this
271 $0: message. Then install a modern shell, or manually run
272 $0: the script under such a shell if you do 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 $? 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 "$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 $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) 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 $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 LIBOBJS=
574 cross_compiling=no
575 subdirs=
576 MFLAGS=
577 MAKEFLAGS=
578
579 # Identity of this package.
580 PACKAGE_NAME='ptouch-driver'
581 PACKAGE_TARNAME='ptouch-driver'
582 PACKAGE_VERSION='1.5'
583 PACKAGE_STRING='ptouch-driver 1.5'
584 PACKAGE_BUGREPORT='andreas.gruenbacher@gmail.com'
585 PACKAGE_URL=''
586
587 ac_unique_file="rastertoptch.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 LIBOBJS
628 EGREP
629 GREP
630 CPP
631 LIBPNG
632 LIBCUPSIMAGE
633 LIBCUPS
634 LIBM
635 am__fastdepCC_FALSE
636 am__fastdepCC_TRUE
637 CCDEPMODE
638 am__nodep
639 AMDEPBACKSLASH
640 AMDEP_FALSE
641 AMDEP_TRUE
642 am__include
643 DEPDIR
644 OBJEXT
645 EXEEXT
646 ac_ct_CC
647 CPPFLAGS
648 LDFLAGS
649 CFLAGS
650 CC
651 AM_BACKSLASH
652 AM_DEFAULT_VERBOSITY
653 AM_DEFAULT_V
654 AM_V
655 am__untar
656 am__tar
657 AMTAR
658 am__leading_dot
659 SET_MAKE
660 AWK
661 mkdir_p
662 MKDIR_P
663 INSTALL_STRIP_PROGRAM
664 STRIP
665 install_sh
666 MAKEINFO
667 AUTOHEADER
668 AUTOMAKE
669 AUTOCONF
670 ACLOCAL
671 VERSION
672 PACKAGE
673 CYGPATH_W
674 am__isrc
675 INSTALL_DATA
676 INSTALL_SCRIPT
677 INSTALL_PROGRAM
678 target_alias
679 host_alias
680 build_alias
681 LIBS
682 ECHO_T
683 ECHO_N
684 ECHO_C
685 DEFS
686 mandir
687 localedir
688 libdir
689 psdir
690 pdfdir
691 dvidir
692 htmldir
693 infodir
694 docdir
695 oldincludedir
696 includedir
697 runstatedir
698 localstatedir
699 sharedstatedir
700 sysconfdir
701 datadir
702 datarootdir
703 libexecdir
704 sbindir
705 bindir
706 program_transform_name
707 prefix
708 exec_prefix
709 PACKAGE_URL
710 PACKAGE_BUGREPORT
711 PACKAGE_STRING
712 PACKAGE_VERSION
713 PACKAGE_TARNAME
714 PACKAGE_NAME
715 PATH_SEPARATOR
716 SHELL
717 am__quote'
718 ac_subst_files=''
719 ac_user_opts='
720 enable_option_checking
721 enable_silent_rules
722 enable_dependency_tracking
723 '
724 ac_precious_vars='build_alias
725 host_alias
726 target_alias
727 CC
728 CFLAGS
729 LDFLAGS
730 LIBS
731 CPPFLAGS
732 CPP'
733
734
735 # Initialize some variables set by options.
736 ac_init_help=
737 ac_init_version=false
738 ac_unrecognized_opts=
739 ac_unrecognized_sep=
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
742 cache_file=/dev/null
743 exec_prefix=NONE
744 no_create=
745 no_recursion=
746 prefix=NONE
747 program_prefix=NONE
748 program_suffix=NONE
749 program_transform_name=s,x,x,
750 silent=
751 site=
752 srcdir=
753 verbose=
754 x_includes=NONE
755 x_libraries=NONE
756
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir='${exec_prefix}/bin'
764 sbindir='${exec_prefix}/sbin'
765 libexecdir='${exec_prefix}/libexec'
766 datarootdir='${prefix}/share'
767 datadir='${datarootdir}'
768 sysconfdir='${prefix}/etc'
769 sharedstatedir='${prefix}/com'
770 localstatedir='${prefix}/var'
771 runstatedir='${localstatedir}/run'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
783
784 ac_prev=
785 ac_dashdash=
786 for ac_option
787 do
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
793 fi
794
795 case $ac_option in
796 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *=) ac_optarg= ;;
798 *) ac_optarg=yes ;;
799 esac
800
801 # Accept the important Cygnus configure options, so we can diagnose typos.
802
803 case $ac_dashdash$ac_option in
804 --)
805 ac_dashdash=yes ;;
806
807 -bindir | --bindir | --bindi | --bind | --bin | --bi)
808 ac_prev=bindir ;;
809 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810 bindir=$ac_optarg ;;
811
812 -build | --build | --buil | --bui | --bu)
813 ac_prev=build_alias ;;
814 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
815 build_alias=$ac_optarg ;;
816
817 -cache-file | --cache-file | --cache-fil | --cache-fi \
818 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
819 ac_prev=cache_file ;;
820 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
821 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
822 cache_file=$ac_optarg ;;
823
824 --config-cache | -C)
825 cache_file=config.cache ;;
826
827 -datadir | --datadir | --datadi | --datad)
828 ac_prev=datadir ;;
829 -datadir=* | --datadir=* | --datadi=* | --datad=*)
830 datadir=$ac_optarg ;;
831
832 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
833 | --dataroo | --dataro | --datar)
834 ac_prev=datarootdir ;;
835 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
836 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
837 datarootdir=$ac_optarg ;;
838
839 -disable-* | --disable-*)
840 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
843 as_fn_error $? "invalid feature name: $ac_useropt"
844 ac_useropt_orig=$ac_useropt
845 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
846 case $ac_user_opts in
847 *"
848 "enable_$ac_useropt"
849 "*) ;;
850 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
851 ac_unrecognized_sep=', ';;
852 esac
853 eval enable_$ac_useropt=no ;;
854
855 -docdir | --docdir | --docdi | --doc | --do)
856 ac_prev=docdir ;;
857 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
858 docdir=$ac_optarg ;;
859
860 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
861 ac_prev=dvidir ;;
862 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
863 dvidir=$ac_optarg ;;
864
865 -enable-* | --enable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error $? "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=\$ac_optarg ;;
880
881 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
882 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
883 | --exec | --exe | --ex)
884 ac_prev=exec_prefix ;;
885 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
886 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
887 | --exec=* | --exe=* | --ex=*)
888 exec_prefix=$ac_optarg ;;
889
890 -gas | --gas | --ga | --g)
891 # Obsolete; use --with-gas.
892 with_gas=yes ;;
893
894 -help | --help | --hel | --he | -h)
895 ac_init_help=long ;;
896 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
897 ac_init_help=recursive ;;
898 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
899 ac_init_help=short ;;
900
901 -host | --host | --hos | --ho)
902 ac_prev=host_alias ;;
903 -host=* | --host=* | --hos=* | --ho=*)
904 host_alias=$ac_optarg ;;
905
906 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
907 ac_prev=htmldir ;;
908 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
909 | --ht=*)
910 htmldir=$ac_optarg ;;
911
912 -includedir | --includedir | --includedi | --included | --include \
913 | --includ | --inclu | --incl | --inc)
914 ac_prev=includedir ;;
915 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
916 | --includ=* | --inclu=* | --incl=* | --inc=*)
917 includedir=$ac_optarg ;;
918
919 -infodir | --infodir | --infodi | --infod | --info | --inf)
920 ac_prev=infodir ;;
921 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
922 infodir=$ac_optarg ;;
923
924 -libdir | --libdir | --libdi | --libd)
925 ac_prev=libdir ;;
926 -libdir=* | --libdir=* | --libdi=* | --libd=*)
927 libdir=$ac_optarg ;;
928
929 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
930 | --libexe | --libex | --libe)
931 ac_prev=libexecdir ;;
932 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
933 | --libexe=* | --libex=* | --libe=*)
934 libexecdir=$ac_optarg ;;
935
936 -localedir | --localedir | --localedi | --localed | --locale)
937 ac_prev=localedir ;;
938 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
939 localedir=$ac_optarg ;;
940
941 -localstatedir | --localstatedir | --localstatedi | --localstated \
942 | --localstate | --localstat | --localsta | --localst | --locals)
943 ac_prev=localstatedir ;;
944 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
945 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
946 localstatedir=$ac_optarg ;;
947
948 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
949 ac_prev=mandir ;;
950 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
951 mandir=$ac_optarg ;;
952
953 -nfp | --nfp | --nf)
954 # Obsolete; use --without-fp.
955 with_fp=no ;;
956
957 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958 | --no-cr | --no-c | -n)
959 no_create=yes ;;
960
961 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963 no_recursion=yes ;;
964
965 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
966 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
967 | --oldin | --oldi | --old | --ol | --o)
968 ac_prev=oldincludedir ;;
969 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
970 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
971 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
972 oldincludedir=$ac_optarg ;;
973
974 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
975 ac_prev=prefix ;;
976 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977 prefix=$ac_optarg ;;
978
979 -program-prefix | --program-prefix | --program-prefi | --program-pref \
980 | --program-pre | --program-pr | --program-p)
981 ac_prev=program_prefix ;;
982 -program-prefix=* | --program-prefix=* | --program-prefi=* \
983 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
984 program_prefix=$ac_optarg ;;
985
986 -program-suffix | --program-suffix | --program-suffi | --program-suff \
987 | --program-suf | --program-su | --program-s)
988 ac_prev=program_suffix ;;
989 -program-suffix=* | --program-suffix=* | --program-suffi=* \
990 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
991 program_suffix=$ac_optarg ;;
992
993 -program-transform-name | --program-transform-name \
994 | --program-transform-nam | --program-transform-na \
995 | --program-transform-n | --program-transform- \
996 | --program-transform | --program-transfor \
997 | --program-transfo | --program-transf \
998 | --program-trans | --program-tran \
999 | --progr-tra | --program-tr | --program-t)
1000 ac_prev=program_transform_name ;;
1001 -program-transform-name=* | --program-transform-name=* \
1002 | --program-transform-nam=* | --program-transform-na=* \
1003 | --program-transform-n=* | --program-transform-=* \
1004 | --program-transform=* | --program-transfor=* \
1005 | --program-transfo=* | --program-transf=* \
1006 | --program-trans=* | --program-tran=* \
1007 | --progr-tra=* | --program-tr=* | --program-t=*)
1008 program_transform_name=$ac_optarg ;;
1009
1010 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1011 ac_prev=pdfdir ;;
1012 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1013 pdfdir=$ac_optarg ;;
1014
1015 -psdir | --psdir | --psdi | --psd | --ps)
1016 ac_prev=psdir ;;
1017 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018 psdir=$ac_optarg ;;
1019
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 silent=yes ;;
1023
1024 -runstatedir | --runstatedir | --runstatedi | --runstated \
1025 | --runstate | --runstat | --runsta | --runst | --runs \
1026 | --run | --ru | --r)
1027 ac_prev=runstatedir ;;
1028 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1029 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1030 | --run=* | --ru=* | --r=*)
1031 runstatedir=$ac_optarg ;;
1032
1033 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1034 ac_prev=sbindir ;;
1035 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1036 | --sbi=* | --sb=*)
1037 sbindir=$ac_optarg ;;
1038
1039 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1040 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1041 | --sharedst | --shareds | --shared | --share | --shar \
1042 | --sha | --sh)
1043 ac_prev=sharedstatedir ;;
1044 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1045 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1046 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1047 | --sha=* | --sh=*)
1048 sharedstatedir=$ac_optarg ;;
1049
1050 -site | --site | --sit)
1051 ac_prev=site ;;
1052 -site=* | --site=* | --sit=*)
1053 site=$ac_optarg ;;
1054
1055 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1056 ac_prev=srcdir ;;
1057 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1058 srcdir=$ac_optarg ;;
1059
1060 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1061 | --syscon | --sysco | --sysc | --sys | --sy)
1062 ac_prev=sysconfdir ;;
1063 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1064 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1065 sysconfdir=$ac_optarg ;;
1066
1067 -target | --target | --targe | --targ | --tar | --ta | --t)
1068 ac_prev=target_alias ;;
1069 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1070 target_alias=$ac_optarg ;;
1071
1072 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1073 verbose=yes ;;
1074
1075 -version | --version | --versio | --versi | --vers | -V)
1076 ac_init_version=: ;;
1077
1078 -with-* | --with-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid package name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1086 *"
1087 "with_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval with_$ac_useropt=\$ac_optarg ;;
1093
1094 -without-* | --without-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1102 *"
1103 "with_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval with_$ac_useropt=no ;;
1109
1110 --x)
1111 # Obsolete; use --with-x.
1112 with_x=yes ;;
1113
1114 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115 | --x-incl | --x-inc | --x-in | --x-i)
1116 ac_prev=x_includes ;;
1117 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119 x_includes=$ac_optarg ;;
1120
1121 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123 ac_prev=x_libraries ;;
1124 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126 x_libraries=$ac_optarg ;;
1127
1128 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1129 Try \`$0 --help' for more information"
1130 ;;
1131
1132 *=*)
1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134 # Reject names that are not valid shell variable names.
1135 case $ac_envvar in #(
1136 '' | [0-9]* | *[!_$as_cr_alnum]* )
1137 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1138 esac
1139 eval $ac_envvar=\$ac_optarg
1140 export $ac_envvar ;;
1141
1142 *)
1143 # FIXME: should be removed in autoconf 3.0.
1144 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1148 ;;
1149
1150 esac
1151 done
1152
1153 if test -n "$ac_prev"; then
1154 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155 as_fn_error $? "missing argument to $ac_option"
1156 fi
1157
1158 if test -n "$ac_unrecognized_opts"; then
1159 case $enable_option_checking in
1160 no) ;;
1161 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1162 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163 esac
1164 fi
1165
1166 # Check all directory arguments for consistency.
1167 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 libdir localedir mandir runstatedir
1171 do
1172 eval ac_val=\$$ac_var
1173 # Remove trailing slashes.
1174 case $ac_val in
1175 */ )
1176 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177 eval $ac_var=\$ac_val;;
1178 esac
1179 # Be sure to have absolute directory names.
1180 case $ac_val in
1181 [\\/$]* | ?:[\\/]* ) continue;;
1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183 esac
1184 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1185 done
1186
1187 # There might be people who depend on the old broken behavior: `$host'
1188 # used to hold the argument of --host etc.
1189 # FIXME: To remove some day.
1190 build=$build_alias
1191 host=$host_alias
1192 target=$target_alias
1193
1194 # FIXME: To remove some day.
1195 if test "x$host_alias" != x; then
1196 if test "x$build_alias" = x; then
1197 cross_compiling=maybe
1198 elif test "x$build_alias" != "x$host_alias"; then
1199 cross_compiling=yes
1200 fi
1201 fi
1202
1203 ac_tool_prefix=
1204 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1205
1206 test "$silent" = yes && exec 6>/dev/null
1207
1208
1209 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1210 ac_ls_di=`ls -di .` &&
1211 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1212 as_fn_error $? "working directory cannot be determined"
1213 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1214 as_fn_error $? "pwd does not report name of working directory"
1215
1216
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219 ac_srcdir_defaulted=yes
1220 # Try the directory containing this script, then the parent directory.
1221 ac_confdir=`$as_dirname -- "$as_myself" ||
1222 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223 X"$as_myself" : 'X\(//\)[^/]' \| \
1224 X"$as_myself" : 'X\(//\)$' \| \
1225 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1226 $as_echo X"$as_myself" |
1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\/\)[^/].*/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\/\)$/{
1236 s//\1/
1237 q
1238 }
1239 /^X\(\/\).*/{
1240 s//\1/
1241 q
1242 }
1243 s/.*/./; q'`
1244 srcdir=$ac_confdir
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246 srcdir=..
1247 fi
1248 else
1249 ac_srcdir_defaulted=no
1250 fi
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1254 fi
1255 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1256 ac_abs_confdir=`(
1257 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1258 pwd)`
1259 # When building in place, set srcdir=.
1260 if test "$ac_abs_confdir" = "$ac_pwd"; then
1261 srcdir=.
1262 fi
1263 # Remove unnecessary trailing slashes from srcdir.
1264 # Double slashes in file names in object file debugging info
1265 # mess up M-x gdb in Emacs.
1266 case $srcdir in
1267 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1268 esac
1269 for ac_var in $ac_precious_vars; do
1270 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_env_${ac_var}_value=\$${ac_var}
1272 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274 done
1275
1276 #
1277 # Report the --help message.
1278 #
1279 if test "$ac_init_help" = "long"; then
1280 # Omit some internal or obsolete options to make the list less imposing.
1281 # This message is too long to be a string in the A/UX 3.1 sh.
1282 cat <<_ACEOF
1283 \`configure' configures ptouch-driver 1.5 to adapt to many kinds of systems.
1284
1285 Usage: $0 [OPTION]... [VAR=VALUE]...
1286
1287 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288 VAR=VALUE. See below for descriptions of some of the useful variables.
1289
1290 Defaults for the options are specified in brackets.
1291
1292 Configuration:
1293 -h, --help display this help and exit
1294 --help=short display options specific to this package
1295 --help=recursive display the short help of all the included packages
1296 -V, --version display version information and exit
1297 -q, --quiet, --silent do not print \`checking ...' messages
1298 --cache-file=FILE cache test results in FILE [disabled]
1299 -C, --config-cache alias for \`--cache-file=config.cache'
1300 -n, --no-create do not create output files
1301 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1302
1303 Installation directories:
1304 --prefix=PREFIX install architecture-independent files in PREFIX
1305 [$ac_default_prefix]
1306 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1307 [PREFIX]
1308
1309 By default, \`make install' will install all the files in
1310 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1311 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312 for instance \`--prefix=\$HOME'.
1313
1314 For better control, use the options below.
1315
1316 Fine tuning of the installation directories:
1317 --bindir=DIR user executables [EPREFIX/bin]
1318 --sbindir=DIR system admin executables [EPREFIX/sbin]
1319 --libexecdir=DIR program executables [EPREFIX/libexec]
1320 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1321 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1322 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1323 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1324 --libdir=DIR object code libraries [EPREFIX/lib]
1325 --includedir=DIR C header files [PREFIX/include]
1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1329 --infodir=DIR info documentation [DATAROOTDIR/info]
1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1331 --mandir=DIR man documentation [DATAROOTDIR/man]
1332 --docdir=DIR documentation root [DATAROOTDIR/doc/ptouch-driver]
1333 --htmldir=DIR html documentation [DOCDIR]
1334 --dvidir=DIR dvi documentation [DOCDIR]
1335 --pdfdir=DIR pdf documentation [DOCDIR]
1336 --psdir=DIR ps documentation [DOCDIR]
1337 _ACEOF
1338
1339 cat <<\_ACEOF
1340
1341 Program names:
1342 --program-prefix=PREFIX prepend PREFIX to installed program names
1343 --program-suffix=SUFFIX append SUFFIX to installed program names
1344 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1345 _ACEOF
1346 fi
1347
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of ptouch-driver 1.5:";;
1351 esac
1352 cat <<\_ACEOF
1353
1354 Optional Features:
1355 --disable-option-checking ignore unrecognized --enable/--with options
1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1358 --enable-silent-rules less verbose build output (undo: "make V=1")
1359 --disable-silent-rules verbose build output (undo: "make V=0")
1360 --enable-dependency-tracking
1361 do not reject slow dependency extractors
1362 --disable-dependency-tracking
1363 speeds up one-time build
1364
1365 Some influential environment variables:
1366 CC C compiler command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1369 nonstandard directory <lib dir>
1370 LIBS libraries to pass to the linker, e.g. -l<library>
1371 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1372 you have headers in a nonstandard directory <include dir>
1373 CPP C preprocessor
1374
1375 Use these variables to override the choices made by `configure' or to help
1376 it to find libraries and programs with nonstandard names/locations.
1377
1378 Report bugs to <andreas.gruenbacher@gmail.com>.
1379 _ACEOF
1380 ac_status=$?
1381 fi
1382
1383 if test "$ac_init_help" = "recursive"; then
1384 # If there are subdirs, report their specific --help.
1385 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1386 test -d "$ac_dir" ||
1387 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1388 continue
1389 ac_builddir=.
1390
1391 case "$ac_dir" in
1392 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *)
1394 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1395 # A ".." for each directory in $ac_dir_suffix.
1396 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1397 case $ac_top_builddir_sub in
1398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1400 esac ;;
1401 esac
1402 ac_abs_top_builddir=$ac_pwd
1403 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1404 # for backward compatibility:
1405 ac_top_builddir=$ac_top_build_prefix
1406
1407 case $srcdir in
1408 .) # We are building in place.
1409 ac_srcdir=.
1410 ac_top_srcdir=$ac_top_builddir_sub
1411 ac_abs_top_srcdir=$ac_pwd ;;
1412 [\\/]* | ?:[\\/]* ) # Absolute name.
1413 ac_srcdir=$srcdir$ac_dir_suffix;
1414 ac_top_srcdir=$srcdir
1415 ac_abs_top_srcdir=$srcdir ;;
1416 *) # Relative name.
1417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418 ac_top_srcdir=$ac_top_build_prefix$srcdir
1419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1420 esac
1421 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1422
1423 cd "$ac_dir" || { ac_status=$?; continue; }
1424 # Check for guested configure.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1431 else
1432 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433 fi || ac_status=$?
1434 cd "$ac_pwd" || { ac_status=$?; break; }
1435 done
1436 fi
1437
1438 test -n "$ac_init_help" && exit $ac_status
1439 if $ac_init_version; then
1440 cat <<\_ACEOF
1441 ptouch-driver configure 1.5
1442 generated by GNU Autoconf 2.69
1443
1444 Copyright (C) 2012 Free Software Foundation, Inc.
1445 This configure script is free software; the Free Software Foundation
1446 gives unlimited permission to copy, distribute and modify it.
1447 _ACEOF
1448 exit
1449 fi
1450
1451 ## ------------------------ ##
1452 ## Autoconf initialization. ##
1453 ## ------------------------ ##
1454
1455 # ac_fn_c_try_compile LINENO
1456 # --------------------------
1457 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1458 ac_fn_c_try_compile ()
1459 {
1460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1461 rm -f conftest.$ac_objext
1462 if { { ac_try="$ac_compile"
1463 case "(($ac_try" in
1464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1465 *) ac_try_echo=$ac_try;;
1466 esac
1467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1468 $as_echo "$ac_try_echo"; } >&5
1469 (eval "$ac_compile") 2>conftest.err
1470 ac_status=$?
1471 if test -s conftest.err; then
1472 grep -v '^ *+' conftest.err >conftest.er1
1473 cat conftest.er1 >&5
1474 mv -f conftest.er1 conftest.err
1475 fi
1476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1477 test $ac_status = 0; } && {
1478 test -z "$ac_c_werror_flag" ||
1479 test ! -s conftest.err
1480 } && test -s conftest.$ac_objext; then :
1481 ac_retval=0
1482 else
1483 $as_echo "$as_me: failed program was:" >&5
1484 sed 's/^/| /' conftest.$ac_ext >&5
1485
1486 ac_retval=1
1487 fi
1488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1489 as_fn_set_status $ac_retval
1490
1491 } # ac_fn_c_try_compile
1492
1493 # ac_fn_c_try_link LINENO
1494 # -----------------------
1495 # Try to link conftest.$ac_ext, and return whether this succeeded.
1496 ac_fn_c_try_link ()
1497 {
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext conftest$ac_exeext
1500 if { { ac_try="$ac_link"
1501 case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504 esac
1505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506 $as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_link") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest$ac_exeext && {
1519 test "$cross_compiling" = yes ||
1520 test -x conftest$ac_exeext
1521 }; then :
1522 ac_retval=0
1523 else
1524 $as_echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1526
1527 ac_retval=1
1528 fi
1529 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1530 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1531 # interfere with the next link command; also delete a directory that is
1532 # left behind by Apple's compiler. We do this before executing the actions.
1533 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1535 as_fn_set_status $ac_retval
1536
1537 } # ac_fn_c_try_link
1538
1539 # ac_fn_c_try_cpp LINENO
1540 # ----------------------
1541 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_cpp ()
1543 {
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 if { { ac_try="$ac_cpp conftest.$ac_ext"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 $as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } > conftest.i && {
1561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 }; then :
1564 ac_retval=0
1565 else
1566 $as_echo "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570 fi
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1573
1574 } # ac_fn_c_try_cpp
1575
1576 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1577 # -------------------------------------------------------
1578 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1579 # the include files in INCLUDES and setting the cache variable VAR
1580 # accordingly.
1581 ac_fn_c_check_header_mongrel ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if eval \${$3+:} false; then :
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586 $as_echo_n "checking for $2... " >&6; }
1587 if eval \${$3+:} false; then :
1588 $as_echo_n "(cached) " >&6
1589 fi
1590 eval ac_res=\$$3
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592 $as_echo "$ac_res" >&6; }
1593 else
1594 # Is the header compilable?
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1596 $as_echo_n "checking $2 usability... " >&6; }
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1599 $4
1600 #include <$2>
1601 _ACEOF
1602 if ac_fn_c_try_compile "$LINENO"; then :
1603 ac_header_compiler=yes
1604 else
1605 ac_header_compiler=no
1606 fi
1607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1609 $as_echo "$ac_header_compiler" >&6; }
1610
1611 # Is the header present?
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1613 $as_echo_n "checking $2 presence... " >&6; }
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615 /* end confdefs.h. */
1616 #include <$2>
1617 _ACEOF
1618 if ac_fn_c_try_cpp "$LINENO"; then :
1619 ac_header_preproc=yes
1620 else
1621 ac_header_preproc=no
1622 fi
1623 rm -f conftest.err conftest.i conftest.$ac_ext
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1625 $as_echo "$ac_header_preproc" >&6; }
1626
1627 # So? What about this header?
1628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1629 yes:no: )
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1631 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1634 ;;
1635 no:yes:* )
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1637 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1639 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1641 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1643 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1645 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1646 ( $as_echo "## -------------------------------------------- ##
1647 ## Report this to andreas.gruenbacher@gmail.com ##
1648 ## -------------------------------------------- ##"
1649 ) | sed "s/^/$as_me: WARNING: /" >&2
1650 ;;
1651 esac
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653 $as_echo_n "checking for $2... " >&6; }
1654 if eval \${$3+:} false; then :
1655 $as_echo_n "(cached) " >&6
1656 else
1657 eval "$3=\$ac_header_compiler"
1658 fi
1659 eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662 fi
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665 } # ac_fn_c_check_header_mongrel
1666
1667 # ac_fn_c_try_run LINENO
1668 # ----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1670 # that executables *can* be run.
1671 ac_fn_c_try_run ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>&5
1682 ac_status=$?
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1685 { { case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_try") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; }; }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: program exited with status $ac_status" >&5
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=$ac_status
1702 fi
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_run
1708
1709 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1710 # -------------------------------------------------------
1711 # Tests whether HEADER exists and can be compiled using the include files in
1712 # INCLUDES, setting the cache variable VAR accordingly.
1713 ac_fn_c_check_header_compile ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1720 else
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1723 $4
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_compile "$LINENO"; then :
1727 eval "$3=yes"
1728 else
1729 eval "$3=no"
1730 fi
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 fi
1733 eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738 } # ac_fn_c_check_header_compile
1739
1740 # ac_fn_c_check_func LINENO FUNC VAR
1741 # ----------------------------------
1742 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1743 ac_fn_c_check_func ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval \${$3+:} false; then :
1749 $as_echo_n "(cached) " >&6
1750 else
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1753 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1755 #define $2 innocuous_$2
1756
1757 /* System header to define __stub macros and hopefully few prototypes,
1758 which can conflict with char $2 (); below.
1759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1760 <limits.h> exists even on freestanding compilers. */
1761
1762 #ifdef __STDC__
1763 # include <limits.h>
1764 #else
1765 # include <assert.h>
1766 #endif
1767
1768 #undef $2
1769
1770 /* Override any GCC internal prototype to avoid an error.
1771 Use char because int might match the return type of a GCC
1772 builtin and then its argument prototype would still apply. */
1773 #ifdef __cplusplus
1774 extern "C"
1775 #endif
1776 char $2 ();
1777 /* The GNU C library defines this for functions which it implements
1778 to always fail with ENOSYS. Some functions are actually named
1779 something starting with __ and the normal name is an alias. */
1780 #if defined __stub_$2 || defined __stub___$2
1781 choke me
1782 #endif
1783
1784 int
1785 main ()
1786 {
1787 return $2 ();
1788 ;
1789 return 0;
1790 }
1791 _ACEOF
1792 if ac_fn_c_try_link "$LINENO"; then :
1793 eval "$3=yes"
1794 else
1795 eval "$3=no"
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext \
1798 conftest$ac_exeext conftest.$ac_ext
1799 fi
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805 } # ac_fn_c_check_func
1806 cat >config.log <<_ACEOF
1807 This file contains any messages produced by compilers while
1808 running configure, to aid debugging if configure makes a mistake.
1809
1810 It was created by ptouch-driver $as_me 1.5, which was
1811 generated by GNU Autoconf 2.69. Invocation command line was
1812
1813 $ $0 $@
1814
1815 _ACEOF
1816 exec 5>>config.log
1817 {
1818 cat <<_ASUNAME
1819 ## --------- ##
1820 ## Platform. ##
1821 ## --------- ##
1822
1823 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1824 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1825 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1826 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1827 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1828
1829 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1830 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1831
1832 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1833 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1834 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1835 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1836 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1837 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1838 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1839
1840 _ASUNAME
1841
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1844 do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 $as_echo "PATH: $as_dir"
1848 done
1849 IFS=$as_save_IFS
1850
1851 } >&5
1852
1853 cat >&5 <<_ACEOF
1854
1855
1856 ## ----------- ##
1857 ## Core tests. ##
1858 ## ----------- ##
1859
1860 _ACEOF
1861
1862
1863 # Keep a trace of the command line.
1864 # Strip out --no-create and --no-recursion so they do not pile up.
1865 # Strip out --silent because we don't want to record it for future runs.
1866 # Also quote any args containing shell meta-characters.
1867 # Make two passes to allow for proper duplicate-argument suppression.
1868 ac_configure_args=
1869 ac_configure_args0=
1870 ac_configure_args1=
1871 ac_must_keep_next=false
1872 for ac_pass in 1 2
1873 do
1874 for ac_arg
1875 do
1876 case $ac_arg in
1877 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1879 | -silent | --silent | --silen | --sile | --sil)
1880 continue ;;
1881 *\'*)
1882 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1883 esac
1884 case $ac_pass in
1885 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1886 2)
1887 as_fn_append ac_configure_args1 " '$ac_arg'"
1888 if test $ac_must_keep_next = true; then
1889 ac_must_keep_next=false # Got value, back to normal.
1890 else
1891 case $ac_arg in
1892 *=* | --config-cache | -C | -disable-* | --disable-* \
1893 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1894 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1895 | -with-* | --with-* | -without-* | --without-* | --x)
1896 case "$ac_configure_args0 " in
1897 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1898 esac
1899 ;;
1900 -* ) ac_must_keep_next=true ;;
1901 esac
1902 fi
1903 as_fn_append ac_configure_args " '$ac_arg'"
1904 ;;
1905 esac
1906 done
1907 done
1908 { ac_configure_args0=; unset ac_configure_args0;}
1909 { ac_configure_args1=; unset ac_configure_args1;}
1910
1911 # When interrupted or exit'd, cleanup temporary files, and complete
1912 # config.log. We remove comments because anyway the quotes in there
1913 # would cause problems or look ugly.
1914 # WARNING: Use '\'' to represent an apostrophe within the trap.
1915 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1916 trap 'exit_status=$?
1917 # Save into config.log some information that might help in debugging.
1918 {
1919 echo
1920
1921 $as_echo "## ---------------- ##
1922 ## Cache variables. ##
1923 ## ---------------- ##"
1924 echo
1925 # The following way of writing the cache mishandles newlines in values,
1926 (
1927 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1928 eval ac_val=\$$ac_var
1929 case $ac_val in #(
1930 *${as_nl}*)
1931 case $ac_var in #(
1932 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1933 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1934 esac
1935 case $ac_var in #(
1936 _ | IFS | as_nl) ;; #(
1937 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1938 *) { eval $ac_var=; unset $ac_var;} ;;
1939 esac ;;
1940 esac
1941 done
1942 (set) 2>&1 |
1943 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1944 *${as_nl}ac_space=\ *)
1945 sed -n \
1946 "s/'\''/'\''\\\\'\'''\''/g;
1947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1948 ;; #(
1949 *)
1950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951 ;;
1952 esac |
1953 sort
1954 )
1955 echo
1956
1957 $as_echo "## ----------------- ##
1958 ## Output variables. ##
1959 ## ----------------- ##"
1960 echo
1961 for ac_var in $ac_subst_vars
1962 do
1963 eval ac_val=\$$ac_var
1964 case $ac_val in
1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966 esac
1967 $as_echo "$ac_var='\''$ac_val'\''"
1968 done | sort
1969 echo
1970
1971 if test -n "$ac_subst_files"; then
1972 $as_echo "## ------------------- ##
1973 ## File substitutions. ##
1974 ## ------------------- ##"
1975 echo
1976 for ac_var in $ac_subst_files
1977 do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in
1980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 esac
1982 $as_echo "$ac_var='\''$ac_val'\''"
1983 done | sort
1984 echo
1985 fi
1986
1987 if test -s confdefs.h; then
1988 $as_echo "## ----------- ##
1989 ## confdefs.h. ##
1990 ## ----------- ##"
1991 echo
1992 cat confdefs.h
1993 echo
1994 fi
1995 test "$ac_signal" != 0 &&
1996 $as_echo "$as_me: caught signal $ac_signal"
1997 $as_echo "$as_me: exit $exit_status"
1998 } >&5
1999 rm -f core *.core core.conftest.* &&
2000 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2001 exit $exit_status
2002 ' 0
2003 for ac_signal in 1 2 13 15; do
2004 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2005 done
2006 ac_signal=0
2007
2008 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2009 rm -f -r conftest* confdefs.h
2010
2011 $as_echo "/* confdefs.h */" > confdefs.h
2012
2013 # Predefined preprocessor variables.
2014
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_NAME "$PACKAGE_NAME"
2017 _ACEOF
2018
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2021 _ACEOF
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2025 _ACEOF
2026
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_STRING "$PACKAGE_STRING"
2029 _ACEOF
2030
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2033 _ACEOF
2034
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_URL "$PACKAGE_URL"
2037 _ACEOF
2038
2039
2040 # Let the site file select an alternate cache file if it wants to.
2041 # Prefer an explicitly selected file to automatically selected ones.
2042 ac_site_file1=NONE
2043 ac_site_file2=NONE
2044 if test -n "$CONFIG_SITE"; then
2045 # We do not want a PATH search for config.site.
2046 case $CONFIG_SITE in #((
2047 -*) ac_site_file1=./$CONFIG_SITE;;
2048 */*) ac_site_file1=$CONFIG_SITE;;
2049 *) ac_site_file1=./$CONFIG_SITE;;
2050 esac
2051 elif test "x$prefix" != xNONE; then
2052 ac_site_file1=$prefix/share/config.site
2053 ac_site_file2=$prefix/etc/config.site
2054 else
2055 ac_site_file1=$ac_default_prefix/share/config.site
2056 ac_site_file2=$ac_default_prefix/etc/config.site
2057 fi
2058 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2059 do
2060 test "x$ac_site_file" = xNONE && continue
2061 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2063 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2064 sed 's/^/| /' "$ac_site_file" >&5
2065 . "$ac_site_file" \
2066 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068 as_fn_error $? "failed to load site script $ac_site_file
2069 See \`config.log' for more details" "$LINENO" 5; }
2070 fi
2071 done
2072
2073 if test -r "$cache_file"; then
2074 # Some versions of bash will fail to source /dev/null (special files
2075 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2076 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078 $as_echo "$as_me: loading cache $cache_file" >&6;}
2079 case $cache_file in
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
2082 esac
2083 fi
2084 else
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086 $as_echo "$as_me: creating cache $cache_file" >&6;}
2087 >$cache_file
2088 fi
2089
2090 # Check that the precious variables saved in the cache have kept the same
2091 # value.
2092 ac_cache_corrupted=false
2093 for ac_var in $ac_precious_vars; do
2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2095 eval ac_new_set=\$ac_env_${ac_var}_set
2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2097 eval ac_new_val=\$ac_env_${ac_var}_value
2098 case $ac_old_set,$ac_new_set in
2099 set,)
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2101 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2102 ac_cache_corrupted=: ;;
2103 ,set)
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2105 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2106 ac_cache_corrupted=: ;;
2107 ,);;
2108 *)
2109 if test "x$ac_old_val" != "x$ac_new_val"; then
2110 # differences in whitespace do not lead to failure.
2111 ac_old_val_w=`echo x $ac_old_val`
2112 ac_new_val_w=`echo x $ac_new_val`
2113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2115 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2116 ac_cache_corrupted=:
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2119 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2120 eval $ac_var=\$ac_old_val
2121 fi
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2123 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2125 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2126 fi;;
2127 esac
2128 # Pass precious variables to config.status.
2129 if test "$ac_new_set" = set; then
2130 case $ac_new_val in
2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2132 *) ac_arg=$ac_var=$ac_new_val ;;
2133 esac
2134 case " $ac_configure_args " in
2135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2137 esac
2138 fi
2139 done
2140 if $ac_cache_corrupted; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2144 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2145 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2146 fi
2147 ## -------------------- ##
2148 ## Main body of script. ##
2149 ## -------------------- ##
2150
2151 ac_ext=c
2152 ac_cpp='$CPP $CPPFLAGS'
2153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156
2157
2158 am__api_version='1.16'
2159
2160 ac_aux_dir=
2161 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2162 if test -f "$ac_dir/install-sh"; then
2163 ac_aux_dir=$ac_dir
2164 ac_install_sh="$ac_aux_dir/install-sh -c"
2165 break
2166 elif test -f "$ac_dir/install.sh"; then
2167 ac_aux_dir=$ac_dir
2168 ac_install_sh="$ac_aux_dir/install.sh -c"
2169 break
2170 elif test -f "$ac_dir/shtool"; then
2171 ac_aux_dir=$ac_dir
2172 ac_install_sh="$ac_aux_dir/shtool install -c"
2173 break
2174 fi
2175 done
2176 if test -z "$ac_aux_dir"; then
2177 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2178 fi
2179
2180 # These three variables are undocumented and unsupported,
2181 # and are intended to be withdrawn in a future Autoconf release.
2182 # They can cause serious problems if a builder's source tree is in a directory
2183 # whose full name contains unusual characters.
2184 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2185 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2186 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2187
2188
2189 # Find a good install program. We prefer a C program (faster),
2190 # so one script is as good as another. But avoid the broken or
2191 # incompatible versions:
2192 # SysV /etc/install, /usr/sbin/install
2193 # SunOS /usr/etc/install
2194 # IRIX /sbin/install
2195 # AIX /bin/install
2196 # AmigaOS /C/install, which installs bootblocks on floppy discs
2197 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2198 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2199 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2200 # OS/2's system install, which has a completely different semantic
2201 # ./install, which can be erroneously created by make from ./install.sh.
2202 # Reject install programs that cannot install multiple files.
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2204 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2205 if test -z "$INSTALL"; then
2206 if ${ac_cv_path_install+:} false; then :
2207 $as_echo_n "(cached) " >&6
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2211 do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 # Account for people who put trailing slashes in PATH elements.
2215 case $as_dir/ in #((
2216 ./ | .// | /[cC]/* | \
2217 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2218 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2219 /usr/ucb/* ) ;;
2220 *)
2221 # OSF1 and SCO ODT 3.0 have their own names for install.
2222 # Don't use installbsd from OSF since it installs stuff as root
2223 # by default.
2224 for ac_prog in ginstall scoinst install; do
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2227 if test $ac_prog = install &&
2228 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2229 # AIX install. It has an incompatible calling convention.
2230 :
2231 elif test $ac_prog = install &&
2232 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2233 # program-specific install script used by HP pwplus--don't use.
2234 :
2235 else
2236 rm -rf conftest.one conftest.two conftest.dir
2237 echo one > conftest.one
2238 echo two > conftest.two
2239 mkdir conftest.dir
2240 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2241 test -s conftest.one && test -s conftest.two &&
2242 test -s conftest.dir/conftest.one &&
2243 test -s conftest.dir/conftest.two
2244 then
2245 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2246 break 3
2247 fi
2248 fi
2249 fi
2250 done
2251 done
2252 ;;
2253 esac
2254
2255 done
2256 IFS=$as_save_IFS
2257
2258 rm -rf conftest.one conftest.two conftest.dir
2259
2260 fi
2261 if test "${ac_cv_path_install+set}" = set; then
2262 INSTALL=$ac_cv_path_install
2263 else
2264 # As a last resort, use the slow shell script. Don't cache a
2265 # value for INSTALL within a source directory, because that will
2266 # break other packages using the cache if that directory is
2267 # removed, or if the value is a relative name.
2268 INSTALL=$ac_install_sh
2269 fi
2270 fi
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2272 $as_echo "$INSTALL" >&6; }
2273
2274 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2275 # It thinks the first close brace ends the variable substitution.
2276 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2277
2278 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2279
2280 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2281
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2283 $as_echo_n "checking whether build environment is sane... " >&6; }
2284 # Reject unsafe characters in $srcdir or the absolute working directory
2285 # name. Accept space and tab only in the latter.
2286 am_lf='
2287 '
2288 case `pwd` in
2289 *[\\\"\#\$\&\'\`$am_lf]*)
2290 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2291 esac
2292 case $srcdir in
2293 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2294 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2295 esac
2296
2297 # Do 'set' in a subshell so we don't clobber the current shell's
2298 # arguments. Must try -L first in case configure is actually a
2299 # symlink; some systems play weird games with the mod time of symlinks
2300 # (eg FreeBSD returns the mod time of the symlink's containing
2301 # directory).
2302 if (
2303 am_has_slept=no
2304 for am_try in 1 2; do
2305 echo "timestamp, slept: $am_has_slept" > conftest.file
2306 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2307 if test "$*" = "X"; then
2308 # -L didn't work.
2309 set X `ls -t "$srcdir/configure" conftest.file`
2310 fi
2311 if test "$*" != "X $srcdir/configure conftest.file" \
2312 && test "$*" != "X conftest.file $srcdir/configure"; then
2313
2314 # If neither matched, then we have a broken ls. This can happen
2315 # if, for instance, CONFIG_SHELL is bash and it inherits a
2316 # broken ls alias from the environment. This has actually
2317 # happened. Such a system could not be considered "sane".
2318 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2319 alias in your environment" "$LINENO" 5
2320 fi
2321 if test "$2" = conftest.file || test $am_try -eq 2; then
2322 break
2323 fi
2324 # Just in case.
2325 sleep 1
2326 am_has_slept=yes
2327 done
2328 test "$2" = conftest.file
2329 )
2330 then
2331 # Ok.
2332 :
2333 else
2334 as_fn_error $? "newly created file is older than distributed files!
2335 Check your system clock" "$LINENO" 5
2336 fi
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2338 $as_echo "yes" >&6; }
2339 # If we didn't sleep, we still need to ensure time stamps of config.status and
2340 # generated files are strictly newer.
2341 am_sleep_pid=
2342 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2343 ( sleep 1 ) &
2344 am_sleep_pid=$!
2345 fi
2346
2347 rm -f conftest.file
2348
2349 test "$program_prefix" != NONE &&
2350 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2351 # Use a double $ so make ignores it.
2352 test "$program_suffix" != NONE &&
2353 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2354 # Double any \ or $.
2355 # By default was `s,x,x', remove it if useless.
2356 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2357 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2358
2359 # Expand $ac_aux_dir to an absolute path.
2360 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2361
2362 if test x"${MISSING+set}" != xset; then
2363 MISSING="\${SHELL} '$am_aux_dir/missing'"
2364 fi
2365 # Use eval to expand $SHELL
2366 if eval "$MISSING --is-lightweight"; then
2367 am_missing_run="$MISSING "
2368 else
2369 am_missing_run=
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2371 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2372 fi
2373
2374 if test x"${install_sh+set}" != xset; then
2375 case $am_aux_dir in
2376 *\ * | *\ *)
2377 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2378 *)
2379 install_sh="\${SHELL} $am_aux_dir/install-sh"
2380 esac
2381 fi
2382
2383 # Installed binaries are usually stripped using 'strip' when the user
2384 # run "make install-strip". However 'strip' might not be the right
2385 # tool to use in cross-compilation environments, therefore Automake
2386 # will honor the 'STRIP' environment variable to overrule this program.
2387 if test "$cross_compiling" != no; then
2388 if test -n "$ac_tool_prefix"; then
2389 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2390 set dummy ${ac_tool_prefix}strip; ac_word=$2
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392 $as_echo_n "checking for $ac_word... " >&6; }
2393 if ${ac_cv_prog_STRIP+:} false; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 if test -n "$STRIP"; then
2397 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2398 else
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2401 do
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2406 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 break 2
2409 fi
2410 done
2411 done
2412 IFS=$as_save_IFS
2413
2414 fi
2415 fi
2416 STRIP=$ac_cv_prog_STRIP
2417 if test -n "$STRIP"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2419 $as_echo "$STRIP" >&6; }
2420 else
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2422 $as_echo "no" >&6; }
2423 fi
2424
2425
2426 fi
2427 if test -z "$ac_cv_prog_STRIP"; then
2428 ac_ct_STRIP=$STRIP
2429 # Extract the first word of "strip", so it can be a program name with args.
2430 set dummy strip; ac_word=$2
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432 $as_echo_n "checking for $ac_word... " >&6; }
2433 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 if test -n "$ac_ct_STRIP"; then
2437 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2441 do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446 ac_cv_prog_ac_ct_STRIP="strip"
2447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 fi
2455 fi
2456 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2457 if test -n "$ac_ct_STRIP"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2459 $as_echo "$ac_ct_STRIP" >&6; }
2460 else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462 $as_echo "no" >&6; }
2463 fi
2464
2465 if test "x$ac_ct_STRIP" = x; then
2466 STRIP=":"
2467 else
2468 case $cross_compiling:$ac_tool_warned in
2469 yes:)
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2472 ac_tool_warned=yes ;;
2473 esac
2474 STRIP=$ac_ct_STRIP
2475 fi
2476 else
2477 STRIP="$ac_cv_prog_STRIP"
2478 fi
2479
2480 fi
2481 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2482
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2484 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2485 if test -z "$MKDIR_P"; then
2486 if ${ac_cv_path_mkdir+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2491 do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_prog in mkdir gmkdir; do
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2497 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2498 'mkdir (GNU coreutils) '* | \
2499 'mkdir (coreutils) '* | \
2500 'mkdir (fileutils) '4.1*)
2501 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2502 break 3;;
2503 esac
2504 done
2505 done
2506 done
2507 IFS=$as_save_IFS
2508
2509 fi
2510
2511 test -d ./--version && rmdir ./--version
2512 if test "${ac_cv_path_mkdir+set}" = set; then
2513 MKDIR_P="$ac_cv_path_mkdir -p"
2514 else
2515 # As a last resort, use the slow shell script. Don't cache a
2516 # value for MKDIR_P within a source directory, because that will
2517 # break other packages using the cache if that directory is
2518 # removed, or if the value is a relative name.
2519 MKDIR_P="$ac_install_sh -d"
2520 fi
2521 fi
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2523 $as_echo "$MKDIR_P" >&6; }
2524
2525 for ac_prog in gawk mawk nawk awk
2526 do
2527 # Extract the first word of "$ac_prog", so it can be a program name with args.
2528 set dummy $ac_prog; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if ${ac_cv_prog_AWK+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$AWK"; then
2535 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2544 ac_cv_prog_AWK="$ac_prog"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2547 fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 AWK=$ac_cv_prog_AWK
2555 if test -n "$AWK"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2557 $as_echo "$AWK" >&6; }
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 fi
2562
2563
2564 test -n "$AWK" && break
2565 done
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2568 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2569 set x ${MAKE-make}
2570 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2571 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 cat >conftest.make <<\_ACEOF
2575 SHELL = /bin/sh
2576 all:
2577 @echo '@@@%%%=$(MAKE)=@@@%%%'
2578 _ACEOF
2579 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2580 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2581 *@@@%%%=?*=@@@%%%*)
2582 eval ac_cv_prog_make_${ac_make}_set=yes;;
2583 *)
2584 eval ac_cv_prog_make_${ac_make}_set=no;;
2585 esac
2586 rm -f conftest.make
2587 fi
2588 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2590 $as_echo "yes" >&6; }
2591 SET_MAKE=
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2595 SET_MAKE="MAKE=${MAKE-make}"
2596 fi
2597
2598 rm -rf .tst 2>/dev/null
2599 mkdir .tst 2>/dev/null
2600 if test -d .tst; then
2601 am__leading_dot=.
2602 else
2603 am__leading_dot=_
2604 fi
2605 rmdir .tst 2>/dev/null
2606
2607 # Check whether --enable-silent-rules was given.
2608 if test "${enable_silent_rules+set}" = set; then :
2609 enableval=$enable_silent_rules;
2610 fi
2611
2612 case $enable_silent_rules in # (((
2613 yes) AM_DEFAULT_VERBOSITY=0;;
2614 no) AM_DEFAULT_VERBOSITY=1;;
2615 *) AM_DEFAULT_VERBOSITY=1;;
2616 esac
2617 am_make=${MAKE-make}
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2619 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2620 if ${am_cv_make_support_nested_variables+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 if $as_echo 'TRUE=$(BAR$(V))
2624 BAR0=false
2625 BAR1=true
2626 V=1
2627 am__doit:
2628 @$(TRUE)
2629 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2630 am_cv_make_support_nested_variables=yes
2631 else
2632 am_cv_make_support_nested_variables=no
2633 fi
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2636 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2637 if test $am_cv_make_support_nested_variables = yes; then
2638 AM_V='$(V)'
2639 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2640 else
2641 AM_V=$AM_DEFAULT_VERBOSITY
2642 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2643 fi
2644 AM_BACKSLASH='\'
2645
2646 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2647 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2648 # is not polluted with repeated "-I."
2649 am__isrc=' -I$(srcdir)'
2650 # test to see if srcdir already configured
2651 if test -f $srcdir/config.status; then
2652 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2653 fi
2654 fi
2655
2656 # test whether we have cygpath
2657 if test -z "$CYGPATH_W"; then
2658 if (cygpath --version) >/dev/null 2>/dev/null; then
2659 CYGPATH_W='cygpath -w'
2660 else
2661 CYGPATH_W=echo
2662 fi
2663 fi
2664
2665
2666 # Define the identity of the package.
2667 PACKAGE='ptouch-driver'
2668 VERSION='1.5'
2669
2670
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE "$PACKAGE"
2673 _ACEOF
2674
2675
2676 cat >>confdefs.h <<_ACEOF
2677 #define VERSION "$VERSION"
2678 _ACEOF
2679
2680 # Some tools Automake needs.
2681
2682 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2683
2684
2685 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2686
2687
2688 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2689
2690
2691 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2692
2693
2694 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2695
2696 # For better backward compatibility. To be removed once Automake 1.9.x
2697 # dies out for good. For more background, see:
2698 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2699 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2700 mkdir_p='$(MKDIR_P)'
2701
2702 # We need awk for the "check" target (and possibly the TAP driver). The
2703 # system "awk" is bad on some platforms.
2704 # Always define AMTAR for backward compatibility. Yes, it's still used
2705 # in the wild :-( We should find a proper way to deprecate it ...
2706 AMTAR='$${TAR-tar}'
2707
2708
2709 # We'll loop over all known methods to create a tar archive until one works.
2710 _am_tools='gnutar pax cpio none'
2711
2712 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2713
2714
2715
2716
2717
2718
2719 # POSIX will say in a future version that running "rm -f" with no argument
2720 # is OK; and we want to be able to make that assumption in our Makefile
2721 # recipes. So use an aggressive probe to check that the usage we want is
2722 # actually supported "in the wild" to an acceptable degree.
2723 # See automake bug#10828.
2724 # To make any issue more visible, cause the running configure to be aborted
2725 # by default if the 'rm' program in use doesn't match our expectations; the
2726 # user can still override this though.
2727 if rm -f && rm -fr && rm -rf; then : OK; else
2728 cat >&2 <<'END'
2729 Oops!
2730
2731 Your 'rm' program seems unable to run without file operands specified
2732 on the command line, even when the '-f' option is present. This is contrary
2733 to the behaviour of most rm programs out there, and not conforming with
2734 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2735
2736 Please tell bug-automake@gnu.org about your system, including the value
2737 of your $PATH and any error possibly output before this message. This
2738 can help us improve future automake versions.
2739
2740 END
2741 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2742 echo 'Configuration will proceed anyway, since you have set the' >&2
2743 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2744 echo >&2
2745 else
2746 cat >&2 <<'END'
2747 Aborting the configuration process, to ensure you take notice of the issue.
2748
2749 You can download and install GNU coreutils to get an 'rm' implementation
2750 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2751
2752 If you want to complete the configuration process using your problematic
2753 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2754 to "yes", and re-run configure.
2755
2756 END
2757 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2758 fi
2759 fi
2760
2761
2762 ac_config_headers="$ac_config_headers config.h"
2763
2764
2765 # Checks for programs.
2766 ac_ext=c
2767 ac_cpp='$CPP $CPPFLAGS'
2768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771 if test -n "$ac_tool_prefix"; then
2772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2773 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_CC+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test -n "$CC"; then
2780 ac_cv_prog_CC="$CC" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 CC=$ac_cv_prog_CC
2800 if test -n "$CC"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2802 $as_echo "$CC" >&6; }
2803 else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808
2809 fi
2810 if test -z "$ac_cv_prog_CC"; then
2811 ac_ct_CC=$CC
2812 # Extract the first word of "gcc", so it can be a program name with args.
2813 set dummy gcc; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 if test -n "$ac_ct_CC"; then
2820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_CC="gcc"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833 done
2834 done
2835 IFS=$as_save_IFS
2836
2837 fi
2838 fi
2839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2840 if test -n "$ac_ct_CC"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2842 $as_echo "$ac_ct_CC" >&6; }
2843 else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846 fi
2847
2848 if test "x$ac_ct_CC" = x; then
2849 CC=""
2850 else
2851 case $cross_compiling:$ac_tool_warned in
2852 yes:)
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2855 ac_tool_warned=yes ;;
2856 esac
2857 CC=$ac_ct_CC
2858 fi
2859 else
2860 CC="$ac_cv_prog_CC"
2861 fi
2862
2863 if test -z "$CC"; then
2864 if test -n "$ac_tool_prefix"; then
2865 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2866 set dummy ${ac_tool_prefix}cc; ac_word=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if ${ac_cv_prog_CC+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC="$CC" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_CC="${ac_tool_prefix}cc"
2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886 done
2887 done
2888 IFS=$as_save_IFS
2889
2890 fi
2891 fi
2892 CC=$ac_cv_prog_CC
2893 if test -n "$CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2895 $as_echo "$CC" >&6; }
2896 else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2899 fi
2900
2901
2902 fi
2903 fi
2904 if test -z "$CC"; then
2905 # Extract the first word of "cc", so it can be a program name with args.
2906 set dummy cc; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if ${ac_cv_prog_CC+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC="$CC" # Let the user override the test.
2914 else
2915 ac_prog_rejected=no
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2924 ac_prog_rejected=yes
2925 continue
2926 fi
2927 ac_cv_prog_CC="cc"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 if test $ac_prog_rejected = yes; then
2936 # We found a bogon in the path, so make sure we never use it.
2937 set dummy $ac_cv_prog_CC
2938 shift
2939 if test $# != 0; then
2940 # We chose a different compiler from the bogus one.
2941 # However, it has the same basename, so the bogon will be chosen
2942 # first if we set CC to just the basename; use the full file name.
2943 shift
2944 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2945 fi
2946 fi
2947 fi
2948 fi
2949 CC=$ac_cv_prog_CC
2950 if test -n "$CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2952 $as_echo "$CC" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958
2959 fi
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 for ac_prog in cl.exe
2963 do
2964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if ${ac_cv_prog_CC+:} false; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2984 fi
2985 done
2986 done
2987 IFS=$as_save_IFS
2988
2989 fi
2990 fi
2991 CC=$ac_cv_prog_CC
2992 if test -n "$CC"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2994 $as_echo "$CC" >&6; }
2995 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
2998 fi
2999
3000
3001 test -n "$CC" && break
3002 done
3003 fi
3004 if test -z "$CC"; then
3005 ac_ct_CC=$CC
3006 for ac_prog in cl.exe
3007 do
3008 # Extract the first word of "$ac_prog", so it can be a program name with args.
3009 set dummy $ac_prog; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$ac_ct_CC"; then
3016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_ac_ct_CC="$ac_prog"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3036 if test -n "$ac_ct_CC"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3038 $as_echo "$ac_ct_CC" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044
3045 test -n "$ac_ct_CC" && break
3046 done
3047
3048 if test "x$ac_ct_CC" = x; then
3049 CC=""
3050 else
3051 case $cross_compiling:$ac_tool_warned in
3052 yes:)
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3055 ac_tool_warned=yes ;;
3056 esac
3057 CC=$ac_ct_CC
3058 fi
3059 fi
3060
3061 fi
3062
3063
3064 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066 as_fn_error $? "no acceptable C compiler found in \$PATH
3067 See \`config.log' for more details" "$LINENO" 5; }
3068
3069 # Provide some information about the compiler.
3070 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3071 set X $ac_compile
3072 ac_compiler=$2
3073 for ac_option in --version -v -V -qversion; do
3074 { { ac_try="$ac_compiler $ac_option >&5"
3075 case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078 esac
3079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080 $as_echo "$ac_try_echo"; } >&5
3081 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3082 ac_status=$?
3083 if test -s conftest.err; then
3084 sed '10a\
3085 ... rest of stderr output deleted ...
3086 10q' conftest.err >conftest.er1
3087 cat conftest.er1 >&5
3088 fi
3089 rm -f conftest.er1 conftest.err
3090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3091 test $ac_status = 0; }
3092 done
3093
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h. */
3096
3097 int
3098 main ()
3099 {
3100
3101 ;
3102 return 0;
3103 }
3104 _ACEOF
3105 ac_clean_files_save=$ac_clean_files
3106 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3107 # Try to create an executable without -o first, disregard a.out.
3108 # It will help us diagnose broken compilers, and finding out an intuition
3109 # of exeext.
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3111 $as_echo_n "checking whether the C compiler works... " >&6; }
3112 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3113
3114 # The possible output files:
3115 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3116
3117 ac_rmfiles=
3118 for ac_file in $ac_files
3119 do
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3122 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3123 esac
3124 done
3125 rm -f $ac_rmfiles
3126
3127 if { { ac_try="$ac_link_default"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133 $as_echo "$ac_try_echo"; } >&5
3134 (eval "$ac_link_default") 2>&5
3135 ac_status=$?
3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }; then :
3138 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3139 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3140 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3141 # so that the user can short-circuit this test for compilers unknown to
3142 # Autoconf.
3143 for ac_file in $ac_files ''
3144 do
3145 test -f "$ac_file" || continue
3146 case $ac_file in
3147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3148 ;;
3149 [ab].out )
3150 # We found the default executable, but exeext='' is most
3151 # certainly right.
3152 break;;
3153 *.* )
3154 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3155 then :; else
3156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3157 fi
3158 # We set ac_cv_exeext here because the later test for it is not
3159 # safe: cross compilers may not add the suffix if given an `-o'
3160 # argument, so we may need to know it at that point already.
3161 # Even if this section looks crufty: it has the advantage of
3162 # actually working.
3163 break;;
3164 * )
3165 break;;
3166 esac
3167 done
3168 test "$ac_cv_exeext" = no && ac_cv_exeext=
3169
3170 else
3171 ac_file=''
3172 fi
3173 if test -z "$ac_file"; then :
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3176 $as_echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error 77 "C compiler cannot create executables
3182 See \`config.log' for more details" "$LINENO" 5; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3185 $as_echo "yes" >&6; }
3186 fi
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3188 $as_echo_n "checking for C compiler default output file name... " >&6; }
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3190 $as_echo "$ac_file" >&6; }
3191 ac_exeext=$ac_cv_exeext
3192
3193 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3194 ac_clean_files=$ac_clean_files_save
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3196 $as_echo_n "checking for suffix of executables... " >&6; }
3197 if { { ac_try="$ac_link"
3198 case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_link") 2>&5
3205 ac_status=$?
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }; then :
3208 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3209 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3210 # work properly (i.e., refer to `conftest.exe'), while it won't with
3211 # `rm'.
3212 for ac_file in conftest.exe conftest conftest.*; do
3213 test -f "$ac_file" || continue
3214 case $ac_file in
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3216 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217 break;;
3218 * ) break;;
3219 esac
3220 done
3221 else
3222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3225 See \`config.log' for more details" "$LINENO" 5; }
3226 fi
3227 rm -f conftest conftest$ac_cv_exeext
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3229 $as_echo "$ac_cv_exeext" >&6; }
3230
3231 rm -f conftest.$ac_ext
3232 EXEEXT=$ac_cv_exeext
3233 ac_exeext=$EXEEXT
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3236 #include <stdio.h>
3237 int
3238 main ()
3239 {
3240 FILE *f = fopen ("conftest.out", "w");
3241 return ferror (f) || fclose (f) != 0;
3242
3243 ;
3244 return 0;
3245 }
3246 _ACEOF
3247 ac_clean_files="$ac_clean_files conftest.out"
3248 # Check that the compiler produces executables we can run. If not, either
3249 # the compiler is broken, or we cross compile.
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3251 $as_echo_n "checking whether we are cross compiling... " >&6; }
3252 if test "$cross_compiling" != yes; then
3253 { { ac_try="$ac_link"
3254 case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 $as_echo "$ac_try_echo"; } >&5
3260 (eval "$ac_link") 2>&5
3261 ac_status=$?
3262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3263 test $ac_status = 0; }
3264 if { ac_try='./conftest$ac_cv_exeext'
3265 { { case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_try") 2>&5
3272 ac_status=$?
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }; }; then
3275 cross_compiling=no
3276 else
3277 if test "$cross_compiling" = maybe; then
3278 cross_compiling=yes
3279 else
3280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error $? "cannot run C compiled programs.
3283 If you meant to cross compile, use \`--host'.
3284 See \`config.log' for more details" "$LINENO" 5; }
3285 fi
3286 fi
3287 fi
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3289 $as_echo "$cross_compiling" >&6; }
3290
3291 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3292 ac_clean_files=$ac_clean_files_save
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3294 $as_echo_n "checking for suffix of object files... " >&6; }
3295 if ${ac_cv_objext+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3300
3301 int
3302 main ()
3303 {
3304
3305 ;
3306 return 0;
3307 }
3308 _ACEOF
3309 rm -f conftest.o conftest.obj
3310 if { { ac_try="$ac_compile"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 $as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_compile") 2>&5
3318 ac_status=$?
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }; then :
3321 for ac_file in conftest.o conftest.obj conftest.*; do
3322 test -f "$ac_file" || continue;
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3325 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3326 break;;
3327 esac
3328 done
3329 else
3330 $as_echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error $? "cannot compute suffix of object files: cannot compile
3336 See \`config.log' for more details" "$LINENO" 5; }
3337 fi
3338 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3339 fi
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3341 $as_echo "$ac_cv_objext" >&6; }
3342 OBJEXT=$ac_cv_objext
3343 ac_objext=$OBJEXT
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3345 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3346 if ${ac_cv_c_compiler_gnu+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3351
3352 int
3353 main ()
3354 {
3355 #ifndef __GNUC__
3356 choke me
3357 #endif
3358
3359 ;
3360 return 0;
3361 }
3362 _ACEOF
3363 if ac_fn_c_try_compile "$LINENO"; then :
3364 ac_compiler_gnu=yes
3365 else
3366 ac_compiler_gnu=no
3367 fi
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3370
3371 fi
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3373 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3374 if test $ac_compiler_gnu = yes; then
3375 GCC=yes
3376 else
3377 GCC=
3378 fi
3379 ac_test_CFLAGS=${CFLAGS+set}
3380 ac_save_CFLAGS=$CFLAGS
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3382 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3383 if ${ac_cv_prog_cc_g+:} false; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 ac_save_c_werror_flag=$ac_c_werror_flag
3387 ac_c_werror_flag=yes
3388 ac_cv_prog_cc_g=no
3389 CFLAGS="-g"
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3392
3393 int
3394 main ()
3395 {
3396
3397 ;
3398 return 0;
3399 }
3400 _ACEOF
3401 if ac_fn_c_try_compile "$LINENO"; then :
3402 ac_cv_prog_cc_g=yes
3403 else
3404 CFLAGS=""
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3407
3408 int
3409 main ()
3410 {
3411
3412 ;
3413 return 0;
3414 }
3415 _ACEOF
3416 if ac_fn_c_try_compile "$LINENO"; then :
3417
3418 else
3419 ac_c_werror_flag=$ac_save_c_werror_flag
3420 CFLAGS="-g"
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3423
3424 int
3425 main ()
3426 {
3427
3428 ;
3429 return 0;
3430 }
3431 _ACEOF
3432 if ac_fn_c_try_compile "$LINENO"; then :
3433 ac_cv_prog_cc_g=yes
3434 fi
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 fi
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 fi
3439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440 ac_c_werror_flag=$ac_save_c_werror_flag
3441 fi
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3443 $as_echo "$ac_cv_prog_cc_g" >&6; }
3444 if test "$ac_test_CFLAGS" = set; then
3445 CFLAGS=$ac_save_CFLAGS
3446 elif test $ac_cv_prog_cc_g = yes; then
3447 if test "$GCC" = yes; then
3448 CFLAGS="-g -O2"
3449 else
3450 CFLAGS="-g"
3451 fi
3452 else
3453 if test "$GCC" = yes; then
3454 CFLAGS="-O2"
3455 else
3456 CFLAGS=
3457 fi
3458 fi
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3460 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3461 if ${ac_cv_prog_cc_c89+:} false; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 ac_cv_prog_cc_c89=no
3465 ac_save_CC=$CC
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3468 #include <stdarg.h>
3469 #include <stdio.h>
3470 struct stat;
3471 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3472 struct buf { int x; };
3473 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3474 static char *e (p, i)
3475 char **p;
3476 int i;
3477 {
3478 return p[i];
3479 }
3480 static char *f (char * (*g) (char **, int), char **p, ...)
3481 {
3482 char *s;
3483 va_list v;
3484 va_start (v,p);
3485 s = g (p, va_arg (v,int));
3486 va_end (v);
3487 return s;
3488 }
3489
3490 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3491 function prototypes and stuff, but not '\xHH' hex character constants.
3492 These don't provoke an error unfortunately, instead are silently treated
3493 as 'x'. The following induces an error, until -std is added to get
3494 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3495 array size at least. It's necessary to write '\x00'==0 to get something
3496 that's true only with -std. */
3497 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3498
3499 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3500 inside strings and character constants. */
3501 #define FOO(x) 'x'
3502 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3503
3504 int test (int i, double x);
3505 struct s1 {int (*f) (int a);};
3506 struct s2 {int (*f) (double a);};
3507 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3508 int argc;
3509 char **argv;
3510 int
3511 main ()
3512 {
3513 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3514 ;
3515 return 0;
3516 }
3517 _ACEOF
3518 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3519 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3520 do
3521 CC="$ac_save_CC $ac_arg"
3522 if ac_fn_c_try_compile "$LINENO"; then :
3523 ac_cv_prog_cc_c89=$ac_arg
3524 fi
3525 rm -f core conftest.err conftest.$ac_objext
3526 test "x$ac_cv_prog_cc_c89" != "xno" && break
3527 done
3528 rm -f conftest.$ac_ext
3529 CC=$ac_save_CC
3530
3531 fi
3532 # AC_CACHE_VAL
3533 case "x$ac_cv_prog_cc_c89" in
3534 x)
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3536 $as_echo "none needed" >&6; } ;;
3537 xno)
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3539 $as_echo "unsupported" >&6; } ;;
3540 *)
3541 CC="$CC $ac_cv_prog_cc_c89"
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3543 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3544 esac
3545 if test "x$ac_cv_prog_cc_c89" != xno; then :
3546
3547 fi
3548
3549 ac_ext=c
3550 ac_cpp='$CPP $CPPFLAGS'
3551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3561 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3562 if ${am_cv_prog_cc_c_o+:} false; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567
3568 int
3569 main ()
3570 {
3571
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 # Make sure it works both with $CC and with simple cc.
3577 # Following AC_PROG_CC_C_O, we do the test twice because some
3578 # compilers refuse to overwrite an existing .o file with -o,
3579 # though they will create one.
3580 am_cv_prog_cc_c_o=yes
3581 for am_i in 1 2; do
3582 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3583 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } \
3587 && test -f conftest2.$ac_objext; then
3588 : OK
3589 else
3590 am_cv_prog_cc_c_o=no
3591 break
3592 fi
3593 done
3594 rm -f core conftest*
3595 unset am_i
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3598 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3599 if test "$am_cv_prog_cc_c_o" != yes; then
3600 # Losing compiler, so override with the script.
3601 # FIXME: It is wrong to rewrite CC.
3602 # But if we don't then we get into trouble of one sort or another.
3603 # A longer-term fix would be to have automake use am__CC in this case,
3604 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3605 CC="$am_aux_dir/compile $CC"
3606 fi
3607 ac_ext=c
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612
3613 DEPDIR="${am__leading_dot}deps"
3614
3615 ac_config_commands="$ac_config_commands depfiles"
3616
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3618 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3619 cat > confinc.mk << 'END'
3620 am__doit:
3621 @echo this is the am__doit target >confinc.out
3622 .PHONY: am__doit
3623 END
3624 am__include="#"
3625 am__quote=
3626 # BSD make does it like this.
3627 echo '.include "confinc.mk" # ignored' > confmf.BSD
3628 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3629 echo 'include confinc.mk # ignored' > confmf.GNU
3630 _am_result=no
3631 for s in GNU BSD; do
3632 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3633 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }
3637 case $?:`cat confinc.out 2>/dev/null` in #(
3638 '0:this is the am__doit target') :
3639 case $s in #(
3640 BSD) :
3641 am__include='.include' am__quote='"' ;; #(
3642 *) :
3643 am__include='include' am__quote='' ;;
3644 esac ;; #(
3645 *) :
3646 ;;
3647 esac
3648 if test "$am__include" != "#"; then
3649 _am_result="yes ($s style)"
3650 break
3651 fi
3652 done
3653 rm -f confinc.* confmf.*
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3655 $as_echo "${_am_result}" >&6; }
3656
3657 # Check whether --enable-dependency-tracking was given.
3658 if test "${enable_dependency_tracking+set}" = set; then :
3659 enableval=$enable_dependency_tracking;
3660 fi
3661
3662 if test "x$enable_dependency_tracking" != xno; then
3663 am_depcomp="$ac_aux_dir/depcomp"
3664 AMDEPBACKSLASH='\'
3665 am__nodep='_no'
3666 fi
3667 if test "x$enable_dependency_tracking" != xno; then
3668 AMDEP_TRUE=
3669 AMDEP_FALSE='#'
3670 else
3671 AMDEP_TRUE='#'
3672 AMDEP_FALSE=
3673 fi
3674
3675
3676
3677 depcc="$CC" am_compiler_list=
3678
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3680 $as_echo_n "checking dependency style of $depcc... " >&6; }
3681 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3685 # We make a subdir and do the tests there. Otherwise we can end up
3686 # making bogus files that we don't know about and never remove. For
3687 # instance it was reported that on HP-UX the gcc test will end up
3688 # making a dummy file named 'D' -- because '-MD' means "put the output
3689 # in D".
3690 rm -rf conftest.dir
3691 mkdir conftest.dir
3692 # Copy depcomp to subdir because otherwise we won't find it if we're
3693 # using a relative directory.
3694 cp "$am_depcomp" conftest.dir
3695 cd conftest.dir
3696 # We will build objects and dependencies in a subdirectory because
3697 # it helps to detect inapplicable dependency modes. For instance
3698 # both Tru64's cc and ICC support -MD to output dependencies as a
3699 # side effect of compilation, but ICC will put the dependencies in
3700 # the current directory while Tru64 will put them in the object
3701 # directory.
3702 mkdir sub
3703
3704 am_cv_CC_dependencies_compiler_type=none
3705 if test "$am_compiler_list" = ""; then
3706 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3707 fi
3708 am__universal=false
3709 case " $depcc " in #(
3710 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3711 esac
3712
3713 for depmode in $am_compiler_list; do
3714 # Setup a source with many dependencies, because some compilers
3715 # like to wrap large dependency lists on column 80 (with \), and
3716 # we should not choose a depcomp mode which is confused by this.
3717 #
3718 # We need to recreate these files for each test, as the compiler may
3719 # overwrite some of them when testing with obscure command lines.
3720 # This happens at least with the AIX C compiler.
3721 : > sub/conftest.c
3722 for i in 1 2 3 4 5 6; do
3723 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3724 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3725 # Solaris 10 /bin/sh.
3726 echo '/* dummy */' > sub/conftst$i.h
3727 done
3728 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3729
3730 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3731 # mode. It turns out that the SunPro C++ compiler does not properly
3732 # handle '-M -o', and we need to detect this. Also, some Intel
3733 # versions had trouble with output in subdirs.
3734 am__obj=sub/conftest.${OBJEXT-o}
3735 am__minus_obj="-o $am__obj"
3736 case $depmode in
3737 gcc)
3738 # This depmode causes a compiler race in universal mode.
3739 test "$am__universal" = false || continue
3740 ;;
3741 nosideeffect)
3742 # After this tag, mechanisms are not by side-effect, so they'll
3743 # only be used when explicitly requested.
3744 if test "x$enable_dependency_tracking" = xyes; then
3745 continue
3746 else
3747 break
3748 fi
3749 ;;
3750 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3751 # This compiler won't grok '-c -o', but also, the minuso test has
3752 # not run yet. These depmodes are late enough in the game, and
3753 # so weak that their functioning should not be impacted.
3754 am__obj=conftest.${OBJEXT-o}
3755 am__minus_obj=
3756 ;;
3757 none) break ;;
3758 esac
3759 if depmode=$depmode \
3760 source=sub/conftest.c object=$am__obj \
3761 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3762 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3763 >/dev/null 2>conftest.err &&
3764 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3765 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3766 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3767 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3768 # icc doesn't choke on unknown options, it will just issue warnings
3769 # or remarks (even with -Werror). So we grep stderr for any message
3770 # that says an option was ignored or not supported.
3771 # When given -MP, icc 7.0 and 7.1 complain thusly:
3772 # icc: Command line warning: ignoring option '-M'; no argument required
3773 # The diagnosis changed in icc 8.0:
3774 # icc: Command line remark: option '-MP' not supported
3775 if (grep 'ignoring option' conftest.err ||
3776 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3777 am_cv_CC_dependencies_compiler_type=$depmode
3778 break
3779 fi
3780 fi
3781 done
3782
3783 cd ..
3784 rm -rf conftest.dir
3785 else
3786 am_cv_CC_dependencies_compiler_type=none
3787 fi
3788
3789 fi
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3791 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3792 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3793
3794 if
3795 test "x$enable_dependency_tracking" != xno \
3796 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3797 am__fastdepCC_TRUE=
3798 am__fastdepCC_FALSE='#'
3799 else
3800 am__fastdepCC_TRUE='#'
3801 am__fastdepCC_FALSE=
3802 fi
3803
3804
3805
3806
3807 # Checks for libraries.
3808 INITIAL_LIBS=$LIBS
3809
3810
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lrint in -lm" >&5
3812 $as_echo_n "checking for lrint in -lm... " >&6; }
3813 if ${ac_cv_lib_m_lrint+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 ac_check_lib_save_LIBS=$LIBS
3817 LIBS="-lm $LIBS"
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820
3821 /* Override any GCC internal prototype to avoid an error.
3822 Use char because int might match the return type of a GCC
3823 builtin and then its argument prototype would still apply. */
3824 #ifdef __cplusplus
3825 extern "C"
3826 #endif
3827 char lrint ();
3828 int
3829 main ()
3830 {
3831 return lrint ();
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 if ac_fn_c_try_link "$LINENO"; then :
3837 ac_cv_lib_m_lrint=yes
3838 else
3839 ac_cv_lib_m_lrint=no
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext \
3842 conftest$ac_exeext conftest.$ac_ext
3843 LIBS=$ac_check_lib_save_LIBS
3844 fi
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lrint" >&5
3846 $as_echo "$ac_cv_lib_m_lrint" >&6; }
3847 if test "x$ac_cv_lib_m_lrint" = xyes; then :
3848 cat >>confdefs.h <<_ACEOF
3849 #define HAVE_LIBM 1
3850 _ACEOF
3851
3852 LIBS="-lm $LIBS"
3853
3854 fi
3855
3856 LIBM=$LIBS
3857 LIBS=$INITIAL_LIBS
3858
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cupsParseOptions in -lcups" >&5
3860 $as_echo_n "checking for cupsParseOptions in -lcups... " >&6; }
3861 if ${ac_cv_lib_cups_cupsParseOptions+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 ac_check_lib_save_LIBS=$LIBS
3865 LIBS="-lcups $LIBS"
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868
3869 /* Override any GCC internal prototype to avoid an error.
3870 Use char because int might match the return type of a GCC
3871 builtin and then its argument prototype would still apply. */
3872 #ifdef __cplusplus
3873 extern "C"
3874 #endif
3875 char cupsParseOptions ();
3876 int
3877 main ()
3878 {
3879 return cupsParseOptions ();
3880 ;
3881 return 0;
3882 }
3883 _ACEOF
3884 if ac_fn_c_try_link "$LINENO"; then :
3885 ac_cv_lib_cups_cupsParseOptions=yes
3886 else
3887 ac_cv_lib_cups_cupsParseOptions=no
3888 fi
3889 rm -f core conftest.err conftest.$ac_objext \
3890 conftest$ac_exeext conftest.$ac_ext
3891 LIBS=$ac_check_lib_save_LIBS
3892 fi
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cups_cupsParseOptions" >&5
3894 $as_echo "$ac_cv_lib_cups_cupsParseOptions" >&6; }
3895 if test "x$ac_cv_lib_cups_cupsParseOptions" = xyes; then :
3896 cat >>confdefs.h <<_ACEOF
3897 #define HAVE_LIBCUPS 1
3898 _ACEOF
3899
3900 LIBS="-lcups $LIBS"
3901
3902 fi
3903
3904 LIBCUPS=$LIBS
3905 LIBS=$INITIAL_LIBS
3906
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cupsRasterReadHeader in -lcupsimage" >&5
3908 $as_echo_n "checking for cupsRasterReadHeader in -lcupsimage... " >&6; }
3909 if ${ac_cv_lib_cupsimage_cupsRasterReadHeader+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 ac_check_lib_save_LIBS=$LIBS
3913 LIBS="-lcupsimage $LIBS"
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3916
3917 /* Override any GCC internal prototype to avoid an error.
3918 Use char because int might match the return type of a GCC
3919 builtin and then its argument prototype would still apply. */
3920 #ifdef __cplusplus
3921 extern "C"
3922 #endif
3923 char cupsRasterReadHeader ();
3924 int
3925 main ()
3926 {
3927 return cupsRasterReadHeader ();
3928 ;
3929 return 0;
3930 }
3931 _ACEOF
3932 if ac_fn_c_try_link "$LINENO"; then :
3933 ac_cv_lib_cupsimage_cupsRasterReadHeader=yes
3934 else
3935 ac_cv_lib_cupsimage_cupsRasterReadHeader=no
3936 fi
3937 rm -f core conftest.err conftest.$ac_objext \
3938 conftest$ac_exeext conftest.$ac_ext
3939 LIBS=$ac_check_lib_save_LIBS
3940 fi
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cupsimage_cupsRasterReadHeader" >&5
3942 $as_echo "$ac_cv_lib_cupsimage_cupsRasterReadHeader" >&6; }
3943 if test "x$ac_cv_lib_cupsimage_cupsRasterReadHeader" = xyes; then :
3944 cat >>confdefs.h <<_ACEOF
3945 #define HAVE_LIBCUPSIMAGE 1
3946 _ACEOF
3947
3948 LIBS="-lcupsimage $LIBS"
3949
3950 fi
3951
3952 LIBCUPSIMAGE=$LIBS
3953 LIBS=$INITIAL_LIBS
3954
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_row in -lpng" >&5
3956 $as_echo_n "checking for png_write_row in -lpng... " >&6; }
3957 if ${ac_cv_lib_png_png_write_row+:} false; then :
3958 $as_echo_n "(cached) " >&6
3959 else
3960 ac_check_lib_save_LIBS=$LIBS
3961 LIBS="-lpng $LIBS"
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964
3965 /* Override any GCC internal prototype to avoid an error.
3966 Use char because int might match the return type of a GCC
3967 builtin and then its argument prototype would still apply. */
3968 #ifdef __cplusplus
3969 extern "C"
3970 #endif
3971 char png_write_row ();
3972 int
3973 main ()
3974 {
3975 return png_write_row ();
3976 ;
3977 return 0;
3978 }
3979 _ACEOF
3980 if ac_fn_c_try_link "$LINENO"; then :
3981 ac_cv_lib_png_png_write_row=yes
3982 else
3983 ac_cv_lib_png_png_write_row=no
3984 fi
3985 rm -f core conftest.err conftest.$ac_objext \
3986 conftest$ac_exeext conftest.$ac_ext
3987 LIBS=$ac_check_lib_save_LIBS
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_row" >&5
3990 $as_echo "$ac_cv_lib_png_png_write_row" >&6; }
3991 if test "x$ac_cv_lib_png_png_write_row" = xyes; then :
3992 cat >>confdefs.h <<_ACEOF
3993 #define HAVE_LIBPNG 1
3994 _ACEOF
3995
3996 LIBS="-lpng $LIBS"
3997
3998 fi
3999
4000 LIBPNG=$LIBS
4001 LIBS=$INITIALL_LIBS
4002
4003
4004
4005
4006
4007
4008 # Checks for header files.
4009 ac_ext=c
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4015 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4016 # On Suns, sometimes $CPP names a directory.
4017 if test -n "$CPP" && test -d "$CPP"; then
4018 CPP=
4019 fi
4020 if test -z "$CPP"; then
4021 if ${ac_cv_prog_CPP+:} false; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 # Double quotes because CPP needs to be expanded
4025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4026 do
4027 ac_preproc_ok=false
4028 for ac_c_preproc_warn_flag in '' yes
4029 do
4030 # Use a header file that comes with gcc, so configuring glibc
4031 # with a fresh cross-compiler works.
4032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4033 # <limits.h> exists even on freestanding compilers.
4034 # On the NeXT, cc -E runs the code through the compiler's parser,
4035 # not just through cpp. "Syntax error" is here to catch this case.
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #ifdef __STDC__
4039 # include <limits.h>
4040 #else
4041 # include <assert.h>
4042 #endif
4043 Syntax error
4044 _ACEOF
4045 if ac_fn_c_try_cpp "$LINENO"; then :
4046
4047 else
4048 # Broken: fails on valid input.
4049 continue
4050 fi
4051 rm -f conftest.err conftest.i conftest.$ac_ext
4052
4053 # OK, works on sane cases. Now check whether nonexistent headers
4054 # can be detected and how.
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4057 #include <ac_nonexistent.h>
4058 _ACEOF
4059 if ac_fn_c_try_cpp "$LINENO"; then :
4060 # Broken: success on invalid input.
4061 continue
4062 else
4063 # Passes both tests.
4064 ac_preproc_ok=:
4065 break
4066 fi
4067 rm -f conftest.err conftest.i conftest.$ac_ext
4068
4069 done
4070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4071 rm -f conftest.i conftest.err conftest.$ac_ext
4072 if $ac_preproc_ok; then :
4073 break
4074 fi
4075
4076 done
4077 ac_cv_prog_CPP=$CPP
4078
4079 fi
4080 CPP=$ac_cv_prog_CPP
4081 else
4082 ac_cv_prog_CPP=$CPP
4083 fi
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4085 $as_echo "$CPP" >&6; }
4086 ac_preproc_ok=false
4087 for ac_c_preproc_warn_flag in '' yes
4088 do
4089 # Use a header file that comes with gcc, so configuring glibc
4090 # with a fresh cross-compiler works.
4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092 # <limits.h> exists even on freestanding compilers.
4093 # On the NeXT, cc -E runs the code through the compiler's parser,
4094 # not just through cpp. "Syntax error" is here to catch this case.
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097 #ifdef __STDC__
4098 # include <limits.h>
4099 #else
4100 # include <assert.h>
4101 #endif
4102 Syntax error
4103 _ACEOF
4104 if ac_fn_c_try_cpp "$LINENO"; then :
4105
4106 else
4107 # Broken: fails on valid input.
4108 continue
4109 fi
4110 rm -f conftest.err conftest.i conftest.$ac_ext
4111
4112 # OK, works on sane cases. Now check whether nonexistent headers
4113 # can be detected and how.
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 #include <ac_nonexistent.h>
4117 _ACEOF
4118 if ac_fn_c_try_cpp "$LINENO"; then :
4119 # Broken: success on invalid input.
4120 continue
4121 else
4122 # Passes both tests.
4123 ac_preproc_ok=:
4124 break
4125 fi
4126 rm -f conftest.err conftest.i conftest.$ac_ext
4127
4128 done
4129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4130 rm -f conftest.i conftest.err conftest.$ac_ext
4131 if $ac_preproc_ok; then :
4132
4133 else
4134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4136 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4137 See \`config.log' for more details" "$LINENO" 5; }
4138 fi
4139
4140 ac_ext=c
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145
4146
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4148 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4149 if ${ac_cv_path_GREP+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -z "$GREP"; then
4153 ac_path_GREP_found=false
4154 # Loop through the user's path and test for each of PROGNAME-LIST
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_prog in grep ggrep; do
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4163 as_fn_executable_p "$ac_path_GREP" || continue
4164 # Check for GNU ac_path_GREP and select it if it is found.
4165 # Check for GNU $ac_path_GREP
4166 case `"$ac_path_GREP" --version 2>&1` in
4167 *GNU*)
4168 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4169 *)
4170 ac_count=0
4171 $as_echo_n 0123456789 >"conftest.in"
4172 while :
4173 do
4174 cat "conftest.in" "conftest.in" >"conftest.tmp"
4175 mv "conftest.tmp" "conftest.in"
4176 cp "conftest.in" "conftest.nl"
4177 $as_echo 'GREP' >> "conftest.nl"
4178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180 as_fn_arith $ac_count + 1 && ac_count=$as_val
4181 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4182 # Best one so far, save it but keep looking for a better one
4183 ac_cv_path_GREP="$ac_path_GREP"
4184 ac_path_GREP_max=$ac_count
4185 fi
4186 # 10*(2^10) chars as input seems more than enough
4187 test $ac_count -gt 10 && break
4188 done
4189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4190 esac
4191
4192 $ac_path_GREP_found && break 3
4193 done
4194 done
4195 done
4196 IFS=$as_save_IFS
4197 if test -z "$ac_cv_path_GREP"; then
4198 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4199 fi
4200 else
4201 ac_cv_path_GREP=$GREP
4202 fi
4203
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4206 $as_echo "$ac_cv_path_GREP" >&6; }
4207 GREP="$ac_cv_path_GREP"
4208
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4211 $as_echo_n "checking for egrep... " >&6; }
4212 if ${ac_cv_path_EGREP+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4216 then ac_cv_path_EGREP="$GREP -E"
4217 else
4218 if test -z "$EGREP"; then
4219 ac_path_EGREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in egrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4229 as_fn_executable_p "$ac_path_EGREP" || continue
4230 # Check for GNU ac_path_EGREP and select it if it is found.
4231 # Check for GNU $ac_path_EGREP
4232 case `"$ac_path_EGREP" --version 2>&1` in
4233 *GNU*)
4234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4235 *)
4236 ac_count=0
4237 $as_echo_n 0123456789 >"conftest.in"
4238 while :
4239 do
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 $as_echo 'EGREP' >> "conftest.nl"
4244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 as_fn_arith $ac_count + 1 && ac_count=$as_val
4247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_EGREP="$ac_path_EGREP"
4250 ac_path_EGREP_max=$ac_count
4251 fi
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4254 done
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4257
4258 $ac_path_EGREP_found && break 3
4259 done
4260 done
4261 done
4262 IFS=$as_save_IFS
4263 if test -z "$ac_cv_path_EGREP"; then
4264 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265 fi
4266 else
4267 ac_cv_path_EGREP=$EGREP
4268 fi
4269
4270 fi
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4273 $as_echo "$ac_cv_path_EGREP" >&6; }
4274 EGREP="$ac_cv_path_EGREP"
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4278 $as_echo_n "checking for ANSI C header files... " >&6; }
4279 if ${ac_cv_header_stdc+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 #include <stdlib.h>
4285 #include <stdarg.h>
4286 #include <string.h>
4287 #include <float.h>
4288
4289 int
4290 main ()
4291 {
4292
4293 ;
4294 return 0;
4295 }
4296 _ACEOF
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298 ac_cv_header_stdc=yes
4299 else
4300 ac_cv_header_stdc=no
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303
4304 if test $ac_cv_header_stdc = yes; then
4305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #include <string.h>
4309
4310 _ACEOF
4311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4312 $EGREP "memchr" >/dev/null 2>&1; then :
4313
4314 else
4315 ac_cv_header_stdc=no
4316 fi
4317 rm -f conftest*
4318
4319 fi
4320
4321 if test $ac_cv_header_stdc = yes; then
4322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #include <stdlib.h>
4326
4327 _ACEOF
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 $EGREP "free" >/dev/null 2>&1; then :
4330
4331 else
4332 ac_cv_header_stdc=no
4333 fi
4334 rm -f conftest*
4335
4336 fi
4337
4338 if test $ac_cv_header_stdc = yes; then
4339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4340 if test "$cross_compiling" = yes; then :
4341 :
4342 else
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #include <ctype.h>
4346 #include <stdlib.h>
4347 #if ((' ' & 0x0FF) == 0x020)
4348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4350 #else
4351 # define ISLOWER(c) \
4352 (('a' <= (c) && (c) <= 'i') \
4353 || ('j' <= (c) && (c) <= 'r') \
4354 || ('s' <= (c) && (c) <= 'z'))
4355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4356 #endif
4357
4358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4359 int
4360 main ()
4361 {
4362 int i;
4363 for (i = 0; i < 256; i++)
4364 if (XOR (islower (i), ISLOWER (i))
4365 || toupper (i) != TOUPPER (i))
4366 return 2;
4367 return 0;
4368 }
4369 _ACEOF
4370 if ac_fn_c_try_run "$LINENO"; then :
4371
4372 else
4373 ac_cv_header_stdc=no
4374 fi
4375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4376 conftest.$ac_objext conftest.beam conftest.$ac_ext
4377 fi
4378
4379 fi
4380 fi
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4382 $as_echo "$ac_cv_header_stdc" >&6; }
4383 if test $ac_cv_header_stdc = yes; then
4384
4385 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4386
4387 fi
4388
4389 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4391 inttypes.h stdint.h unistd.h
4392 do :
4393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4394 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4395 "
4396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4397 cat >>confdefs.h <<_ACEOF
4398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4399 _ACEOF
4400
4401 fi
4402
4403 done
4404
4405
4406 for ac_header in cups/cups.h cups/raster.h
4407 do :
4408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4409 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4410 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4411 cat >>confdefs.h <<_ACEOF
4412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4413 _ACEOF
4414
4415 fi
4416
4417 done
4418
4419
4420 # Checks for typedefs, structures, and compiler characteristics.
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4422 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4423 if ${ac_cv_c_const+:} false; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428
4429 int
4430 main ()
4431 {
4432
4433 #ifndef __cplusplus
4434 /* Ultrix mips cc rejects this sort of thing. */
4435 typedef int charset[2];
4436 const charset cs = { 0, 0 };
4437 /* SunOS 4.1.1 cc rejects this. */
4438 char const *const *pcpcc;
4439 char **ppc;
4440 /* NEC SVR4.0.2 mips cc rejects this. */
4441 struct point {int x, y;};
4442 static struct point const zero = {0,0};
4443 /* AIX XL C 1.02.0.0 rejects this.
4444 It does not let you subtract one const X* pointer from another in
4445 an arm of an if-expression whose if-part is not a constant
4446 expression */
4447 const char *g = "string";
4448 pcpcc = &g + (g ? g-g : 0);
4449 /* HPUX 7.0 cc rejects these. */
4450 ++pcpcc;
4451 ppc = (char**) pcpcc;
4452 pcpcc = (char const *const *) ppc;
4453 { /* SCO 3.2v4 cc rejects this sort of thing. */
4454 char tx;
4455 char *t = &tx;
4456 char const *s = 0 ? (char *) 0 : (char const *) 0;
4457
4458 *t++ = 0;
4459 if (s) return 0;
4460 }
4461 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4462 int x[] = {25, 17};
4463 const int *foo = &x[0];
4464 ++foo;
4465 }
4466 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4467 typedef const int *iptr;
4468 iptr p = 0;
4469 ++p;
4470 }
4471 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4472 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4473 struct s { int j; const int *ap[3]; } bx;
4474 struct s *b = &bx; b->j = 5;
4475 }
4476 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4477 const int foo = 10;
4478 if (!foo) return 0;
4479 }
4480 return !cs[0] && !zero.x;
4481 #endif
4482
4483 ;
4484 return 0;
4485 }
4486 _ACEOF
4487 if ac_fn_c_try_compile "$LINENO"; then :
4488 ac_cv_c_const=yes
4489 else
4490 ac_cv_c_const=no
4491 fi
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 fi
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4495 $as_echo "$ac_cv_c_const" >&6; }
4496 if test $ac_cv_c_const = no; then
4497
4498 $as_echo "#define const /**/" >>confdefs.h
4499
4500 fi
4501
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4503 $as_echo_n "checking for inline... " >&6; }
4504 if ${ac_cv_c_inline+:} false; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 ac_cv_c_inline=no
4508 for ac_kw in inline __inline__ __inline; do
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511 #ifndef __cplusplus
4512 typedef int foo_t;
4513 static $ac_kw foo_t static_foo () {return 0; }
4514 $ac_kw foo_t foo () {return 0; }
4515 #endif
4516
4517 _ACEOF
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519 ac_cv_c_inline=$ac_kw
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 test "$ac_cv_c_inline" != no && break
4523 done
4524
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4527 $as_echo "$ac_cv_c_inline" >&6; }
4528
4529 case $ac_cv_c_inline in
4530 inline | yes) ;;
4531 *)
4532 case $ac_cv_c_inline in
4533 no) ac_val=;;
4534 *) ac_val=$ac_cv_c_inline;;
4535 esac
4536 cat >>confdefs.h <<_ACEOF
4537 #ifndef __cplusplus
4538 #define inline $ac_val
4539 #endif
4540 _ACEOF
4541 ;;
4542 esac
4543
4544
4545 # Checks for library functions.
4546 for ac_func in strcasecmp strtol
4547 do :
4548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4549 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4550 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4551 cat >>confdefs.h <<_ACEOF
4552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4553 _ACEOF
4554
4555 fi
4556 done
4557
4558
4559 ac_config_files="$ac_config_files Makefile ptouch-driver.spec ptouch-driver-foomatic.spec"
4560
4561 cat >confcache <<\_ACEOF
4562 # This file is a shell script that caches the results of configure
4563 # tests run on this system so they can be shared between configure
4564 # scripts and configure runs, see configure's option --config-cache.
4565 # It is not useful on other systems. If it contains results you don't
4566 # want to keep, you may remove or edit it.
4567 #
4568 # config.status only pays attention to the cache file if you give it
4569 # the --recheck option to rerun configure.
4570 #
4571 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4572 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4573 # following values.
4574
4575 _ACEOF
4576
4577 # The following way of writing the cache mishandles newlines in values,
4578 # but we know of no workaround that is simple, portable, and efficient.
4579 # So, we kill variables containing newlines.
4580 # Ultrix sh set writes to stderr and can't be redirected directly,
4581 # and sets the high bit in the cache file unless we assign to the vars.
4582 (
4583 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4584 eval ac_val=\$$ac_var
4585 case $ac_val in #(
4586 *${as_nl}*)
4587 case $ac_var in #(
4588 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4589 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4590 esac
4591 case $ac_var in #(
4592 _ | IFS | as_nl) ;; #(
4593 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4594 *) { eval $ac_var=; unset $ac_var;} ;;
4595 esac ;;
4596 esac
4597 done
4598
4599 (set) 2>&1 |
4600 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4601 *${as_nl}ac_space=\ *)
4602 # `set' does not quote correctly, so add quotes: double-quote
4603 # substitution turns \\\\ into \\, and sed turns \\ into \.
4604 sed -n \
4605 "s/'/'\\\\''/g;
4606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4607 ;; #(
4608 *)
4609 # `set' quotes correctly as required by POSIX, so do not add quotes.
4610 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4611 ;;
4612 esac |
4613 sort
4614 ) |
4615 sed '
4616 /^ac_cv_env_/b end
4617 t clear
4618 :clear
4619 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4620 t end
4621 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4622 :end' >>confcache
4623 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4624 if test -w "$cache_file"; then
4625 if test "x$cache_file" != "x/dev/null"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4627 $as_echo "$as_me: updating cache $cache_file" >&6;}
4628 if test ! -f "$cache_file" || test -h "$cache_file"; then
4629 cat confcache >"$cache_file"
4630 else
4631 case $cache_file in #(
4632 */* | ?:*)
4633 mv -f confcache "$cache_file"$$ &&
4634 mv -f "$cache_file"$$ "$cache_file" ;; #(
4635 *)
4636 mv -f confcache "$cache_file" ;;
4637 esac
4638 fi
4639 fi
4640 else
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4642 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4643 fi
4644 fi
4645 rm -f confcache
4646
4647 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4648 # Let make expand exec_prefix.
4649 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4650
4651 DEFS=-DHAVE_CONFIG_H
4652
4653 ac_libobjs=
4654 ac_ltlibobjs=
4655 U=
4656 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4657 # 1. Remove the extension, and $U if already installed.
4658 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4659 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4660 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4661 # will be set to the directory where LIBOBJS objects are built.
4662 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4663 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4664 done
4665 LIBOBJS=$ac_libobjs
4666
4667 LTLIBOBJS=$ac_ltlibobjs
4668
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
4671 $as_echo_n "checking that generated files are newer than configure... " >&6; }
4672 if test -n "$am_sleep_pid"; then
4673 # Hide warnings about reused PIDs.
4674 wait $am_sleep_pid 2>/dev/null
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
4677 $as_echo "done" >&6; }
4678 if test -n "$EXEEXT"; then
4679 am__EXEEXT_TRUE=
4680 am__EXEEXT_FALSE='#'
4681 else
4682 am__EXEEXT_TRUE='#'
4683 am__EXEEXT_FALSE=
4684 fi
4685
4686 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4687 as_fn_error $? "conditional \"AMDEP\" was never defined.
4688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4689 fi
4690 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4691 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4693 fi
4694
4695 : "${CONFIG_STATUS=./config.status}"
4696 ac_write_fail=0
4697 ac_clean_files_save=$ac_clean_files
4698 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4700 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4701 as_write_fail=0
4702 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4703 #! $SHELL
4704 # Generated by $as_me.
4705 # Run this file to recreate the current configuration.
4706 # Compiler output produced by configure, useful for debugging
4707 # configure, is in config.log if it exists.
4708
4709 debug=false
4710 ac_cs_recheck=false
4711 ac_cs_silent=false
4712
4713 SHELL=\${CONFIG_SHELL-$SHELL}
4714 export SHELL
4715 _ASEOF
4716 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4717 ## -------------------- ##
4718 ## M4sh Initialization. ##
4719 ## -------------------- ##
4720
4721 # Be more Bourne compatible
4722 DUALCASE=1; export DUALCASE # for MKS sh
4723 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4724 emulate sh
4725 NULLCMD=:
4726 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4727 # is contrary to our usage. Disable this feature.
4728 alias -g '${1+"$@"}'='"$@"'
4729 setopt NO_GLOB_SUBST
4730 else
4731 case `(set -o) 2>/dev/null` in #(
4732 *posix*) :
4733 set -o posix ;; #(
4734 *) :
4735 ;;
4736 esac
4737 fi
4738
4739
4740 as_nl='
4741 '
4742 export as_nl
4743 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4744 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4745 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4746 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4747 # Prefer a ksh shell builtin over an external printf program on Solaris,
4748 # but without wasting forks for bash or zsh.
4749 if test -z "$BASH_VERSION$ZSH_VERSION" \
4750 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4751 as_echo='print -r --'
4752 as_echo_n='print -rn --'
4753 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4754 as_echo='printf %s\n'
4755 as_echo_n='printf %s'
4756 else
4757 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4758 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4759 as_echo_n='/usr/ucb/echo -n'
4760 else
4761 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4762 as_echo_n_body='eval
4763 arg=$1;
4764 case $arg in #(
4765 *"$as_nl"*)
4766 expr "X$arg" : "X\\(.*\\)$as_nl";
4767 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4768 esac;
4769 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4770 '
4771 export as_echo_n_body
4772 as_echo_n='sh -c $as_echo_n_body as_echo'
4773 fi
4774 export as_echo_body
4775 as_echo='sh -c $as_echo_body as_echo'
4776 fi
4777
4778 # The user is always right.
4779 if test "${PATH_SEPARATOR+set}" != set; then
4780 PATH_SEPARATOR=:
4781 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4782 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4783 PATH_SEPARATOR=';'
4784 }
4785 fi
4786
4787
4788 # IFS
4789 # We need space, tab and new line, in precisely that order. Quoting is
4790 # there to prevent editors from complaining about space-tab.
4791 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4792 # splitting by setting IFS to empty value.)
4793 IFS=" "" $as_nl"
4794
4795 # Find who we are. Look in the path if we contain no directory separator.
4796 as_myself=
4797 case $0 in #((
4798 *[\\/]* ) as_myself=$0 ;;
4799 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4801 do
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4805 done
4806 IFS=$as_save_IFS
4807
4808 ;;
4809 esac
4810 # We did not find ourselves, most probably we were run as `sh COMMAND'
4811 # in which case we are not to be found in the path.
4812 if test "x$as_myself" = x; then
4813 as_myself=$0
4814 fi
4815 if test ! -f "$as_myself"; then
4816 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4817 exit 1
4818 fi
4819
4820 # Unset variables that we do not need and which cause bugs (e.g. in
4821 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4822 # suppresses any "Segmentation fault" message there. '((' could
4823 # trigger a bug in pdksh 5.2.14.
4824 for as_var in BASH_ENV ENV MAIL MAILPATH
4825 do eval test x\${$as_var+set} = xset \
4826 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4827 done
4828 PS1='$ '
4829 PS2='> '
4830 PS4='+ '
4831
4832 # NLS nuisances.
4833 LC_ALL=C
4834 export LC_ALL
4835 LANGUAGE=C
4836 export LANGUAGE
4837
4838 # CDPATH.
4839 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4840
4841
4842 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4843 # ----------------------------------------
4844 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4845 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4846 # script with STATUS, using 1 if that was 0.
4847 as_fn_error ()
4848 {
4849 as_status=$1; test $as_status -eq 0 && as_status=1
4850 if test "$4"; then
4851 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4852 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4853 fi
4854 $as_echo "$as_me: error: $2" >&2
4855 as_fn_exit $as_status
4856 } # as_fn_error
4857
4858
4859 # as_fn_set_status STATUS
4860 # -----------------------
4861 # Set $? to STATUS, without forking.
4862 as_fn_set_status ()
4863 {
4864 return $1
4865 } # as_fn_set_status
4866
4867 # as_fn_exit STATUS
4868 # -----------------
4869 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4870 as_fn_exit ()
4871 {
4872 set +e
4873 as_fn_set_status $1
4874 exit $1
4875 } # as_fn_exit
4876
4877 # as_fn_unset VAR
4878 # ---------------
4879 # Portably unset VAR.
4880 as_fn_unset ()
4881 {
4882 { eval $1=; unset $1;}
4883 }
4884 as_unset=as_fn_unset
4885 # as_fn_append VAR VALUE
4886 # ----------------------
4887 # Append the text in VALUE to the end of the definition contained in VAR. Take
4888 # advantage of any shell optimizations that allow amortized linear growth over
4889 # repeated appends, instead of the typical quadratic growth present in naive
4890 # implementations.
4891 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4892 eval 'as_fn_append ()
4893 {
4894 eval $1+=\$2
4895 }'
4896 else
4897 as_fn_append ()
4898 {
4899 eval $1=\$$1\$2
4900 }
4901 fi # as_fn_append
4902
4903 # as_fn_arith ARG...
4904 # ------------------
4905 # Perform arithmetic evaluation on the ARGs, and store the result in the
4906 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4907 # must be portable across $(()) and expr.
4908 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4909 eval 'as_fn_arith ()
4910 {
4911 as_val=$(( $* ))
4912 }'
4913 else
4914 as_fn_arith ()
4915 {
4916 as_val=`expr "$@" || test $? -eq 1`
4917 }
4918 fi # as_fn_arith
4919
4920
4921 if expr a : '\(a\)' >/dev/null 2>&1 &&
4922 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4923 as_expr=expr
4924 else
4925 as_expr=false
4926 fi
4927
4928 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4929 as_basename=basename
4930 else
4931 as_basename=false
4932 fi
4933
4934 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4935 as_dirname=dirname
4936 else
4937 as_dirname=false
4938 fi
4939
4940 as_me=`$as_basename -- "$0" ||
4941 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4942 X"$0" : 'X\(//\)$' \| \
4943 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4944 $as_echo X/"$0" |
4945 sed '/^.*\/\([^/][^/]*\)\/*$/{
4946 s//\1/
4947 q
4948 }
4949 /^X\/\(\/\/\)$/{
4950 s//\1/
4951 q
4952 }
4953 /^X\/\(\/\).*/{
4954 s//\1/
4955 q
4956 }
4957 s/.*/./; q'`
4958
4959 # Avoid depending upon Character Ranges.
4960 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4961 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4962 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4963 as_cr_digits='0123456789'
4964 as_cr_alnum=$as_cr_Letters$as_cr_digits
4965
4966 ECHO_C= ECHO_N= ECHO_T=
4967 case `echo -n x` in #(((((
4968 -n*)
4969 case `echo 'xy\c'` in
4970 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4971 xy) ECHO_C='\c';;
4972 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4973 ECHO_T=' ';;
4974 esac;;
4975 *)
4976 ECHO_N='-n';;
4977 esac
4978
4979 rm -f conf$$ conf$$.exe conf$$.file
4980 if test -d conf$$.dir; then
4981 rm -f conf$$.dir/conf$$.file
4982 else
4983 rm -f conf$$.dir
4984 mkdir conf$$.dir 2>/dev/null
4985 fi
4986 if (echo >conf$$.file) 2>/dev/null; then
4987 if ln -s conf$$.file conf$$ 2>/dev/null; then
4988 as_ln_s='ln -s'
4989 # ... but there are two gotchas:
4990 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4991 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4992 # In both cases, we have to default to `cp -pR'.
4993 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4994 as_ln_s='cp -pR'
4995 elif ln conf$$.file conf$$ 2>/dev/null; then
4996 as_ln_s=ln
4997 else
4998 as_ln_s='cp -pR'
4999 fi
5000 else
5001 as_ln_s='cp -pR'
5002 fi
5003 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5004 rmdir conf$$.dir 2>/dev/null
5005
5006
5007 # as_fn_mkdir_p
5008 # -------------
5009 # Create "$as_dir" as a directory, including parents if necessary.
5010 as_fn_mkdir_p ()
5011 {
5012
5013 case $as_dir in #(
5014 -*) as_dir=./$as_dir;;
5015 esac
5016 test -d "$as_dir" || eval $as_mkdir_p || {
5017 as_dirs=
5018 while :; do
5019 case $as_dir in #(
5020 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5021 *) as_qdir=$as_dir;;
5022 esac
5023 as_dirs="'$as_qdir' $as_dirs"
5024 as_dir=`$as_dirname -- "$as_dir" ||
5025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5026 X"$as_dir" : 'X\(//\)[^/]' \| \
5027 X"$as_dir" : 'X\(//\)$' \| \
5028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5029 $as_echo X"$as_dir" |
5030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5031 s//\1/
5032 q
5033 }
5034 /^X\(\/\/\)[^/].*/{
5035 s//\1/
5036 q
5037 }
5038 /^X\(\/\/\)$/{
5039 s//\1/
5040 q
5041 }
5042 /^X\(\/\).*/{
5043 s//\1/
5044 q
5045 }
5046 s/.*/./; q'`
5047 test -d "$as_dir" && break
5048 done
5049 test -z "$as_dirs" || eval "mkdir $as_dirs"
5050 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5051
5052
5053 } # as_fn_mkdir_p
5054 if mkdir -p . 2>/dev/null; then
5055 as_mkdir_p='mkdir -p "$as_dir"'
5056 else
5057 test -d ./-p && rmdir ./-p
5058 as_mkdir_p=false
5059 fi
5060
5061
5062 # as_fn_executable_p FILE
5063 # -----------------------
5064 # Test if FILE is an executable regular file.
5065 as_fn_executable_p ()
5066 {
5067 test -f "$1" && test -x "$1"
5068 } # as_fn_executable_p
5069 as_test_x='test -x'
5070 as_executable_p=as_fn_executable_p
5071
5072 # Sed expression to map a string onto a valid CPP name.
5073 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5074
5075 # Sed expression to map a string onto a valid variable name.
5076 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5077
5078
5079 exec 6>&1
5080 ## ----------------------------------- ##
5081 ## Main body of $CONFIG_STATUS script. ##
5082 ## ----------------------------------- ##
5083 _ASEOF
5084 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5085
5086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5087 # Save the log message, to keep $0 and so on meaningful, and to
5088 # report actual input values of CONFIG_FILES etc. instead of their
5089 # values after options handling.
5090 ac_log="
5091 This file was extended by ptouch-driver $as_me 1.5, which was
5092 generated by GNU Autoconf 2.69. Invocation command line was
5093
5094 CONFIG_FILES = $CONFIG_FILES
5095 CONFIG_HEADERS = $CONFIG_HEADERS
5096 CONFIG_LINKS = $CONFIG_LINKS
5097 CONFIG_COMMANDS = $CONFIG_COMMANDS
5098 $ $0 $@
5099
5100 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5101 "
5102
5103 _ACEOF
5104
5105 case $ac_config_files in *"
5106 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5107 esac
5108
5109 case $ac_config_headers in *"
5110 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5111 esac
5112
5113
5114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5115 # Files that config.status was made for.
5116 config_files="$ac_config_files"
5117 config_headers="$ac_config_headers"
5118 config_commands="$ac_config_commands"
5119
5120 _ACEOF
5121
5122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5123 ac_cs_usage="\
5124 \`$as_me' instantiates files and other configuration actions
5125 from templates according to the current configuration. Unless the files
5126 and actions are specified as TAGs, all are instantiated by default.
5127
5128 Usage: $0 [OPTION]... [TAG]...
5129
5130 -h, --help print this help, then exit
5131 -V, --version print version number and configuration settings, then exit
5132 --config print configuration, then exit
5133 -q, --quiet, --silent
5134 do not print progress messages
5135 -d, --debug don't remove temporary files
5136 --recheck update $as_me by reconfiguring in the same conditions
5137 --file=FILE[:TEMPLATE]
5138 instantiate the configuration file FILE
5139 --header=FILE[:TEMPLATE]
5140 instantiate the configuration header FILE
5141
5142 Configuration files:
5143 $config_files
5144
5145 Configuration headers:
5146 $config_headers
5147
5148 Configuration commands:
5149 $config_commands
5150
5151 Report bugs to <andreas.gruenbacher@gmail.com>."
5152
5153 _ACEOF
5154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5155 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5156 ac_cs_version="\\
5157 ptouch-driver config.status 1.5
5158 configured by $0, generated by GNU Autoconf 2.69,
5159 with options \\"\$ac_cs_config\\"
5160
5161 Copyright (C) 2012 Free Software Foundation, Inc.
5162 This config.status script is free software; the Free Software Foundation
5163 gives unlimited permission to copy, distribute and modify it."
5164
5165 ac_pwd='$ac_pwd'
5166 srcdir='$srcdir'
5167 INSTALL='$INSTALL'
5168 MKDIR_P='$MKDIR_P'
5169 AWK='$AWK'
5170 test -n "\$AWK" || AWK=awk
5171 _ACEOF
5172
5173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5174 # The default lists apply if the user does not specify any file.
5175 ac_need_defaults=:
5176 while test $# != 0
5177 do
5178 case $1 in
5179 --*=?*)
5180 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5181 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5182 ac_shift=:
5183 ;;
5184 --*=)
5185 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5186 ac_optarg=
5187 ac_shift=:
5188 ;;
5189 *)
5190 ac_option=$1
5191 ac_optarg=$2
5192 ac_shift=shift
5193 ;;
5194 esac
5195
5196 case $ac_option in
5197 # Handling of the options.
5198 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5199 ac_cs_recheck=: ;;
5200 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5201 $as_echo "$ac_cs_version"; exit ;;
5202 --config | --confi | --conf | --con | --co | --c )
5203 $as_echo "$ac_cs_config"; exit ;;
5204 --debug | --debu | --deb | --de | --d | -d )
5205 debug=: ;;
5206 --file | --fil | --fi | --f )
5207 $ac_shift
5208 case $ac_optarg in
5209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5210 '') as_fn_error $? "missing file argument" ;;
5211 esac
5212 as_fn_append CONFIG_FILES " '$ac_optarg'"
5213 ac_need_defaults=false;;
5214 --header | --heade | --head | --hea )
5215 $ac_shift
5216 case $ac_optarg in
5217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5218 esac
5219 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5220 ac_need_defaults=false;;
5221 --he | --h)
5222 # Conflict between --help and --header
5223 as_fn_error $? "ambiguous option: \`$1'
5224 Try \`$0 --help' for more information.";;
5225 --help | --hel | -h )
5226 $as_echo "$ac_cs_usage"; exit ;;
5227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5228 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5229 ac_cs_silent=: ;;
5230
5231 # This is an error.
5232 -*) as_fn_error $? "unrecognized option: \`$1'
5233 Try \`$0 --help' for more information." ;;
5234
5235 *) as_fn_append ac_config_targets " $1"
5236 ac_need_defaults=false ;;
5237
5238 esac
5239 shift
5240 done
5241
5242 ac_configure_extra_args=
5243
5244 if $ac_cs_silent; then
5245 exec 6>/dev/null
5246 ac_configure_extra_args="$ac_configure_extra_args --silent"
5247 fi
5248
5249 _ACEOF
5250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5251 if \$ac_cs_recheck; then
5252 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5253 shift
5254 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5255 CONFIG_SHELL='$SHELL'
5256 export CONFIG_SHELL
5257 exec "\$@"
5258 fi
5259
5260 _ACEOF
5261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5262 exec 5>>config.log
5263 {
5264 echo
5265 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5266 ## Running $as_me. ##
5267 _ASBOX
5268 $as_echo "$ac_log"
5269 } >&5
5270
5271 _ACEOF
5272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5273 #
5274 # INIT-COMMANDS
5275 #
5276 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
5277
5278 _ACEOF
5279
5280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5281
5282 # Handling of arguments.
5283 for ac_config_target in $ac_config_targets
5284 do
5285 case $ac_config_target in
5286 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5287 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5288 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5289 "ptouch-driver.spec") CONFIG_FILES="$CONFIG_FILES ptouch-driver.spec" ;;
5290 "ptouch-driver-foomatic.spec") CONFIG_FILES="$CONFIG_FILES ptouch-driver-foomatic.spec" ;;
5291
5292 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5293 esac
5294 done
5295
5296
5297 # If the user did not use the arguments to specify the items to instantiate,
5298 # then the envvar interface is used. Set only those that are not.
5299 # We use the long form for the default assignment because of an extremely
5300 # bizarre bug on SunOS 4.1.3.
5301 if $ac_need_defaults; then
5302 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5303 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5304 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5305 fi
5306
5307 # Have a temporary directory for convenience. Make it in the build tree
5308 # simply because there is no reason against having it here, and in addition,
5309 # creating and moving files from /tmp can sometimes cause problems.
5310 # Hook for its removal unless debugging.
5311 # Note that there is a small window in which the directory will not be cleaned:
5312 # after its creation but before its name has been assigned to `$tmp'.
5313 $debug ||
5314 {
5315 tmp= ac_tmp=
5316 trap 'exit_status=$?
5317 : "${ac_tmp:=$tmp}"
5318 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5319 ' 0
5320 trap 'as_fn_exit 1' 1 2 13 15
5321 }
5322 # Create a (secure) tmp directory for tmp files.
5323
5324 {
5325 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5326 test -d "$tmp"
5327 } ||
5328 {
5329 tmp=./conf$$-$RANDOM
5330 (umask 077 && mkdir "$tmp")
5331 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5332 ac_tmp=$tmp
5333
5334 # Set up the scripts for CONFIG_FILES section.
5335 # No need to generate them if there are no CONFIG_FILES.
5336 # This happens for instance with `./config.status config.h'.
5337 if test -n "$CONFIG_FILES"; then
5338
5339
5340 ac_cr=`echo X | tr X '\015'`
5341 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5342 # But we know of no other shell where ac_cr would be empty at this
5343 # point, so we can use a bashism as a fallback.
5344 if test "x$ac_cr" = x; then
5345 eval ac_cr=\$\'\\r\'
5346 fi
5347 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5348 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5349 ac_cs_awk_cr='\\r'
5350 else
5351 ac_cs_awk_cr=$ac_cr
5352 fi
5353
5354 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5355 _ACEOF
5356
5357
5358 {
5359 echo "cat >conf$$subs.awk <<_ACEOF" &&
5360 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5361 echo "_ACEOF"
5362 } >conf$$subs.sh ||
5363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5364 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5365 ac_delim='%!_!# '
5366 for ac_last_try in false false false false false :; do
5367 . ./conf$$subs.sh ||
5368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5369
5370 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5371 if test $ac_delim_n = $ac_delim_num; then
5372 break
5373 elif $ac_last_try; then
5374 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5375 else
5376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5377 fi
5378 done
5379 rm -f conf$$subs.sh
5380
5381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5382 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5383 _ACEOF
5384 sed -n '
5385 h
5386 s/^/S["/; s/!.*/"]=/
5387 p
5388 g
5389 s/^[^!]*!//
5390 :repl
5391 t repl
5392 s/'"$ac_delim"'$//
5393 t delim
5394 :nl
5395 h
5396 s/\(.\{148\}\)..*/\1/
5397 t more1
5398 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5399 p
5400 n
5401 b repl
5402 :more1
5403 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5404 p
5405 g
5406 s/.\{148\}//
5407 t nl
5408 :delim
5409 h
5410 s/\(.\{148\}\)..*/\1/
5411 t more2
5412 s/["\\]/\\&/g; s/^/"/; s/$/"/
5413 p
5414 b
5415 :more2
5416 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5417 p
5418 g
5419 s/.\{148\}//
5420 t delim
5421 ' <conf$$subs.awk | sed '
5422 /^[^""]/{
5423 N
5424 s/\n//
5425 }
5426 ' >>$CONFIG_STATUS || ac_write_fail=1
5427 rm -f conf$$subs.awk
5428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5429 _ACAWK
5430 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5431 for (key in S) S_is_set[key] = 1
5432 FS = ""
5433
5434 }
5435 {
5436 line = $ 0
5437 nfields = split(line, field, "@")
5438 substed = 0
5439 len = length(field[1])
5440 for (i = 2; i < nfields; i++) {
5441 key = field[i]
5442 keylen = length(key)
5443 if (S_is_set[key]) {
5444 value = S[key]
5445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5446 len += length(value) + length(field[++i])
5447 substed = 1
5448 } else
5449 len += 1 + keylen
5450 }
5451
5452 print line
5453 }
5454
5455 _ACAWK
5456 _ACEOF
5457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5458 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5459 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5460 else
5461 cat
5462 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5463 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5464 _ACEOF
5465
5466 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5467 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5468 # trailing colons and then remove the whole line if VPATH becomes empty
5469 # (actually we leave an empty line to preserve line numbers).
5470 if test "x$srcdir" = x.; then
5471 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5472 h
5473 s///
5474 s/^/:/
5475 s/[ ]*$/:/
5476 s/:\$(srcdir):/:/g
5477 s/:\${srcdir}:/:/g
5478 s/:@srcdir@:/:/g
5479 s/^:*//
5480 s/:*$//
5481 x
5482 s/\(=[ ]*\).*/\1/
5483 G
5484 s/\n//
5485 s/^[^=]*=[ ]*$//
5486 }'
5487 fi
5488
5489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5490 fi # test -n "$CONFIG_FILES"
5491
5492 # Set up the scripts for CONFIG_HEADERS section.
5493 # No need to generate them if there are no CONFIG_HEADERS.
5494 # This happens for instance with `./config.status Makefile'.
5495 if test -n "$CONFIG_HEADERS"; then
5496 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5497 BEGIN {
5498 _ACEOF
5499
5500 # Transform confdefs.h into an awk script `defines.awk', embedded as
5501 # here-document in config.status, that substitutes the proper values into
5502 # config.h.in to produce config.h.
5503
5504 # Create a delimiter string that does not exist in confdefs.h, to ease
5505 # handling of long lines.
5506 ac_delim='%!_!# '
5507 for ac_last_try in false false :; do
5508 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5509 if test -z "$ac_tt"; then
5510 break
5511 elif $ac_last_try; then
5512 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5513 else
5514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5515 fi
5516 done
5517
5518 # For the awk script, D is an array of macro values keyed by name,
5519 # likewise P contains macro parameters if any. Preserve backslash
5520 # newline sequences.
5521
5522 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5523 sed -n '
5524 s/.\{148\}/&'"$ac_delim"'/g
5525 t rset
5526 :rset
5527 s/^[ ]*#[ ]*define[ ][ ]*/ /
5528 t def
5529 d
5530 :def
5531 s/\\$//
5532 t bsnl
5533 s/["\\]/\\&/g
5534 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5535 D["\1"]=" \3"/p
5536 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5537 d
5538 :bsnl
5539 s/["\\]/\\&/g
5540 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5541 D["\1"]=" \3\\\\\\n"\\/p
5542 t cont
5543 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5544 t cont
5545 d
5546 :cont
5547 n
5548 s/.\{148\}/&'"$ac_delim"'/g
5549 t clear
5550 :clear
5551 s/\\$//
5552 t bsnlc
5553 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5554 d
5555 :bsnlc
5556 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5557 b cont
5558 ' <confdefs.h | sed '
5559 s/'"$ac_delim"'/"\\\
5560 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5561
5562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5563 for (key in D) D_is_set[key] = 1
5564 FS = ""
5565 }
5566 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5567 line = \$ 0
5568 split(line, arg, " ")
5569 if (arg[1] == "#") {
5570 defundef = arg[2]
5571 mac1 = arg[3]
5572 } else {
5573 defundef = substr(arg[1], 2)
5574 mac1 = arg[2]
5575 }
5576 split(mac1, mac2, "(") #)
5577 macro = mac2[1]
5578 prefix = substr(line, 1, index(line, defundef) - 1)
5579 if (D_is_set[macro]) {
5580 # Preserve the white space surrounding the "#".
5581 print prefix "define", macro P[macro] D[macro]
5582 next
5583 } else {
5584 # Replace #undef with comments. This is necessary, for example,
5585 # in the case of _POSIX_SOURCE, which is predefined and required
5586 # on some systems where configure will not decide to define it.
5587 if (defundef == "undef") {
5588 print "/*", prefix defundef, macro, "*/"
5589 next
5590 }
5591 }
5592 }
5593 { print }
5594 _ACAWK
5595 _ACEOF
5596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5597 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5598 fi # test -n "$CONFIG_HEADERS"
5599
5600
5601 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5602 shift
5603 for ac_tag
5604 do
5605 case $ac_tag in
5606 :[FHLC]) ac_mode=$ac_tag; continue;;
5607 esac
5608 case $ac_mode$ac_tag in
5609 :[FHL]*:*);;
5610 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5611 :[FH]-) ac_tag=-:-;;
5612 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5613 esac
5614 ac_save_IFS=$IFS
5615 IFS=:
5616 set x $ac_tag
5617 IFS=$ac_save_IFS
5618 shift
5619 ac_file=$1
5620 shift
5621
5622 case $ac_mode in
5623 :L) ac_source=$1;;
5624 :[FH])
5625 ac_file_inputs=
5626 for ac_f
5627 do
5628 case $ac_f in
5629 -) ac_f="$ac_tmp/stdin";;
5630 *) # Look for the file first in the build tree, then in the source tree
5631 # (if the path is not absolute). The absolute path cannot be DOS-style,
5632 # because $ac_f cannot contain `:'.
5633 test -f "$ac_f" ||
5634 case $ac_f in
5635 [\\/$]*) false;;
5636 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5637 esac ||
5638 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5639 esac
5640 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5641 as_fn_append ac_file_inputs " '$ac_f'"
5642 done
5643
5644 # Let's still pretend it is `configure' which instantiates (i.e., don't
5645 # use $as_me), people would be surprised to read:
5646 # /* config.h. Generated by config.status. */
5647 configure_input='Generated from '`
5648 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5649 `' by configure.'
5650 if test x"$ac_file" != x-; then
5651 configure_input="$ac_file. $configure_input"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5653 $as_echo "$as_me: creating $ac_file" >&6;}
5654 fi
5655 # Neutralize special characters interpreted by sed in replacement strings.
5656 case $configure_input in #(
5657 *\&* | *\|* | *\\* )
5658 ac_sed_conf_input=`$as_echo "$configure_input" |
5659 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5660 *) ac_sed_conf_input=$configure_input;;
5661 esac
5662
5663 case $ac_tag in
5664 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5666 esac
5667 ;;
5668 esac
5669
5670 ac_dir=`$as_dirname -- "$ac_file" ||
5671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5672 X"$ac_file" : 'X\(//\)[^/]' \| \
5673 X"$ac_file" : 'X\(//\)$' \| \
5674 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5675 $as_echo X"$ac_file" |
5676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5677 s//\1/
5678 q
5679 }
5680 /^X\(\/\/\)[^/].*/{
5681 s//\1/
5682 q
5683 }
5684 /^X\(\/\/\)$/{
5685 s//\1/
5686 q
5687 }
5688 /^X\(\/\).*/{
5689 s//\1/
5690 q
5691 }
5692 s/.*/./; q'`
5693 as_dir="$ac_dir"; as_fn_mkdir_p
5694 ac_builddir=.
5695
5696 case "$ac_dir" in
5697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5698 *)
5699 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5700 # A ".." for each directory in $ac_dir_suffix.
5701 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5702 case $ac_top_builddir_sub in
5703 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5704 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5705 esac ;;
5706 esac
5707 ac_abs_top_builddir=$ac_pwd
5708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5709 # for backward compatibility:
5710 ac_top_builddir=$ac_top_build_prefix
5711
5712 case $srcdir in
5713 .) # We are building in place.
5714 ac_srcdir=.
5715 ac_top_srcdir=$ac_top_builddir_sub
5716 ac_abs_top_srcdir=$ac_pwd ;;
5717 [\\/]* | ?:[\\/]* ) # Absolute name.
5718 ac_srcdir=$srcdir$ac_dir_suffix;
5719 ac_top_srcdir=$srcdir
5720 ac_abs_top_srcdir=$srcdir ;;
5721 *) # Relative name.
5722 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5723 ac_top_srcdir=$ac_top_build_prefix$srcdir
5724 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5725 esac
5726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5727
5728
5729 case $ac_mode in
5730 :F)
5731 #
5732 # CONFIG_FILE
5733 #
5734
5735 case $INSTALL in
5736 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5737 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5738 esac
5739 ac_MKDIR_P=$MKDIR_P
5740 case $MKDIR_P in
5741 [\\/$]* | ?:[\\/]* ) ;;
5742 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5743 esac
5744 _ACEOF
5745
5746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5747 # If the template does not know about datarootdir, expand it.
5748 # FIXME: This hack should be removed a few years after 2.60.
5749 ac_datarootdir_hack=; ac_datarootdir_seen=
5750 ac_sed_dataroot='
5751 /datarootdir/ {
5752 p
5753 q
5754 }
5755 /@datadir@/p
5756 /@docdir@/p
5757 /@infodir@/p
5758 /@localedir@/p
5759 /@mandir@/p'
5760 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5761 *datarootdir*) ac_datarootdir_seen=yes;;
5762 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5764 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5765 _ACEOF
5766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5767 ac_datarootdir_hack='
5768 s&@datadir@&$datadir&g
5769 s&@docdir@&$docdir&g
5770 s&@infodir@&$infodir&g
5771 s&@localedir@&$localedir&g
5772 s&@mandir@&$mandir&g
5773 s&\\\${datarootdir}&$datarootdir&g' ;;
5774 esac
5775 _ACEOF
5776
5777 # Neutralize VPATH when `$srcdir' = `.'.
5778 # Shell code in configure.ac might set extrasub.
5779 # FIXME: do we really want to maintain this feature?
5780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5781 ac_sed_extra="$ac_vpsub
5782 $extrasub
5783 _ACEOF
5784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5785 :t
5786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5787 s|@configure_input@|$ac_sed_conf_input|;t t
5788 s&@top_builddir@&$ac_top_builddir_sub&;t t
5789 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5790 s&@srcdir@&$ac_srcdir&;t t
5791 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5792 s&@top_srcdir@&$ac_top_srcdir&;t t
5793 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5794 s&@builddir@&$ac_builddir&;t t
5795 s&@abs_builddir@&$ac_abs_builddir&;t t
5796 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5797 s&@INSTALL@&$ac_INSTALL&;t t
5798 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5799 $ac_datarootdir_hack
5800 "
5801 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5802 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5803
5804 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5805 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5806 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5807 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5809 which seems to be undefined. Please make sure it is defined" >&5
5810 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5811 which seems to be undefined. Please make sure it is defined" >&2;}
5812
5813 rm -f "$ac_tmp/stdin"
5814 case $ac_file in
5815 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5816 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5817 esac \
5818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5819 ;;
5820 :H)
5821 #
5822 # CONFIG_HEADER
5823 #
5824 if test x"$ac_file" != x-; then
5825 {
5826 $as_echo "/* $configure_input */" \
5827 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5828 } >"$ac_tmp/config.h" \
5829 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5830 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5832 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5833 else
5834 rm -f "$ac_file"
5835 mv "$ac_tmp/config.h" "$ac_file" \
5836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5837 fi
5838 else
5839 $as_echo "/* $configure_input */" \
5840 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5841 || as_fn_error $? "could not create -" "$LINENO" 5
5842 fi
5843 # Compute "$ac_file"'s index in $config_headers.
5844 _am_arg="$ac_file"
5845 _am_stamp_count=1
5846 for _am_header in $config_headers :; do
5847 case $_am_header in
5848 $_am_arg | $_am_arg:* )
5849 break ;;
5850 * )
5851 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5852 esac
5853 done
5854 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
5855 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5856 X"$_am_arg" : 'X\(//\)[^/]' \| \
5857 X"$_am_arg" : 'X\(//\)$' \| \
5858 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
5859 $as_echo X"$_am_arg" |
5860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5861 s//\1/
5862 q
5863 }
5864 /^X\(\/\/\)[^/].*/{
5865 s//\1/
5866 q
5867 }
5868 /^X\(\/\/\)$/{
5869 s//\1/
5870 q
5871 }
5872 /^X\(\/\).*/{
5873 s//\1/
5874 q
5875 }
5876 s/.*/./; q'`/stamp-h$_am_stamp_count
5877 ;;
5878
5879 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5880 $as_echo "$as_me: executing $ac_file commands" >&6;}
5881 ;;
5882 esac
5883
5884
5885 case $ac_file$ac_mode in
5886 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5887 # Older Autoconf quotes --file arguments for eval, but not when files
5888 # are listed without --file. Let's play safe and only enable the eval
5889 # if we detect the quoting.
5890 # TODO: see whether this extra hack can be removed once we start
5891 # requiring Autoconf 2.70 or later.
5892 case $CONFIG_FILES in #(
5893 *\'*) :
5894 eval set x "$CONFIG_FILES" ;; #(
5895 *) :
5896 set x $CONFIG_FILES ;; #(
5897 *) :
5898 ;;
5899 esac
5900 shift
5901 # Used to flag and report bootstrapping failures.
5902 am_rc=0
5903 for am_mf
5904 do
5905 # Strip MF so we end up with the name of the file.
5906 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
5907 # Check whether this is an Automake generated Makefile which includes
5908 # dependency-tracking related rules and includes.
5909 # Grep'ing the whole file directly is not great: AIX grep has a line
5910 # limit of 2048, but all sed's we know have understand at least 4000.
5911 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
5912 || continue
5913 am_dirpart=`$as_dirname -- "$am_mf" ||
5914 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5915 X"$am_mf" : 'X\(//\)[^/]' \| \
5916 X"$am_mf" : 'X\(//\)$' \| \
5917 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
5918 $as_echo X"$am_mf" |
5919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5920 s//\1/
5921 q
5922 }
5923 /^X\(\/\/\)[^/].*/{
5924 s//\1/
5925 q
5926 }
5927 /^X\(\/\/\)$/{
5928 s//\1/
5929 q
5930 }
5931 /^X\(\/\).*/{
5932 s//\1/
5933 q
5934 }
5935 s/.*/./; q'`
5936 am_filepart=`$as_basename -- "$am_mf" ||
5937 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
5938 X"$am_mf" : 'X\(//\)$' \| \
5939 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
5940 $as_echo X/"$am_mf" |
5941 sed '/^.*\/\([^/][^/]*\)\/*$/{
5942 s//\1/
5943 q
5944 }
5945 /^X\/\(\/\/\)$/{
5946 s//\1/
5947 q
5948 }
5949 /^X\/\(\/\).*/{
5950 s//\1/
5951 q
5952 }
5953 s/.*/./; q'`
5954 { echo "$as_me:$LINENO: cd "$am_dirpart" \
5955 && sed -e '/# am--include-marker/d' "$am_filepart" \
5956 | $MAKE -f - am--depfiles" >&5
5957 (cd "$am_dirpart" \
5958 && sed -e '/# am--include-marker/d' "$am_filepart" \
5959 | $MAKE -f - am--depfiles) >&5 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } || am_rc=$?
5963 done
5964 if test $am_rc -ne 0; then
5965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967 as_fn_error $? "Something went wrong bootstrapping makefile fragments
5968 for automatic dependency tracking. If GNU make was not used, consider
5969 re-running the configure script with MAKE=\"gmake\" (or whatever is
5970 necessary). You can also try re-running configure with the
5971 '--disable-dependency-tracking' option to at least be able to build
5972 the package (albeit without support for automatic dependency tracking).
5973 See \`config.log' for more details" "$LINENO" 5; }
5974 fi
5975 { am_dirpart=; unset am_dirpart;}
5976 { am_filepart=; unset am_filepart;}
5977 { am_mf=; unset am_mf;}
5978 { am_rc=; unset am_rc;}
5979 rm -f conftest-deps.mk
5980 }
5981 ;;
5982
5983 esac
5984 done # for ac_tag
5985
5986
5987 as_fn_exit 0
5988 _ACEOF
5989 ac_clean_files=$ac_clean_files_save
5990
5991 test $ac_write_fail = 0 ||
5992 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5993
5994
5995 # configure is writing to config.log, and then calls config.status.
5996 # config.status does its own redirection, appending to config.log.
5997 # Unfortunately, on DOS this fails, as config.log is still kept open
5998 # by configure, so config.status won't be able to write to it; its
5999 # output is simply discarded. So we exec the FD to /dev/null,
6000 # effectively closing config.log, so it can be properly (re)opened and
6001 # appended to by config.status. When coming back to configure, we
6002 # need to make the FD available again.
6003 if test "$no_create" != yes; then
6004 ac_cs_success=:
6005 ac_config_status_args=
6006 test "$silent" = yes &&
6007 ac_config_status_args="$ac_config_status_args --quiet"
6008 exec 5>/dev/null
6009 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6010 exec 5>>config.log
6011 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6012 # would make configure fail if this is the last instruction.
6013 $ac_cs_success || as_fn_exit 1
6014 fi
6015 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6017 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6018 fi
6019
6666 <id>printer/Brother-PT-2420PC</id>
6767 </printer>
6868 <printer>
69 <id>printer/Brother-PT-2430PC</id>
70 </printer>
71 <printer>
6972 <id>printer/Brother-PT-2450DX</id>
7073 </printer>
7174 <printer>
+0
-25
getusbprinterid less more
0 #!/usr/bin/perl
1
2 # len = 1024
3 # LPIOC_GET_DEVICE_ID(len) = _IOC(_IOC_READ, 'P', IOCNR_GET_DEVICE_ID, len)
4 # _IOC(), _IOC_READ as defined in /usr/include/asm/ioctl.h
5 $LPIOC_GET_DEVICE_ID = 0x84005001;
6 $LPIOC_GET_VID_PID = 0x84005006;
7
8 open FILE, "$ARGV[0]" or die "cannot open $ARGV[0]";
9
10 my $result;
11 ioctl(FILE, $LPIOC_GET_DEVICE_ID , $result) or die;
12 # Cut resulting string to its real length
13 my $length = ord(substr($result, 1, 1)) + (ord(substr($result, 0, 1)) << 8);
14 $result = substr($result, 2, $length-2);
15 # Remove non-printable characters
16 $result =~ tr/[\x0-\x1f]/\./;
17 print "DeviceID $result\n";
18
19 $result = pack("LL",0);
20 ioctl(FILE, $LPIOC_GET_VID_PID, $result) or die;
21 my( $v1, $v2 ) = unpack("LL", $result );
22 print "Vendor '$v1', Product '$v2'\n";
23
24 close FILE;
+0
-51
opt/Brother-QL-Resolution.xml less more
0 <!--
1 Copyright (c) 2006 Arne John Glenstrup <panic@itu.dk>
2
3 This file is part of ptouch-driver.
4
5 ptouch-driver is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or (at
8 your option) any later version.
9
10 ptouch-driver is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with ptouch-driver; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
18 USA
19 -->
20 <option type="enum" id="opt/Brother-QL-Resolution">
21 <arg_longname>
22 <en>Resolution</en>
23 </arg_longname>
24 <arg_shortname>
25 <en>Resolution</en><!-- backends only know <en> shortnames! -->
26 </arg_shortname>
27 <arg_execution>
28 <arg_group>General</arg_group>
29 <arg_order>100</arg_order>
30 <arg_spot>A</arg_spot>
31 <arg_substitution />
32 <arg_proto> -r%s</arg_proto>
33 </arg_execution>
34 <constraints>
35 <constraint sense="true">
36 <driver>ptouch-ql</driver>
37 </constraint>
38 </constraints>
39 <enum_vals>
40 <enum_val id="ev/300dpi">
41 <ev_longname>
42 <en>300 dpi</en>
43 </ev_longname>
44 <ev_shortname>
45 <en>300dpi</en>
46 </ev_shortname>
47 <ev_driverval>300x300</ev_driverval>
48 </enum_val>
49 </enum_vals>
50 </option>
0 <!--
1 Copyright (c) 2006 Arne John Glenstrup <panic@itu.dk>
2
3 This file is part of ptouch-driver.
4
5 ptouch-driver is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or (at
8 your option) any later version.
9
10 ptouch-driver is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with ptouch-driver; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
18 USA
19 -->
20 <printer id="printer/Brother-PT-2430PC">
21 <make>Brother</make>
22 <model>PT-2430PC</model>
23 <pcmodel>BR2430</pcmodel>
24 <mechanism>
25 <thermal/>
26 <!--not "color"-->
27 <resolution>
28 <dpi>
29 <x>180</x>
30 <y>180</y>
31 </dpi>
32 </resolution>
33 </mechanism>
34 <url>https://www.brother.co.uk/labelling-and-receipts/pt2430pc</url>
35 <lang>
36 <proprietary />
37 </lang>
38 <autodetect>
39 <general>
40 <ieee1284>MFG:Brother;CMD:PT-CBP;MDL:2430PC;CLS:PRINTER;</ieee1284>
41 <commandset>PT-CBP</commandset>
42 <description>Brother PT-2430PC</description>
43 <manufacturer>Brother</manufacturer>
44 <model>PT-2430PC</model>
45 </general>
46 </autodetect>
47 <functionality>D</functionality>
48 <driver>ptouch-pt</driver>
49 <unverified/>
50 <!--no "contrib_url"-->
51 <comments>
52 <en>
53 Prints 10mm per second.
54 </en>
55 </comments>
56 <select>
57 <option id="opt/Brother-PT-LegacyTransferMode" />
58 <option id="opt/Brother-PTQL-Resolution">
59 <enum_val id="ev/180dpi" />
60 </option>
61 <option id="opt/Brother-PTQL-BytesPerLine">
62 <enum_val id="ev/16" />
63 </option>
64 <option id="opt/Brother-PT-PageSize">
65 <arg_defval>ev/tz-24</arg_defval>
66 <enum_val id="ev/tz-6" />
67 <enum_val id="ev/tz-9" />
68 <enum_val id="ev/tz-12" />
69 <enum_val id="ev/tz-18" />
70 <enum_val id="ev/tz-24" />
71 </option>
72 <option id="opt/Brother-PTQL-CutLabel" />
73 </select>
74 </printer>
0 <!--
1 Copyright (c) 2006 Arne John Glenstrup <panic@itu.dk>
2
3 This file is part of ptouch-driver.
4
5 ptouch-driver is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or (at
8 your option) any later version.
9
10 ptouch-driver is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with ptouch-driver; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
18 USA
19 -->
20 <printer id="printer/Brother-PT-9700PC">
21 <make>Brother</make>
22 <model>PT-9700PC</model>
23 <pcmodel>BR950P</pcmodel>
24 <mechanism>
25 <thermal/>
26 <!--not "color"-->
27 <resolution>
28 <dpi>
29 <x>360</x>
30 <y>720</y>
31 </dpi>
32 </resolution>
33 </mechanism>
34 <url>https://support.brother.com/g/b/producttop.aspx?c=us_ot&amp;lang=en&amp;prod=9700eus</url>
35 <lang>
36 <proprietary />
37 </lang>
38 <autodetect>
39 <general>
40 <ieee1284>MFG:Brother;CMD:PT-CBP;MDL:PT-9700PC;CLS:PRINTER;</ieee1284>
41 <commandset>PT-CBP</commandset>
42 <description>Brother PT-9700PC</description>
43 <manufacturer>Brother</manufacturer>
44 <model>PT-9700PC</model>
45 </general>
46 </autodetect>
47 <functionality>D</functionality>
48 <driver>ptouch-pt</driver>
49 <unverified/>
50 <!--no "contrib_url"-->
51 <comments>
52 <en>
53 Prints 40mm per second
54 </en>
55 </comments>
56 <select>
57 <option id="opt/Brother-PTQL-Resolution">
58 <arg_defval>ev/360dpi</arg_defval>
59 <enum_val id="ev/360dpi" />
60 <enum_val id="ev/360x720dpi" />
61 </option>
62 <option id='opt/Brother-PT-LegacyHires' />
63 <option id="opt/Brother-PTQL-BytesPerLine">
64 <enum_val id="ev/48" />
65 </option>
66 <option id="opt/Brother-PT-PageSize">
67 <arg_defval>ev/tz-36</arg_defval>
68 <enum_val id="ev/tz-4" />
69 <enum_val id="ev/tz-6" />
70 <enum_val id="ev/tz-9" />
71 <enum_val id="ev/tz-12" />
72 <enum_val id="ev/tz-18" />
73 <enum_val id="ev/tz-24" />
74 <enum_val id="ev/tz-36" />
75 </option>
76 <option id="opt/Brother-PT-HalfCut" />
77 </select>
78 </printer>
684684 print_command ("Undocumented command");
685685 break;
686686
687 case 'c': /* ESC i c */
688 d = get_more (DATA, 5);
689 print_command ("Legacy hires");
690 break;
691
687692 default:
688693 unknown_command ();
689694 break;
212212 * <tr><td>PT-1960 <td>auto <td>RLE<td>180<td> 96<td>12<td>TZ6-18mm
213213 * <tr><td>PT-2300 <td>auto <td>RLE<td>180<td>112<td>14<td>TZ6-18mm
214214 * <tr><td>PT-2420PC<td>manual <td>RLE<td>180<td>128<td>16<td>TZ6-24mm
215 * <tr><td>PT-2430PC<td>auto <td>RLE<td>180<td>128<td>16<td>TZ6-24mm
215216 * <tr><td>PT-2450DX<td>auto <td>RLE<td>180<td>128<td>16<td>TZ6-24mm
216217 * <tr><td>PT-2500PC<td>auto <td>RLE<td>180<td>128<td>16<td>TZ6-24mm
217218 * <tr><td>PT-2600 <td>auto <td>RLE<td>180<td>128<td>16<td>TZ,AV6-24mm
13431344 (header->cupsPageSize[0] - header->cupsImagingBBox[2]) * pt2px [0];
13441345 }
13451346 /* Calculate right_padding_bytes and shift */
1346 int right_padding_bits;
1347 unsigned right_padding_bits;
13471348 if (job_options->align == CENTER) {
13481349 unsigned left_spacing_px =
13491350 header->cupsImagingBBox[0] * pt2px [0];
1350 right_padding_bits
1351 = (bytes_per_line * 8
1352 - (left_spacing_px + cupsWidth + right_spacing_px)) / 2
1353 + right_spacing_px;
1354 if (right_padding_bits < 0) right_padding_bits = 0;
1351 unsigned width = left_spacing_px + cupsWidth + right_spacing_px;
1352 if (bytes_per_line * 8 < width)
1353 right_padding_bits = 0;
1354 else
1355 right_padding_bits = (bytes_per_line * 8 - width) / 2 + right_spacing_px;
13551356 } else
13561357 right_padding_bits = right_spacing_px;
13571358 int right_padding_bytes = right_padding_bits / 8;