Codebase list i3lock-color / f70cf9c
Import upstream version 2.13.c.4+git20220826.1.aeb9982 Kali Janitor 1 year, 7 months ago
39 changed file(s) with 20787 addition(s) and 496 deletion(s). Raw diff Collapse all Expand all
+0
-11
.clang-format less more
0 BasedOnStyle: google
1 AllowShortIfStatementsOnASingleLine: false
2 AllowShortLoopsOnASingleLine: false
3 AllowShortFunctionsOnASingleLine: None
4 AllowShortBlocksOnASingleLine: false
5 AlwaysBreakBeforeMultilineStrings: false
6 IndentWidth: 4
7 PointerBindsToType: false
8 ColumnLimit: 0
9 SpaceBeforeParens: ControlStatements
10 SortIncludes: false
+0
-4
.gitattributes less more
0 # Auto detect text files and perform LF normalization
1 * text=auto
2
3 text eol=lf
+0
-3
.github/FUNDING.yml less more
0 # These are supported funding model platforms
1
2 github: [Raymo111]
+0
-36
.github/ISSUE_TEMPLATE.md less more
0 <!--
1 PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
2 -->
3
4 ## This issue is a....
5 <!-- Please check one of the following options with "x" -->
6 <pre>
7 [ ] Bug
8 [ ] Other kind of issue (Please describe in detail)
9 </pre>
10
11 ## Current Behavior
12 <!-- Describe the current behavior -->
13
14 ## Expected Behavior
15 <!-- Describe the desired behavior you expect after mitigation of the issue -->
16
17 ## Reproduction Instructions
18 <!--
19 For bug reports, please provide detailed instructions on how the bug can be reproduced.
20 For other kinds of issues, you can remove this section, or add any aditional info here.
21 -->
22
23 ## Environment
24 Output of `i3lock --version`:
25 <pre>
26 i3lock version:
27 </pre>
28
29 Where'd you get i3lock-color from?
30 <!-- Please check one of the following options with "x" -->
31 <pre>
32 [ ] AUR package (which one?)
33 [ ] Built from source yourself
34 [ ] Other (Please describe in detail)
35 </pre>
+0
-19
.github/pull_request_template.md less more
0 <!--
1 (Opional) What i3lock-color issue does this PR address? (for example, #1234)
2 -->
3 Closes #[issue number]
4
5 ## Description
6 -
7
8 ### Screenshots/screencaps
9 <!--
10 Include screenshots or gifs if relevant.
11 -->
12
13 ## Release notes
14 <!--
15 What to include in the notes section of an upcoming release that describes this PR.
16 If the PR doesn't to be mentioned in the release notes, put "Notes: no-notes".
17 -->
18 Notes:
+0
-25
.github/workflows/Build Test.yml less more
0 name: Build Test
1
2 on: [push, pull_request]
3 jobs:
4 build:
5 runs-on: ubuntu-latest
6 steps:
7 - uses: actions/checkout@v2
8 - name: Install deps
9 run: |
10 sudo apt update
11 sudo apt install pkg-config libpam0g-dev libcairo2-dev libfontconfig1-dev libxcb-composite0-dev libev-dev libx11-xcb-dev libxcb-xkb-dev libxcb-xinerama0-dev libxcb-randr0-dev libxcb-image0-dev libxcb-util-dev libxcb-xrm-dev libxkbcommon-dev libxkbcommon-x11-dev libjpeg-dev
12 - name: Build
13 run: ./build.sh
14 - name: Check and distcheck
15 run: |
16 cd build
17 make check
18 make distcheck
19 - name: Upload binary artifact
20 uses: actions/upload-artifact@v2
21 with:
22 name: i3lock
23 path: /home/runner/work/i3lock-color/i3lock-color/build/i3lock
24 - run: ./install-i3lock-color.sh
+0
-73
.github/workflows/codeql-analysis.yml less more
0 # For most projects, this workflow file will not need changing; you simply need
1 # to commit it to your repository.
2 #
3 # You may wish to alter this file to override the set of languages analyzed,
4 # or to provide custom queries or build logic.
5 name: "CodeQL"
6
7 on:
8 push:
9 branches: [master]
10 pull_request:
11 # The branches below must be a subset of the branches above
12 branches: [master]
13 schedule:
14 - cron: '0 16 * * 4'
15
16 jobs:
17 analyze:
18 name: Analyze
19 runs-on: ubuntu-latest
20
21 strategy:
22 fail-fast: false
23 # matrix:
24 # Override automatic language detection by changing the below list
25 # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
26 # language: ['cpp']
27 # Learn more...
28 # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
29
30 steps:
31 - name: Checkout repository
32 uses: actions/checkout@v2
33 with:
34 # We must fetch at least the immediate parents so that if this is
35 # a pull request then we can checkout the head.
36 fetch-depth: 2
37
38 # If this run was triggered by a pull request event, then checkout
39 # the head of the pull request instead of the merge commit.
40 # CodeQL apparently deprecated this feature and now warns on running this command
41 # - run: git checkout HEAD^2
42 # if: ${{ github.event_name == 'pull_request' }}
43
44 # Initializes the CodeQL tools for scanning.
45 - name: Initialize CodeQL
46 uses: github/codeql-action/init@v1
47 with:
48 languages: ${{ matrix.language }}
49 # If you wish to specify custom queries, you can do so here or in a config file.
50 # By default, queries listed here will override any specified in a config file.
51 # Prefix the list here with "+" to use these queries and those in the config file.
52 # queries: ./path/to/local/query, your-org/your-repo/queries@main
53
54 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55 # If this step fails, then you should remove it and run the build manually (see below)
56 #- name: Autobuild
57 # uses: github/codeql-action/autobuild@v1
58
59 # ℹī¸ Command-line programs to run using the OS shell.
60 # 📚 https://git.io/JvXDl
61
62 # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines
63 # and modify them (or add more) to build your code if your project
64 # uses a compiled language
65
66 - run: |
67 sudo apt-get update
68 sudo apt install autoconf gcc make pkg-config libpam0g-dev libcairo2-dev libfontconfig1-dev libxcb-composite0-dev libev-dev libx11-xcb-dev libxcb-xkb-dev libxcb-xinerama0-dev libxcb-randr0-dev libxcb-image0-dev libxcb-util-dev libxcb-xrm-dev libxkbcommon-dev libxkbcommon-x11-dev libjpeg-dev
69 ./build.sh
70
71 - name: Perform CodeQL Analysis
72 uses: github/codeql-action/analyze@v1
+0
-34
.gitignore less more
0 i3lock
1 *.o
2 tags
3 *.swp
4 *.gz
5 *~
6 x86_64-pc-linux-gnu
7
8 ################################################################################
9 # https://raw.githubusercontent.com/github/gitignore/master/Autotools.gitignore
10 ################################################################################
11
12 # http://www.gnu.org/software/automake
13
14 Makefile.in
15 /ar-lib
16 /test-driver
17
18 # http://www.gnu.org/software/autoconf
19
20 /autom4te.cache
21 /autoscan.log
22 /autoscan-*.log
23 /aclocal.m4
24 /compile
25 /config.h.in
26 /config.guess
27 /config.sub
28 /configure
29 /configure.scan
30 /depcomp
31 /install-sh
32 /missing
33 /stamp-h1
+0
-13
.travis.yml less more
0 # Use Ubuntu 14.04 (trusty), as per http://blog.travis-ci.com/2015-10-14-opening-up-ubuntu-trusty-beta/
1 sudo: false
2 dist: trusty
3 services:
4 - docker
5 language: c
6 compiler:
7 - gcc
8 - clang
9 script:
10 - docker build --pull --no-cache --rm -t=i3lock -f travis/Dockerfile .
11 - docker run -e CC=$CC -v $PWD:/usr/src:rw i3lock /bin/sh -c 'clang-format-9 -i *.[ch] && git diff --exit-code || (echo "Code was not formatted using clang-format!"; false)'
12 - docker run -e CC=$CC -v $PWD:/usr/src:rw i3lock /bin/sh -c 'autoreconf -fi && mkdir -p build && cd build && (../configure || (cat config.log; false)) && make -j V=1 CFLAGS="-Wformat -Wformat-security -Wextra -Wno-unused-parameter -Werror"'
1111 pamddir = $(sysconfdir)/pam.d
1212 pamd_files = pam/i3lock
1313 pamd_DATA = $(pamd_files)
14
15 if ENABLE_BASH_COMPLETION
16 bashcompletiondir = $(BASH_COMPLETION_DIR)
17 dist_bashcompletion_DATA = i3lock-bash
18 endif
19
20 if ENABLE_ZSH_COMPLETION
21 zshcompletiondir = $(ZSH_COMPLETION_DIR)
22 dist_zshcompletion_DATA = i3lock-zsh
23 endif
24
25 install-data-hook:
26 if ENABLE_BASH_COMPLETION
27 test -f "${BASH_COMPLETION_DIR}/i3lock-bash" && mv -f "${BASH_COMPLETION_DIR}/i3lock-bash" "${BASH_COMPLETION_DIR}/i3lock" || true
28 endif
29 if ENABLE_ZSH_COMPLETION
30 test -f "${ZSH_COMPLETION_DIR}/i3lock-zsh" && mv -f "${ZSH_COMPLETION_DIR}/i3lock-zsh" "${ZSH_COMPLETION_DIR}/_i3lock" || true
31 endif
32
33 uninstall-hook:
34 if ENABLE_BASH_COMPLETION
35 rm -f ${BASH_COMPLETION_DIR}/i3lock
36 endif
37 if ENABLE_ZSH_COMPLETION
38 rm -f ${ZSH_COMPLETION_DIR}/_i3lock
39 endif
40
1441
1542 AM_CPPFLAGS = \
1643 @AX_EXTEND_SRCDIR_CPPFLAGS@
0 # Makefile.in generated by automake 1.16.5 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2021 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 build_triplet = @build@
90 host_triplet = @host@
91 target_triplet = @target@
92 bin_PROGRAMS = i3lock$(EXEEXT)
93 subdir = .
94 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
95 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_append_flag.m4 \
96 $(top_srcdir)/m4/ax_cflags_warn_all.m4 \
97 $(top_srcdir)/m4/ax_check_bash_completion.m4 \
98 $(top_srcdir)/m4/ax_check_compile_flag.m4 \
99 $(top_srcdir)/m4/ax_check_enable_debug.m4 \
100 $(top_srcdir)/m4/ax_check_gnu_make.m4 \
101 $(top_srcdir)/m4/ax_check_link_flag.m4 \
102 $(top_srcdir)/m4/ax_check_zsh_completion.m4 \
103 $(top_srcdir)/m4/ax_code_coverage.m4 \
104 $(top_srcdir)/m4/ax_configure_args.m4 \
105 $(top_srcdir)/m4/ax_enable_builddir.m4 \
106 $(top_srcdir)/m4/ax_extend_srcdir.m4 \
107 $(top_srcdir)/m4/ax_require_defined.m4 \
108 $(top_srcdir)/m4/ax_sanitizers.m4 $(top_srcdir)/configure.ac
109 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
110 $(ACLOCAL_M4)
111 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
112 $(am__configure_deps) $(am__dist_bashcompletion_DATA_DIST) \
113 $(am__dist_zshcompletion_DATA_DIST) $(am__DIST_COMMON)
114 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
115 configure.lineno config.status.lineno
116 mkinstalldirs = $(install_sh) -d
117 CONFIG_HEADER = config.h
118 CONFIG_CLEAN_FILES =
119 CONFIG_CLEAN_VPATH_FILES =
120 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \
121 "$(DESTDIR)$(bashcompletiondir)" \
122 "$(DESTDIR)$(zshcompletiondir)" "$(DESTDIR)$(pamddir)"
123 PROGRAMS = $(bin_PROGRAMS)
124 am_i3lock_OBJECTS = i3lock-blur.$(OBJEXT) i3lock-blur_simd.$(OBJEXT) \
125 i3lock-dpi.$(OBJEXT) i3lock-jpg.$(OBJEXT) \
126 i3lock-i3lock.$(OBJEXT) i3lock-randr.$(OBJEXT) \
127 i3lock-tinyexpr.$(OBJEXT) i3lock-unlock_indicator.$(OBJEXT) \
128 i3lock-xcb.$(OBJEXT)
129 i3lock_OBJECTS = $(am_i3lock_OBJECTS)
130 am__DEPENDENCIES_1 =
131 i3lock_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
132 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
133 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
134 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
135 $(am__DEPENDENCIES_1)
136 i3lock_LINK = $(CCLD) $(i3lock_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
137 $(LDFLAGS) -o $@
138 AM_V_P = $(am__v_P_@AM_V@)
139 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
140 am__v_P_0 = false
141 am__v_P_1 = :
142 AM_V_GEN = $(am__v_GEN_@AM_V@)
143 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
144 am__v_GEN_0 = @echo " GEN " $@;
145 am__v_GEN_1 =
146 AM_V_at = $(am__v_at_@AM_V@)
147 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
148 am__v_at_0 = @
149 am__v_at_1 =
150 DEFAULT_INCLUDES = -I.@am__isrc@
151 depcomp = $(SHELL) $(top_srcdir)/depcomp
152 am__maybe_remake_depfiles = depfiles
153 am__depfiles_remade = ./$(DEPDIR)/i3lock-blur.Po \
154 ./$(DEPDIR)/i3lock-blur_simd.Po ./$(DEPDIR)/i3lock-dpi.Po \
155 ./$(DEPDIR)/i3lock-i3lock.Po ./$(DEPDIR)/i3lock-jpg.Po \
156 ./$(DEPDIR)/i3lock-randr.Po ./$(DEPDIR)/i3lock-tinyexpr.Po \
157 ./$(DEPDIR)/i3lock-unlock_indicator.Po \
158 ./$(DEPDIR)/i3lock-xcb.Po
159 am__mv = mv -f
160 AM_V_lt = $(am__v_lt_@AM_V@)
161 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
162 am__v_lt_0 = --silent
163 am__v_lt_1 =
164 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
165 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
166 AM_V_CC = $(am__v_CC_@AM_V@)
167 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
168 am__v_CC_0 = @echo " CC " $@;
169 am__v_CC_1 =
170 CCLD = $(CC)
171 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
172 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
173 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
174 am__v_CCLD_0 = @echo " CCLD " $@;
175 am__v_CCLD_1 =
176 SOURCES = $(i3lock_SOURCES)
177 DIST_SOURCES = $(i3lock_SOURCES)
178 am__can_run_installinfo = \
179 case $$AM_UPDATE_INFO_DIR in \
180 n|no|NO) false;; \
181 *) (install-info --version) >/dev/null 2>&1;; \
182 esac
183 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
184 am__vpath_adj = case $$p in \
185 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
186 *) f=$$p;; \
187 esac;
188 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
189 am__install_max = 40
190 am__nobase_strip_setup = \
191 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
192 am__nobase_strip = \
193 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
194 am__nobase_list = $(am__nobase_strip_setup); \
195 for p in $$list; do echo "$$p $$p"; done | \
196 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
197 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
198 if (++n[$$2] == $(am__install_max)) \
199 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
200 END { for (dir in files) print dir, files[dir] }'
201 am__base_list = \
202 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
203 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
204 am__uninstall_files_from_dir = { \
205 test -z "$$files" \
206 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
207 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
208 $(am__cd) "$$dir" && rm -f $$files; }; \
209 }
210 man1dir = $(mandir)/man1
211 NROFF = nroff
212 MANS = $(dist_man1_MANS)
213 am__dist_bashcompletion_DATA_DIST = i3lock-bash
214 am__dist_zshcompletion_DATA_DIST = i3lock-zsh
215 DATA = $(dist_bashcompletion_DATA) $(dist_zshcompletion_DATA) \
216 $(pamd_DATA)
217 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
218 config.h.in
219 # Read a list of newline-separated strings from the standard input,
220 # and print each of them once, without duplicates. Input order is
221 # *not* preserved.
222 am__uniquify_input = $(AWK) '\
223 BEGIN { nonempty = 0; } \
224 { items[$$0] = 1; nonempty = 1; } \
225 END { if (nonempty) { for (i in items) print i; }; } \
226 '
227 # Make sure the list of sources is unique. This is necessary because,
228 # e.g., the same source file might be shared among _SOURCES variables
229 # for different programs/libraries.
230 am__define_uniq_tagged_files = \
231 list='$(am__tagged_files)'; \
232 unique=`for i in $$list; do \
233 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
234 done | $(am__uniquify_input)`
235 AM_RECURSIVE_TARGETS = cscope
236 am__DIST_COMMON = $(dist_man1_MANS) $(srcdir)/Makefile.in \
237 $(srcdir)/config.h.in README.md ar-lib compile config.guess \
238 config.sub depcomp install-sh missing
239 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
240 distdir = $(PACKAGE)-$(VERSION)
241 top_distdir = $(distdir)
242 am__remove_distdir = \
243 if test -d "$(distdir)"; then \
244 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
245 && rm -rf "$(distdir)" \
246 || { sleep 5 && rm -rf "$(distdir)"; }; \
247 else :; fi
248 am__post_remove_distdir = $(am__remove_distdir)
249 GZIP_ENV = --best
250 DIST_ARCHIVES = $(distdir).tar.bz2
251 DIST_TARGETS = dist-bzip2
252 # Exists only to be overridden by the user if desired.
253 AM_DISTCHECK_DVI_TARGET = dvi
254 distuninstallcheck_listfiles = find . -type f -print
255 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
256 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
257 distcleancheck_listfiles = find . -type f -print
258 ACLOCAL = @ACLOCAL@
259 AMTAR = @AMTAR@
260 AM_CFLAGS = @AM_CFLAGS@
261 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
262 AR = @AR@
263 AUTOCONF = @AUTOCONF@
264 AUTOHEADER = @AUTOHEADER@
265 AUTOMAKE = @AUTOMAKE@
266 AWK = @AWK@
267 AX_EXTEND_SRCDIR_CPPFLAGS = @AX_EXTEND_SRCDIR_CPPFLAGS@
268 BASH_COMPLETION_CFLAGS = @BASH_COMPLETION_CFLAGS@
269 BASH_COMPLETION_DIR = @BASH_COMPLETION_DIR@
270 BASH_COMPLETION_LIBS = @BASH_COMPLETION_LIBS@
271 CAIRO_CFLAGS = @CAIRO_CFLAGS@
272 CAIRO_LIBS = @CAIRO_LIBS@
273 CC = @CC@
274 CCDEPMODE = @CCDEPMODE@
275 CFLAGS = @CFLAGS@
276 CODE_COVERAGE_CFLAGS = @CODE_COVERAGE_CFLAGS@
277 CODE_COVERAGE_CPPFLAGS = @CODE_COVERAGE_CPPFLAGS@
278 CODE_COVERAGE_CXXFLAGS = @CODE_COVERAGE_CXXFLAGS@
279 CODE_COVERAGE_ENABLED = @CODE_COVERAGE_ENABLED@
280 CODE_COVERAGE_LDFLAGS = @CODE_COVERAGE_LDFLAGS@
281 CPP = @CPP@
282 CPPFLAGS = @CPPFLAGS@
283 CSCOPE = @CSCOPE@
284 CTAGS = @CTAGS@
285 CYGPATH_W = @CYGPATH_W@
286 DEFS = @DEFS@
287 DEPDIR = @DEPDIR@
288 ECHO_C = @ECHO_C@
289 ECHO_N = @ECHO_N@
290 ECHO_T = @ECHO_T@
291 ETAGS = @ETAGS@
292 EXEEXT = @EXEEXT@
293 FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
294 FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
295 GCOV = @GCOV@
296 GENHTML = @GENHTML@
297 I3LOCK_VERSION = @I3LOCK_VERSION@
298 INSTALL = @INSTALL@
299 INSTALL_DATA = @INSTALL_DATA@
300 INSTALL_PROGRAM = @INSTALL_PROGRAM@
301 INSTALL_SCRIPT = @INSTALL_SCRIPT@
302 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
303 JPEG_CFLAGS = @JPEG_CFLAGS@
304 JPEG_LIBS = @JPEG_LIBS@
305 LCOV = @LCOV@
306 LDFLAGS = @LDFLAGS@
307 LIBOBJS = @LIBOBJS@
308 LIBS = @LIBS@
309 LN_S = @LN_S@
310 LTLIBOBJS = @LTLIBOBJS@
311 MAINT = @MAINT@
312 MAKEINFO = @MAKEINFO@
313 MKDIR_P = @MKDIR_P@
314 OBJEXT = @OBJEXT@
315 PACKAGE = @PACKAGE@
316 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
317 PACKAGE_NAME = @PACKAGE_NAME@
318 PACKAGE_STRING = @PACKAGE_STRING@
319 PACKAGE_TARNAME = @PACKAGE_TARNAME@
320 PACKAGE_URL = @PACKAGE_URL@
321 PACKAGE_VERSION = @PACKAGE_VERSION@
322 PATH_SEPARATOR = @PATH_SEPARATOR@
323 PKG_CONFIG = @PKG_CONFIG@
324 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
325 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
326 RANLIB = @RANLIB@
327 SED = @SED@
328 SET_MAKE = @SET_MAKE@
329 SHELL = @SHELL@
330 STRIP = @STRIP@
331 VERSION = @VERSION@
332 XCB_CFLAGS = @XCB_CFLAGS@
333 XCB_IMAGE_CFLAGS = @XCB_IMAGE_CFLAGS@
334 XCB_IMAGE_LIBS = @XCB_IMAGE_LIBS@
335 XCB_LIBS = @XCB_LIBS@
336 XCB_UTIL_CFLAGS = @XCB_UTIL_CFLAGS@
337 XCB_UTIL_LIBS = @XCB_UTIL_LIBS@
338 XCB_UTIL_XRM_CFLAGS = @XCB_UTIL_XRM_CFLAGS@
339 XCB_UTIL_XRM_LIBS = @XCB_UTIL_XRM_LIBS@
340 XKBCOMMON_CFLAGS = @XKBCOMMON_CFLAGS@
341 XKBCOMMON_LIBS = @XKBCOMMON_LIBS@
342 ZSH_AVAILABLE = @ZSH_AVAILABLE@
343 ZSH_COMPLETION_DIR = @ZSH_COMPLETION_DIR@
344 abs_builddir = @abs_builddir@
345 abs_srcdir = @abs_srcdir@
346 abs_top_builddir = @abs_top_builddir@
347 abs_top_srcdir = @abs_top_srcdir@
348 ac_ct_AR = @ac_ct_AR@
349 ac_ct_CC = @ac_ct_CC@
350 am__include = @am__include@
351 am__leading_dot = @am__leading_dot@
352 am__quote = @am__quote@
353 am__tar = @am__tar@
354 am__untar = @am__untar@
355 ax_enable_builddir_sed = @ax_enable_builddir_sed@
356 bindir = @bindir@
357 build = @build@
358 build_alias = @build_alias@
359 build_cpu = @build_cpu@
360 build_os = @build_os@
361 build_vendor = @build_vendor@
362 builddir = @builddir@
363 datadir = @datadir@
364 datarootdir = @datarootdir@
365 docdir = @docdir@
366 dvidir = @dvidir@
367 exec_prefix = @exec_prefix@
368 host = @host@
369 host_alias = @host_alias@
370 host_cpu = @host_cpu@
371 host_os = @host_os@
372 host_vendor = @host_vendor@
373 htmldir = @htmldir@
374 ifGNUmake = @ifGNUmake@
375 includedir = @includedir@
376 infodir = @infodir@
377 install_sh = @install_sh@
378 libdir = @libdir@
379 libexecdir = @libexecdir@
380 localedir = @localedir@
381 localstatedir = @localstatedir@
382 mandir = @mandir@
383 mkdir_p = @mkdir_p@
384 oldincludedir = @oldincludedir@
385 pdfdir = @pdfdir@
386 prefix = @prefix@
387 program_transform_name = @program_transform_name@
388 psdir = @psdir@
389 runstatedir = @runstatedir@
390 sbindir = @sbindir@
391 sharedstatedir = @sharedstatedir@
392 srcdir = @srcdir@
393 sysconfdir = @sysconfdir@
394 target = @target@
395 target_alias = @target_alias@
396 target_cpu = @target_cpu@
397 target_os = @target_os@
398 target_vendor = @target_vendor@
399 top_build_prefix = @top_build_prefix@
400 top_builddir = @top_builddir@
401 top_srcdir = @top_srcdir@
402 dist_man1_MANS = i3lock.1
403 DISTCLEANFILES = i3lock-color-*.tar.bz2
404 pamddir = $(sysconfdir)/pam.d
405 pamd_files = pam/i3lock
406 pamd_DATA = $(pamd_files)
407 @ENABLE_BASH_COMPLETION_TRUE@bashcompletiondir = $(BASH_COMPLETION_DIR)
408 @ENABLE_BASH_COMPLETION_TRUE@dist_bashcompletion_DATA = i3lock-bash
409 @ENABLE_ZSH_COMPLETION_TRUE@zshcompletiondir = $(ZSH_COMPLETION_DIR)
410 @ENABLE_ZSH_COMPLETION_TRUE@dist_zshcompletion_DATA = i3lock-zsh
411 AM_CPPFLAGS = \
412 @AX_EXTEND_SRCDIR_CPPFLAGS@
413
414 i3lock_CFLAGS = \
415 $(AM_CFLAGS) \
416 $(XCB_CFLAGS) \
417 $(XCB_IMAGE_CFLAGS) \
418 $(XCB_UTIL_CFLAGS) \
419 $(XCB_UTIL_XRM_CFLAGS) \
420 $(XKBCOMMON_CFLAGS) \
421 $(CAIRO_CFLAGS) \
422 $(FONTCONFIG_CFLAGS) \
423 $(JPEG_CFLAGS) \
424 $(CODE_COVERAGE_CFLAGS)
425
426 i3lock_CPPFLAGS = \
427 $(AM_CPPFLAGS) \
428 $(CODE_COVERAGE_CPPFLAGS)
429
430 i3lock_LDADD = \
431 $(XCB_LIBS) \
432 $(XCB_IMAGE_LIBS) \
433 $(XCB_UTIL_LIBS) \
434 $(XCB_UTIL_XRM_LIBS) \
435 $(XKBCOMMON_LIBS) \
436 $(CAIRO_LIBS) \
437 $(JPEG_LIBS) \
438 $(FONTCONFIG_LIBS) \
439 $(CODE_COVERAGE_LDFLAGS)
440
441 i3lock_SOURCES = \
442 blur.c \
443 blur.h \
444 blur_simd.c \
445 cursors.h \
446 dpi.c \
447 dpi.h \
448 fonts.h \
449 jpg.c \
450 jpg.h \
451 i3lock.c \
452 i3lock.h \
453 randr.c \
454 randr.h \
455 rgba.h \
456 tinyexpr.c \
457 tinyexpr.h \
458 unlock_indicator.c \
459 unlock_indicator.h \
460 xcb.c \
461 xcb.h
462
463 EXTRA_DIST = \
464 $(pamd_files) \
465 CHANGELOG \
466 LICENSE \
467 README.md \
468 I3LOCK_VERSION
469
470 all: config.h
471 $(MAKE) $(AM_MAKEFLAGS) all-am
472
473 .SUFFIXES:
474 .SUFFIXES: .c .o .obj
475 am--refresh: Makefile
476 @:
477 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
478 @for dep in $?; do \
479 case '$(am__configure_deps)' in \
480 *$$dep*) \
481 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
482 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
483 && exit 0; \
484 exit 1;; \
485 esac; \
486 done; \
487 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
488 $(am__cd) $(top_srcdir) && \
489 $(AUTOMAKE) --foreign Makefile
490 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
491 @case '$?' in \
492 *config.status*) \
493 echo ' $(SHELL) ./config.status'; \
494 $(SHELL) ./config.status;; \
495 *) \
496 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
497 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
498 esac;
499
500 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
501 $(SHELL) ./config.status --recheck
502
503 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
504 $(am__cd) $(srcdir) && $(AUTOCONF)
505 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
506 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
507 $(am__aclocal_m4_deps):
508
509 config.h: stamp-h1
510 @test -f $@ || rm -f stamp-h1
511 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
512
513 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
514 @rm -f stamp-h1
515 cd $(top_builddir) && $(SHELL) ./config.status config.h
516 $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
517 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
518 rm -f stamp-h1
519 touch $@
520
521 distclean-hdr:
522 -rm -f config.h stamp-h1
523 install-binPROGRAMS: $(bin_PROGRAMS)
524 @$(NORMAL_INSTALL)
525 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
526 if test -n "$$list"; then \
527 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
528 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
529 fi; \
530 for p in $$list; do echo "$$p $$p"; done | \
531 sed 's/$(EXEEXT)$$//' | \
532 while read p p1; do if test -f $$p \
533 ; then echo "$$p"; echo "$$p"; else :; fi; \
534 done | \
535 sed -e 'p;s,.*/,,;n;h' \
536 -e 's|.*|.|' \
537 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
538 sed 'N;N;N;s,\n, ,g' | \
539 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
540 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
541 if ($$2 == $$4) files[d] = files[d] " " $$1; \
542 else { print "f", $$3 "/" $$4, $$1; } } \
543 END { for (d in files) print "f", d, files[d] }' | \
544 while read type dir files; do \
545 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
546 test -z "$$files" || { \
547 echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
548 $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
549 } \
550 ; done
551
552 uninstall-binPROGRAMS:
553 @$(NORMAL_UNINSTALL)
554 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
555 files=`for p in $$list; do echo "$$p"; done | \
556 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
557 -e 's/$$/$(EXEEXT)/' \
558 `; \
559 test -n "$$list" || exit 0; \
560 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
561 cd "$(DESTDIR)$(bindir)" && rm -f $$files
562
563 clean-binPROGRAMS:
564 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
565
566 i3lock$(EXEEXT): $(i3lock_OBJECTS) $(i3lock_DEPENDENCIES) $(EXTRA_i3lock_DEPENDENCIES)
567 @rm -f i3lock$(EXEEXT)
568 $(AM_V_CCLD)$(i3lock_LINK) $(i3lock_OBJECTS) $(i3lock_LDADD) $(LIBS)
569
570 mostlyclean-compile:
571 -rm -f *.$(OBJEXT)
572
573 distclean-compile:
574 -rm -f *.tab.c
575
576 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i3lock-blur.Po@am__quote@ # am--include-marker
577 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i3lock-blur_simd.Po@am__quote@ # am--include-marker
578 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i3lock-dpi.Po@am__quote@ # am--include-marker
579 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i3lock-i3lock.Po@am__quote@ # am--include-marker
580 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i3lock-jpg.Po@am__quote@ # am--include-marker
581 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i3lock-randr.Po@am__quote@ # am--include-marker
582 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i3lock-tinyexpr.Po@am__quote@ # am--include-marker
583 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i3lock-unlock_indicator.Po@am__quote@ # am--include-marker
584 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i3lock-xcb.Po@am__quote@ # am--include-marker
585
586 $(am__depfiles_remade):
587 @$(MKDIR_P) $(@D)
588 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
589
590 am--depfiles: $(am__depfiles_remade)
591
592 .c.o:
593 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
594 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
595 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
596 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
597 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
598 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
599
600 .c.obj:
601 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
602 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
603 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
604 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
605 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
606 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
607
608 i3lock-blur.o: blur.c
609 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-blur.o -MD -MP -MF $(DEPDIR)/i3lock-blur.Tpo -c -o i3lock-blur.o `test -f 'blur.c' || echo '$(srcdir)/'`blur.c
610 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-blur.Tpo $(DEPDIR)/i3lock-blur.Po
611 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blur.c' object='i3lock-blur.o' libtool=no @AMDEPBACKSLASH@
612 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
613 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-blur.o `test -f 'blur.c' || echo '$(srcdir)/'`blur.c
614
615 i3lock-blur.obj: blur.c
616 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-blur.obj -MD -MP -MF $(DEPDIR)/i3lock-blur.Tpo -c -o i3lock-blur.obj `if test -f 'blur.c'; then $(CYGPATH_W) 'blur.c'; else $(CYGPATH_W) '$(srcdir)/blur.c'; fi`
617 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-blur.Tpo $(DEPDIR)/i3lock-blur.Po
618 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blur.c' object='i3lock-blur.obj' libtool=no @AMDEPBACKSLASH@
619 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
620 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-blur.obj `if test -f 'blur.c'; then $(CYGPATH_W) 'blur.c'; else $(CYGPATH_W) '$(srcdir)/blur.c'; fi`
621
622 i3lock-blur_simd.o: blur_simd.c
623 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-blur_simd.o -MD -MP -MF $(DEPDIR)/i3lock-blur_simd.Tpo -c -o i3lock-blur_simd.o `test -f 'blur_simd.c' || echo '$(srcdir)/'`blur_simd.c
624 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-blur_simd.Tpo $(DEPDIR)/i3lock-blur_simd.Po
625 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blur_simd.c' object='i3lock-blur_simd.o' libtool=no @AMDEPBACKSLASH@
626 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
627 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-blur_simd.o `test -f 'blur_simd.c' || echo '$(srcdir)/'`blur_simd.c
628
629 i3lock-blur_simd.obj: blur_simd.c
630 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-blur_simd.obj -MD -MP -MF $(DEPDIR)/i3lock-blur_simd.Tpo -c -o i3lock-blur_simd.obj `if test -f 'blur_simd.c'; then $(CYGPATH_W) 'blur_simd.c'; else $(CYGPATH_W) '$(srcdir)/blur_simd.c'; fi`
631 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-blur_simd.Tpo $(DEPDIR)/i3lock-blur_simd.Po
632 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='blur_simd.c' object='i3lock-blur_simd.obj' libtool=no @AMDEPBACKSLASH@
633 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
634 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-blur_simd.obj `if test -f 'blur_simd.c'; then $(CYGPATH_W) 'blur_simd.c'; else $(CYGPATH_W) '$(srcdir)/blur_simd.c'; fi`
635
636 i3lock-dpi.o: dpi.c
637 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-dpi.o -MD -MP -MF $(DEPDIR)/i3lock-dpi.Tpo -c -o i3lock-dpi.o `test -f 'dpi.c' || echo '$(srcdir)/'`dpi.c
638 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-dpi.Tpo $(DEPDIR)/i3lock-dpi.Po
639 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dpi.c' object='i3lock-dpi.o' libtool=no @AMDEPBACKSLASH@
640 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
641 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-dpi.o `test -f 'dpi.c' || echo '$(srcdir)/'`dpi.c
642
643 i3lock-dpi.obj: dpi.c
644 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-dpi.obj -MD -MP -MF $(DEPDIR)/i3lock-dpi.Tpo -c -o i3lock-dpi.obj `if test -f 'dpi.c'; then $(CYGPATH_W) 'dpi.c'; else $(CYGPATH_W) '$(srcdir)/dpi.c'; fi`
645 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-dpi.Tpo $(DEPDIR)/i3lock-dpi.Po
646 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dpi.c' object='i3lock-dpi.obj' libtool=no @AMDEPBACKSLASH@
647 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
648 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-dpi.obj `if test -f 'dpi.c'; then $(CYGPATH_W) 'dpi.c'; else $(CYGPATH_W) '$(srcdir)/dpi.c'; fi`
649
650 i3lock-jpg.o: jpg.c
651 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-jpg.o -MD -MP -MF $(DEPDIR)/i3lock-jpg.Tpo -c -o i3lock-jpg.o `test -f 'jpg.c' || echo '$(srcdir)/'`jpg.c
652 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-jpg.Tpo $(DEPDIR)/i3lock-jpg.Po
653 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='jpg.c' object='i3lock-jpg.o' libtool=no @AMDEPBACKSLASH@
654 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
655 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-jpg.o `test -f 'jpg.c' || echo '$(srcdir)/'`jpg.c
656
657 i3lock-jpg.obj: jpg.c
658 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-jpg.obj -MD -MP -MF $(DEPDIR)/i3lock-jpg.Tpo -c -o i3lock-jpg.obj `if test -f 'jpg.c'; then $(CYGPATH_W) 'jpg.c'; else $(CYGPATH_W) '$(srcdir)/jpg.c'; fi`
659 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-jpg.Tpo $(DEPDIR)/i3lock-jpg.Po
660 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='jpg.c' object='i3lock-jpg.obj' libtool=no @AMDEPBACKSLASH@
661 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
662 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-jpg.obj `if test -f 'jpg.c'; then $(CYGPATH_W) 'jpg.c'; else $(CYGPATH_W) '$(srcdir)/jpg.c'; fi`
663
664 i3lock-i3lock.o: i3lock.c
665 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-i3lock.o -MD -MP -MF $(DEPDIR)/i3lock-i3lock.Tpo -c -o i3lock-i3lock.o `test -f 'i3lock.c' || echo '$(srcdir)/'`i3lock.c
666 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-i3lock.Tpo $(DEPDIR)/i3lock-i3lock.Po
667 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='i3lock.c' object='i3lock-i3lock.o' libtool=no @AMDEPBACKSLASH@
668 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
669 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-i3lock.o `test -f 'i3lock.c' || echo '$(srcdir)/'`i3lock.c
670
671 i3lock-i3lock.obj: i3lock.c
672 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-i3lock.obj -MD -MP -MF $(DEPDIR)/i3lock-i3lock.Tpo -c -o i3lock-i3lock.obj `if test -f 'i3lock.c'; then $(CYGPATH_W) 'i3lock.c'; else $(CYGPATH_W) '$(srcdir)/i3lock.c'; fi`
673 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-i3lock.Tpo $(DEPDIR)/i3lock-i3lock.Po
674 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='i3lock.c' object='i3lock-i3lock.obj' libtool=no @AMDEPBACKSLASH@
675 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
676 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-i3lock.obj `if test -f 'i3lock.c'; then $(CYGPATH_W) 'i3lock.c'; else $(CYGPATH_W) '$(srcdir)/i3lock.c'; fi`
677
678 i3lock-randr.o: randr.c
679 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-randr.o -MD -MP -MF $(DEPDIR)/i3lock-randr.Tpo -c -o i3lock-randr.o `test -f 'randr.c' || echo '$(srcdir)/'`randr.c
680 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-randr.Tpo $(DEPDIR)/i3lock-randr.Po
681 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='randr.c' object='i3lock-randr.o' libtool=no @AMDEPBACKSLASH@
682 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
683 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-randr.o `test -f 'randr.c' || echo '$(srcdir)/'`randr.c
684
685 i3lock-randr.obj: randr.c
686 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-randr.obj -MD -MP -MF $(DEPDIR)/i3lock-randr.Tpo -c -o i3lock-randr.obj `if test -f 'randr.c'; then $(CYGPATH_W) 'randr.c'; else $(CYGPATH_W) '$(srcdir)/randr.c'; fi`
687 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-randr.Tpo $(DEPDIR)/i3lock-randr.Po
688 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='randr.c' object='i3lock-randr.obj' libtool=no @AMDEPBACKSLASH@
689 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
690 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-randr.obj `if test -f 'randr.c'; then $(CYGPATH_W) 'randr.c'; else $(CYGPATH_W) '$(srcdir)/randr.c'; fi`
691
692 i3lock-tinyexpr.o: tinyexpr.c
693 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-tinyexpr.o -MD -MP -MF $(DEPDIR)/i3lock-tinyexpr.Tpo -c -o i3lock-tinyexpr.o `test -f 'tinyexpr.c' || echo '$(srcdir)/'`tinyexpr.c
694 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-tinyexpr.Tpo $(DEPDIR)/i3lock-tinyexpr.Po
695 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tinyexpr.c' object='i3lock-tinyexpr.o' libtool=no @AMDEPBACKSLASH@
696 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
697 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-tinyexpr.o `test -f 'tinyexpr.c' || echo '$(srcdir)/'`tinyexpr.c
698
699 i3lock-tinyexpr.obj: tinyexpr.c
700 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-tinyexpr.obj -MD -MP -MF $(DEPDIR)/i3lock-tinyexpr.Tpo -c -o i3lock-tinyexpr.obj `if test -f 'tinyexpr.c'; then $(CYGPATH_W) 'tinyexpr.c'; else $(CYGPATH_W) '$(srcdir)/tinyexpr.c'; fi`
701 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-tinyexpr.Tpo $(DEPDIR)/i3lock-tinyexpr.Po
702 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tinyexpr.c' object='i3lock-tinyexpr.obj' libtool=no @AMDEPBACKSLASH@
703 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
704 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-tinyexpr.obj `if test -f 'tinyexpr.c'; then $(CYGPATH_W) 'tinyexpr.c'; else $(CYGPATH_W) '$(srcdir)/tinyexpr.c'; fi`
705
706 i3lock-unlock_indicator.o: unlock_indicator.c
707 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-unlock_indicator.o -MD -MP -MF $(DEPDIR)/i3lock-unlock_indicator.Tpo -c -o i3lock-unlock_indicator.o `test -f 'unlock_indicator.c' || echo '$(srcdir)/'`unlock_indicator.c
708 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-unlock_indicator.Tpo $(DEPDIR)/i3lock-unlock_indicator.Po
709 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='unlock_indicator.c' object='i3lock-unlock_indicator.o' libtool=no @AMDEPBACKSLASH@
710 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
711 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-unlock_indicator.o `test -f 'unlock_indicator.c' || echo '$(srcdir)/'`unlock_indicator.c
712
713 i3lock-unlock_indicator.obj: unlock_indicator.c
714 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-unlock_indicator.obj -MD -MP -MF $(DEPDIR)/i3lock-unlock_indicator.Tpo -c -o i3lock-unlock_indicator.obj `if test -f 'unlock_indicator.c'; then $(CYGPATH_W) 'unlock_indicator.c'; else $(CYGPATH_W) '$(srcdir)/unlock_indicator.c'; fi`
715 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-unlock_indicator.Tpo $(DEPDIR)/i3lock-unlock_indicator.Po
716 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='unlock_indicator.c' object='i3lock-unlock_indicator.obj' libtool=no @AMDEPBACKSLASH@
717 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
718 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-unlock_indicator.obj `if test -f 'unlock_indicator.c'; then $(CYGPATH_W) 'unlock_indicator.c'; else $(CYGPATH_W) '$(srcdir)/unlock_indicator.c'; fi`
719
720 i3lock-xcb.o: xcb.c
721 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-xcb.o -MD -MP -MF $(DEPDIR)/i3lock-xcb.Tpo -c -o i3lock-xcb.o `test -f 'xcb.c' || echo '$(srcdir)/'`xcb.c
722 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-xcb.Tpo $(DEPDIR)/i3lock-xcb.Po
723 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xcb.c' object='i3lock-xcb.o' libtool=no @AMDEPBACKSLASH@
724 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
725 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-xcb.o `test -f 'xcb.c' || echo '$(srcdir)/'`xcb.c
726
727 i3lock-xcb.obj: xcb.c
728 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -MT i3lock-xcb.obj -MD -MP -MF $(DEPDIR)/i3lock-xcb.Tpo -c -o i3lock-xcb.obj `if test -f 'xcb.c'; then $(CYGPATH_W) 'xcb.c'; else $(CYGPATH_W) '$(srcdir)/xcb.c'; fi`
729 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/i3lock-xcb.Tpo $(DEPDIR)/i3lock-xcb.Po
730 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xcb.c' object='i3lock-xcb.obj' libtool=no @AMDEPBACKSLASH@
731 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
732 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(i3lock_CPPFLAGS) $(CPPFLAGS) $(i3lock_CFLAGS) $(CFLAGS) -c -o i3lock-xcb.obj `if test -f 'xcb.c'; then $(CYGPATH_W) 'xcb.c'; else $(CYGPATH_W) '$(srcdir)/xcb.c'; fi`
733 install-man1: $(dist_man1_MANS)
734 @$(NORMAL_INSTALL)
735 @list1='$(dist_man1_MANS)'; \
736 list2=''; \
737 test -n "$(man1dir)" \
738 && test -n "`echo $$list1$$list2`" \
739 || exit 0; \
740 echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
741 $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
742 { for i in $$list1; do echo "$$i"; done; \
743 if test -n "$$list2"; then \
744 for i in $$list2; do echo "$$i"; done \
745 | sed -n '/\.1[a-z]*$$/p'; \
746 fi; \
747 } | while read p; do \
748 if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
749 echo "$$d$$p"; echo "$$p"; \
750 done | \
751 sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
752 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
753 sed 'N;N;s,\n, ,g' | { \
754 list=; while read file base inst; do \
755 if test "$$base" = "$$inst"; then list="$$list $$file"; else \
756 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
757 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
758 fi; \
759 done; \
760 for i in $$list; do echo "$$i"; done | $(am__base_list) | \
761 while read files; do \
762 test -z "$$files" || { \
763 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
764 $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
765 done; }
766
767 uninstall-man1:
768 @$(NORMAL_UNINSTALL)
769 @list='$(dist_man1_MANS)'; test -n "$(man1dir)" || exit 0; \
770 files=`{ for i in $$list; do echo "$$i"; done; \
771 } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
772 -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
773 dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
774 install-dist_bashcompletionDATA: $(dist_bashcompletion_DATA)
775 @$(NORMAL_INSTALL)
776 @list='$(dist_bashcompletion_DATA)'; test -n "$(bashcompletiondir)" || list=; \
777 if test -n "$$list"; then \
778 echo " $(MKDIR_P) '$(DESTDIR)$(bashcompletiondir)'"; \
779 $(MKDIR_P) "$(DESTDIR)$(bashcompletiondir)" || exit 1; \
780 fi; \
781 for p in $$list; do \
782 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
783 echo "$$d$$p"; \
784 done | $(am__base_list) | \
785 while read files; do \
786 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(bashcompletiondir)'"; \
787 $(INSTALL_DATA) $$files "$(DESTDIR)$(bashcompletiondir)" || exit $$?; \
788 done
789
790 uninstall-dist_bashcompletionDATA:
791 @$(NORMAL_UNINSTALL)
792 @list='$(dist_bashcompletion_DATA)'; test -n "$(bashcompletiondir)" || list=; \
793 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
794 dir='$(DESTDIR)$(bashcompletiondir)'; $(am__uninstall_files_from_dir)
795 install-dist_zshcompletionDATA: $(dist_zshcompletion_DATA)
796 @$(NORMAL_INSTALL)
797 @list='$(dist_zshcompletion_DATA)'; test -n "$(zshcompletiondir)" || list=; \
798 if test -n "$$list"; then \
799 echo " $(MKDIR_P) '$(DESTDIR)$(zshcompletiondir)'"; \
800 $(MKDIR_P) "$(DESTDIR)$(zshcompletiondir)" || exit 1; \
801 fi; \
802 for p in $$list; do \
803 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
804 echo "$$d$$p"; \
805 done | $(am__base_list) | \
806 while read files; do \
807 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(zshcompletiondir)'"; \
808 $(INSTALL_DATA) $$files "$(DESTDIR)$(zshcompletiondir)" || exit $$?; \
809 done
810
811 uninstall-dist_zshcompletionDATA:
812 @$(NORMAL_UNINSTALL)
813 @list='$(dist_zshcompletion_DATA)'; test -n "$(zshcompletiondir)" || list=; \
814 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
815 dir='$(DESTDIR)$(zshcompletiondir)'; $(am__uninstall_files_from_dir)
816 install-pamdDATA: $(pamd_DATA)
817 @$(NORMAL_INSTALL)
818 @list='$(pamd_DATA)'; test -n "$(pamddir)" || list=; \
819 if test -n "$$list"; then \
820 echo " $(MKDIR_P) '$(DESTDIR)$(pamddir)'"; \
821 $(MKDIR_P) "$(DESTDIR)$(pamddir)" || exit 1; \
822 fi; \
823 for p in $$list; do \
824 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
825 echo "$$d$$p"; \
826 done | $(am__base_list) | \
827 while read files; do \
828 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pamddir)'"; \
829 $(INSTALL_DATA) $$files "$(DESTDIR)$(pamddir)" || exit $$?; \
830 done
831
832 uninstall-pamdDATA:
833 @$(NORMAL_UNINSTALL)
834 @list='$(pamd_DATA)'; test -n "$(pamddir)" || list=; \
835 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
836 dir='$(DESTDIR)$(pamddir)'; $(am__uninstall_files_from_dir)
837
838 ID: $(am__tagged_files)
839 $(am__define_uniq_tagged_files); mkid -fID $$unique
840 tags: tags-am
841 TAGS: tags
842
843 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
844 set x; \
845 here=`pwd`; \
846 $(am__define_uniq_tagged_files); \
847 shift; \
848 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
849 test -n "$$unique" || unique=$$empty_fix; \
850 if test $$# -gt 0; then \
851 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
852 "$$@" $$unique; \
853 else \
854 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
855 $$unique; \
856 fi; \
857 fi
858 ctags: ctags-am
859
860 CTAGS: ctags
861 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
862 $(am__define_uniq_tagged_files); \
863 test -z "$(CTAGS_ARGS)$$unique" \
864 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
865 $$unique
866
867 GTAGS:
868 here=`$(am__cd) $(top_builddir) && pwd` \
869 && $(am__cd) $(top_srcdir) \
870 && gtags -i $(GTAGS_ARGS) "$$here"
871 cscope: cscope.files
872 test ! -s cscope.files \
873 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
874 clean-cscope:
875 -rm -f cscope.files
876 cscope.files: clean-cscope cscopelist
877 cscopelist: cscopelist-am
878
879 cscopelist-am: $(am__tagged_files)
880 list='$(am__tagged_files)'; \
881 case "$(srcdir)" in \
882 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
883 *) sdir=$(subdir)/$(srcdir) ;; \
884 esac; \
885 for i in $$list; do \
886 if test -f "$$i"; then \
887 echo "$(subdir)/$$i"; \
888 else \
889 echo "$$sdir/$$i"; \
890 fi; \
891 done >> $(top_builddir)/cscope.files
892
893 distclean-tags:
894 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
895 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
896 distdir: $(BUILT_SOURCES)
897 $(MAKE) $(AM_MAKEFLAGS) distdir-am
898
899 distdir-am: $(DISTFILES)
900 $(am__remove_distdir)
901 test -d "$(distdir)" || mkdir "$(distdir)"
902 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
903 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
904 list='$(DISTFILES)'; \
905 dist_files=`for file in $$list; do echo $$file; done | \
906 sed -e "s|^$$srcdirstrip/||;t" \
907 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
908 case $$dist_files in \
909 */*) $(MKDIR_P) `echo "$$dist_files" | \
910 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
911 sort -u` ;; \
912 esac; \
913 for file in $$dist_files; do \
914 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
915 if test -d $$d/$$file; then \
916 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
917 if test -d "$(distdir)/$$file"; then \
918 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
919 fi; \
920 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
921 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
922 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
923 fi; \
924 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
925 else \
926 test -f "$(distdir)/$$file" \
927 || cp -p $$d/$$file "$(distdir)/$$file" \
928 || exit 1; \
929 fi; \
930 done
931 -test -n "$(am__skip_mode_fix)" \
932 || find "$(distdir)" -type d ! -perm -755 \
933 -exec chmod u+rwx,go+rx {} \; -o \
934 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
935 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
936 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
937 || chmod -R a+r "$(distdir)"
938 dist-gzip: distdir
939 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
940 $(am__post_remove_distdir)
941 dist-bzip2: distdir
942 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
943 $(am__post_remove_distdir)
944
945 dist-lzip: distdir
946 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
947 $(am__post_remove_distdir)
948
949 dist-xz: distdir
950 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
951 $(am__post_remove_distdir)
952
953 dist-zstd: distdir
954 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
955 $(am__post_remove_distdir)
956
957 dist-tarZ: distdir
958 @echo WARNING: "Support for distribution archives compressed with" \
959 "legacy program 'compress' is deprecated." >&2
960 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
961 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
962 $(am__post_remove_distdir)
963
964 dist-shar: distdir
965 @echo WARNING: "Support for shar distribution archives is" \
966 "deprecated." >&2
967 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
968 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
969 $(am__post_remove_distdir)
970
971 dist-zip: distdir
972 -rm -f $(distdir).zip
973 zip -rq $(distdir).zip $(distdir)
974 $(am__post_remove_distdir)
975
976 dist dist-all:
977 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
978 $(am__post_remove_distdir)
979
980 # This target untars the dist file and tries a VPATH configuration. Then
981 # it guarantees that the distribution is self-contained by making another
982 # tarfile.
983 distcheck: dist
984 case '$(DIST_ARCHIVES)' in \
985 *.tar.gz*) \
986 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
987 *.tar.bz2*) \
988 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
989 *.tar.lz*) \
990 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
991 *.tar.xz*) \
992 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
993 *.tar.Z*) \
994 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
995 *.shar.gz*) \
996 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
997 *.zip*) \
998 unzip $(distdir).zip ;;\
999 *.tar.zst*) \
1000 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
1001 esac
1002 chmod -R a-w $(distdir)
1003 chmod u+w $(distdir)
1004 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
1005 chmod a-w $(distdir)
1006 test -d $(distdir)/_build || exit 0; \
1007 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
1008 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
1009 && am__cwd=`pwd` \
1010 && $(am__cd) $(distdir)/_build/sub \
1011 && ../../configure \
1012 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
1013 $(DISTCHECK_CONFIGURE_FLAGS) \
1014 --srcdir=../.. --prefix="$$dc_install_base" \
1015 && $(MAKE) $(AM_MAKEFLAGS) \
1016 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
1017 && $(MAKE) $(AM_MAKEFLAGS) check \
1018 && $(MAKE) $(AM_MAKEFLAGS) install \
1019 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1020 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
1021 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
1022 distuninstallcheck \
1023 && chmod -R a-w "$$dc_install_base" \
1024 && ({ \
1025 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
1026 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
1027 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
1028 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
1029 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
1030 } || { rm -rf "$$dc_destdir"; exit 1; }) \
1031 && rm -rf "$$dc_destdir" \
1032 && $(MAKE) $(AM_MAKEFLAGS) dist \
1033 && rm -rf $(DIST_ARCHIVES) \
1034 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
1035 && cd "$$am__cwd" \
1036 || exit 1
1037 $(am__post_remove_distdir)
1038 @(echo "$(distdir) archives ready for distribution: "; \
1039 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
1040 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
1041 distuninstallcheck:
1042 @test -n '$(distuninstallcheck_dir)' || { \
1043 echo 'ERROR: trying to run $@ with an empty' \
1044 '$$(distuninstallcheck_dir)' >&2; \
1045 exit 1; \
1046 }; \
1047 $(am__cd) '$(distuninstallcheck_dir)' || { \
1048 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
1049 exit 1; \
1050 }; \
1051 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
1052 || { echo "ERROR: files left after uninstall:" ; \
1053 if test -n "$(DESTDIR)"; then \
1054 echo " (check DESTDIR support)"; \
1055 fi ; \
1056 $(distuninstallcheck_listfiles) ; \
1057 exit 1; } >&2
1058 distcleancheck: distclean
1059 @if test '$(srcdir)' = . ; then \
1060 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
1061 exit 1 ; \
1062 fi
1063 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
1064 || { echo "ERROR: files left in build directory after distclean:" ; \
1065 $(distcleancheck_listfiles) ; \
1066 exit 1; } >&2
1067 check-am: all-am
1068 check: check-am
1069 all-am: Makefile $(PROGRAMS) $(MANS) $(DATA) config.h
1070 installdirs:
1071 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(bashcompletiondir)" "$(DESTDIR)$(zshcompletiondir)" "$(DESTDIR)$(pamddir)"; do \
1072 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1073 done
1074 install: install-am
1075 install-exec: install-exec-am
1076 install-data: install-data-am
1077 uninstall: uninstall-am
1078
1079 install-am: all-am
1080 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1081
1082 installcheck: installcheck-am
1083 install-strip:
1084 if test -z '$(STRIP)'; then \
1085 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1086 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1087 install; \
1088 else \
1089 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1090 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1091 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1092 fi
1093 mostlyclean-generic:
1094
1095 clean-generic:
1096
1097 distclean-generic:
1098 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1099 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1100 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
1101
1102 maintainer-clean-generic:
1103 @echo "This command is intended for maintainers to use"
1104 @echo "it deletes files that may require special tools to rebuild."
1105 clean: clean-am
1106
1107 clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
1108
1109 distclean: distclean-am
1110 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1111 -rm -f ./$(DEPDIR)/i3lock-blur.Po
1112 -rm -f ./$(DEPDIR)/i3lock-blur_simd.Po
1113 -rm -f ./$(DEPDIR)/i3lock-dpi.Po
1114 -rm -f ./$(DEPDIR)/i3lock-i3lock.Po
1115 -rm -f ./$(DEPDIR)/i3lock-jpg.Po
1116 -rm -f ./$(DEPDIR)/i3lock-randr.Po
1117 -rm -f ./$(DEPDIR)/i3lock-tinyexpr.Po
1118 -rm -f ./$(DEPDIR)/i3lock-unlock_indicator.Po
1119 -rm -f ./$(DEPDIR)/i3lock-xcb.Po
1120 -rm -f Makefile
1121 distclean-am: clean-am distclean-compile distclean-generic \
1122 distclean-hdr distclean-tags
1123
1124 dvi: dvi-am
1125
1126 dvi-am:
1127
1128 html: html-am
1129
1130 html-am:
1131
1132 info: info-am
1133
1134 info-am:
1135
1136 install-data-am: install-dist_bashcompletionDATA \
1137 install-dist_zshcompletionDATA install-man install-pamdDATA
1138 @$(NORMAL_INSTALL)
1139 $(MAKE) $(AM_MAKEFLAGS) install-data-hook
1140 install-dvi: install-dvi-am
1141
1142 install-dvi-am:
1143
1144 install-exec-am: install-binPROGRAMS
1145
1146 install-html: install-html-am
1147
1148 install-html-am:
1149
1150 install-info: install-info-am
1151
1152 install-info-am:
1153
1154 install-man: install-man1
1155
1156 install-pdf: install-pdf-am
1157
1158 install-pdf-am:
1159
1160 install-ps: install-ps-am
1161
1162 install-ps-am:
1163
1164 installcheck-am:
1165
1166 maintainer-clean: maintainer-clean-am
1167 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1168 -rm -rf $(top_srcdir)/autom4te.cache
1169 -rm -f ./$(DEPDIR)/i3lock-blur.Po
1170 -rm -f ./$(DEPDIR)/i3lock-blur_simd.Po
1171 -rm -f ./$(DEPDIR)/i3lock-dpi.Po
1172 -rm -f ./$(DEPDIR)/i3lock-i3lock.Po
1173 -rm -f ./$(DEPDIR)/i3lock-jpg.Po
1174 -rm -f ./$(DEPDIR)/i3lock-randr.Po
1175 -rm -f ./$(DEPDIR)/i3lock-tinyexpr.Po
1176 -rm -f ./$(DEPDIR)/i3lock-unlock_indicator.Po
1177 -rm -f ./$(DEPDIR)/i3lock-xcb.Po
1178 -rm -f Makefile
1179 maintainer-clean-am: distclean-am maintainer-clean-generic
1180
1181 mostlyclean: mostlyclean-am
1182
1183 mostlyclean-am: mostlyclean-compile mostlyclean-generic
1184
1185 pdf: pdf-am
1186
1187 pdf-am:
1188
1189 ps: ps-am
1190
1191 ps-am:
1192
1193 uninstall-am: uninstall-binPROGRAMS uninstall-dist_bashcompletionDATA \
1194 uninstall-dist_zshcompletionDATA uninstall-man \
1195 uninstall-pamdDATA
1196 @$(NORMAL_INSTALL)
1197 $(MAKE) $(AM_MAKEFLAGS) uninstall-hook
1198 uninstall-man: uninstall-man1
1199
1200 .MAKE: all install-am install-data-am install-strip uninstall-am
1201
1202 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles am--refresh check \
1203 check-am clean clean-binPROGRAMS clean-cscope clean-generic \
1204 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
1205 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
1206 dist-zstd distcheck distclean distclean-compile \
1207 distclean-generic distclean-hdr distclean-tags distcleancheck \
1208 distdir distuninstallcheck dvi dvi-am html html-am info \
1209 info-am install install-am install-binPROGRAMS install-data \
1210 install-data-am install-data-hook \
1211 install-dist_bashcompletionDATA install-dist_zshcompletionDATA \
1212 install-dvi install-dvi-am install-exec install-exec-am \
1213 install-html install-html-am install-info install-info-am \
1214 install-man install-man1 install-pamdDATA install-pdf \
1215 install-pdf-am install-ps install-ps-am install-strip \
1216 installcheck installcheck-am installdirs maintainer-clean \
1217 maintainer-clean-generic mostlyclean mostlyclean-compile \
1218 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
1219 uninstall-am uninstall-binPROGRAMS \
1220 uninstall-dist_bashcompletionDATA \
1221 uninstall-dist_zshcompletionDATA uninstall-hook uninstall-man \
1222 uninstall-man1 uninstall-pamdDATA
1223
1224 .PRECIOUS: Makefile
1225
1226 @CODE_COVERAGE_RULES@
1227
1228 echo-version:
1229 @echo "@I3LOCK_VERSION@"
1230
1231 install-data-hook:
1232 @ENABLE_BASH_COMPLETION_TRUE@ test -f "${BASH_COMPLETION_DIR}/i3lock-bash" && mv -f "${BASH_COMPLETION_DIR}/i3lock-bash" "${BASH_COMPLETION_DIR}/i3lock" || true
1233 @ENABLE_ZSH_COMPLETION_TRUE@ test -f "${ZSH_COMPLETION_DIR}/i3lock-zsh" && mv -f "${ZSH_COMPLETION_DIR}/i3lock-zsh" "${ZSH_COMPLETION_DIR}/_i3lock" || true
1234
1235 uninstall-hook:
1236 @ENABLE_BASH_COMPLETION_TRUE@ rm -f ${BASH_COMPLETION_DIR}/i3lock
1237 @ENABLE_ZSH_COMPLETION_TRUE@ rm -f ${ZSH_COMPLETION_DIR}/_i3lock
1238
1239 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1240 # Otherwise a system limit (for SysV at least) may be exceeded.
1241 .NOEXPORT:
1010 [![Latest release](https://img.shields.io/github/release-date/Raymo111/i3lock-color?label=latest%20release)](https://github.com/Raymo111/i3lock-color/releases/latest)
1111 [![Commits](https://img.shields.io/github/commits-since/Raymo111/i3lock-color/latest?include_prereleases&sort=semver)](https://github.com/Raymo111/i3lock-color/commits/master)
1212 ![Latest commit](https://img.shields.io/github/last-commit/Raymo111/i3lock-color)
13 [![AUR release ver](https://img.shields.io/aur/version/i3lock-color?label=AUR%20release%20ver&logo=ArchLinux)](https://aur.archlinux.org/packages/i3lock-color/)
14 [![AUR git ver](https://img.shields.io/aur/version/i3lock-color-git?label=AUR%20git%20ver&logo=ArchLinux)](https://aur.archlinux.org/packages/i3lock-color-git/)
15 ![AUR votes](https://img.shields.io/aur/votes/i3lock-color-git?logo=ArchLinux)
16 [![GitHub forks](https://img.shields.io/github/forks/Raymo111/i3lock-color?logo=GitHub)](https://github.com/Raymo111/i3lock-color/network/members)
17 [![GitHub stars](https://img.shields.io/github/stars/Raymo111/i3lock-color?logo=GitHub)](https://github.com/Raymo111/i3lock-color/stargazers)
18 [![GitHub watchers](https://img.shields.io/github/watchers/Raymo111/i3lock-color?logo=GitHub)](https://github.com/Raymo111/i3lock-color/watchers)
19 [![Discord server](https://img.shields.io/discord/878461145197977630?label=Discord&logo=Discord)](https://discord.gg/FzVPghyDt2)
20 ![Maintained](https://img.shields.io/maintenance/yes/9999)
1321 <!--![Arch Linux package](https://img.shields.io/archlinux/v/community/x86_64/i3lock-color?logo=arch%20linux&label=Community%20version)-->
14 [![AUR release ver](https://img.shields.io/aur/version/i3lock-color?label=AUR%20release%20ver)](https://aur.archlinux.org/packages/i3lock-color/)
15 [![AUR git ver](https://img.shields.io/aur/version/i3lock-color-git?label=AUR%20git%20ver)](https://aur.archlinux.org/packages/i3lock-color-git/)
16 ![AUR votes](https://img.shields.io/aur/votes/i3lock-color-git)
17 [![GitHub forks](https://img.shields.io/github/forks/Raymo111/i3lock-color)](https://github.com/Raymo111/i3lock-color/network/members)
18 [![GitHub stars](https://img.shields.io/github/stars/Raymo111/i3lock-color)](https://github.com/Raymo111/i3lock-color/stargazers)
19 [![GitHub watchers](https://img.shields.io/github/watchers/Raymo111/i3lock-color)](https://github.com/Raymo111/i3lock-color/watchers)
20 ![Maintained](https://img.shields.io/maintenance/yes/2021)
2122
2223 ### The world's most popular non-default computer lockscreen.
2324 **A modern version of i3lock with color functionality and other features.**
2425
2526 ![i3lock-color in action](examples/screenshot.png "Screenshot sample")
27
28 **NEW: Official Discord server at https://discord.gg/FzVPghyDt2**
2629
2730 i3lock is a simple screen locker like slock. After starting it, you will see a white screen (you can configure the color/an image). You can return to your screen by entering your password.
2831
121124 ```
122125 You may choose to modify the script based on your needs/OS/distro.
123126
127 ## Alpine Linux Packages
128 Alpine packages i3lock-color for a variety of architectures. A full list can be found on [pkgs.alpinelinux.org](https://pkgs.alpinelinux.org/packages?name=i3lock-color&branch=edge).
129
124130 ## Arch Linux Packages
125131 ~~[Stable version in Community](https://www.archlinux.org/packages/community/x86_64/i3lock-color/)~~
126132
127 Unfortunately the previous maintainer left, and the package got dumped back into the AUR where I'm now maintaining it. I'm looking for a TU to sponsor it back into Community, but for now, get it on AUR:
133 Unfortunately the previous maintainer left, and the package got dumped back into the AUR where I'm now maintaining it. You can get it on AUR:
128134 - [Release Version on AUR](https://aur.archlinux.org/packages/i3lock-color/)
129135 - [Git Version on AUR](https://aur.archlinux.org/packages/i3lock-color-git/)
130136
131 ## Gentoo Package
137 If you're an Arch TU and you're reading this please consider sponsoring it into Community again!
138
139 ## Gentoo Linux Package
132140 i3lock-color is available on **GURU**, under [`x11-misc/i3lock-color`](https://github.com/gentoo/guru/tree/master/x11-misc/i3lock-color).
133141
142 ## Kali Linux Package
143 A Debian/Kali package is available: https://gitlab.com/kalilinux/packages/i3lock-color.
144
145 ## NixOS Package
146 A NixOS package is available. To install, run
147 ```
148 nix-env -iA nixos.i3lock-color
149 ```
150
151 ## Void Linux Package
152 A Void Linux package is available at https://github.com/void-linux/void-packages/tree/master/srcpkgs/i3lock-color.
153
134154 ## FreeBSD port
135 ~~[i3lock-color-port](https://github.com/rkashapov/i3lock-color-port/)~~ (severely out of date).
155 A FreeBSD port is available on freshports: [x11/i3lock-color/](https://www.freshports.org/x11/i3lock-color/).
136156
137157 ## Running i3lock-color
138158 Simply invoke the 'i3lock' command. To get out of it, enter your password and press enter.
+0
-81
SECURITY.md less more
0 # Security Policy
1
2 ## Supported Versions
3
4 Use this section to tell people about which versions of your project are
5 currently being supported with security updates.
6
7 | Version | Supported |
8 | ---------- | ------------------ |
9 | 2.12.c.5 | :white_check_mark: |
10 | < 2.12.c.5 | :x: |
11
12 ## Reporting a Vulnerability
13
14 If there's a severe security vulnerability in the latest version of i3lock-color, don't post a public issue. Either email me directly at [[email protected]](mailto:[email protected]?subject=i3lock-color%20security%20vulnerability), or encrypt the issue text with my PGP public key:
15 ```
16 -----BEGIN PGP PUBLIC KEY BLOCK-----
17
18 mQINBF3PSOoBEADQP/vqo3XMOntXWo/IOy0jDCicWycWbwU1UfsZYt4MNAf1/M6t
19 yBEKt+U94diDoD4JDDaWPdbHEyQ/6AqRqzUO+dcO19pmFc5p0nj4sPQ+iMJ95I63
20 FW3ZSq//1vf33sNWA773YBJOD0s02dDtuCriUd+06zHXd92+9Vm+wvsP0yaPUC3g
21 KVgN9IcdKYS6HsBuncfBFVzE/wf9BL3YHwvGgqS+XcQ2mPizy6Ddc/zXfn43zXLT
22 Q/nYb7Gt34EdP2J31ypuLFrVE3oSA9hK4SSvV8Z4INRELYhSjLVYt9S/NuhpIo8T
23 wOirZFKVfeBvtoog0LX1isFmGdje3ML20IH9bOqp7UcmsXbYqmza3xrOUdHQpqe2
24 Idz5O3XOrlcqcVbeeNNcqeUBr/u5XScYGIyDr9+b4utis/PxnqE6hoiwSrwsLZ6Q
25 QYHcsR+rwLujfxQf3k1emMLkrS+sd61WFGB4ZAvHpdpNtfym/c5g+CTA2SEjhM7+
26 g0qvT9guEhLk/mEgtXvCCkcESAIZMnk1xUkXldqofl5Vr8r2B6oEw2hmwwcTJrHJ
27 4x9IfcgrJDlyxcUQJ2UJzmtn/D6L7OdG465cdVZ+8QQRmf4IQV+6SXEqb1s9hFDj
28 sahJIdgftDDYmgaEzNYz09z/obAgUho5stsW7Ah/D8C1DsfD3DMNs5IS7QARAQAB
29 tCdSYXltb25kIExpICgoUmF5bW8xMTEpKSA8aGlAcmF5bW9uZC5saT6JAk4EEwEI
30 ADgWIQRkwvsY4QR1Ip//JdHwWN+YLbQvnQUCXc9I6gIbLwULCQgHAgYVCgkICwIE
31 FgIDAQIeAQIXgAAKCRDwWN+YLbQvndhCEAC1HRAXV2i6pQ6c6frCwAQSbMLiRiqd
32 OYyipejmjkF04wm3Zb4MMfzSWLoVXbHcX8NX8+i/VjMBgoPyLd/XutdDD8qq1TVb
33 paIbN+fIgniMMwW0X/8LRm6jqhlO8Z4igzExHF+GLG2NRMIhTaNdRp51x7Lc5iOu
34 PgR8p1Ql5+vhIb9WdNUq2L74JW7BSqb1Xit86NtJI723gbg+Xwbv60uuzPHhd0bN
35 jHHHJ1f9YSlPPZH5iMlBcl3iNoMfIbCp1G179IaK/sN5C4hPhVvy8GmoTlTIQ6If
36 gs2x1xFwoIMlz8SFX4KJwnIIXZz6JBzpGRNIXV5fhwrzLpvY19iKh+JIHOtxcovy
37 YjKOFe4+dOgBade29C+RyJ+i21cijTzsn8nE7COt49N3gXl+sXHUv4kSUVkGEmNY
38 VtMLFJbjTxDxb/V25iWov23Gz9DhWcl/oCmCnLhi+7YZtmNpCbFrZSkGVq0VNfBE
39 f6Mh96ugGbehg0tbbiLf0hdHMO0qi5DXP3Lfyy7Mw20YlOWiLqyTCs+HgVBXP783
40 n1SfQrswbObOj7z+Bg8iQvYwKhU2A6sgToROYeZ3mV4kuTEcqpJhfGBXD6xraUm1
41 kSg3Xc8A/3G1z34uHXGPb5sQx3eu+LbaSfDLTLObfy+ef+Z2fqt8Q8SVzTInnUQq
42 k8K700ofB9zOw7kCDQRdz0jqARAAqfyjVbId7hc4tL9H0rpGr4A2NFdjvs7ktf9L
43 63/GtzyTJ5oFa2jOMtmU4PDbgwOAHXFZJEQ9etzPsIxZOrH0uuOO/5WPxu+n+mEz
44 M+mnV6YA/wGu/IUKcbpOHMjinH6uaNlJ/PErJkHkGPCb97c/HFYROBoSBPtRW+8q
45 Qdlaq4cccwE93pindt1aoE7nHFlsxuQG0s8fQ8qX7SgO2okve3OJnstADpcpMX5x
46 VausXoGc3h6BQexaAnsIJ574ov5vNxFOHG/22RSsyf+Xd8MPqQv5Znk2lQD9EwzS
47 m15jy008jpkV7kByZHDNuiTjxfrhkCy6gS3RlCgnKZlyTqkjuU1vQ12S/xXZJzwD
48 IBfbxZQP9dfxYo4Pusd7bMlptkJTUmjr5JeLAcfNWyDTvwZ/ea+2gdrXedUYlYNS
49 m984ZIwLjDxC/PjwXyURCTNamYibGgnMHwD8Fr2czszBQxwM/ThGkgN6fdwyvGzL
50 AfeYAjZrZfTtA/OV7fpBR+hUAJcFJCSiHzIOyDlAMYVIaRnAfCGvCnE4ksUWP6so
51 vBBLQsF+XmCw5GhzDC26UV3Cyu/bJ0AXKVYtoKungixjrhwcZ6icAXiAvF6ZtfnA
52 xxqkgmm4lDbLJN9wbInhAVK5fiN+phbFDPgEorpyoxdsJtwmN0AAYHO+leBMFMfQ
53 RsEkPLcAEQEAAYkEbAQYAQgAIBYhBGTC+xjhBHUin/8l0fBY35gttC+dBQJdz0jq
54 AhsuAkAJEPBY35gttC+dwXQgBBkBCAAdFiEEs9q7pbmssSalH+X5oBTqibYruxsF
55 Al3PSOoACgkQoBTqibYruxuEmg/8D06MiJ7G9hZpENphSl3YcfGYgmHIfCPdc+D4
56 mMO50ychMGPMDlsDHtVSpUbTrvPtzNlulYfREAm9LsuFQRvYHOVNQ9rbI7gEo3ga
57 K4LrcCsYkG27TiMeiljgqN2qWHYJAHDdAPbmAEawCMo9Y3uiMvcs8Gt9lFjIiIa9
58 jfs+rBCw2yJwP2HlYjK7CyIgNvjiMjDbWNIeQY6ONlR+ojDR52bcPljyT4rQ+XTq
59 t2/ArCwcFciX25EoQ4ncl5F44GqwWDkdpj8/HCfNQkRPN7nR9LGftyFCWUxZLZUQ
60 Ux0Is6wubu0KxE3P1Xvz2HDhKZVBiR5P4TiC79CgSpENFyAvmCt4tnsnTu7UGYzj
61 JWl/Lvi+dirC+THmOj00sbTzyKnMn7896hgSiKlgkl968JfTf4SsDmySftg+894f
62 PZizZt8v3jjEy8oRvQ4S619Visz+3fxrM2mKbBXW33G+cWIyVkKqzUQgdI+itaO8
63 iLDP5HjMNSJd2VvvwswnJq0KnyMCRY2QzJ90E2FPTcl9Ltv1zEl16GqCWyQtSrma
64 tEKZAFTdFVMwdLbggFlWnLx7qOfTs7nBIXGmfi25DmPcufNskmq8RiTSxXyFRBJS
65 OMYP+xkxNR4JSOA+Clt20zclknX6HA9877vWy9Gnqm+gWu5PIfiDvxitQukc+e5B
66 N3WQfnEUxQ/8CN1ncUHk4JlP25vjFS9/eK+yTqR8AEEr20DD0cSNvRtpjwiaIZaf
67 Up9SQTtz2RuqiIl7+Hak8VCAKvYWHXy5BjId73x5SfnT9wuic+/jAaUi+5Ypo/Lh
68 R/LfsWPsE1EGtmcmRwltNjxL32gpiD4LS7TuY5XVvmVBUh5185Y/t5WkP3kv4FB6
69 uA2g8kADHQbLtcpVc7c510Ru3MQ8HSmyGKO/3K++itNTST70RV36SOCNfG3WDSBD
70 yO8t2RKzH6Q+f4a2pWJafuknvvMsTf11YRZBBZUVF1XVTABtEu/fucbTMjVHh2gd
71 69iICS0KTL6sf6K3fclPQiqKIbCFgf/CGWUaAyzWBM8bWsxD2kywrdf1qY+UU1AF
72 vV+RmvVjcr1o3V6fZNDSlXET8w7jHjddTBstiCEK4aQCds6DDJU2+Ucqw5sqzwr3
73 9LKbph/uibQxJC/AYNMiCH5OHDknhnyAwNmn+KMXHyJkqGoqB5zXVfsxrHroEBHR
74 Sl77//DFlSl06lLee97HiSoKckpFrsmjpSbkQ+wFcb0x4lRbN5vRx8oUvagpGJ2D
75 mLhEcizl8EB9RwneaN6AfJg0BIikKpxl/K/gf7wr8fdsEgK0WIgCb60Ed8VEd9+l
76 rnKFFKw58bCu0PS5Uk6Lnb/jbbWOaB4ngOeOEGPoeT1vdDI6hkkEma4=
77 =HNQH
78 -----END PGP PUBLIC KEY BLOCK-----
79 ```
80 You can also get my key directly from the [GNUPG keyserver](http://keys.gnupg.net/pks/lookup?op=vindex&fingerprint=on&search=0xF058DF982DB42F9D).
+0
-1
_config.yml less more
0 theme: jekyll-theme-midnight⏎
0 # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2021 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.71],,
17 [m4_warning([this file was generated for autoconf 2.71.
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 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23 # serial 12 (pkg-config-0.29.2)
24
25 dnl Copyright Š 2004 Scott James Remnant <[email protected]>.
26 dnl Copyright Š 2012-2015 Dan Nicholson <[email protected]>
27 dnl
28 dnl This program is free software; you can redistribute it and/or modify
29 dnl it under the terms of the GNU General Public License as published by
30 dnl the Free Software Foundation; either version 2 of the License, or
31 dnl (at your option) any later version.
32 dnl
33 dnl This program is distributed in the hope that it will be useful, but
34 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
35 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
36 dnl General Public License for more details.
37 dnl
38 dnl You should have received a copy of the GNU General Public License
39 dnl along with this program; if not, write to the Free Software
40 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
41 dnl 02111-1307, USA.
42 dnl
43 dnl As a special exception to the GNU General Public License, if you
44 dnl distribute this file as part of a program that contains a
45 dnl configuration script generated by Autoconf, you may include it under
46 dnl the same distribution terms that you use for the rest of that
47 dnl program.
48
49 dnl PKG_PREREQ(MIN-VERSION)
50 dnl -----------------------
51 dnl Since: 0.29
52 dnl
53 dnl Verify that the version of the pkg-config macros are at least
54 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
55 dnl installed version of pkg-config, this checks the developer's version
56 dnl of pkg.m4 when generating configure.
57 dnl
58 dnl To ensure that this macro is defined, also add:
59 dnl m4_ifndef([PKG_PREREQ],
60 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
61 dnl
62 dnl See the "Since" comment for each macro you use to see what version
63 dnl of the macros you require.
64 m4_defun([PKG_PREREQ],
65 [m4_define([PKG_MACROS_VERSION], [0.29.2])
66 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
67 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
68 ])dnl PKG_PREREQ
69
70 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
71 dnl ----------------------------------
72 dnl Since: 0.16
73 dnl
74 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
75 dnl first found in the path. Checks that the version of pkg-config found
76 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
77 dnl used since that's the first version where most current features of
78 dnl pkg-config existed.
79 AC_DEFUN([PKG_PROG_PKG_CONFIG],
80 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
81 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
82 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
83 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
84 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
85 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
86
87 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
88 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
89 fi
90 if test -n "$PKG_CONFIG"; then
91 _pkg_min_version=m4_default([$1], [0.9.0])
92 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
93 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
94 AC_MSG_RESULT([yes])
95 else
96 AC_MSG_RESULT([no])
97 PKG_CONFIG=""
98 fi
99 fi[]dnl
100 ])dnl PKG_PROG_PKG_CONFIG
101
102 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
103 dnl -------------------------------------------------------------------
104 dnl Since: 0.18
105 dnl
106 dnl Check to see whether a particular set of modules exists. Similar to
107 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
108 dnl
109 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
110 dnl only at the first occurence in configure.ac, so if the first place
111 dnl it's called might be skipped (such as if it is within an "if", you
112 dnl have to call PKG_CHECK_EXISTS manually
113 AC_DEFUN([PKG_CHECK_EXISTS],
114 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
115 if test -n "$PKG_CONFIG" && \
116 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
117 m4_default([$2], [:])
118 m4_ifvaln([$3], [else
119 $3])dnl
120 fi])
121
122 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
123 dnl ---------------------------------------------
124 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
125 dnl pkg_failed based on the result.
126 m4_define([_PKG_CONFIG],
127 [if test -n "$$1"; then
128 pkg_cv_[]$1="$$1"
129 elif test -n "$PKG_CONFIG"; then
130 PKG_CHECK_EXISTS([$3],
131 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
132 test "x$?" != "x0" && pkg_failed=yes ],
133 [pkg_failed=yes])
134 else
135 pkg_failed=untried
136 fi[]dnl
137 ])dnl _PKG_CONFIG
138
139 dnl _PKG_SHORT_ERRORS_SUPPORTED
140 dnl ---------------------------
141 dnl Internal check to see if pkg-config supports short errors.
142 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
143 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
145 _pkg_short_errors_supported=yes
146 else
147 _pkg_short_errors_supported=no
148 fi[]dnl
149 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
150
151
152 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
153 dnl [ACTION-IF-NOT-FOUND])
154 dnl --------------------------------------------------------------
155 dnl Since: 0.4.0
156 dnl
157 dnl Note that if there is a possibility the first call to
158 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
159 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
160 AC_DEFUN([PKG_CHECK_MODULES],
161 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
162 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
163 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
164
165 pkg_failed=no
166 AC_MSG_CHECKING([for $2])
167
168 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
169 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
170
171 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
172 and $1[]_LIBS to avoid the need to call pkg-config.
173 See the pkg-config man page for more details.])
174
175 if test $pkg_failed = yes; then
176 AC_MSG_RESULT([no])
177 _PKG_SHORT_ERRORS_SUPPORTED
178 if test $_pkg_short_errors_supported = yes; then
179 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
180 else
181 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
182 fi
183 # Put the nasty error message in config.log where it belongs
184 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
185
186 m4_default([$4], [AC_MSG_ERROR(
187 [Package requirements ($2) were not met:
188
189 $$1_PKG_ERRORS
190
191 Consider adjusting the PKG_CONFIG_PATH environment variable if you
192 installed software in a non-standard prefix.
193
194 _PKG_TEXT])[]dnl
195 ])
196 elif test $pkg_failed = untried; then
197 AC_MSG_RESULT([no])
198 m4_default([$4], [AC_MSG_FAILURE(
199 [The pkg-config script could not be found or is too old. Make sure it
200 is in your PATH or set the PKG_CONFIG environment variable to the full
201 path to pkg-config.
202
203 _PKG_TEXT
204
205 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
206 ])
207 else
208 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
209 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
210 AC_MSG_RESULT([yes])
211 $3
212 fi[]dnl
213 ])dnl PKG_CHECK_MODULES
214
215
216 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
217 dnl [ACTION-IF-NOT-FOUND])
218 dnl ---------------------------------------------------------------------
219 dnl Since: 0.29
220 dnl
221 dnl Checks for existence of MODULES and gathers its build flags with
222 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
223 dnl and VARIABLE-PREFIX_LIBS from --libs.
224 dnl
225 dnl Note that if there is a possibility the first call to
226 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
227 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
228 dnl configure.ac.
229 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
230 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
231 _save_PKG_CONFIG=$PKG_CONFIG
232 PKG_CONFIG="$PKG_CONFIG --static"
233 PKG_CHECK_MODULES($@)
234 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
235 ])dnl PKG_CHECK_MODULES_STATIC
236
237
238 dnl PKG_INSTALLDIR([DIRECTORY])
239 dnl -------------------------
240 dnl Since: 0.27
241 dnl
242 dnl Substitutes the variable pkgconfigdir as the location where a module
243 dnl should install pkg-config .pc files. By default the directory is
244 dnl $libdir/pkgconfig, but the default can be changed by passing
245 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
246 dnl parameter.
247 AC_DEFUN([PKG_INSTALLDIR],
248 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
249 m4_pushdef([pkg_description],
250 [pkg-config installation directory @<:@]pkg_default[@:>@])
251 AC_ARG_WITH([pkgconfigdir],
252 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
253 [with_pkgconfigdir=]pkg_default)
254 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
255 m4_popdef([pkg_default])
256 m4_popdef([pkg_description])
257 ])dnl PKG_INSTALLDIR
258
259
260 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
261 dnl --------------------------------
262 dnl Since: 0.27
263 dnl
264 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
265 dnl module should install arch-independent pkg-config .pc files. By
266 dnl default the directory is $datadir/pkgconfig, but the default can be
267 dnl changed by passing DIRECTORY. The user can override through the
268 dnl --with-noarch-pkgconfigdir parameter.
269 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
270 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
271 m4_pushdef([pkg_description],
272 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
273 AC_ARG_WITH([noarch-pkgconfigdir],
274 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
275 [with_noarch_pkgconfigdir=]pkg_default)
276 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
277 m4_popdef([pkg_default])
278 m4_popdef([pkg_description])
279 ])dnl PKG_NOARCH_INSTALLDIR
280
281
282 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
283 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
284 dnl -------------------------------------------
285 dnl Since: 0.28
286 dnl
287 dnl Retrieves the value of the pkg-config variable for the given module.
288 AC_DEFUN([PKG_CHECK_VAR],
289 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
290 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
291
292 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
293 AS_VAR_COPY([$1], [pkg_cv_][$1])
294
295 AS_VAR_IF([$1], [""], [$5], [$4])dnl
296 ])dnl PKG_CHECK_VAR
297
298 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
299 #
300 # This file is free software; the Free Software Foundation
301 # gives unlimited permission to copy and/or distribute it,
302 # with or without modifications, as long as this notice is preserved.
303
304 # AM_AUTOMAKE_VERSION(VERSION)
305 # ----------------------------
306 # Automake X.Y traces this macro to ensure aclocal.m4 has been
307 # generated from the m4 files accompanying Automake X.Y.
308 # (This private macro should not be called outside this file.)
309 AC_DEFUN([AM_AUTOMAKE_VERSION],
310 [am__api_version='1.16'
311 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
312 dnl require some minimum version. Point them to the right macro.
313 m4_if([$1], [1.16.5], [],
314 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
315 ])
316
317 # _AM_AUTOCONF_VERSION(VERSION)
318 # -----------------------------
319 # aclocal traces this macro to find the Autoconf version.
320 # This is a private macro too. Using m4_define simplifies
321 # the logic in aclocal, which can simply ignore this definition.
322 m4_define([_AM_AUTOCONF_VERSION], [])
323
324 # AM_SET_CURRENT_AUTOMAKE_VERSION
325 # -------------------------------
326 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
327 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
328 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
329 [AM_AUTOMAKE_VERSION([1.16.5])dnl
330 m4_ifndef([AC_AUTOCONF_VERSION],
331 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
332 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
333
334 # Copyright (C) 2011-2021 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_PROG_AR([ACT-IF-FAIL])
341 # -------------------------
342 # Try to determine the archiver interface, and trigger the ar-lib wrapper
343 # if it is needed. If the detection of archiver interface fails, run
344 # ACT-IF-FAIL (default is to abort configure with a proper error message).
345 AC_DEFUN([AM_PROG_AR],
346 [AC_BEFORE([$0], [LT_INIT])dnl
347 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
348 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
349 AC_REQUIRE_AUX_FILE([ar-lib])dnl
350 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
351 : ${AR=ar}
352
353 AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
354 [AC_LANG_PUSH([C])
355 am_cv_ar_interface=ar
356 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
357 [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
358 AC_TRY_EVAL([am_ar_try])
359 if test "$ac_status" -eq 0; then
360 am_cv_ar_interface=ar
361 else
362 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
363 AC_TRY_EVAL([am_ar_try])
364 if test "$ac_status" -eq 0; then
365 am_cv_ar_interface=lib
366 else
367 am_cv_ar_interface=unknown
368 fi
369 fi
370 rm -f conftest.lib libconftest.a
371 ])
372 AC_LANG_POP([C])])
373
374 case $am_cv_ar_interface in
375 ar)
376 ;;
377 lib)
378 # Microsoft lib, so override with the ar-lib wrapper script.
379 # FIXME: It is wrong to rewrite AR.
380 # But if we don't then we get into trouble of one sort or another.
381 # A longer-term fix would be to have automake use am__AR in this case,
382 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
383 # similar.
384 AR="$am_aux_dir/ar-lib $AR"
385 ;;
386 unknown)
387 m4_default([$1],
388 [AC_MSG_ERROR([could not determine $AR interface])])
389 ;;
390 esac
391 AC_SUBST([AR])dnl
392 ])
393
394 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
395
396 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
397 #
398 # This file is free software; the Free Software Foundation
399 # gives unlimited permission to copy and/or distribute it,
400 # with or without modifications, as long as this notice is preserved.
401
402 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
403 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
404 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
405 #
406 # Of course, Automake must honor this variable whenever it calls a
407 # tool from the auxiliary directory. The problem is that $srcdir (and
408 # therefore $ac_aux_dir as well) can be either absolute or relative,
409 # depending on how configure is run. This is pretty annoying, since
410 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
411 # source directory, any form will work fine, but in subdirectories a
412 # relative path needs to be adjusted first.
413 #
414 # $ac_aux_dir/missing
415 # fails when called from a subdirectory if $ac_aux_dir is relative
416 # $top_srcdir/$ac_aux_dir/missing
417 # fails if $ac_aux_dir is absolute,
418 # fails when called from a subdirectory in a VPATH build with
419 # a relative $ac_aux_dir
420 #
421 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
422 # are both prefixed by $srcdir. In an in-source build this is usually
423 # harmless because $srcdir is '.', but things will broke when you
424 # start a VPATH build or use an absolute $srcdir.
425 #
426 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
427 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
428 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
429 # and then we would define $MISSING as
430 # MISSING="\${SHELL} $am_aux_dir/missing"
431 # This will work as long as MISSING is not called from configure, because
432 # unfortunately $(top_srcdir) has no meaning in configure.
433 # However there are other variables, like CC, which are often used in
434 # configure, and could therefore not use this "fixed" $ac_aux_dir.
435 #
436 # Another solution, used here, is to always expand $ac_aux_dir to an
437 # absolute PATH. The drawback is that using absolute paths prevent a
438 # configured tree to be moved without reconfiguration.
439
440 AC_DEFUN([AM_AUX_DIR_EXPAND],
441 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
442 # Expand $ac_aux_dir to an absolute path.
443 am_aux_dir=`cd "$ac_aux_dir" && pwd`
444 ])
445
446 # AM_CONDITIONAL -*- Autoconf -*-
447
448 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
449 #
450 # This file is free software; the Free Software Foundation
451 # gives unlimited permission to copy and/or distribute it,
452 # with or without modifications, as long as this notice is preserved.
453
454 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
455 # -------------------------------------
456 # Define a conditional.
457 AC_DEFUN([AM_CONDITIONAL],
458 [AC_PREREQ([2.52])dnl
459 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
460 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
461 AC_SUBST([$1_TRUE])dnl
462 AC_SUBST([$1_FALSE])dnl
463 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
464 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
465 m4_define([_AM_COND_VALUE_$1], [$2])dnl
466 if $2; then
467 $1_TRUE=
468 $1_FALSE='#'
469 else
470 $1_TRUE='#'
471 $1_FALSE=
472 fi
473 AC_CONFIG_COMMANDS_PRE(
474 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
475 AC_MSG_ERROR([[conditional "$1" was never defined.
476 Usually this means the macro was only invoked conditionally.]])
477 fi])])
478
479 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
480 #
481 # This file is free software; the Free Software Foundation
482 # gives unlimited permission to copy and/or distribute it,
483 # with or without modifications, as long as this notice is preserved.
484
485
486 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
487 # written in clear, in which case automake, when reading aclocal.m4,
488 # will think it sees a *use*, and therefore will trigger all it's
489 # C support machinery. Also note that it means that autoscan, seeing
490 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
491
492
493 # _AM_DEPENDENCIES(NAME)
494 # ----------------------
495 # See how the compiler implements dependency checking.
496 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
497 # We try a few techniques and use that to set a single cache variable.
498 #
499 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
500 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
501 # dependency, and given that the user is not expected to run this macro,
502 # just rely on AC_PROG_CC.
503 AC_DEFUN([_AM_DEPENDENCIES],
504 [AC_REQUIRE([AM_SET_DEPDIR])dnl
505 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
506 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
507 AC_REQUIRE([AM_DEP_TRACK])dnl
508
509 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
510 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
511 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
512 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
513 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
514 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
515 [depcc="$$1" am_compiler_list=])
516
517 AC_CACHE_CHECK([dependency style of $depcc],
518 [am_cv_$1_dependencies_compiler_type],
519 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
520 # We make a subdir and do the tests there. Otherwise we can end up
521 # making bogus files that we don't know about and never remove. For
522 # instance it was reported that on HP-UX the gcc test will end up
523 # making a dummy file named 'D' -- because '-MD' means "put the output
524 # in D".
525 rm -rf conftest.dir
526 mkdir conftest.dir
527 # Copy depcomp to subdir because otherwise we won't find it if we're
528 # using a relative directory.
529 cp "$am_depcomp" conftest.dir
530 cd conftest.dir
531 # We will build objects and dependencies in a subdirectory because
532 # it helps to detect inapplicable dependency modes. For instance
533 # both Tru64's cc and ICC support -MD to output dependencies as a
534 # side effect of compilation, but ICC will put the dependencies in
535 # the current directory while Tru64 will put them in the object
536 # directory.
537 mkdir sub
538
539 am_cv_$1_dependencies_compiler_type=none
540 if test "$am_compiler_list" = ""; then
541 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
542 fi
543 am__universal=false
544 m4_case([$1], [CC],
545 [case " $depcc " in #(
546 *\ -arch\ *\ -arch\ *) am__universal=true ;;
547 esac],
548 [CXX],
549 [case " $depcc " in #(
550 *\ -arch\ *\ -arch\ *) am__universal=true ;;
551 esac])
552
553 for depmode in $am_compiler_list; do
554 # Setup a source with many dependencies, because some compilers
555 # like to wrap large dependency lists on column 80 (with \), and
556 # we should not choose a depcomp mode which is confused by this.
557 #
558 # We need to recreate these files for each test, as the compiler may
559 # overwrite some of them when testing with obscure command lines.
560 # This happens at least with the AIX C compiler.
561 : > sub/conftest.c
562 for i in 1 2 3 4 5 6; do
563 echo '#include "conftst'$i'.h"' >> sub/conftest.c
564 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
565 # Solaris 10 /bin/sh.
566 echo '/* dummy */' > sub/conftst$i.h
567 done
568 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
569
570 # We check with '-c' and '-o' for the sake of the "dashmstdout"
571 # mode. It turns out that the SunPro C++ compiler does not properly
572 # handle '-M -o', and we need to detect this. Also, some Intel
573 # versions had trouble with output in subdirs.
574 am__obj=sub/conftest.${OBJEXT-o}
575 am__minus_obj="-o $am__obj"
576 case $depmode in
577 gcc)
578 # This depmode causes a compiler race in universal mode.
579 test "$am__universal" = false || continue
580 ;;
581 nosideeffect)
582 # After this tag, mechanisms are not by side-effect, so they'll
583 # only be used when explicitly requested.
584 if test "x$enable_dependency_tracking" = xyes; then
585 continue
586 else
587 break
588 fi
589 ;;
590 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
591 # This compiler won't grok '-c -o', but also, the minuso test has
592 # not run yet. These depmodes are late enough in the game, and
593 # so weak that their functioning should not be impacted.
594 am__obj=conftest.${OBJEXT-o}
595 am__minus_obj=
596 ;;
597 none) break ;;
598 esac
599 if depmode=$depmode \
600 source=sub/conftest.c object=$am__obj \
601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
602 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
603 >/dev/null 2>conftest.err &&
604 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
605 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
606 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
607 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
608 # icc doesn't choke on unknown options, it will just issue warnings
609 # or remarks (even with -Werror). So we grep stderr for any message
610 # that says an option was ignored or not supported.
611 # When given -MP, icc 7.0 and 7.1 complain thusly:
612 # icc: Command line warning: ignoring option '-M'; no argument required
613 # The diagnosis changed in icc 8.0:
614 # icc: Command line remark: option '-MP' not supported
615 if (grep 'ignoring option' conftest.err ||
616 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
617 am_cv_$1_dependencies_compiler_type=$depmode
618 break
619 fi
620 fi
621 done
622
623 cd ..
624 rm -rf conftest.dir
625 else
626 am_cv_$1_dependencies_compiler_type=none
627 fi
628 ])
629 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
630 AM_CONDITIONAL([am__fastdep$1], [
631 test "x$enable_dependency_tracking" != xno \
632 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
633 ])
634
635
636 # AM_SET_DEPDIR
637 # -------------
638 # Choose a directory name for dependency files.
639 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
640 AC_DEFUN([AM_SET_DEPDIR],
641 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
642 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
643 ])
644
645
646 # AM_DEP_TRACK
647 # ------------
648 AC_DEFUN([AM_DEP_TRACK],
649 [AC_ARG_ENABLE([dependency-tracking], [dnl
650 AS_HELP_STRING(
651 [--enable-dependency-tracking],
652 [do not reject slow dependency extractors])
653 AS_HELP_STRING(
654 [--disable-dependency-tracking],
655 [speeds up one-time build])])
656 if test "x$enable_dependency_tracking" != xno; then
657 am_depcomp="$ac_aux_dir/depcomp"
658 AMDEPBACKSLASH='\'
659 am__nodep='_no'
660 fi
661 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
662 AC_SUBST([AMDEPBACKSLASH])dnl
663 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
664 AC_SUBST([am__nodep])dnl
665 _AM_SUBST_NOTMAKE([am__nodep])dnl
666 ])
667
668 # Generate code to set up dependency tracking. -*- Autoconf -*-
669
670 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
671 #
672 # This file is free software; the Free Software Foundation
673 # gives unlimited permission to copy and/or distribute it,
674 # with or without modifications, as long as this notice is preserved.
675
676 # _AM_OUTPUT_DEPENDENCY_COMMANDS
677 # ------------------------------
678 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
679 [{
680 # Older Autoconf quotes --file arguments for eval, but not when files
681 # are listed without --file. Let's play safe and only enable the eval
682 # if we detect the quoting.
683 # TODO: see whether this extra hack can be removed once we start
684 # requiring Autoconf 2.70 or later.
685 AS_CASE([$CONFIG_FILES],
686 [*\'*], [eval set x "$CONFIG_FILES"],
687 [*], [set x $CONFIG_FILES])
688 shift
689 # Used to flag and report bootstrapping failures.
690 am_rc=0
691 for am_mf
692 do
693 # Strip MF so we end up with the name of the file.
694 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
695 # Check whether this is an Automake generated Makefile which includes
696 # dependency-tracking related rules and includes.
697 # Grep'ing the whole file directly is not great: AIX grep has a line
698 # limit of 2048, but all sed's we know have understand at least 4000.
699 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
700 || continue
701 am_dirpart=`AS_DIRNAME(["$am_mf"])`
702 am_filepart=`AS_BASENAME(["$am_mf"])`
703 AM_RUN_LOG([cd "$am_dirpart" \
704 && sed -e '/# am--include-marker/d' "$am_filepart" \
705 | $MAKE -f - am--depfiles]) || am_rc=$?
706 done
707 if test $am_rc -ne 0; then
708 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
709 for automatic dependency tracking. If GNU make was not used, consider
710 re-running the configure script with MAKE="gmake" (or whatever is
711 necessary). You can also try re-running configure with the
712 '--disable-dependency-tracking' option to at least be able to build
713 the package (albeit without support for automatic dependency tracking).])
714 fi
715 AS_UNSET([am_dirpart])
716 AS_UNSET([am_filepart])
717 AS_UNSET([am_mf])
718 AS_UNSET([am_rc])
719 rm -f conftest-deps.mk
720 }
721 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
722
723
724 # AM_OUTPUT_DEPENDENCY_COMMANDS
725 # -----------------------------
726 # This macro should only be invoked once -- use via AC_REQUIRE.
727 #
728 # This code is only required when automatic dependency tracking is enabled.
729 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
730 # order to bootstrap the dependency handling code.
731 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
732 [AC_CONFIG_COMMANDS([depfiles],
733 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
734 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
735
736 # Do all the work for Automake. -*- Autoconf -*-
737
738 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
739 #
740 # This file is free software; the Free Software Foundation
741 # gives unlimited permission to copy and/or distribute it,
742 # with or without modifications, as long as this notice is preserved.
743
744 # This macro actually does too much. Some checks are only needed if
745 # your package does certain things. But this isn't really a big deal.
746
747 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
748 m4_define([AC_PROG_CC],
749 m4_defn([AC_PROG_CC])
750 [_AM_PROG_CC_C_O
751 ])
752
753 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
754 # AM_INIT_AUTOMAKE([OPTIONS])
755 # -----------------------------------------------
756 # The call with PACKAGE and VERSION arguments is the old style
757 # call (pre autoconf-2.50), which is being phased out. PACKAGE
758 # and VERSION should now be passed to AC_INIT and removed from
759 # the call to AM_INIT_AUTOMAKE.
760 # We support both call styles for the transition. After
761 # the next Automake release, Autoconf can make the AC_INIT
762 # arguments mandatory, and then we can depend on a new Autoconf
763 # release and drop the old call support.
764 AC_DEFUN([AM_INIT_AUTOMAKE],
765 [AC_PREREQ([2.65])dnl
766 m4_ifdef([_$0_ALREADY_INIT],
767 [m4_fatal([$0 expanded multiple times
768 ]m4_defn([_$0_ALREADY_INIT]))],
769 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
770 dnl Autoconf wants to disallow AM_ names. We explicitly allow
771 dnl the ones we care about.
772 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
773 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
774 AC_REQUIRE([AC_PROG_INSTALL])dnl
775 if test "`cd $srcdir && pwd`" != "`pwd`"; then
776 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
777 # is not polluted with repeated "-I."
778 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
779 # test to see if srcdir already configured
780 if test -f $srcdir/config.status; then
781 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
782 fi
783 fi
784
785 # test whether we have cygpath
786 if test -z "$CYGPATH_W"; then
787 if (cygpath --version) >/dev/null 2>/dev/null; then
788 CYGPATH_W='cygpath -w'
789 else
790 CYGPATH_W=echo
791 fi
792 fi
793 AC_SUBST([CYGPATH_W])
794
795 # Define the identity of the package.
796 dnl Distinguish between old-style and new-style calls.
797 m4_ifval([$2],
798 [AC_DIAGNOSE([obsolete],
799 [$0: two- and three-arguments forms are deprecated.])
800 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
801 AC_SUBST([PACKAGE], [$1])dnl
802 AC_SUBST([VERSION], [$2])],
803 [_AM_SET_OPTIONS([$1])dnl
804 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
805 m4_if(
806 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
807 [ok:ok],,
808 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
809 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
810 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
811
812 _AM_IF_OPTION([no-define],,
813 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
814 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
815
816 # Some tools Automake needs.
817 AC_REQUIRE([AM_SANITY_CHECK])dnl
818 AC_REQUIRE([AC_ARG_PROGRAM])dnl
819 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
820 AM_MISSING_PROG([AUTOCONF], [autoconf])
821 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
822 AM_MISSING_PROG([AUTOHEADER], [autoheader])
823 AM_MISSING_PROG([MAKEINFO], [makeinfo])
824 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
825 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
826 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
827 # For better backward compatibility. To be removed once Automake 1.9.x
828 # dies out for good. For more background, see:
829 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
830 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
831 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
832 # We need awk for the "check" target (and possibly the TAP driver). The
833 # system "awk" is bad on some platforms.
834 AC_REQUIRE([AC_PROG_AWK])dnl
835 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
836 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
837 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
838 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
839 [_AM_PROG_TAR([v7])])])
840 _AM_IF_OPTION([no-dependencies],,
841 [AC_PROVIDE_IFELSE([AC_PROG_CC],
842 [_AM_DEPENDENCIES([CC])],
843 [m4_define([AC_PROG_CC],
844 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
845 AC_PROVIDE_IFELSE([AC_PROG_CXX],
846 [_AM_DEPENDENCIES([CXX])],
847 [m4_define([AC_PROG_CXX],
848 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
849 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
850 [_AM_DEPENDENCIES([OBJC])],
851 [m4_define([AC_PROG_OBJC],
852 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
853 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
854 [_AM_DEPENDENCIES([OBJCXX])],
855 [m4_define([AC_PROG_OBJCXX],
856 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
857 ])
858 # Variables for tags utilities; see am/tags.am
859 if test -z "$CTAGS"; then
860 CTAGS=ctags
861 fi
862 AC_SUBST([CTAGS])
863 if test -z "$ETAGS"; then
864 ETAGS=etags
865 fi
866 AC_SUBST([ETAGS])
867 if test -z "$CSCOPE"; then
868 CSCOPE=cscope
869 fi
870 AC_SUBST([CSCOPE])
871
872 AC_REQUIRE([AM_SILENT_RULES])dnl
873 dnl The testsuite driver may need to know about EXEEXT, so add the
874 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
875 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
876 AC_CONFIG_COMMANDS_PRE(dnl
877 [m4_provide_if([_AM_COMPILER_EXEEXT],
878 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
879
880 # POSIX will say in a future version that running "rm -f" with no argument
881 # is OK; and we want to be able to make that assumption in our Makefile
882 # recipes. So use an aggressive probe to check that the usage we want is
883 # actually supported "in the wild" to an acceptable degree.
884 # See automake bug#10828.
885 # To make any issue more visible, cause the running configure to be aborted
886 # by default if the 'rm' program in use doesn't match our expectations; the
887 # user can still override this though.
888 if rm -f && rm -fr && rm -rf; then : OK; else
889 cat >&2 <<'END'
890 Oops!
891
892 Your 'rm' program seems unable to run without file operands specified
893 on the command line, even when the '-f' option is present. This is contrary
894 to the behaviour of most rm programs out there, and not conforming with
895 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
896
897 Please tell [email protected] about your system, including the value
898 of your $PATH and any error possibly output before this message. This
899 can help us improve future automake versions.
900
901 END
902 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
903 echo 'Configuration will proceed anyway, since you have set the' >&2
904 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
905 echo >&2
906 else
907 cat >&2 <<'END'
908 Aborting the configuration process, to ensure you take notice of the issue.
909
910 You can download and install GNU coreutils to get an 'rm' implementation
911 that behaves properly: <https://www.gnu.org/software/coreutils/>.
912
913 If you want to complete the configuration process using your problematic
914 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
915 to "yes", and re-run configure.
916
917 END
918 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
919 fi
920 fi
921 dnl The trailing newline in this macro's definition is deliberate, for
922 dnl backward compatibility and to allow trailing 'dnl'-style comments
923 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
924 ])
925
926 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
927 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
928 dnl mangled by Autoconf and run in a shell conditional statement.
929 m4_define([_AC_COMPILER_EXEEXT],
930 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
931
932 # When config.status generates a header, we must update the stamp-h file.
933 # This file resides in the same directory as the config header
934 # that is generated. The stamp files are numbered to have different names.
935
936 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
937 # loop where config.status creates the headers, so we can generate
938 # our stamp files there.
939 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
940 [# Compute $1's index in $config_headers.
941 _am_arg=$1
942 _am_stamp_count=1
943 for _am_header in $config_headers :; do
944 case $_am_header in
945 $_am_arg | $_am_arg:* )
946 break ;;
947 * )
948 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
949 esac
950 done
951 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
952
953 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
954 #
955 # This file is free software; the Free Software Foundation
956 # gives unlimited permission to copy and/or distribute it,
957 # with or without modifications, as long as this notice is preserved.
958
959 # AM_PROG_INSTALL_SH
960 # ------------------
961 # Define $install_sh.
962 AC_DEFUN([AM_PROG_INSTALL_SH],
963 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
964 if test x"${install_sh+set}" != xset; then
965 case $am_aux_dir in
966 *\ * | *\ *)
967 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
968 *)
969 install_sh="\${SHELL} $am_aux_dir/install-sh"
970 esac
971 fi
972 AC_SUBST([install_sh])])
973
974 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
975 #
976 # This file is free software; the Free Software Foundation
977 # gives unlimited permission to copy and/or distribute it,
978 # with or without modifications, as long as this notice is preserved.
979
980 # Check whether the underlying file-system supports filenames
981 # with a leading dot. For instance MS-DOS doesn't.
982 AC_DEFUN([AM_SET_LEADING_DOT],
983 [rm -rf .tst 2>/dev/null
984 mkdir .tst 2>/dev/null
985 if test -d .tst; then
986 am__leading_dot=.
987 else
988 am__leading_dot=_
989 fi
990 rmdir .tst 2>/dev/null
991 AC_SUBST([am__leading_dot])])
992
993 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
994 # From Jim Meyering
995
996 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
997 #
998 # This file is free software; the Free Software Foundation
999 # gives unlimited permission to copy and/or distribute it,
1000 # with or without modifications, as long as this notice is preserved.
1001
1002 # AM_MAINTAINER_MODE([DEFAULT-MODE])
1003 # ----------------------------------
1004 # Control maintainer-specific portions of Makefiles.
1005 # Default is to disable them, unless 'enable' is passed literally.
1006 # For symmetry, 'disable' may be passed as well. Anyway, the user
1007 # can override the default with the --enable/--disable switch.
1008 AC_DEFUN([AM_MAINTAINER_MODE],
1009 [m4_case(m4_default([$1], [disable]),
1010 [enable], [m4_define([am_maintainer_other], [disable])],
1011 [disable], [m4_define([am_maintainer_other], [enable])],
1012 [m4_define([am_maintainer_other], [enable])
1013 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1014 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1015 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1016 AC_ARG_ENABLE([maintainer-mode],
1017 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
1018 am_maintainer_other[ make rules and dependencies not useful
1019 (and sometimes confusing) to the casual installer])],
1020 [USE_MAINTAINER_MODE=$enableval],
1021 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1022 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1023 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1024 MAINT=$MAINTAINER_MODE_TRUE
1025 AC_SUBST([MAINT])dnl
1026 ]
1027 )
1028
1029 # Check to see how 'make' treats includes. -*- Autoconf -*-
1030
1031 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1032 #
1033 # This file is free software; the Free Software Foundation
1034 # gives unlimited permission to copy and/or distribute it,
1035 # with or without modifications, as long as this notice is preserved.
1036
1037 # AM_MAKE_INCLUDE()
1038 # -----------------
1039 # Check whether make has an 'include' directive that can support all
1040 # the idioms we need for our automatic dependency tracking code.
1041 AC_DEFUN([AM_MAKE_INCLUDE],
1042 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
1043 cat > confinc.mk << 'END'
1044 am__doit:
1045 @echo this is the am__doit target >confinc.out
1046 .PHONY: am__doit
1047 END
1048 am__include="#"
1049 am__quote=
1050 # BSD make does it like this.
1051 echo '.include "confinc.mk" # ignored' > confmf.BSD
1052 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
1053 echo 'include confinc.mk # ignored' > confmf.GNU
1054 _am_result=no
1055 for s in GNU BSD; do
1056 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
1057 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
1058 ['0:this is the am__doit target'],
1059 [AS_CASE([$s],
1060 [BSD], [am__include='.include' am__quote='"'],
1061 [am__include='include' am__quote=''])])
1062 if test "$am__include" != "#"; then
1063 _am_result="yes ($s style)"
1064 break
1065 fi
1066 done
1067 rm -f confinc.* confmf.*
1068 AC_MSG_RESULT([${_am_result}])
1069 AC_SUBST([am__include])])
1070 AC_SUBST([am__quote])])
1071
1072 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1073
1074 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
1075 #
1076 # This file is free software; the Free Software Foundation
1077 # gives unlimited permission to copy and/or distribute it,
1078 # with or without modifications, as long as this notice is preserved.
1079
1080 # AM_MISSING_PROG(NAME, PROGRAM)
1081 # ------------------------------
1082 AC_DEFUN([AM_MISSING_PROG],
1083 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1084 $1=${$1-"${am_missing_run}$2"}
1085 AC_SUBST($1)])
1086
1087 # AM_MISSING_HAS_RUN
1088 # ------------------
1089 # Define MISSING if not defined so far and test if it is modern enough.
1090 # If it is, set am_missing_run to use it, otherwise, to nothing.
1091 AC_DEFUN([AM_MISSING_HAS_RUN],
1092 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1093 AC_REQUIRE_AUX_FILE([missing])dnl
1094 if test x"${MISSING+set}" != xset; then
1095 MISSING="\${SHELL} '$am_aux_dir/missing'"
1096 fi
1097 # Use eval to expand $SHELL
1098 if eval "$MISSING --is-lightweight"; then
1099 am_missing_run="$MISSING "
1100 else
1101 am_missing_run=
1102 AC_MSG_WARN(['missing' script is too old or missing])
1103 fi
1104 ])
1105
1106 # Helper functions for option handling. -*- Autoconf -*-
1107
1108 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1109 #
1110 # This file is free software; the Free Software Foundation
1111 # gives unlimited permission to copy and/or distribute it,
1112 # with or without modifications, as long as this notice is preserved.
1113
1114 # _AM_MANGLE_OPTION(NAME)
1115 # -----------------------
1116 AC_DEFUN([_AM_MANGLE_OPTION],
1117 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1118
1119 # _AM_SET_OPTION(NAME)
1120 # --------------------
1121 # Set option NAME. Presently that only means defining a flag for this option.
1122 AC_DEFUN([_AM_SET_OPTION],
1123 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1124
1125 # _AM_SET_OPTIONS(OPTIONS)
1126 # ------------------------
1127 # OPTIONS is a space-separated list of Automake options.
1128 AC_DEFUN([_AM_SET_OPTIONS],
1129 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1130
1131 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1132 # -------------------------------------------
1133 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1134 AC_DEFUN([_AM_IF_OPTION],
1135 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1136
1137 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
1138 #
1139 # This file is free software; the Free Software Foundation
1140 # gives unlimited permission to copy and/or distribute it,
1141 # with or without modifications, as long as this notice is preserved.
1142
1143 # _AM_PROG_CC_C_O
1144 # ---------------
1145 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1146 # to automatically call this.
1147 AC_DEFUN([_AM_PROG_CC_C_O],
1148 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1149 AC_REQUIRE_AUX_FILE([compile])dnl
1150 AC_LANG_PUSH([C])dnl
1151 AC_CACHE_CHECK(
1152 [whether $CC understands -c and -o together],
1153 [am_cv_prog_cc_c_o],
1154 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1155 # Make sure it works both with $CC and with simple cc.
1156 # Following AC_PROG_CC_C_O, we do the test twice because some
1157 # compilers refuse to overwrite an existing .o file with -o,
1158 # though they will create one.
1159 am_cv_prog_cc_c_o=yes
1160 for am_i in 1 2; do
1161 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1162 && test -f conftest2.$ac_objext; then
1163 : OK
1164 else
1165 am_cv_prog_cc_c_o=no
1166 break
1167 fi
1168 done
1169 rm -f core conftest*
1170 unset am_i])
1171 if test "$am_cv_prog_cc_c_o" != yes; then
1172 # Losing compiler, so override with the script.
1173 # FIXME: It is wrong to rewrite CC.
1174 # But if we don't then we get into trouble of one sort or another.
1175 # A longer-term fix would be to have automake use am__CC in this case,
1176 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1177 CC="$am_aux_dir/compile $CC"
1178 fi
1179 AC_LANG_POP([C])])
1180
1181 # For backward compatibility.
1182 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1183
1184 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1185 #
1186 # This file is free software; the Free Software Foundation
1187 # gives unlimited permission to copy and/or distribute it,
1188 # with or without modifications, as long as this notice is preserved.
1189
1190 # AM_RUN_LOG(COMMAND)
1191 # -------------------
1192 # Run COMMAND, save the exit status in ac_status, and log it.
1193 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1194 AC_DEFUN([AM_RUN_LOG],
1195 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1196 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1197 ac_status=$?
1198 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1199 (exit $ac_status); }])
1200
1201 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1202
1203 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
1204 #
1205 # This file is free software; the Free Software Foundation
1206 # gives unlimited permission to copy and/or distribute it,
1207 # with or without modifications, as long as this notice is preserved.
1208
1209 # AM_SANITY_CHECK
1210 # ---------------
1211 AC_DEFUN([AM_SANITY_CHECK],
1212 [AC_MSG_CHECKING([whether build environment is sane])
1213 # Reject unsafe characters in $srcdir or the absolute working directory
1214 # name. Accept space and tab only in the latter.
1215 am_lf='
1216 '
1217 case `pwd` in
1218 *[[\\\"\#\$\&\'\`$am_lf]]*)
1219 AC_MSG_ERROR([unsafe absolute working directory name]);;
1220 esac
1221 case $srcdir in
1222 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1223 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1224 esac
1225
1226 # Do 'set' in a subshell so we don't clobber the current shell's
1227 # arguments. Must try -L first in case configure is actually a
1228 # symlink; some systems play weird games with the mod time of symlinks
1229 # (eg FreeBSD returns the mod time of the symlink's containing
1230 # directory).
1231 if (
1232 am_has_slept=no
1233 for am_try in 1 2; do
1234 echo "timestamp, slept: $am_has_slept" > conftest.file
1235 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1236 if test "$[*]" = "X"; then
1237 # -L didn't work.
1238 set X `ls -t "$srcdir/configure" conftest.file`
1239 fi
1240 if test "$[*]" != "X $srcdir/configure conftest.file" \
1241 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1242
1243 # If neither matched, then we have a broken ls. This can happen
1244 # if, for instance, CONFIG_SHELL is bash and it inherits a
1245 # broken ls alias from the environment. This has actually
1246 # happened. Such a system could not be considered "sane".
1247 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1248 alias in your environment])
1249 fi
1250 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1251 break
1252 fi
1253 # Just in case.
1254 sleep 1
1255 am_has_slept=yes
1256 done
1257 test "$[2]" = conftest.file
1258 )
1259 then
1260 # Ok.
1261 :
1262 else
1263 AC_MSG_ERROR([newly created file is older than distributed files!
1264 Check your system clock])
1265 fi
1266 AC_MSG_RESULT([yes])
1267 # If we didn't sleep, we still need to ensure time stamps of config.status and
1268 # generated files are strictly newer.
1269 am_sleep_pid=
1270 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1271 ( sleep 1 ) &
1272 am_sleep_pid=$!
1273 fi
1274 AC_CONFIG_COMMANDS_PRE(
1275 [AC_MSG_CHECKING([that generated files are newer than configure])
1276 if test -n "$am_sleep_pid"; then
1277 # Hide warnings about reused PIDs.
1278 wait $am_sleep_pid 2>/dev/null
1279 fi
1280 AC_MSG_RESULT([done])])
1281 rm -f conftest.file
1282 ])
1283
1284 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
1285 #
1286 # This file is free software; the Free Software Foundation
1287 # gives unlimited permission to copy and/or distribute it,
1288 # with or without modifications, as long as this notice is preserved.
1289
1290 # AM_SILENT_RULES([DEFAULT])
1291 # --------------------------
1292 # Enable less verbose build rules; with the default set to DEFAULT
1293 # ("yes" being less verbose, "no" or empty being verbose).
1294 AC_DEFUN([AM_SILENT_RULES],
1295 [AC_ARG_ENABLE([silent-rules], [dnl
1296 AS_HELP_STRING(
1297 [--enable-silent-rules],
1298 [less verbose build output (undo: "make V=1")])
1299 AS_HELP_STRING(
1300 [--disable-silent-rules],
1301 [verbose build output (undo: "make V=0")])dnl
1302 ])
1303 case $enable_silent_rules in @%:@ (((
1304 yes) AM_DEFAULT_VERBOSITY=0;;
1305 no) AM_DEFAULT_VERBOSITY=1;;
1306 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1307 esac
1308 dnl
1309 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1310 dnl do not support nested variable expansions.
1311 dnl See automake bug#9928 and bug#10237.
1312 am_make=${MAKE-make}
1313 AC_CACHE_CHECK([whether $am_make supports nested variables],
1314 [am_cv_make_support_nested_variables],
1315 [if AS_ECHO([['TRUE=$(BAR$(V))
1316 BAR0=false
1317 BAR1=true
1318 V=1
1319 am__doit:
1320 @$(TRUE)
1321 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1322 am_cv_make_support_nested_variables=yes
1323 else
1324 am_cv_make_support_nested_variables=no
1325 fi])
1326 if test $am_cv_make_support_nested_variables = yes; then
1327 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1328 AM_V='$(V)'
1329 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1330 else
1331 AM_V=$AM_DEFAULT_VERBOSITY
1332 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1333 fi
1334 AC_SUBST([AM_V])dnl
1335 AM_SUBST_NOTMAKE([AM_V])dnl
1336 AC_SUBST([AM_DEFAULT_V])dnl
1337 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1338 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1339 AM_BACKSLASH='\'
1340 AC_SUBST([AM_BACKSLASH])dnl
1341 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1342 ])
1343
1344 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1345 #
1346 # This file is free software; the Free Software Foundation
1347 # gives unlimited permission to copy and/or distribute it,
1348 # with or without modifications, as long as this notice is preserved.
1349
1350 # AM_PROG_INSTALL_STRIP
1351 # ---------------------
1352 # One issue with vendor 'install' (even GNU) is that you can't
1353 # specify the program used to strip binaries. This is especially
1354 # annoying in cross-compiling environments, where the build's strip
1355 # is unlikely to handle the host's binaries.
1356 # Fortunately install-sh will honor a STRIPPROG variable, so we
1357 # always use install-sh in "make install-strip", and initialize
1358 # STRIPPROG with the value of the STRIP variable (set by the user).
1359 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1360 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1361 # Installed binaries are usually stripped using 'strip' when the user
1362 # run "make install-strip". However 'strip' might not be the right
1363 # tool to use in cross-compilation environments, therefore Automake
1364 # will honor the 'STRIP' environment variable to overrule this program.
1365 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1366 if test "$cross_compiling" != no; then
1367 AC_CHECK_TOOL([STRIP], [strip], :)
1368 fi
1369 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1370 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1371
1372 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
1373 #
1374 # This file is free software; the Free Software Foundation
1375 # gives unlimited permission to copy and/or distribute it,
1376 # with or without modifications, as long as this notice is preserved.
1377
1378 # _AM_SUBST_NOTMAKE(VARIABLE)
1379 # ---------------------------
1380 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1381 # This macro is traced by Automake.
1382 AC_DEFUN([_AM_SUBST_NOTMAKE])
1383
1384 # AM_SUBST_NOTMAKE(VARIABLE)
1385 # --------------------------
1386 # Public sister of _AM_SUBST_NOTMAKE.
1387 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1388
1389 # Check how to create a tarball. -*- Autoconf -*-
1390
1391 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
1392 #
1393 # This file is free software; the Free Software Foundation
1394 # gives unlimited permission to copy and/or distribute it,
1395 # with or without modifications, as long as this notice is preserved.
1396
1397 # _AM_PROG_TAR(FORMAT)
1398 # --------------------
1399 # Check how to create a tarball in format FORMAT.
1400 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1401 #
1402 # Substitute a variable $(am__tar) that is a command
1403 # writing to stdout a FORMAT-tarball containing the directory
1404 # $tardir.
1405 # tardir=directory && $(am__tar) > result.tar
1406 #
1407 # Substitute a variable $(am__untar) that extract such
1408 # a tarball read from stdin.
1409 # $(am__untar) < result.tar
1410 #
1411 AC_DEFUN([_AM_PROG_TAR],
1412 [# Always define AMTAR for backward compatibility. Yes, it's still used
1413 # in the wild :-( We should find a proper way to deprecate it ...
1414 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1415
1416 # We'll loop over all known methods to create a tar archive until one works.
1417 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1418
1419 m4_if([$1], [v7],
1420 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1421
1422 [m4_case([$1],
1423 [ustar],
1424 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1425 # There is notably a 21 bits limit for the UID and the GID. In fact,
1426 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1427 # and bug#13588).
1428 am_max_uid=2097151 # 2^21 - 1
1429 am_max_gid=$am_max_uid
1430 # The $UID and $GID variables are not portable, so we need to resort
1431 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1432 # below are definitely unexpected, so allow the users to see them
1433 # (that is, avoid stderr redirection).
1434 am_uid=`id -u || echo unknown`
1435 am_gid=`id -g || echo unknown`
1436 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1437 if test $am_uid -le $am_max_uid; then
1438 AC_MSG_RESULT([yes])
1439 else
1440 AC_MSG_RESULT([no])
1441 _am_tools=none
1442 fi
1443 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1444 if test $am_gid -le $am_max_gid; then
1445 AC_MSG_RESULT([yes])
1446 else
1447 AC_MSG_RESULT([no])
1448 _am_tools=none
1449 fi],
1450
1451 [pax],
1452 [],
1453
1454 [m4_fatal([Unknown tar format])])
1455
1456 AC_MSG_CHECKING([how to create a $1 tar archive])
1457
1458 # Go ahead even if we have the value already cached. We do so because we
1459 # need to set the values for the 'am__tar' and 'am__untar' variables.
1460 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1461
1462 for _am_tool in $_am_tools; do
1463 case $_am_tool in
1464 gnutar)
1465 for _am_tar in tar gnutar gtar; do
1466 AM_RUN_LOG([$_am_tar --version]) && break
1467 done
1468 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1469 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1470 am__untar="$_am_tar -xf -"
1471 ;;
1472 plaintar)
1473 # Must skip GNU tar: if it does not support --format= it doesn't create
1474 # ustar tarball either.
1475 (tar --version) >/dev/null 2>&1 && continue
1476 am__tar='tar chf - "$$tardir"'
1477 am__tar_='tar chf - "$tardir"'
1478 am__untar='tar xf -'
1479 ;;
1480 pax)
1481 am__tar='pax -L -x $1 -w "$$tardir"'
1482 am__tar_='pax -L -x $1 -w "$tardir"'
1483 am__untar='pax -r'
1484 ;;
1485 cpio)
1486 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1487 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1488 am__untar='cpio -i -H $1 -d'
1489 ;;
1490 none)
1491 am__tar=false
1492 am__tar_=false
1493 am__untar=false
1494 ;;
1495 esac
1496
1497 # If the value was cached, stop now. We just wanted to have am__tar
1498 # and am__untar set.
1499 test -n "${am_cv_prog_tar_$1}" && break
1500
1501 # tar/untar a dummy directory, and stop if the command works.
1502 rm -rf conftest.dir
1503 mkdir conftest.dir
1504 echo GrepMe > conftest.dir/file
1505 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1506 rm -rf conftest.dir
1507 if test -s conftest.tar; then
1508 AM_RUN_LOG([$am__untar <conftest.tar])
1509 AM_RUN_LOG([cat conftest.dir/file])
1510 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1511 fi
1512 done
1513 rm -rf conftest.dir
1514
1515 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1516 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1517
1518 AC_SUBST([am__tar])
1519 AC_SUBST([am__untar])
1520 ]) # _AM_PROG_TAR
1521
1522 m4_include([m4/ax_append_flag.m4])
1523 m4_include([m4/ax_cflags_warn_all.m4])
1524 m4_include([m4/ax_check_bash_completion.m4])
1525 m4_include([m4/ax_check_compile_flag.m4])
1526 m4_include([m4/ax_check_enable_debug.m4])
1527 m4_include([m4/ax_check_gnu_make.m4])
1528 m4_include([m4/ax_check_link_flag.m4])
1529 m4_include([m4/ax_check_zsh_completion.m4])
1530 m4_include([m4/ax_code_coverage.m4])
1531 m4_include([m4/ax_configure_args.m4])
1532 m4_include([m4/ax_enable_builddir.m4])
1533 m4_include([m4/ax_extend_srcdir.m4])
1534 m4_include([m4/ax_require_defined.m4])
1535 m4_include([m4/ax_sanitizers.m4])
0 #! /bin/sh
1 # Wrapper for Microsoft lib.exe
2
3 me=ar-lib
4 scriptversion=2019-07-04.01; # UTC
5
6 # Copyright (C) 2010-2021 Free Software Foundation, Inc.
7 # Written by Peter Rosin <[email protected]>.
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <https://www.gnu.org/licenses/>.
21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
26
27 # This file is maintained in Automake, please report
28 # bugs to <[email protected]> or send patches to
29 # <[email protected]>.
30
31
32 # func_error message
33 func_error ()
34 {
35 echo "$me: $1" 1>&2
36 exit 1
37 }
38
39 file_conv=
40
41 # func_file_conv build_file
42 # Convert a $build file to $host form and store it in $file
43 # Currently only supports Windows hosts.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN* | MSYS*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv in
64 mingw)
65 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
66 ;;
67 cygwin | msys)
68 file=`cygpath -m "$file" || echo "$file"`
69 ;;
70 wine)
71 file=`winepath -w "$file" || echo "$file"`
72 ;;
73 esac
74 ;;
75 esac
76 }
77
78 # func_at_file at_file operation archive
79 # Iterate over all members in AT_FILE performing OPERATION on ARCHIVE
80 # for each of them.
81 # When interpreting the content of the @FILE, do NOT use func_file_conv,
82 # since the user would need to supply preconverted file names to
83 # binutils ar, at least for MinGW.
84 func_at_file ()
85 {
86 operation=$2
87 archive=$3
88 at_file_contents=`cat "$1"`
89 eval set x "$at_file_contents"
90 shift
91
92 for member
93 do
94 $AR -NOLOGO $operation:"$member" "$archive" || exit $?
95 done
96 }
97
98 case $1 in
99 '')
100 func_error "no command. Try '$0 --help' for more information."
101 ;;
102 -h | --h*)
103 cat <<EOF
104 Usage: $me [--help] [--version] PROGRAM ACTION ARCHIVE [MEMBER...]
105
106 Members may be specified in a file named with @FILE.
107 EOF
108 exit $?
109 ;;
110 -v | --v*)
111 echo "$me, version $scriptversion"
112 exit $?
113 ;;
114 esac
115
116 if test $# -lt 3; then
117 func_error "you must specify a program, an action and an archive"
118 fi
119
120 AR=$1
121 shift
122 while :
123 do
124 if test $# -lt 2; then
125 func_error "you must specify a program, an action and an archive"
126 fi
127 case $1 in
128 -lib | -LIB \
129 | -ltcg | -LTCG \
130 | -machine* | -MACHINE* \
131 | -subsystem* | -SUBSYSTEM* \
132 | -verbose | -VERBOSE \
133 | -wx* | -WX* )
134 AR="$AR $1"
135 shift
136 ;;
137 *)
138 action=$1
139 shift
140 break
141 ;;
142 esac
143 done
144 orig_archive=$1
145 shift
146 func_file_conv "$orig_archive"
147 archive=$file
148
149 # strip leading dash in $action
150 action=${action#-}
151
152 delete=
153 extract=
154 list=
155 quick=
156 replace=
157 index=
158 create=
159
160 while test -n "$action"
161 do
162 case $action in
163 d*) delete=yes ;;
164 x*) extract=yes ;;
165 t*) list=yes ;;
166 q*) quick=yes ;;
167 r*) replace=yes ;;
168 s*) index=yes ;;
169 S*) ;; # the index is always updated implicitly
170 c*) create=yes ;;
171 u*) ;; # TODO: don't ignore the update modifier
172 v*) ;; # TODO: don't ignore the verbose modifier
173 *)
174 func_error "unknown action specified"
175 ;;
176 esac
177 action=${action#?}
178 done
179
180 case $delete$extract$list$quick$replace,$index in
181 yes,* | ,yes)
182 ;;
183 yesyes*)
184 func_error "more than one action specified"
185 ;;
186 *)
187 func_error "no action specified"
188 ;;
189 esac
190
191 if test -n "$delete"; then
192 if test ! -f "$orig_archive"; then
193 func_error "archive not found"
194 fi
195 for member
196 do
197 case $1 in
198 @*)
199 func_at_file "${1#@}" -REMOVE "$archive"
200 ;;
201 *)
202 func_file_conv "$1"
203 $AR -NOLOGO -REMOVE:"$file" "$archive" || exit $?
204 ;;
205 esac
206 done
207
208 elif test -n "$extract"; then
209 if test ! -f "$orig_archive"; then
210 func_error "archive not found"
211 fi
212 if test $# -gt 0; then
213 for member
214 do
215 case $1 in
216 @*)
217 func_at_file "${1#@}" -EXTRACT "$archive"
218 ;;
219 *)
220 func_file_conv "$1"
221 $AR -NOLOGO -EXTRACT:"$file" "$archive" || exit $?
222 ;;
223 esac
224 done
225 else
226 $AR -NOLOGO -LIST "$archive" | tr -d '\r' | sed -e 's/\\/\\\\/g' \
227 | while read member
228 do
229 $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $?
230 done
231 fi
232
233 elif test -n "$quick$replace"; then
234 if test ! -f "$orig_archive"; then
235 if test -z "$create"; then
236 echo "$me: creating $orig_archive"
237 fi
238 orig_archive=
239 else
240 orig_archive=$archive
241 fi
242
243 for member
244 do
245 case $1 in
246 @*)
247 func_file_conv "${1#@}"
248 set x "$@" "@$file"
249 ;;
250 *)
251 func_file_conv "$1"
252 set x "$@" "$file"
253 ;;
254 esac
255 shift
256 shift
257 done
258
259 if test -n "$orig_archive"; then
260 $AR -NOLOGO -OUT:"$archive" "$orig_archive" "$@" || exit $?
261 else
262 $AR -NOLOGO -OUT:"$archive" "$@" || exit $?
263 fi
264
265 elif test -n "$list"; then
266 if test ! -f "$orig_archive"; then
267 func_error "archive not found"
268 fi
269 $AR -NOLOGO -LIST "$archive" || exit $?
270 fi
+0
-27
build.sh less more
0 #!/bin/sh -x
1
2 configureOpts="--disable-sanitizers"
3
4 while getopts ":hd" opt; do
5 case ${opt} in
6 h ) echo "Use -d to turn on sanitizers (for debugging only)"
7 exit;;
8 d ) configureOpts=""
9 ;;
10 \? ) echo "Usage: $0 [-h] [-d]"
11 exit;;
12 esac
13 done
14
15 configureOpts="${configureOpts} --prefix=/usr --sysconfdir=/etc"
16
17 autoreconf -fiv
18
19 BUILD_DIR=build/
20 rm -rf $BUILD_DIR
21 mkdir -vp $BUILD_DIR
22 cd $BUILD_DIR || { echo "cd $BUILD_DIR"; exit 127; }
23
24 ../configure ${configureOpts}
25
26 make
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
6 # Written by Tom Tromey <[email protected]>.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 # This file is maintained in Automake, please report
27 # bugs to <[email protected]> or send patches to
28 # <[email protected]>.
29
30 nl='
31 '
32
33 # We need space, tab and new line, in precisely that order. Quoting is
34 # there to prevent tools from complaining about whitespace usage.
35 IFS=" "" $nl"
36
37 file_conv=
38
39 # func_file_conv build_file lazy
40 # Convert a $build file to $host form and store it in $file
41 # Currently only supports Windows hosts. If the determined conversion
42 # type is listed in (the comma separated) LAZY, no conversion will
43 # take place.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN* | MSYS*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv/,$2, in
64 *,$file_conv,*)
65 ;;
66 mingw/*)
67 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
68 ;;
69 cygwin/* | msys/*)
70 file=`cygpath -m "$file" || echo "$file"`
71 ;;
72 wine/*)
73 file=`winepath -w "$file" || echo "$file"`
74 ;;
75 esac
76 ;;
77 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
125 }
126
127 # func_cl_wrapper cl arg...
128 # Adjust compile command to suit cl
129 func_cl_wrapper ()
130 {
131 # Assume a capable shell
132 lib_path=
133 shared=:
134 linker_opts=
135 for arg
136 do
137 if test -n "$eat"; then
138 eat=
139 else
140 case $1 in
141 -o)
142 # configure might choose to run compile as 'compile cc -o foo foo.c'.
143 eat=1
144 case $2 in
145 *.o | *.[oO][bB][jJ])
146 func_file_conv "$2"
147 set x "$@" -Fo"$file"
148 shift
149 ;;
150 *)
151 func_file_conv "$2"
152 set x "$@" -Fe"$file"
153 shift
154 ;;
155 esac
156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
163 -I*)
164 func_file_conv "${1#-I}" mingw
165 set x "$@" -I"$file"
166 shift
167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -l*)
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
182 ;;
183 -L*)
184 func_cl_dashL "${1#-L}"
185 ;;
186 -static)
187 shared=false
188 ;;
189 -Wl,*)
190 arg=${1#-Wl,}
191 save_ifs="$IFS"; IFS=','
192 for flag in $arg; do
193 IFS="$save_ifs"
194 linker_opts="$linker_opts $flag"
195 done
196 IFS="$save_ifs"
197 ;;
198 -Xlinker)
199 eat=1
200 linker_opts="$linker_opts $2"
201 ;;
202 -*)
203 set x "$@" "$1"
204 shift
205 ;;
206 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
207 func_file_conv "$1"
208 set x "$@" -Tp"$file"
209 shift
210 ;;
211 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
212 func_file_conv "$1" mingw
213 set x "$@" "$file"
214 shift
215 ;;
216 *)
217 set x "$@" "$1"
218 shift
219 ;;
220 esac
221 fi
222 shift
223 done
224 if test -n "$linker_opts"; then
225 linker_opts="-link$linker_opts"
226 fi
227 exec "$@" $linker_opts
228 exit 1
229 }
230
231 eat=
232
233 case $1 in
234 '')
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
236 exit 1;
237 ;;
238 -h | --h*)
239 cat <<\EOF
240 Usage: compile [--help] [--version] PROGRAM [ARGS]
241
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
244 arguments, and rename the output as expected.
245
246 If you are trying to build a whole package this is not the
247 right script to run: please start by reading the file 'INSTALL'.
248
249 Report bugs to <[email protected]>.
250 EOF
251 exit $?
252 ;;
253 -v | --v*)
254 echo "compile $scriptversion"
255 exit $?
256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
258 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
259 func_cl_wrapper "$@" # Doesn't return...
260 ;;
261 esac
262
263 ofile=
264 cfile=
265
266 for arg
267 do
268 if test -n "$eat"; then
269 eat=
270 else
271 case $1 in
272 -o)
273 # configure might choose to run compile as 'compile cc -o foo foo.c'.
274 # So we strip '-o arg' only if arg is an object.
275 eat=1
276 case $2 in
277 *.o | *.obj)
278 ofile=$2
279 ;;
280 *)
281 set x "$@" -o "$2"
282 shift
283 ;;
284 esac
285 ;;
286 *.c)
287 cfile=$1
288 set x "$@" "$1"
289 shift
290 ;;
291 *)
292 set x "$@" "$1"
293 shift
294 ;;
295 esac
296 fi
297 shift
298 done
299
300 if test -z "$ofile" || test -z "$cfile"; then
301 # If no '-o' option was seen then we might have been invoked from a
302 # pattern rule where we don't need one. That is ok -- this is a
303 # normal compilation that the losing compiler can handle. If no
304 # '.c' file was seen then we are probably linking. That is also
305 # ok.
306 exec "$@"
307 fi
308
309 # Name of file we expect compiler to create.
310 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
311
312 # Create the lock directory.
313 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
314 # that we are using for the .o file. Also, base the name on the expected
315 # object file name, since that is what matters with a parallel build.
316 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
317 while true; do
318 if mkdir "$lockdir" >/dev/null 2>&1; then
319 break
320 fi
321 sleep 1
322 done
323 # FIXME: race condition here if user kills between mkdir and trap.
324 trap "rmdir '$lockdir'; exit 1" 1 2 15
325
326 # Run the compile.
327 "$@"
328 ret=$?
329
330 if test -f "$cofile"; then
331 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
332 elif test -f "${cofile}bj"; then
333 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
334 fi
335
336 rmdir "$lockdir"
337 exit $ret
338
339 # Local Variables:
340 # mode: shell-script
341 # sh-indentation: 2
342 # eval: (add-hook 'before-save-hook 'time-stamp)
343 # time-stamp-start: "scriptversion="
344 # time-stamp-format: "%:y-%02m-%02d.%02H"
345 # time-stamp-time-zone: "UTC0"
346 # time-stamp-end: "; # UTC"
347 # End:
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright 1992-2022 Free Software Foundation, Inc.
3
4 # shellcheck disable=SC2006,SC2268 # see below for rationale
5
6 timestamp='2022-01-09'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, see <https://www.gnu.org/licenses/>.
20 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that
25 # program. This Exception is an additional permission under section 7
26 # of the GNU General Public License, version 3 ("GPLv3").
27 #
28 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
29 #
30 # You can get the latest version of this script from:
31 # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
32 #
33 # Please send patches to <[email protected]>.
34
35
36 # The "shellcheck disable" line above the timestamp inhibits complaints
37 # about features and limitations of the classic Bourne shell that were
38 # superseded or lifted in POSIX. However, this script identifies a wide
39 # variety of pre-POSIX systems that do not have POSIX shells at all, and
40 # even some reasonably current systems (Solaris 10 as case-in-point) still
41 # have a pre-POSIX /bin/sh.
42
43
44 me=`echo "$0" | sed -e 's,.*/,,'`
45
46 usage="\
47 Usage: $0 [OPTION]
48
49 Output the configuration name of the system \`$me' is run on.
50
51 Options:
52 -h, --help print this help, then exit
53 -t, --time-stamp print date of last modification, then exit
54 -v, --version print version number, then exit
55
56 Report bugs and patches to <[email protected]>."
57
58 version="\
59 GNU config.guess ($timestamp)
60
61 Originally written by Per Bothner.
62 Copyright 1992-2022 Free Software Foundation, Inc.
63
64 This is free software; see the source for copying conditions. There is NO
65 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
66
67 help="
68 Try \`$me --help' for more information."
69
70 # Parse command line
71 while test $# -gt 0 ; do
72 case $1 in
73 --time-stamp | --time* | -t )
74 echo "$timestamp" ; exit ;;
75 --version | -v )
76 echo "$version" ; exit ;;
77 --help | --h* | -h )
78 echo "$usage"; exit ;;
79 -- ) # Stop option processing
80 shift; break ;;
81 - ) # Use stdin as input.
82 break ;;
83 -* )
84 echo "$me: invalid option $1$help" >&2
85 exit 1 ;;
86 * )
87 break ;;
88 esac
89 done
90
91 if test $# != 0; then
92 echo "$me: too many arguments$help" >&2
93 exit 1
94 fi
95
96 # Just in case it came from the environment.
97 GUESS=
98
99 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
100 # compiler to aid in system detection is discouraged as it requires
101 # temporary files to be created and, as you can see below, it is a
102 # headache to deal with in a portable fashion.
103
104 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
105 # use `HOST_CC' if defined, but it is deprecated.
106
107 # Portable tmp directory creation inspired by the Autoconf team.
108
109 tmp=
110 # shellcheck disable=SC2172
111 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
112
113 set_cc_for_build() {
114 # prevent multiple calls if $tmp is already set
115 test "$tmp" && return 0
116 : "${TMPDIR=/tmp}"
117 # shellcheck disable=SC2039,SC3028
118 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
119 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
120 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
121 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
122 dummy=$tmp/dummy
123 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
124 ,,) echo "int x;" > "$dummy.c"
125 for driver in cc gcc c89 c99 ; do
126 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
127 CC_FOR_BUILD=$driver
128 break
129 fi
130 done
131 if test x"$CC_FOR_BUILD" = x ; then
132 CC_FOR_BUILD=no_compiler_found
133 fi
134 ;;
135 ,,*) CC_FOR_BUILD=$CC ;;
136 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
137 esac
138 }
139
140 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
141 # ([email protected] 1994-08-24)
142 if test -f /.attbin/uname ; then
143 PATH=$PATH:/.attbin ; export PATH
144 fi
145
146 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
147 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
148 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
149 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
150
151 case $UNAME_SYSTEM in
152 Linux|GNU|GNU/*)
153 LIBC=unknown
154
155 set_cc_for_build
156 cat <<-EOF > "$dummy.c"
157 #include <features.h>
158 #if defined(__UCLIBC__)
159 LIBC=uclibc
160 #elif defined(__dietlibc__)
161 LIBC=dietlibc
162 #elif defined(__GLIBC__)
163 LIBC=gnu
164 #else
165 #include <stdarg.h>
166 /* First heuristic to detect musl libc. */
167 #ifdef __DEFINED_va_list
168 LIBC=musl
169 #endif
170 #endif
171 EOF
172 cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
173 eval "$cc_set_libc"
174
175 # Second heuristic to detect musl libc.
176 if [ "$LIBC" = unknown ] &&
177 command -v ldd >/dev/null &&
178 ldd --version 2>&1 | grep -q ^musl; then
179 LIBC=musl
180 fi
181
182 # If the system lacks a compiler, then just pick glibc.
183 # We could probably try harder.
184 if [ "$LIBC" = unknown ]; then
185 LIBC=gnu
186 fi
187 ;;
188 esac
189
190 # Note: order is significant - the case branches are not exclusive.
191
192 case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
193 *:NetBSD:*:*)
194 # NetBSD (nbsd) targets should (where applicable) match one or
195 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
196 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
197 # switched to ELF, *-*-netbsd* would select the old
198 # object file format. This provides both forward
199 # compatibility and a consistent mechanism for selecting the
200 # object file format.
201 #
202 # Note: NetBSD doesn't particularly care about the vendor
203 # portion of the name. We always set it to "unknown".
204 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
205 /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
206 /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
207 echo unknown)`
208 case $UNAME_MACHINE_ARCH in
209 aarch64eb) machine=aarch64_be-unknown ;;
210 armeb) machine=armeb-unknown ;;
211 arm*) machine=arm-unknown ;;
212 sh3el) machine=shl-unknown ;;
213 sh3eb) machine=sh-unknown ;;
214 sh5el) machine=sh5le-unknown ;;
215 earmv*)
216 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
217 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
218 machine=${arch}${endian}-unknown
219 ;;
220 *) machine=$UNAME_MACHINE_ARCH-unknown ;;
221 esac
222 # The Operating System including object format, if it has switched
223 # to ELF recently (or will in the future) and ABI.
224 case $UNAME_MACHINE_ARCH in
225 earm*)
226 os=netbsdelf
227 ;;
228 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
229 set_cc_for_build
230 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
231 | grep -q __ELF__
232 then
233 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
234 # Return netbsd for either. FIX?
235 os=netbsd
236 else
237 os=netbsdelf
238 fi
239 ;;
240 *)
241 os=netbsd
242 ;;
243 esac
244 # Determine ABI tags.
245 case $UNAME_MACHINE_ARCH in
246 earm*)
247 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
248 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
249 ;;
250 esac
251 # The OS release
252 # Debian GNU/NetBSD machines have a different userland, and
253 # thus, need a distinct triplet. However, they do not need
254 # kernel version information, so it can be replaced with a
255 # suitable tag, in the style of linux-gnu.
256 case $UNAME_VERSION in
257 Debian*)
258 release='-gnu'
259 ;;
260 *)
261 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
262 ;;
263 esac
264 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
265 # contains redundant information, the shorter form:
266 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
267 GUESS=$machine-${os}${release}${abi-}
268 ;;
269 *:Bitrig:*:*)
270 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
271 GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE
272 ;;
273 *:OpenBSD:*:*)
274 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
275 GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE
276 ;;
277 *:SecBSD:*:*)
278 UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'`
279 GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE
280 ;;
281 *:LibertyBSD:*:*)
282 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
283 GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE
284 ;;
285 *:MidnightBSD:*:*)
286 GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE
287 ;;
288 *:ekkoBSD:*:*)
289 GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE
290 ;;
291 *:SolidBSD:*:*)
292 GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE
293 ;;
294 *:OS108:*:*)
295 GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE
296 ;;
297 macppc:MirBSD:*:*)
298 GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE
299 ;;
300 *:MirBSD:*:*)
301 GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE
302 ;;
303 *:Sortix:*:*)
304 GUESS=$UNAME_MACHINE-unknown-sortix
305 ;;
306 *:Twizzler:*:*)
307 GUESS=$UNAME_MACHINE-unknown-twizzler
308 ;;
309 *:Redox:*:*)
310 GUESS=$UNAME_MACHINE-unknown-redox
311 ;;
312 mips:OSF1:*.*)
313 GUESS=mips-dec-osf1
314 ;;
315 alpha:OSF1:*:*)
316 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
317 trap '' 0
318 case $UNAME_RELEASE in
319 *4.0)
320 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
321 ;;
322 *5.*)
323 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
324 ;;
325 esac
326 # According to Compaq, /usr/sbin/psrinfo has been available on
327 # OSF/1 and Tru64 systems produced since 1995. I hope that
328 # covers most systems running today. This code pipes the CPU
329 # types through head -n 1, so we only detect the type of CPU 0.
330 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
331 case $ALPHA_CPU_TYPE in
332 "EV4 (21064)")
333 UNAME_MACHINE=alpha ;;
334 "EV4.5 (21064)")
335 UNAME_MACHINE=alpha ;;
336 "LCA4 (21066/21068)")
337 UNAME_MACHINE=alpha ;;
338 "EV5 (21164)")
339 UNAME_MACHINE=alphaev5 ;;
340 "EV5.6 (21164A)")
341 UNAME_MACHINE=alphaev56 ;;
342 "EV5.6 (21164PC)")
343 UNAME_MACHINE=alphapca56 ;;
344 "EV5.7 (21164PC)")
345 UNAME_MACHINE=alphapca57 ;;
346 "EV6 (21264)")
347 UNAME_MACHINE=alphaev6 ;;
348 "EV6.7 (21264A)")
349 UNAME_MACHINE=alphaev67 ;;
350 "EV6.8CB (21264C)")
351 UNAME_MACHINE=alphaev68 ;;
352 "EV6.8AL (21264B)")
353 UNAME_MACHINE=alphaev68 ;;
354 "EV6.8CX (21264D)")
355 UNAME_MACHINE=alphaev68 ;;
356 "EV6.9A (21264/EV69A)")
357 UNAME_MACHINE=alphaev69 ;;
358 "EV7 (21364)")
359 UNAME_MACHINE=alphaev7 ;;
360 "EV7.9 (21364A)")
361 UNAME_MACHINE=alphaev79 ;;
362 esac
363 # A Pn.n version is a patched version.
364 # A Vn.n version is a released version.
365 # A Tn.n version is a released field test version.
366 # A Xn.n version is an unreleased experimental baselevel.
367 # 1.2 uses "1.2" for uname -r.
368 OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
369 GUESS=$UNAME_MACHINE-dec-osf$OSF_REL
370 ;;
371 Amiga*:UNIX_System_V:4.0:*)
372 GUESS=m68k-unknown-sysv4
373 ;;
374 *:[Aa]miga[Oo][Ss]:*:*)
375 GUESS=$UNAME_MACHINE-unknown-amigaos
376 ;;
377 *:[Mm]orph[Oo][Ss]:*:*)
378 GUESS=$UNAME_MACHINE-unknown-morphos
379 ;;
380 *:OS/390:*:*)
381 GUESS=i370-ibm-openedition
382 ;;
383 *:z/VM:*:*)
384 GUESS=s390-ibm-zvmoe
385 ;;
386 *:OS400:*:*)
387 GUESS=powerpc-ibm-os400
388 ;;
389 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
390 GUESS=arm-acorn-riscix$UNAME_RELEASE
391 ;;
392 arm*:riscos:*:*|arm*:RISCOS:*:*)
393 GUESS=arm-unknown-riscos
394 ;;
395 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
396 GUESS=hppa1.1-hitachi-hiuxmpp
397 ;;
398 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
399 # [email protected] (Earle F. Ake) contributed MIS and NILE.
400 case `(/bin/universe) 2>/dev/null` in
401 att) GUESS=pyramid-pyramid-sysv3 ;;
402 *) GUESS=pyramid-pyramid-bsd ;;
403 esac
404 ;;
405 NILE*:*:*:dcosx)
406 GUESS=pyramid-pyramid-svr4
407 ;;
408 DRS?6000:unix:4.0:6*)
409 GUESS=sparc-icl-nx6
410 ;;
411 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
412 case `/usr/bin/uname -p` in
413 sparc) GUESS=sparc-icl-nx7 ;;
414 esac
415 ;;
416 s390x:SunOS:*:*)
417 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
418 GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL
419 ;;
420 sun4H:SunOS:5.*:*)
421 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
422 GUESS=sparc-hal-solaris2$SUN_REL
423 ;;
424 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
425 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
426 GUESS=sparc-sun-solaris2$SUN_REL
427 ;;
428 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
429 GUESS=i386-pc-auroraux$UNAME_RELEASE
430 ;;
431 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
432 set_cc_for_build
433 SUN_ARCH=i386
434 # If there is a compiler, see if it is configured for 64-bit objects.
435 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
436 # This test works for both compilers.
437 if test "$CC_FOR_BUILD" != no_compiler_found; then
438 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
439 (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \
440 grep IS_64BIT_ARCH >/dev/null
441 then
442 SUN_ARCH=x86_64
443 fi
444 fi
445 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
446 GUESS=$SUN_ARCH-pc-solaris2$SUN_REL
447 ;;
448 sun4*:SunOS:6*:*)
449 # According to config.sub, this is the proper way to canonicalize
450 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
451 # it's likely to be more like Solaris than SunOS4.
452 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
453 GUESS=sparc-sun-solaris3$SUN_REL
454 ;;
455 sun4*:SunOS:*:*)
456 case `/usr/bin/arch -k` in
457 Series*|S4*)
458 UNAME_RELEASE=`uname -v`
459 ;;
460 esac
461 # Japanese Language versions have a version number like `4.1.3-JL'.
462 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
463 GUESS=sparc-sun-sunos$SUN_REL
464 ;;
465 sun3*:SunOS:*:*)
466 GUESS=m68k-sun-sunos$UNAME_RELEASE
467 ;;
468 sun*:*:4.2BSD:*)
469 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
470 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
471 case `/bin/arch` in
472 sun3)
473 GUESS=m68k-sun-sunos$UNAME_RELEASE
474 ;;
475 sun4)
476 GUESS=sparc-sun-sunos$UNAME_RELEASE
477 ;;
478 esac
479 ;;
480 aushp:SunOS:*:*)
481 GUESS=sparc-auspex-sunos$UNAME_RELEASE
482 ;;
483 # The situation for MiNT is a little confusing. The machine name
484 # can be virtually everything (everything which is not
485 # "atarist" or "atariste" at least should have a processor
486 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
487 # to the lowercase version "mint" (or "freemint"). Finally
488 # the system name "TOS" denotes a system which is actually not
489 # MiNT. But MiNT is downward compatible to TOS, so this should
490 # be no problem.
491 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
492 GUESS=m68k-atari-mint$UNAME_RELEASE
493 ;;
494 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
495 GUESS=m68k-atari-mint$UNAME_RELEASE
496 ;;
497 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
498 GUESS=m68k-atari-mint$UNAME_RELEASE
499 ;;
500 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
501 GUESS=m68k-milan-mint$UNAME_RELEASE
502 ;;
503 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
504 GUESS=m68k-hades-mint$UNAME_RELEASE
505 ;;
506 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
507 GUESS=m68k-unknown-mint$UNAME_RELEASE
508 ;;
509 m68k:machten:*:*)
510 GUESS=m68k-apple-machten$UNAME_RELEASE
511 ;;
512 powerpc:machten:*:*)
513 GUESS=powerpc-apple-machten$UNAME_RELEASE
514 ;;
515 RISC*:Mach:*:*)
516 GUESS=mips-dec-mach_bsd4.3
517 ;;
518 RISC*:ULTRIX:*:*)
519 GUESS=mips-dec-ultrix$UNAME_RELEASE
520 ;;
521 VAX*:ULTRIX*:*:*)
522 GUESS=vax-dec-ultrix$UNAME_RELEASE
523 ;;
524 2020:CLIX:*:* | 2430:CLIX:*:*)
525 GUESS=clipper-intergraph-clix$UNAME_RELEASE
526 ;;
527 mips:*:*:UMIPS | mips:*:*:RISCos)
528 set_cc_for_build
529 sed 's/^ //' << EOF > "$dummy.c"
530 #ifdef __cplusplus
531 #include <stdio.h> /* for printf() prototype */
532 int main (int argc, char *argv[]) {
533 #else
534 int main (argc, argv) int argc; char *argv[]; {
535 #endif
536 #if defined (host_mips) && defined (MIPSEB)
537 #if defined (SYSTYPE_SYSV)
538 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
539 #endif
540 #if defined (SYSTYPE_SVR4)
541 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
542 #endif
543 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
544 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
545 #endif
546 #endif
547 exit (-1);
548 }
549 EOF
550 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
551 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
552 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
553 { echo "$SYSTEM_NAME"; exit; }
554 GUESS=mips-mips-riscos$UNAME_RELEASE
555 ;;
556 Motorola:PowerMAX_OS:*:*)
557 GUESS=powerpc-motorola-powermax
558 ;;
559 Motorola:*:4.3:PL8-*)
560 GUESS=powerpc-harris-powermax
561 ;;
562 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
563 GUESS=powerpc-harris-powermax
564 ;;
565 Night_Hawk:Power_UNIX:*:*)
566 GUESS=powerpc-harris-powerunix
567 ;;
568 m88k:CX/UX:7*:*)
569 GUESS=m88k-harris-cxux7
570 ;;
571 m88k:*:4*:R4*)
572 GUESS=m88k-motorola-sysv4
573 ;;
574 m88k:*:3*:R3*)
575 GUESS=m88k-motorola-sysv3
576 ;;
577 AViiON:dgux:*:*)
578 # DG/UX returns AViiON for all architectures
579 UNAME_PROCESSOR=`/usr/bin/uname -p`
580 if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
581 then
582 if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
583 test "$TARGET_BINARY_INTERFACE"x = x
584 then
585 GUESS=m88k-dg-dgux$UNAME_RELEASE
586 else
587 GUESS=m88k-dg-dguxbcs$UNAME_RELEASE
588 fi
589 else
590 GUESS=i586-dg-dgux$UNAME_RELEASE
591 fi
592 ;;
593 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
594 GUESS=m88k-dolphin-sysv3
595 ;;
596 M88*:*:R3*:*)
597 # Delta 88k system running SVR3
598 GUESS=m88k-motorola-sysv3
599 ;;
600 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
601 GUESS=m88k-tektronix-sysv3
602 ;;
603 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
604 GUESS=m68k-tektronix-bsd
605 ;;
606 *:IRIX*:*:*)
607 IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'`
608 GUESS=mips-sgi-irix$IRIX_REL
609 ;;
610 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
611 GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id
612 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
613 i*86:AIX:*:*)
614 GUESS=i386-ibm-aix
615 ;;
616 ia64:AIX:*:*)
617 if test -x /usr/bin/oslevel ; then
618 IBM_REV=`/usr/bin/oslevel`
619 else
620 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
621 fi
622 GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV
623 ;;
624 *:AIX:2:3)
625 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
626 set_cc_for_build
627 sed 's/^ //' << EOF > "$dummy.c"
628 #include <sys/systemcfg.h>
629
630 main()
631 {
632 if (!__power_pc())
633 exit(1);
634 puts("powerpc-ibm-aix3.2.5");
635 exit(0);
636 }
637 EOF
638 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
639 then
640 GUESS=$SYSTEM_NAME
641 else
642 GUESS=rs6000-ibm-aix3.2.5
643 fi
644 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
645 GUESS=rs6000-ibm-aix3.2.4
646 else
647 GUESS=rs6000-ibm-aix3.2
648 fi
649 ;;
650 *:AIX:*:[4567])
651 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
652 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
653 IBM_ARCH=rs6000
654 else
655 IBM_ARCH=powerpc
656 fi
657 if test -x /usr/bin/lslpp ; then
658 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \
659 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
660 else
661 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
662 fi
663 GUESS=$IBM_ARCH-ibm-aix$IBM_REV
664 ;;
665 *:AIX:*:*)
666 GUESS=rs6000-ibm-aix
667 ;;
668 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
669 GUESS=romp-ibm-bsd4.4
670 ;;
671 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
672 GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to
673 ;; # report: romp-ibm BSD 4.3
674 *:BOSX:*:*)
675 GUESS=rs6000-bull-bosx
676 ;;
677 DPX/2?00:B.O.S.:*:*)
678 GUESS=m68k-bull-sysv3
679 ;;
680 9000/[34]??:4.3bsd:1.*:*)
681 GUESS=m68k-hp-bsd
682 ;;
683 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
684 GUESS=m68k-hp-bsd4.4
685 ;;
686 9000/[34678]??:HP-UX:*:*)
687 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
688 case $UNAME_MACHINE in
689 9000/31?) HP_ARCH=m68000 ;;
690 9000/[34]??) HP_ARCH=m68k ;;
691 9000/[678][0-9][0-9])
692 if test -x /usr/bin/getconf; then
693 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
694 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
695 case $sc_cpu_version in
696 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
697 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
698 532) # CPU_PA_RISC2_0
699 case $sc_kernel_bits in
700 32) HP_ARCH=hppa2.0n ;;
701 64) HP_ARCH=hppa2.0w ;;
702 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
703 esac ;;
704 esac
705 fi
706 if test "$HP_ARCH" = ""; then
707 set_cc_for_build
708 sed 's/^ //' << EOF > "$dummy.c"
709
710 #define _HPUX_SOURCE
711 #include <stdlib.h>
712 #include <unistd.h>
713
714 int main ()
715 {
716 #if defined(_SC_KERNEL_BITS)
717 long bits = sysconf(_SC_KERNEL_BITS);
718 #endif
719 long cpu = sysconf (_SC_CPU_VERSION);
720
721 switch (cpu)
722 {
723 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
724 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
725 case CPU_PA_RISC2_0:
726 #if defined(_SC_KERNEL_BITS)
727 switch (bits)
728 {
729 case 64: puts ("hppa2.0w"); break;
730 case 32: puts ("hppa2.0n"); break;
731 default: puts ("hppa2.0"); break;
732 } break;
733 #else /* !defined(_SC_KERNEL_BITS) */
734 puts ("hppa2.0"); break;
735 #endif
736 default: puts ("hppa1.0"); break;
737 }
738 exit (0);
739 }
740 EOF
741 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
742 test -z "$HP_ARCH" && HP_ARCH=hppa
743 fi ;;
744 esac
745 if test "$HP_ARCH" = hppa2.0w
746 then
747 set_cc_for_build
748
749 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
750 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
751 # generating 64-bit code. GNU and HP use different nomenclature:
752 #
753 # $ CC_FOR_BUILD=cc ./config.guess
754 # => hppa2.0w-hp-hpux11.23
755 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
756 # => hppa64-hp-hpux11.23
757
758 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
759 grep -q __LP64__
760 then
761 HP_ARCH=hppa2.0w
762 else
763 HP_ARCH=hppa64
764 fi
765 fi
766 GUESS=$HP_ARCH-hp-hpux$HPUX_REV
767 ;;
768 ia64:HP-UX:*:*)
769 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
770 GUESS=ia64-hp-hpux$HPUX_REV
771 ;;
772 3050*:HI-UX:*:*)
773 set_cc_for_build
774 sed 's/^ //' << EOF > "$dummy.c"
775 #include <unistd.h>
776 int
777 main ()
778 {
779 long cpu = sysconf (_SC_CPU_VERSION);
780 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
781 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
782 results, however. */
783 if (CPU_IS_PA_RISC (cpu))
784 {
785 switch (cpu)
786 {
787 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
788 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
789 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
790 default: puts ("hppa-hitachi-hiuxwe2"); break;
791 }
792 }
793 else if (CPU_IS_HP_MC68K (cpu))
794 puts ("m68k-hitachi-hiuxwe2");
795 else puts ("unknown-hitachi-hiuxwe2");
796 exit (0);
797 }
798 EOF
799 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
800 { echo "$SYSTEM_NAME"; exit; }
801 GUESS=unknown-hitachi-hiuxwe2
802 ;;
803 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
804 GUESS=hppa1.1-hp-bsd
805 ;;
806 9000/8??:4.3bsd:*:*)
807 GUESS=hppa1.0-hp-bsd
808 ;;
809 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
810 GUESS=hppa1.0-hp-mpeix
811 ;;
812 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
813 GUESS=hppa1.1-hp-osf
814 ;;
815 hp8??:OSF1:*:*)
816 GUESS=hppa1.0-hp-osf
817 ;;
818 i*86:OSF1:*:*)
819 if test -x /usr/sbin/sysversion ; then
820 GUESS=$UNAME_MACHINE-unknown-osf1mk
821 else
822 GUESS=$UNAME_MACHINE-unknown-osf1
823 fi
824 ;;
825 parisc*:Lites*:*:*)
826 GUESS=hppa1.1-hp-lites
827 ;;
828 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
829 GUESS=c1-convex-bsd
830 ;;
831 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
832 if getsysinfo -f scalar_acc
833 then echo c32-convex-bsd
834 else echo c2-convex-bsd
835 fi
836 exit ;;
837 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
838 GUESS=c34-convex-bsd
839 ;;
840 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
841 GUESS=c38-convex-bsd
842 ;;
843 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
844 GUESS=c4-convex-bsd
845 ;;
846 CRAY*Y-MP:*:*:*)
847 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
848 GUESS=ymp-cray-unicos$CRAY_REL
849 ;;
850 CRAY*[A-Z]90:*:*:*)
851 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
852 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
853 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
854 -e 's/\.[^.]*$/.X/'
855 exit ;;
856 CRAY*TS:*:*:*)
857 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
858 GUESS=t90-cray-unicos$CRAY_REL
859 ;;
860 CRAY*T3E:*:*:*)
861 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
862 GUESS=alphaev5-cray-unicosmk$CRAY_REL
863 ;;
864 CRAY*SV1:*:*:*)
865 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
866 GUESS=sv1-cray-unicos$CRAY_REL
867 ;;
868 *:UNICOS/mp:*:*)
869 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
870 GUESS=craynv-cray-unicosmp$CRAY_REL
871 ;;
872 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
873 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
874 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
875 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
876 GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
877 ;;
878 5000:UNIX_System_V:4.*:*)
879 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
880 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
881 GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
882 ;;
883 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
884 GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE
885 ;;
886 sparc*:BSD/OS:*:*)
887 GUESS=sparc-unknown-bsdi$UNAME_RELEASE
888 ;;
889 *:BSD/OS:*:*)
890 GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE
891 ;;
892 arm:FreeBSD:*:*)
893 UNAME_PROCESSOR=`uname -p`
894 set_cc_for_build
895 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
896 | grep -q __ARM_PCS_VFP
897 then
898 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
899 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi
900 else
901 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
902 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf
903 fi
904 ;;
905 *:FreeBSD:*:*)
906 UNAME_PROCESSOR=`/usr/bin/uname -p`
907 case $UNAME_PROCESSOR in
908 amd64)
909 UNAME_PROCESSOR=x86_64 ;;
910 i386)
911 UNAME_PROCESSOR=i586 ;;
912 esac
913 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
914 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL
915 ;;
916 i*:CYGWIN*:*)
917 GUESS=$UNAME_MACHINE-pc-cygwin
918 ;;
919 *:MINGW64*:*)
920 GUESS=$UNAME_MACHINE-pc-mingw64
921 ;;
922 *:MINGW*:*)
923 GUESS=$UNAME_MACHINE-pc-mingw32
924 ;;
925 *:MSYS*:*)
926 GUESS=$UNAME_MACHINE-pc-msys
927 ;;
928 i*:PW*:*)
929 GUESS=$UNAME_MACHINE-pc-pw32
930 ;;
931 *:SerenityOS:*:*)
932 GUESS=$UNAME_MACHINE-pc-serenity
933 ;;
934 *:Interix*:*)
935 case $UNAME_MACHINE in
936 x86)
937 GUESS=i586-pc-interix$UNAME_RELEASE
938 ;;
939 authenticamd | genuineintel | EM64T)
940 GUESS=x86_64-unknown-interix$UNAME_RELEASE
941 ;;
942 IA64)
943 GUESS=ia64-unknown-interix$UNAME_RELEASE
944 ;;
945 esac ;;
946 i*:UWIN*:*)
947 GUESS=$UNAME_MACHINE-pc-uwin
948 ;;
949 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
950 GUESS=x86_64-pc-cygwin
951 ;;
952 prep*:SunOS:5.*:*)
953 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
954 GUESS=powerpcle-unknown-solaris2$SUN_REL
955 ;;
956 *:GNU:*:*)
957 # the GNU system
958 GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'`
959 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'`
960 GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL
961 ;;
962 *:GNU/*:*:*)
963 # other systems with GNU libc and userland
964 GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"`
965 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
966 GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC
967 ;;
968 *:Minix:*:*)
969 GUESS=$UNAME_MACHINE-unknown-minix
970 ;;
971 aarch64:Linux:*:*)
972 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
973 ;;
974 aarch64_be:Linux:*:*)
975 UNAME_MACHINE=aarch64_be
976 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
977 ;;
978 alpha:Linux:*:*)
979 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
980 EV5) UNAME_MACHINE=alphaev5 ;;
981 EV56) UNAME_MACHINE=alphaev56 ;;
982 PCA56) UNAME_MACHINE=alphapca56 ;;
983 PCA57) UNAME_MACHINE=alphapca56 ;;
984 EV6) UNAME_MACHINE=alphaev6 ;;
985 EV67) UNAME_MACHINE=alphaev67 ;;
986 EV68*) UNAME_MACHINE=alphaev68 ;;
987 esac
988 objdump --private-headers /bin/sh | grep -q ld.so.1
989 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
990 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
991 ;;
992 arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*)
993 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
994 ;;
995 arm*:Linux:*:*)
996 set_cc_for_build
997 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
998 | grep -q __ARM_EABI__
999 then
1000 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1001 else
1002 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
1003 | grep -q __ARM_PCS_VFP
1004 then
1005 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi
1006 else
1007 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf
1008 fi
1009 fi
1010 ;;
1011 avr32*:Linux:*:*)
1012 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1013 ;;
1014 cris:Linux:*:*)
1015 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1016 ;;
1017 crisv32:Linux:*:*)
1018 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
1019 ;;
1020 e2k:Linux:*:*)
1021 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1022 ;;
1023 frv:Linux:*:*)
1024 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1025 ;;
1026 hexagon:Linux:*:*)
1027 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1028 ;;
1029 i*86:Linux:*:*)
1030 GUESS=$UNAME_MACHINE-pc-linux-$LIBC
1031 ;;
1032 ia64:Linux:*:*)
1033 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1034 ;;
1035 k1om:Linux:*:*)
1036 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1037 ;;
1038 loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
1039 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1040 ;;
1041 m32r*:Linux:*:*)
1042 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1043 ;;
1044 m68*:Linux:*:*)
1045 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1046 ;;
1047 mips:Linux:*:* | mips64:Linux:*:*)
1048 set_cc_for_build
1049 IS_GLIBC=0
1050 test x"${LIBC}" = xgnu && IS_GLIBC=1
1051 sed 's/^ //' << EOF > "$dummy.c"
1052 #undef CPU
1053 #undef mips
1054 #undef mipsel
1055 #undef mips64
1056 #undef mips64el
1057 #if ${IS_GLIBC} && defined(_ABI64)
1058 LIBCABI=gnuabi64
1059 #else
1060 #if ${IS_GLIBC} && defined(_ABIN32)
1061 LIBCABI=gnuabin32
1062 #else
1063 LIBCABI=${LIBC}
1064 #endif
1065 #endif
1066
1067 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1068 CPU=mipsisa64r6
1069 #else
1070 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1071 CPU=mipsisa32r6
1072 #else
1073 #if defined(__mips64)
1074 CPU=mips64
1075 #else
1076 CPU=mips
1077 #endif
1078 #endif
1079 #endif
1080
1081 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
1082 MIPS_ENDIAN=el
1083 #else
1084 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
1085 MIPS_ENDIAN=
1086 #else
1087 MIPS_ENDIAN=
1088 #endif
1089 #endif
1090 EOF
1091 cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`
1092 eval "$cc_set_vars"
1093 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
1094 ;;
1095 mips64el:Linux:*:*)
1096 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1097 ;;
1098 openrisc*:Linux:*:*)
1099 GUESS=or1k-unknown-linux-$LIBC
1100 ;;
1101 or32:Linux:*:* | or1k*:Linux:*:*)
1102 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1103 ;;
1104 padre:Linux:*:*)
1105 GUESS=sparc-unknown-linux-$LIBC
1106 ;;
1107 parisc64:Linux:*:* | hppa64:Linux:*:*)
1108 GUESS=hppa64-unknown-linux-$LIBC
1109 ;;
1110 parisc:Linux:*:* | hppa:Linux:*:*)
1111 # Look for CPU level
1112 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1113 PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;;
1114 PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;;
1115 *) GUESS=hppa-unknown-linux-$LIBC ;;
1116 esac
1117 ;;
1118 ppc64:Linux:*:*)
1119 GUESS=powerpc64-unknown-linux-$LIBC
1120 ;;
1121 ppc:Linux:*:*)
1122 GUESS=powerpc-unknown-linux-$LIBC
1123 ;;
1124 ppc64le:Linux:*:*)
1125 GUESS=powerpc64le-unknown-linux-$LIBC
1126 ;;
1127 ppcle:Linux:*:*)
1128 GUESS=powerpcle-unknown-linux-$LIBC
1129 ;;
1130 riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
1131 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1132 ;;
1133 s390:Linux:*:* | s390x:Linux:*:*)
1134 GUESS=$UNAME_MACHINE-ibm-linux-$LIBC
1135 ;;
1136 sh64*:Linux:*:*)
1137 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1138 ;;
1139 sh*:Linux:*:*)
1140 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1141 ;;
1142 sparc:Linux:*:* | sparc64:Linux:*:*)
1143 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1144 ;;
1145 tile*:Linux:*:*)
1146 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1147 ;;
1148 vax:Linux:*:*)
1149 GUESS=$UNAME_MACHINE-dec-linux-$LIBC
1150 ;;
1151 x86_64:Linux:*:*)
1152 set_cc_for_build
1153 LIBCABI=$LIBC
1154 if test "$CC_FOR_BUILD" != no_compiler_found; then
1155 if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
1156 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1157 grep IS_X32 >/dev/null
1158 then
1159 LIBCABI=${LIBC}x32
1160 fi
1161 fi
1162 GUESS=$UNAME_MACHINE-pc-linux-$LIBCABI
1163 ;;
1164 xtensa*:Linux:*:*)
1165 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1166 ;;
1167 i*86:DYNIX/ptx:4*:*)
1168 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1169 # earlier versions are messed up and put the nodename in both
1170 # sysname and nodename.
1171 GUESS=i386-sequent-sysv4
1172 ;;
1173 i*86:UNIX_SV:4.2MP:2.*)
1174 # Unixware is an offshoot of SVR4, but it has its own version
1175 # number series starting with 2...
1176 # I am not positive that other SVR4 systems won't match this,
1177 # I just have to hope. -- rms.
1178 # Use sysv4.2uw... so that sysv4* matches it.
1179 GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
1180 ;;
1181 i*86:OS/2:*:*)
1182 # If we were able to find `uname', then EMX Unix compatibility
1183 # is probably installed.
1184 GUESS=$UNAME_MACHINE-pc-os2-emx
1185 ;;
1186 i*86:XTS-300:*:STOP)
1187 GUESS=$UNAME_MACHINE-unknown-stop
1188 ;;
1189 i*86:atheos:*:*)
1190 GUESS=$UNAME_MACHINE-unknown-atheos
1191 ;;
1192 i*86:syllable:*:*)
1193 GUESS=$UNAME_MACHINE-pc-syllable
1194 ;;
1195 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1196 GUESS=i386-unknown-lynxos$UNAME_RELEASE
1197 ;;
1198 i*86:*DOS:*:*)
1199 GUESS=$UNAME_MACHINE-pc-msdosdjgpp
1200 ;;
1201 i*86:*:4.*:*)
1202 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
1203 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1204 GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL
1205 else
1206 GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL
1207 fi
1208 ;;
1209 i*86:*:5:[678]*)
1210 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1211 case `/bin/uname -X | grep "^Machine"` in
1212 *486*) UNAME_MACHINE=i486 ;;
1213 *Pentium) UNAME_MACHINE=i586 ;;
1214 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1215 esac
1216 GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1217 ;;
1218 i*86:*:3.2:*)
1219 if test -f /usr/options/cb.name; then
1220 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1221 GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL
1222 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1223 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1224 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1225 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1226 && UNAME_MACHINE=i586
1227 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1228 && UNAME_MACHINE=i686
1229 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1230 && UNAME_MACHINE=i686
1231 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL
1232 else
1233 GUESS=$UNAME_MACHINE-pc-sysv32
1234 fi
1235 ;;
1236 pc:*:*:*)
1237 # Left here for compatibility:
1238 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1239 # the processor, so we play safe by assuming i586.
1240 # Note: whatever this is, it MUST be the same as what config.sub
1241 # prints for the "djgpp" host, or else GDB configure will decide that
1242 # this is a cross-build.
1243 GUESS=i586-pc-msdosdjgpp
1244 ;;
1245 Intel:Mach:3*:*)
1246 GUESS=i386-pc-mach3
1247 ;;
1248 paragon:*:*:*)
1249 GUESS=i860-intel-osf1
1250 ;;
1251 i860:*:4.*:*) # i860-SVR4
1252 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1253 GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4
1254 else # Add other i860-SVR4 vendors below as they are discovered.
1255 GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4
1256 fi
1257 ;;
1258 mini*:CTIX:SYS*5:*)
1259 # "miniframe"
1260 GUESS=m68010-convergent-sysv
1261 ;;
1262 mc68k:UNIX:SYSTEM5:3.51m)
1263 GUESS=m68k-convergent-sysv
1264 ;;
1265 M680?0:D-NIX:5.3:*)
1266 GUESS=m68k-diab-dnix
1267 ;;
1268 M68*:*:R3V[5678]*:*)
1269 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1270 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1271 OS_REL=''
1272 test -r /etc/.relid \
1273 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1274 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1275 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1276 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1277 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1278 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1279 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1280 && { echo i486-ncr-sysv4; exit; } ;;
1281 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1282 OS_REL='.3'
1283 test -r /etc/.relid \
1284 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1285 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1286 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1287 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1288 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
1289 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1290 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1291 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1292 GUESS=m68k-unknown-lynxos$UNAME_RELEASE
1293 ;;
1294 mc68030:UNIX_System_V:4.*:*)
1295 GUESS=m68k-atari-sysv4
1296 ;;
1297 TSUNAMI:LynxOS:2.*:*)
1298 GUESS=sparc-unknown-lynxos$UNAME_RELEASE
1299 ;;
1300 rs6000:LynxOS:2.*:*)
1301 GUESS=rs6000-unknown-lynxos$UNAME_RELEASE
1302 ;;
1303 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1304 GUESS=powerpc-unknown-lynxos$UNAME_RELEASE
1305 ;;
1306 SM[BE]S:UNIX_SV:*:*)
1307 GUESS=mips-dde-sysv$UNAME_RELEASE
1308 ;;
1309 RM*:ReliantUNIX-*:*:*)
1310 GUESS=mips-sni-sysv4
1311 ;;
1312 RM*:SINIX-*:*:*)
1313 GUESS=mips-sni-sysv4
1314 ;;
1315 *:SINIX-*:*:*)
1316 if uname -p 2>/dev/null >/dev/null ; then
1317 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1318 GUESS=$UNAME_MACHINE-sni-sysv4
1319 else
1320 GUESS=ns32k-sni-sysv
1321 fi
1322 ;;
1323 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1324 # says <[email protected]>
1325 GUESS=i586-unisys-sysv4
1326 ;;
1327 *:UNIX_System_V:4*:FTX*)
1328 # From Gerald Hewes <[email protected]>.
1329 # How about differentiating between stratus architectures? -djm
1330 GUESS=hppa1.1-stratus-sysv4
1331 ;;
1332 *:*:*:FTX*)
1333 # From [email protected].
1334 GUESS=i860-stratus-sysv4
1335 ;;
1336 i*86:VOS:*:*)
1337 # From [email protected].
1338 GUESS=$UNAME_MACHINE-stratus-vos
1339 ;;
1340 *:VOS:*:*)
1341 # From [email protected].
1342 GUESS=hppa1.1-stratus-vos
1343 ;;
1344 mc68*:A/UX:*:*)
1345 GUESS=m68k-apple-aux$UNAME_RELEASE
1346 ;;
1347 news*:NEWS-OS:6*:*)
1348 GUESS=mips-sony-newsos6
1349 ;;
1350 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1351 if test -d /usr/nec; then
1352 GUESS=mips-nec-sysv$UNAME_RELEASE
1353 else
1354 GUESS=mips-unknown-sysv$UNAME_RELEASE
1355 fi
1356 ;;
1357 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1358 GUESS=powerpc-be-beos
1359 ;;
1360 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1361 GUESS=powerpc-apple-beos
1362 ;;
1363 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1364 GUESS=i586-pc-beos
1365 ;;
1366 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1367 GUESS=i586-pc-haiku
1368 ;;
1369 x86_64:Haiku:*:*)
1370 GUESS=x86_64-unknown-haiku
1371 ;;
1372 SX-4:SUPER-UX:*:*)
1373 GUESS=sx4-nec-superux$UNAME_RELEASE
1374 ;;
1375 SX-5:SUPER-UX:*:*)
1376 GUESS=sx5-nec-superux$UNAME_RELEASE
1377 ;;
1378 SX-6:SUPER-UX:*:*)
1379 GUESS=sx6-nec-superux$UNAME_RELEASE
1380 ;;
1381 SX-7:SUPER-UX:*:*)
1382 GUESS=sx7-nec-superux$UNAME_RELEASE
1383 ;;
1384 SX-8:SUPER-UX:*:*)
1385 GUESS=sx8-nec-superux$UNAME_RELEASE
1386 ;;
1387 SX-8R:SUPER-UX:*:*)
1388 GUESS=sx8r-nec-superux$UNAME_RELEASE
1389 ;;
1390 SX-ACE:SUPER-UX:*:*)
1391 GUESS=sxace-nec-superux$UNAME_RELEASE
1392 ;;
1393 Power*:Rhapsody:*:*)
1394 GUESS=powerpc-apple-rhapsody$UNAME_RELEASE
1395 ;;
1396 *:Rhapsody:*:*)
1397 GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE
1398 ;;
1399 arm64:Darwin:*:*)
1400 GUESS=aarch64-apple-darwin$UNAME_RELEASE
1401 ;;
1402 *:Darwin:*:*)
1403 UNAME_PROCESSOR=`uname -p`
1404 case $UNAME_PROCESSOR in
1405 unknown) UNAME_PROCESSOR=powerpc ;;
1406 esac
1407 if command -v xcode-select > /dev/null 2> /dev/null && \
1408 ! xcode-select --print-path > /dev/null 2> /dev/null ; then
1409 # Avoid executing cc if there is no toolchain installed as
1410 # cc will be a stub that puts up a graphical alert
1411 # prompting the user to install developer tools.
1412 CC_FOR_BUILD=no_compiler_found
1413 else
1414 set_cc_for_build
1415 fi
1416 if test "$CC_FOR_BUILD" != no_compiler_found; then
1417 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1418 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1419 grep IS_64BIT_ARCH >/dev/null
1420 then
1421 case $UNAME_PROCESSOR in
1422 i386) UNAME_PROCESSOR=x86_64 ;;
1423 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1424 esac
1425 fi
1426 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1427 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1428 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1429 grep IS_PPC >/dev/null
1430 then
1431 UNAME_PROCESSOR=powerpc
1432 fi
1433 elif test "$UNAME_PROCESSOR" = i386 ; then
1434 # uname -m returns i386 or x86_64
1435 UNAME_PROCESSOR=$UNAME_MACHINE
1436 fi
1437 GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE
1438 ;;
1439 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1440 UNAME_PROCESSOR=`uname -p`
1441 if test "$UNAME_PROCESSOR" = x86; then
1442 UNAME_PROCESSOR=i386
1443 UNAME_MACHINE=pc
1444 fi
1445 GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE
1446 ;;
1447 *:QNX:*:4*)
1448 GUESS=i386-pc-qnx
1449 ;;
1450 NEO-*:NONSTOP_KERNEL:*:*)
1451 GUESS=neo-tandem-nsk$UNAME_RELEASE
1452 ;;
1453 NSE-*:NONSTOP_KERNEL:*:*)
1454 GUESS=nse-tandem-nsk$UNAME_RELEASE
1455 ;;
1456 NSR-*:NONSTOP_KERNEL:*:*)
1457 GUESS=nsr-tandem-nsk$UNAME_RELEASE
1458 ;;
1459 NSV-*:NONSTOP_KERNEL:*:*)
1460 GUESS=nsv-tandem-nsk$UNAME_RELEASE
1461 ;;
1462 NSX-*:NONSTOP_KERNEL:*:*)
1463 GUESS=nsx-tandem-nsk$UNAME_RELEASE
1464 ;;
1465 *:NonStop-UX:*:*)
1466 GUESS=mips-compaq-nonstopux
1467 ;;
1468 BS2000:POSIX*:*:*)
1469 GUESS=bs2000-siemens-sysv
1470 ;;
1471 DS/*:UNIX_System_V:*:*)
1472 GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE
1473 ;;
1474 *:Plan9:*:*)
1475 # "uname -m" is not consistent, so use $cputype instead. 386
1476 # is converted to i386 for consistency with other x86
1477 # operating systems.
1478 if test "${cputype-}" = 386; then
1479 UNAME_MACHINE=i386
1480 elif test "x${cputype-}" != x; then
1481 UNAME_MACHINE=$cputype
1482 fi
1483 GUESS=$UNAME_MACHINE-unknown-plan9
1484 ;;
1485 *:TOPS-10:*:*)
1486 GUESS=pdp10-unknown-tops10
1487 ;;
1488 *:TENEX:*:*)
1489 GUESS=pdp10-unknown-tenex
1490 ;;
1491 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1492 GUESS=pdp10-dec-tops20
1493 ;;
1494 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1495 GUESS=pdp10-xkl-tops20
1496 ;;
1497 *:TOPS-20:*:*)
1498 GUESS=pdp10-unknown-tops20
1499 ;;
1500 *:ITS:*:*)
1501 GUESS=pdp10-unknown-its
1502 ;;
1503 SEI:*:*:SEIUX)
1504 GUESS=mips-sei-seiux$UNAME_RELEASE
1505 ;;
1506 *:DragonFly:*:*)
1507 DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
1508 GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL
1509 ;;
1510 *:*VMS:*:*)
1511 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1512 case $UNAME_MACHINE in
1513 A*) GUESS=alpha-dec-vms ;;
1514 I*) GUESS=ia64-dec-vms ;;
1515 V*) GUESS=vax-dec-vms ;;
1516 esac ;;
1517 *:XENIX:*:SysV)
1518 GUESS=i386-pc-xenix
1519 ;;
1520 i*86:skyos:*:*)
1521 SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`
1522 GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL
1523 ;;
1524 i*86:rdos:*:*)
1525 GUESS=$UNAME_MACHINE-pc-rdos
1526 ;;
1527 i*86:Fiwix:*:*)
1528 GUESS=$UNAME_MACHINE-pc-fiwix
1529 ;;
1530 *:AROS:*:*)
1531 GUESS=$UNAME_MACHINE-unknown-aros
1532 ;;
1533 x86_64:VMkernel:*:*)
1534 GUESS=$UNAME_MACHINE-unknown-esx
1535 ;;
1536 amd64:Isilon\ OneFS:*:*)
1537 GUESS=x86_64-unknown-onefs
1538 ;;
1539 *:Unleashed:*:*)
1540 GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
1541 ;;
1542 esac
1543
1544 # Do we have a guess based on uname results?
1545 if test "x$GUESS" != x; then
1546 echo "$GUESS"
1547 exit
1548 fi
1549
1550 # No uname command or uname output not recognized.
1551 set_cc_for_build
1552 cat > "$dummy.c" <<EOF
1553 #ifdef _SEQUENT_
1554 #include <sys/types.h>
1555 #include <sys/utsname.h>
1556 #endif
1557 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1558 #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1559 #include <signal.h>
1560 #if defined(_SIZE_T_) || defined(SIGLOST)
1561 #include <sys/utsname.h>
1562 #endif
1563 #endif
1564 #endif
1565 main ()
1566 {
1567 #if defined (sony)
1568 #if defined (MIPSEB)
1569 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1570 I don't know.... */
1571 printf ("mips-sony-bsd\n"); exit (0);
1572 #else
1573 #include <sys/param.h>
1574 printf ("m68k-sony-newsos%s\n",
1575 #ifdef NEWSOS4
1576 "4"
1577 #else
1578 ""
1579 #endif
1580 ); exit (0);
1581 #endif
1582 #endif
1583
1584 #if defined (NeXT)
1585 #if !defined (__ARCHITECTURE__)
1586 #define __ARCHITECTURE__ "m68k"
1587 #endif
1588 int version;
1589 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1590 if (version < 4)
1591 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1592 else
1593 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1594 exit (0);
1595 #endif
1596
1597 #if defined (MULTIMAX) || defined (n16)
1598 #if defined (UMAXV)
1599 printf ("ns32k-encore-sysv\n"); exit (0);
1600 #else
1601 #if defined (CMU)
1602 printf ("ns32k-encore-mach\n"); exit (0);
1603 #else
1604 printf ("ns32k-encore-bsd\n"); exit (0);
1605 #endif
1606 #endif
1607 #endif
1608
1609 #if defined (__386BSD__)
1610 printf ("i386-pc-bsd\n"); exit (0);
1611 #endif
1612
1613 #if defined (sequent)
1614 #if defined (i386)
1615 printf ("i386-sequent-dynix\n"); exit (0);
1616 #endif
1617 #if defined (ns32000)
1618 printf ("ns32k-sequent-dynix\n"); exit (0);
1619 #endif
1620 #endif
1621
1622 #if defined (_SEQUENT_)
1623 struct utsname un;
1624
1625 uname(&un);
1626 if (strncmp(un.version, "V2", 2) == 0) {
1627 printf ("i386-sequent-ptx2\n"); exit (0);
1628 }
1629 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1630 printf ("i386-sequent-ptx1\n"); exit (0);
1631 }
1632 printf ("i386-sequent-ptx\n"); exit (0);
1633 #endif
1634
1635 #if defined (vax)
1636 #if !defined (ultrix)
1637 #include <sys/param.h>
1638 #if defined (BSD)
1639 #if BSD == 43
1640 printf ("vax-dec-bsd4.3\n"); exit (0);
1641 #else
1642 #if BSD == 199006
1643 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1644 #else
1645 printf ("vax-dec-bsd\n"); exit (0);
1646 #endif
1647 #endif
1648 #else
1649 printf ("vax-dec-bsd\n"); exit (0);
1650 #endif
1651 #else
1652 #if defined(_SIZE_T_) || defined(SIGLOST)
1653 struct utsname un;
1654 uname (&un);
1655 printf ("vax-dec-ultrix%s\n", un.release); exit (0);
1656 #else
1657 printf ("vax-dec-ultrix\n"); exit (0);
1658 #endif
1659 #endif
1660 #endif
1661 #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1662 #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1663 #if defined(_SIZE_T_) || defined(SIGLOST)
1664 struct utsname *un;
1665 uname (&un);
1666 printf ("mips-dec-ultrix%s\n", un.release); exit (0);
1667 #else
1668 printf ("mips-dec-ultrix\n"); exit (0);
1669 #endif
1670 #endif
1671 #endif
1672
1673 #if defined (alliant) && defined (i860)
1674 printf ("i860-alliant-bsd\n"); exit (0);
1675 #endif
1676
1677 exit (1);
1678 }
1679 EOF
1680
1681 $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` &&
1682 { echo "$SYSTEM_NAME"; exit; }
1683
1684 # Apollos put the system type in the environment.
1685 test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }
1686
1687 echo "$0: unable to guess system type" >&2
1688
1689 case $UNAME_MACHINE:$UNAME_SYSTEM in
1690 mips:Linux | mips64:Linux)
1691 # If we got here on MIPS GNU/Linux, output extra information.
1692 cat >&2 <<EOF
1693
1694 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1695 the system type. Please install a C compiler and try again.
1696 EOF
1697 ;;
1698 esac
1699
1700 cat >&2 <<EOF
1701
1702 This script (version $timestamp), has failed to recognize the
1703 operating system you are using. If your script is old, overwrite *all*
1704 copies of config.guess and config.sub with the latest versions from:
1705
1706 https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
1707 and
1708 https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
1709 EOF
1710
1711 our_year=`echo $timestamp | sed 's,-.*,,'`
1712 thisyear=`date +%Y`
1713 # shellcheck disable=SC2003
1714 script_age=`expr "$thisyear" - "$our_year"`
1715 if test "$script_age" -lt 3 ; then
1716 cat >&2 <<EOF
1717
1718 If $0 has already been updated, send the following data and any
1719 information you think might be pertinent to [email protected] to
1720 provide the necessary information to handle your system.
1721
1722 config.guess timestamp = $timestamp
1723
1724 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1725 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1726 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1727 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1728
1729 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1730 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1731
1732 hostinfo = `(hostinfo) 2>/dev/null`
1733 /bin/universe = `(/bin/universe) 2>/dev/null`
1734 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1735 /bin/arch = `(/bin/arch) 2>/dev/null`
1736 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1737 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1738
1739 UNAME_MACHINE = "$UNAME_MACHINE"
1740 UNAME_RELEASE = "$UNAME_RELEASE"
1741 UNAME_SYSTEM = "$UNAME_SYSTEM"
1742 UNAME_VERSION = "$UNAME_VERSION"
1743 EOF
1744 fi
1745
1746 exit 1
1747
1748 # Local variables:
1749 # eval: (add-hook 'before-save-hook 'time-stamp)
1750 # time-stamp-start: "timestamp='"
1751 # time-stamp-format: "%:y-%02m-%02d"
1752 # time-stamp-end: "'"
1753 # End:
0 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* Define to 1 if you have the `atexit' function. */
3 #undef HAVE_ATEXIT
4
5 /* Define to 1 if you have the `dup2' function. */
6 #undef HAVE_DUP2
7
8 /* Define to 1 if you have the `explicit_bzero' function. */
9 #undef HAVE_EXPLICIT_BZERO
10
11 /* Define to 1 if you have the <fcntl.h> header file. */
12 #undef HAVE_FCNTL_H
13
14 /* Define to 1 if you have the <float.h> header file. */
15 #undef HAVE_FLOAT_H
16
17 /* Define to 1 if you have the `fork' function. */
18 #undef HAVE_FORK
19
20 /* Define to 1 if you have the `ftruncate' function. */
21 #undef HAVE_FTRUNCATE
22
23 /* Define to 1 if you have the `getcwd' function. */
24 #undef HAVE_GETCWD
25
26 /* Define to 1 if you have the `gettimeofday' function. */
27 #undef HAVE_GETTIMEOFDAY
28
29 /* Define to 1 if you have the <inttypes.h> header file. */
30 #undef HAVE_INTTYPES_H
31
32 /* Define to 1 if you have the <limits.h> header file. */
33 #undef HAVE_LIMITS_H
34
35 /* Define to 1 if you have the <locale.h> header file. */
36 #undef HAVE_LOCALE_H
37
38 /* Define to 1 if you have the `localtime_r' function. */
39 #undef HAVE_LOCALTIME_R
40
41 /* Define to 1 if you have the `memchr' function. */
42 #undef HAVE_MEMCHR
43
44 /* Define to 1 if you have the `memset' function. */
45 #undef HAVE_MEMSET
46
47 /* Define to 1 if you have the <minix/config.h> header file. */
48 #undef HAVE_MINIX_CONFIG_H
49
50 /* Define to 1 if you have the `mkdir' function. */
51 #undef HAVE_MKDIR
52
53 /* Define to 1 if the system has the type `mode_t'. */
54 #undef HAVE_MODE_T
55
56 /* Define to 1 if you have the <netinet/in.h> header file. */
57 #undef HAVE_NETINET_IN_H
58
59 /* Define to 1 if the system has the type `off_t'. */
60 #undef HAVE_OFF_T
61
62 /* Define to 1 if you have the <paths.h> header file. */
63 #undef HAVE_PATHS_H
64
65 /* Define to 1 if the system has the type `pid_t'. */
66 #undef HAVE_PID_T
67
68 /* Define to 1 if you have the `rmdir' function. */
69 #undef HAVE_RMDIR
70
71 /* Define to 1 if you have the `setlocale' function. */
72 #undef HAVE_SETLOCALE
73
74 /* Define to 1 if the system has the type `size_t'. */
75 #undef HAVE_SIZE_T
76
77 /* Define to 1 if you have the `socket' function. */
78 #undef HAVE_SOCKET
79
80 /* Define to 1 if the system has the type `ssize_t'. */
81 #undef HAVE_SSIZE_T
82
83 /* Define to 1 if you have the <stddef.h> header file. */
84 #undef HAVE_STDDEF_H
85
86 /* Define to 1 if you have the <stdint.h> header file. */
87 #undef HAVE_STDINT_H
88
89 /* Define to 1 if you have the <stdio.h> header file. */
90 #undef HAVE_STDIO_H
91
92 /* Define to 1 if you have the <stdlib.h> header file. */
93 #undef HAVE_STDLIB_H
94
95 /* Define to 1 if you have the `strcasecmp' function. */
96 #undef HAVE_STRCASECMP
97
98 /* Define to 1 if you have the `strchr' function. */
99 #undef HAVE_STRCHR
100
101 /* Define to 1 if you have the `strdup' function. */
102 #undef HAVE_STRDUP
103
104 /* Define to 1 if you have the `strerror' function. */
105 #undef HAVE_STRERROR
106
107 /* Define to 1 if you have the <strings.h> header file. */
108 #undef HAVE_STRINGS_H
109
110 /* Define to 1 if you have the <string.h> header file. */
111 #undef HAVE_STRING_H
112
113 /* Define to 1 if you have the `strncasecmp' function. */
114 #undef HAVE_STRNCASECMP
115
116 /* Define to 1 if you have the `strndup' function. */
117 #undef HAVE_STRNDUP
118
119 /* Define to 1 if you have the `strrchr' function. */
120 #undef HAVE_STRRCHR
121
122 /* Define to 1 if you have the `strspn' function. */
123 #undef HAVE_STRSPN
124
125 /* Define to 1 if you have the `strstr' function. */
126 #undef HAVE_STRSTR
127
128 /* Define to 1 if you have the `strtol' function. */
129 #undef HAVE_STRTOL
130
131 /* Define to 1 if you have the `strtoul' function. */
132 #undef HAVE_STRTOUL
133
134 /* Define to 1 if you have the <sys/param.h> header file. */
135 #undef HAVE_SYS_PARAM_H
136
137 /* Define to 1 if you have the <sys/socket.h> header file. */
138 #undef HAVE_SYS_SOCKET_H
139
140 /* Define to 1 if you have the <sys/stat.h> header file. */
141 #undef HAVE_SYS_STAT_H
142
143 /* Define to 1 if you have the <sys/time.h> header file. */
144 #undef HAVE_SYS_TIME_H
145
146 /* Define to 1 if you have the <sys/types.h> header file. */
147 #undef HAVE_SYS_TYPES_H
148
149 /* Define to 1 if you have the <unistd.h> header file. */
150 #undef HAVE_UNISTD_H
151
152 /* Define to 1 if you have the `vfork' function. */
153 #undef HAVE_VFORK
154
155 /* Define to 1 if you have the <vfork.h> header file. */
156 #undef HAVE_VFORK_H
157
158 /* Define to 1 if you have the <wchar.h> header file. */
159 #undef HAVE_WCHAR_H
160
161 /* Define to 1 if `fork' works. */
162 #undef HAVE_WORKING_FORK
163
164 /* Define to 1 if `vfork' works. */
165 #undef HAVE_WORKING_VFORK
166
167 /* Define to 1 if the system has the type `_Bool'. */
168 #undef HAVE__BOOL
169
170 /* i3lock version */
171 #undef I3LOCK_VERSION
172
173 /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
174 slash. */
175 #undef LSTAT_FOLLOWS_SLASHED_SYMLINK
176
177 /* Define if debugging is disabled */
178 #undef NDEBUG
179
180 /* Name of package */
181 #undef PACKAGE
182
183 /* Define to the address where bug reports for this package should be sent. */
184 #undef PACKAGE_BUGREPORT
185
186 /* Define to the full name of this package. */
187 #undef PACKAGE_NAME
188
189 /* Define to the full name and version of this package. */
190 #undef PACKAGE_STRING
191
192 /* Define to the one symbol short name of this package. */
193 #undef PACKAGE_TARNAME
194
195 /* Define to the home page for this package. */
196 #undef PACKAGE_URL
197
198 /* Define to the version of this package. */
199 #undef PACKAGE_VERSION
200
201 /* Define to 1 if all of the C90 standard headers exist (not just the ones
202 required in a freestanding environment). This macro is provided for
203 backward compatibility; new code need not use it. */
204 #undef STDC_HEADERS
205
206 /* Enable extensions on AIX 3, Interix. */
207 #ifndef _ALL_SOURCE
208 # undef _ALL_SOURCE
209 #endif
210 /* Enable general extensions on macOS. */
211 #ifndef _DARWIN_C_SOURCE
212 # undef _DARWIN_C_SOURCE
213 #endif
214 /* Enable general extensions on Solaris. */
215 #ifndef __EXTENSIONS__
216 # undef __EXTENSIONS__
217 #endif
218 /* Enable GNU extensions on systems that have them. */
219 #ifndef _GNU_SOURCE
220 # undef _GNU_SOURCE
221 #endif
222 /* Enable X/Open compliant socket functions that do not require linking
223 with -lxnet on HP-UX 11.11. */
224 #ifndef _HPUX_ALT_XOPEN_SOCKET_API
225 # undef _HPUX_ALT_XOPEN_SOCKET_API
226 #endif
227 /* Identify the host operating system as Minix.
228 This macro does not affect the system headers' behavior.
229 A future release of Autoconf may stop defining this macro. */
230 #ifndef _MINIX
231 # undef _MINIX
232 #endif
233 /* Enable general extensions on NetBSD.
234 Enable NetBSD compatibility extensions on Minix. */
235 #ifndef _NETBSD_SOURCE
236 # undef _NETBSD_SOURCE
237 #endif
238 /* Enable OpenBSD compatibility extensions on NetBSD.
239 Oddly enough, this does nothing on OpenBSD. */
240 #ifndef _OPENBSD_SOURCE
241 # undef _OPENBSD_SOURCE
242 #endif
243 /* Define to 1 if needed for POSIX-compatible behavior. */
244 #ifndef _POSIX_SOURCE
245 # undef _POSIX_SOURCE
246 #endif
247 /* Define to 2 if needed for POSIX-compatible behavior. */
248 #ifndef _POSIX_1_SOURCE
249 # undef _POSIX_1_SOURCE
250 #endif
251 /* Enable POSIX-compatible threading on Solaris. */
252 #ifndef _POSIX_PTHREAD_SEMANTICS
253 # undef _POSIX_PTHREAD_SEMANTICS
254 #endif
255 /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
256 #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
257 # undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
258 #endif
259 /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
260 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
261 # undef __STDC_WANT_IEC_60559_BFP_EXT__
262 #endif
263 /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
264 #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
265 # undef __STDC_WANT_IEC_60559_DFP_EXT__
266 #endif
267 /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
268 #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
269 # undef __STDC_WANT_IEC_60559_FUNCS_EXT__
270 #endif
271 /* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
272 #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
273 # undef __STDC_WANT_IEC_60559_TYPES_EXT__
274 #endif
275 /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
276 #ifndef __STDC_WANT_LIB_EXT2__
277 # undef __STDC_WANT_LIB_EXT2__
278 #endif
279 /* Enable extensions specified by ISO/IEC 24747:2009. */
280 #ifndef __STDC_WANT_MATH_SPEC_FUNCS__
281 # undef __STDC_WANT_MATH_SPEC_FUNCS__
282 #endif
283 /* Enable extensions on HP NonStop. */
284 #ifndef _TANDEM_SOURCE
285 # undef _TANDEM_SOURCE
286 #endif
287 /* Enable X/Open extensions. Define to 500 only if necessary
288 to make mbstate_t available. */
289 #ifndef _XOPEN_SOURCE
290 # undef _XOPEN_SOURCE
291 #endif
292
293
294 /* Version number of package */
295 #undef VERSION
296
297 /* Define as a signed integer type capable of holding a process identifier. */
298 #undef pid_t
299
300 /* Define as `fork' if `vfork' does not work. */
301 #undef vfork
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright 1992-2022 Free Software Foundation, Inc.
3
4 # shellcheck disable=SC2006,SC2268 # see below for rationale
5
6 timestamp='2022-01-03'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, see <https://www.gnu.org/licenses/>.
20 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that
25 # program. This Exception is an additional permission under section 7
26 # of the GNU General Public License, version 3 ("GPLv3").
27
28
29 # Please send patches to <[email protected]>.
30 #
31 # Configuration subroutine to validate and canonicalize a configuration type.
32 # Supply the specified configuration type as an argument.
33 # If it is invalid, we print an error message on stderr and exit with code 1.
34 # Otherwise, we print the canonical config type on stdout and succeed.
35
36 # You can get the latest version of this script from:
37 # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
38
39 # This file is supposed to be the same for all GNU packages
40 # and recognize all the CPU types, system types and aliases
41 # that are meaningful with *any* GNU software.
42 # Each package is responsible for reporting which valid configurations
43 # it does not support. The user should be able to distinguish
44 # a failure to support a valid configuration from a meaningless
45 # configuration.
46
47 # The goal of this file is to map all the various variations of a given
48 # machine specification into a single specification in the form:
49 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
50 # or in some cases, the newer four-part form:
51 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
52 # It is wrong to echo any other type of specification.
53
54 # The "shellcheck disable" line above the timestamp inhibits complaints
55 # about features and limitations of the classic Bourne shell that were
56 # superseded or lifted in POSIX. However, this script identifies a wide
57 # variety of pre-POSIX systems that do not have POSIX shells at all, and
58 # even some reasonably current systems (Solaris 10 as case-in-point) still
59 # have a pre-POSIX /bin/sh.
60
61 me=`echo "$0" | sed -e 's,.*/,,'`
62
63 usage="\
64 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
65
66 Canonicalize a configuration name.
67
68 Options:
69 -h, --help print this help, then exit
70 -t, --time-stamp print date of last modification, then exit
71 -v, --version print version number, then exit
72
73 Report bugs and patches to <[email protected]>."
74
75 version="\
76 GNU config.sub ($timestamp)
77
78 Copyright 1992-2022 Free Software Foundation, Inc.
79
80 This is free software; see the source for copying conditions. There is NO
81 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
82
83 help="
84 Try \`$me --help' for more information."
85
86 # Parse command line
87 while test $# -gt 0 ; do
88 case $1 in
89 --time-stamp | --time* | -t )
90 echo "$timestamp" ; exit ;;
91 --version | -v )
92 echo "$version" ; exit ;;
93 --help | --h* | -h )
94 echo "$usage"; exit ;;
95 -- ) # Stop option processing
96 shift; break ;;
97 - ) # Use stdin as input.
98 break ;;
99 -* )
100 echo "$me: invalid option $1$help" >&2
101 exit 1 ;;
102
103 *local*)
104 # First pass through any local machine types.
105 echo "$1"
106 exit ;;
107
108 * )
109 break ;;
110 esac
111 done
112
113 case $# in
114 0) echo "$me: missing argument$help" >&2
115 exit 1;;
116 1) ;;
117 *) echo "$me: too many arguments$help" >&2
118 exit 1;;
119 esac
120
121 # Split fields of configuration type
122 # shellcheck disable=SC2162
123 saved_IFS=$IFS
124 IFS="-" read field1 field2 field3 field4 <<EOF
125 $1
126 EOF
127 IFS=$saved_IFS
128
129 # Separate into logical components for further validation
130 case $1 in
131 *-*-*-*-*)
132 echo Invalid configuration \`"$1"\': more than four components >&2
133 exit 1
134 ;;
135 *-*-*-*)
136 basic_machine=$field1-$field2
137 basic_os=$field3-$field4
138 ;;
139 *-*-*)
140 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
141 # parts
142 maybe_os=$field2-$field3
143 case $maybe_os in
144 nto-qnx* | linux-* | uclinux-uclibc* \
145 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
146 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
147 | storm-chaos* | os2-emx* | rtmk-nova*)
148 basic_machine=$field1
149 basic_os=$maybe_os
150 ;;
151 android-linux)
152 basic_machine=$field1-unknown
153 basic_os=linux-android
154 ;;
155 *)
156 basic_machine=$field1-$field2
157 basic_os=$field3
158 ;;
159 esac
160 ;;
161 *-*)
162 # A lone config we happen to match not fitting any pattern
163 case $field1-$field2 in
164 decstation-3100)
165 basic_machine=mips-dec
166 basic_os=
167 ;;
168 *-*)
169 # Second component is usually, but not always the OS
170 case $field2 in
171 # Prevent following clause from handling this valid os
172 sun*os*)
173 basic_machine=$field1
174 basic_os=$field2
175 ;;
176 zephyr*)
177 basic_machine=$field1-unknown
178 basic_os=$field2
179 ;;
180 # Manufacturers
181 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
182 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
183 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
184 | convergent* | ncr* | news | 32* | 3600* | 3100* \
185 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
186 | ultra | tti* | harris | dolphin | highlevel | gould \
187 | cbm | ns | masscomp | apple | axis | knuth | cray \
188 | microblaze* | sim | cisco \
189 | oki | wec | wrs | winbond)
190 basic_machine=$field1-$field2
191 basic_os=
192 ;;
193 *)
194 basic_machine=$field1
195 basic_os=$field2
196 ;;
197 esac
198 ;;
199 esac
200 ;;
201 *)
202 # Convert single-component short-hands not valid as part of
203 # multi-component configurations.
204 case $field1 in
205 386bsd)
206 basic_machine=i386-pc
207 basic_os=bsd
208 ;;
209 a29khif)
210 basic_machine=a29k-amd
211 basic_os=udi
212 ;;
213 adobe68k)
214 basic_machine=m68010-adobe
215 basic_os=scout
216 ;;
217 alliant)
218 basic_machine=fx80-alliant
219 basic_os=
220 ;;
221 altos | altos3068)
222 basic_machine=m68k-altos
223 basic_os=
224 ;;
225 am29k)
226 basic_machine=a29k-none
227 basic_os=bsd
228 ;;
229 amdahl)
230 basic_machine=580-amdahl
231 basic_os=sysv
232 ;;
233 amiga)
234 basic_machine=m68k-unknown
235 basic_os=
236 ;;
237 amigaos | amigados)
238 basic_machine=m68k-unknown
239 basic_os=amigaos
240 ;;
241 amigaunix | amix)
242 basic_machine=m68k-unknown
243 basic_os=sysv4
244 ;;
245 apollo68)
246 basic_machine=m68k-apollo
247 basic_os=sysv
248 ;;
249 apollo68bsd)
250 basic_machine=m68k-apollo
251 basic_os=bsd
252 ;;
253 aros)
254 basic_machine=i386-pc
255 basic_os=aros
256 ;;
257 aux)
258 basic_machine=m68k-apple
259 basic_os=aux
260 ;;
261 balance)
262 basic_machine=ns32k-sequent
263 basic_os=dynix
264 ;;
265 blackfin)
266 basic_machine=bfin-unknown
267 basic_os=linux
268 ;;
269 cegcc)
270 basic_machine=arm-unknown
271 basic_os=cegcc
272 ;;
273 convex-c1)
274 basic_machine=c1-convex
275 basic_os=bsd
276 ;;
277 convex-c2)
278 basic_machine=c2-convex
279 basic_os=bsd
280 ;;
281 convex-c32)
282 basic_machine=c32-convex
283 basic_os=bsd
284 ;;
285 convex-c34)
286 basic_machine=c34-convex
287 basic_os=bsd
288 ;;
289 convex-c38)
290 basic_machine=c38-convex
291 basic_os=bsd
292 ;;
293 cray)
294 basic_machine=j90-cray
295 basic_os=unicos
296 ;;
297 crds | unos)
298 basic_machine=m68k-crds
299 basic_os=
300 ;;
301 da30)
302 basic_machine=m68k-da30
303 basic_os=
304 ;;
305 decstation | pmax | pmin | dec3100 | decstatn)
306 basic_machine=mips-dec
307 basic_os=
308 ;;
309 delta88)
310 basic_machine=m88k-motorola
311 basic_os=sysv3
312 ;;
313 dicos)
314 basic_machine=i686-pc
315 basic_os=dicos
316 ;;
317 djgpp)
318 basic_machine=i586-pc
319 basic_os=msdosdjgpp
320 ;;
321 ebmon29k)
322 basic_machine=a29k-amd
323 basic_os=ebmon
324 ;;
325 es1800 | OSE68k | ose68k | ose | OSE)
326 basic_machine=m68k-ericsson
327 basic_os=ose
328 ;;
329 gmicro)
330 basic_machine=tron-gmicro
331 basic_os=sysv
332 ;;
333 go32)
334 basic_machine=i386-pc
335 basic_os=go32
336 ;;
337 h8300hms)
338 basic_machine=h8300-hitachi
339 basic_os=hms
340 ;;
341 h8300xray)
342 basic_machine=h8300-hitachi
343 basic_os=xray
344 ;;
345 h8500hms)
346 basic_machine=h8500-hitachi
347 basic_os=hms
348 ;;
349 harris)
350 basic_machine=m88k-harris
351 basic_os=sysv3
352 ;;
353 hp300 | hp300hpux)
354 basic_machine=m68k-hp
355 basic_os=hpux
356 ;;
357 hp300bsd)
358 basic_machine=m68k-hp
359 basic_os=bsd
360 ;;
361 hppaosf)
362 basic_machine=hppa1.1-hp
363 basic_os=osf
364 ;;
365 hppro)
366 basic_machine=hppa1.1-hp
367 basic_os=proelf
368 ;;
369 i386mach)
370 basic_machine=i386-mach
371 basic_os=mach
372 ;;
373 isi68 | isi)
374 basic_machine=m68k-isi
375 basic_os=sysv
376 ;;
377 m68knommu)
378 basic_machine=m68k-unknown
379 basic_os=linux
380 ;;
381 magnum | m3230)
382 basic_machine=mips-mips
383 basic_os=sysv
384 ;;
385 merlin)
386 basic_machine=ns32k-utek
387 basic_os=sysv
388 ;;
389 mingw64)
390 basic_machine=x86_64-pc
391 basic_os=mingw64
392 ;;
393 mingw32)
394 basic_machine=i686-pc
395 basic_os=mingw32
396 ;;
397 mingw32ce)
398 basic_machine=arm-unknown
399 basic_os=mingw32ce
400 ;;
401 monitor)
402 basic_machine=m68k-rom68k
403 basic_os=coff
404 ;;
405 morphos)
406 basic_machine=powerpc-unknown
407 basic_os=morphos
408 ;;
409 moxiebox)
410 basic_machine=moxie-unknown
411 basic_os=moxiebox
412 ;;
413 msdos)
414 basic_machine=i386-pc
415 basic_os=msdos
416 ;;
417 msys)
418 basic_machine=i686-pc
419 basic_os=msys
420 ;;
421 mvs)
422 basic_machine=i370-ibm
423 basic_os=mvs
424 ;;
425 nacl)
426 basic_machine=le32-unknown
427 basic_os=nacl
428 ;;
429 ncr3000)
430 basic_machine=i486-ncr
431 basic_os=sysv4
432 ;;
433 netbsd386)
434 basic_machine=i386-pc
435 basic_os=netbsd
436 ;;
437 netwinder)
438 basic_machine=armv4l-rebel
439 basic_os=linux
440 ;;
441 news | news700 | news800 | news900)
442 basic_machine=m68k-sony
443 basic_os=newsos
444 ;;
445 news1000)
446 basic_machine=m68030-sony
447 basic_os=newsos
448 ;;
449 necv70)
450 basic_machine=v70-nec
451 basic_os=sysv
452 ;;
453 nh3000)
454 basic_machine=m68k-harris
455 basic_os=cxux
456 ;;
457 nh[45]000)
458 basic_machine=m88k-harris
459 basic_os=cxux
460 ;;
461 nindy960)
462 basic_machine=i960-intel
463 basic_os=nindy
464 ;;
465 mon960)
466 basic_machine=i960-intel
467 basic_os=mon960
468 ;;
469 nonstopux)
470 basic_machine=mips-compaq
471 basic_os=nonstopux
472 ;;
473 os400)
474 basic_machine=powerpc-ibm
475 basic_os=os400
476 ;;
477 OSE68000 | ose68000)
478 basic_machine=m68000-ericsson
479 basic_os=ose
480 ;;
481 os68k)
482 basic_machine=m68k-none
483 basic_os=os68k
484 ;;
485 paragon)
486 basic_machine=i860-intel
487 basic_os=osf
488 ;;
489 parisc)
490 basic_machine=hppa-unknown
491 basic_os=linux
492 ;;
493 psp)
494 basic_machine=mipsallegrexel-sony
495 basic_os=psp
496 ;;
497 pw32)
498 basic_machine=i586-unknown
499 basic_os=pw32
500 ;;
501 rdos | rdos64)
502 basic_machine=x86_64-pc
503 basic_os=rdos
504 ;;
505 rdos32)
506 basic_machine=i386-pc
507 basic_os=rdos
508 ;;
509 rom68k)
510 basic_machine=m68k-rom68k
511 basic_os=coff
512 ;;
513 sa29200)
514 basic_machine=a29k-amd
515 basic_os=udi
516 ;;
517 sei)
518 basic_machine=mips-sei
519 basic_os=seiux
520 ;;
521 sequent)
522 basic_machine=i386-sequent
523 basic_os=
524 ;;
525 sps7)
526 basic_machine=m68k-bull
527 basic_os=sysv2
528 ;;
529 st2000)
530 basic_machine=m68k-tandem
531 basic_os=
532 ;;
533 stratus)
534 basic_machine=i860-stratus
535 basic_os=sysv4
536 ;;
537 sun2)
538 basic_machine=m68000-sun
539 basic_os=
540 ;;
541 sun2os3)
542 basic_machine=m68000-sun
543 basic_os=sunos3
544 ;;
545 sun2os4)
546 basic_machine=m68000-sun
547 basic_os=sunos4
548 ;;
549 sun3)
550 basic_machine=m68k-sun
551 basic_os=
552 ;;
553 sun3os3)
554 basic_machine=m68k-sun
555 basic_os=sunos3
556 ;;
557 sun3os4)
558 basic_machine=m68k-sun
559 basic_os=sunos4
560 ;;
561 sun4)
562 basic_machine=sparc-sun
563 basic_os=
564 ;;
565 sun4os3)
566 basic_machine=sparc-sun
567 basic_os=sunos3
568 ;;
569 sun4os4)
570 basic_machine=sparc-sun
571 basic_os=sunos4
572 ;;
573 sun4sol2)
574 basic_machine=sparc-sun
575 basic_os=solaris2
576 ;;
577 sun386 | sun386i | roadrunner)
578 basic_machine=i386-sun
579 basic_os=
580 ;;
581 sv1)
582 basic_machine=sv1-cray
583 basic_os=unicos
584 ;;
585 symmetry)
586 basic_machine=i386-sequent
587 basic_os=dynix
588 ;;
589 t3e)
590 basic_machine=alphaev5-cray
591 basic_os=unicos
592 ;;
593 t90)
594 basic_machine=t90-cray
595 basic_os=unicos
596 ;;
597 toad1)
598 basic_machine=pdp10-xkl
599 basic_os=tops20
600 ;;
601 tpf)
602 basic_machine=s390x-ibm
603 basic_os=tpf
604 ;;
605 udi29k)
606 basic_machine=a29k-amd
607 basic_os=udi
608 ;;
609 ultra3)
610 basic_machine=a29k-nyu
611 basic_os=sym1
612 ;;
613 v810 | necv810)
614 basic_machine=v810-nec
615 basic_os=none
616 ;;
617 vaxv)
618 basic_machine=vax-dec
619 basic_os=sysv
620 ;;
621 vms)
622 basic_machine=vax-dec
623 basic_os=vms
624 ;;
625 vsta)
626 basic_machine=i386-pc
627 basic_os=vsta
628 ;;
629 vxworks960)
630 basic_machine=i960-wrs
631 basic_os=vxworks
632 ;;
633 vxworks68)
634 basic_machine=m68k-wrs
635 basic_os=vxworks
636 ;;
637 vxworks29k)
638 basic_machine=a29k-wrs
639 basic_os=vxworks
640 ;;
641 xbox)
642 basic_machine=i686-pc
643 basic_os=mingw32
644 ;;
645 ymp)
646 basic_machine=ymp-cray
647 basic_os=unicos
648 ;;
649 *)
650 basic_machine=$1
651 basic_os=
652 ;;
653 esac
654 ;;
655 esac
656
657 # Decode 1-component or ad-hoc basic machines
658 case $basic_machine in
659 # Here we handle the default manufacturer of certain CPU types. It is in
660 # some cases the only manufacturer, in others, it is the most popular.
661 w89k)
662 cpu=hppa1.1
663 vendor=winbond
664 ;;
665 op50n)
666 cpu=hppa1.1
667 vendor=oki
668 ;;
669 op60c)
670 cpu=hppa1.1
671 vendor=oki
672 ;;
673 ibm*)
674 cpu=i370
675 vendor=ibm
676 ;;
677 orion105)
678 cpu=clipper
679 vendor=highlevel
680 ;;
681 mac | mpw | mac-mpw)
682 cpu=m68k
683 vendor=apple
684 ;;
685 pmac | pmac-mpw)
686 cpu=powerpc
687 vendor=apple
688 ;;
689
690 # Recognize the various machine names and aliases which stand
691 # for a CPU type and a company and sometimes even an OS.
692 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
693 cpu=m68000
694 vendor=att
695 ;;
696 3b*)
697 cpu=we32k
698 vendor=att
699 ;;
700 bluegene*)
701 cpu=powerpc
702 vendor=ibm
703 basic_os=cnk
704 ;;
705 decsystem10* | dec10*)
706 cpu=pdp10
707 vendor=dec
708 basic_os=tops10
709 ;;
710 decsystem20* | dec20*)
711 cpu=pdp10
712 vendor=dec
713 basic_os=tops20
714 ;;
715 delta | 3300 | motorola-3300 | motorola-delta \
716 | 3300-motorola | delta-motorola)
717 cpu=m68k
718 vendor=motorola
719 ;;
720 dpx2*)
721 cpu=m68k
722 vendor=bull
723 basic_os=sysv3
724 ;;
725 encore | umax | mmax)
726 cpu=ns32k
727 vendor=encore
728 ;;
729 elxsi)
730 cpu=elxsi
731 vendor=elxsi
732 basic_os=${basic_os:-bsd}
733 ;;
734 fx2800)
735 cpu=i860
736 vendor=alliant
737 ;;
738 genix)
739 cpu=ns32k
740 vendor=ns
741 ;;
742 h3050r* | hiux*)
743 cpu=hppa1.1
744 vendor=hitachi
745 basic_os=hiuxwe2
746 ;;
747 hp3k9[0-9][0-9] | hp9[0-9][0-9])
748 cpu=hppa1.0
749 vendor=hp
750 ;;
751 hp9k2[0-9][0-9] | hp9k31[0-9])
752 cpu=m68000
753 vendor=hp
754 ;;
755 hp9k3[2-9][0-9])
756 cpu=m68k
757 vendor=hp
758 ;;
759 hp9k6[0-9][0-9] | hp6[0-9][0-9])
760 cpu=hppa1.0
761 vendor=hp
762 ;;
763 hp9k7[0-79][0-9] | hp7[0-79][0-9])
764 cpu=hppa1.1
765 vendor=hp
766 ;;
767 hp9k78[0-9] | hp78[0-9])
768 # FIXME: really hppa2.0-hp
769 cpu=hppa1.1
770 vendor=hp
771 ;;
772 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
773 # FIXME: really hppa2.0-hp
774 cpu=hppa1.1
775 vendor=hp
776 ;;
777 hp9k8[0-9][13679] | hp8[0-9][13679])
778 cpu=hppa1.1
779 vendor=hp
780 ;;
781 hp9k8[0-9][0-9] | hp8[0-9][0-9])
782 cpu=hppa1.0
783 vendor=hp
784 ;;
785 i*86v32)
786 cpu=`echo "$1" | sed -e 's/86.*/86/'`
787 vendor=pc
788 basic_os=sysv32
789 ;;
790 i*86v4*)
791 cpu=`echo "$1" | sed -e 's/86.*/86/'`
792 vendor=pc
793 basic_os=sysv4
794 ;;
795 i*86v)
796 cpu=`echo "$1" | sed -e 's/86.*/86/'`
797 vendor=pc
798 basic_os=sysv
799 ;;
800 i*86sol2)
801 cpu=`echo "$1" | sed -e 's/86.*/86/'`
802 vendor=pc
803 basic_os=solaris2
804 ;;
805 j90 | j90-cray)
806 cpu=j90
807 vendor=cray
808 basic_os=${basic_os:-unicos}
809 ;;
810 iris | iris4d)
811 cpu=mips
812 vendor=sgi
813 case $basic_os in
814 irix*)
815 ;;
816 *)
817 basic_os=irix4
818 ;;
819 esac
820 ;;
821 miniframe)
822 cpu=m68000
823 vendor=convergent
824 ;;
825 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
826 cpu=m68k
827 vendor=atari
828 basic_os=mint
829 ;;
830 news-3600 | risc-news)
831 cpu=mips
832 vendor=sony
833 basic_os=newsos
834 ;;
835 next | m*-next)
836 cpu=m68k
837 vendor=next
838 case $basic_os in
839 openstep*)
840 ;;
841 nextstep*)
842 ;;
843 ns2*)
844 basic_os=nextstep2
845 ;;
846 *)
847 basic_os=nextstep3
848 ;;
849 esac
850 ;;
851 np1)
852 cpu=np1
853 vendor=gould
854 ;;
855 op50n-* | op60c-*)
856 cpu=hppa1.1
857 vendor=oki
858 basic_os=proelf
859 ;;
860 pa-hitachi)
861 cpu=hppa1.1
862 vendor=hitachi
863 basic_os=hiuxwe2
864 ;;
865 pbd)
866 cpu=sparc
867 vendor=tti
868 ;;
869 pbb)
870 cpu=m68k
871 vendor=tti
872 ;;
873 pc532)
874 cpu=ns32k
875 vendor=pc532
876 ;;
877 pn)
878 cpu=pn
879 vendor=gould
880 ;;
881 power)
882 cpu=power
883 vendor=ibm
884 ;;
885 ps2)
886 cpu=i386
887 vendor=ibm
888 ;;
889 rm[46]00)
890 cpu=mips
891 vendor=siemens
892 ;;
893 rtpc | rtpc-*)
894 cpu=romp
895 vendor=ibm
896 ;;
897 sde)
898 cpu=mipsisa32
899 vendor=sde
900 basic_os=${basic_os:-elf}
901 ;;
902 simso-wrs)
903 cpu=sparclite
904 vendor=wrs
905 basic_os=vxworks
906 ;;
907 tower | tower-32)
908 cpu=m68k
909 vendor=ncr
910 ;;
911 vpp*|vx|vx-*)
912 cpu=f301
913 vendor=fujitsu
914 ;;
915 w65)
916 cpu=w65
917 vendor=wdc
918 ;;
919 w89k-*)
920 cpu=hppa1.1
921 vendor=winbond
922 basic_os=proelf
923 ;;
924 none)
925 cpu=none
926 vendor=none
927 ;;
928 leon|leon[3-9])
929 cpu=sparc
930 vendor=$basic_machine
931 ;;
932 leon-*|leon[3-9]-*)
933 cpu=sparc
934 vendor=`echo "$basic_machine" | sed 's/-.*//'`
935 ;;
936
937 *-*)
938 # shellcheck disable=SC2162
939 saved_IFS=$IFS
940 IFS="-" read cpu vendor <<EOF
941 $basic_machine
942 EOF
943 IFS=$saved_IFS
944 ;;
945 # We use `pc' rather than `unknown'
946 # because (1) that's what they normally are, and
947 # (2) the word "unknown" tends to confuse beginning users.
948 i*86 | x86_64)
949 cpu=$basic_machine
950 vendor=pc
951 ;;
952 # These rules are duplicated from below for sake of the special case above;
953 # i.e. things that normalized to x86 arches should also default to "pc"
954 pc98)
955 cpu=i386
956 vendor=pc
957 ;;
958 x64 | amd64)
959 cpu=x86_64
960 vendor=pc
961 ;;
962 # Recognize the basic CPU types without company name.
963 *)
964 cpu=$basic_machine
965 vendor=unknown
966 ;;
967 esac
968
969 unset -v basic_machine
970
971 # Decode basic machines in the full and proper CPU-Company form.
972 case $cpu-$vendor in
973 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in
974 # some cases the only manufacturer, in others, it is the most popular.
975 craynv-unknown)
976 vendor=cray
977 basic_os=${basic_os:-unicosmp}
978 ;;
979 c90-unknown | c90-cray)
980 vendor=cray
981 basic_os=${Basic_os:-unicos}
982 ;;
983 fx80-unknown)
984 vendor=alliant
985 ;;
986 romp-unknown)
987 vendor=ibm
988 ;;
989 mmix-unknown)
990 vendor=knuth
991 ;;
992 microblaze-unknown | microblazeel-unknown)
993 vendor=xilinx
994 ;;
995 rs6000-unknown)
996 vendor=ibm
997 ;;
998 vax-unknown)
999 vendor=dec
1000 ;;
1001 pdp11-unknown)
1002 vendor=dec
1003 ;;
1004 we32k-unknown)
1005 vendor=att
1006 ;;
1007 cydra-unknown)
1008 vendor=cydrome
1009 ;;
1010 i370-ibm*)
1011 vendor=ibm
1012 ;;
1013 orion-unknown)
1014 vendor=highlevel
1015 ;;
1016 xps-unknown | xps100-unknown)
1017 cpu=xps100
1018 vendor=honeywell
1019 ;;
1020
1021 # Here we normalize CPU types with a missing or matching vendor
1022 armh-unknown | armh-alt)
1023 cpu=armv7l
1024 vendor=alt
1025 basic_os=${basic_os:-linux-gnueabihf}
1026 ;;
1027 dpx20-unknown | dpx20-bull)
1028 cpu=rs6000
1029 vendor=bull
1030 basic_os=${basic_os:-bosx}
1031 ;;
1032
1033 # Here we normalize CPU types irrespective of the vendor
1034 amd64-*)
1035 cpu=x86_64
1036 ;;
1037 blackfin-*)
1038 cpu=bfin
1039 basic_os=linux
1040 ;;
1041 c54x-*)
1042 cpu=tic54x
1043 ;;
1044 c55x-*)
1045 cpu=tic55x
1046 ;;
1047 c6x-*)
1048 cpu=tic6x
1049 ;;
1050 e500v[12]-*)
1051 cpu=powerpc
1052 basic_os=${basic_os}"spe"
1053 ;;
1054 mips3*-*)
1055 cpu=mips64
1056 ;;
1057 ms1-*)
1058 cpu=mt
1059 ;;
1060 m68knommu-*)
1061 cpu=m68k
1062 basic_os=linux
1063 ;;
1064 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1065 cpu=s12z
1066 ;;
1067 openrisc-*)
1068 cpu=or32
1069 ;;
1070 parisc-*)
1071 cpu=hppa
1072 basic_os=linux
1073 ;;
1074 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1075 cpu=i586
1076 ;;
1077 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1078 cpu=i686
1079 ;;
1080 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1081 cpu=i686
1082 ;;
1083 pentium4-*)
1084 cpu=i786
1085 ;;
1086 pc98-*)
1087 cpu=i386
1088 ;;
1089 ppc-* | ppcbe-*)
1090 cpu=powerpc
1091 ;;
1092 ppcle-* | powerpclittle-*)
1093 cpu=powerpcle
1094 ;;
1095 ppc64-*)
1096 cpu=powerpc64
1097 ;;
1098 ppc64le-* | powerpc64little-*)
1099 cpu=powerpc64le
1100 ;;
1101 sb1-*)
1102 cpu=mipsisa64sb1
1103 ;;
1104 sb1el-*)
1105 cpu=mipsisa64sb1el
1106 ;;
1107 sh5e[lb]-*)
1108 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1109 ;;
1110 spur-*)
1111 cpu=spur
1112 ;;
1113 strongarm-* | thumb-*)
1114 cpu=arm
1115 ;;
1116 tx39-*)
1117 cpu=mipstx39
1118 ;;
1119 tx39el-*)
1120 cpu=mipstx39el
1121 ;;
1122 x64-*)
1123 cpu=x86_64
1124 ;;
1125 xscale-* | xscalee[bl]-*)
1126 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1127 ;;
1128 arm64-* | aarch64le-*)
1129 cpu=aarch64
1130 ;;
1131
1132 # Recognize the canonical CPU Types that limit and/or modify the
1133 # company names they are paired with.
1134 cr16-*)
1135 basic_os=${basic_os:-elf}
1136 ;;
1137 crisv32-* | etraxfs*-*)
1138 cpu=crisv32
1139 vendor=axis
1140 ;;
1141 cris-* | etrax*-*)
1142 cpu=cris
1143 vendor=axis
1144 ;;
1145 crx-*)
1146 basic_os=${basic_os:-elf}
1147 ;;
1148 neo-tandem)
1149 cpu=neo
1150 vendor=tandem
1151 ;;
1152 nse-tandem)
1153 cpu=nse
1154 vendor=tandem
1155 ;;
1156 nsr-tandem)
1157 cpu=nsr
1158 vendor=tandem
1159 ;;
1160 nsv-tandem)
1161 cpu=nsv
1162 vendor=tandem
1163 ;;
1164 nsx-tandem)
1165 cpu=nsx
1166 vendor=tandem
1167 ;;
1168 mipsallegrexel-sony)
1169 cpu=mipsallegrexel
1170 vendor=sony
1171 ;;
1172 tile*-*)
1173 basic_os=${basic_os:-linux-gnu}
1174 ;;
1175
1176 *)
1177 # Recognize the canonical CPU types that are allowed with any
1178 # company name.
1179 case $cpu in
1180 1750a | 580 \
1181 | a29k \
1182 | aarch64 | aarch64_be \
1183 | abacus \
1184 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1185 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1186 | alphapca5[67] | alpha64pca5[67] \
1187 | am33_2.0 \
1188 | amdgcn \
1189 | arc | arceb | arc32 | arc64 \
1190 | arm | arm[lb]e | arme[lb] | armv* \
1191 | avr | avr32 \
1192 | asmjs \
1193 | ba \
1194 | be32 | be64 \
1195 | bfin | bpf | bs2000 \
1196 | c[123]* | c30 | [cjt]90 | c4x \
1197 | c8051 | clipper | craynv | csky | cydra \
1198 | d10v | d30v | dlx | dsp16xx \
1199 | e2k | elxsi | epiphany \
1200 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1201 | h8300 | h8500 \
1202 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1203 | hexagon \
1204 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1205 | ip2k | iq2000 \
1206 | k1om \
1207 | le32 | le64 \
1208 | lm32 \
1209 | loongarch32 | loongarch64 | loongarchx32 \
1210 | m32c | m32r | m32rle \
1211 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
1212 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
1213 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1214 | microblaze | microblazeel \
1215 | mips | mipsbe | mipseb | mipsel | mipsle \
1216 | mips16 \
1217 | mips64 | mips64eb | mips64el \
1218 | mips64octeon | mips64octeonel \
1219 | mips64orion | mips64orionel \
1220 | mips64r5900 | mips64r5900el \
1221 | mips64vr | mips64vrel \
1222 | mips64vr4100 | mips64vr4100el \
1223 | mips64vr4300 | mips64vr4300el \
1224 | mips64vr5000 | mips64vr5000el \
1225 | mips64vr5900 | mips64vr5900el \
1226 | mipsisa32 | mipsisa32el \
1227 | mipsisa32r2 | mipsisa32r2el \
1228 | mipsisa32r3 | mipsisa32r3el \
1229 | mipsisa32r5 | mipsisa32r5el \
1230 | mipsisa32r6 | mipsisa32r6el \
1231 | mipsisa64 | mipsisa64el \
1232 | mipsisa64r2 | mipsisa64r2el \
1233 | mipsisa64r3 | mipsisa64r3el \
1234 | mipsisa64r5 | mipsisa64r5el \
1235 | mipsisa64r6 | mipsisa64r6el \
1236 | mipsisa64sb1 | mipsisa64sb1el \
1237 | mipsisa64sr71k | mipsisa64sr71kel \
1238 | mipsr5900 | mipsr5900el \
1239 | mipstx39 | mipstx39el \
1240 | mmix \
1241 | mn10200 | mn10300 \
1242 | moxie \
1243 | mt \
1244 | msp430 \
1245 | nds32 | nds32le | nds32be \
1246 | nfp \
1247 | nios | nios2 | nios2eb | nios2el \
1248 | none | np1 | ns16k | ns32k | nvptx \
1249 | open8 \
1250 | or1k* \
1251 | or32 \
1252 | orion \
1253 | picochip \
1254 | pdp10 | pdp11 | pj | pjl | pn | power \
1255 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1256 | pru \
1257 | pyramid \
1258 | riscv | riscv32 | riscv32be | riscv64 | riscv64be \
1259 | rl78 | romp | rs6000 | rx \
1260 | s390 | s390x \
1261 | score \
1262 | sh | shl \
1263 | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1264 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1265 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1266 | sparclite \
1267 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1268 | spu \
1269 | tahoe \
1270 | thumbv7* \
1271 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1272 | tron \
1273 | ubicom32 \
1274 | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1275 | vax \
1276 | visium \
1277 | w65 \
1278 | wasm32 | wasm64 \
1279 | we32k \
1280 | x86 | x86_64 | xc16x | xgate | xps100 \
1281 | xstormy16 | xtensa* \
1282 | ymp \
1283 | z8k | z80)
1284 ;;
1285
1286 *)
1287 echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
1288 exit 1
1289 ;;
1290 esac
1291 ;;
1292 esac
1293
1294 # Here we canonicalize certain aliases for manufacturers.
1295 case $vendor in
1296 digital*)
1297 vendor=dec
1298 ;;
1299 commodore*)
1300 vendor=cbm
1301 ;;
1302 *)
1303 ;;
1304 esac
1305
1306 # Decode manufacturer-specific aliases for certain operating systems.
1307
1308 if test x$basic_os != x
1309 then
1310
1311 # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just
1312 # set os.
1313 case $basic_os in
1314 gnu/linux*)
1315 kernel=linux
1316 os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'`
1317 ;;
1318 os2-emx)
1319 kernel=os2
1320 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'`
1321 ;;
1322 nto-qnx*)
1323 kernel=nto
1324 os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'`
1325 ;;
1326 *-*)
1327 # shellcheck disable=SC2162
1328 saved_IFS=$IFS
1329 IFS="-" read kernel os <<EOF
1330 $basic_os
1331 EOF
1332 IFS=$saved_IFS
1333 ;;
1334 # Default OS when just kernel was specified
1335 nto*)
1336 kernel=nto
1337 os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
1338 ;;
1339 linux*)
1340 kernel=linux
1341 os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
1342 ;;
1343 *)
1344 kernel=
1345 os=$basic_os
1346 ;;
1347 esac
1348
1349 # Now, normalize the OS (knowing we just have one component, it's not a kernel,
1350 # etc.)
1351 case $os in
1352 # First match some system type aliases that might get confused
1353 # with valid system types.
1354 # solaris* is a basic system type, with this one exception.
1355 auroraux)
1356 os=auroraux
1357 ;;
1358 bluegene*)
1359 os=cnk
1360 ;;
1361 solaris1 | solaris1.*)
1362 os=`echo "$os" | sed -e 's|solaris1|sunos4|'`
1363 ;;
1364 solaris)
1365 os=solaris2
1366 ;;
1367 unixware*)
1368 os=sysv4.2uw
1369 ;;
1370 # es1800 is here to avoid being matched by es* (a different OS)
1371 es1800*)
1372 os=ose
1373 ;;
1374 # Some version numbers need modification
1375 chorusos*)
1376 os=chorusos
1377 ;;
1378 isc)
1379 os=isc2.2
1380 ;;
1381 sco6)
1382 os=sco5v6
1383 ;;
1384 sco5)
1385 os=sco3.2v5
1386 ;;
1387 sco4)
1388 os=sco3.2v4
1389 ;;
1390 sco3.2.[4-9]*)
1391 os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'`
1392 ;;
1393 sco*v* | scout)
1394 # Don't match below
1395 ;;
1396 sco*)
1397 os=sco3.2v2
1398 ;;
1399 psos*)
1400 os=psos
1401 ;;
1402 qnx*)
1403 os=qnx
1404 ;;
1405 hiux*)
1406 os=hiuxwe2
1407 ;;
1408 lynx*178)
1409 os=lynxos178
1410 ;;
1411 lynx*5)
1412 os=lynxos5
1413 ;;
1414 lynxos*)
1415 # don't get caught up in next wildcard
1416 ;;
1417 lynx*)
1418 os=lynxos
1419 ;;
1420 mac[0-9]*)
1421 os=`echo "$os" | sed -e 's|mac|macos|'`
1422 ;;
1423 opened*)
1424 os=openedition
1425 ;;
1426 os400*)
1427 os=os400
1428 ;;
1429 sunos5*)
1430 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1431 ;;
1432 sunos6*)
1433 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1434 ;;
1435 wince*)
1436 os=wince
1437 ;;
1438 utek*)
1439 os=bsd
1440 ;;
1441 dynix*)
1442 os=bsd
1443 ;;
1444 acis*)
1445 os=aos
1446 ;;
1447 atheos*)
1448 os=atheos
1449 ;;
1450 syllable*)
1451 os=syllable
1452 ;;
1453 386bsd)
1454 os=bsd
1455 ;;
1456 ctix* | uts*)
1457 os=sysv
1458 ;;
1459 nova*)
1460 os=rtmk-nova
1461 ;;
1462 ns2)
1463 os=nextstep2
1464 ;;
1465 # Preserve the version number of sinix5.
1466 sinix5.*)
1467 os=`echo "$os" | sed -e 's|sinix|sysv|'`
1468 ;;
1469 sinix*)
1470 os=sysv4
1471 ;;
1472 tpf*)
1473 os=tpf
1474 ;;
1475 triton*)
1476 os=sysv3
1477 ;;
1478 oss*)
1479 os=sysv3
1480 ;;
1481 svr4*)
1482 os=sysv4
1483 ;;
1484 svr3)
1485 os=sysv3
1486 ;;
1487 sysvr4)
1488 os=sysv4
1489 ;;
1490 ose*)
1491 os=ose
1492 ;;
1493 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1494 os=mint
1495 ;;
1496 dicos*)
1497 os=dicos
1498 ;;
1499 pikeos*)
1500 # Until real need of OS specific support for
1501 # particular features comes up, bare metal
1502 # configurations are quite functional.
1503 case $cpu in
1504 arm*)
1505 os=eabi
1506 ;;
1507 *)
1508 os=elf
1509 ;;
1510 esac
1511 ;;
1512 *)
1513 # No normalization, but not necessarily accepted, that comes below.
1514 ;;
1515 esac
1516
1517 else
1518
1519 # Here we handle the default operating systems that come with various machines.
1520 # The value should be what the vendor currently ships out the door with their
1521 # machine or put another way, the most popular os provided with the machine.
1522
1523 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1524 # "-sun"), then you have to tell the case statement up towards the top
1525 # that MANUFACTURER isn't an operating system. Otherwise, code above
1526 # will signal an error saying that MANUFACTURER isn't an operating
1527 # system, and we'll never get to this point.
1528
1529 kernel=
1530 case $cpu-$vendor in
1531 score-*)
1532 os=elf
1533 ;;
1534 spu-*)
1535 os=elf
1536 ;;
1537 *-acorn)
1538 os=riscix1.2
1539 ;;
1540 arm*-rebel)
1541 kernel=linux
1542 os=gnu
1543 ;;
1544 arm*-semi)
1545 os=aout
1546 ;;
1547 c4x-* | tic4x-*)
1548 os=coff
1549 ;;
1550 c8051-*)
1551 os=elf
1552 ;;
1553 clipper-intergraph)
1554 os=clix
1555 ;;
1556 hexagon-*)
1557 os=elf
1558 ;;
1559 tic54x-*)
1560 os=coff
1561 ;;
1562 tic55x-*)
1563 os=coff
1564 ;;
1565 tic6x-*)
1566 os=coff
1567 ;;
1568 # This must come before the *-dec entry.
1569 pdp10-*)
1570 os=tops20
1571 ;;
1572 pdp11-*)
1573 os=none
1574 ;;
1575 *-dec | vax-*)
1576 os=ultrix4.2
1577 ;;
1578 m68*-apollo)
1579 os=domain
1580 ;;
1581 i386-sun)
1582 os=sunos4.0.2
1583 ;;
1584 m68000-sun)
1585 os=sunos3
1586 ;;
1587 m68*-cisco)
1588 os=aout
1589 ;;
1590 mep-*)
1591 os=elf
1592 ;;
1593 mips*-cisco)
1594 os=elf
1595 ;;
1596 mips*-*)
1597 os=elf
1598 ;;
1599 or32-*)
1600 os=coff
1601 ;;
1602 *-tti) # must be before sparc entry or we get the wrong os.
1603 os=sysv3
1604 ;;
1605 sparc-* | *-sun)
1606 os=sunos4.1.1
1607 ;;
1608 pru-*)
1609 os=elf
1610 ;;
1611 *-be)
1612 os=beos
1613 ;;
1614 *-ibm)
1615 os=aix
1616 ;;
1617 *-knuth)
1618 os=mmixware
1619 ;;
1620 *-wec)
1621 os=proelf
1622 ;;
1623 *-winbond)
1624 os=proelf
1625 ;;
1626 *-oki)
1627 os=proelf
1628 ;;
1629 *-hp)
1630 os=hpux
1631 ;;
1632 *-hitachi)
1633 os=hiux
1634 ;;
1635 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1636 os=sysv
1637 ;;
1638 *-cbm)
1639 os=amigaos
1640 ;;
1641 *-dg)
1642 os=dgux
1643 ;;
1644 *-dolphin)
1645 os=sysv3
1646 ;;
1647 m68k-ccur)
1648 os=rtu
1649 ;;
1650 m88k-omron*)
1651 os=luna
1652 ;;
1653 *-next)
1654 os=nextstep
1655 ;;
1656 *-sequent)
1657 os=ptx
1658 ;;
1659 *-crds)
1660 os=unos
1661 ;;
1662 *-ns)
1663 os=genix
1664 ;;
1665 i370-*)
1666 os=mvs
1667 ;;
1668 *-gould)
1669 os=sysv
1670 ;;
1671 *-highlevel)
1672 os=bsd
1673 ;;
1674 *-encore)
1675 os=bsd
1676 ;;
1677 *-sgi)
1678 os=irix
1679 ;;
1680 *-siemens)
1681 os=sysv4
1682 ;;
1683 *-masscomp)
1684 os=rtu
1685 ;;
1686 f30[01]-fujitsu | f700-fujitsu)
1687 os=uxpv
1688 ;;
1689 *-rom68k)
1690 os=coff
1691 ;;
1692 *-*bug)
1693 os=coff
1694 ;;
1695 *-apple)
1696 os=macos
1697 ;;
1698 *-atari*)
1699 os=mint
1700 ;;
1701 *-wrs)
1702 os=vxworks
1703 ;;
1704 *)
1705 os=none
1706 ;;
1707 esac
1708
1709 fi
1710
1711 # Now, validate our (potentially fixed-up) OS.
1712 case $os in
1713 # Sometimes we do "kernel-libc", so those need to count as OSes.
1714 musl* | newlib* | relibc* | uclibc*)
1715 ;;
1716 # Likewise for "kernel-abi"
1717 eabi* | gnueabi*)
1718 ;;
1719 # VxWorks passes extra cpu info in the 4th filed.
1720 simlinux | simwindows | spe)
1721 ;;
1722 # Now accept the basic system types.
1723 # The portable systems comes first.
1724 # Each alternative MUST end in a * to match a version number.
1725 gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1726 | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
1727 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1728 | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \
1729 | hiux* | abug | nacl* | netware* | windows* \
1730 | os9* | macos* | osx* | ios* \
1731 | mpw* | magic* | mmixware* | mon960* | lnews* \
1732 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1733 | aos* | aros* | cloudabi* | sortix* | twizzler* \
1734 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1735 | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
1736 | mirbsd* | netbsd* | dicos* | openedition* | ose* \
1737 | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \
1738 | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
1739 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1740 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1741 | udi* | lites* | ieee* | go32* | aux* | hcos* \
1742 | chorusrdb* | cegcc* | glidix* | serenity* \
1743 | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
1744 | midipix* | mingw32* | mingw64* | mint* \
1745 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1746 | interix* | uwin* | mks* | rhapsody* | darwin* \
1747 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1748 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1749 | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \
1750 | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \
1751 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1752 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1753 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1754 | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
1755 | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
1756 | fiwix* )
1757 ;;
1758 # This one is extra strict with allowed versions
1759 sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
1760 # Don't forget version if it is 3.2v4 or newer.
1761 ;;
1762 none)
1763 ;;
1764 *)
1765 echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
1766 exit 1
1767 ;;
1768 esac
1769
1770 # As a final step for OS-related things, validate the OS-kernel combination
1771 # (given a valid OS), if there is a kernel.
1772 case $kernel-$os in
1773 linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \
1774 | linux-musl* | linux-relibc* | linux-uclibc* )
1775 ;;
1776 uclinux-uclibc* )
1777 ;;
1778 -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* )
1779 # These are just libc implementations, not actual OSes, and thus
1780 # require a kernel.
1781 echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
1782 exit 1
1783 ;;
1784 kfreebsd*-gnu* | kopensolaris*-gnu*)
1785 ;;
1786 vxworks-simlinux | vxworks-simwindows | vxworks-spe)
1787 ;;
1788 nto-qnx*)
1789 ;;
1790 os2-emx)
1791 ;;
1792 *-eabi* | *-gnueabi*)
1793 ;;
1794 -*)
1795 # Blank kernel with real OS is always fine.
1796 ;;
1797 *-*)
1798 echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
1799 exit 1
1800 ;;
1801 esac
1802
1803 # Here we handle the case where we know the os, and the CPU type, but not the
1804 # manufacturer. We pick the logical manufacturer.
1805 case $vendor in
1806 unknown)
1807 case $cpu-$os in
1808 *-riscix*)
1809 vendor=acorn
1810 ;;
1811 *-sunos*)
1812 vendor=sun
1813 ;;
1814 *-cnk* | *-aix*)
1815 vendor=ibm
1816 ;;
1817 *-beos*)
1818 vendor=be
1819 ;;
1820 *-hpux*)
1821 vendor=hp
1822 ;;
1823 *-mpeix*)
1824 vendor=hp
1825 ;;
1826 *-hiux*)
1827 vendor=hitachi
1828 ;;
1829 *-unos*)
1830 vendor=crds
1831 ;;
1832 *-dgux*)
1833 vendor=dg
1834 ;;
1835 *-luna*)
1836 vendor=omron
1837 ;;
1838 *-genix*)
1839 vendor=ns
1840 ;;
1841 *-clix*)
1842 vendor=intergraph
1843 ;;
1844 *-mvs* | *-opened*)
1845 vendor=ibm
1846 ;;
1847 *-os400*)
1848 vendor=ibm
1849 ;;
1850 s390-* | s390x-*)
1851 vendor=ibm
1852 ;;
1853 *-ptx*)
1854 vendor=sequent
1855 ;;
1856 *-tpf*)
1857 vendor=ibm
1858 ;;
1859 *-vxsim* | *-vxworks* | *-windiss*)
1860 vendor=wrs
1861 ;;
1862 *-aux*)
1863 vendor=apple
1864 ;;
1865 *-hms*)
1866 vendor=hitachi
1867 ;;
1868 *-mpw* | *-macos*)
1869 vendor=apple
1870 ;;
1871 *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
1872 vendor=atari
1873 ;;
1874 *-vos*)
1875 vendor=stratus
1876 ;;
1877 esac
1878 ;;
1879 esac
1880
1881 echo "$cpu-$vendor-${kernel:+$kernel-}$os"
1882 exit
1883
1884 # Local variables:
1885 # eval: (add-hook 'before-save-hook 'time-stamp)
1886 # time-stamp-start: "timestamp='"
1887 # time-stamp-format: "%:y-%02m-%02d"
1888 # time-stamp-end: "'"
1889 # End:
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.71 for i3lock-color 2.13.c.4.
3 #
4 # Report bugs to <https://github.com/Raymo11/i3lock-color/issues>.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 as_nop=:
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else $as_nop
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38
39 # Reset variables that may have inherited troublesome values from
40 # the environment.
41
42 # IFS needs to be set, to space, tab, and newline, in precisely that order.
43 # (If _AS_PATH_WALK were called with IFS unset, it would have the
44 # side effect of setting IFS to empty, thus disabling word splitting.)
45 # Quoting is to prevent editors from complaining about space-tab.
46 as_nl='
47 '
48 export as_nl
49 IFS=" "" $as_nl"
50
51 PS1='$ '
52 PS2='> '
53 PS4='+ '
54
55 # Ensure predictable behavior from utilities with locale-dependent output.
56 LC_ALL=C
57 export LC_ALL
58 LANGUAGE=C
59 export LANGUAGE
60
61 # We cannot yet rely on "unset" to work, but we need these variables
62 # to be unset--not just set to an empty or harmless value--now, to
63 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
64 # also avoids known problems related to "unset" and subshell syntax
65 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
66 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
67 do eval test \${$as_var+y} \
68 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
69 done
70
71 # Ensure that fds 0, 1, and 2 are open.
72 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
73 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
74 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75
76 # The user is always right.
77 if ${PATH_SEPARATOR+false} :; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # Find who we are. Look in the path if we contain no directory separator.
87 as_myself=
88 case $0 in #((
89 *[\\/]* ) as_myself=$0 ;;
90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91 for as_dir in $PATH
92 do
93 IFS=$as_save_IFS
94 case $as_dir in #(((
95 '') as_dir=./ ;;
96 */) ;;
97 *) as_dir=$as_dir/ ;;
98 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115
116 # Use a proper internal environment variable to ensure we don't fall
117 # into an infinite loop, continuously re-executing ourselves.
118 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
119 _as_can_reexec=no; export _as_can_reexec;
120 # We cannot yet assume a decent shell, so we have to provide a
121 # neutralization value for shells without unset; and this also
122 # works around shells that cannot unset nonexistent variables.
123 # Preserve -v and -x to the replacement shell.
124 BASH_ENV=/dev/null
125 ENV=/dev/null
126 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 case $- in # ((((
128 *v*x* | *x*v* ) as_opts=-vx ;;
129 *v* ) as_opts=-v ;;
130 *x* ) as_opts=-x ;;
131 * ) as_opts= ;;
132 esac
133 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
134 # Admittedly, this is quite paranoid, since all the known shells bail
135 # out after a failed `exec'.
136 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
137 exit 255
138 fi
139 # We don't want this to propagate to other subprocesses.
140 { _as_can_reexec=; unset _as_can_reexec;}
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="as_nop=:
143 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else \$as_nop
152 case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac
158 fi
159 "
160 as_required="as_fn_return () { (exit \$1); }
161 as_fn_success () { as_fn_return 0; }
162 as_fn_failure () { as_fn_return 1; }
163 as_fn_ret_success () { return 0; }
164 as_fn_ret_failure () { return 1; }
165
166 exitcode=0
167 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
168 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
169 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
170 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
171 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
172 then :
173
174 else \$as_nop
175 exitcode=1; echo positional parameters were not saved.
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null
187 then :
188 as_have_required=yes
189 else $as_nop
190 as_have_required=no
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
194
195 else $as_nop
196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 as_found=false
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 do
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
208 /*)
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217 then :
218 break 2
219 fi
220 fi
221 done;;
222 esac
223 as_found=false
224 done
225 IFS=$as_save_IFS
226 if $as_found
227 then :
228
229 else $as_nop
230 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi
235 fi
236
237
238 if test "x$CONFIG_SHELL" != x
239 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261 if test x$as_have_required = xno
262 then :
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 printf "%s\n" "$0: Please tell [email protected] and
270 $0: https://github.com/Raymo11/i3lock-color/issues about
271 $0: your system, including any error possibly output before
272 $0: this message. Then install a modern shell, or manually
273 $0: run the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315 # as_fn_nop
316 # ---------
317 # Do nothing but, unlike ":", preserve the value of $?.
318 as_fn_nop ()
319 {
320 return $?
321 }
322 as_nop=as_fn_nop
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
386 then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else $as_nop
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404 then :
405 eval 'as_fn_arith ()
406 {
407 as_val=$(( $* ))
408 }'
409 else $as_nop
410 as_fn_arith ()
411 {
412 as_val=`expr "$@" || test $? -eq 1`
413 }
414 fi # as_fn_arith
415
416 # as_fn_nop
417 # ---------
418 # Do nothing but, unlike ":", preserve the value of $?.
419 as_fn_nop ()
420 {
421 return $?
422 }
423 as_nop=as_fn_nop
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 s/[$]LINENO.*/&-/
498 t lineno
499 b
500 :lineno
501 N
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
509
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
520 }
521
522
523 # Determine whether it's possible to make 'echo' print without a newline.
524 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525 # for compatibility with existing Makefiles.
526 ECHO_C= ECHO_N= ECHO_T=
527 case `echo -n x` in #(((((
528 -n*)
529 case `echo 'xy\c'` in
530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
531 xy) ECHO_C='\c';;
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
533 ECHO_T=' ';;
534 esac;;
535 *)
536 ECHO_N='-n';;
537 esac
538
539 # For backward compatibility with old third-party macros, we provide
540 # the shell variables $as_echo and $as_echo_n. New code should use
541 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542 as_echo='printf %s\n'
543 as_echo_n='printf %s'
544
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
585
586 # Sed expression to map a string onto a valid variable name.
587 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
588
589
590 test -n "$DJDIR" || exec 7<&0 </dev/null
591 exec 6>&1
592
593 # Name of the host.
594 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595 # so uname gets run too.
596 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
597
598 #
599 # Initializations.
600 #
601 ac_default_prefix=/usr/local
602 ac_clean_files=
603 ac_config_libobj_dir=.
604 LIBOBJS=
605 cross_compiling=no
606 subdirs=
607 MFLAGS=
608 MAKEFLAGS=
609
610 # Identity of this package.
611 PACKAGE_NAME='i3lock-color'
612 PACKAGE_TARNAME='i3lock-color'
613 PACKAGE_VERSION='2.13.c.4'
614 PACKAGE_STRING='i3lock-color 2.13.c.4'
615 PACKAGE_BUGREPORT='https://github.com/Raymo11/i3lock-color/issues'
616 PACKAGE_URL=''
617
618 ac_unique_file="i3lock.c"
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_func_c_list=
652 ac_subst_vars='am__EXEEXT_FALSE
653 am__EXEEXT_TRUE
654 LTLIBOBJS
655 ENABLE_ZSH_COMPLETION_FALSE
656 ENABLE_ZSH_COMPLETION_TRUE
657 ZSH_COMPLETION_DIR
658 ZSH_AVAILABLE
659 ENABLE_BASH_COMPLETION_FALSE
660 ENABLE_BASH_COMPLETION_TRUE
661 BASH_COMPLETION_DIR
662 BASH_COMPLETION_LIBS
663 BASH_COMPLETION_CFLAGS
664 AM_CFLAGS
665 ac_ct_AR
666 AR
667 LN_S
668 RANLIB
669 CPP
670 FONTCONFIG_LIBS
671 FONTCONFIG_CFLAGS
672 JPEG_LIBS
673 JPEG_CFLAGS
674 CAIRO_LIBS
675 CAIRO_CFLAGS
676 XKBCOMMON_LIBS
677 XKBCOMMON_CFLAGS
678 XCB_UTIL_XRM_LIBS
679 XCB_UTIL_XRM_CFLAGS
680 XCB_UTIL_LIBS
681 XCB_UTIL_CFLAGS
682 XCB_IMAGE_LIBS
683 XCB_IMAGE_CFLAGS
684 XCB_LIBS
685 XCB_CFLAGS
686 PKG_CONFIG_LIBDIR
687 PKG_CONFIG_PATH
688 PKG_CONFIG
689 LIBOBJS
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 CODE_COVERAGE_RULES
707 CODE_COVERAGE_LDFLAGS
708 CODE_COVERAGE_CXXFLAGS
709 CODE_COVERAGE_CFLAGS
710 CODE_COVERAGE_CPPFLAGS
711 GENHTML
712 LCOV
713 GCOV
714 CODE_COVERAGE_ENABLED
715 CODE_COVERAGE_ENABLED_FALSE
716 CODE_COVERAGE_ENABLED_TRUE
717 SED
718 I3LOCK_VERSION
719 AX_EXTEND_SRCDIR_CPPFLAGS
720 ifGNUmake
721 MAINT
722 MAINTAINER_MODE_FALSE
723 MAINTAINER_MODE_TRUE
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 CSCOPE
729 ETAGS
730 CTAGS
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 ax_enable_builddir_sed
755 target_os
756 target_vendor
757 target_cpu
758 target
759 host_os
760 host_vendor
761 host_cpu
762 host
763 build_os
764 build_vendor
765 build_cpu
766 build
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 runstatedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL
806 am__quote'
807 ac_subst_files=''
808 ac_user_opts='
809 enable_option_checking
810 enable_builddir
811 enable_silent_rules
812 enable_maintainer_mode
813 with_gcov
814 enable_code_coverage
815 enable_debug
816 enable_dependency_tracking
817 with_bash_completion_dir
818 with_zsh_completion_dir
819 enable_sanitizers
820 enable_address_sanitizer
821 enable_memory_sanitizer
822 enable_undefined_sanitizer
823 '
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 PKG_CONFIG
833 PKG_CONFIG_PATH
834 PKG_CONFIG_LIBDIR
835 XCB_CFLAGS
836 XCB_LIBS
837 XCB_IMAGE_CFLAGS
838 XCB_IMAGE_LIBS
839 XCB_UTIL_CFLAGS
840 XCB_UTIL_LIBS
841 XCB_UTIL_XRM_CFLAGS
842 XCB_UTIL_XRM_LIBS
843 XKBCOMMON_CFLAGS
844 XKBCOMMON_LIBS
845 CAIRO_CFLAGS
846 CAIRO_LIBS
847 JPEG_CFLAGS
848 JPEG_LIBS
849 FONTCONFIG_CFLAGS
850 FONTCONFIG_LIBS
851 CPP
852 BASH_COMPLETION_CFLAGS
853 BASH_COMPLETION_LIBS
854 ZSH_AVAILABLE'
855
856
857 # Initialize some variables set by options.
858 ac_init_help=
859 ac_init_version=false
860 ac_unrecognized_opts=
861 ac_unrecognized_sep=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
878
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 runstatedir='${localstatedir}/run'
894 includedir='${prefix}/include'
895 oldincludedir='/usr/include'
896 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir='${datarootdir}/info'
898 htmldir='${docdir}'
899 dvidir='${docdir}'
900 pdfdir='${docdir}'
901 psdir='${docdir}'
902 libdir='${exec_prefix}/lib'
903 localedir='${datarootdir}/locale'
904 mandir='${datarootdir}/man'
905
906 ac_prev=
907 ac_dashdash=
908 for ac_option
909 do
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
913 ac_prev=
914 continue
915 fi
916
917 case $ac_option in
918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 *=) ac_optarg= ;;
920 *) ac_optarg=yes ;;
921 esac
922
923 case $ac_dashdash$ac_option in
924 --)
925 ac_dashdash=yes ;;
926
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 ac_prev=bindir ;;
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930 bindir=$ac_optarg ;;
931
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
936
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
943
944 --config-cache | -C)
945 cache_file=config.cache ;;
946
947 -datadir | --datadir | --datadi | --datad)
948 ac_prev=datadir ;;
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
951
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
958
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: \`$ac_useropt'"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=no ;;
974
975 -docdir | --docdir | --docdi | --doc | --do)
976 ac_prev=docdir ;;
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 docdir=$ac_optarg ;;
979
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 ac_prev=dvidir ;;
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 dvidir=$ac_optarg ;;
984
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: \`$ac_useropt'"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
993 *"
994 "enable_$ac_useropt"
995 "*) ;;
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
998 esac
999 eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1009
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1012 with_gas=yes ;;
1013
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1020
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1025
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 ac_prev=htmldir ;;
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 | --ht=*)
1030 htmldir=$ac_optarg ;;
1031
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1038
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 ac_prev=infodir ;;
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1043
1044 -libdir | --libdir | --libdi | --libd)
1045 ac_prev=libdir ;;
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1048
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1055
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1060
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1067
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 ac_prev=mandir ;;
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1072
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1075 with_fp=no ;;
1076
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1079 no_create=yes ;;
1080
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083 no_recursion=yes ;;
1084
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1093
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 ac_prev=prefix ;;
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1098
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1105
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1112
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1129
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 ac_prev=pdfdir ;;
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1134
1135 -psdir | --psdir | --psdi | --psd | --ps)
1136 ac_prev=psdir ;;
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138 psdir=$ac_optarg ;;
1139
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1142 silent=yes ;;
1143
1144 -runstatedir | --runstatedir | --runstatedi | --runstated \
1145 | --runstate | --runstat | --runsta | --runst | --runs \
1146 | --run | --ru | --r)
1147 ac_prev=runstatedir ;;
1148 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1149 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1150 | --run=* | --ru=* | --r=*)
1151 runstatedir=$ac_optarg ;;
1152
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 ac_prev=sbindir ;;
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 | --sbi=* | --sb=*)
1157 sbindir=$ac_optarg ;;
1158
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1162 | --sha | --sh)
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 | --sha=* | --sh=*)
1168 sharedstatedir=$ac_optarg ;;
1169
1170 -site | --site | --sit)
1171 ac_prev=site ;;
1172 -site=* | --site=* | --sit=*)
1173 site=$ac_optarg ;;
1174
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 ac_prev=srcdir ;;
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1179
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1186
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1191
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 verbose=yes ;;
1194
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1197
1198 -with-* | --with-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: \`$ac_useropt'"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=\$ac_optarg ;;
1213
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: \`$ac_useropt'"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=no ;;
1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249 Try \`$0 --help' for more information"
1250 ;;
1251
1252 *=*)
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 case $ac_envvar in #(
1256 '' | [0-9]* | *[!_$as_cr_alnum]* )
1257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258 esac
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 ;;
1269
1270 esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 as_fn_error $? "missing argument to $ac_option"
1276 fi
1277
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1280 no) ;;
1281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 esac
1284 fi
1285
1286 # Check all directory arguments for consistency.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir runstatedir
1291 do
1292 eval ac_val=\$$ac_var
1293 # Remove trailing slashes.
1294 case $ac_val in
1295 */ )
1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297 eval $ac_var=\$ac_val;;
1298 esac
1299 # Be sure to have absolute directory names.
1300 case $ac_val in
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 esac
1304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 done
1306
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1310 build=$build_alias
1311 host=$host_alias
1312 target=$target_alias
1313
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 elif test "x$build_alias" != "x$host_alias"; then
1319 cross_compiling=yes
1320 fi
1321 fi
1322
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326 test "$silent" = yes && exec 6>/dev/null
1327
1328
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 as_fn_error $? "pwd does not report name of working directory"
1335
1336
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$as_myself" : 'X\(//\)[^/]' \| \
1344 X"$as_myself" : 'X\(//\)$' \| \
1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 printf "%s\n" X"$as_myself" |
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)[^/].*/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)$/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\).*/{
1360 s//\1/
1361 q
1362 }
1363 s/.*/./; q'`
1364 srcdir=$ac_confdir
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 srcdir=..
1367 fi
1368 else
1369 ac_srcdir_defaulted=no
1370 fi
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378 pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1402 cat <<_ACEOF
1403 \`configure' configures i3lock-color 2.13.c.4 to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking ...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/i3lock-color]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1458
1459 cat <<\_ACEOF
1460
1461 Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 --target=TARGET configure for building compilers for TARGET [HOST]
1470 _ACEOF
1471 fi
1472
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of i3lock-color 2.13.c.4:";;
1476 esac
1477 cat <<\_ACEOF
1478
1479 Optional Features:
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --disable-builddir disable automatic build in subdir of sources
1484
1485 --enable-silent-rules less verbose build output (undo: "make V=1")
1486 --disable-silent-rules verbose build output (undo: "make V=0")
1487 --disable-maintainer-mode
1488 disable make rules and dependencies not useful (and
1489 sometimes confusing) to the casual installer
1490 --enable-code-coverage Whether to enable code coverage support
1491 --enable-debug=[yes/info/profile/no]
1492 compile with debugging
1493 --enable-dependency-tracking
1494 do not reject slow dependency extractors
1495 --disable-dependency-tracking
1496 speeds up one-time build
1497 --enable-sanitizers enable all known sanitizers
1498 --enable-address-sanitizer
1499 enable -fsanitize=address
1500 --enable-memory-sanitizer
1501 enable -fsanitize=memory
1502 --enable-undefined-sanitizer
1503 enable -fsanitize=undefined
1504
1505 Optional Packages:
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1509 --with-bash-completion-dir=PATH
1510 Install the bash auto-completion script in this
1511 directory. [default=yes]
1512 --with-zsh-completion-dir=PATH
1513 Install the zsh auto-completion script in this
1514 directory. [default=yes]
1515
1516 Some influential environment variables:
1517 CC C compiler command
1518 CFLAGS C compiler flags
1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1520 nonstandard directory <lib dir>
1521 LIBS libraries to pass to the linker, e.g. -l<library>
1522 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1523 you have headers in a nonstandard directory <include dir>
1524 PKG_CONFIG path to pkg-config utility
1525 PKG_CONFIG_PATH
1526 directories to add to pkg-config's search path
1527 PKG_CONFIG_LIBDIR
1528 path overriding pkg-config's built-in search path
1529 XCB_CFLAGS C compiler flags for XCB, overriding pkg-config
1530 XCB_LIBS linker flags for XCB, overriding pkg-config
1531 XCB_IMAGE_CFLAGS
1532 C compiler flags for XCB_IMAGE, overriding pkg-config
1533 XCB_IMAGE_LIBS
1534 linker flags for XCB_IMAGE, overriding pkg-config
1535 XCB_UTIL_CFLAGS
1536 C compiler flags for XCB_UTIL, overriding pkg-config
1537 XCB_UTIL_LIBS
1538 linker flags for XCB_UTIL, overriding pkg-config
1539 XCB_UTIL_XRM_CFLAGS
1540 C compiler flags for XCB_UTIL_XRM, overriding pkg-config
1541 XCB_UTIL_XRM_LIBS
1542 linker flags for XCB_UTIL_XRM, overriding pkg-config
1543 XKBCOMMON_CFLAGS
1544 C compiler flags for XKBCOMMON, overriding pkg-config
1545 XKBCOMMON_LIBS
1546 linker flags for XKBCOMMON, overriding pkg-config
1547 CAIRO_CFLAGS
1548 C compiler flags for CAIRO, overriding pkg-config
1549 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1550 JPEG_CFLAGS C compiler flags for JPEG, overriding pkg-config
1551 JPEG_LIBS linker flags for JPEG, overriding pkg-config
1552 FONTCONFIG_CFLAGS
1553 C compiler flags for FONTCONFIG, overriding pkg-config
1554 FONTCONFIG_LIBS
1555 linker flags for FONTCONFIG, overriding pkg-config
1556 CPP C preprocessor
1557 BASH_COMPLETION_CFLAGS
1558 C compiler flags for BASH_COMPLETION, overriding pkg-config
1559 BASH_COMPLETION_LIBS
1560 linker flags for BASH_COMPLETION, overriding pkg-config
1561 ZSH_AVAILABLE
1562
1563
1564 Use these variables to override the choices made by `configure' or to help
1565 it to find libraries and programs with nonstandard names/locations.
1566
1567 Report bugs to <https://github.com/Raymo11/i3lock-color/issues>.
1568 _ACEOF
1569 ac_status=$?
1570 fi
1571
1572 if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577 continue
1578 ac_builddir=.
1579
1580 case "$ac_dir" in
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *)
1583 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589 esac ;;
1590 esac
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1595
1596 case $srcdir in
1597 .) # We are building in place.
1598 ac_srcdir=.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1605 *) # Relative name.
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 esac
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for configure.gnu first; this name is used for a wrapper for
1614 # Metaconfig's "Configure" on case-insensitive file systems.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1619 echo &&
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1621 else
1622 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 fi || ac_status=$?
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1625 done
1626 fi
1627
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1630 cat <<\_ACEOF
1631 i3lock-color configure 2.13.c.4
1632 generated by GNU Autoconf 2.71
1633
1634 Copyright (C) 2021 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1637 _ACEOF
1638 exit
1639 fi
1640
1641 ## ------------------------ ##
1642 ## Autoconf initialization. ##
1643 ## ------------------------ ##
1644
1645 # ac_fn_c_try_compile LINENO
1646 # --------------------------
1647 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_compile ()
1649 {
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext conftest.beam
1652 if { { ac_try="$ac_compile"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 printf "%s\n" "$ac_try_echo"; } >&5
1659 (eval "$ac_compile") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1665 fi
1666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest.$ac_objext
1671 then :
1672 ac_retval=0
1673 else $as_nop
1674 printf "%s\n" "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678 fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_compile
1683
1684 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685 # -------------------------------------------------------
1686 # Tests whether HEADER exists and can be compiled using the include files in
1687 # INCLUDES, setting the cache variable VAR accordingly.
1688 ac_fn_c_check_header_compile ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 printf %s "checking for $2... " >&6; }
1693 if eval test \${$3+y}
1694 then :
1695 printf %s "(cached) " >&6
1696 else $as_nop
1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h. */
1699 $4
1700 #include <$2>
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"
1703 then :
1704 eval "$3=yes"
1705 else $as_nop
1706 eval "$3=no"
1707 fi
1708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1709 fi
1710 eval ac_res=\$$3
1711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 printf "%s\n" "$ac_res" >&6; }
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714
1715 } # ac_fn_c_check_header_compile
1716
1717 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1718 # -------------------------------------------
1719 # Tests whether TYPE exists after having included INCLUDES, setting cache
1720 # variable VAR accordingly.
1721 ac_fn_c_check_type ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 printf %s "checking for $2... " >&6; }
1726 if eval test \${$3+y}
1727 then :
1728 printf %s "(cached) " >&6
1729 else $as_nop
1730 eval "$3=no"
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 $4
1734 int
1735 main (void)
1736 {
1737 if (sizeof ($2))
1738 return 0;
1739 ;
1740 return 0;
1741 }
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"
1744 then :
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 $4
1748 int
1749 main (void)
1750 {
1751 if (sizeof (($2)))
1752 return 0;
1753 ;
1754 return 0;
1755 }
1756 _ACEOF
1757 if ac_fn_c_try_compile "$LINENO"
1758 then :
1759
1760 else $as_nop
1761 eval "$3=yes"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1766 fi
1767 eval ac_res=\$$3
1768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 printf "%s\n" "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772 } # ac_fn_c_check_type
1773
1774 # ac_fn_c_try_link LINENO
1775 # -----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_link ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1781 if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 printf "%s\n" "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest$ac_exeext && {
1800 test "$cross_compiling" = yes ||
1801 test -x conftest$ac_exeext
1802 }
1803 then :
1804 ac_retval=0
1805 else $as_nop
1806 printf "%s\n" "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=1
1810 fi
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_link
1820
1821 # ac_fn_c_check_func LINENO FUNC VAR
1822 # ----------------------------------
1823 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1824 ac_fn_c_check_func ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 printf %s "checking for $2... " >&6; }
1829 if eval test \${$3+y}
1830 then :
1831 printf %s "(cached) " >&6
1832 else $as_nop
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1835 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1837 #define $2 innocuous_$2
1838
1839 /* System header to define __stub macros and hopefully few prototypes,
1840 which can conflict with char $2 (); below. */
1841
1842 #include <limits.h>
1843 #undef $2
1844
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1848 #ifdef __cplusplus
1849 extern "C"
1850 #endif
1851 char $2 ();
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1856 choke me
1857 #endif
1858
1859 int
1860 main (void)
1861 {
1862 return $2 ();
1863 ;
1864 return 0;
1865 }
1866 _ACEOF
1867 if ac_fn_c_try_link "$LINENO"
1868 then :
1869 eval "$3=yes"
1870 else $as_nop
1871 eval "$3=no"
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1874 conftest$ac_exeext conftest.$ac_ext
1875 fi
1876 eval ac_res=\$$3
1877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 printf "%s\n" "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881 } # ac_fn_c_check_func
1882
1883 # ac_fn_c_try_run LINENO
1884 # ----------------------
1885 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1886 # executables *can* be run.
1887 ac_fn_c_try_run ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_link"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 printf "%s\n" "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>&5
1898 ac_status=$?
1899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1901 { { case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 printf "%s\n" "$ac_try_echo"; } >&5
1907 (eval "$ac_try") 2>&5
1908 ac_status=$?
1909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; }; }
1911 then :
1912 ac_retval=0
1913 else $as_nop
1914 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1915 printf "%s\n" "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=$ac_status
1919 fi
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1923
1924 } # ac_fn_c_try_run
1925
1926 # ac_fn_c_try_cpp LINENO
1927 # ----------------------
1928 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_c_try_cpp ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_cpp conftest.$ac_ext"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 printf "%s\n" "$ac_try_echo"; } >&5
1939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1945 fi
1946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } > conftest.i && {
1948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1950 }
1951 then :
1952 ac_retval=0
1953 else $as_nop
1954 printf "%s\n" "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1956
1957 ac_retval=1
1958 fi
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 as_fn_set_status $ac_retval
1961
1962 } # ac_fn_c_try_cpp
1963 ac_configure_args_raw=
1964 for ac_arg
1965 do
1966 case $ac_arg in
1967 *\'*)
1968 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969 esac
1970 as_fn_append ac_configure_args_raw " '$ac_arg'"
1971 done
1972
1973 case $ac_configure_args_raw in
1974 *$as_nl*)
1975 ac_safe_unquote= ;;
1976 *)
1977 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1978 ac_unsafe_a="$ac_unsafe_z#~"
1979 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1980 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1981 esac
1982
1983 cat >config.log <<_ACEOF
1984 This file contains any messages produced by compilers while
1985 running configure, to aid debugging if configure makes a mistake.
1986
1987 It was created by i3lock-color $as_me 2.13.c.4, which was
1988 generated by GNU Autoconf 2.71. Invocation command line was
1989
1990 $ $0$ac_configure_args_raw
1991
1992 _ACEOF
1993 exec 5>>config.log
1994 {
1995 cat <<_ASUNAME
1996 ## --------- ##
1997 ## Platform. ##
1998 ## --------- ##
1999
2000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2005
2006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2008
2009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2012 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2016
2017 _ASUNAME
2018
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022 IFS=$as_save_IFS
2023 case $as_dir in #(((
2024 '') as_dir=./ ;;
2025 */) ;;
2026 *) as_dir=$as_dir/ ;;
2027 esac
2028 printf "%s\n" "PATH: $as_dir"
2029 done
2030 IFS=$as_save_IFS
2031
2032 } >&5
2033
2034 cat >&5 <<_ACEOF
2035
2036
2037 ## ----------- ##
2038 ## Core tests. ##
2039 ## ----------- ##
2040
2041 _ACEOF
2042
2043
2044 # Keep a trace of the command line.
2045 # Strip out --no-create and --no-recursion so they do not pile up.
2046 # Strip out --silent because we don't want to record it for future runs.
2047 # Also quote any args containing shell meta-characters.
2048 # Make two passes to allow for proper duplicate-argument suppression.
2049 ac_configure_args=
2050 ac_configure_args0=
2051 ac_configure_args1=
2052 ac_must_keep_next=false
2053 for ac_pass in 1 2
2054 do
2055 for ac_arg
2056 do
2057 case $ac_arg in
2058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2060 | -silent | --silent | --silen | --sile | --sil)
2061 continue ;;
2062 *\'*)
2063 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2064 esac
2065 case $ac_pass in
2066 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2067 2)
2068 as_fn_append ac_configure_args1 " '$ac_arg'"
2069 if test $ac_must_keep_next = true; then
2070 ac_must_keep_next=false # Got value, back to normal.
2071 else
2072 case $ac_arg in
2073 *=* | --config-cache | -C | -disable-* | --disable-* \
2074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2076 | -with-* | --with-* | -without-* | --without-* | --x)
2077 case "$ac_configure_args0 " in
2078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2079 esac
2080 ;;
2081 -* ) ac_must_keep_next=true ;;
2082 esac
2083 fi
2084 as_fn_append ac_configure_args " '$ac_arg'"
2085 ;;
2086 esac
2087 done
2088 done
2089 { ac_configure_args0=; unset ac_configure_args0;}
2090 { ac_configure_args1=; unset ac_configure_args1;}
2091
2092 # When interrupted or exit'd, cleanup temporary files, and complete
2093 # config.log. We remove comments because anyway the quotes in there
2094 # would cause problems or look ugly.
2095 # WARNING: Use '\'' to represent an apostrophe within the trap.
2096 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2097 trap 'exit_status=$?
2098 # Sanitize IFS.
2099 IFS=" "" $as_nl"
2100 # Save into config.log some information that might help in debugging.
2101 {
2102 echo
2103
2104 printf "%s\n" "## ---------------- ##
2105 ## Cache variables. ##
2106 ## ---------------- ##"
2107 echo
2108 # The following way of writing the cache mishandles newlines in values,
2109 (
2110 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2111 eval ac_val=\$$ac_var
2112 case $ac_val in #(
2113 *${as_nl}*)
2114 case $ac_var in #(
2115 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2116 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2117 esac
2118 case $ac_var in #(
2119 _ | IFS | as_nl) ;; #(
2120 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2121 *) { eval $ac_var=; unset $ac_var;} ;;
2122 esac ;;
2123 esac
2124 done
2125 (set) 2>&1 |
2126 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2127 *${as_nl}ac_space=\ *)
2128 sed -n \
2129 "s/'\''/'\''\\\\'\'''\''/g;
2130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2131 ;; #(
2132 *)
2133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2134 ;;
2135 esac |
2136 sort
2137 )
2138 echo
2139
2140 printf "%s\n" "## ----------------- ##
2141 ## Output variables. ##
2142 ## ----------------- ##"
2143 echo
2144 for ac_var in $ac_subst_vars
2145 do
2146 eval ac_val=\$$ac_var
2147 case $ac_val in
2148 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2149 esac
2150 printf "%s\n" "$ac_var='\''$ac_val'\''"
2151 done | sort
2152 echo
2153
2154 if test -n "$ac_subst_files"; then
2155 printf "%s\n" "## ------------------- ##
2156 ## File substitutions. ##
2157 ## ------------------- ##"
2158 echo
2159 for ac_var in $ac_subst_files
2160 do
2161 eval ac_val=\$$ac_var
2162 case $ac_val in
2163 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164 esac
2165 printf "%s\n" "$ac_var='\''$ac_val'\''"
2166 done | sort
2167 echo
2168 fi
2169
2170 if test -s confdefs.h; then
2171 printf "%s\n" "## ----------- ##
2172 ## confdefs.h. ##
2173 ## ----------- ##"
2174 echo
2175 cat confdefs.h
2176 echo
2177 fi
2178 test "$ac_signal" != 0 &&
2179 printf "%s\n" "$as_me: caught signal $ac_signal"
2180 printf "%s\n" "$as_me: exit $exit_status"
2181 } >&5
2182 rm -f core *.core core.conftest.* &&
2183 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2184 exit $exit_status
2185 ' 0
2186 for ac_signal in 1 2 13 15; do
2187 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2188 done
2189 ac_signal=0
2190
2191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2192 rm -f -r conftest* confdefs.h
2193
2194 printf "%s\n" "/* confdefs.h */" > confdefs.h
2195
2196 # Predefined preprocessor variables.
2197
2198 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2199
2200 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2201
2202 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2203
2204 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2205
2206 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2207
2208 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2209
2210
2211 # Let the site file select an alternate cache file if it wants to.
2212 # Prefer an explicitly selected file to automatically selected ones.
2213 if test -n "$CONFIG_SITE"; then
2214 ac_site_files="$CONFIG_SITE"
2215 elif test "x$prefix" != xNONE; then
2216 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2217 else
2218 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2219 fi
2220
2221 for ac_site_file in $ac_site_files
2222 do
2223 case $ac_site_file in #(
2224 */*) :
2225 ;; #(
2226 *) :
2227 ac_site_file=./$ac_site_file ;;
2228 esac
2229 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2231 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2232 sed 's/^/| /' "$ac_site_file" >&5
2233 . "$ac_site_file" \
2234 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2236 as_fn_error $? "failed to load site script $ac_site_file
2237 See \`config.log' for more details" "$LINENO" 5; }
2238 fi
2239 done
2240
2241 if test -r "$cache_file"; then
2242 # Some versions of bash will fail to source /dev/null (special files
2243 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2244 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2246 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2247 case $cache_file in
2248 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2249 *) . "./$cache_file";;
2250 esac
2251 fi
2252 else
2253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2254 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2255 >$cache_file
2256 fi
2257
2258 # Test code for whether the C compiler supports C89 (global declarations)
2259 ac_c_conftest_c89_globals='
2260 /* Does the compiler advertise C89 conformance?
2261 Do not test the value of __STDC__, because some compilers set it to 0
2262 while being otherwise adequately conformant. */
2263 #if !defined __STDC__
2264 # error "Compiler does not advertise C89 conformance"
2265 #endif
2266
2267 #include <stddef.h>
2268 #include <stdarg.h>
2269 struct stat;
2270 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2271 struct buf { int x; };
2272 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2273 static char *e (p, i)
2274 char **p;
2275 int i;
2276 {
2277 return p[i];
2278 }
2279 static char *f (char * (*g) (char **, int), char **p, ...)
2280 {
2281 char *s;
2282 va_list v;
2283 va_start (v,p);
2284 s = g (p, va_arg (v,int));
2285 va_end (v);
2286 return s;
2287 }
2288
2289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2290 function prototypes and stuff, but not \xHH hex character constants.
2291 These do not provoke an error unfortunately, instead are silently treated
2292 as an "x". The following induces an error, until -std is added to get
2293 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2294 array size at least. It is necessary to write \x00 == 0 to get something
2295 that is true only with -std. */
2296 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2297
2298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2299 inside strings and character constants. */
2300 #define FOO(x) '\''x'\''
2301 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2302
2303 int test (int i, double x);
2304 struct s1 {int (*f) (int a);};
2305 struct s2 {int (*f) (double a);};
2306 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2307 int, int);'
2308
2309 # Test code for whether the C compiler supports C89 (body of main).
2310 ac_c_conftest_c89_main='
2311 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2312 '
2313
2314 # Test code for whether the C compiler supports C99 (global declarations)
2315 ac_c_conftest_c99_globals='
2316 // Does the compiler advertise C99 conformance?
2317 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2318 # error "Compiler does not advertise C99 conformance"
2319 #endif
2320
2321 #include <stdbool.h>
2322 extern int puts (const char *);
2323 extern int printf (const char *, ...);
2324 extern int dprintf (int, const char *, ...);
2325 extern void *malloc (size_t);
2326
2327 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2328 // dprintf is used instead of fprintf to avoid needing to declare
2329 // FILE and stderr.
2330 #define debug(...) dprintf (2, __VA_ARGS__)
2331 #define showlist(...) puts (#__VA_ARGS__)
2332 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2333 static void
2334 test_varargs_macros (void)
2335 {
2336 int x = 1234;
2337 int y = 5678;
2338 debug ("Flag");
2339 debug ("X = %d\n", x);
2340 showlist (The first, second, and third items.);
2341 report (x>y, "x is %d but y is %d", x, y);
2342 }
2343
2344 // Check long long types.
2345 #define BIG64 18446744073709551615ull
2346 #define BIG32 4294967295ul
2347 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2348 #if !BIG_OK
2349 #error "your preprocessor is broken"
2350 #endif
2351 #if BIG_OK
2352 #else
2353 #error "your preprocessor is broken"
2354 #endif
2355 static long long int bignum = -9223372036854775807LL;
2356 static unsigned long long int ubignum = BIG64;
2357
2358 struct incomplete_array
2359 {
2360 int datasize;
2361 double data[];
2362 };
2363
2364 struct named_init {
2365 int number;
2366 const wchar_t *name;
2367 double average;
2368 };
2369
2370 typedef const char *ccp;
2371
2372 static inline int
2373 test_restrict (ccp restrict text)
2374 {
2375 // See if C++-style comments work.
2376 // Iterate through items via the restricted pointer.
2377 // Also check for declarations in for loops.
2378 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2379 continue;
2380 return 0;
2381 }
2382
2383 // Check varargs and va_copy.
2384 static bool
2385 test_varargs (const char *format, ...)
2386 {
2387 va_list args;
2388 va_start (args, format);
2389 va_list args_copy;
2390 va_copy (args_copy, args);
2391
2392 const char *str = "";
2393 int number = 0;
2394 float fnumber = 0;
2395
2396 while (*format)
2397 {
2398 switch (*format++)
2399 {
2400 case '\''s'\'': // string
2401 str = va_arg (args_copy, const char *);
2402 break;
2403 case '\''d'\'': // int
2404 number = va_arg (args_copy, int);
2405 break;
2406 case '\''f'\'': // float
2407 fnumber = va_arg (args_copy, double);
2408 break;
2409 default:
2410 break;
2411 }
2412 }
2413 va_end (args_copy);
2414 va_end (args);
2415
2416 return *str && number && fnumber;
2417 }
2418 '
2419
2420 # Test code for whether the C compiler supports C99 (body of main).
2421 ac_c_conftest_c99_main='
2422 // Check bool.
2423 _Bool success = false;
2424 success |= (argc != 0);
2425
2426 // Check restrict.
2427 if (test_restrict ("String literal") == 0)
2428 success = true;
2429 char *restrict newvar = "Another string";
2430
2431 // Check varargs.
2432 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2433 test_varargs_macros ();
2434
2435 // Check flexible array members.
2436 struct incomplete_array *ia =
2437 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2438 ia->datasize = 10;
2439 for (int i = 0; i < ia->datasize; ++i)
2440 ia->data[i] = i * 1.234;
2441
2442 // Check named initializers.
2443 struct named_init ni = {
2444 .number = 34,
2445 .name = L"Test wide string",
2446 .average = 543.34343,
2447 };
2448
2449 ni.number = 58;
2450
2451 int dynamic_array[ni.number];
2452 dynamic_array[0] = argv[0][0];
2453 dynamic_array[ni.number - 1] = 543;
2454
2455 // work around unused variable warnings
2456 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2457 || dynamic_array[ni.number - 1] != 543);
2458 '
2459
2460 # Test code for whether the C compiler supports C11 (global declarations)
2461 ac_c_conftest_c11_globals='
2462 // Does the compiler advertise C11 conformance?
2463 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2464 # error "Compiler does not advertise C11 conformance"
2465 #endif
2466
2467 // Check _Alignas.
2468 char _Alignas (double) aligned_as_double;
2469 char _Alignas (0) no_special_alignment;
2470 extern char aligned_as_int;
2471 char _Alignas (0) _Alignas (int) aligned_as_int;
2472
2473 // Check _Alignof.
2474 enum
2475 {
2476 int_alignment = _Alignof (int),
2477 int_array_alignment = _Alignof (int[100]),
2478 char_alignment = _Alignof (char)
2479 };
2480 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2481
2482 // Check _Noreturn.
2483 int _Noreturn does_not_return (void) { for (;;) continue; }
2484
2485 // Check _Static_assert.
2486 struct test_static_assert
2487 {
2488 int x;
2489 _Static_assert (sizeof (int) <= sizeof (long int),
2490 "_Static_assert does not work in struct");
2491 long int y;
2492 };
2493
2494 // Check UTF-8 literals.
2495 #define u8 syntax error!
2496 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2497
2498 // Check duplicate typedefs.
2499 typedef long *long_ptr;
2500 typedef long int *long_ptr;
2501 typedef long_ptr long_ptr;
2502
2503 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2504 struct anonymous
2505 {
2506 union {
2507 struct { int i; int j; };
2508 struct { int k; long int l; } w;
2509 };
2510 int m;
2511 } v1;
2512 '
2513
2514 # Test code for whether the C compiler supports C11 (body of main).
2515 ac_c_conftest_c11_main='
2516 _Static_assert ((offsetof (struct anonymous, i)
2517 == offsetof (struct anonymous, w.k)),
2518 "Anonymous union alignment botch");
2519 v1.i = 2;
2520 v1.w.k = 5;
2521 ok |= v1.i != 5;
2522 '
2523
2524 # Test code for whether the C compiler supports C11 (complete).
2525 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2526 ${ac_c_conftest_c99_globals}
2527 ${ac_c_conftest_c11_globals}
2528
2529 int
2530 main (int argc, char **argv)
2531 {
2532 int ok = 0;
2533 ${ac_c_conftest_c89_main}
2534 ${ac_c_conftest_c99_main}
2535 ${ac_c_conftest_c11_main}
2536 return ok;
2537 }
2538 "
2539
2540 # Test code for whether the C compiler supports C99 (complete).
2541 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2542 ${ac_c_conftest_c99_globals}
2543
2544 int
2545 main (int argc, char **argv)
2546 {
2547 int ok = 0;
2548 ${ac_c_conftest_c89_main}
2549 ${ac_c_conftest_c99_main}
2550 return ok;
2551 }
2552 "
2553
2554 # Test code for whether the C compiler supports C89 (complete).
2555 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2556
2557 int
2558 main (int argc, char **argv)
2559 {
2560 int ok = 0;
2561 ${ac_c_conftest_c89_main}
2562 return ok;
2563 }
2564 "
2565
2566 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2567 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2568 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2569 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2570 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2571 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2572 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2573 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2574 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2575 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2576 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2577 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2578 as_fn_append ac_func_c_list " fork HAVE_FORK"
2579 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2580
2581 # Auxiliary files required by this configure script.
2582 ac_aux_files="ar-lib compile missing install-sh config.guess config.sub"
2583
2584 # Locations in which to look for auxiliary files.
2585 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2586
2587 # Search for a directory containing all of the required auxiliary files,
2588 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2589 # If we don't find one directory that contains all the files we need,
2590 # we report the set of missing files from the *first* directory in
2591 # $ac_aux_dir_candidates and give up.
2592 ac_missing_aux_files=""
2593 ac_first_candidate=:
2594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 as_found=false
2597 for as_dir in $ac_aux_dir_candidates
2598 do
2599 IFS=$as_save_IFS
2600 case $as_dir in #(((
2601 '') as_dir=./ ;;
2602 */) ;;
2603 *) as_dir=$as_dir/ ;;
2604 esac
2605 as_found=:
2606
2607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2608 ac_aux_dir_found=yes
2609 ac_install_sh=
2610 for ac_aux in $ac_aux_files
2611 do
2612 # As a special case, if "install-sh" is required, that requirement
2613 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2614 # and $ac_install_sh is set appropriately for whichever one is found.
2615 if test x"$ac_aux" = x"install-sh"
2616 then
2617 if test -f "${as_dir}install-sh"; then
2618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2619 ac_install_sh="${as_dir}install-sh -c"
2620 elif test -f "${as_dir}install.sh"; then
2621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2622 ac_install_sh="${as_dir}install.sh -c"
2623 elif test -f "${as_dir}shtool"; then
2624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2625 ac_install_sh="${as_dir}shtool install -c"
2626 else
2627 ac_aux_dir_found=no
2628 if $ac_first_candidate; then
2629 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2630 else
2631 break
2632 fi
2633 fi
2634 else
2635 if test -f "${as_dir}${ac_aux}"; then
2636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2637 else
2638 ac_aux_dir_found=no
2639 if $ac_first_candidate; then
2640 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2641 else
2642 break
2643 fi
2644 fi
2645 fi
2646 done
2647 if test "$ac_aux_dir_found" = yes; then
2648 ac_aux_dir="$as_dir"
2649 break
2650 fi
2651 ac_first_candidate=false
2652
2653 as_found=false
2654 done
2655 IFS=$as_save_IFS
2656 if $as_found
2657 then :
2658
2659 else $as_nop
2660 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2661 fi
2662
2663
2664 # These three variables are undocumented and unsupported,
2665 # and are intended to be withdrawn in a future Autoconf release.
2666 # They can cause serious problems if a builder's source tree is in a directory
2667 # whose full name contains unusual characters.
2668 if test -f "${ac_aux_dir}config.guess"; then
2669 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2670 fi
2671 if test -f "${ac_aux_dir}config.sub"; then
2672 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2673 fi
2674 if test -f "$ac_aux_dir/configure"; then
2675 ac_configure="$SHELL ${ac_aux_dir}configure"
2676 fi
2677
2678 # Check that the precious variables saved in the cache have kept the same
2679 # value.
2680 ac_cache_corrupted=false
2681 for ac_var in $ac_precious_vars; do
2682 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2683 eval ac_new_set=\$ac_env_${ac_var}_set
2684 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2685 eval ac_new_val=\$ac_env_${ac_var}_value
2686 case $ac_old_set,$ac_new_set in
2687 set,)
2688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2689 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2690 ac_cache_corrupted=: ;;
2691 ,set)
2692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2693 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2694 ac_cache_corrupted=: ;;
2695 ,);;
2696 *)
2697 if test "x$ac_old_val" != "x$ac_new_val"; then
2698 # differences in whitespace do not lead to failure.
2699 ac_old_val_w=`echo x $ac_old_val`
2700 ac_new_val_w=`echo x $ac_new_val`
2701 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2703 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2704 ac_cache_corrupted=:
2705 else
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2707 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2708 eval $ac_var=\$ac_old_val
2709 fi
2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2711 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2713 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2714 fi;;
2715 esac
2716 # Pass precious variables to config.status.
2717 if test "$ac_new_set" = set; then
2718 case $ac_new_val in
2719 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2720 *) ac_arg=$ac_var=$ac_new_val ;;
2721 esac
2722 case " $ac_configure_args " in
2723 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2724 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2725 esac
2726 fi
2727 done
2728 if $ac_cache_corrupted; then
2729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2730 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2732 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2733 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2734 and start over" "$LINENO" 5
2735 fi
2736 ## -------------------- ##
2737 ## Main body of script. ##
2738 ## -------------------- ##
2739
2740 ac_ext=c
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745
2746
2747 # For AX_EXTEND_SRCDIR
2748
2749
2750
2751 # Make sure we can run config.sub.
2752 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2753 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2754
2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2756 printf %s "checking build system type... " >&6; }
2757 if test ${ac_cv_build+y}
2758 then :
2759 printf %s "(cached) " >&6
2760 else $as_nop
2761 ac_build_alias=$build_alias
2762 test "x$ac_build_alias" = x &&
2763 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2764 test "x$ac_build_alias" = x &&
2765 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2766 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2767 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2768
2769 fi
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2771 printf "%s\n" "$ac_cv_build" >&6; }
2772 case $ac_cv_build in
2773 *-*-*) ;;
2774 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2775 esac
2776 build=$ac_cv_build
2777 ac_save_IFS=$IFS; IFS='-'
2778 set x $ac_cv_build
2779 shift
2780 build_cpu=$1
2781 build_vendor=$2
2782 shift; shift
2783 # Remember, the first character of IFS is used to create $*,
2784 # except with old shells:
2785 build_os=$*
2786 IFS=$ac_save_IFS
2787 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2788
2789
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2791 printf %s "checking host system type... " >&6; }
2792 if test ${ac_cv_host+y}
2793 then :
2794 printf %s "(cached) " >&6
2795 else $as_nop
2796 if test "x$host_alias" = x; then
2797 ac_cv_host=$ac_cv_build
2798 else
2799 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2800 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2801 fi
2802
2803 fi
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2805 printf "%s\n" "$ac_cv_host" >&6; }
2806 case $ac_cv_host in
2807 *-*-*) ;;
2808 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2809 esac
2810 host=$ac_cv_host
2811 ac_save_IFS=$IFS; IFS='-'
2812 set x $ac_cv_host
2813 shift
2814 host_cpu=$1
2815 host_vendor=$2
2816 shift; shift
2817 # Remember, the first character of IFS is used to create $*,
2818 # except with old shells:
2819 host_os=$*
2820 IFS=$ac_save_IFS
2821 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2822
2823
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2825 printf %s "checking target system type... " >&6; }
2826 if test ${ac_cv_target+y}
2827 then :
2828 printf %s "(cached) " >&6
2829 else $as_nop
2830 if test "x$target_alias" = x; then
2831 ac_cv_target=$ac_cv_host
2832 else
2833 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
2834 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
2835 fi
2836
2837 fi
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2839 printf "%s\n" "$ac_cv_target" >&6; }
2840 case $ac_cv_target in
2841 *-*-*) ;;
2842 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2843 esac
2844 target=$ac_cv_target
2845 ac_save_IFS=$IFS; IFS='-'
2846 set x $ac_cv_target
2847 shift
2848 target_cpu=$1
2849 target_vendor=$2
2850 shift; shift
2851 # Remember, the first character of IFS is used to create $*,
2852 # except with old shells:
2853 target_os=$*
2854 IFS=$ac_save_IFS
2855 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2856
2857
2858 # The aliases save the names the user supplied, while $host etc.
2859 # will get canonicalized.
2860 test -n "$target_alias" &&
2861 test "$program_prefix$program_suffix$program_transform_name" = \
2862 NONENONEs,x,x, &&
2863 program_prefix=${target_alias}-
2864
2865 # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2866 if test "${ac_configure_args+set}" != "set" ; then
2867 ac_configure_args=
2868 for ac_arg in ${1+"$@"}; do
2869 ac_configure_args="$ac_configure_args '$ac_arg'"
2870 done
2871 fi
2872
2873
2874 # Expand $ac_aux_dir to an absolute path.
2875 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2876
2877
2878 ax_enable_builddir="."
2879 # Check whether --enable-builddir was given.
2880 if test ${enable_builddir+y}
2881 then :
2882 enableval=$enable_builddir; ax_enable_builddir="$enableval"
2883 else $as_nop
2884 ax_enable_builddir="auto"
2885 fi
2886
2887 if test ".$ac_srcdir_defaulted" != ".no" ; then
2888 if test ".$srcdir" = ".." ; then
2889 if test -f config.status ; then
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2891 printf "%s\n" "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2892 else
2893 test ".$ax_enable_builddir" = "." && ax_enable_builddir="."
2894 test ".$ax_enable_builddir" = ".no" && ax_enable_builddir="."
2895 test ".$TARGET" = "." && TARGET="$target"
2896 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2897 if test ".$ax_enable_builddir" != ".." ; then # we know where to go and
2898 as_dir=$ax_enable_builddir; as_fn_mkdir_p
2899 echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2900 cd $ax_enable_builddir
2901 if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2902 rm conftest.tmp
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2904 printf "%s\n" "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2905 else
2906 as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2907 fi
2908 srcdir=`echo "$ax_enable_builddir" |
2909 sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2910 # going to restart from subdirectory location
2911 test -f $srcdir/config.log && mv $srcdir/config.log .
2912 test -f $srcdir/confdefs.h && mv $srcdir/confdefs.h .
2913 test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2914 test -f $srcdir/$cache_file && mv $srcdir/$cache_file .
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2916 printf "%s\n" "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2917 case "$0" in # restart
2918 [\\/]* | ?:[\\/]*) # Asbolute name
2919 eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2920 *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2921 esac ; exit $?
2922 fi
2923 fi
2924 fi fi
2925 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2926 # Extract the first word of "gsed sed", so it can be a program name with args.
2927 set dummy gsed sed; ac_word=$2
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 printf %s "checking for $ac_word... " >&6; }
2930 if test ${ac_cv_path_ax_enable_builddir_sed+y}
2931 then :
2932 printf %s "(cached) " >&6
2933 else $as_nop
2934 case $ax_enable_builddir_sed in
2935 [\\/]* | ?:[\\/]*)
2936 ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2937 ;;
2938 *)
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942 IFS=$as_save_IFS
2943 case $as_dir in #(((
2944 '') as_dir=./ ;;
2945 */) ;;
2946 *) as_dir=$as_dir/ ;;
2947 esac
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2950 ac_cv_path_ax_enable_builddir_sed="$as_dir$ac_word$ac_exec_ext"
2951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2957
2958 test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2959 ;;
2960 esac
2961 fi
2962 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2963 if test -n "$ax_enable_builddir_sed"; then
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2965 printf "%s\n" "$ax_enable_builddir_sed" >&6; }
2966 else
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 printf "%s\n" "no" >&6; }
2969 fi
2970
2971
2972 ax_enable_builddir_auxdir="$am_aux_dir"
2973 ac_config_commands="$ac_config_commands buildir"
2974
2975 am__api_version='1.16'
2976
2977
2978 # Find a good install program. We prefer a C program (faster),
2979 # so one script is as good as another. But avoid the broken or
2980 # incompatible versions:
2981 # SysV /etc/install, /usr/sbin/install
2982 # SunOS /usr/etc/install
2983 # IRIX /sbin/install
2984 # AIX /bin/install
2985 # AmigaOS /C/install, which installs bootblocks on floppy discs
2986 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2987 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2988 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2989 # OS/2's system install, which has a completely different semantic
2990 # ./install, which can be erroneously created by make from ./install.sh.
2991 # Reject install programs that cannot install multiple files.
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2993 printf %s "checking for a BSD-compatible install... " >&6; }
2994 if test -z "$INSTALL"; then
2995 if test ${ac_cv_path_install+y}
2996 then :
2997 printf %s "(cached) " >&6
2998 else $as_nop
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 case $as_dir in #(((
3004 '') as_dir=./ ;;
3005 */) ;;
3006 *) as_dir=$as_dir/ ;;
3007 esac
3008 # Account for fact that we put trailing slashes in our PATH walk.
3009 case $as_dir in #((
3010 ./ | /[cC]/* | \
3011 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3012 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3013 /usr/ucb/* ) ;;
3014 *)
3015 # OSF1 and SCO ODT 3.0 have their own names for install.
3016 # Don't use installbsd from OSF since it installs stuff as root
3017 # by default.
3018 for ac_prog in ginstall scoinst install; do
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3021 if test $ac_prog = install &&
3022 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3023 # AIX install. It has an incompatible calling convention.
3024 :
3025 elif test $ac_prog = install &&
3026 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3027 # program-specific install script used by HP pwplus--don't use.
3028 :
3029 else
3030 rm -rf conftest.one conftest.two conftest.dir
3031 echo one > conftest.one
3032 echo two > conftest.two
3033 mkdir conftest.dir
3034 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3035 test -s conftest.one && test -s conftest.two &&
3036 test -s conftest.dir/conftest.one &&
3037 test -s conftest.dir/conftest.two
3038 then
3039 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3040 break 3
3041 fi
3042 fi
3043 fi
3044 done
3045 done
3046 ;;
3047 esac
3048
3049 done
3050 IFS=$as_save_IFS
3051
3052 rm -rf conftest.one conftest.two conftest.dir
3053
3054 fi
3055 if test ${ac_cv_path_install+y}; then
3056 INSTALL=$ac_cv_path_install
3057 else
3058 # As a last resort, use the slow shell script. Don't cache a
3059 # value for INSTALL within a source directory, because that will
3060 # break other packages using the cache if that directory is
3061 # removed, or if the value is a relative name.
3062 INSTALL=$ac_install_sh
3063 fi
3064 fi
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3066 printf "%s\n" "$INSTALL" >&6; }
3067
3068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3069 # It thinks the first close brace ends the variable substitution.
3070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3071
3072 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3073
3074 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3075
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3077 printf %s "checking whether build environment is sane... " >&6; }
3078 # Reject unsafe characters in $srcdir or the absolute working directory
3079 # name. Accept space and tab only in the latter.
3080 am_lf='
3081 '
3082 case `pwd` in
3083 *[\\\"\#\$\&\'\`$am_lf]*)
3084 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3085 esac
3086 case $srcdir in
3087 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3088 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3089 esac
3090
3091 # Do 'set' in a subshell so we don't clobber the current shell's
3092 # arguments. Must try -L first in case configure is actually a
3093 # symlink; some systems play weird games with the mod time of symlinks
3094 # (eg FreeBSD returns the mod time of the symlink's containing
3095 # directory).
3096 if (
3097 am_has_slept=no
3098 for am_try in 1 2; do
3099 echo "timestamp, slept: $am_has_slept" > conftest.file
3100 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3101 if test "$*" = "X"; then
3102 # -L didn't work.
3103 set X `ls -t "$srcdir/configure" conftest.file`
3104 fi
3105 if test "$*" != "X $srcdir/configure conftest.file" \
3106 && test "$*" != "X conftest.file $srcdir/configure"; then
3107
3108 # If neither matched, then we have a broken ls. This can happen
3109 # if, for instance, CONFIG_SHELL is bash and it inherits a
3110 # broken ls alias from the environment. This has actually
3111 # happened. Such a system could not be considered "sane".
3112 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3113 alias in your environment" "$LINENO" 5
3114 fi
3115 if test "$2" = conftest.file || test $am_try -eq 2; then
3116 break
3117 fi
3118 # Just in case.
3119 sleep 1
3120 am_has_slept=yes
3121 done
3122 test "$2" = conftest.file
3123 )
3124 then
3125 # Ok.
3126 :
3127 else
3128 as_fn_error $? "newly created file is older than distributed files!
3129 Check your system clock" "$LINENO" 5
3130 fi
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3132 printf "%s\n" "yes" >&6; }
3133 # If we didn't sleep, we still need to ensure time stamps of config.status and
3134 # generated files are strictly newer.
3135 am_sleep_pid=
3136 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3137 ( sleep 1 ) &
3138 am_sleep_pid=$!
3139 fi
3140
3141 rm -f conftest.file
3142
3143 test "$program_prefix" != NONE &&
3144 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3145 # Use a double $ so make ignores it.
3146 test "$program_suffix" != NONE &&
3147 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3148 # Double any \ or $.
3149 # By default was `s,x,x', remove it if useless.
3150 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3151 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3152
3153
3154 if test x"${MISSING+set}" != xset; then
3155 MISSING="\${SHELL} '$am_aux_dir/missing'"
3156 fi
3157 # Use eval to expand $SHELL
3158 if eval "$MISSING --is-lightweight"; then
3159 am_missing_run="$MISSING "
3160 else
3161 am_missing_run=
3162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3163 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3164 fi
3165
3166 if test x"${install_sh+set}" != xset; then
3167 case $am_aux_dir in
3168 *\ * | *\ *)
3169 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3170 *)
3171 install_sh="\${SHELL} $am_aux_dir/install-sh"
3172 esac
3173 fi
3174
3175 # Installed binaries are usually stripped using 'strip' when the user
3176 # run "make install-strip". However 'strip' might not be the right
3177 # tool to use in cross-compilation environments, therefore Automake
3178 # will honor the 'STRIP' environment variable to overrule this program.
3179 if test "$cross_compiling" != no; then
3180 if test -n "$ac_tool_prefix"; then
3181 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3182 set dummy ${ac_tool_prefix}strip; ac_word=$2
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 printf %s "checking for $ac_word... " >&6; }
3185 if test ${ac_cv_prog_STRIP+y}
3186 then :
3187 printf %s "(cached) " >&6
3188 else $as_nop
3189 if test -n "$STRIP"; then
3190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195 IFS=$as_save_IFS
3196 case $as_dir in #(((
3197 '') as_dir=./ ;;
3198 */) ;;
3199 *) as_dir=$as_dir/ ;;
3200 esac
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207 done
3208 done
3209 IFS=$as_save_IFS
3210
3211 fi
3212 fi
3213 STRIP=$ac_cv_prog_STRIP
3214 if test -n "$STRIP"; then
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3216 printf "%s\n" "$STRIP" >&6; }
3217 else
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 printf "%s\n" "no" >&6; }
3220 fi
3221
3222
3223 fi
3224 if test -z "$ac_cv_prog_STRIP"; then
3225 ac_ct_STRIP=$STRIP
3226 # Extract the first word of "strip", so it can be a program name with args.
3227 set dummy strip; ac_word=$2
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 printf %s "checking for $ac_word... " >&6; }
3230 if test ${ac_cv_prog_ac_ct_STRIP+y}
3231 then :
3232 printf %s "(cached) " >&6
3233 else $as_nop
3234 if test -n "$ac_ct_STRIP"; then
3235 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240 IFS=$as_save_IFS
3241 case $as_dir in #(((
3242 '') as_dir=./ ;;
3243 */) ;;
3244 *) as_dir=$as_dir/ ;;
3245 esac
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3248 ac_cv_prog_ac_ct_STRIP="strip"
3249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3250 break 2
3251 fi
3252 done
3253 done
3254 IFS=$as_save_IFS
3255
3256 fi
3257 fi
3258 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3259 if test -n "$ac_ct_STRIP"; then
3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3261 printf "%s\n" "$ac_ct_STRIP" >&6; }
3262 else
3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 printf "%s\n" "no" >&6; }
3265 fi
3266
3267 if test "x$ac_ct_STRIP" = x; then
3268 STRIP=":"
3269 else
3270 case $cross_compiling:$ac_tool_warned in
3271 yes:)
3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3273 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3274 ac_tool_warned=yes ;;
3275 esac
3276 STRIP=$ac_ct_STRIP
3277 fi
3278 else
3279 STRIP="$ac_cv_prog_STRIP"
3280 fi
3281
3282 fi
3283 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3284
3285
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3287 printf %s "checking for a race-free mkdir -p... " >&6; }
3288 if test -z "$MKDIR_P"; then
3289 if test ${ac_cv_path_mkdir+y}
3290 then :
3291 printf %s "(cached) " >&6
3292 else $as_nop
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3295 do
3296 IFS=$as_save_IFS
3297 case $as_dir in #(((
3298 '') as_dir=./ ;;
3299 */) ;;
3300 *) as_dir=$as_dir/ ;;
3301 esac
3302 for ac_prog in mkdir gmkdir; do
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3305 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3306 'mkdir ('*'coreutils) '* | \
3307 'BusyBox '* | \
3308 'mkdir (fileutils) '4.1*)
3309 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3310 break 3;;
3311 esac
3312 done
3313 done
3314 done
3315 IFS=$as_save_IFS
3316
3317 fi
3318
3319 test -d ./--version && rmdir ./--version
3320 if test ${ac_cv_path_mkdir+y}; then
3321 MKDIR_P="$ac_cv_path_mkdir -p"
3322 else
3323 # As a last resort, use the slow shell script. Don't cache a
3324 # value for MKDIR_P within a source directory, because that will
3325 # break other packages using the cache if that directory is
3326 # removed, or if the value is a relative name.
3327 MKDIR_P="$ac_install_sh -d"
3328 fi
3329 fi
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3331 printf "%s\n" "$MKDIR_P" >&6; }
3332
3333 for ac_prog in gawk mawk nawk awk
3334 do
3335 # Extract the first word of "$ac_prog", so it can be a program name with args.
3336 set dummy $ac_prog; ac_word=$2
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 printf %s "checking for $ac_word... " >&6; }
3339 if test ${ac_cv_prog_AWK+y}
3340 then :
3341 printf %s "(cached) " >&6
3342 else $as_nop
3343 if test -n "$AWK"; then
3344 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349 IFS=$as_save_IFS
3350 case $as_dir in #(((
3351 '') as_dir=./ ;;
3352 */) ;;
3353 *) as_dir=$as_dir/ ;;
3354 esac
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3357 ac_cv_prog_AWK="$ac_prog"
3358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3359 break 2
3360 fi
3361 done
3362 done
3363 IFS=$as_save_IFS
3364
3365 fi
3366 fi
3367 AWK=$ac_cv_prog_AWK
3368 if test -n "$AWK"; then
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3370 printf "%s\n" "$AWK" >&6; }
3371 else
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 printf "%s\n" "no" >&6; }
3374 fi
3375
3376
3377 test -n "$AWK" && break
3378 done
3379
3380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3381 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3382 set x ${MAKE-make}
3383 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3384 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3385 then :
3386 printf %s "(cached) " >&6
3387 else $as_nop
3388 cat >conftest.make <<\_ACEOF
3389 SHELL = /bin/sh
3390 all:
3391 @echo '@@@%%%=$(MAKE)=@@@%%%'
3392 _ACEOF
3393 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3394 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3395 *@@@%%%=?*=@@@%%%*)
3396 eval ac_cv_prog_make_${ac_make}_set=yes;;
3397 *)
3398 eval ac_cv_prog_make_${ac_make}_set=no;;
3399 esac
3400 rm -f conftest.make
3401 fi
3402 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3404 printf "%s\n" "yes" >&6; }
3405 SET_MAKE=
3406 else
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 printf "%s\n" "no" >&6; }
3409 SET_MAKE="MAKE=${MAKE-make}"
3410 fi
3411
3412 rm -rf .tst 2>/dev/null
3413 mkdir .tst 2>/dev/null
3414 if test -d .tst; then
3415 am__leading_dot=.
3416 else
3417 am__leading_dot=_
3418 fi
3419 rmdir .tst 2>/dev/null
3420
3421 # Check whether --enable-silent-rules was given.
3422 if test ${enable_silent_rules+y}
3423 then :
3424 enableval=$enable_silent_rules;
3425 fi
3426
3427 case $enable_silent_rules in # (((
3428 yes) AM_DEFAULT_VERBOSITY=0;;
3429 no) AM_DEFAULT_VERBOSITY=1;;
3430 *) AM_DEFAULT_VERBOSITY=1;;
3431 esac
3432 am_make=${MAKE-make}
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3434 printf %s "checking whether $am_make supports nested variables... " >&6; }
3435 if test ${am_cv_make_support_nested_variables+y}
3436 then :
3437 printf %s "(cached) " >&6
3438 else $as_nop
3439 if printf "%s\n" 'TRUE=$(BAR$(V))
3440 BAR0=false
3441 BAR1=true
3442 V=1
3443 am__doit:
3444 @$(TRUE)
3445 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3446 am_cv_make_support_nested_variables=yes
3447 else
3448 am_cv_make_support_nested_variables=no
3449 fi
3450 fi
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3452 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3453 if test $am_cv_make_support_nested_variables = yes; then
3454 AM_V='$(V)'
3455 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3456 else
3457 AM_V=$AM_DEFAULT_VERBOSITY
3458 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3459 fi
3460 AM_BACKSLASH='\'
3461
3462 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3463 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3464 # is not polluted with repeated "-I."
3465 am__isrc=' -I$(srcdir)'
3466 # test to see if srcdir already configured
3467 if test -f $srcdir/config.status; then
3468 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3469 fi
3470 fi
3471
3472 # test whether we have cygpath
3473 if test -z "$CYGPATH_W"; then
3474 if (cygpath --version) >/dev/null 2>/dev/null; then
3475 CYGPATH_W='cygpath -w'
3476 else
3477 CYGPATH_W=echo
3478 fi
3479 fi
3480
3481
3482 # Define the identity of the package.
3483 PACKAGE='i3lock-color'
3484 VERSION='2.13.c.4'
3485
3486
3487 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3488
3489
3490 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3491
3492 # Some tools Automake needs.
3493
3494 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3495
3496
3497 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3498
3499
3500 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3501
3502
3503 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3504
3505
3506 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3507
3508 # For better backward compatibility. To be removed once Automake 1.9.x
3509 # dies out for good. For more background, see:
3510 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3511 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3512 mkdir_p='$(MKDIR_P)'
3513
3514 # We need awk for the "check" target (and possibly the TAP driver). The
3515 # system "awk" is bad on some platforms.
3516 # Always define AMTAR for backward compatibility. Yes, it's still used
3517 # in the wild :-( We should find a proper way to deprecate it ...
3518 AMTAR='$${TAR-tar}'
3519
3520
3521 # We'll loop over all known methods to create a tar archive until one works.
3522 _am_tools='gnutar pax cpio none'
3523
3524 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3525
3526
3527
3528
3529
3530 # Variables for tags utilities; see am/tags.am
3531 if test -z "$CTAGS"; then
3532 CTAGS=ctags
3533 fi
3534
3535 if test -z "$ETAGS"; then
3536 ETAGS=etags
3537 fi
3538
3539 if test -z "$CSCOPE"; then
3540 CSCOPE=cscope
3541 fi
3542
3543
3544
3545 # POSIX will say in a future version that running "rm -f" with no argument
3546 # is OK; and we want to be able to make that assumption in our Makefile
3547 # recipes. So use an aggressive probe to check that the usage we want is
3548 # actually supported "in the wild" to an acceptable degree.
3549 # See automake bug#10828.
3550 # To make any issue more visible, cause the running configure to be aborted
3551 # by default if the 'rm' program in use doesn't match our expectations; the
3552 # user can still override this though.
3553 if rm -f && rm -fr && rm -rf; then : OK; else
3554 cat >&2 <<'END'
3555 Oops!
3556
3557 Your 'rm' program seems unable to run without file operands specified
3558 on the command line, even when the '-f' option is present. This is contrary
3559 to the behaviour of most rm programs out there, and not conforming with
3560 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3561
3562 Please tell [email protected] about your system, including the value
3563 of your $PATH and any error possibly output before this message. This
3564 can help us improve future automake versions.
3565
3566 END
3567 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3568 echo 'Configuration will proceed anyway, since you have set the' >&2
3569 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3570 echo >&2
3571 else
3572 cat >&2 <<'END'
3573 Aborting the configuration process, to ensure you take notice of the issue.
3574
3575 You can download and install GNU coreutils to get an 'rm' implementation
3576 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3577
3578 If you want to complete the configuration process using your problematic
3579 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3580 to "yes", and re-run configure.
3581
3582 END
3583 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3584 fi
3585 fi
3586
3587 # Default to silent rules, use V=1 to get verbose compilation output.
3588 # Check whether --enable-silent-rules was given.
3589 if test ${enable_silent_rules+y}
3590 then :
3591 enableval=$enable_silent_rules;
3592 fi
3593
3594 case $enable_silent_rules in # (((
3595 yes) AM_DEFAULT_VERBOSITY=0;;
3596 no) AM_DEFAULT_VERBOSITY=1;;
3597 *) AM_DEFAULT_VERBOSITY=0;;
3598 esac
3599 am_make=${MAKE-make}
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3601 printf %s "checking whether $am_make supports nested variables... " >&6; }
3602 if test ${am_cv_make_support_nested_variables+y}
3603 then :
3604 printf %s "(cached) " >&6
3605 else $as_nop
3606 if printf "%s\n" 'TRUE=$(BAR$(V))
3607 BAR0=false
3608 BAR1=true
3609 V=1
3610 am__doit:
3611 @$(TRUE)
3612 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3613 am_cv_make_support_nested_variables=yes
3614 else
3615 am_cv_make_support_nested_variables=no
3616 fi
3617 fi
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3619 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3620 if test $am_cv_make_support_nested_variables = yes; then
3621 AM_V='$(V)'
3622 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3623 else
3624 AM_V=$AM_DEFAULT_VERBOSITY
3625 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3626 fi
3627 AM_BACKSLASH='\'
3628
3629 # Make it possible to disable maintainer mode to disable re-generation of build
3630 # system files.
3631
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3633 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3634 # Check whether --enable-maintainer-mode was given.
3635 if test ${enable_maintainer_mode+y}
3636 then :
3637 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3638 else $as_nop
3639 USE_MAINTAINER_MODE=yes
3640 fi
3641
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3643 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3644 if test $USE_MAINTAINER_MODE = yes; then
3645 MAINTAINER_MODE_TRUE=
3646 MAINTAINER_MODE_FALSE='#'
3647 else
3648 MAINTAINER_MODE_TRUE='#'
3649 MAINTAINER_MODE_FALSE=
3650 fi
3651
3652 MAINT=$MAINTAINER_MODE_TRUE
3653
3654
3655
3656 ac_config_headers="$ac_config_headers config.h"
3657
3658
3659
3660
3661
3662 # Verify we are using GNU make because we use '%'-style pattern rules in
3663 # Makefile.am, which are a GNU make extension. Pull requests to replace
3664 # '%'-style pattern rules with a more portable alternative are welcome.
3665 for ac_prog in gawk mawk nawk awk
3666 do
3667 # Extract the first word of "$ac_prog", so it can be a program name with args.
3668 set dummy $ac_prog; ac_word=$2
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 printf %s "checking for $ac_word... " >&6; }
3671 if test ${ac_cv_prog_AWK+y}
3672 then :
3673 printf %s "(cached) " >&6
3674 else $as_nop
3675 if test -n "$AWK"; then
3676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681 IFS=$as_save_IFS
3682 case $as_dir in #(((
3683 '') as_dir=./ ;;
3684 */) ;;
3685 *) as_dir=$as_dir/ ;;
3686 esac
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3689 ac_cv_prog_AWK="$ac_prog"
3690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3691 break 2
3692 fi
3693 done
3694 done
3695 IFS=$as_save_IFS
3696
3697 fi
3698 fi
3699 AWK=$ac_cv_prog_AWK
3700 if test -n "$AWK"; then
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3702 printf "%s\n" "$AWK" >&6; }
3703 else
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 printf "%s\n" "no" >&6; }
3706 fi
3707
3708
3709 test -n "$AWK" && break
3710 done
3711
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
3713 printf %s "checking for GNU make... " >&6; }
3714 if test ${_cv_gnu_make_command+y}
3715 then :
3716 printf %s "(cached) " >&6
3717 else $as_nop
3718 _cv_gnu_make_command="" ;
3719 for a in "$MAKE" make gmake gnumake ; do
3720 if test -z "$a" ; then continue ; fi ;
3721 if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then
3722 _cv_gnu_make_command=$a ;
3723 AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make")
3724 ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }')
3725 break ;
3726 fi
3727 done ;
3728 fi
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
3730 printf "%s\n" "$_cv_gnu_make_command" >&6; }
3731 if test "x$_cv_gnu_make_command" = x""
3732 then :
3733 ifGNUmake="#"
3734 else $as_nop
3735 ifGNUmake=""
3736 fi
3737 if test "x$_cv_gnu_make_command" = x""
3738 then :
3739 { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;}
3740 else $as_nop
3741 ax_cv_gnu_make_command=${_cv_gnu_make_command}
3742 fi
3743
3744
3745 if test "x$_cv_gnu_make_command" = x""
3746 then :
3747 as_fn_error $? "the i3lock Makefile.am requires GNU make" "$LINENO" 5
3748 fi
3749
3750 case $srcdir in #(
3751 .|.*|/*) :
3752
3753 # pwd -P is specified in IEEE 1003.1 from 2004
3754 as_dir=`cd "$srcdir" && pwd -P`
3755 as_base=`$as_basename -- $as_dir ||
3756 $as_expr X/$as_dir : '.*/\([^/][^/]*\)/*$' \| \
3757 X$as_dir : 'X\(//\)$' \| \
3758 X$as_dir : 'X\(/\)' \| . 2>/dev/null ||
3759 printf "%s\n" X/$as_dir |
3760 sed '/^.*\/\([^/][^/]*\)\/*$/{
3761 s//\1/
3762 q
3763 }
3764 /^X\/\(\/\/\)$/{
3765 s//\1/
3766 q
3767 }
3768 /^X\/\(\/\).*/{
3769 s//\1/
3770 q
3771 }
3772 s/.*/./; q'`
3773 srcdir=${srcdir}/../${as_base}
3774
3775 AX_EXTEND_SRCDIR_CPPFLAGS="-DSTRIPPED__FILE__=\\\"\$\$(basename \$<)\\\""
3776
3777 ;; #(
3778 *) :
3779 ;;
3780 esac
3781
3782
3783 if test -d ${srcdir}/.git
3784 then :
3785
3786 VERSION="$(git -C ${srcdir} describe --tags --abbrev=0)"
3787 I3LOCK_VERSION="$(git -C ${srcdir} describe --tags --always) ($(git -C ${srcdir} rev-list --pretty=format:%cd --date=short -n1 HEAD | tail -n1))"
3788 # Mirrors what libi3/is_debug_build.c does:
3789 is_release=$(test $(echo "${I3LOCK_VERSION}" | cut -d ' ' -f 1 | wc -m) -lt 13 && echo yes || echo no)
3790
3791 else $as_nop
3792
3793 VERSION="$(cut -d '-' -f 1 ${srcdir}/I3LOCK_VERSION | cut -d ' ' -f 1)"
3794 I3LOCK_VERSION="$(sed -e 's/[\"?\\]/\\&/g' ${srcdir}/I3LOCK_VERSION)"
3795 is_release="$(grep -q non-git ${srcdir}/I3LOCK_VERSION && echo no || echo yes)"
3796
3797 fi
3798 I3LOCK_VERSION=$I3LOCK_VERSION
3799
3800
3801 printf "%s\n" "#define I3LOCK_VERSION \"${I3LOCK_VERSION}\"" >>confdefs.h
3802
3803
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3805 printf %s "checking for a sed that does not truncate output... " >&6; }
3806 if test ${ac_cv_path_SED+y}
3807 then :
3808 printf %s "(cached) " >&6
3809 else $as_nop
3810 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3811 for ac_i in 1 2 3 4 5 6 7; do
3812 ac_script="$ac_script$as_nl$ac_script"
3813 done
3814 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3815 { ac_script=; unset ac_script;}
3816 if test -z "$SED"; then
3817 ac_path_SED_found=false
3818 # Loop through the user's path and test for each of PROGNAME-LIST
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822 IFS=$as_save_IFS
3823 case $as_dir in #(((
3824 '') as_dir=./ ;;
3825 */) ;;
3826 *) as_dir=$as_dir/ ;;
3827 esac
3828 for ac_prog in sed gsed
3829 do
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
3832 as_fn_executable_p "$ac_path_SED" || continue
3833 # Check for GNU ac_path_SED and select it if it is found.
3834 # Check for GNU $ac_path_SED
3835 case `"$ac_path_SED" --version 2>&1` in
3836 *GNU*)
3837 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3838 *)
3839 ac_count=0
3840 printf %s 0123456789 >"conftest.in"
3841 while :
3842 do
3843 cat "conftest.in" "conftest.in" >"conftest.tmp"
3844 mv "conftest.tmp" "conftest.in"
3845 cp "conftest.in" "conftest.nl"
3846 printf "%s\n" '' >> "conftest.nl"
3847 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3849 as_fn_arith $ac_count + 1 && ac_count=$as_val
3850 if test $ac_count -gt ${ac_path_SED_max-0}; then
3851 # Best one so far, save it but keep looking for a better one
3852 ac_cv_path_SED="$ac_path_SED"
3853 ac_path_SED_max=$ac_count
3854 fi
3855 # 10*(2^10) chars as input seems more than enough
3856 test $ac_count -gt 10 && break
3857 done
3858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3859 esac
3860
3861 $ac_path_SED_found && break 3
3862 done
3863 done
3864 done
3865 IFS=$as_save_IFS
3866 if test -z "$ac_cv_path_SED"; then
3867 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3868 fi
3869 else
3870 ac_cv_path_SED=$SED
3871 fi
3872
3873 fi
3874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3875 printf "%s\n" "$ac_cv_path_SED" >&6; }
3876 SED="$ac_cv_path_SED"
3877 rm -f conftest.sed
3878
3879
3880
3881
3882 # allow to override gcov location
3883
3884 # Check whether --with-gcov was given.
3885 if test ${with_gcov+y}
3886 then :
3887 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
3888 else $as_nop
3889 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
3890 fi
3891
3892
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
3894 printf %s "checking whether to build with code coverage support... " >&6; }
3895 # Check whether --enable-code-coverage was given.
3896 if test ${enable_code_coverage+y}
3897 then :
3898 enableval=$enable_code_coverage;
3899 else $as_nop
3900 enable_code_coverage=no
3901 fi
3902
3903
3904 if test x$enable_code_coverage = xyes; then
3905 CODE_COVERAGE_ENABLED_TRUE=
3906 CODE_COVERAGE_ENABLED_FALSE='#'
3907 else
3908 CODE_COVERAGE_ENABLED_TRUE='#'
3909 CODE_COVERAGE_ENABLED_FALSE=
3910 fi
3911
3912 CODE_COVERAGE_ENABLED=$enable_code_coverage
3913
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
3915 printf "%s\n" "$enable_code_coverage" >&6; }
3916
3917 if test "$enable_code_coverage" = "yes"
3918 then :
3919
3920 # check for gcov
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925 printf %s "checking for $ac_word... " >&6; }
3926 if test ${ac_cv_prog_GCOV+y}
3927 then :
3928 printf %s "(cached) " >&6
3929 else $as_nop
3930 if test -n "$GCOV"; then
3931 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3932 else
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3935 do
3936 IFS=$as_save_IFS
3937 case $as_dir in #(((
3938 '') as_dir=./ ;;
3939 */) ;;
3940 *) as_dir=$as_dir/ ;;
3941 esac
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3944 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948 done
3949 done
3950 IFS=$as_save_IFS
3951
3952 fi
3953 fi
3954 GCOV=$ac_cv_prog_GCOV
3955 if test -n "$GCOV"; then
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3957 printf "%s\n" "$GCOV" >&6; }
3958 else
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 printf "%s\n" "no" >&6; }
3961 fi
3962
3963
3964 fi
3965 if test -z "$ac_cv_prog_GCOV"; then
3966 ac_ct_GCOV=$GCOV
3967 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
3968 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 printf %s "checking for $ac_word... " >&6; }
3971 if test ${ac_cv_prog_ac_ct_GCOV+y}
3972 then :
3973 printf %s "(cached) " >&6
3974 else $as_nop
3975 if test -n "$ac_ct_GCOV"; then
3976 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981 IFS=$as_save_IFS
3982 case $as_dir in #(((
3983 '') as_dir=./ ;;
3984 */) ;;
3985 *) as_dir=$as_dir/ ;;
3986 esac
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3989 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
3990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993 done
3994 done
3995 IFS=$as_save_IFS
3996
3997 fi
3998 fi
3999 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
4000 if test -n "$ac_ct_GCOV"; then
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
4002 printf "%s\n" "$ac_ct_GCOV" >&6; }
4003 else
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 printf "%s\n" "no" >&6; }
4006 fi
4007
4008 if test "x$ac_ct_GCOV" = x; then
4009 GCOV=":"
4010 else
4011 case $cross_compiling:$ac_tool_warned in
4012 yes:)
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4014 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4015 ac_tool_warned=yes ;;
4016 esac
4017 GCOV=$ac_ct_GCOV
4018 fi
4019 else
4020 GCOV="$ac_cv_prog_GCOV"
4021 fi
4022
4023 if test "X$GCOV" = "X:"
4024 then :
4025 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
4026 fi
4027
4028
4029 if test "$GCC" = "no"
4030 then :
4031
4032 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
4033
4034 fi
4035
4036 # List of supported lcov versions.
4037 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11 1.12"
4038
4039 # Extract the first word of "lcov", so it can be a program name with args.
4040 set dummy lcov; ac_word=$2
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042 printf %s "checking for $ac_word... " >&6; }
4043 if test ${ac_cv_prog_LCOV+y}
4044 then :
4045 printf %s "(cached) " >&6
4046 else $as_nop
4047 if test -n "$LCOV"; then
4048 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
4049 else
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053 IFS=$as_save_IFS
4054 case $as_dir in #(((
4055 '') as_dir=./ ;;
4056 */) ;;
4057 *) as_dir=$as_dir/ ;;
4058 esac
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_LCOV="lcov"
4062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065 done
4066 done
4067 IFS=$as_save_IFS
4068
4069 fi
4070 fi
4071 LCOV=$ac_cv_prog_LCOV
4072 if test -n "$LCOV"; then
4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
4074 printf "%s\n" "$LCOV" >&6; }
4075 else
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 printf "%s\n" "no" >&6; }
4078 fi
4079
4080
4081 # Extract the first word of "genhtml", so it can be a program name with args.
4082 set dummy genhtml; ac_word=$2
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 printf %s "checking for $ac_word... " >&6; }
4085 if test ${ac_cv_prog_GENHTML+y}
4086 then :
4087 printf %s "(cached) " >&6
4088 else $as_nop
4089 if test -n "$GENHTML"; then
4090 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095 IFS=$as_save_IFS
4096 case $as_dir in #(((
4097 '') as_dir=./ ;;
4098 */) ;;
4099 *) as_dir=$as_dir/ ;;
4100 esac
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4103 ac_cv_prog_GENHTML="genhtml"
4104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4105 break 2
4106 fi
4107 done
4108 done
4109 IFS=$as_save_IFS
4110
4111 fi
4112 fi
4113 GENHTML=$ac_cv_prog_GENHTML
4114 if test -n "$GENHTML"; then
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
4116 printf "%s\n" "$GENHTML" >&6; }
4117 else
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 printf "%s\n" "no" >&6; }
4120 fi
4121
4122
4123
4124 if test "$LCOV"
4125 then :
4126
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
4128 printf %s "checking for lcov version... " >&6; }
4129 if test ${ax_cv_lcov_version+y}
4130 then :
4131 printf %s "(cached) " >&6
4132 else $as_nop
4133
4134 ax_cv_lcov_version=invalid
4135 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
4136 for lcov_check_version in $lcov_version_list; do
4137 if test "$lcov_version" = "$lcov_check_version"; then
4138 ax_cv_lcov_version="$lcov_check_version (ok)"
4139 fi
4140 done
4141
4142 fi
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
4144 printf "%s\n" "$ax_cv_lcov_version" >&6; }
4145
4146 else $as_nop
4147
4148 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
4149 as_fn_error $? "$lcov_msg" "$LINENO" 5
4150
4151 fi
4152
4153 case $ax_cv_lcov_version in
4154 ""|invalid)
4155 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
4156 as_fn_error $? "$lcov_msg" "$LINENO" 5
4157 LCOV="exit 0;"
4158 ;;
4159 esac
4160
4161 if test -z "$GENHTML"
4162 then :
4163
4164 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
4165
4166 fi
4167
4168 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
4169 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4170 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
4171 CODE_COVERAGE_LDFLAGS="-lgcov"
4172
4173
4174
4175
4176
4177
4178 fi
4179
4180 CODE_COVERAGE_RULES='
4181 # Code coverage
4182 #
4183 # Optional:
4184 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
4185 # Multiple directories may be specified, separated by whitespace.
4186 # (Default: $(top_builddir))
4187 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
4188 # by lcov for code coverage. (Default:
4189 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
4190 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
4191 # reports to be created. (Default:
4192 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
4193 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
4194 # set to 0 to disable it and leave empty to stay with the default.
4195 # (Default: empty)
4196 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
4197 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4198 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
4199 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4200 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
4201 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
4202 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4203 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
4204 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4205 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
4206 # lcov instance. (Default: empty)
4207 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
4208 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4209 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
4210 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
4211 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
4212 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
4213 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
4214 #
4215 # The generated report will be titled using the $(PACKAGE_NAME) and
4216 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
4217 # use the git-version-gen script, available online.
4218
4219 # Optional variables
4220 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
4221 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
4222 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
4223 CODE_COVERAGE_BRANCH_COVERAGE ?=
4224 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4225 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4226 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
4227 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
4228 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
4229 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
4230 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
4231 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
4232 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
4233 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
4234 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
4235 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULTS)
4236 CODE_COVERAGE_IGNORE_PATTERN ?=
4237
4238 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
4239 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
4240 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
4241 $(CODE_COVERAGE_OUTPUT_FILE);
4242 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
4243 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
4244 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
4245 $(CODE_COVERAGE_IGNORE_PATTERN);
4246 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
4247 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
4248 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
4249 code_coverage_quiet = $(code_coverage_quiet_$(V))
4250 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
4251 code_coverage_quiet_0 = --quiet
4252
4253 # sanitizes the test-name: replaces with underscores: dashes and dots
4254 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
4255
4256 # Use recursive makes in order to ignore errors during check
4257 check-code-coverage:
4258 ifeq ($(CODE_COVERAGE_ENABLED),yes)
4259 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
4260 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
4261 else
4262 @echo "Need to reconfigure with --enable-code-coverage"
4263 endif
4264
4265 # Capture code coverage data
4266 code-coverage-capture: code-coverage-capture-hook
4267 ifeq ($(CODE_COVERAGE_ENABLED),yes)
4268 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
4269 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
4270 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
4271 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
4272 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
4273 else
4274 @echo "Need to reconfigure with --enable-code-coverage"
4275 endif
4276
4277 # Hook rule executed before code-coverage-capture, overridable by the user
4278 code-coverage-capture-hook:
4279
4280 ifeq ($(CODE_COVERAGE_ENABLED),yes)
4281 clean: code-coverage-clean
4282 code-coverage-clean:
4283 -$(LCOV) --directory $(top_builddir) -z
4284 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4285 -find . -name "*.gcda" -o -name "*.gcov" -delete
4286 endif
4287
4288 GITIGNOREFILES ?=
4289 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
4290
4291 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
4292 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
4293
4294 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
4295 '
4296
4297
4298
4299
4300
4301
4302
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
4304 printf %s "checking whether to enable debugging... " >&6; }
4305
4306 ax_enable_debug_default=no
4307 ax_enable_debug_is_release=$is_release
4308
4309 # If this is a release, override the default.
4310 if test "$ax_enable_debug_is_release" = "yes"
4311 then :
4312 ax_enable_debug_default="no"
4313 fi
4314
4315
4316
4317
4318 # Check whether --enable-debug was given.
4319 if test ${enable_debug+y}
4320 then :
4321 enableval=$enable_debug;
4322 else $as_nop
4323 enable_debug=$ax_enable_debug_default
4324 fi
4325
4326
4327 # empty mean debug yes
4328 if test "x$enable_debug" = "x"
4329 then :
4330 enable_debug="yes"
4331 fi
4332
4333 # case of debug
4334 case $enable_debug in #(
4335 yes) :
4336
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4338 printf "%s\n" "yes" >&6; }
4339 CFLAGS="${CFLAGS} -g -O0"
4340 CXXFLAGS="${CXXFLAGS} -g -O0"
4341 FFLAGS="${FFLAGS} -g -O0"
4342 FCFLAGS="${FCFLAGS} -g -O0"
4343 OBJCFLAGS="${OBJCFLAGS} -g -O0"
4344 ;; #(
4345 info) :
4346
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: info" >&5
4348 printf "%s\n" "info" >&6; }
4349 CFLAGS="${CFLAGS} -g"
4350 CXXFLAGS="${CXXFLAGS} -g"
4351 FFLAGS="${FFLAGS} -g"
4352 FCFLAGS="${FCFLAGS} -g"
4353 OBJCFLAGS="${OBJCFLAGS} -g"
4354 ;; #(
4355 profile) :
4356
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: profile" >&5
4358 printf "%s\n" "profile" >&6; }
4359 CFLAGS="${CFLAGS} -g -pg"
4360 CXXFLAGS="${CXXFLAGS} -g -pg"
4361 FFLAGS="${FFLAGS} -g -pg"
4362 FCFLAGS="${FCFLAGS} -g -pg"
4363 OBJCFLAGS="${OBJCFLAGS} -g -pg"
4364 LDFLAGS="${LDFLAGS} -pg"
4365 ;; #(
4366 *) :
4367
4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 printf "%s\n" "no" >&6; }
4370 if test "x${CFLAGS+set}" != "xset"
4371 then :
4372 CFLAGS=""
4373 fi
4374 if test "x${CXXFLAGS+set}" != "xset"
4375 then :
4376 CXXFLAGS=""
4377 fi
4378 if test "x${FFLAGS+set}" != "xset"
4379 then :
4380 FFLAGS=""
4381 fi
4382 if test "x${FCFLAGS+set}" != "xset"
4383 then :
4384 FCFLAGS=""
4385 fi
4386 if test "x${OBJCFLAGS+set}" != "xset"
4387 then :
4388 OBJCFLAGS=""
4389 fi
4390 ;;
4391 esac
4392
4393 if test "x$enable_debug" = "xyes"
4394 then :
4395
4396 else $as_nop
4397
4398 printf "%s\n" "#define NDEBUG /**/" >>confdefs.h
4399
4400 fi
4401 ax_enable_debug=$enable_debug
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413 ac_ext=c
4414 ac_cpp='$CPP $CPPFLAGS'
4415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418 if test -n "$ac_tool_prefix"; then
4419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4420 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422 printf %s "checking for $ac_word... " >&6; }
4423 if test ${ac_cv_prog_CC+y}
4424 then :
4425 printf %s "(cached) " >&6
4426 else $as_nop
4427 if test -n "$CC"; then
4428 ac_cv_prog_CC="$CC" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433 IFS=$as_save_IFS
4434 case $as_dir in #(((
4435 '') as_dir=./ ;;
4436 */) ;;
4437 *) as_dir=$as_dir/ ;;
4438 esac
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4441 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4443 break 2
4444 fi
4445 done
4446 done
4447 IFS=$as_save_IFS
4448
4449 fi
4450 fi
4451 CC=$ac_cv_prog_CC
4452 if test -n "$CC"; then
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4454 printf "%s\n" "$CC" >&6; }
4455 else
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 printf "%s\n" "no" >&6; }
4458 fi
4459
4460
4461 fi
4462 if test -z "$ac_cv_prog_CC"; then
4463 ac_ct_CC=$CC
4464 # Extract the first word of "gcc", so it can be a program name with args.
4465 set dummy gcc; ac_word=$2
4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 printf %s "checking for $ac_word... " >&6; }
4468 if test ${ac_cv_prog_ac_ct_CC+y}
4469 then :
4470 printf %s "(cached) " >&6
4471 else $as_nop
4472 if test -n "$ac_ct_CC"; then
4473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478 IFS=$as_save_IFS
4479 case $as_dir in #(((
4480 '') as_dir=./ ;;
4481 */) ;;
4482 *) as_dir=$as_dir/ ;;
4483 esac
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4486 ac_cv_prog_ac_ct_CC="gcc"
4487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4488 break 2
4489 fi
4490 done
4491 done
4492 IFS=$as_save_IFS
4493
4494 fi
4495 fi
4496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4497 if test -n "$ac_ct_CC"; then
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4499 printf "%s\n" "$ac_ct_CC" >&6; }
4500 else
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 printf "%s\n" "no" >&6; }
4503 fi
4504
4505 if test "x$ac_ct_CC" = x; then
4506 CC=""
4507 else
4508 case $cross_compiling:$ac_tool_warned in
4509 yes:)
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4512 ac_tool_warned=yes ;;
4513 esac
4514 CC=$ac_ct_CC
4515 fi
4516 else
4517 CC="$ac_cv_prog_CC"
4518 fi
4519
4520 if test -z "$CC"; then
4521 if test -n "$ac_tool_prefix"; then
4522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}cc; ac_word=$2
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 printf %s "checking for $ac_word... " >&6; }
4526 if test ${ac_cv_prog_CC+y}
4527 then :
4528 printf %s "(cached) " >&6
4529 else $as_nop
4530 if test -n "$CC"; then
4531 ac_cv_prog_CC="$CC" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536 IFS=$as_save_IFS
4537 case $as_dir in #(((
4538 '') as_dir=./ ;;
4539 */) ;;
4540 *) as_dir=$as_dir/ ;;
4541 esac
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_CC="${ac_tool_prefix}cc"
4545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552 fi
4553 fi
4554 CC=$ac_cv_prog_CC
4555 if test -n "$CC"; then
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4557 printf "%s\n" "$CC" >&6; }
4558 else
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 printf "%s\n" "no" >&6; }
4561 fi
4562
4563
4564 fi
4565 fi
4566 if test -z "$CC"; then
4567 # Extract the first word of "cc", so it can be a program name with args.
4568 set dummy cc; ac_word=$2
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 printf %s "checking for $ac_word... " >&6; }
4571 if test ${ac_cv_prog_CC+y}
4572 then :
4573 printf %s "(cached) " >&6
4574 else $as_nop
4575 if test -n "$CC"; then
4576 ac_cv_prog_CC="$CC" # Let the user override the test.
4577 else
4578 ac_prog_rejected=no
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582 IFS=$as_save_IFS
4583 case $as_dir in #(((
4584 '') as_dir=./ ;;
4585 */) ;;
4586 *) as_dir=$as_dir/ ;;
4587 esac
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4590 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4591 ac_prog_rejected=yes
4592 continue
4593 fi
4594 ac_cv_prog_CC="cc"
4595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4596 break 2
4597 fi
4598 done
4599 done
4600 IFS=$as_save_IFS
4601
4602 if test $ac_prog_rejected = yes; then
4603 # We found a bogon in the path, so make sure we never use it.
4604 set dummy $ac_cv_prog_CC
4605 shift
4606 if test $# != 0; then
4607 # We chose a different compiler from the bogus one.
4608 # However, it has the same basename, so the bogon will be chosen
4609 # first if we set CC to just the basename; use the full file name.
4610 shift
4611 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4612 fi
4613 fi
4614 fi
4615 fi
4616 CC=$ac_cv_prog_CC
4617 if test -n "$CC"; then
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4619 printf "%s\n" "$CC" >&6; }
4620 else
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 printf "%s\n" "no" >&6; }
4623 fi
4624
4625
4626 fi
4627 if test -z "$CC"; then
4628 if test -n "$ac_tool_prefix"; then
4629 for ac_prog in cl.exe
4630 do
4631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 printf %s "checking for $ac_word... " >&6; }
4635 if test ${ac_cv_prog_CC+y}
4636 then :
4637 printf %s "(cached) " >&6
4638 else $as_nop
4639 if test -n "$CC"; then
4640 ac_cv_prog_CC="$CC" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645 IFS=$as_save_IFS
4646 case $as_dir in #(((
4647 '') as_dir=./ ;;
4648 */) ;;
4649 *) as_dir=$as_dir/ ;;
4650 esac
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657 done
4658 done
4659 IFS=$as_save_IFS
4660
4661 fi
4662 fi
4663 CC=$ac_cv_prog_CC
4664 if test -n "$CC"; then
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4666 printf "%s\n" "$CC" >&6; }
4667 else
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 printf "%s\n" "no" >&6; }
4670 fi
4671
4672
4673 test -n "$CC" && break
4674 done
4675 fi
4676 if test -z "$CC"; then
4677 ac_ct_CC=$CC
4678 for ac_prog in cl.exe
4679 do
4680 # Extract the first word of "$ac_prog", so it can be a program name with args.
4681 set dummy $ac_prog; ac_word=$2
4682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 printf %s "checking for $ac_word... " >&6; }
4684 if test ${ac_cv_prog_ac_ct_CC+y}
4685 then :
4686 printf %s "(cached) " >&6
4687 else $as_nop
4688 if test -n "$ac_ct_CC"; then
4689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694 IFS=$as_save_IFS
4695 case $as_dir in #(((
4696 '') as_dir=./ ;;
4697 */) ;;
4698 *) as_dir=$as_dir/ ;;
4699 esac
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4702 ac_cv_prog_ac_ct_CC="$ac_prog"
4703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4704 break 2
4705 fi
4706 done
4707 done
4708 IFS=$as_save_IFS
4709
4710 fi
4711 fi
4712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4713 if test -n "$ac_ct_CC"; then
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4715 printf "%s\n" "$ac_ct_CC" >&6; }
4716 else
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 printf "%s\n" "no" >&6; }
4719 fi
4720
4721
4722 test -n "$ac_ct_CC" && break
4723 done
4724
4725 if test "x$ac_ct_CC" = x; then
4726 CC=""
4727 else
4728 case $cross_compiling:$ac_tool_warned in
4729 yes:)
4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4731 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4732 ac_tool_warned=yes ;;
4733 esac
4734 CC=$ac_ct_CC
4735 fi
4736 fi
4737
4738 fi
4739 if test -z "$CC"; then
4740 if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4742 set dummy ${ac_tool_prefix}clang; ac_word=$2
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 printf %s "checking for $ac_word... " >&6; }
4745 if test ${ac_cv_prog_CC+y}
4746 then :
4747 printf %s "(cached) " >&6
4748 else $as_nop
4749 if test -n "$CC"; then
4750 ac_cv_prog_CC="$CC" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755 IFS=$as_save_IFS
4756 case $as_dir in #(((
4757 '') as_dir=./ ;;
4758 */) ;;
4759 *) as_dir=$as_dir/ ;;
4760 esac
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4763 ac_cv_prog_CC="${ac_tool_prefix}clang"
4764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4765 break 2
4766 fi
4767 done
4768 done
4769 IFS=$as_save_IFS
4770
4771 fi
4772 fi
4773 CC=$ac_cv_prog_CC
4774 if test -n "$CC"; then
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4776 printf "%s\n" "$CC" >&6; }
4777 else
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 printf "%s\n" "no" >&6; }
4780 fi
4781
4782
4783 fi
4784 if test -z "$ac_cv_prog_CC"; then
4785 ac_ct_CC=$CC
4786 # Extract the first word of "clang", so it can be a program name with args.
4787 set dummy clang; ac_word=$2
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 printf %s "checking for $ac_word... " >&6; }
4790 if test ${ac_cv_prog_ac_ct_CC+y}
4791 then :
4792 printf %s "(cached) " >&6
4793 else $as_nop
4794 if test -n "$ac_ct_CC"; then
4795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800 IFS=$as_save_IFS
4801 case $as_dir in #(((
4802 '') as_dir=./ ;;
4803 */) ;;
4804 *) as_dir=$as_dir/ ;;
4805 esac
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4808 ac_cv_prog_ac_ct_CC="clang"
4809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812 done
4813 done
4814 IFS=$as_save_IFS
4815
4816 fi
4817 fi
4818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4819 if test -n "$ac_ct_CC"; then
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4821 printf "%s\n" "$ac_ct_CC" >&6; }
4822 else
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 printf "%s\n" "no" >&6; }
4825 fi
4826
4827 if test "x$ac_ct_CC" = x; then
4828 CC=""
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831 yes:)
4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4835 esac
4836 CC=$ac_ct_CC
4837 fi
4838 else
4839 CC="$ac_cv_prog_CC"
4840 fi
4841
4842 fi
4843
4844
4845 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4846 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4847 as_fn_error $? "no acceptable C compiler found in \$PATH
4848 See \`config.log' for more details" "$LINENO" 5; }
4849
4850 # Provide some information about the compiler.
4851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4852 set X $ac_compile
4853 ac_compiler=$2
4854 for ac_option in --version -v -V -qversion -version; do
4855 { { ac_try="$ac_compiler $ac_option >&5"
4856 case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859 esac
4860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4861 printf "%s\n" "$ac_try_echo"; } >&5
4862 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4863 ac_status=$?
4864 if test -s conftest.err; then
4865 sed '10a\
4866 ... rest of stderr output deleted ...
4867 10q' conftest.err >conftest.er1
4868 cat conftest.er1 >&5
4869 fi
4870 rm -f conftest.er1 conftest.err
4871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4872 test $ac_status = 0; }
4873 done
4874
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877
4878 int
4879 main (void)
4880 {
4881
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 ac_clean_files_save=$ac_clean_files
4887 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4888 # Try to create an executable without -o first, disregard a.out.
4889 # It will help us diagnose broken compilers, and finding out an intuition
4890 # of exeext.
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4892 printf %s "checking whether the C compiler works... " >&6; }
4893 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4894
4895 # The possible output files:
4896 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4897
4898 ac_rmfiles=
4899 for ac_file in $ac_files
4900 do
4901 case $ac_file in
4902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4903 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4904 esac
4905 done
4906 rm -f $ac_rmfiles
4907
4908 if { { ac_try="$ac_link_default"
4909 case "(($ac_try" in
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4912 esac
4913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4914 printf "%s\n" "$ac_try_echo"; } >&5
4915 (eval "$ac_link_default") 2>&5
4916 ac_status=$?
4917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }
4919 then :
4920 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4921 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4922 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4923 # so that the user can short-circuit this test for compilers unknown to
4924 # Autoconf.
4925 for ac_file in $ac_files ''
4926 do
4927 test -f "$ac_file" || continue
4928 case $ac_file in
4929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4930 ;;
4931 [ab].out )
4932 # We found the default executable, but exeext='' is most
4933 # certainly right.
4934 break;;
4935 *.* )
4936 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4937 then :; else
4938 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4939 fi
4940 # We set ac_cv_exeext here because the later test for it is not
4941 # safe: cross compilers may not add the suffix if given an `-o'
4942 # argument, so we may need to know it at that point already.
4943 # Even if this section looks crufty: it has the advantage of
4944 # actually working.
4945 break;;
4946 * )
4947 break;;
4948 esac
4949 done
4950 test "$ac_cv_exeext" = no && ac_cv_exeext=
4951
4952 else $as_nop
4953 ac_file=''
4954 fi
4955 if test -z "$ac_file"
4956 then :
4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 printf "%s\n" "no" >&6; }
4959 printf "%s\n" "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4963 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4964 as_fn_error 77 "C compiler cannot create executables
4965 See \`config.log' for more details" "$LINENO" 5; }
4966 else $as_nop
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4968 printf "%s\n" "yes" >&6; }
4969 fi
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4971 printf %s "checking for C compiler default output file name... " >&6; }
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4973 printf "%s\n" "$ac_file" >&6; }
4974 ac_exeext=$ac_cv_exeext
4975
4976 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4977 ac_clean_files=$ac_clean_files_save
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4979 printf %s "checking for suffix of executables... " >&6; }
4980 if { { ac_try="$ac_link"
4981 case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984 esac
4985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4986 printf "%s\n" "$ac_try_echo"; } >&5
4987 (eval "$ac_link") 2>&5
4988 ac_status=$?
4989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4990 test $ac_status = 0; }
4991 then :
4992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4993 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4994 # work properly (i.e., refer to `conftest.exe'), while it won't with
4995 # `rm'.
4996 for ac_file in conftest.exe conftest conftest.*; do
4997 test -f "$ac_file" || continue
4998 case $ac_file in
4999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5001 break;;
5002 * ) break;;
5003 esac
5004 done
5005 else $as_nop
5006 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5007 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5008 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5009 See \`config.log' for more details" "$LINENO" 5; }
5010 fi
5011 rm -f conftest conftest$ac_cv_exeext
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5013 printf "%s\n" "$ac_cv_exeext" >&6; }
5014
5015 rm -f conftest.$ac_ext
5016 EXEEXT=$ac_cv_exeext
5017 ac_exeext=$EXEEXT
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 #include <stdio.h>
5021 int
5022 main (void)
5023 {
5024 FILE *f = fopen ("conftest.out", "w");
5025 return ferror (f) || fclose (f) != 0;
5026
5027 ;
5028 return 0;
5029 }
5030 _ACEOF
5031 ac_clean_files="$ac_clean_files conftest.out"
5032 # Check that the compiler produces executables we can run. If not, either
5033 # the compiler is broken, or we cross compile.
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5035 printf %s "checking whether we are cross compiling... " >&6; }
5036 if test "$cross_compiling" != yes; then
5037 { { ac_try="$ac_link"
5038 case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041 esac
5042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5043 printf "%s\n" "$ac_try_echo"; } >&5
5044 (eval "$ac_link") 2>&5
5045 ac_status=$?
5046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5047 test $ac_status = 0; }
5048 if { ac_try='./conftest$ac_cv_exeext'
5049 { { case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052 esac
5053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5054 printf "%s\n" "$ac_try_echo"; } >&5
5055 (eval "$ac_try") 2>&5
5056 ac_status=$?
5057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5058 test $ac_status = 0; }; }; then
5059 cross_compiling=no
5060 else
5061 if test "$cross_compiling" = maybe; then
5062 cross_compiling=yes
5063 else
5064 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5065 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5066 as_fn_error 77 "cannot run C compiled programs.
5067 If you meant to cross compile, use \`--host'.
5068 See \`config.log' for more details" "$LINENO" 5; }
5069 fi
5070 fi
5071 fi
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5073 printf "%s\n" "$cross_compiling" >&6; }
5074
5075 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5076 ac_clean_files=$ac_clean_files_save
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5078 printf %s "checking for suffix of object files... " >&6; }
5079 if test ${ac_cv_objext+y}
5080 then :
5081 printf %s "(cached) " >&6
5082 else $as_nop
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085
5086 int
5087 main (void)
5088 {
5089
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 rm -f conftest.o conftest.obj
5095 if { { ac_try="$ac_compile"
5096 case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099 esac
5100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5101 printf "%s\n" "$ac_try_echo"; } >&5
5102 (eval "$ac_compile") 2>&5
5103 ac_status=$?
5104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105 test $ac_status = 0; }
5106 then :
5107 for ac_file in conftest.o conftest.obj conftest.*; do
5108 test -f "$ac_file" || continue;
5109 case $ac_file in
5110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5111 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5112 break;;
5113 esac
5114 done
5115 else $as_nop
5116 printf "%s\n" "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5120 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5121 as_fn_error $? "cannot compute suffix of object files: cannot compile
5122 See \`config.log' for more details" "$LINENO" 5; }
5123 fi
5124 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5125 fi
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5127 printf "%s\n" "$ac_cv_objext" >&6; }
5128 OBJEXT=$ac_cv_objext
5129 ac_objext=$OBJEXT
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5131 printf %s "checking whether the compiler supports GNU C... " >&6; }
5132 if test ${ac_cv_c_compiler_gnu+y}
5133 then :
5134 printf %s "(cached) " >&6
5135 else $as_nop
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138
5139 int
5140 main (void)
5141 {
5142 #ifndef __GNUC__
5143 choke me
5144 #endif
5145
5146 ;
5147 return 0;
5148 }
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"
5151 then :
5152 ac_compiler_gnu=yes
5153 else $as_nop
5154 ac_compiler_gnu=no
5155 fi
5156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5157 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5158
5159 fi
5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5161 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5163
5164 if test $ac_compiler_gnu = yes; then
5165 GCC=yes
5166 else
5167 GCC=
5168 fi
5169 ac_test_CFLAGS=${CFLAGS+y}
5170 ac_save_CFLAGS=$CFLAGS
5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5172 printf %s "checking whether $CC accepts -g... " >&6; }
5173 if test ${ac_cv_prog_cc_g+y}
5174 then :
5175 printf %s "(cached) " >&6
5176 else $as_nop
5177 ac_save_c_werror_flag=$ac_c_werror_flag
5178 ac_c_werror_flag=yes
5179 ac_cv_prog_cc_g=no
5180 CFLAGS="-g"
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183
5184 int
5185 main (void)
5186 {
5187
5188 ;
5189 return 0;
5190 }
5191 _ACEOF
5192 if ac_fn_c_try_compile "$LINENO"
5193 then :
5194 ac_cv_prog_cc_g=yes
5195 else $as_nop
5196 CFLAGS=""
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199
5200 int
5201 main (void)
5202 {
5203
5204 ;
5205 return 0;
5206 }
5207 _ACEOF
5208 if ac_fn_c_try_compile "$LINENO"
5209 then :
5210
5211 else $as_nop
5212 ac_c_werror_flag=$ac_save_c_werror_flag
5213 CFLAGS="-g"
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216
5217 int
5218 main (void)
5219 {
5220
5221 ;
5222 return 0;
5223 }
5224 _ACEOF
5225 if ac_fn_c_try_compile "$LINENO"
5226 then :
5227 ac_cv_prog_cc_g=yes
5228 fi
5229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5230 fi
5231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5232 fi
5233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5234 ac_c_werror_flag=$ac_save_c_werror_flag
5235 fi
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5237 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5238 if test $ac_test_CFLAGS; then
5239 CFLAGS=$ac_save_CFLAGS
5240 elif test $ac_cv_prog_cc_g = yes; then
5241 if test "$GCC" = yes; then
5242 CFLAGS="-g -O2"
5243 else
5244 CFLAGS="-g"
5245 fi
5246 else
5247 if test "$GCC" = yes; then
5248 CFLAGS="-O2"
5249 else
5250 CFLAGS=
5251 fi
5252 fi
5253 ac_prog_cc_stdc=no
5254 if test x$ac_prog_cc_stdc = xno
5255 then :
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5257 printf %s "checking for $CC option to enable C11 features... " >&6; }
5258 if test ${ac_cv_prog_cc_c11+y}
5259 then :
5260 printf %s "(cached) " >&6
5261 else $as_nop
5262 ac_cv_prog_cc_c11=no
5263 ac_save_CC=$CC
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 $ac_c_conftest_c11_program
5267 _ACEOF
5268 for ac_arg in '' -std=gnu11
5269 do
5270 CC="$ac_save_CC $ac_arg"
5271 if ac_fn_c_try_compile "$LINENO"
5272 then :
5273 ac_cv_prog_cc_c11=$ac_arg
5274 fi
5275 rm -f core conftest.err conftest.$ac_objext conftest.beam
5276 test "x$ac_cv_prog_cc_c11" != "xno" && break
5277 done
5278 rm -f conftest.$ac_ext
5279 CC=$ac_save_CC
5280 fi
5281
5282 if test "x$ac_cv_prog_cc_c11" = xno
5283 then :
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5285 printf "%s\n" "unsupported" >&6; }
5286 else $as_nop
5287 if test "x$ac_cv_prog_cc_c11" = x
5288 then :
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5290 printf "%s\n" "none needed" >&6; }
5291 else $as_nop
5292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5293 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5294 CC="$CC $ac_cv_prog_cc_c11"
5295 fi
5296 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5297 ac_prog_cc_stdc=c11
5298 fi
5299 fi
5300 if test x$ac_prog_cc_stdc = xno
5301 then :
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5303 printf %s "checking for $CC option to enable C99 features... " >&6; }
5304 if test ${ac_cv_prog_cc_c99+y}
5305 then :
5306 printf %s "(cached) " >&6
5307 else $as_nop
5308 ac_cv_prog_cc_c99=no
5309 ac_save_CC=$CC
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5312 $ac_c_conftest_c99_program
5313 _ACEOF
5314 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5315 do
5316 CC="$ac_save_CC $ac_arg"
5317 if ac_fn_c_try_compile "$LINENO"
5318 then :
5319 ac_cv_prog_cc_c99=$ac_arg
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.beam
5322 test "x$ac_cv_prog_cc_c99" != "xno" && break
5323 done
5324 rm -f conftest.$ac_ext
5325 CC=$ac_save_CC
5326 fi
5327
5328 if test "x$ac_cv_prog_cc_c99" = xno
5329 then :
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5331 printf "%s\n" "unsupported" >&6; }
5332 else $as_nop
5333 if test "x$ac_cv_prog_cc_c99" = x
5334 then :
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5336 printf "%s\n" "none needed" >&6; }
5337 else $as_nop
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5339 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5340 CC="$CC $ac_cv_prog_cc_c99"
5341 fi
5342 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5343 ac_prog_cc_stdc=c99
5344 fi
5345 fi
5346 if test x$ac_prog_cc_stdc = xno
5347 then :
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5349 printf %s "checking for $CC option to enable C89 features... " >&6; }
5350 if test ${ac_cv_prog_cc_c89+y}
5351 then :
5352 printf %s "(cached) " >&6
5353 else $as_nop
5354 ac_cv_prog_cc_c89=no
5355 ac_save_CC=$CC
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 $ac_c_conftest_c89_program
5359 _ACEOF
5360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5361 do
5362 CC="$ac_save_CC $ac_arg"
5363 if ac_fn_c_try_compile "$LINENO"
5364 then :
5365 ac_cv_prog_cc_c89=$ac_arg
5366 fi
5367 rm -f core conftest.err conftest.$ac_objext conftest.beam
5368 test "x$ac_cv_prog_cc_c89" != "xno" && break
5369 done
5370 rm -f conftest.$ac_ext
5371 CC=$ac_save_CC
5372 fi
5373
5374 if test "x$ac_cv_prog_cc_c89" = xno
5375 then :
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5377 printf "%s\n" "unsupported" >&6; }
5378 else $as_nop
5379 if test "x$ac_cv_prog_cc_c89" = x
5380 then :
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5382 printf "%s\n" "none needed" >&6; }
5383 else $as_nop
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5385 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5386 CC="$CC $ac_cv_prog_cc_c89"
5387 fi
5388 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5389 ac_prog_cc_stdc=c89
5390 fi
5391 fi
5392
5393 ac_ext=c
5394 ac_cpp='$CPP $CPPFLAGS'
5395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5398
5399
5400 ac_ext=c
5401 ac_cpp='$CPP $CPPFLAGS'
5402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5406 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5407 if test ${am_cv_prog_cc_c_o+y}
5408 then :
5409 printf %s "(cached) " >&6
5410 else $as_nop
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413
5414 int
5415 main (void)
5416 {
5417
5418 ;
5419 return 0;
5420 }
5421 _ACEOF
5422 # Make sure it works both with $CC and with simple cc.
5423 # Following AC_PROG_CC_C_O, we do the test twice because some
5424 # compilers refuse to overwrite an existing .o file with -o,
5425 # though they will create one.
5426 am_cv_prog_cc_c_o=yes
5427 for am_i in 1 2; do
5428 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5429 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } \
5433 && test -f conftest2.$ac_objext; then
5434 : OK
5435 else
5436 am_cv_prog_cc_c_o=no
5437 break
5438 fi
5439 done
5440 rm -f core conftest*
5441 unset am_i
5442 fi
5443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5444 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5445 if test "$am_cv_prog_cc_c_o" != yes; then
5446 # Losing compiler, so override with the script.
5447 # FIXME: It is wrong to rewrite CC.
5448 # But if we don't then we get into trouble of one sort or another.
5449 # A longer-term fix would be to have automake use am__CC in this case,
5450 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5451 CC="$am_aux_dir/compile $CC"
5452 fi
5453 ac_ext=c
5454 ac_cpp='$CPP $CPPFLAGS'
5455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5458
5459 DEPDIR="${am__leading_dot}deps"
5460
5461 ac_config_commands="$ac_config_commands depfiles"
5462
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5464 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5465 cat > confinc.mk << 'END'
5466 am__doit:
5467 @echo this is the am__doit target >confinc.out
5468 .PHONY: am__doit
5469 END
5470 am__include="#"
5471 am__quote=
5472 # BSD make does it like this.
5473 echo '.include "confinc.mk" # ignored' > confmf.BSD
5474 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5475 echo 'include confinc.mk # ignored' > confmf.GNU
5476 _am_result=no
5477 for s in GNU BSD; do
5478 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5479 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }
5483 case $?:`cat confinc.out 2>/dev/null` in #(
5484 '0:this is the am__doit target') :
5485 case $s in #(
5486 BSD) :
5487 am__include='.include' am__quote='"' ;; #(
5488 *) :
5489 am__include='include' am__quote='' ;;
5490 esac ;; #(
5491 *) :
5492 ;;
5493 esac
5494 if test "$am__include" != "#"; then
5495 _am_result="yes ($s style)"
5496 break
5497 fi
5498 done
5499 rm -f confinc.* confmf.*
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5501 printf "%s\n" "${_am_result}" >&6; }
5502
5503 # Check whether --enable-dependency-tracking was given.
5504 if test ${enable_dependency_tracking+y}
5505 then :
5506 enableval=$enable_dependency_tracking;
5507 fi
5508
5509 if test "x$enable_dependency_tracking" != xno; then
5510 am_depcomp="$ac_aux_dir/depcomp"
5511 AMDEPBACKSLASH='\'
5512 am__nodep='_no'
5513 fi
5514 if test "x$enable_dependency_tracking" != xno; then
5515 AMDEP_TRUE=
5516 AMDEP_FALSE='#'
5517 else
5518 AMDEP_TRUE='#'
5519 AMDEP_FALSE=
5520 fi
5521
5522
5523
5524 depcc="$CC" am_compiler_list=
5525
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5527 printf %s "checking dependency style of $depcc... " >&6; }
5528 if test ${am_cv_CC_dependencies_compiler_type+y}
5529 then :
5530 printf %s "(cached) " >&6
5531 else $as_nop
5532 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5533 # We make a subdir and do the tests there. Otherwise we can end up
5534 # making bogus files that we don't know about and never remove. For
5535 # instance it was reported that on HP-UX the gcc test will end up
5536 # making a dummy file named 'D' -- because '-MD' means "put the output
5537 # in D".
5538 rm -rf conftest.dir
5539 mkdir conftest.dir
5540 # Copy depcomp to subdir because otherwise we won't find it if we're
5541 # using a relative directory.
5542 cp "$am_depcomp" conftest.dir
5543 cd conftest.dir
5544 # We will build objects and dependencies in a subdirectory because
5545 # it helps to detect inapplicable dependency modes. For instance
5546 # both Tru64's cc and ICC support -MD to output dependencies as a
5547 # side effect of compilation, but ICC will put the dependencies in
5548 # the current directory while Tru64 will put them in the object
5549 # directory.
5550 mkdir sub
5551
5552 am_cv_CC_dependencies_compiler_type=none
5553 if test "$am_compiler_list" = ""; then
5554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5555 fi
5556 am__universal=false
5557 case " $depcc " in #(
5558 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5559 esac
5560
5561 for depmode in $am_compiler_list; do
5562 # Setup a source with many dependencies, because some compilers
5563 # like to wrap large dependency lists on column 80 (with \), and
5564 # we should not choose a depcomp mode which is confused by this.
5565 #
5566 # We need to recreate these files for each test, as the compiler may
5567 # overwrite some of them when testing with obscure command lines.
5568 # This happens at least with the AIX C compiler.
5569 : > sub/conftest.c
5570 for i in 1 2 3 4 5 6; do
5571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5572 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5573 # Solaris 10 /bin/sh.
5574 echo '/* dummy */' > sub/conftst$i.h
5575 done
5576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5577
5578 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5579 # mode. It turns out that the SunPro C++ compiler does not properly
5580 # handle '-M -o', and we need to detect this. Also, some Intel
5581 # versions had trouble with output in subdirs.
5582 am__obj=sub/conftest.${OBJEXT-o}
5583 am__minus_obj="-o $am__obj"
5584 case $depmode in
5585 gcc)
5586 # This depmode causes a compiler race in universal mode.
5587 test "$am__universal" = false || continue
5588 ;;
5589 nosideeffect)
5590 # After this tag, mechanisms are not by side-effect, so they'll
5591 # only be used when explicitly requested.
5592 if test "x$enable_dependency_tracking" = xyes; then
5593 continue
5594 else
5595 break
5596 fi
5597 ;;
5598 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5599 # This compiler won't grok '-c -o', but also, the minuso test has
5600 # not run yet. These depmodes are late enough in the game, and
5601 # so weak that their functioning should not be impacted.
5602 am__obj=conftest.${OBJEXT-o}
5603 am__minus_obj=
5604 ;;
5605 none) break ;;
5606 esac
5607 if depmode=$depmode \
5608 source=sub/conftest.c object=$am__obj \
5609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5611 >/dev/null 2>conftest.err &&
5612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5616 # icc doesn't choke on unknown options, it will just issue warnings
5617 # or remarks (even with -Werror). So we grep stderr for any message
5618 # that says an option was ignored or not supported.
5619 # When given -MP, icc 7.0 and 7.1 complain thusly:
5620 # icc: Command line warning: ignoring option '-M'; no argument required
5621 # The diagnosis changed in icc 8.0:
5622 # icc: Command line remark: option '-MP' not supported
5623 if (grep 'ignoring option' conftest.err ||
5624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5625 am_cv_CC_dependencies_compiler_type=$depmode
5626 break
5627 fi
5628 fi
5629 done
5630
5631 cd ..
5632 rm -rf conftest.dir
5633 else
5634 am_cv_CC_dependencies_compiler_type=none
5635 fi
5636
5637 fi
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5639 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5640 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5641
5642 if
5643 test "x$enable_dependency_tracking" != xno \
5644 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5645 am__fastdepCC_TRUE=
5646 am__fastdepCC_FALSE='#'
5647 else
5648 am__fastdepCC_TRUE='#'
5649 am__fastdepCC_FALSE=
5650 fi
5651
5652
5653
5654 # For strnlen() and vasprintf().
5655
5656 ac_header= ac_cache=
5657 for ac_item in $ac_header_c_list
5658 do
5659 if test $ac_cache; then
5660 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5661 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5662 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5663 fi
5664 ac_header= ac_cache=
5665 elif test $ac_header; then
5666 ac_cache=$ac_item
5667 else
5668 ac_header=$ac_item
5669 fi
5670 done
5671
5672
5673
5674
5675
5676
5677
5678
5679 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5680 then :
5681
5682 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5683
5684 fi
5685
5686
5687
5688
5689
5690
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5692 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5693 if test ${ac_cv_safe_to_define___extensions__+y}
5694 then :
5695 printf %s "(cached) " >&6
5696 else $as_nop
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699
5700 # define __EXTENSIONS__ 1
5701 $ac_includes_default
5702 int
5703 main (void)
5704 {
5705
5706 ;
5707 return 0;
5708 }
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"
5711 then :
5712 ac_cv_safe_to_define___extensions__=yes
5713 else $as_nop
5714 ac_cv_safe_to_define___extensions__=no
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5717 fi
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5719 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5720
5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5722 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5723 if test ${ac_cv_should_define__xopen_source+y}
5724 then :
5725 printf %s "(cached) " >&6
5726 else $as_nop
5727 ac_cv_should_define__xopen_source=no
5728 if test $ac_cv_header_wchar_h = yes
5729 then :
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732
5733 #include <wchar.h>
5734 mbstate_t x;
5735 int
5736 main (void)
5737 {
5738
5739 ;
5740 return 0;
5741 }
5742 _ACEOF
5743 if ac_fn_c_try_compile "$LINENO"
5744 then :
5745
5746 else $as_nop
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749
5750 #define _XOPEN_SOURCE 500
5751 #include <wchar.h>
5752 mbstate_t x;
5753 int
5754 main (void)
5755 {
5756
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 if ac_fn_c_try_compile "$LINENO"
5762 then :
5763 ac_cv_should_define__xopen_source=yes
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5766 fi
5767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5768 fi
5769 fi
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5771 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5772
5773 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5774
5775 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5776
5777 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5778
5779 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5780
5781 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5782
5783 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5784
5785 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5786
5787 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5788
5789 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5790
5791 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5792
5793 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5794
5795 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5796
5797 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5798
5799 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5800
5801 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5802
5803 if test $ac_cv_header_minix_config_h = yes
5804 then :
5805 MINIX=yes
5806 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5807
5808 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5809
5810 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5811
5812 else $as_nop
5813 MINIX=
5814 fi
5815 if test $ac_cv_safe_to_define___extensions__ = yes
5816 then :
5817 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5818
5819 fi
5820 if test $ac_cv_should_define__xopen_source = yes
5821 then :
5822 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5823
5824 fi
5825
5826
5827 # Checks for typedefs, structures, and compiler characteristics.
5828 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5829 if test "x$ac_cv_type__Bool" = xyes
5830 then :
5831
5832 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
5833
5834
5835 fi
5836
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5838 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
5839 if test ${ac_cv_header_stdbool_h+y}
5840 then :
5841 printf %s "(cached) " >&6
5842 else $as_nop
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 #include <stdbool.h>
5846
5847 #ifndef __bool_true_false_are_defined
5848 #error "__bool_true_false_are_defined is not defined"
5849 #endif
5850 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
5851
5852 /* Regardless of whether this is C++ or "_Bool" is a
5853 valid type name, "true" and "false" should be usable
5854 in #if expressions and integer constant expressions,
5855 and "bool" should be a valid type name. */
5856
5857 #if !true
5858 #error "'true' is not true"
5859 #endif
5860 #if true != 1
5861 #error "'true' is not equal to 1"
5862 #endif
5863 char b[true == 1 ? 1 : -1];
5864 char c[true];
5865
5866 #if false
5867 #error "'false' is not false"
5868 #endif
5869 #if false != 0
5870 #error "'false' is not equal to 0"
5871 #endif
5872 char d[false == 0 ? 1 : -1];
5873
5874 enum { e = false, f = true, g = false * true, h = true * 256 };
5875
5876 char i[(bool) 0.5 == true ? 1 : -1];
5877 char j[(bool) 0.0 == false ? 1 : -1];
5878 char k[sizeof (bool) > 0 ? 1 : -1];
5879
5880 struct sb { bool s: 1; bool t; } s;
5881 char l[sizeof s.t > 0 ? 1 : -1];
5882
5883 /* The following fails for
5884 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5885 bool m[h];
5886 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
5887 char o[-1 - (bool) 0 < 0 ? 1 : -1];
5888 /* Catch a bug in an HP-UX C compiler. See
5889 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5890 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5891 */
5892 bool p = true;
5893 bool *pp = &p;
5894
5895 /* C 1999 specifies that bool, true, and false are to be
5896 macros, but C++ 2011 and later overrule this. */
5897 #if __cplusplus < 201103
5898 #ifndef bool
5899 #error "bool is not defined"
5900 #endif
5901 #ifndef false
5902 #error "false is not defined"
5903 #endif
5904 #ifndef true
5905 #error "true is not defined"
5906 #endif
5907 #endif
5908
5909 /* If _Bool is available, repeat with it all the tests
5910 above that used bool. */
5911 #ifdef HAVE__BOOL
5912 struct sB { _Bool s: 1; _Bool t; } t;
5913
5914 char q[(_Bool) 0.5 == true ? 1 : -1];
5915 char r[(_Bool) 0.0 == false ? 1 : -1];
5916 char u[sizeof (_Bool) > 0 ? 1 : -1];
5917 char v[sizeof t.t > 0 ? 1 : -1];
5918
5919 _Bool w[h];
5920 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
5921 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
5922 _Bool z = true;
5923 _Bool *pz = &p;
5924 #endif
5925
5926 int
5927 main (void)
5928 {
5929
5930 bool ps = &s;
5931 *pp |= p;
5932 *pp |= ! p;
5933
5934 #ifdef HAVE__BOOL
5935 _Bool pt = &t;
5936 *pz |= z;
5937 *pz |= ! z;
5938 #endif
5939
5940 /* Refer to every declared value, so they cannot be
5941 discarded as unused. */
5942 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
5943 + !l + !m + !n + !o + !p + !pp + !ps
5944 #ifdef HAVE__BOOL
5945 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
5946 #endif
5947 );
5948
5949 ;
5950 return 0;
5951 }
5952 _ACEOF
5953 if ac_fn_c_try_compile "$LINENO"
5954 then :
5955 ac_cv_header_stdbool_h=yes
5956 else $as_nop
5957 ac_cv_header_stdbool_h=no
5958 fi
5959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5960 fi
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5962 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
5963
5964 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5965 if test "x$ac_cv_type_mode_t" = xyes
5966 then :
5967
5968 printf "%s\n" "#define HAVE_MODE_T 1" >>confdefs.h
5969
5970
5971 else $as_nop
5972 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5974 as_fn_error $? "cannot find required type
5975 See \`config.log' for more details" "$LINENO" 5; }
5976 fi
5977 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5978 if test "x$ac_cv_type_off_t" = xyes
5979 then :
5980
5981 printf "%s\n" "#define HAVE_OFF_T 1" >>confdefs.h
5982
5983
5984 else $as_nop
5985 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5986 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5987 as_fn_error $? "cannot find required type
5988 See \`config.log' for more details" "$LINENO" 5; }
5989 fi
5990 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5991 if test "x$ac_cv_type_pid_t" = xyes
5992 then :
5993
5994 printf "%s\n" "#define HAVE_PID_T 1" >>confdefs.h
5995
5996
5997 else $as_nop
5998 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5999 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6000 as_fn_error $? "cannot find required type
6001 See \`config.log' for more details" "$LINENO" 5; }
6002 fi
6003 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6004 if test "x$ac_cv_type_size_t" = xyes
6005 then :
6006
6007 printf "%s\n" "#define HAVE_SIZE_T 1" >>confdefs.h
6008
6009
6010 else $as_nop
6011 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6012 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6013 as_fn_error $? "cannot find required type
6014 See \`config.log' for more details" "$LINENO" 5; }
6015 fi
6016 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
6017 if test "x$ac_cv_type_ssize_t" = xyes
6018 then :
6019
6020 printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
6021
6022
6023 else $as_nop
6024 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6025 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6026 as_fn_error $? "cannot find required type
6027 See \`config.log' for more details" "$LINENO" 5; }
6028 fi
6029
6030
6031 # Checks for library functions.
6032
6033 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
6034 "
6035 if test "x$ac_cv_type_pid_t" = xyes
6036 then :
6037
6038 else $as_nop
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041
6042 #if defined _WIN64 && !defined __CYGWIN__
6043 LLP64
6044 #endif
6045
6046 int
6047 main (void)
6048 {
6049
6050 ;
6051 return 0;
6052 }
6053
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"
6056 then :
6057 ac_pid_type='int'
6058 else $as_nop
6059 ac_pid_type='__int64'
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6062
6063 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
6064
6065
6066 fi
6067
6068
6069
6070 ac_func=
6071 for ac_item in $ac_func_c_list
6072 do
6073 if test $ac_func; then
6074 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
6075 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
6076 echo "#define $ac_item 1" >> confdefs.h
6077 fi
6078 ac_func=
6079 else
6080 ac_func=$ac_item
6081 fi
6082 done
6083
6084
6085
6086 if test "x$ac_cv_func_fork" = xyes; then
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6088 printf %s "checking for working fork... " >&6; }
6089 if test ${ac_cv_func_fork_works+y}
6090 then :
6091 printf %s "(cached) " >&6
6092 else $as_nop
6093 if test "$cross_compiling" = yes
6094 then :
6095 ac_cv_func_fork_works=cross
6096 else $as_nop
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 $ac_includes_default
6100 int
6101 main (void)
6102 {
6103
6104 /* By Ruediger Kuhlmann. */
6105 return fork () < 0;
6106
6107 ;
6108 return 0;
6109 }
6110 _ACEOF
6111 if ac_fn_c_try_run "$LINENO"
6112 then :
6113 ac_cv_func_fork_works=yes
6114 else $as_nop
6115 ac_cv_func_fork_works=no
6116 fi
6117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6118 conftest.$ac_objext conftest.beam conftest.$ac_ext
6119 fi
6120
6121 fi
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6123 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
6124
6125 else
6126 ac_cv_func_fork_works=$ac_cv_func_fork
6127 fi
6128 if test "x$ac_cv_func_fork_works" = xcross; then
6129 case $host in
6130 *-*-amigaos* | *-*-msdosdjgpp*)
6131 # Override, as these systems have only a dummy fork() stub
6132 ac_cv_func_fork_works=no
6133 ;;
6134 *)
6135 ac_cv_func_fork_works=yes
6136 ;;
6137 esac
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6139 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6140 fi
6141 ac_cv_func_vfork_works=$ac_cv_func_vfork
6142 if test "x$ac_cv_func_vfork" = xyes; then
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6144 printf %s "checking for working vfork... " >&6; }
6145 if test ${ac_cv_func_vfork_works+y}
6146 then :
6147 printf %s "(cached) " >&6
6148 else $as_nop
6149 if test "$cross_compiling" = yes
6150 then :
6151 ac_cv_func_vfork_works=cross
6152 else $as_nop
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6155 /* Thanks to Paul Eggert for this test. */
6156 $ac_includes_default
6157 #include <signal.h>
6158 #include <sys/wait.h>
6159 #ifdef HAVE_VFORK_H
6160 # include <vfork.h>
6161 #endif
6162
6163 static void
6164 do_nothing (int sig)
6165 {
6166 (void) sig;
6167 }
6168
6169 /* On some sparc systems, changes by the child to local and incoming
6170 argument registers are propagated back to the parent. The compiler
6171 is told about this with #include <vfork.h>, but some compilers
6172 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6173 static variable whose address is put into a register that is
6174 clobbered by the vfork. */
6175 static void
6176 sparc_address_test (int arg)
6177 {
6178 static pid_t child;
6179 if (!child) {
6180 child = vfork ();
6181 if (child < 0) {
6182 perror ("vfork");
6183 _exit(2);
6184 }
6185 if (!child) {
6186 arg = getpid();
6187 write(-1, "", 0);
6188 _exit (arg);
6189 }
6190 }
6191 }
6192
6193 int
6194 main (void)
6195 {
6196 pid_t parent = getpid ();
6197 pid_t child;
6198
6199 sparc_address_test (0);
6200
6201 /* On Solaris 2.4, changes by the child to the signal handler
6202 also munge signal handlers in the parent. To detect this,
6203 start by putting the parent's handler in a known state. */
6204 signal (SIGTERM, SIG_DFL);
6205
6206 child = vfork ();
6207
6208 if (child == 0) {
6209 /* Here is another test for sparc vfork register problems. This
6210 test uses lots of local variables, at least as many local
6211 variables as main has allocated so far including compiler
6212 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6213 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6214 reuse the register of parent for one of the local variables,
6215 since it will think that parent can't possibly be used any more
6216 in this routine. Assigning to the local variable will thus
6217 munge parent in the parent process. */
6218 pid_t
6219 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6220 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6221 /* Convince the compiler that p..p7 are live; otherwise, it might
6222 use the same hardware register for all 8 local variables. */
6223 if (p != p1 || p != p2 || p != p3 || p != p4
6224 || p != p5 || p != p6 || p != p7)
6225 _exit(1);
6226
6227 /* Alter the child's signal handler. */
6228 if (signal (SIGTERM, do_nothing) != SIG_DFL)
6229 _exit(1);
6230
6231 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6232 from child file descriptors. If the child closes a descriptor
6233 before it execs or exits, this munges the parent's descriptor
6234 as well. Test for this by closing stdout in the child. */
6235 _exit(close(fileno(stdout)) != 0);
6236 } else {
6237 int status;
6238 struct stat st;
6239
6240 while (wait(&status) != child)
6241 ;
6242 return (
6243 /* Was there some problem with vforking? */
6244 child < 0
6245
6246 /* Did the child munge the parent's signal handler? */
6247 || signal (SIGTERM, SIG_DFL) != SIG_DFL
6248
6249 /* Did the child fail? (This shouldn't happen.) */
6250 || status
6251
6252 /* Did the vfork/compiler bug occur? */
6253 || parent != getpid()
6254
6255 /* Did the file descriptor bug occur? */
6256 || fstat(fileno(stdout), &st) != 0
6257 );
6258 }
6259 }
6260 _ACEOF
6261 if ac_fn_c_try_run "$LINENO"
6262 then :
6263 ac_cv_func_vfork_works=yes
6264 else $as_nop
6265 ac_cv_func_vfork_works=no
6266 fi
6267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6268 conftest.$ac_objext conftest.beam conftest.$ac_ext
6269 fi
6270
6271 fi
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6273 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
6274
6275 fi;
6276 if test "x$ac_cv_func_fork_works" = xcross; then
6277 ac_cv_func_vfork_works=$ac_cv_func_vfork
6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6279 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6280 fi
6281
6282 if test "x$ac_cv_func_vfork_works" = xyes; then
6283
6284 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6285
6286 else
6287
6288 printf "%s\n" "#define vfork fork" >>confdefs.h
6289
6290 fi
6291 if test "x$ac_cv_func_fork_works" = xyes; then
6292
6293 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
6294
6295 fi
6296
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
6298 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
6299 if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
6300 then :
6301 printf %s "(cached) " >&6
6302 else $as_nop
6303 rm -f conftest.sym conftest.file
6304 echo >conftest.file
6305 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6306 if test "$cross_compiling" = yes
6307 then :
6308 case "$host_os" in # ((
6309 # Guess yes on glibc systems.
6310 *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
6311 # If we don't know, assume the worst.
6312 *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
6313 esac
6314 else $as_nop
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317 $ac_includes_default
6318 int
6319 main (void)
6320 {
6321 struct stat sbuf;
6322 /* Linux will dereference the symlink and fail, as required by POSIX.
6323 That is better in the sense that it means we will not
6324 have to compile and use the lstat wrapper. */
6325 return lstat ("conftest.sym/", &sbuf) == 0;
6326 ;
6327 return 0;
6328 }
6329 _ACEOF
6330 if ac_fn_c_try_run "$LINENO"
6331 then :
6332 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6333 else $as_nop
6334 ac_cv_func_lstat_dereferences_slashed_symlink=no
6335 fi
6336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6337 conftest.$ac_objext conftest.beam conftest.$ac_ext
6338 fi
6339
6340 else
6341 # If the `ln -s' command failed, then we probably don't even
6342 # have an lstat function.
6343 ac_cv_func_lstat_dereferences_slashed_symlink=no
6344 fi
6345 rm -f conftest.sym conftest.file
6346
6347 fi
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6349 printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6350
6351 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6352
6353 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
6354
6355
6356 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6357 case " $LIBOBJS " in
6358 *" lstat.$ac_objext "* ) ;;
6359 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6360 ;;
6361 esac
6362
6363 fi
6364
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
6366 printf %s "checking for working strnlen... " >&6; }
6367 if test ${ac_cv_func_strnlen_working+y}
6368 then :
6369 printf %s "(cached) " >&6
6370 else $as_nop
6371 if test "$cross_compiling" = yes
6372 then :
6373 # Guess no on AIX systems, yes otherwise.
6374 case "$host_os" in
6375 aix*) ac_cv_func_strnlen_working=no;;
6376 *) ac_cv_func_strnlen_working=yes;;
6377 esac
6378 else $as_nop
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h. */
6381 $ac_includes_default
6382 int
6383 main (void)
6384 {
6385
6386 #define S "foobar"
6387 #define S_LEN (sizeof S - 1)
6388
6389 /* At least one implementation is buggy: that of AIX 4.3 would
6390 give strnlen (S, 1) == 3. */
6391
6392 int i;
6393 for (i = 0; i < S_LEN + 1; ++i)
6394 {
6395 int expected = i <= S_LEN ? i : S_LEN;
6396 if (strnlen (S, i) != expected)
6397 return 1;
6398 }
6399 return 0;
6400
6401 ;
6402 return 0;
6403 }
6404 _ACEOF
6405 if ac_fn_c_try_run "$LINENO"
6406 then :
6407 ac_cv_func_strnlen_working=yes
6408 else $as_nop
6409 ac_cv_func_strnlen_working=no
6410 fi
6411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6412 conftest.$ac_objext conftest.beam conftest.$ac_ext
6413 fi
6414
6415 fi
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
6417 printf "%s\n" "$ac_cv_func_strnlen_working" >&6; }
6418 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
6419 *" strnlen.$ac_objext "* ) ;;
6420 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
6421 ;;
6422 esac
6423
6424
6425
6426 for ac_func in atexit dup2 ftruncate getcwd gettimeofday localtime_r memchr memset mkdir rmdir setlocale socket strcasecmp strchr strdup strerror strncasecmp strndup strrchr strspn strstr strtol strtoul
6427 do :
6428 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
6429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6430 if eval test \"x\$"$as_ac_var"\" = x"yes"
6431 then :
6432 cat >>confdefs.h <<_ACEOF
6433 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
6434 _ACEOF
6435
6436 else $as_nop
6437 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6438 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6439 as_fn_error $? "cannot find the $ac_func function, which i3lock requires
6440 See \`config.log' for more details" "$LINENO" 5; }
6441 fi
6442
6443 done
6444 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
6445 if test "x$ac_cv_func_explicit_bzero" = xyes
6446 then :
6447 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
6448
6449 fi
6450
6451
6452 # Check for libraries
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
6454 printf %s "checking for library containing floor... " >&6; }
6455 if test ${ac_cv_search_floor+y}
6456 then :
6457 printf %s "(cached) " >&6
6458 else $as_nop
6459 ac_func_search_save_LIBS=$LIBS
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462
6463 /* Override any GCC internal prototype to avoid an error.
6464 Use char because int might match the return type of a GCC
6465 builtin and then its argument prototype would still apply. */
6466 char floor ();
6467 int
6468 main (void)
6469 {
6470 return floor ();
6471 ;
6472 return 0;
6473 }
6474 _ACEOF
6475 for ac_lib in '' m
6476 do
6477 if test -z "$ac_lib"; then
6478 ac_res="none required"
6479 else
6480 ac_res=-l$ac_lib
6481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6482 fi
6483 if ac_fn_c_try_link "$LINENO"
6484 then :
6485 ac_cv_search_floor=$ac_res
6486 fi
6487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6488 conftest$ac_exeext
6489 if test ${ac_cv_search_floor+y}
6490 then :
6491 break
6492 fi
6493 done
6494 if test ${ac_cv_search_floor+y}
6495 then :
6496
6497 else $as_nop
6498 ac_cv_search_floor=no
6499 fi
6500 rm conftest.$ac_ext
6501 LIBS=$ac_func_search_save_LIBS
6502 fi
6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
6504 printf "%s\n" "$ac_cv_search_floor" >&6; }
6505 ac_res=$ac_cv_search_floor
6506 if test "$ac_res" != no
6507 then :
6508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6509
6510 else $as_nop
6511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6512 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6513 as_fn_error $? "cannot find the required floor() function despite trying to link with -lm
6514 See \`config.log' for more details" "$LINENO" 5; }
6515 fi
6516
6517
6518 # libev does not ship with a pkg-config file :(.
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ev_run" >&5
6520 printf %s "checking for library containing ev_run... " >&6; }
6521 if test ${ac_cv_search_ev_run+y}
6522 then :
6523 printf %s "(cached) " >&6
6524 else $as_nop
6525 ac_func_search_save_LIBS=$LIBS
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528
6529 /* Override any GCC internal prototype to avoid an error.
6530 Use char because int might match the return type of a GCC
6531 builtin and then its argument prototype would still apply. */
6532 char ev_run ();
6533 int
6534 main (void)
6535 {
6536 return ev_run ();
6537 ;
6538 return 0;
6539 }
6540 _ACEOF
6541 for ac_lib in '' ev
6542 do
6543 if test -z "$ac_lib"; then
6544 ac_res="none required"
6545 else
6546 ac_res=-l$ac_lib
6547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6548 fi
6549 if ac_fn_c_try_link "$LINENO"
6550 then :
6551 ac_cv_search_ev_run=$ac_res
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6554 conftest$ac_exeext
6555 if test ${ac_cv_search_ev_run+y}
6556 then :
6557 break
6558 fi
6559 done
6560 if test ${ac_cv_search_ev_run+y}
6561 then :
6562
6563 else $as_nop
6564 ac_cv_search_ev_run=no
6565 fi
6566 rm conftest.$ac_ext
6567 LIBS=$ac_func_search_save_LIBS
6568 fi
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ev_run" >&5
6570 printf "%s\n" "$ac_cv_search_ev_run" >&6; }
6571 ac_res=$ac_cv_search_ev_run
6572 if test "$ac_res" != no
6573 then :
6574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6575
6576 else $as_nop
6577 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6578 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6579 as_fn_error $? "cannot find the required ev_run() function despite trying to link with -lev
6580 See \`config.log' for more details" "$LINENO" 5; }
6581 fi
6582
6583
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
6585 printf %s "checking for library containing shm_open... " >&6; }
6586 if test ${ac_cv_search_shm_open+y}
6587 then :
6588 printf %s "(cached) " >&6
6589 else $as_nop
6590 ac_func_search_save_LIBS=$LIBS
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593
6594 /* Override any GCC internal prototype to avoid an error.
6595 Use char because int might match the return type of a GCC
6596 builtin and then its argument prototype would still apply. */
6597 char shm_open ();
6598 int
6599 main (void)
6600 {
6601 return shm_open ();
6602 ;
6603 return 0;
6604 }
6605 _ACEOF
6606 for ac_lib in '' rt
6607 do
6608 if test -z "$ac_lib"; then
6609 ac_res="none required"
6610 else
6611 ac_res=-l$ac_lib
6612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6613 fi
6614 if ac_fn_c_try_link "$LINENO"
6615 then :
6616 ac_cv_search_shm_open=$ac_res
6617 fi
6618 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6619 conftest$ac_exeext
6620 if test ${ac_cv_search_shm_open+y}
6621 then :
6622 break
6623 fi
6624 done
6625 if test ${ac_cv_search_shm_open+y}
6626 then :
6627
6628 else $as_nop
6629 ac_cv_search_shm_open=no
6630 fi
6631 rm conftest.$ac_ext
6632 LIBS=$ac_func_search_save_LIBS
6633 fi
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
6635 printf "%s\n" "$ac_cv_search_shm_open" >&6; }
6636 ac_res=$ac_cv_search_shm_open
6637 if test "$ac_res" != no
6638 then :
6639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6640
6641 fi
6642
6643
6644 # Use system-local-login instead of login on Arch and Gentoo
6645 if [ -f /etc/arch-release ] || [ -f /etc/gentoo-release ]; then
6646 echo "Using PAM for Arch/Gentoo"
6647 sed -i "s/^#auth include system-local-login/auth include system-local-login/g" ../pam/i3lock
6648 sed -i "s/^auth include login/#auth include login/g" ../pam/i3lock
6649 fi
6650
6651 # Only disable PAM on OpenBSD where i3lock uses BSD Auth instead
6652 case "$host" in
6653 *-openbsd*)
6654 # Nothing yet.
6655 ;;
6656 *)
6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pam_authenticate" >&5
6658 printf %s "checking for library containing pam_authenticate... " >&6; }
6659 if test ${ac_cv_search_pam_authenticate+y}
6660 then :
6661 printf %s "(cached) " >&6
6662 else $as_nop
6663 ac_func_search_save_LIBS=$LIBS
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666
6667 /* Override any GCC internal prototype to avoid an error.
6668 Use char because int might match the return type of a GCC
6669 builtin and then its argument prototype would still apply. */
6670 char pam_authenticate ();
6671 int
6672 main (void)
6673 {
6674 return pam_authenticate ();
6675 ;
6676 return 0;
6677 }
6678 _ACEOF
6679 for ac_lib in '' pam
6680 do
6681 if test -z "$ac_lib"; then
6682 ac_res="none required"
6683 else
6684 ac_res=-l$ac_lib
6685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6686 fi
6687 if ac_fn_c_try_link "$LINENO"
6688 then :
6689 ac_cv_search_pam_authenticate=$ac_res
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6692 conftest$ac_exeext
6693 if test ${ac_cv_search_pam_authenticate+y}
6694 then :
6695 break
6696 fi
6697 done
6698 if test ${ac_cv_search_pam_authenticate+y}
6699 then :
6700
6701 else $as_nop
6702 ac_cv_search_pam_authenticate=no
6703 fi
6704 rm conftest.$ac_ext
6705 LIBS=$ac_func_search_save_LIBS
6706 fi
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_authenticate" >&5
6708 printf "%s\n" "$ac_cv_search_pam_authenticate" >&6; }
6709 ac_res=$ac_cv_search_pam_authenticate
6710 if test "$ac_res" != no
6711 then :
6712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6713
6714 fi
6715
6716 ;;
6717 esac
6718
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
6720 printf %s "checking for library containing iconv_open... " >&6; }
6721 if test ${ac_cv_search_iconv_open+y}
6722 then :
6723 printf %s "(cached) " >&6
6724 else $as_nop
6725 ac_func_search_save_LIBS=$LIBS
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728
6729 /* Override any GCC internal prototype to avoid an error.
6730 Use char because int might match the return type of a GCC
6731 builtin and then its argument prototype would still apply. */
6732 char iconv_open ();
6733 int
6734 main (void)
6735 {
6736 return iconv_open ();
6737 ;
6738 return 0;
6739 }
6740 _ACEOF
6741 for ac_lib in '' iconv
6742 do
6743 if test -z "$ac_lib"; then
6744 ac_res="none required"
6745 else
6746 ac_res=-l$ac_lib
6747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6748 fi
6749 if ac_fn_c_try_link "$LINENO"
6750 then :
6751 ac_cv_search_iconv_open=$ac_res
6752 fi
6753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6754 conftest$ac_exeext
6755 if test ${ac_cv_search_iconv_open+y}
6756 then :
6757 break
6758 fi
6759 done
6760 if test ${ac_cv_search_iconv_open+y}
6761 then :
6762
6763 else $as_nop
6764 ac_cv_search_iconv_open=no
6765 fi
6766 rm conftest.$ac_ext
6767 LIBS=$ac_func_search_save_LIBS
6768 fi
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
6770 printf "%s\n" "$ac_cv_search_iconv_open" >&6; }
6771 ac_res=$ac_cv_search_iconv_open
6772 if test "$ac_res" != no
6773 then :
6774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6775
6776 else $as_nop
6777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6778 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6779 as_fn_error $? "cannot find the required iconv_open() function despite trying to link with -liconv
6780 See \`config.log' for more details" "$LINENO" 5; }
6781 fi
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6792 if test -n "$ac_tool_prefix"; then
6793 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 printf %s "checking for $ac_word... " >&6; }
6797 if test ${ac_cv_path_PKG_CONFIG+y}
6798 then :
6799 printf %s "(cached) " >&6
6800 else $as_nop
6801 case $PKG_CONFIG in
6802 [\\/]* | ?:[\\/]*)
6803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6804 ;;
6805 *)
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809 IFS=$as_save_IFS
6810 case $as_dir in #(((
6811 '') as_dir=./ ;;
6812 */) ;;
6813 *) as_dir=$as_dir/ ;;
6814 esac
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6817 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 ;;
6826 esac
6827 fi
6828 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6829 if test -n "$PKG_CONFIG"; then
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6831 printf "%s\n" "$PKG_CONFIG" >&6; }
6832 else
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 printf "%s\n" "no" >&6; }
6835 fi
6836
6837
6838 fi
6839 if test -z "$ac_cv_path_PKG_CONFIG"; then
6840 ac_pt_PKG_CONFIG=$PKG_CONFIG
6841 # Extract the first word of "pkg-config", so it can be a program name with args.
6842 set dummy pkg-config; ac_word=$2
6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 printf %s "checking for $ac_word... " >&6; }
6845 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6846 then :
6847 printf %s "(cached) " >&6
6848 else $as_nop
6849 case $ac_pt_PKG_CONFIG in
6850 [\\/]* | ?:[\\/]*)
6851 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6852 ;;
6853 *)
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857 IFS=$as_save_IFS
6858 case $as_dir in #(((
6859 '') as_dir=./ ;;
6860 */) ;;
6861 *) as_dir=$as_dir/ ;;
6862 esac
6863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6865 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6867 break 2
6868 fi
6869 done
6870 done
6871 IFS=$as_save_IFS
6872
6873 ;;
6874 esac
6875 fi
6876 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6877 if test -n "$ac_pt_PKG_CONFIG"; then
6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6879 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6880 else
6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 printf "%s\n" "no" >&6; }
6883 fi
6884
6885 if test "x$ac_pt_PKG_CONFIG" = x; then
6886 PKG_CONFIG=""
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892 ac_tool_warned=yes ;;
6893 esac
6894 PKG_CONFIG=$ac_pt_PKG_CONFIG
6895 fi
6896 else
6897 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6898 fi
6899
6900 fi
6901 if test -n "$PKG_CONFIG"; then
6902 _pkg_min_version=0.9.0
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6904 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6905 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6907 printf "%s\n" "yes" >&6; }
6908 else
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 printf "%s\n" "no" >&6; }
6911 PKG_CONFIG=""
6912 fi
6913 fi
6914
6915 pkg_failed=no
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xcb xcb-xkb xcb-xinerama xcb-randr xcb-composite" >&5
6917 printf %s "checking for xcb xcb-xkb xcb-xinerama xcb-randr xcb-composite... " >&6; }
6918
6919 if test -n "$XCB_CFLAGS"; then
6920 pkg_cv_XCB_CFLAGS="$XCB_CFLAGS"
6921 elif test -n "$PKG_CONFIG"; then
6922 if test -n "$PKG_CONFIG" && \
6923 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-xkb xcb-xinerama xcb-randr xcb-composite\""; } >&5
6924 ($PKG_CONFIG --exists --print-errors "xcb xcb-xkb xcb-xinerama xcb-randr xcb-composite") 2>&5
6925 ac_status=$?
6926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6927 test $ac_status = 0; }; then
6928 pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb xcb-xkb xcb-xinerama xcb-randr xcb-composite" 2>/dev/null`
6929 test "x$?" != "x0" && pkg_failed=yes
6930 else
6931 pkg_failed=yes
6932 fi
6933 else
6934 pkg_failed=untried
6935 fi
6936 if test -n "$XCB_LIBS"; then
6937 pkg_cv_XCB_LIBS="$XCB_LIBS"
6938 elif test -n "$PKG_CONFIG"; then
6939 if test -n "$PKG_CONFIG" && \
6940 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-xkb xcb-xinerama xcb-randr xcb-composite\""; } >&5
6941 ($PKG_CONFIG --exists --print-errors "xcb xcb-xkb xcb-xinerama xcb-randr xcb-composite") 2>&5
6942 ac_status=$?
6943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6944 test $ac_status = 0; }; then
6945 pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "xcb xcb-xkb xcb-xinerama xcb-randr xcb-composite" 2>/dev/null`
6946 test "x$?" != "x0" && pkg_failed=yes
6947 else
6948 pkg_failed=yes
6949 fi
6950 else
6951 pkg_failed=untried
6952 fi
6953
6954
6955
6956 if test $pkg_failed = yes; then
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 printf "%s\n" "no" >&6; }
6959
6960 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6961 _pkg_short_errors_supported=yes
6962 else
6963 _pkg_short_errors_supported=no
6964 fi
6965 if test $_pkg_short_errors_supported = yes; then
6966 XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb xcb-xkb xcb-xinerama xcb-randr xcb-composite" 2>&1`
6967 else
6968 XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb xcb-xkb xcb-xinerama xcb-randr xcb-composite" 2>&1`
6969 fi
6970 # Put the nasty error message in config.log where it belongs
6971 echo "$XCB_PKG_ERRORS" >&5
6972
6973 as_fn_error $? "Package requirements (xcb xcb-xkb xcb-xinerama xcb-randr xcb-composite) were not met:
6974
6975 $XCB_PKG_ERRORS
6976
6977 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6978 installed software in a non-standard prefix.
6979
6980 Alternatively, you may set the environment variables XCB_CFLAGS
6981 and XCB_LIBS to avoid the need to call pkg-config.
6982 See the pkg-config man page for more details." "$LINENO" 5
6983 elif test $pkg_failed = untried; then
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 printf "%s\n" "no" >&6; }
6986 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6987 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6988 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6989 is in your PATH or set the PKG_CONFIG environment variable to the full
6990 path to pkg-config.
6991
6992 Alternatively, you may set the environment variables XCB_CFLAGS
6993 and XCB_LIBS to avoid the need to call pkg-config.
6994 See the pkg-config man page for more details.
6995
6996 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6997 See \`config.log' for more details" "$LINENO" 5; }
6998 else
6999 XCB_CFLAGS=$pkg_cv_XCB_CFLAGS
7000 XCB_LIBS=$pkg_cv_XCB_LIBS
7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7002 printf "%s\n" "yes" >&6; }
7003
7004 fi
7005
7006 pkg_failed=no
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xcb-image" >&5
7008 printf %s "checking for xcb-image... " >&6; }
7009
7010 if test -n "$XCB_IMAGE_CFLAGS"; then
7011 pkg_cv_XCB_IMAGE_CFLAGS="$XCB_IMAGE_CFLAGS"
7012 elif test -n "$PKG_CONFIG"; then
7013 if test -n "$PKG_CONFIG" && \
7014 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-image\""; } >&5
7015 ($PKG_CONFIG --exists --print-errors "xcb-image") 2>&5
7016 ac_status=$?
7017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7018 test $ac_status = 0; }; then
7019 pkg_cv_XCB_IMAGE_CFLAGS=`$PKG_CONFIG --cflags "xcb-image" 2>/dev/null`
7020 test "x$?" != "x0" && pkg_failed=yes
7021 else
7022 pkg_failed=yes
7023 fi
7024 else
7025 pkg_failed=untried
7026 fi
7027 if test -n "$XCB_IMAGE_LIBS"; then
7028 pkg_cv_XCB_IMAGE_LIBS="$XCB_IMAGE_LIBS"
7029 elif test -n "$PKG_CONFIG"; then
7030 if test -n "$PKG_CONFIG" && \
7031 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-image\""; } >&5
7032 ($PKG_CONFIG --exists --print-errors "xcb-image") 2>&5
7033 ac_status=$?
7034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7035 test $ac_status = 0; }; then
7036 pkg_cv_XCB_IMAGE_LIBS=`$PKG_CONFIG --libs "xcb-image" 2>/dev/null`
7037 test "x$?" != "x0" && pkg_failed=yes
7038 else
7039 pkg_failed=yes
7040 fi
7041 else
7042 pkg_failed=untried
7043 fi
7044
7045
7046
7047 if test $pkg_failed = yes; then
7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 printf "%s\n" "no" >&6; }
7050
7051 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7052 _pkg_short_errors_supported=yes
7053 else
7054 _pkg_short_errors_supported=no
7055 fi
7056 if test $_pkg_short_errors_supported = yes; then
7057 XCB_IMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-image" 2>&1`
7058 else
7059 XCB_IMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-image" 2>&1`
7060 fi
7061 # Put the nasty error message in config.log where it belongs
7062 echo "$XCB_IMAGE_PKG_ERRORS" >&5
7063
7064 as_fn_error $? "Package requirements (xcb-image) were not met:
7065
7066 $XCB_IMAGE_PKG_ERRORS
7067
7068 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7069 installed software in a non-standard prefix.
7070
7071 Alternatively, you may set the environment variables XCB_IMAGE_CFLAGS
7072 and XCB_IMAGE_LIBS to avoid the need to call pkg-config.
7073 See the pkg-config man page for more details." "$LINENO" 5
7074 elif test $pkg_failed = untried; then
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 printf "%s\n" "no" >&6; }
7077 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7078 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7079 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7080 is in your PATH or set the PKG_CONFIG environment variable to the full
7081 path to pkg-config.
7082
7083 Alternatively, you may set the environment variables XCB_IMAGE_CFLAGS
7084 and XCB_IMAGE_LIBS to avoid the need to call pkg-config.
7085 See the pkg-config man page for more details.
7086
7087 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7088 See \`config.log' for more details" "$LINENO" 5; }
7089 else
7090 XCB_IMAGE_CFLAGS=$pkg_cv_XCB_IMAGE_CFLAGS
7091 XCB_IMAGE_LIBS=$pkg_cv_XCB_IMAGE_LIBS
7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7093 printf "%s\n" "yes" >&6; }
7094
7095 fi
7096
7097 pkg_failed=no
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xcb-event xcb-util xcb-atom" >&5
7099 printf %s "checking for xcb-event xcb-util xcb-atom... " >&6; }
7100
7101 if test -n "$XCB_UTIL_CFLAGS"; then
7102 pkg_cv_XCB_UTIL_CFLAGS="$XCB_UTIL_CFLAGS"
7103 elif test -n "$PKG_CONFIG"; then
7104 if test -n "$PKG_CONFIG" && \
7105 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-event xcb-util xcb-atom\""; } >&5
7106 ($PKG_CONFIG --exists --print-errors "xcb-event xcb-util xcb-atom") 2>&5
7107 ac_status=$?
7108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7109 test $ac_status = 0; }; then
7110 pkg_cv_XCB_UTIL_CFLAGS=`$PKG_CONFIG --cflags "xcb-event xcb-util xcb-atom" 2>/dev/null`
7111 test "x$?" != "x0" && pkg_failed=yes
7112 else
7113 pkg_failed=yes
7114 fi
7115 else
7116 pkg_failed=untried
7117 fi
7118 if test -n "$XCB_UTIL_LIBS"; then
7119 pkg_cv_XCB_UTIL_LIBS="$XCB_UTIL_LIBS"
7120 elif test -n "$PKG_CONFIG"; then
7121 if test -n "$PKG_CONFIG" && \
7122 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-event xcb-util xcb-atom\""; } >&5
7123 ($PKG_CONFIG --exists --print-errors "xcb-event xcb-util xcb-atom") 2>&5
7124 ac_status=$?
7125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7126 test $ac_status = 0; }; then
7127 pkg_cv_XCB_UTIL_LIBS=`$PKG_CONFIG --libs "xcb-event xcb-util xcb-atom" 2>/dev/null`
7128 test "x$?" != "x0" && pkg_failed=yes
7129 else
7130 pkg_failed=yes
7131 fi
7132 else
7133 pkg_failed=untried
7134 fi
7135
7136
7137
7138 if test $pkg_failed = yes; then
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 printf "%s\n" "no" >&6; }
7141
7142 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7143 _pkg_short_errors_supported=yes
7144 else
7145 _pkg_short_errors_supported=no
7146 fi
7147 if test $_pkg_short_errors_supported = yes; then
7148 XCB_UTIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-event xcb-util xcb-atom" 2>&1`
7149 else
7150 XCB_UTIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-event xcb-util xcb-atom" 2>&1`
7151 fi
7152 # Put the nasty error message in config.log where it belongs
7153 echo "$XCB_UTIL_PKG_ERRORS" >&5
7154
7155 as_fn_error $? "Package requirements (xcb-event xcb-util xcb-atom) were not met:
7156
7157 $XCB_UTIL_PKG_ERRORS
7158
7159 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7160 installed software in a non-standard prefix.
7161
7162 Alternatively, you may set the environment variables XCB_UTIL_CFLAGS
7163 and XCB_UTIL_LIBS to avoid the need to call pkg-config.
7164 See the pkg-config man page for more details." "$LINENO" 5
7165 elif test $pkg_failed = untried; then
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 printf "%s\n" "no" >&6; }
7168 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7169 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7170 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7171 is in your PATH or set the PKG_CONFIG environment variable to the full
7172 path to pkg-config.
7173
7174 Alternatively, you may set the environment variables XCB_UTIL_CFLAGS
7175 and XCB_UTIL_LIBS to avoid the need to call pkg-config.
7176 See the pkg-config man page for more details.
7177
7178 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7179 See \`config.log' for more details" "$LINENO" 5; }
7180 else
7181 XCB_UTIL_CFLAGS=$pkg_cv_XCB_UTIL_CFLAGS
7182 XCB_UTIL_LIBS=$pkg_cv_XCB_UTIL_LIBS
7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7184 printf "%s\n" "yes" >&6; }
7185
7186 fi
7187
7188 pkg_failed=no
7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xcb-xrm" >&5
7190 printf %s "checking for xcb-xrm... " >&6; }
7191
7192 if test -n "$XCB_UTIL_XRM_CFLAGS"; then
7193 pkg_cv_XCB_UTIL_XRM_CFLAGS="$XCB_UTIL_XRM_CFLAGS"
7194 elif test -n "$PKG_CONFIG"; then
7195 if test -n "$PKG_CONFIG" && \
7196 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xrm\""; } >&5
7197 ($PKG_CONFIG --exists --print-errors "xcb-xrm") 2>&5
7198 ac_status=$?
7199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7200 test $ac_status = 0; }; then
7201 pkg_cv_XCB_UTIL_XRM_CFLAGS=`$PKG_CONFIG --cflags "xcb-xrm" 2>/dev/null`
7202 test "x$?" != "x0" && pkg_failed=yes
7203 else
7204 pkg_failed=yes
7205 fi
7206 else
7207 pkg_failed=untried
7208 fi
7209 if test -n "$XCB_UTIL_XRM_LIBS"; then
7210 pkg_cv_XCB_UTIL_XRM_LIBS="$XCB_UTIL_XRM_LIBS"
7211 elif test -n "$PKG_CONFIG"; then
7212 if test -n "$PKG_CONFIG" && \
7213 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-xrm\""; } >&5
7214 ($PKG_CONFIG --exists --print-errors "xcb-xrm") 2>&5
7215 ac_status=$?
7216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7217 test $ac_status = 0; }; then
7218 pkg_cv_XCB_UTIL_XRM_LIBS=`$PKG_CONFIG --libs "xcb-xrm" 2>/dev/null`
7219 test "x$?" != "x0" && pkg_failed=yes
7220 else
7221 pkg_failed=yes
7222 fi
7223 else
7224 pkg_failed=untried
7225 fi
7226
7227
7228
7229 if test $pkg_failed = yes; then
7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 printf "%s\n" "no" >&6; }
7232
7233 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7234 _pkg_short_errors_supported=yes
7235 else
7236 _pkg_short_errors_supported=no
7237 fi
7238 if test $_pkg_short_errors_supported = yes; then
7239 XCB_UTIL_XRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-xrm" 2>&1`
7240 else
7241 XCB_UTIL_XRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-xrm" 2>&1`
7242 fi
7243 # Put the nasty error message in config.log where it belongs
7244 echo "$XCB_UTIL_XRM_PKG_ERRORS" >&5
7245
7246 as_fn_error $? "Package requirements (xcb-xrm) were not met:
7247
7248 $XCB_UTIL_XRM_PKG_ERRORS
7249
7250 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7251 installed software in a non-standard prefix.
7252
7253 Alternatively, you may set the environment variables XCB_UTIL_XRM_CFLAGS
7254 and XCB_UTIL_XRM_LIBS to avoid the need to call pkg-config.
7255 See the pkg-config man page for more details." "$LINENO" 5
7256 elif test $pkg_failed = untried; then
7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 printf "%s\n" "no" >&6; }
7259 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7260 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7261 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7262 is in your PATH or set the PKG_CONFIG environment variable to the full
7263 path to pkg-config.
7264
7265 Alternatively, you may set the environment variables XCB_UTIL_XRM_CFLAGS
7266 and XCB_UTIL_XRM_LIBS to avoid the need to call pkg-config.
7267 See the pkg-config man page for more details.
7268
7269 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7270 See \`config.log' for more details" "$LINENO" 5; }
7271 else
7272 XCB_UTIL_XRM_CFLAGS=$pkg_cv_XCB_UTIL_XRM_CFLAGS
7273 XCB_UTIL_XRM_LIBS=$pkg_cv_XCB_UTIL_XRM_LIBS
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7275 printf "%s\n" "yes" >&6; }
7276
7277 fi
7278
7279 pkg_failed=no
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xkbcommon xkbcommon-x11" >&5
7281 printf %s "checking for xkbcommon xkbcommon-x11... " >&6; }
7282
7283 if test -n "$XKBCOMMON_CFLAGS"; then
7284 pkg_cv_XKBCOMMON_CFLAGS="$XKBCOMMON_CFLAGS"
7285 elif test -n "$PKG_CONFIG"; then
7286 if test -n "$PKG_CONFIG" && \
7287 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbcommon xkbcommon-x11\""; } >&5
7288 ($PKG_CONFIG --exists --print-errors "xkbcommon xkbcommon-x11") 2>&5
7289 ac_status=$?
7290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; }; then
7292 pkg_cv_XKBCOMMON_CFLAGS=`$PKG_CONFIG --cflags "xkbcommon xkbcommon-x11" 2>/dev/null`
7293 test "x$?" != "x0" && pkg_failed=yes
7294 else
7295 pkg_failed=yes
7296 fi
7297 else
7298 pkg_failed=untried
7299 fi
7300 if test -n "$XKBCOMMON_LIBS"; then
7301 pkg_cv_XKBCOMMON_LIBS="$XKBCOMMON_LIBS"
7302 elif test -n "$PKG_CONFIG"; then
7303 if test -n "$PKG_CONFIG" && \
7304 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbcommon xkbcommon-x11\""; } >&5
7305 ($PKG_CONFIG --exists --print-errors "xkbcommon xkbcommon-x11") 2>&5
7306 ac_status=$?
7307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7308 test $ac_status = 0; }; then
7309 pkg_cv_XKBCOMMON_LIBS=`$PKG_CONFIG --libs "xkbcommon xkbcommon-x11" 2>/dev/null`
7310 test "x$?" != "x0" && pkg_failed=yes
7311 else
7312 pkg_failed=yes
7313 fi
7314 else
7315 pkg_failed=untried
7316 fi
7317
7318
7319
7320 if test $pkg_failed = yes; then
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 printf "%s\n" "no" >&6; }
7323
7324 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7325 _pkg_short_errors_supported=yes
7326 else
7327 _pkg_short_errors_supported=no
7328 fi
7329 if test $_pkg_short_errors_supported = yes; then
7330 XKBCOMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbcommon xkbcommon-x11" 2>&1`
7331 else
7332 XKBCOMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbcommon xkbcommon-x11" 2>&1`
7333 fi
7334 # Put the nasty error message in config.log where it belongs
7335 echo "$XKBCOMMON_PKG_ERRORS" >&5
7336
7337 as_fn_error $? "Package requirements (xkbcommon xkbcommon-x11) were not met:
7338
7339 $XKBCOMMON_PKG_ERRORS
7340
7341 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7342 installed software in a non-standard prefix.
7343
7344 Alternatively, you may set the environment variables XKBCOMMON_CFLAGS
7345 and XKBCOMMON_LIBS to avoid the need to call pkg-config.
7346 See the pkg-config man page for more details." "$LINENO" 5
7347 elif test $pkg_failed = untried; then
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 printf "%s\n" "no" >&6; }
7350 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7351 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7352 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7353 is in your PATH or set the PKG_CONFIG environment variable to the full
7354 path to pkg-config.
7355
7356 Alternatively, you may set the environment variables XKBCOMMON_CFLAGS
7357 and XKBCOMMON_LIBS to avoid the need to call pkg-config.
7358 See the pkg-config man page for more details.
7359
7360 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7361 See \`config.log' for more details" "$LINENO" 5; }
7362 else
7363 XKBCOMMON_CFLAGS=$pkg_cv_XKBCOMMON_CFLAGS
7364 XKBCOMMON_LIBS=$pkg_cv_XKBCOMMON_LIBS
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7366 printf "%s\n" "yes" >&6; }
7367
7368 fi
7369
7370 pkg_failed=no
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
7372 printf %s "checking for cairo... " >&6; }
7373
7374 if test -n "$CAIRO_CFLAGS"; then
7375 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
7376 elif test -n "$PKG_CONFIG"; then
7377 if test -n "$PKG_CONFIG" && \
7378 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
7379 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
7380 ac_status=$?
7381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7382 test $ac_status = 0; }; then
7383 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
7384 test "x$?" != "x0" && pkg_failed=yes
7385 else
7386 pkg_failed=yes
7387 fi
7388 else
7389 pkg_failed=untried
7390 fi
7391 if test -n "$CAIRO_LIBS"; then
7392 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
7393 elif test -n "$PKG_CONFIG"; then
7394 if test -n "$PKG_CONFIG" && \
7395 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
7396 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
7397 ac_status=$?
7398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7399 test $ac_status = 0; }; then
7400 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
7401 test "x$?" != "x0" && pkg_failed=yes
7402 else
7403 pkg_failed=yes
7404 fi
7405 else
7406 pkg_failed=untried
7407 fi
7408
7409
7410
7411 if test $pkg_failed = yes; then
7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 printf "%s\n" "no" >&6; }
7414
7415 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7416 _pkg_short_errors_supported=yes
7417 else
7418 _pkg_short_errors_supported=no
7419 fi
7420 if test $_pkg_short_errors_supported = yes; then
7421 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo" 2>&1`
7422 else
7423 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo" 2>&1`
7424 fi
7425 # Put the nasty error message in config.log where it belongs
7426 echo "$CAIRO_PKG_ERRORS" >&5
7427
7428 as_fn_error $? "Package requirements (cairo) were not met:
7429
7430 $CAIRO_PKG_ERRORS
7431
7432 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7433 installed software in a non-standard prefix.
7434
7435 Alternatively, you may set the environment variables CAIRO_CFLAGS
7436 and CAIRO_LIBS to avoid the need to call pkg-config.
7437 See the pkg-config man page for more details." "$LINENO" 5
7438 elif test $pkg_failed = untried; then
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 printf "%s\n" "no" >&6; }
7441 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7442 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7443 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7444 is in your PATH or set the PKG_CONFIG environment variable to the full
7445 path to pkg-config.
7446
7447 Alternatively, you may set the environment variables CAIRO_CFLAGS
7448 and CAIRO_LIBS to avoid the need to call pkg-config.
7449 See the pkg-config man page for more details.
7450
7451 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7452 See \`config.log' for more details" "$LINENO" 5; }
7453 else
7454 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
7455 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7457 printf "%s\n" "yes" >&6; }
7458
7459 fi
7460
7461 pkg_failed=no
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libjpeg" >&5
7463 printf %s "checking for libjpeg... " >&6; }
7464
7465 if test -n "$JPEG_CFLAGS"; then
7466 pkg_cv_JPEG_CFLAGS="$JPEG_CFLAGS"
7467 elif test -n "$PKG_CONFIG"; then
7468 if test -n "$PKG_CONFIG" && \
7469 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5
7470 ($PKG_CONFIG --exists --print-errors "libjpeg") 2>&5
7471 ac_status=$?
7472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7473 test $ac_status = 0; }; then
7474 pkg_cv_JPEG_CFLAGS=`$PKG_CONFIG --cflags "libjpeg" 2>/dev/null`
7475 test "x$?" != "x0" && pkg_failed=yes
7476 else
7477 pkg_failed=yes
7478 fi
7479 else
7480 pkg_failed=untried
7481 fi
7482 if test -n "$JPEG_LIBS"; then
7483 pkg_cv_JPEG_LIBS="$JPEG_LIBS"
7484 elif test -n "$PKG_CONFIG"; then
7485 if test -n "$PKG_CONFIG" && \
7486 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjpeg\""; } >&5
7487 ($PKG_CONFIG --exists --print-errors "libjpeg") 2>&5
7488 ac_status=$?
7489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7490 test $ac_status = 0; }; then
7491 pkg_cv_JPEG_LIBS=`$PKG_CONFIG --libs "libjpeg" 2>/dev/null`
7492 test "x$?" != "x0" && pkg_failed=yes
7493 else
7494 pkg_failed=yes
7495 fi
7496 else
7497 pkg_failed=untried
7498 fi
7499
7500
7501
7502 if test $pkg_failed = yes; then
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 printf "%s\n" "no" >&6; }
7505
7506 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7507 _pkg_short_errors_supported=yes
7508 else
7509 _pkg_short_errors_supported=no
7510 fi
7511 if test $_pkg_short_errors_supported = yes; then
7512 JPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjpeg" 2>&1`
7513 else
7514 JPEG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjpeg" 2>&1`
7515 fi
7516 # Put the nasty error message in config.log where it belongs
7517 echo "$JPEG_PKG_ERRORS" >&5
7518
7519 as_fn_error $? "Package requirements (libjpeg) were not met:
7520
7521 $JPEG_PKG_ERRORS
7522
7523 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7524 installed software in a non-standard prefix.
7525
7526 Alternatively, you may set the environment variables JPEG_CFLAGS
7527 and JPEG_LIBS to avoid the need to call pkg-config.
7528 See the pkg-config man page for more details." "$LINENO" 5
7529 elif test $pkg_failed = untried; then
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 printf "%s\n" "no" >&6; }
7532 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7533 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7534 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7535 is in your PATH or set the PKG_CONFIG environment variable to the full
7536 path to pkg-config.
7537
7538 Alternatively, you may set the environment variables JPEG_CFLAGS
7539 and JPEG_LIBS to avoid the need to call pkg-config.
7540 See the pkg-config man page for more details.
7541
7542 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7543 See \`config.log' for more details" "$LINENO" 5; }
7544 else
7545 JPEG_CFLAGS=$pkg_cv_JPEG_CFLAGS
7546 JPEG_LIBS=$pkg_cv_JPEG_LIBS
7547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7548 printf "%s\n" "yes" >&6; }
7549
7550 fi
7551
7552 pkg_failed=no
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig" >&5
7554 printf %s "checking for fontconfig... " >&6; }
7555
7556 if test -n "$FONTCONFIG_CFLAGS"; then
7557 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
7558 elif test -n "$PKG_CONFIG"; then
7559 if test -n "$PKG_CONFIG" && \
7560 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
7561 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
7562 ac_status=$?
7563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7564 test $ac_status = 0; }; then
7565 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
7566 test "x$?" != "x0" && pkg_failed=yes
7567 else
7568 pkg_failed=yes
7569 fi
7570 else
7571 pkg_failed=untried
7572 fi
7573 if test -n "$FONTCONFIG_LIBS"; then
7574 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
7575 elif test -n "$PKG_CONFIG"; then
7576 if test -n "$PKG_CONFIG" && \
7577 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
7578 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
7579 ac_status=$?
7580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581 test $ac_status = 0; }; then
7582 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
7583 test "x$?" != "x0" && pkg_failed=yes
7584 else
7585 pkg_failed=yes
7586 fi
7587 else
7588 pkg_failed=untried
7589 fi
7590
7591
7592
7593 if test $pkg_failed = yes; then
7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 printf "%s\n" "no" >&6; }
7596
7597 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7598 _pkg_short_errors_supported=yes
7599 else
7600 _pkg_short_errors_supported=no
7601 fi
7602 if test $_pkg_short_errors_supported = yes; then
7603 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
7604 else
7605 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
7606 fi
7607 # Put the nasty error message in config.log where it belongs
7608 echo "$FONTCONFIG_PKG_ERRORS" >&5
7609
7610 as_fn_error $? "Package requirements (fontconfig) were not met:
7611
7612 $FONTCONFIG_PKG_ERRORS
7613
7614 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7615 installed software in a non-standard prefix.
7616
7617 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
7618 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
7619 See the pkg-config man page for more details." "$LINENO" 5
7620 elif test $pkg_failed = untried; then
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 printf "%s\n" "no" >&6; }
7623 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7624 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7625 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7626 is in your PATH or set the PKG_CONFIG environment variable to the full
7627 path to pkg-config.
7628
7629 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS
7630 and FONTCONFIG_LIBS to avoid the need to call pkg-config.
7631 See the pkg-config man page for more details.
7632
7633 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7634 See \`config.log' for more details" "$LINENO" 5; }
7635 else
7636 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
7637 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7639 printf "%s\n" "yes" >&6; }
7640
7641 fi
7642
7643
7644 # Checks for programs.
7645 for ac_prog in gawk mawk nawk awk
7646 do
7647 # Extract the first word of "$ac_prog", so it can be a program name with args.
7648 set dummy $ac_prog; ac_word=$2
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650 printf %s "checking for $ac_word... " >&6; }
7651 if test ${ac_cv_prog_AWK+y}
7652 then :
7653 printf %s "(cached) " >&6
7654 else $as_nop
7655 if test -n "$AWK"; then
7656 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661 IFS=$as_save_IFS
7662 case $as_dir in #(((
7663 '') as_dir=./ ;;
7664 */) ;;
7665 *) as_dir=$as_dir/ ;;
7666 esac
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7669 ac_cv_prog_AWK="$ac_prog"
7670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7671 break 2
7672 fi
7673 done
7674 done
7675 IFS=$as_save_IFS
7676
7677 fi
7678 fi
7679 AWK=$ac_cv_prog_AWK
7680 if test -n "$AWK"; then
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7682 printf "%s\n" "$AWK" >&6; }
7683 else
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 printf "%s\n" "no" >&6; }
7686 fi
7687
7688
7689 test -n "$AWK" && break
7690 done
7691
7692 ac_ext=c
7693 ac_cpp='$CPP $CPPFLAGS'
7694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7698 printf %s "checking how to run the C preprocessor... " >&6; }
7699 # On Suns, sometimes $CPP names a directory.
7700 if test -n "$CPP" && test -d "$CPP"; then
7701 CPP=
7702 fi
7703 if test -z "$CPP"; then
7704 if test ${ac_cv_prog_CPP+y}
7705 then :
7706 printf %s "(cached) " >&6
7707 else $as_nop
7708 # Double quotes because $CC needs to be expanded
7709 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7710 do
7711 ac_preproc_ok=false
7712 for ac_c_preproc_warn_flag in '' yes
7713 do
7714 # Use a header file that comes with gcc, so configuring glibc
7715 # with a fresh cross-compiler works.
7716 # On the NeXT, cc -E runs the code through the compiler's parser,
7717 # not just through cpp. "Syntax error" is here to catch this case.
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720 #include <limits.h>
7721 Syntax error
7722 _ACEOF
7723 if ac_fn_c_try_cpp "$LINENO"
7724 then :
7725
7726 else $as_nop
7727 # Broken: fails on valid input.
7728 continue
7729 fi
7730 rm -f conftest.err conftest.i conftest.$ac_ext
7731
7732 # OK, works on sane cases. Now check whether nonexistent headers
7733 # can be detected and how.
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7736 #include <ac_nonexistent.h>
7737 _ACEOF
7738 if ac_fn_c_try_cpp "$LINENO"
7739 then :
7740 # Broken: success on invalid input.
7741 continue
7742 else $as_nop
7743 # Passes both tests.
7744 ac_preproc_ok=:
7745 break
7746 fi
7747 rm -f conftest.err conftest.i conftest.$ac_ext
7748
7749 done
7750 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7751 rm -f conftest.i conftest.err conftest.$ac_ext
7752 if $ac_preproc_ok
7753 then :
7754 break
7755 fi
7756
7757 done
7758 ac_cv_prog_CPP=$CPP
7759
7760 fi
7761 CPP=$ac_cv_prog_CPP
7762 else
7763 ac_cv_prog_CPP=$CPP
7764 fi
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7766 printf "%s\n" "$CPP" >&6; }
7767 ac_preproc_ok=false
7768 for ac_c_preproc_warn_flag in '' yes
7769 do
7770 # Use a header file that comes with gcc, so configuring glibc
7771 # with a fresh cross-compiler works.
7772 # On the NeXT, cc -E runs the code through the compiler's parser,
7773 # not just through cpp. "Syntax error" is here to catch this case.
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 #include <limits.h>
7777 Syntax error
7778 _ACEOF
7779 if ac_fn_c_try_cpp "$LINENO"
7780 then :
7781
7782 else $as_nop
7783 # Broken: fails on valid input.
7784 continue
7785 fi
7786 rm -f conftest.err conftest.i conftest.$ac_ext
7787
7788 # OK, works on sane cases. Now check whether nonexistent headers
7789 # can be detected and how.
7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h. */
7792 #include <ac_nonexistent.h>
7793 _ACEOF
7794 if ac_fn_c_try_cpp "$LINENO"
7795 then :
7796 # Broken: success on invalid input.
7797 continue
7798 else $as_nop
7799 # Passes both tests.
7800 ac_preproc_ok=:
7801 break
7802 fi
7803 rm -f conftest.err conftest.i conftest.$ac_ext
7804
7805 done
7806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7807 rm -f conftest.i conftest.err conftest.$ac_ext
7808 if $ac_preproc_ok
7809 then :
7810
7811 else $as_nop
7812 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7813 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7814 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7815 See \`config.log' for more details" "$LINENO" 5; }
7816 fi
7817
7818 ac_ext=c
7819 ac_cpp='$CPP $CPPFLAGS'
7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823
7824
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7826 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7827 set x ${MAKE-make}
7828 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7829 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
7830 then :
7831 printf %s "(cached) " >&6
7832 else $as_nop
7833 cat >conftest.make <<\_ACEOF
7834 SHELL = /bin/sh
7835 all:
7836 @echo '@@@%%%=$(MAKE)=@@@%%%'
7837 _ACEOF
7838 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7839 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7840 *@@@%%%=?*=@@@%%%*)
7841 eval ac_cv_prog_make_${ac_make}_set=yes;;
7842 *)
7843 eval ac_cv_prog_make_${ac_make}_set=no;;
7844 esac
7845 rm -f conftest.make
7846 fi
7847 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7849 printf "%s\n" "yes" >&6; }
7850 SET_MAKE=
7851 else
7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 printf "%s\n" "no" >&6; }
7854 SET_MAKE="MAKE=${MAKE-make}"
7855 fi
7856
7857 if test -n "$ac_tool_prefix"; then
7858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 printf %s "checking for $ac_word... " >&6; }
7862 if test ${ac_cv_prog_RANLIB+y}
7863 then :
7864 printf %s "(cached) " >&6
7865 else $as_nop
7866 if test -n "$RANLIB"; then
7867 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7871 do
7872 IFS=$as_save_IFS
7873 case $as_dir in #(((
7874 '') as_dir=./ ;;
7875 */) ;;
7876 *) as_dir=$as_dir/ ;;
7877 esac
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7880 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7882 break 2
7883 fi
7884 done
7885 done
7886 IFS=$as_save_IFS
7887
7888 fi
7889 fi
7890 RANLIB=$ac_cv_prog_RANLIB
7891 if test -n "$RANLIB"; then
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7893 printf "%s\n" "$RANLIB" >&6; }
7894 else
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 printf "%s\n" "no" >&6; }
7897 fi
7898
7899
7900 fi
7901 if test -z "$ac_cv_prog_RANLIB"; then
7902 ac_ct_RANLIB=$RANLIB
7903 # Extract the first word of "ranlib", so it can be a program name with args.
7904 set dummy ranlib; ac_word=$2
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 printf %s "checking for $ac_word... " >&6; }
7907 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7908 then :
7909 printf %s "(cached) " >&6
7910 else $as_nop
7911 if test -n "$ac_ct_RANLIB"; then
7912 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7913 else
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $PATH
7916 do
7917 IFS=$as_save_IFS
7918 case $as_dir in #(((
7919 '') as_dir=./ ;;
7920 */) ;;
7921 *) as_dir=$as_dir/ ;;
7922 esac
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7925 ac_cv_prog_ac_ct_RANLIB="ranlib"
7926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7927 break 2
7928 fi
7929 done
7930 done
7931 IFS=$as_save_IFS
7932
7933 fi
7934 fi
7935 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7936 if test -n "$ac_ct_RANLIB"; then
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7938 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7939 else
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 printf "%s\n" "no" >&6; }
7942 fi
7943
7944 if test "x$ac_ct_RANLIB" = x; then
7945 RANLIB=":"
7946 else
7947 case $cross_compiling:$ac_tool_warned in
7948 yes:)
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7950 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7951 ac_tool_warned=yes ;;
7952 esac
7953 RANLIB=$ac_ct_RANLIB
7954 fi
7955 else
7956 RANLIB="$ac_cv_prog_RANLIB"
7957 fi
7958
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7960 printf %s "checking whether ln -s works... " >&6; }
7961 LN_S=$as_ln_s
7962 if test "$LN_S" = "ln -s"; then
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7964 printf "%s\n" "yes" >&6; }
7965 else
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7967 printf "%s\n" "no, using $LN_S" >&6; }
7968 fi
7969
7970
7971
7972 if test -n "$ac_tool_prefix"; then
7973 for ac_prog in ar lib "link -lib"
7974 do
7975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 printf %s "checking for $ac_word... " >&6; }
7979 if test ${ac_cv_prog_AR+y}
7980 then :
7981 printf %s "(cached) " >&6
7982 else $as_nop
7983 if test -n "$AR"; then
7984 ac_cv_prog_AR="$AR" # Let the user override the test.
7985 else
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989 IFS=$as_save_IFS
7990 case $as_dir in #(((
7991 '') as_dir=./ ;;
7992 */) ;;
7993 *) as_dir=$as_dir/ ;;
7994 esac
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7997 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001 done
8002 done
8003 IFS=$as_save_IFS
8004
8005 fi
8006 fi
8007 AR=$ac_cv_prog_AR
8008 if test -n "$AR"; then
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8010 printf "%s\n" "$AR" >&6; }
8011 else
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 printf "%s\n" "no" >&6; }
8014 fi
8015
8016
8017 test -n "$AR" && break
8018 done
8019 fi
8020 if test -z "$AR"; then
8021 ac_ct_AR=$AR
8022 for ac_prog in ar lib "link -lib"
8023 do
8024 # Extract the first word of "$ac_prog", so it can be a program name with args.
8025 set dummy $ac_prog; ac_word=$2
8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027 printf %s "checking for $ac_word... " >&6; }
8028 if test ${ac_cv_prog_ac_ct_AR+y}
8029 then :
8030 printf %s "(cached) " >&6
8031 else $as_nop
8032 if test -n "$ac_ct_AR"; then
8033 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038 IFS=$as_save_IFS
8039 case $as_dir in #(((
8040 '') as_dir=./ ;;
8041 */) ;;
8042 *) as_dir=$as_dir/ ;;
8043 esac
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8046 ac_cv_prog_ac_ct_AR="$ac_prog"
8047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8048 break 2
8049 fi
8050 done
8051 done
8052 IFS=$as_save_IFS
8053
8054 fi
8055 fi
8056 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8057 if test -n "$ac_ct_AR"; then
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8059 printf "%s\n" "$ac_ct_AR" >&6; }
8060 else
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 printf "%s\n" "no" >&6; }
8063 fi
8064
8065
8066 test -n "$ac_ct_AR" && break
8067 done
8068
8069 if test "x$ac_ct_AR" = x; then
8070 AR="false"
8071 else
8072 case $cross_compiling:$ac_tool_warned in
8073 yes:)
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8075 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8076 ac_tool_warned=yes ;;
8077 esac
8078 AR=$ac_ct_AR
8079 fi
8080 fi
8081
8082 : ${AR=ar}
8083
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8085 printf %s "checking the archiver ($AR) interface... " >&6; }
8086 if test ${am_cv_ar_interface+y}
8087 then :
8088 printf %s "(cached) " >&6
8089 else $as_nop
8090 ac_ext=c
8091 ac_cpp='$CPP $CPPFLAGS'
8092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8095
8096 am_cv_ar_interface=ar
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8099 int some_variable = 0;
8100 _ACEOF
8101 if ac_fn_c_try_compile "$LINENO"
8102 then :
8103 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8105 (eval $am_ar_try) 2>&5
8106 ac_status=$?
8107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8108 test $ac_status = 0; }
8109 if test "$ac_status" -eq 0; then
8110 am_cv_ar_interface=ar
8111 else
8112 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8114 (eval $am_ar_try) 2>&5
8115 ac_status=$?
8116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8117 test $ac_status = 0; }
8118 if test "$ac_status" -eq 0; then
8119 am_cv_ar_interface=lib
8120 else
8121 am_cv_ar_interface=unknown
8122 fi
8123 fi
8124 rm -f conftest.lib libconftest.a
8125
8126 fi
8127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8128 ac_ext=c
8129 ac_cpp='$CPP $CPPFLAGS'
8130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8133
8134 fi
8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8136 printf "%s\n" "$am_cv_ar_interface" >&6; }
8137
8138 case $am_cv_ar_interface in
8139 ar)
8140 ;;
8141 lib)
8142 # Microsoft lib, so override with the ar-lib wrapper script.
8143 # FIXME: It is wrong to rewrite AR.
8144 # But if we don't then we get into trouble of one sort or another.
8145 # A longer-term fix would be to have automake use am__AR in this case,
8146 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8147 # similar.
8148 AR="$am_aux_dir/ar-lib $AR"
8149 ;;
8150 unknown)
8151 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8152 ;;
8153 esac
8154
8155
8156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8157 printf %s "checking CFLAGS for maximum warnings... " >&6; }
8158 if test ${ac_cv_cflags_warn_all+y}
8159 then :
8160 printf %s "(cached) " >&6
8161 else $as_nop
8162 ac_cv_cflags_warn_all="no, unknown"
8163 ac_save_CFLAGS="$CFLAGS"
8164 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
8165 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168
8169 int
8170 main (void)
8171 {
8172
8173 ;
8174 return 0;
8175 }
8176 _ACEOF
8177 if ac_fn_c_try_compile "$LINENO"
8178 then :
8179 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8180 fi
8181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8182 done
8183 CFLAGS="$ac_save_CFLAGS"
8184
8185 fi
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8187 printf "%s\n" "$ac_cv_cflags_warn_all" >&6; }
8188
8189
8190 case ".$ac_cv_cflags_warn_all" in
8191 .ok|.ok,*) ;;
8192 .|.no|.no,*) ;;
8193 *)
8194 if test ${CFLAGS+y}
8195 then :
8196
8197 case " $CFLAGS " in #(
8198 *" $ac_cv_cflags_warn_all "*) :
8199 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8200 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8201 ac_status=$?
8202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8203 test $ac_status = 0; } ;; #(
8204 *) :
8205
8206 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8208 (: CFLAGS="$CFLAGS") 2>&5
8209 ac_status=$?
8210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8211 test $ac_status = 0; }
8212 ;;
8213 esac
8214
8215 else $as_nop
8216
8217 CFLAGS=$ac_cv_cflags_warn_all
8218 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8219 (: CFLAGS="$CFLAGS") 2>&5
8220 ac_status=$?
8221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8222 test $ac_status = 0; }
8223
8224 fi
8225 ;;
8226 esac
8227
8228
8229 if test ${AM_CFLAGS+y}
8230 then :
8231
8232 case " $AM_CFLAGS " in #(
8233 *" -O2 "*) :
8234 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains -O2"; } >&5
8235 (: AM_CFLAGS already contains -O2) 2>&5
8236 ac_status=$?
8237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8238 test $ac_status = 0; } ;; #(
8239 *) :
8240
8241 as_fn_append AM_CFLAGS " -O2"
8242 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
8243 (: AM_CFLAGS="$AM_CFLAGS") 2>&5
8244 ac_status=$?
8245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8246 test $ac_status = 0; }
8247 ;;
8248 esac
8249
8250 else $as_nop
8251
8252 AM_CFLAGS=-O2
8253 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
8254 (: AM_CFLAGS="$AM_CFLAGS") 2>&5
8255 ac_status=$?
8256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8257 test $ac_status = 0; }
8258
8259 fi
8260
8261
8262 if test ${AM_CFLAGS+y}
8263 then :
8264
8265 case " $AM_CFLAGS " in #(
8266 *" -funroll-loops "*) :
8267 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains -funroll-loops"; } >&5
8268 (: AM_CFLAGS already contains -funroll-loops) 2>&5
8269 ac_status=$?
8270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8271 test $ac_status = 0; } ;; #(
8272 *) :
8273
8274 as_fn_append AM_CFLAGS " -funroll-loops"
8275 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
8276 (: AM_CFLAGS="$AM_CFLAGS") 2>&5
8277 ac_status=$?
8278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8279 test $ac_status = 0; }
8280 ;;
8281 esac
8282
8283 else $as_nop
8284
8285 AM_CFLAGS=-funroll-loops
8286 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
8287 (: AM_CFLAGS="$AM_CFLAGS") 2>&5
8288 ac_status=$?
8289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8290 test $ac_status = 0; }
8291
8292 fi
8293
8294
8295 if test ${AM_CFLAGS+y}
8296 then :
8297
8298 case " $AM_CFLAGS " in #(
8299 *" -pthread "*) :
8300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains -pthread"; } >&5
8301 (: AM_CFLAGS already contains -pthread) 2>&5
8302 ac_status=$?
8303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8304 test $ac_status = 0; } ;; #(
8305 *) :
8306
8307 as_fn_append AM_CFLAGS " -pthread"
8308 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
8309 (: AM_CFLAGS="$AM_CFLAGS") 2>&5
8310 ac_status=$?
8311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8312 test $ac_status = 0; }
8313 ;;
8314 esac
8315
8316 else $as_nop
8317
8318 AM_CFLAGS=-pthread
8319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
8320 (: AM_CFLAGS="$AM_CFLAGS") 2>&5
8321 ac_status=$?
8322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8323 test $ac_status = 0; }
8324
8325 fi
8326
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wunused-value" >&5
8328 printf %s "checking whether C compiler accepts -Wunused-value... " >&6; }
8329 if test ${ax_cv_check_cflags___Wunused_value+y}
8330 then :
8331 printf %s "(cached) " >&6
8332 else $as_nop
8333
8334 ax_check_save_flags=$CFLAGS
8335 CFLAGS="$CFLAGS -Wunused-value"
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338
8339 int
8340 main (void)
8341 {
8342
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 if ac_fn_c_try_compile "$LINENO"
8348 then :
8349 ax_cv_check_cflags___Wunused_value=yes
8350 else $as_nop
8351 ax_cv_check_cflags___Wunused_value=no
8352 fi
8353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8354 CFLAGS=$ax_check_save_flags
8355 fi
8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wunused_value" >&5
8357 printf "%s\n" "$ax_cv_check_cflags___Wunused_value" >&6; }
8358 if test "x$ax_cv_check_cflags___Wunused_value" = xyes
8359 then :
8360
8361 if test ${AM_CFLAGS+y}
8362 then :
8363
8364 case " $AM_CFLAGS " in #(
8365 *" -Wunused-value "*) :
8366 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS already contains -Wunused-value"; } >&5
8367 (: AM_CFLAGS already contains -Wunused-value) 2>&5
8368 ac_status=$?
8369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8370 test $ac_status = 0; } ;; #(
8371 *) :
8372
8373 as_fn_append AM_CFLAGS " -Wunused-value"
8374 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
8375 (: AM_CFLAGS="$AM_CFLAGS") 2>&5
8376 ac_status=$?
8377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8378 test $ac_status = 0; }
8379 ;;
8380 esac
8381
8382 else $as_nop
8383
8384 AM_CFLAGS=-Wunused-value
8385 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : AM_CFLAGS=\"\$AM_CFLAGS\""; } >&5
8386 (: AM_CFLAGS="$AM_CFLAGS") 2>&5
8387 ac_status=$?
8388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8389 test $ac_status = 0; }
8390
8391 fi
8392
8393 else $as_nop
8394 :
8395 fi
8396
8397
8398
8399
8400
8401 # Check whether --with-bash-completion-dir was given.
8402 if test ${with_bash_completion_dir+y}
8403 then :
8404 withval=$with_bash_completion_dir;
8405 else $as_nop
8406 with_bash_completion_dir=yes
8407 fi
8408
8409
8410 # Check bash-completion
8411 if test "x$with_bash_completion_dir" = "xyes"; then
8412
8413 pkg_failed=no
8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bash-completion >= 2.0" >&5
8415 printf %s "checking for bash-completion >= 2.0... " >&6; }
8416
8417 if test -n "$BASH_COMPLETION_CFLAGS"; then
8418 pkg_cv_BASH_COMPLETION_CFLAGS="$BASH_COMPLETION_CFLAGS"
8419 elif test -n "$PKG_CONFIG"; then
8420 if test -n "$PKG_CONFIG" && \
8421 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5
8422 ($PKG_CONFIG --exists --print-errors "bash-completion >= 2.0") 2>&5
8423 ac_status=$?
8424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8425 test $ac_status = 0; }; then
8426 pkg_cv_BASH_COMPLETION_CFLAGS=`$PKG_CONFIG --cflags "bash-completion >= 2.0" 2>/dev/null`
8427 test "x$?" != "x0" && pkg_failed=yes
8428 else
8429 pkg_failed=yes
8430 fi
8431 else
8432 pkg_failed=untried
8433 fi
8434 if test -n "$BASH_COMPLETION_LIBS"; then
8435 pkg_cv_BASH_COMPLETION_LIBS="$BASH_COMPLETION_LIBS"
8436 elif test -n "$PKG_CONFIG"; then
8437 if test -n "$PKG_CONFIG" && \
8438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bash-completion >= 2.0\""; } >&5
8439 ($PKG_CONFIG --exists --print-errors "bash-completion >= 2.0") 2>&5
8440 ac_status=$?
8441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8442 test $ac_status = 0; }; then
8443 pkg_cv_BASH_COMPLETION_LIBS=`$PKG_CONFIG --libs "bash-completion >= 2.0" 2>/dev/null`
8444 test "x$?" != "x0" && pkg_failed=yes
8445 else
8446 pkg_failed=yes
8447 fi
8448 else
8449 pkg_failed=untried
8450 fi
8451
8452
8453
8454 if test $pkg_failed = yes; then
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 printf "%s\n" "no" >&6; }
8457
8458 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8459 _pkg_short_errors_supported=yes
8460 else
8461 _pkg_short_errors_supported=no
8462 fi
8463 if test $_pkg_short_errors_supported = yes; then
8464 BASH_COMPLETION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bash-completion >= 2.0" 2>&1`
8465 else
8466 BASH_COMPLETION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bash-completion >= 2.0" 2>&1`
8467 fi
8468 # Put the nasty error message in config.log where it belongs
8469 echo "$BASH_COMPLETION_PKG_ERRORS" >&5
8470
8471
8472 BASH_COMPLETION_DIR=""
8473
8474 elif test $pkg_failed = untried; then
8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 printf "%s\n" "no" >&6; }
8477
8478 BASH_COMPLETION_DIR=""
8479
8480 else
8481 BASH_COMPLETION_CFLAGS=$pkg_cv_BASH_COMPLETION_CFLAGS
8482 BASH_COMPLETION_LIBS=$pkg_cv_BASH_COMPLETION_LIBS
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8484 printf "%s\n" "yes" >&6; }
8485
8486 BASH_COMPLETION_DIR="$datadir/bash-completion/completions"
8487
8488 fi
8489 else
8490 BASH_COMPLETION_DIR="$with_bash_completion_dir"
8491 fi
8492
8493 if test "x$with_bash_completion_dir" != "xno" && test "$BASH_COMPLETION_DIR" != ""; then
8494 ENABLE_BASH_COMPLETION_TRUE=
8495 ENABLE_BASH_COMPLETION_FALSE='#'
8496 else
8497 ENABLE_BASH_COMPLETION_TRUE='#'
8498 ENABLE_BASH_COMPLETION_FALSE=
8499 fi
8500
8501
8502
8503
8504 # Check whether --with-zsh-completion-dir was given.
8505 if test ${with_zsh_completion_dir+y}
8506 then :
8507 withval=$with_zsh_completion_dir;
8508 else $as_nop
8509 with_zsh_completion_dir=yes
8510 fi
8511
8512
8513 # Check zsh-completion
8514 if test "x$with_zsh_completion_dir" = "xyes"; then
8515
8516 # Extract the first word of "zsh", so it can be a program name with args.
8517 set dummy zsh; ac_word=$2
8518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519 printf %s "checking for $ac_word... " >&6; }
8520 if test ${ac_cv_prog_ZSH_AVAILABLE+y}
8521 then :
8522 printf %s "(cached) " >&6
8523 else $as_nop
8524 if test -n "$ZSH_AVAILABLE"; then
8525 ac_cv_prog_ZSH_AVAILABLE="$ZSH_AVAILABLE" # Let the user override the test.
8526 else
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 for as_dir in $PATH
8529 do
8530 IFS=$as_save_IFS
8531 case $as_dir in #(((
8532 '') as_dir=./ ;;
8533 */) ;;
8534 *) as_dir=$as_dir/ ;;
8535 esac
8536 for ac_exec_ext in '' $ac_executable_extensions; do
8537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8538 ac_cv_prog_ZSH_AVAILABLE="yes"
8539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8540 break 2
8541 fi
8542 done
8543 done
8544 IFS=$as_save_IFS
8545
8546 test -z "$ac_cv_prog_ZSH_AVAILABLE" && ac_cv_prog_ZSH_AVAILABLE="no"
8547 fi
8548 fi
8549 ZSH_AVAILABLE=$ac_cv_prog_ZSH_AVAILABLE
8550 if test -n "$ZSH_AVAILABLE"; then
8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZSH_AVAILABLE" >&5
8552 printf "%s\n" "$ZSH_AVAILABLE" >&6; }
8553 else
8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555 printf "%s\n" "no" >&6; }
8556 fi
8557
8558
8559
8560 if test "$ZSH_AVAILABLE" = "yes"
8561 then :
8562
8563 ZSH_COMPLETION_DIR="$datadir/zsh/vendor-completions"
8564
8565 else $as_nop
8566
8567 ZSH_COMPLETION_DIR=""
8568
8569 fi
8570 else
8571 ZSH_COMPLETION_DIR="$with_zsh_completion_dir"
8572 fi
8573
8574 if test "x$with_zsh_completion_dir" != "xno" && test "$ZSH_COMPLETION_DIR" != ""; then
8575 ENABLE_ZSH_COMPLETION_TRUE=
8576 ENABLE_ZSH_COMPLETION_FALSE='#'
8577 else
8578 ENABLE_ZSH_COMPLETION_TRUE='#'
8579 ENABLE_ZSH_COMPLETION_FALSE=
8580 fi
8581
8582
8583
8584 # Checks for header files.
8585 for ac_header in fcntl.h float.h inttypes.h limits.h locale.h netinet/in.h paths.h stddef.h stdint.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h
8586 do :
8587 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
8588 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8589 if eval test \"x\$"$as_ac_Header"\" = x"yes"
8590 then :
8591 cat >>confdefs.h <<_ACEOF
8592 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
8593 _ACEOF
8594
8595 else $as_nop
8596 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8597 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8598 as_fn_error $? "cannot find the $ac_header header, which i3lock requires
8599 See \`config.log' for more details" "$LINENO" 5; }
8600 fi
8601
8602 done
8603
8604 ac_config_files="$ac_config_files Makefile"
8605
8606
8607 # Enable address sanitizer for debug builds. The performance hit is a
8608 # 50% increase of wallclock time for the testsuite on my machine.
8609 if test "x$ax_enable_debug" = "xyes"; then
8610 default_sanitizers=address
8611 else
8612 default_sanitizers=
8613 fi
8614
8615
8616
8617
8618
8619
8620 # Check whether --enable-sanitizers was given.
8621 if test ${enable_sanitizers+y}
8622 then :
8623 enableval=$enable_sanitizers; ax_sanitizers_default=$enableval
8624 else $as_nop
8625 ax_sanitizers_default=
8626 fi
8627
8628 ax_enabled_sanitizers=
8629
8630 if test "x$ax_sanitizers_default" = "x"
8631 then :
8632 ax_sanitizer_default=
8633 for mycheck in $default_sanitizers; do
8634 if test "x$mycheck" = "xaddress"
8635 then :
8636 ax_sanitizer_default=yes
8637 fi
8638 done
8639 if test "x$ax_sanitizer_default" = "x"
8640 then :
8641 ax_sanitizer_default=no
8642 fi
8643
8644 else $as_nop
8645 ax_sanitizer_default=$ax_sanitizers_default
8646 fi
8647 # Check whether --enable-address-sanitizer was given.
8648 if test ${enable_address_sanitizer+y}
8649 then :
8650 enableval=$enable_address_sanitizer; ax_sanitizer_enabled=$enableval
8651 else $as_nop
8652 ax_sanitizer_enabled=$ax_sanitizer_default
8653 fi
8654
8655
8656 if test "x$ax_sanitizer_enabled" = "xyes"
8657 then :
8658
8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=address" >&5
8660 printf %s "checking whether C compiler accepts -fsanitize=address... " >&6; }
8661 if test ${ax_cv_check_cflags___fsanitize_address+y}
8662 then :
8663 printf %s "(cached) " >&6
8664 else $as_nop
8665
8666 ax_check_save_flags=$CFLAGS
8667 CFLAGS="$CFLAGS -fsanitize=address"
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8670
8671 int
8672 main (void)
8673 {
8674
8675 ;
8676 return 0;
8677 }
8678 _ACEOF
8679 if ac_fn_c_try_compile "$LINENO"
8680 then :
8681 ax_cv_check_cflags___fsanitize_address=yes
8682 else $as_nop
8683 ax_cv_check_cflags___fsanitize_address=no
8684 fi
8685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8686 CFLAGS=$ax_check_save_flags
8687 fi
8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_address" >&5
8689 printf "%s\n" "$ax_cv_check_cflags___fsanitize_address" >&6; }
8690 if test "x$ax_cv_check_cflags___fsanitize_address" = xyes
8691 then :
8692
8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fsanitize=address" >&5
8694 printf %s "checking whether the linker accepts -fsanitize=address... " >&6; }
8695 if test ${ax_cv_check_ldflags___fsanitize_address+y}
8696 then :
8697 printf %s "(cached) " >&6
8698 else $as_nop
8699
8700 ax_check_save_flags=$LDFLAGS
8701 LDFLAGS="$LDFLAGS -fsanitize=address"
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704
8705 int
8706 main (void)
8707 {
8708
8709 ;
8710 return 0;
8711 }
8712 _ACEOF
8713 if ac_fn_c_try_link "$LINENO"
8714 then :
8715 ax_cv_check_ldflags___fsanitize_address=yes
8716 else $as_nop
8717 ax_cv_check_ldflags___fsanitize_address=no
8718 fi
8719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8720 conftest$ac_exeext conftest.$ac_ext
8721 LDFLAGS=$ax_check_save_flags
8722 fi
8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fsanitize_address" >&5
8724 printf "%s\n" "$ax_cv_check_ldflags___fsanitize_address" >&6; }
8725 if test "x$ax_cv_check_ldflags___fsanitize_address" = xyes
8726 then :
8727
8728
8729 if test ${CFLAGS+y}
8730 then :
8731
8732 case " $CFLAGS " in #(
8733 *" -fsanitize=address "*) :
8734 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fsanitize=address"; } >&5
8735 (: CFLAGS already contains -fsanitize=address) 2>&5
8736 ac_status=$?
8737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8738 test $ac_status = 0; } ;; #(
8739 *) :
8740
8741 as_fn_append CFLAGS " -fsanitize=address"
8742 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8743 (: CFLAGS="$CFLAGS") 2>&5
8744 ac_status=$?
8745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8746 test $ac_status = 0; }
8747 ;;
8748 esac
8749
8750 else $as_nop
8751
8752 CFLAGS=-fsanitize=address
8753 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8754 (: CFLAGS="$CFLAGS") 2>&5
8755 ac_status=$?
8756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8757 test $ac_status = 0; }
8758
8759 fi
8760
8761
8762 if test ${LDFLAGS+y}
8763 then :
8764
8765 case " $LDFLAGS " in #(
8766 *" -fsanitize=address "*) :
8767 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains -fsanitize=address"; } >&5
8768 (: LDFLAGS already contains -fsanitize=address) 2>&5
8769 ac_status=$?
8770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8771 test $ac_status = 0; } ;; #(
8772 *) :
8773
8774 as_fn_append LDFLAGS " -fsanitize=address"
8775 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
8776 (: LDFLAGS="$LDFLAGS") 2>&5
8777 ac_status=$?
8778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8779 test $ac_status = 0; }
8780 ;;
8781 esac
8782
8783 else $as_nop
8784
8785 LDFLAGS=-fsanitize=address
8786 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
8787 (: LDFLAGS="$LDFLAGS") 2>&5
8788 ac_status=$?
8789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8790 test $ac_status = 0; }
8791
8792 fi
8793
8794 # -fno-omit-frame-pointer results in nicer stack traces in error
8795 # messages, see http://clang.llvm.org/docs/AddressSanitizer.html#usage
8796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-omit-frame-pointer" >&5
8797 printf %s "checking whether C compiler accepts -fno-omit-frame-pointer... " >&6; }
8798 if test ${ax_cv_check_cflags___fno_omit_frame_pointer+y}
8799 then :
8800 printf %s "(cached) " >&6
8801 else $as_nop
8802
8803 ax_check_save_flags=$CFLAGS
8804 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807
8808 int
8809 main (void)
8810 {
8811
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 if ac_fn_c_try_compile "$LINENO"
8817 then :
8818 ax_cv_check_cflags___fno_omit_frame_pointer=yes
8819 else $as_nop
8820 ax_cv_check_cflags___fno_omit_frame_pointer=no
8821 fi
8822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8823 CFLAGS=$ax_check_save_flags
8824 fi
8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_omit_frame_pointer" >&5
8826 printf "%s\n" "$ax_cv_check_cflags___fno_omit_frame_pointer" >&6; }
8827 if test "x$ax_cv_check_cflags___fno_omit_frame_pointer" = xyes
8828 then :
8829
8830
8831 if test ${CFLAGS+y}
8832 then :
8833
8834 case " $CFLAGS " in #(
8835 *" -fno-omit-frame-pointer "*) :
8836 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fno-omit-frame-pointer"; } >&5
8837 (: CFLAGS already contains -fno-omit-frame-pointer) 2>&5
8838 ac_status=$?
8839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8840 test $ac_status = 0; } ;; #(
8841 *) :
8842
8843 as_fn_append CFLAGS " -fno-omit-frame-pointer"
8844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8845 (: CFLAGS="$CFLAGS") 2>&5
8846 ac_status=$?
8847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8848 test $ac_status = 0; }
8849 ;;
8850 esac
8851
8852 else $as_nop
8853
8854 CFLAGS=-fno-omit-frame-pointer
8855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8856 (: CFLAGS="$CFLAGS") 2>&5
8857 ac_status=$?
8858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8859 test $ac_status = 0; }
8860
8861 fi
8862
8863 else $as_nop
8864 :
8865 fi
8866
8867 :
8868 ax_enabled_sanitizers="address $ax_enabled_sanitizers"
8869
8870 else $as_nop
8871 :
8872 fi
8873
8874
8875 else $as_nop
8876 :
8877 fi
8878
8879
8880 fi
8881
8882 if test "x$ax_sanitizers_default" = "x"
8883 then :
8884 ax_sanitizer_default=
8885 for mycheck in $default_sanitizers; do
8886 if test "x$mycheck" = "xmemory"
8887 then :
8888 ax_sanitizer_default=yes
8889 fi
8890 done
8891 if test "x$ax_sanitizer_default" = "x"
8892 then :
8893 ax_sanitizer_default=no
8894 fi
8895
8896 else $as_nop
8897 ax_sanitizer_default=$ax_sanitizers_default
8898 fi
8899 # Check whether --enable-memory-sanitizer was given.
8900 if test ${enable_memory_sanitizer+y}
8901 then :
8902 enableval=$enable_memory_sanitizer; ax_sanitizer_enabled=$enableval
8903 else $as_nop
8904 ax_sanitizer_enabled=$ax_sanitizer_default
8905 fi
8906
8907
8908 if test "x$ax_sanitizer_enabled" = "xyes"
8909 then :
8910
8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=memory" >&5
8912 printf %s "checking whether C compiler accepts -fsanitize=memory... " >&6; }
8913 if test ${ax_cv_check_cflags___fsanitize_memory+y}
8914 then :
8915 printf %s "(cached) " >&6
8916 else $as_nop
8917
8918 ax_check_save_flags=$CFLAGS
8919 CFLAGS="$CFLAGS -fsanitize=memory"
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922
8923 int
8924 main (void)
8925 {
8926
8927 ;
8928 return 0;
8929 }
8930 _ACEOF
8931 if ac_fn_c_try_compile "$LINENO"
8932 then :
8933 ax_cv_check_cflags___fsanitize_memory=yes
8934 else $as_nop
8935 ax_cv_check_cflags___fsanitize_memory=no
8936 fi
8937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8938 CFLAGS=$ax_check_save_flags
8939 fi
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_memory" >&5
8941 printf "%s\n" "$ax_cv_check_cflags___fsanitize_memory" >&6; }
8942 if test "x$ax_cv_check_cflags___fsanitize_memory" = xyes
8943 then :
8944
8945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fsanitize=memory" >&5
8946 printf %s "checking whether the linker accepts -fsanitize=memory... " >&6; }
8947 if test ${ax_cv_check_ldflags___fsanitize_memory+y}
8948 then :
8949 printf %s "(cached) " >&6
8950 else $as_nop
8951
8952 ax_check_save_flags=$LDFLAGS
8953 LDFLAGS="$LDFLAGS -fsanitize=memory"
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956
8957 int
8958 main (void)
8959 {
8960
8961 ;
8962 return 0;
8963 }
8964 _ACEOF
8965 if ac_fn_c_try_link "$LINENO"
8966 then :
8967 ax_cv_check_ldflags___fsanitize_memory=yes
8968 else $as_nop
8969 ax_cv_check_ldflags___fsanitize_memory=no
8970 fi
8971 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8972 conftest$ac_exeext conftest.$ac_ext
8973 LDFLAGS=$ax_check_save_flags
8974 fi
8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fsanitize_memory" >&5
8976 printf "%s\n" "$ax_cv_check_ldflags___fsanitize_memory" >&6; }
8977 if test "x$ax_cv_check_ldflags___fsanitize_memory" = xyes
8978 then :
8979
8980
8981 if test ${CFLAGS+y}
8982 then :
8983
8984 case " $CFLAGS " in #(
8985 *" -fsanitize=memory "*) :
8986 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fsanitize=memory"; } >&5
8987 (: CFLAGS already contains -fsanitize=memory) 2>&5
8988 ac_status=$?
8989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8990 test $ac_status = 0; } ;; #(
8991 *) :
8992
8993 as_fn_append CFLAGS " -fsanitize=memory"
8994 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8995 (: CFLAGS="$CFLAGS") 2>&5
8996 ac_status=$?
8997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8998 test $ac_status = 0; }
8999 ;;
9000 esac
9001
9002 else $as_nop
9003
9004 CFLAGS=-fsanitize=memory
9005 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9006 (: CFLAGS="$CFLAGS") 2>&5
9007 ac_status=$?
9008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9009 test $ac_status = 0; }
9010
9011 fi
9012
9013
9014 if test ${LDFLAGS+y}
9015 then :
9016
9017 case " $LDFLAGS " in #(
9018 *" -fsanitize=memory "*) :
9019 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains -fsanitize=memory"; } >&5
9020 (: LDFLAGS already contains -fsanitize=memory) 2>&5
9021 ac_status=$?
9022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9023 test $ac_status = 0; } ;; #(
9024 *) :
9025
9026 as_fn_append LDFLAGS " -fsanitize=memory"
9027 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
9028 (: LDFLAGS="$LDFLAGS") 2>&5
9029 ac_status=$?
9030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9031 test $ac_status = 0; }
9032 ;;
9033 esac
9034
9035 else $as_nop
9036
9037 LDFLAGS=-fsanitize=memory
9038 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
9039 (: LDFLAGS="$LDFLAGS") 2>&5
9040 ac_status=$?
9041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9042 test $ac_status = 0; }
9043
9044 fi
9045
9046 # -fno-omit-frame-pointer results in nicer stack traces in error
9047 # messages, see http://clang.llvm.org/docs/AddressSanitizer.html#usage
9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-omit-frame-pointer" >&5
9049 printf %s "checking whether C compiler accepts -fno-omit-frame-pointer... " >&6; }
9050 if test ${ax_cv_check_cflags___fno_omit_frame_pointer+y}
9051 then :
9052 printf %s "(cached) " >&6
9053 else $as_nop
9054
9055 ax_check_save_flags=$CFLAGS
9056 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9059
9060 int
9061 main (void)
9062 {
9063
9064 ;
9065 return 0;
9066 }
9067 _ACEOF
9068 if ac_fn_c_try_compile "$LINENO"
9069 then :
9070 ax_cv_check_cflags___fno_omit_frame_pointer=yes
9071 else $as_nop
9072 ax_cv_check_cflags___fno_omit_frame_pointer=no
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9075 CFLAGS=$ax_check_save_flags
9076 fi
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_omit_frame_pointer" >&5
9078 printf "%s\n" "$ax_cv_check_cflags___fno_omit_frame_pointer" >&6; }
9079 if test "x$ax_cv_check_cflags___fno_omit_frame_pointer" = xyes
9080 then :
9081
9082
9083 if test ${CFLAGS+y}
9084 then :
9085
9086 case " $CFLAGS " in #(
9087 *" -fno-omit-frame-pointer "*) :
9088 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fno-omit-frame-pointer"; } >&5
9089 (: CFLAGS already contains -fno-omit-frame-pointer) 2>&5
9090 ac_status=$?
9091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9092 test $ac_status = 0; } ;; #(
9093 *) :
9094
9095 as_fn_append CFLAGS " -fno-omit-frame-pointer"
9096 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9097 (: CFLAGS="$CFLAGS") 2>&5
9098 ac_status=$?
9099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9100 test $ac_status = 0; }
9101 ;;
9102 esac
9103
9104 else $as_nop
9105
9106 CFLAGS=-fno-omit-frame-pointer
9107 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9108 (: CFLAGS="$CFLAGS") 2>&5
9109 ac_status=$?
9110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9111 test $ac_status = 0; }
9112
9113 fi
9114
9115 else $as_nop
9116 :
9117 fi
9118
9119 :
9120 ax_enabled_sanitizers="memory $ax_enabled_sanitizers"
9121
9122 else $as_nop
9123 :
9124 fi
9125
9126
9127 else $as_nop
9128 :
9129 fi
9130
9131
9132 fi
9133
9134 if test "x$ax_sanitizers_default" = "x"
9135 then :
9136 ax_sanitizer_default=
9137 for mycheck in $default_sanitizers; do
9138 if test "x$mycheck" = "xundefined"
9139 then :
9140 ax_sanitizer_default=yes
9141 fi
9142 done
9143 if test "x$ax_sanitizer_default" = "x"
9144 then :
9145 ax_sanitizer_default=no
9146 fi
9147
9148 else $as_nop
9149 ax_sanitizer_default=$ax_sanitizers_default
9150 fi
9151 # Check whether --enable-undefined-sanitizer was given.
9152 if test ${enable_undefined_sanitizer+y}
9153 then :
9154 enableval=$enable_undefined_sanitizer; ax_sanitizer_enabled=$enableval
9155 else $as_nop
9156 ax_sanitizer_enabled=$ax_sanitizer_default
9157 fi
9158
9159
9160 if test "x$ax_sanitizer_enabled" = "xyes"
9161 then :
9162
9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=undefined" >&5
9164 printf %s "checking whether C compiler accepts -fsanitize=undefined... " >&6; }
9165 if test ${ax_cv_check_cflags___fsanitize_undefined+y}
9166 then :
9167 printf %s "(cached) " >&6
9168 else $as_nop
9169
9170 ax_check_save_flags=$CFLAGS
9171 CFLAGS="$CFLAGS -fsanitize=undefined"
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174
9175 int
9176 main (void)
9177 {
9178
9179 ;
9180 return 0;
9181 }
9182 _ACEOF
9183 if ac_fn_c_try_compile "$LINENO"
9184 then :
9185 ax_cv_check_cflags___fsanitize_undefined=yes
9186 else $as_nop
9187 ax_cv_check_cflags___fsanitize_undefined=no
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9190 CFLAGS=$ax_check_save_flags
9191 fi
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_undefined" >&5
9193 printf "%s\n" "$ax_cv_check_cflags___fsanitize_undefined" >&6; }
9194 if test "x$ax_cv_check_cflags___fsanitize_undefined" = xyes
9195 then :
9196
9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fsanitize=undefined" >&5
9198 printf %s "checking whether the linker accepts -fsanitize=undefined... " >&6; }
9199 if test ${ax_cv_check_ldflags___fsanitize_undefined+y}
9200 then :
9201 printf %s "(cached) " >&6
9202 else $as_nop
9203
9204 ax_check_save_flags=$LDFLAGS
9205 LDFLAGS="$LDFLAGS -fsanitize=undefined"
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208
9209 int
9210 main (void)
9211 {
9212
9213 ;
9214 return 0;
9215 }
9216 _ACEOF
9217 if ac_fn_c_try_link "$LINENO"
9218 then :
9219 ax_cv_check_ldflags___fsanitize_undefined=yes
9220 else $as_nop
9221 ax_cv_check_ldflags___fsanitize_undefined=no
9222 fi
9223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9224 conftest$ac_exeext conftest.$ac_ext
9225 LDFLAGS=$ax_check_save_flags
9226 fi
9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fsanitize_undefined" >&5
9228 printf "%s\n" "$ax_cv_check_ldflags___fsanitize_undefined" >&6; }
9229 if test "x$ax_cv_check_ldflags___fsanitize_undefined" = xyes
9230 then :
9231
9232
9233 if test ${CFLAGS+y}
9234 then :
9235
9236 case " $CFLAGS " in #(
9237 *" -fsanitize=undefined "*) :
9238 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fsanitize=undefined"; } >&5
9239 (: CFLAGS already contains -fsanitize=undefined) 2>&5
9240 ac_status=$?
9241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9242 test $ac_status = 0; } ;; #(
9243 *) :
9244
9245 as_fn_append CFLAGS " -fsanitize=undefined"
9246 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9247 (: CFLAGS="$CFLAGS") 2>&5
9248 ac_status=$?
9249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9250 test $ac_status = 0; }
9251 ;;
9252 esac
9253
9254 else $as_nop
9255
9256 CFLAGS=-fsanitize=undefined
9257 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9258 (: CFLAGS="$CFLAGS") 2>&5
9259 ac_status=$?
9260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9261 test $ac_status = 0; }
9262
9263 fi
9264
9265
9266 if test ${LDFLAGS+y}
9267 then :
9268
9269 case " $LDFLAGS " in #(
9270 *" -fsanitize=undefined "*) :
9271 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains -fsanitize=undefined"; } >&5
9272 (: LDFLAGS already contains -fsanitize=undefined) 2>&5
9273 ac_status=$?
9274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9275 test $ac_status = 0; } ;; #(
9276 *) :
9277
9278 as_fn_append LDFLAGS " -fsanitize=undefined"
9279 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
9280 (: LDFLAGS="$LDFLAGS") 2>&5
9281 ac_status=$?
9282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9283 test $ac_status = 0; }
9284 ;;
9285 esac
9286
9287 else $as_nop
9288
9289 LDFLAGS=-fsanitize=undefined
9290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
9291 (: LDFLAGS="$LDFLAGS") 2>&5
9292 ac_status=$?
9293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9294 test $ac_status = 0; }
9295
9296 fi
9297
9298 # -fno-omit-frame-pointer results in nicer stack traces in error
9299 # messages, see http://clang.llvm.org/docs/AddressSanitizer.html#usage
9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-omit-frame-pointer" >&5
9301 printf %s "checking whether C compiler accepts -fno-omit-frame-pointer... " >&6; }
9302 if test ${ax_cv_check_cflags___fno_omit_frame_pointer+y}
9303 then :
9304 printf %s "(cached) " >&6
9305 else $as_nop
9306
9307 ax_check_save_flags=$CFLAGS
9308 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311
9312 int
9313 main (void)
9314 {
9315
9316 ;
9317 return 0;
9318 }
9319 _ACEOF
9320 if ac_fn_c_try_compile "$LINENO"
9321 then :
9322 ax_cv_check_cflags___fno_omit_frame_pointer=yes
9323 else $as_nop
9324 ax_cv_check_cflags___fno_omit_frame_pointer=no
9325 fi
9326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9327 CFLAGS=$ax_check_save_flags
9328 fi
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_omit_frame_pointer" >&5
9330 printf "%s\n" "$ax_cv_check_cflags___fno_omit_frame_pointer" >&6; }
9331 if test "x$ax_cv_check_cflags___fno_omit_frame_pointer" = xyes
9332 then :
9333
9334
9335 if test ${CFLAGS+y}
9336 then :
9337
9338 case " $CFLAGS " in #(
9339 *" -fno-omit-frame-pointer "*) :
9340 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains -fno-omit-frame-pointer"; } >&5
9341 (: CFLAGS already contains -fno-omit-frame-pointer) 2>&5
9342 ac_status=$?
9343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9344 test $ac_status = 0; } ;; #(
9345 *) :
9346
9347 as_fn_append CFLAGS " -fno-omit-frame-pointer"
9348 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9349 (: CFLAGS="$CFLAGS") 2>&5
9350 ac_status=$?
9351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9352 test $ac_status = 0; }
9353 ;;
9354 esac
9355
9356 else $as_nop
9357
9358 CFLAGS=-fno-omit-frame-pointer
9359 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9360 (: CFLAGS="$CFLAGS") 2>&5
9361 ac_status=$?
9362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9363 test $ac_status = 0; }
9364
9365 fi
9366
9367 else $as_nop
9368 :
9369 fi
9370
9371 :
9372 ax_enabled_sanitizers="undefined $ax_enabled_sanitizers"
9373
9374 else $as_nop
9375 :
9376 fi
9377
9378
9379 else $as_nop
9380 :
9381 fi
9382
9383
9384 fi
9385
9386
9387 cat >confcache <<\_ACEOF
9388 # This file is a shell script that caches the results of configure
9389 # tests run on this system so they can be shared between configure
9390 # scripts and configure runs, see configure's option --config-cache.
9391 # It is not useful on other systems. If it contains results you don't
9392 # want to keep, you may remove or edit it.
9393 #
9394 # config.status only pays attention to the cache file if you give it
9395 # the --recheck option to rerun configure.
9396 #
9397 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9398 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9399 # following values.
9400
9401 _ACEOF
9402
9403 # The following way of writing the cache mishandles newlines in values,
9404 # but we know of no workaround that is simple, portable, and efficient.
9405 # So, we kill variables containing newlines.
9406 # Ultrix sh set writes to stderr and can't be redirected directly,
9407 # and sets the high bit in the cache file unless we assign to the vars.
9408 (
9409 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9410 eval ac_val=\$$ac_var
9411 case $ac_val in #(
9412 *${as_nl}*)
9413 case $ac_var in #(
9414 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9415 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9416 esac
9417 case $ac_var in #(
9418 _ | IFS | as_nl) ;; #(
9419 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9420 *) { eval $ac_var=; unset $ac_var;} ;;
9421 esac ;;
9422 esac
9423 done
9424
9425 (set) 2>&1 |
9426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9427 *${as_nl}ac_space=\ *)
9428 # `set' does not quote correctly, so add quotes: double-quote
9429 # substitution turns \\\\ into \\, and sed turns \\ into \.
9430 sed -n \
9431 "s/'/'\\\\''/g;
9432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9433 ;; #(
9434 *)
9435 # `set' quotes correctly as required by POSIX, so do not add quotes.
9436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9437 ;;
9438 esac |
9439 sort
9440 ) |
9441 sed '
9442 /^ac_cv_env_/b end
9443 t clear
9444 :clear
9445 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
9446 t end
9447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9448 :end' >>confcache
9449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9450 if test -w "$cache_file"; then
9451 if test "x$cache_file" != "x/dev/null"; then
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9453 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
9454 if test ! -f "$cache_file" || test -h "$cache_file"; then
9455 cat confcache >"$cache_file"
9456 else
9457 case $cache_file in #(
9458 */* | ?:*)
9459 mv -f confcache "$cache_file"$$ &&
9460 mv -f "$cache_file"$$ "$cache_file" ;; #(
9461 *)
9462 mv -f confcache "$cache_file" ;;
9463 esac
9464 fi
9465 fi
9466 else
9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9468 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
9469 fi
9470 fi
9471 rm -f confcache
9472
9473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9474 # Let make expand exec_prefix.
9475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9476
9477 DEFS=-DHAVE_CONFIG_H
9478
9479 ac_libobjs=
9480 ac_ltlibobjs=
9481 U=
9482 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9483 # 1. Remove the extension, and $U if already installed.
9484 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9485 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
9486 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9487 # will be set to the directory where LIBOBJS objects are built.
9488 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9489 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9490 done
9491 LIBOBJS=$ac_libobjs
9492
9493 LTLIBOBJS=$ac_ltlibobjs
9494
9495
9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9497 printf %s "checking that generated files are newer than configure... " >&6; }
9498 if test -n "$am_sleep_pid"; then
9499 # Hide warnings about reused PIDs.
9500 wait $am_sleep_pid 2>/dev/null
9501 fi
9502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
9503 printf "%s\n" "done" >&6; }
9504 if test -n "$EXEEXT"; then
9505 am__EXEEXT_TRUE=
9506 am__EXEEXT_FALSE='#'
9507 else
9508 am__EXEEXT_TRUE='#'
9509 am__EXEEXT_FALSE=
9510 fi
9511
9512 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9513 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9515 fi
9516 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
9517 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
9518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9519 fi
9520 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9521 as_fn_error $? "conditional \"AMDEP\" was never defined.
9522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9523 fi
9524 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9525 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9527 fi
9528 if test -z "${ENABLE_BASH_COMPLETION_TRUE}" && test -z "${ENABLE_BASH_COMPLETION_FALSE}"; then
9529 as_fn_error $? "conditional \"ENABLE_BASH_COMPLETION\" was never defined.
9530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9531 fi
9532 if test -z "${ENABLE_ZSH_COMPLETION_TRUE}" && test -z "${ENABLE_ZSH_COMPLETION_FALSE}"; then
9533 as_fn_error $? "conditional \"ENABLE_ZSH_COMPLETION\" was never defined.
9534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9535 fi
9536
9537 : "${CONFIG_STATUS=./config.status}"
9538 ac_write_fail=0
9539 ac_clean_files_save=$ac_clean_files
9540 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9542 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
9543 as_write_fail=0
9544 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9545 #! $SHELL
9546 # Generated by $as_me.
9547 # Run this file to recreate the current configuration.
9548 # Compiler output produced by configure, useful for debugging
9549 # configure, is in config.log if it exists.
9550
9551 debug=false
9552 ac_cs_recheck=false
9553 ac_cs_silent=false
9554
9555 SHELL=\${CONFIG_SHELL-$SHELL}
9556 export SHELL
9557 _ASEOF
9558 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9559 ## -------------------- ##
9560 ## M4sh Initialization. ##
9561 ## -------------------- ##
9562
9563 # Be more Bourne compatible
9564 DUALCASE=1; export DUALCASE # for MKS sh
9565 as_nop=:
9566 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
9567 then :
9568 emulate sh
9569 NULLCMD=:
9570 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9571 # is contrary to our usage. Disable this feature.
9572 alias -g '${1+"$@"}'='"$@"'
9573 setopt NO_GLOB_SUBST
9574 else $as_nop
9575 case `(set -o) 2>/dev/null` in #(
9576 *posix*) :
9577 set -o posix ;; #(
9578 *) :
9579 ;;
9580 esac
9581 fi
9582
9583
9584
9585 # Reset variables that may have inherited troublesome values from
9586 # the environment.
9587
9588 # IFS needs to be set, to space, tab, and newline, in precisely that order.
9589 # (If _AS_PATH_WALK were called with IFS unset, it would have the
9590 # side effect of setting IFS to empty, thus disabling word splitting.)
9591 # Quoting is to prevent editors from complaining about space-tab.
9592 as_nl='
9593 '
9594 export as_nl
9595 IFS=" "" $as_nl"
9596
9597 PS1='$ '
9598 PS2='> '
9599 PS4='+ '
9600
9601 # Ensure predictable behavior from utilities with locale-dependent output.
9602 LC_ALL=C
9603 export LC_ALL
9604 LANGUAGE=C
9605 export LANGUAGE
9606
9607 # We cannot yet rely on "unset" to work, but we need these variables
9608 # to be unset--not just set to an empty or harmless value--now, to
9609 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
9610 # also avoids known problems related to "unset" and subshell syntax
9611 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
9612 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
9613 do eval test \${$as_var+y} \
9614 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9615 done
9616
9617 # Ensure that fds 0, 1, and 2 are open.
9618 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
9619 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
9620 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
9621
9622 # The user is always right.
9623 if ${PATH_SEPARATOR+false} :; then
9624 PATH_SEPARATOR=:
9625 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9626 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9627 PATH_SEPARATOR=';'
9628 }
9629 fi
9630
9631
9632 # Find who we are. Look in the path if we contain no directory separator.
9633 as_myself=
9634 case $0 in #((
9635 *[\\/]* ) as_myself=$0 ;;
9636 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637 for as_dir in $PATH
9638 do
9639 IFS=$as_save_IFS
9640 case $as_dir in #(((
9641 '') as_dir=./ ;;
9642 */) ;;
9643 *) as_dir=$as_dir/ ;;
9644 esac
9645 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9646 done
9647 IFS=$as_save_IFS
9648
9649 ;;
9650 esac
9651 # We did not find ourselves, most probably we were run as `sh COMMAND'
9652 # in which case we are not to be found in the path.
9653 if test "x$as_myself" = x; then
9654 as_myself=$0
9655 fi
9656 if test ! -f "$as_myself"; then
9657 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9658 exit 1
9659 fi
9660
9661
9662
9663 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9664 # ----------------------------------------
9665 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9666 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9667 # script with STATUS, using 1 if that was 0.
9668 as_fn_error ()
9669 {
9670 as_status=$1; test $as_status -eq 0 && as_status=1
9671 if test "$4"; then
9672 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9674 fi
9675 printf "%s\n" "$as_me: error: $2" >&2
9676 as_fn_exit $as_status
9677 } # as_fn_error
9678
9679
9680
9681 # as_fn_set_status STATUS
9682 # -----------------------
9683 # Set $? to STATUS, without forking.
9684 as_fn_set_status ()
9685 {
9686 return $1
9687 } # as_fn_set_status
9688
9689 # as_fn_exit STATUS
9690 # -----------------
9691 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9692 as_fn_exit ()
9693 {
9694 set +e
9695 as_fn_set_status $1
9696 exit $1
9697 } # as_fn_exit
9698
9699 # as_fn_unset VAR
9700 # ---------------
9701 # Portably unset VAR.
9702 as_fn_unset ()
9703 {
9704 { eval $1=; unset $1;}
9705 }
9706 as_unset=as_fn_unset
9707
9708 # as_fn_append VAR VALUE
9709 # ----------------------
9710 # Append the text in VALUE to the end of the definition contained in VAR. Take
9711 # advantage of any shell optimizations that allow amortized linear growth over
9712 # repeated appends, instead of the typical quadratic growth present in naive
9713 # implementations.
9714 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
9715 then :
9716 eval 'as_fn_append ()
9717 {
9718 eval $1+=\$2
9719 }'
9720 else $as_nop
9721 as_fn_append ()
9722 {
9723 eval $1=\$$1\$2
9724 }
9725 fi # as_fn_append
9726
9727 # as_fn_arith ARG...
9728 # ------------------
9729 # Perform arithmetic evaluation on the ARGs, and store the result in the
9730 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9731 # must be portable across $(()) and expr.
9732 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
9733 then :
9734 eval 'as_fn_arith ()
9735 {
9736 as_val=$(( $* ))
9737 }'
9738 else $as_nop
9739 as_fn_arith ()
9740 {
9741 as_val=`expr "$@" || test $? -eq 1`
9742 }
9743 fi # as_fn_arith
9744
9745
9746 if expr a : '\(a\)' >/dev/null 2>&1 &&
9747 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9748 as_expr=expr
9749 else
9750 as_expr=false
9751 fi
9752
9753 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9754 as_basename=basename
9755 else
9756 as_basename=false
9757 fi
9758
9759 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9760 as_dirname=dirname
9761 else
9762 as_dirname=false
9763 fi
9764
9765 as_me=`$as_basename -- "$0" ||
9766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9767 X"$0" : 'X\(//\)$' \| \
9768 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9769 printf "%s\n" X/"$0" |
9770 sed '/^.*\/\([^/][^/]*\)\/*$/{
9771 s//\1/
9772 q
9773 }
9774 /^X\/\(\/\/\)$/{
9775 s//\1/
9776 q
9777 }
9778 /^X\/\(\/\).*/{
9779 s//\1/
9780 q
9781 }
9782 s/.*/./; q'`
9783
9784 # Avoid depending upon Character Ranges.
9785 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9786 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9787 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9788 as_cr_digits='0123456789'
9789 as_cr_alnum=$as_cr_Letters$as_cr_digits
9790
9791
9792 # Determine whether it's possible to make 'echo' print without a newline.
9793 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
9794 # for compatibility with existing Makefiles.
9795 ECHO_C= ECHO_N= ECHO_T=
9796 case `echo -n x` in #(((((
9797 -n*)
9798 case `echo 'xy\c'` in
9799 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9800 xy) ECHO_C='\c';;
9801 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9802 ECHO_T=' ';;
9803 esac;;
9804 *)
9805 ECHO_N='-n';;
9806 esac
9807
9808 # For backward compatibility with old third-party macros, we provide
9809 # the shell variables $as_echo and $as_echo_n. New code should use
9810 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
9811 as_echo='printf %s\n'
9812 as_echo_n='printf %s'
9813
9814 rm -f conf$$ conf$$.exe conf$$.file
9815 if test -d conf$$.dir; then
9816 rm -f conf$$.dir/conf$$.file
9817 else
9818 rm -f conf$$.dir
9819 mkdir conf$$.dir 2>/dev/null
9820 fi
9821 if (echo >conf$$.file) 2>/dev/null; then
9822 if ln -s conf$$.file conf$$ 2>/dev/null; then
9823 as_ln_s='ln -s'
9824 # ... but there are two gotchas:
9825 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9826 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9827 # In both cases, we have to default to `cp -pR'.
9828 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9829 as_ln_s='cp -pR'
9830 elif ln conf$$.file conf$$ 2>/dev/null; then
9831 as_ln_s=ln
9832 else
9833 as_ln_s='cp -pR'
9834 fi
9835 else
9836 as_ln_s='cp -pR'
9837 fi
9838 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9839 rmdir conf$$.dir 2>/dev/null
9840
9841
9842 # as_fn_mkdir_p
9843 # -------------
9844 # Create "$as_dir" as a directory, including parents if necessary.
9845 as_fn_mkdir_p ()
9846 {
9847
9848 case $as_dir in #(
9849 -*) as_dir=./$as_dir;;
9850 esac
9851 test -d "$as_dir" || eval $as_mkdir_p || {
9852 as_dirs=
9853 while :; do
9854 case $as_dir in #(
9855 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9856 *) as_qdir=$as_dir;;
9857 esac
9858 as_dirs="'$as_qdir' $as_dirs"
9859 as_dir=`$as_dirname -- "$as_dir" ||
9860 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9861 X"$as_dir" : 'X\(//\)[^/]' \| \
9862 X"$as_dir" : 'X\(//\)$' \| \
9863 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9864 printf "%s\n" X"$as_dir" |
9865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9866 s//\1/
9867 q
9868 }
9869 /^X\(\/\/\)[^/].*/{
9870 s//\1/
9871 q
9872 }
9873 /^X\(\/\/\)$/{
9874 s//\1/
9875 q
9876 }
9877 /^X\(\/\).*/{
9878 s//\1/
9879 q
9880 }
9881 s/.*/./; q'`
9882 test -d "$as_dir" && break
9883 done
9884 test -z "$as_dirs" || eval "mkdir $as_dirs"
9885 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9886
9887
9888 } # as_fn_mkdir_p
9889 if mkdir -p . 2>/dev/null; then
9890 as_mkdir_p='mkdir -p "$as_dir"'
9891 else
9892 test -d ./-p && rmdir ./-p
9893 as_mkdir_p=false
9894 fi
9895
9896
9897 # as_fn_executable_p FILE
9898 # -----------------------
9899 # Test if FILE is an executable regular file.
9900 as_fn_executable_p ()
9901 {
9902 test -f "$1" && test -x "$1"
9903 } # as_fn_executable_p
9904 as_test_x='test -x'
9905 as_executable_p=as_fn_executable_p
9906
9907 # Sed expression to map a string onto a valid CPP name.
9908 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9909
9910 # Sed expression to map a string onto a valid variable name.
9911 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9912
9913
9914 exec 6>&1
9915 ## ----------------------------------- ##
9916 ## Main body of $CONFIG_STATUS script. ##
9917 ## ----------------------------------- ##
9918 _ASEOF
9919 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9920
9921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9922 # Save the log message, to keep $0 and so on meaningful, and to
9923 # report actual input values of CONFIG_FILES etc. instead of their
9924 # values after options handling.
9925 ac_log="
9926 This file was extended by i3lock-color $as_me 2.13.c.4, which was
9927 generated by GNU Autoconf 2.71. Invocation command line was
9928
9929 CONFIG_FILES = $CONFIG_FILES
9930 CONFIG_HEADERS = $CONFIG_HEADERS
9931 CONFIG_LINKS = $CONFIG_LINKS
9932 CONFIG_COMMANDS = $CONFIG_COMMANDS
9933 $ $0 $@
9934
9935 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9936 "
9937
9938 _ACEOF
9939
9940 case $ac_config_files in *"
9941 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9942 esac
9943
9944 case $ac_config_headers in *"
9945 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9946 esac
9947
9948
9949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9950 # Files that config.status was made for.
9951 config_files="$ac_config_files"
9952 config_headers="$ac_config_headers"
9953 config_commands="$ac_config_commands"
9954
9955 _ACEOF
9956
9957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9958 ac_cs_usage="\
9959 \`$as_me' instantiates files and other configuration actions
9960 from templates according to the current configuration. Unless the files
9961 and actions are specified as TAGs, all are instantiated by default.
9962
9963 Usage: $0 [OPTION]... [TAG]...
9964
9965 -h, --help print this help, then exit
9966 -V, --version print version number and configuration settings, then exit
9967 --config print configuration, then exit
9968 -q, --quiet, --silent
9969 do not print progress messages
9970 -d, --debug don't remove temporary files
9971 --recheck update $as_me by reconfiguring in the same conditions
9972 --file=FILE[:TEMPLATE]
9973 instantiate the configuration file FILE
9974 --header=FILE[:TEMPLATE]
9975 instantiate the configuration header FILE
9976
9977 Configuration files:
9978 $config_files
9979
9980 Configuration headers:
9981 $config_headers
9982
9983 Configuration commands:
9984 $config_commands
9985
9986 Report bugs to <https://github.com/Raymo11/i3lock-color/issues>."
9987
9988 _ACEOF
9989 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9990 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9992 ac_cs_config='$ac_cs_config_escaped'
9993 ac_cs_version="\\
9994 i3lock-color config.status 2.13.c.4
9995 configured by $0, generated by GNU Autoconf 2.71,
9996 with options \\"\$ac_cs_config\\"
9997
9998 Copyright (C) 2021 Free Software Foundation, Inc.
9999 This config.status script is free software; the Free Software Foundation
10000 gives unlimited permission to copy, distribute and modify it."
10001
10002 ac_pwd='$ac_pwd'
10003 srcdir='$srcdir'
10004 INSTALL='$INSTALL'
10005 MKDIR_P='$MKDIR_P'
10006 AWK='$AWK'
10007 test -n "\$AWK" || AWK=awk
10008 _ACEOF
10009
10010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10011 # The default lists apply if the user does not specify any file.
10012 ac_need_defaults=:
10013 while test $# != 0
10014 do
10015 case $1 in
10016 --*=?*)
10017 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10018 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10019 ac_shift=:
10020 ;;
10021 --*=)
10022 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10023 ac_optarg=
10024 ac_shift=:
10025 ;;
10026 *)
10027 ac_option=$1
10028 ac_optarg=$2
10029 ac_shift=shift
10030 ;;
10031 esac
10032
10033 case $ac_option in
10034 # Handling of the options.
10035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10036 ac_cs_recheck=: ;;
10037 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10038 printf "%s\n" "$ac_cs_version"; exit ;;
10039 --config | --confi | --conf | --con | --co | --c )
10040 printf "%s\n" "$ac_cs_config"; exit ;;
10041 --debug | --debu | --deb | --de | --d | -d )
10042 debug=: ;;
10043 --file | --fil | --fi | --f )
10044 $ac_shift
10045 case $ac_optarg in
10046 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10047 '') as_fn_error $? "missing file argument" ;;
10048 esac
10049 as_fn_append CONFIG_FILES " '$ac_optarg'"
10050 ac_need_defaults=false;;
10051 --header | --heade | --head | --hea )
10052 $ac_shift
10053 case $ac_optarg in
10054 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10055 esac
10056 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10057 ac_need_defaults=false;;
10058 --he | --h)
10059 # Conflict between --help and --header
10060 as_fn_error $? "ambiguous option: \`$1'
10061 Try \`$0 --help' for more information.";;
10062 --help | --hel | -h )
10063 printf "%s\n" "$ac_cs_usage"; exit ;;
10064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10065 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10066 ac_cs_silent=: ;;
10067
10068 # This is an error.
10069 -*) as_fn_error $? "unrecognized option: \`$1'
10070 Try \`$0 --help' for more information." ;;
10071
10072 *) as_fn_append ac_config_targets " $1"
10073 ac_need_defaults=false ;;
10074
10075 esac
10076 shift
10077 done
10078
10079 ac_configure_extra_args=
10080
10081 if $ac_cs_silent; then
10082 exec 6>/dev/null
10083 ac_configure_extra_args="$ac_configure_extra_args --silent"
10084 fi
10085
10086 _ACEOF
10087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10088 if \$ac_cs_recheck; then
10089 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10090 shift
10091 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
10092 CONFIG_SHELL='$SHELL'
10093 export CONFIG_SHELL
10094 exec "\$@"
10095 fi
10096
10097 _ACEOF
10098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10099 exec 5>>config.log
10100 {
10101 echo
10102 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10103 ## Running $as_me. ##
10104 _ASBOX
10105 printf "%s\n" "$ac_log"
10106 } >&5
10107
10108 _ACEOF
10109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10110 #
10111 # INIT-COMMANDS
10112 #
10113 ax_enable_builddir_srcdir="$srcdir" # $srcdir
10114 ax_enable_builddir_host="$HOST" # $HOST / $host
10115 ax_enable_builddir_version="$VERSION" # $VERSION
10116 ax_enable_builddir_package="$PACKAGE" # $PACKAGE
10117 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
10118 ax_enable_builddir_sed="$ax_enable_builddir_sed" # $SED
10119 ax_enable_builddir="$ax_enable_builddir" # $SUB
10120
10121 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
10122
10123 _ACEOF
10124
10125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10126
10127 # Handling of arguments.
10128 for ac_config_target in $ac_config_targets
10129 do
10130 case $ac_config_target in
10131 "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
10132 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10133 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10134 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10135
10136 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10137 esac
10138 done
10139
10140
10141 # If the user did not use the arguments to specify the items to instantiate,
10142 # then the envvar interface is used. Set only those that are not.
10143 # We use the long form for the default assignment because of an extremely
10144 # bizarre bug on SunOS 4.1.3.
10145 if $ac_need_defaults; then
10146 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
10147 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
10148 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
10149 fi
10150
10151 # Have a temporary directory for convenience. Make it in the build tree
10152 # simply because there is no reason against having it here, and in addition,
10153 # creating and moving files from /tmp can sometimes cause problems.
10154 # Hook for its removal unless debugging.
10155 # Note that there is a small window in which the directory will not be cleaned:
10156 # after its creation but before its name has been assigned to `$tmp'.
10157 $debug ||
10158 {
10159 tmp= ac_tmp=
10160 trap 'exit_status=$?
10161 : "${ac_tmp:=$tmp}"
10162 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10163 ' 0
10164 trap 'as_fn_exit 1' 1 2 13 15
10165 }
10166 # Create a (secure) tmp directory for tmp files.
10167
10168 {
10169 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10170 test -d "$tmp"
10171 } ||
10172 {
10173 tmp=./conf$$-$RANDOM
10174 (umask 077 && mkdir "$tmp")
10175 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10176 ac_tmp=$tmp
10177
10178 # Set up the scripts for CONFIG_FILES section.
10179 # No need to generate them if there are no CONFIG_FILES.
10180 # This happens for instance with `./config.status config.h'.
10181 if test -n "$CONFIG_FILES"; then
10182
10183
10184 ac_cr=`echo X | tr X '\015'`
10185 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10186 # But we know of no other shell where ac_cr would be empty at this
10187 # point, so we can use a bashism as a fallback.
10188 if test "x$ac_cr" = x; then
10189 eval ac_cr=\$\'\\r\'
10190 fi
10191 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10192 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10193 ac_cs_awk_cr='\\r'
10194 else
10195 ac_cs_awk_cr=$ac_cr
10196 fi
10197
10198 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10199 _ACEOF
10200
10201
10202 {
10203 echo "cat >conf$$subs.awk <<_ACEOF" &&
10204 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10205 echo "_ACEOF"
10206 } >conf$$subs.sh ||
10207 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10208 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10209 ac_delim='%!_!# '
10210 for ac_last_try in false false false false false :; do
10211 . ./conf$$subs.sh ||
10212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10213
10214 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10215 if test $ac_delim_n = $ac_delim_num; then
10216 break
10217 elif $ac_last_try; then
10218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10219 else
10220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10221 fi
10222 done
10223 rm -f conf$$subs.sh
10224
10225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10226 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10227 _ACEOF
10228 sed -n '
10229 h
10230 s/^/S["/; s/!.*/"]=/
10231 p
10232 g
10233 s/^[^!]*!//
10234 :repl
10235 t repl
10236 s/'"$ac_delim"'$//
10237 t delim
10238 :nl
10239 h
10240 s/\(.\{148\}\)..*/\1/
10241 t more1
10242 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10243 p
10244 n
10245 b repl
10246 :more1
10247 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10248 p
10249 g
10250 s/.\{148\}//
10251 t nl
10252 :delim
10253 h
10254 s/\(.\{148\}\)..*/\1/
10255 t more2
10256 s/["\\]/\\&/g; s/^/"/; s/$/"/
10257 p
10258 b
10259 :more2
10260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10261 p
10262 g
10263 s/.\{148\}//
10264 t delim
10265 ' <conf$$subs.awk | sed '
10266 /^[^""]/{
10267 N
10268 s/\n//
10269 }
10270 ' >>$CONFIG_STATUS || ac_write_fail=1
10271 rm -f conf$$subs.awk
10272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10273 _ACAWK
10274 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10275 for (key in S) S_is_set[key] = 1
10276 FS = ""
10277
10278 }
10279 {
10280 line = $ 0
10281 nfields = split(line, field, "@")
10282 substed = 0
10283 len = length(field[1])
10284 for (i = 2; i < nfields; i++) {
10285 key = field[i]
10286 keylen = length(key)
10287 if (S_is_set[key]) {
10288 value = S[key]
10289 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10290 len += length(value) + length(field[++i])
10291 substed = 1
10292 } else
10293 len += 1 + keylen
10294 }
10295
10296 print line
10297 }
10298
10299 _ACAWK
10300 _ACEOF
10301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10302 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10303 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10304 else
10305 cat
10306 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10307 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10308 _ACEOF
10309
10310 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10311 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10312 # trailing colons and then remove the whole line if VPATH becomes empty
10313 # (actually we leave an empty line to preserve line numbers).
10314 if test "x$srcdir" = x.; then
10315 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10316 h
10317 s///
10318 s/^/:/
10319 s/[ ]*$/:/
10320 s/:\$(srcdir):/:/g
10321 s/:\${srcdir}:/:/g
10322 s/:@srcdir@:/:/g
10323 s/^:*//
10324 s/:*$//
10325 x
10326 s/\(=[ ]*\).*/\1/
10327 G
10328 s/\n//
10329 s/^[^=]*=[ ]*$//
10330 }'
10331 fi
10332
10333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10334 fi # test -n "$CONFIG_FILES"
10335
10336 # Set up the scripts for CONFIG_HEADERS section.
10337 # No need to generate them if there are no CONFIG_HEADERS.
10338 # This happens for instance with `./config.status Makefile'.
10339 if test -n "$CONFIG_HEADERS"; then
10340 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10341 BEGIN {
10342 _ACEOF
10343
10344 # Transform confdefs.h into an awk script `defines.awk', embedded as
10345 # here-document in config.status, that substitutes the proper values into
10346 # config.h.in to produce config.h.
10347
10348 # Create a delimiter string that does not exist in confdefs.h, to ease
10349 # handling of long lines.
10350 ac_delim='%!_!# '
10351 for ac_last_try in false false :; do
10352 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10353 if test -z "$ac_tt"; then
10354 break
10355 elif $ac_last_try; then
10356 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10357 else
10358 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10359 fi
10360 done
10361
10362 # For the awk script, D is an array of macro values keyed by name,
10363 # likewise P contains macro parameters if any. Preserve backslash
10364 # newline sequences.
10365
10366 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10367 sed -n '
10368 s/.\{148\}/&'"$ac_delim"'/g
10369 t rset
10370 :rset
10371 s/^[ ]*#[ ]*define[ ][ ]*/ /
10372 t def
10373 d
10374 :def
10375 s/\\$//
10376 t bsnl
10377 s/["\\]/\\&/g
10378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10379 D["\1"]=" \3"/p
10380 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10381 d
10382 :bsnl
10383 s/["\\]/\\&/g
10384 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10385 D["\1"]=" \3\\\\\\n"\\/p
10386 t cont
10387 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10388 t cont
10389 d
10390 :cont
10391 n
10392 s/.\{148\}/&'"$ac_delim"'/g
10393 t clear
10394 :clear
10395 s/\\$//
10396 t bsnlc
10397 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10398 d
10399 :bsnlc
10400 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10401 b cont
10402 ' <confdefs.h | sed '
10403 s/'"$ac_delim"'/"\\\
10404 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10405
10406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10407 for (key in D) D_is_set[key] = 1
10408 FS = ""
10409 }
10410 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10411 line = \$ 0
10412 split(line, arg, " ")
10413 if (arg[1] == "#") {
10414 defundef = arg[2]
10415 mac1 = arg[3]
10416 } else {
10417 defundef = substr(arg[1], 2)
10418 mac1 = arg[2]
10419 }
10420 split(mac1, mac2, "(") #)
10421 macro = mac2[1]
10422 prefix = substr(line, 1, index(line, defundef) - 1)
10423 if (D_is_set[macro]) {
10424 # Preserve the white space surrounding the "#".
10425 print prefix "define", macro P[macro] D[macro]
10426 next
10427 } else {
10428 # Replace #undef with comments. This is necessary, for example,
10429 # in the case of _POSIX_SOURCE, which is predefined and required
10430 # on some systems where configure will not decide to define it.
10431 if (defundef == "undef") {
10432 print "/*", prefix defundef, macro, "*/"
10433 next
10434 }
10435 }
10436 }
10437 { print }
10438 _ACAWK
10439 _ACEOF
10440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10441 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10442 fi # test -n "$CONFIG_HEADERS"
10443
10444
10445 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10446 shift
10447 for ac_tag
10448 do
10449 case $ac_tag in
10450 :[FHLC]) ac_mode=$ac_tag; continue;;
10451 esac
10452 case $ac_mode$ac_tag in
10453 :[FHL]*:*);;
10454 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10455 :[FH]-) ac_tag=-:-;;
10456 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10457 esac
10458 ac_save_IFS=$IFS
10459 IFS=:
10460 set x $ac_tag
10461 IFS=$ac_save_IFS
10462 shift
10463 ac_file=$1
10464 shift
10465
10466 case $ac_mode in
10467 :L) ac_source=$1;;
10468 :[FH])
10469 ac_file_inputs=
10470 for ac_f
10471 do
10472 case $ac_f in
10473 -) ac_f="$ac_tmp/stdin";;
10474 *) # Look for the file first in the build tree, then in the source tree
10475 # (if the path is not absolute). The absolute path cannot be DOS-style,
10476 # because $ac_f cannot contain `:'.
10477 test -f "$ac_f" ||
10478 case $ac_f in
10479 [\\/$]*) false;;
10480 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10481 esac ||
10482 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10483 esac
10484 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10485 as_fn_append ac_file_inputs " '$ac_f'"
10486 done
10487
10488 # Let's still pretend it is `configure' which instantiates (i.e., don't
10489 # use $as_me), people would be surprised to read:
10490 # /* config.h. Generated by config.status. */
10491 configure_input='Generated from '`
10492 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10493 `' by configure.'
10494 if test x"$ac_file" != x-; then
10495 configure_input="$ac_file. $configure_input"
10496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10497 printf "%s\n" "$as_me: creating $ac_file" >&6;}
10498 fi
10499 # Neutralize special characters interpreted by sed in replacement strings.
10500 case $configure_input in #(
10501 *\&* | *\|* | *\\* )
10502 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
10503 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10504 *) ac_sed_conf_input=$configure_input;;
10505 esac
10506
10507 case $ac_tag in
10508 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10509 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10510 esac
10511 ;;
10512 esac
10513
10514 ac_dir=`$as_dirname -- "$ac_file" ||
10515 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10516 X"$ac_file" : 'X\(//\)[^/]' \| \
10517 X"$ac_file" : 'X\(//\)$' \| \
10518 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10519 printf "%s\n" X"$ac_file" |
10520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10521 s//\1/
10522 q
10523 }
10524 /^X\(\/\/\)[^/].*/{
10525 s//\1/
10526 q
10527 }
10528 /^X\(\/\/\)$/{
10529 s//\1/
10530 q
10531 }
10532 /^X\(\/\).*/{
10533 s//\1/
10534 q
10535 }
10536 s/.*/./; q'`
10537 as_dir="$ac_dir"; as_fn_mkdir_p
10538 ac_builddir=.
10539
10540 case "$ac_dir" in
10541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10542 *)
10543 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
10544 # A ".." for each directory in $ac_dir_suffix.
10545 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10546 case $ac_top_builddir_sub in
10547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10549 esac ;;
10550 esac
10551 ac_abs_top_builddir=$ac_pwd
10552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10553 # for backward compatibility:
10554 ac_top_builddir=$ac_top_build_prefix
10555
10556 case $srcdir in
10557 .) # We are building in place.
10558 ac_srcdir=.
10559 ac_top_srcdir=$ac_top_builddir_sub
10560 ac_abs_top_srcdir=$ac_pwd ;;
10561 [\\/]* | ?:[\\/]* ) # Absolute name.
10562 ac_srcdir=$srcdir$ac_dir_suffix;
10563 ac_top_srcdir=$srcdir
10564 ac_abs_top_srcdir=$srcdir ;;
10565 *) # Relative name.
10566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10567 ac_top_srcdir=$ac_top_build_prefix$srcdir
10568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10569 esac
10570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10571
10572
10573 case $ac_mode in
10574 :F)
10575 #
10576 # CONFIG_FILE
10577 #
10578
10579 case $INSTALL in
10580 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10581 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10582 esac
10583 ac_MKDIR_P=$MKDIR_P
10584 case $MKDIR_P in
10585 [\\/$]* | ?:[\\/]* ) ;;
10586 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10587 esac
10588 _ACEOF
10589
10590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10591 # If the template does not know about datarootdir, expand it.
10592 # FIXME: This hack should be removed a few years after 2.60.
10593 ac_datarootdir_hack=; ac_datarootdir_seen=
10594 ac_sed_dataroot='
10595 /datarootdir/ {
10596 p
10597 q
10598 }
10599 /@datadir@/p
10600 /@docdir@/p
10601 /@infodir@/p
10602 /@localedir@/p
10603 /@mandir@/p'
10604 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10605 *datarootdir*) ac_datarootdir_seen=yes;;
10606 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10608 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10609 _ACEOF
10610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10611 ac_datarootdir_hack='
10612 s&@datadir@&$datadir&g
10613 s&@docdir@&$docdir&g
10614 s&@infodir@&$infodir&g
10615 s&@localedir@&$localedir&g
10616 s&@mandir@&$mandir&g
10617 s&\\\${datarootdir}&$datarootdir&g' ;;
10618 esac
10619 _ACEOF
10620
10621 # Neutralize VPATH when `$srcdir' = `.'.
10622 # Shell code in configure.ac might set extrasub.
10623 # FIXME: do we really want to maintain this feature?
10624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10625 ac_sed_extra="$ac_vpsub
10626 $extrasub
10627 _ACEOF
10628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10629 :t
10630 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10631 s|@configure_input@|$ac_sed_conf_input|;t t
10632 s&@top_builddir@&$ac_top_builddir_sub&;t t
10633 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10634 s&@srcdir@&$ac_srcdir&;t t
10635 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10636 s&@top_srcdir@&$ac_top_srcdir&;t t
10637 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10638 s&@builddir@&$ac_builddir&;t t
10639 s&@abs_builddir@&$ac_abs_builddir&;t t
10640 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10641 s&@INSTALL@&$ac_INSTALL&;t t
10642 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10643 $ac_datarootdir_hack
10644 "
10645 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10646 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10647
10648 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10649 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10650 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10651 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10653 which seems to be undefined. Please make sure it is defined" >&5
10654 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10655 which seems to be undefined. Please make sure it is defined" >&2;}
10656
10657 rm -f "$ac_tmp/stdin"
10658 case $ac_file in
10659 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10660 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10661 esac \
10662 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10663 ;;
10664 :H)
10665 #
10666 # CONFIG_HEADER
10667 #
10668 if test x"$ac_file" != x-; then
10669 {
10670 printf "%s\n" "/* $configure_input */" >&1 \
10671 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10672 } >"$ac_tmp/config.h" \
10673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10674 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10676 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
10677 else
10678 rm -f "$ac_file"
10679 mv "$ac_tmp/config.h" "$ac_file" \
10680 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10681 fi
10682 else
10683 printf "%s\n" "/* $configure_input */" >&1 \
10684 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10685 || as_fn_error $? "could not create -" "$LINENO" 5
10686 fi
10687 # Compute "$ac_file"'s index in $config_headers.
10688 _am_arg="$ac_file"
10689 _am_stamp_count=1
10690 for _am_header in $config_headers :; do
10691 case $_am_header in
10692 $_am_arg | $_am_arg:* )
10693 break ;;
10694 * )
10695 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10696 esac
10697 done
10698 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10699 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10700 X"$_am_arg" : 'X\(//\)[^/]' \| \
10701 X"$_am_arg" : 'X\(//\)$' \| \
10702 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10703 printf "%s\n" X"$_am_arg" |
10704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10705 s//\1/
10706 q
10707 }
10708 /^X\(\/\/\)[^/].*/{
10709 s//\1/
10710 q
10711 }
10712 /^X\(\/\/\)$/{
10713 s//\1/
10714 q
10715 }
10716 /^X\(\/\).*/{
10717 s//\1/
10718 q
10719 }
10720 s/.*/./; q'`/stamp-h$_am_stamp_count
10721 ;;
10722
10723 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10724 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
10725 ;;
10726 esac
10727
10728
10729 case $ac_file$ac_mode in
10730 "buildir":C) ac_top_srcdir="$ax_enable_builddir_srcdir"
10731 if test ".$ax_enable_builddir" = ".." ; then
10732 if test -f "$top_srcdir/Makefile" ; then
10733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
10734 printf "%s\n" "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
10735 else
10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
10737 printf "%s\n" "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
10738 fi
10739 else
10740 if test -f "$ac_top_srcdir/Makefile" ; then
10741 a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
10742 test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
10743 fi
10744 if test -f "$ac_top_srcdir/Makefile" ; then
10745 echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
10746 echo " @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
10747 eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
10748 if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
10749 then rm $ac_top_srcdir/Makefile ; fi
10750 cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~ ## DEBUGGING
10751 fi
10752 if test ! -f "$ac_top_srcdir/Makefile" ; then
10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
10754 printf "%s\n" "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
10755 x='`' ; cat >$tmp/conftemp.sed <<_EOF
10756 /^\$/n
10757 x
10758 /^\$/bS
10759 x
10760 /\\\\\$/{H;d;}
10761 {H;s/.*//;x;}
10762 bM
10763 :S
10764 x
10765 /\\\\\$/{h;d;}
10766 {h;s/.*//;x;}
10767 :M
10768 s/\\(\\n\\) /\\1 /g
10769 /^ /d
10770 /^[ ]*[\\#]/d
10771 /^VPATH *=/d
10772 s/^srcdir *=.*/srcdir = ./
10773 s/^top_srcdir *=.*/top_srcdir = ./
10774 /[:=]/!d
10775 /^\\./d
10776 / = /b
10777 / .= /b
10778 /:/!b
10779 s/:.*/:/
10780 s/ / /g
10781 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
10782 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
10783 s/ / /g
10784 /^all all-all[ :]/i\\
10785 all-configured : all-all
10786 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
10787 /-all-all/d
10788 a\\
10789 @ HOST="\$(HOST)\" \\\\\\
10790 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
10791 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
10792 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
10793 ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
10794 ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
10795 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
10796 ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
10797 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
10798 ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
10799 /dist-all *:/a\\
10800 @ HOST="\$(HOST)\" \\\\\\
10801 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
10802 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
10803 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
10804 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
10805 ; if test "\$\$found" -eq "0" ; then : \\\\\\
10806 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
10807 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
10808 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
10809 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
10810 /dist-[a-zA-Z0-9]*-all *:/a\\
10811 @ HOST="\$(HOST)\" \\\\\\
10812 ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
10813 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
10814 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
10815 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
10816 ; if test "\$\$found" -eq "0" ; then : \\\\\\
10817 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
10818 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
10819 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
10820 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
10821 /distclean-all *:/a\\
10822 @ HOST="\$(HOST)\" \\\\\\
10823 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
10824 ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
10825 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
10826 ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
10827 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
10828 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
10829 ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
10830 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
10831 ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
10832 ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
10833 ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
10834 _EOF
10835 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~" ## DEBUGGING
10836 $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
10837 if test -f "$ac_top_srcdir/Makefile.mk" ; then
10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
10839 printf "%s\n" "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
10840 cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
10841 fi ; xxxx="####"
10842 echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
10843 # sanity check
10844 if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
10845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
10846 printf "%s\n" "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
10847 $ax_enable_builddir_sed -e '/^@ HOST=/s/^/ /' -e '/^; /s/^/ /' $ac_top_srcdir/Makefile \
10848 >$ac_top_srcdir/Makefile~
10849 (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
10850 fi
10851 else
10852 xxxx="\\#\\#\\#\\#"
10853 # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
10854 echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
10855 $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
10856 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~" ## DEBUGGING
10857 cp "$tmp/mkfile.tmp" "$ac_top_srcdir/makefiles.out~" ## DEBUGGING
10858 if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
10859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
10860 printf "%s\n" "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
10861 rm "$tmp/mkfile.tmp"
10862 else
10863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
10864 printf "%s\n" "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
10865 mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
10866 fi
10867 fi
10868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
10869 printf "%s\n" "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
10870 xxxx="####"
10871 echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
10872 fi
10873 ;;
10874 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10875 # Older Autoconf quotes --file arguments for eval, but not when files
10876 # are listed without --file. Let's play safe and only enable the eval
10877 # if we detect the quoting.
10878 # TODO: see whether this extra hack can be removed once we start
10879 # requiring Autoconf 2.70 or later.
10880 case $CONFIG_FILES in #(
10881 *\'*) :
10882 eval set x "$CONFIG_FILES" ;; #(
10883 *) :
10884 set x $CONFIG_FILES ;; #(
10885 *) :
10886 ;;
10887 esac
10888 shift
10889 # Used to flag and report bootstrapping failures.
10890 am_rc=0
10891 for am_mf
10892 do
10893 # Strip MF so we end up with the name of the file.
10894 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
10895 # Check whether this is an Automake generated Makefile which includes
10896 # dependency-tracking related rules and includes.
10897 # Grep'ing the whole file directly is not great: AIX grep has a line
10898 # limit of 2048, but all sed's we know have understand at least 4000.
10899 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
10900 || continue
10901 am_dirpart=`$as_dirname -- "$am_mf" ||
10902 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10903 X"$am_mf" : 'X\(//\)[^/]' \| \
10904 X"$am_mf" : 'X\(//\)$' \| \
10905 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
10906 printf "%s\n" X"$am_mf" |
10907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10908 s//\1/
10909 q
10910 }
10911 /^X\(\/\/\)[^/].*/{
10912 s//\1/
10913 q
10914 }
10915 /^X\(\/\/\)$/{
10916 s//\1/
10917 q
10918 }
10919 /^X\(\/\).*/{
10920 s//\1/
10921 q
10922 }
10923 s/.*/./; q'`
10924 am_filepart=`$as_basename -- "$am_mf" ||
10925 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
10926 X"$am_mf" : 'X\(//\)$' \| \
10927 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
10928 printf "%s\n" X/"$am_mf" |
10929 sed '/^.*\/\([^/][^/]*\)\/*$/{
10930 s//\1/
10931 q
10932 }
10933 /^X\/\(\/\/\)$/{
10934 s//\1/
10935 q
10936 }
10937 /^X\/\(\/\).*/{
10938 s//\1/
10939 q
10940 }
10941 s/.*/./; q'`
10942 { echo "$as_me:$LINENO: cd "$am_dirpart" \
10943 && sed -e '/# am--include-marker/d' "$am_filepart" \
10944 | $MAKE -f - am--depfiles" >&5
10945 (cd "$am_dirpart" \
10946 && sed -e '/# am--include-marker/d' "$am_filepart" \
10947 | $MAKE -f - am--depfiles) >&5 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } || am_rc=$?
10951 done
10952 if test $am_rc -ne 0; then
10953 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10954 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
10955 as_fn_error $? "Something went wrong bootstrapping makefile fragments
10956 for automatic dependency tracking. If GNU make was not used, consider
10957 re-running the configure script with MAKE=\"gmake\" (or whatever is
10958 necessary). You can also try re-running configure with the
10959 '--disable-dependency-tracking' option to at least be able to build
10960 the package (albeit without support for automatic dependency tracking).
10961 See \`config.log' for more details" "$LINENO" 5; }
10962 fi
10963 { am_dirpart=; unset am_dirpart;}
10964 { am_filepart=; unset am_filepart;}
10965 { am_mf=; unset am_mf;}
10966 { am_rc=; unset am_rc;}
10967 rm -f conftest-deps.mk
10968 }
10969 ;;
10970
10971 esac
10972 done # for ac_tag
10973
10974
10975 as_fn_exit 0
10976 _ACEOF
10977 ac_clean_files=$ac_clean_files_save
10978
10979 test $ac_write_fail = 0 ||
10980 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10981
10982
10983 # configure is writing to config.log, and then calls config.status.
10984 # config.status does its own redirection, appending to config.log.
10985 # Unfortunately, on DOS this fails, as config.log is still kept open
10986 # by configure, so config.status won't be able to write to it; its
10987 # output is simply discarded. So we exec the FD to /dev/null,
10988 # effectively closing config.log, so it can be properly (re)opened and
10989 # appended to by config.status. When coming back to configure, we
10990 # need to make the FD available again.
10991 if test "$no_create" != yes; then
10992 ac_cs_success=:
10993 ac_config_status_args=
10994 test "$silent" = yes &&
10995 ac_config_status_args="$ac_config_status_args --quiet"
10996 exec 5>/dev/null
10997 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10998 exec 5>>config.log
10999 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11000 # would make configure fail if this is the last instruction.
11001 $ac_cs_success || as_fn_exit 1
11002 fi
11003 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11005 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11006 fi
11007
11008
11009 in_git_worktree=`git rev-parse --is-inside-work-tree 2>/dev/null`
11010 if [ "$in_git_worktree" = "true" ]; then
11011 git_dir=`git rev-parse --git-dir 2>/dev/null`
11012 srcdir=`dirname "$git_dir"`
11013 exclude_dir=`pwd | sed "s,^$srcdir,,g"`
11014 if ! grep -q "^$exclude_dir" "$git_dir/info/exclude"; then
11015 echo "$exclude_dir" >> "$git_dir/info/exclude"
11016 fi
11017 fi
11018
11019 echo \
11020 "--------------------------------------------------------------------------------
11021 build configured:
11022
11023 i3lock version: `echo ${I3LOCK_VERSION} | sed 's,\\\\,,g'`
11024 is release version: ${is_release}
11025
11026 enable debug flags: ${ax_enable_debug}
11027 code coverage: ${CODE_COVERAGE_ENABLED}
11028 enabled sanitizers: ${ax_enabled_sanitizers}"
11029
11030 #To compile, run:
11031 #
11032 # cd `pwd` && make
11033 echo \
11034 "--------------------------------------------------------------------------------"
11035
4747
4848 dnl is_release must be lowercase because AX_CHECK_ENABLE_DEBUG calls m4_tolower
4949 dnl on its fourth argument.
50 AX_CHECK_ENABLE_DEBUG([yes], , [UNUSED_NDEBUG], [$is_release])
50 AX_CHECK_ENABLE_DEBUG([no], , , [$is_release])
5151
5252 AC_PROG_CC
5353
123123 AX_CHECK_COMPILE_FLAG([-Wunused-value], [AX_APPEND_FLAG([-Wunused-value], [AM_CFLAGS])])
124124 AC_SUBST(AM_CFLAGS)
125125
126 AX_CHECK_BASH_COMPLETION
127 AX_CHECK_ZSH_COMPLETION
128
126129 # Checks for header files.
127130 AC_CHECK_HEADERS([fcntl.h float.h inttypes.h limits.h locale.h netinet/in.h paths.h stddef.h stdint.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h], , [AC_MSG_FAILURE([cannot find the $ac_header header, which i3lock requires])])
128131
129132 AC_CONFIG_FILES([Makefile])
130133
131 # Enable address sanitizer for non-release builds. The performance hit is a
134 # Enable address sanitizer for debug builds. The performance hit is a
132135 # 50% increase of wallclock time for the testsuite on my machine.
133 if test x$is_release = xyes; then
136 if test "x$ax_enable_debug" = "xyes"; then
137 default_sanitizers=address
138 else
134139 default_sanitizers=
135 else
136 default_sanitizers=address
137140 fi
138 AX_SANITIZERS(, [$default_sanitizers], [AC_DEFINE([I3LOCK_ASAN_ENABLED], [], [Enable ASAN])])
141 AX_SANITIZERS(, [$default_sanitizers])
139142
140143 AC_OUTPUT
141144
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
19
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that program.
24
25 # Originally written by Alexandre Oliva <[email protected]>.
26
27 case $1 in
28 '')
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
32 -h | --h*)
33 cat <<\EOF
34 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
35
36 Run PROGRAMS ARGS to compile a file, generating dependencies
37 as side-effects.
38
39 Environment variables:
40 depmode Dependency tracking mode.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
43 DEPDIR directory where to store dependencies.
44 depfile Dependency file to output.
45 tmpdepfile Temporary file to use when outputting dependencies.
46 libtool Whether libtool is used (yes/no).
47
48 Report bugs to <[email protected]>.
49 EOF
50 exit $?
51 ;;
52 -v | --v*)
53 echo "depcomp $scriptversion"
54 exit $?
55 ;;
56 esac
57
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
106 # A tabulation character.
107 tab=' '
108 # A newline character.
109 nl='
110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
117
118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
120 exit 1
121 fi
122
123 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
124 depfile=${depfile-`echo "$object" |
125 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
127
128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
132
133 # Some modes work just like other modes, but use different flags. We
134 # parameterize here, but still list the modes in the big case below,
135 # to make depend.m4 easier to write. Note that we *cannot* use a case
136 # here, because this file can only contain one case statement.
137 if test "$depmode" = hp; then
138 # HP compiler uses -M and no extra arg.
139 gccflag=-M
140 depmode=gcc
141 fi
142
143 if test "$depmode" = dashXmstdout; then
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
147 fi
148
149 cygpath_u="cygpath -u -f -"
150 if test "$depmode" = msvcmsys; then
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
156 fi
157
158 if test "$depmode" = msvc7msys; then
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
164 fi
165
166 if test "$depmode" = xlc; then
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
170 fi
171
172 case "$depmode" in
173 gcc3)
174 ## gcc 3 implements dependency tracking that does exactly what
175 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
176 ## it if -MD -MP comes after the -MF stuff. Hmm.
177 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
178 ## the command line argument order; so add the flags where they
179 ## appear in depend2.am. Note that the slowdown incurred here
180 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
181 for arg
182 do
183 case $arg in
184 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
185 *) set fnord "$@" "$arg" ;;
186 esac
187 shift # fnord
188 shift # $arg
189 done
190 "$@"
191 stat=$?
192 if test $stat -ne 0; then
193 rm -f "$tmpdepfile"
194 exit $stat
195 fi
196 mv "$tmpdepfile" "$depfile"
197 ;;
198
199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
203 ## There are various ways to get dependency output from gcc. Here's
204 ## why we pick this rather obscure method:
205 ## - Don't want to use -MD because we'd like the dependencies to end
206 ## up in a subdir. Having to rename by hand is ugly.
207 ## (We might end up doing this anyway to support other compilers.)
208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
211 ## - Using -M directly means running the compiler twice (even worse
212 ## than renaming).
213 if test -z "$gccflag"; then
214 gccflag=-MD,
215 fi
216 "$@" -Wp,"$gccflag$tmpdepfile"
217 stat=$?
218 if test $stat -ne 0; then
219 rm -f "$tmpdepfile"
220 exit $stat
221 fi
222 rm -f "$depfile"
223 echo "$object : \\" > "$depfile"
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
226 sed -e 's/^[^:]*: / /' \
227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
228 ## This next piece of magic avoids the "deleted header file" problem.
229 ## The problem is that when a header file which appears in a .P file
230 ## is deleted, the dependency causes make to die (because there is
231 ## typically no way to rebuild the header). We avoid this by adding
232 ## dummy dependencies for each header file. Too bad gcc doesn't do
233 ## this for us directly.
234 ## Some versions of gcc put a space before the ':'. On the theory
235 ## that the space means something, we add a space to the output as
236 ## well. hp depmode also adds that space, but also prefixes the VPATH
237 ## to the object. Take care to not repeat it in the output.
238 ## Some versions of the HPUX 10.20 sed can't process this invocation
239 ## correctly. Breaking it into two sed invocations is a workaround.
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
243 rm -f "$tmpdepfile"
244 ;;
245
246 hp)
247 # This case exists only to let depend.m4 do its work. It works by
248 # looking at the text of this script. This case will never be run,
249 # since it is checked for above.
250 exit 1
251 ;;
252
253 sgi)
254 if test "$libtool" = yes; then
255 "$@" "-Wp,-MDupdate,$tmpdepfile"
256 else
257 "$@" -MDupdate "$tmpdepfile"
258 fi
259 stat=$?
260 if test $stat -ne 0; then
261 rm -f "$tmpdepfile"
262 exit $stat
263 fi
264 rm -f "$depfile"
265
266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
267 echo "$object : \\" > "$depfile"
268 # Clip off the initial element (the dependent). Don't try to be
269 # clever and replace this with sed code, as IRIX sed won't handle
270 # lines with more than a fixed number of characters (4096 in
271 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
272 # the IRIX cc adds comments like '#:fec' to the end of the
273 # dependency line.
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
277 echo >> "$depfile"
278 # The second pass generates a dummy entry for each header file.
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
282 else
283 make_dummy_depfile
284 fi
285 rm -f "$tmpdepfile"
286 ;;
287
288 xlc)
289 # This case exists only to let depend.m4 do its work. It works by
290 # looking at the text of this script. This case will never be run,
291 # since it is checked for above.
292 exit 1
293 ;;
294
295 aix)
296 # The C for AIX Compiler uses -M and outputs the dependencies
297 # in a .u file. In older versions, this file always lives in the
298 # current directory. Also, the AIX compiler puts '$object:' at the
299 # start of each line; $object doesn't have directory information.
300 # Version 6 uses the directory in both cases.
301 set_dir_from "$object"
302 set_base_from "$object"
303 if test "$libtool" = yes; then
304 tmpdepfile1=$dir$base.u
305 tmpdepfile2=$base.u
306 tmpdepfile3=$dir.libs/$base.u
307 "$@" -Wc,-M
308 else
309 tmpdepfile1=$dir$base.u
310 tmpdepfile2=$dir$base.u
311 tmpdepfile3=$dir$base.u
312 "$@" -M
313 fi
314 stat=$?
315 if test $stat -ne 0; then
316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
317 exit $stat
318 fi
319
320 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
321 do
322 test -f "$tmpdepfile" && break
323 done
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
355 rm -f "$tmpdepfile"
356 ;;
357
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
368 # foo.o: sub/foo.c sub/foo.h
369 # and will wrap long lines using '\' :
370 # foo.o: sub/foo.c ... \
371 # sub/foo.h ... \
372 # ...
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
418 rm -f "$tmpdepfile"
419 exit $stat
420 fi
421 rm -f "$depfile"
422 # Each line is of the form `foo.o: dependent.h',
423 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
424 # Do two passes, one to just change these to
425 # `$object: dependent.h' and one to simply `dependent.h:'.
426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
427 # Some versions of the HPUX 10.20 sed can't process this invocation
428 # correctly. Breaking it into two sed invocations is a workaround.
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
431 rm -f "$tmpdepfile"
432 ;;
433
434 hp2)
435 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
436 # compilers, which have integrated preprocessors. The correct option
437 # to use with these is +Maked; it writes dependencies to a file named
438 # 'foo.d', which lands next to the object file, wherever that
439 # happens to be.
440 # Much of this is similar to the tru64 case; see comments there.
441 set_dir_from "$object"
442 set_base_from "$object"
443 if test "$libtool" = yes; then
444 tmpdepfile1=$dir$base.d
445 tmpdepfile2=$dir.libs/$base.d
446 "$@" -Wc,+Maked
447 else
448 tmpdepfile1=$dir$base.d
449 tmpdepfile2=$dir$base.d
450 "$@" +Maked
451 fi
452 stat=$?
453 if test $stat -ne 0; then
454 rm -f "$tmpdepfile1" "$tmpdepfile2"
455 exit $stat
456 fi
457
458 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
459 do
460 test -f "$tmpdepfile" && break
461 done
462 if test -f "$tmpdepfile"; then
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
465 sed -ne '2,${
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
471 else
472 make_dummy_depfile
473 fi
474 rm -f "$tmpdepfile" "$tmpdepfile2"
475 ;;
476
477 tru64)
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
518
519 msvc7)
520 if test "$libtool" = yes; then
521 showIncludes=-Wc,-showIncludes
522 else
523 showIncludes=-showIncludes
524 fi
525 "$@" $showIncludes > "$tmpdepfile"
526 stat=$?
527 grep -v '^Note: including file: ' "$tmpdepfile"
528 if test $stat -ne 0; then
529 rm -f "$tmpdepfile"
530 exit $stat
531 fi
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 # The first sed program below extracts the file names and escapes
535 # backslashes for cygpath. The second sed program outputs the file
536 # name when reading, but also accumulates all include files in the
537 # hold buffer in order to output them again at the end. This only
538 # works with sed implementations that can handle large buffers.
539 sed < "$tmpdepfile" -n '
540 /^Note: including file: *\(.*\)/ {
541 s//\1/
542 s/\\/\\\\/g
543 p
544 }' | $cygpath_u | sort -u | sed -n '
545 s/ /\\ /g
546 s/\(.*\)/'"$tab"'\1 \\/p
547 s/.\(.*\) \\/\1:/
548 H
549 $ {
550 s/.*/'"$tab"'/
551 G
552 p
553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
555 rm -f "$tmpdepfile"
556 ;;
557
558 msvc7msys)
559 # This case exists only to let depend.m4 do its work. It works by
560 # looking at the text of this script. This case will never be run,
561 # since it is checked for above.
562 exit 1
563 ;;
564
565 #nosideeffect)
566 # This comment above is used by automake to tell side-effect
567 # dependency tracking mechanisms from slower ones.
568
569 dashmstdout)
570 # Important note: in order to support this mode, a compiler *must*
571 # always write the preprocessed file to stdout, regardless of -o.
572 "$@" || exit $?
573
574 # Remove the call to Libtool.
575 if test "$libtool" = yes; then
576 while test "X$1" != 'X--mode=compile'; do
577 shift
578 done
579 shift
580 fi
581
582 # Remove '-o $object'.
583 IFS=" "
584 for arg
585 do
586 case $arg in
587 -o)
588 shift
589 ;;
590 $object)
591 shift
592 ;;
593 *)
594 set fnord "$@" "$arg"
595 shift # fnord
596 shift # $arg
597 ;;
598 esac
599 done
600
601 test -z "$dashmflag" && dashmflag=-M
602 # Require at least two characters before searching for ':'
603 # in the target name. This is to cope with DOS-style filenames:
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
605 "$@" $dashmflag |
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
607 rm -f "$depfile"
608 cat < "$tmpdepfile" > "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
614 rm -f "$tmpdepfile"
615 ;;
616
617 dashXmstdout)
618 # This case only exists to satisfy depend.m4. It is never actually
619 # run, as this mode is specially recognized in the preamble.
620 exit 1
621 ;;
622
623 makedepend)
624 "$@" || exit $?
625 # Remove any Libtool call
626 if test "$libtool" = yes; then
627 while test "X$1" != 'X--mode=compile'; do
628 shift
629 done
630 shift
631 fi
632 # X makedepend
633 shift
634 cleared=no eat=no
635 for arg
636 do
637 case $cleared in
638 no)
639 set ""; shift
640 cleared=yes ;;
641 esac
642 if test $eat = yes; then
643 eat=no
644 continue
645 fi
646 case "$arg" in
647 -D*|-I*)
648 set fnord "$@" "$arg"; shift ;;
649 # Strip any option that makedepend may not understand. Remove
650 # the object too, otherwise makedepend will parse it as a source file.
651 -arch)
652 eat=yes ;;
653 -*|$object)
654 ;;
655 *)
656 set fnord "$@" "$arg"; shift ;;
657 esac
658 done
659 obj_suffix=`echo "$object" | sed 's/^.*\././'`
660 touch "$tmpdepfile"
661 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
662 rm -f "$depfile"
663 # makedepend may prepend the VPATH from the source file name to the object.
664 # No need to regex-escape $object, excess matching of '.' is harmless.
665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
672 rm -f "$tmpdepfile" "$tmpdepfile".bak
673 ;;
674
675 cpp)
676 # Important note: in order to support this mode, a compiler *must*
677 # always write the preprocessed file to stdout.
678 "$@" || exit $?
679
680 # Remove the call to Libtool.
681 if test "$libtool" = yes; then
682 while test "X$1" != 'X--mode=compile'; do
683 shift
684 done
685 shift
686 fi
687
688 # Remove '-o $object'.
689 IFS=" "
690 for arg
691 do
692 case $arg in
693 -o)
694 shift
695 ;;
696 $object)
697 shift
698 ;;
699 *)
700 set fnord "$@" "$arg"
701 shift # fnord
702 shift # $arg
703 ;;
704 esac
705 done
706
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
711 rm -f "$depfile"
712 echo "$object : \\" > "$depfile"
713 cat < "$tmpdepfile" >> "$depfile"
714 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
715 rm -f "$tmpdepfile"
716 ;;
717
718 msvisualcpp)
719 # Important note: in order to support this mode, a compiler *must*
720 # always write the preprocessed file to stdout.
721 "$@" || exit $?
722
723 # Remove the call to Libtool.
724 if test "$libtool" = yes; then
725 while test "X$1" != 'X--mode=compile'; do
726 shift
727 done
728 shift
729 fi
730
731 IFS=" "
732 for arg
733 do
734 case "$arg" in
735 -o)
736 shift
737 ;;
738 $object)
739 shift
740 ;;
741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
742 set fnord "$@"
743 shift
744 shift
745 ;;
746 *)
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
751 esac
752 done
753 "$@" -E 2>/dev/null |
754 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
755 rm -f "$depfile"
756 echo "$object : \\" > "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
759 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
760 rm -f "$tmpdepfile"
761 ;;
762
763 msvcmsys)
764 # This case exists only to let depend.m4 do its work. It works by
765 # looking at the text of this script. This case will never be run,
766 # since it is checked for above.
767 exit 1
768 ;;
769
770 none)
771 exec "$@"
772 ;;
773
774 *)
775 echo "Unknown depmode $depmode" 1>&2
776 exit 1
777 ;;
778 esac
779
780 exit 0
781
782 # Local Variables:
783 # mode: shell-script
784 # sh-indentation: 2
785 # eval: (add-hook 'before-save-hook 'time-stamp)
786 # time-stamp-start: "scriptversion="
787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788 # time-stamp-time-zone: "UTC0"
789 # time-stamp-end: "; # UTC"
790 # End:
+0
-36
examples/lock.sh less more
0 #!/bin/sh
1
2 B='#00000000' # blank
3 C='#ffffff22' # clear ish
4 D='#ff00ffcc' # default
5 T='#ee00eeee' # text
6 W='#880000bb' # wrong
7 V='#bb00bbbb' # verifying
8
9 i3lock \
10 --insidever-color=$C \
11 --ringver-color=$V \
12 \
13 --insidewrong-color=$C \
14 --ringwrong-color=$W \
15 \
16 --inside-color=$B \
17 --ring-color=$D \
18 --line-color=$B \
19 --separator-color=$D \
20 \
21 --verif-color=$T \
22 --wrong-color=$T \
23 --time-color=$T \
24 --date-color=$T \
25 --layout-color=$T \
26 --keyhl-color=$W \
27 --bshl-color=$W \
28 \
29 --screen 1 \
30 --blur 5 \
31 --clock \
32 --indicator \
33 --time-str="%H:%M:%S" \
34 --date-str="%A, %m %Y" \
35 --keylayout 1 \
+0
-38
examples/lock_bar.sh less more
0 #!/bin/sh
1
2 B='#00000000' # blank
3 C='#ffffff22' # clear ish
4 D='#ff00ffcc' # default
5 T='#ee00eeee' # text
6 W='#880000bb' # wrong
7 V='#bb00bbbb' # verifying
8
9 i3lock \
10 --blur 5 \
11 --bar-indicator \
12 --bar-pos y+h \
13 --bar-direction 1 \
14 --bar-max-height 50 \
15 --bar-base-width 50 \
16 --bar-color 000000cc \
17 --keyhl-color 880088cc \
18 --bar-periodic-step 50 \
19 --bar-step 50 \
20 --redraw-thread \
21 \
22 --clock \
23 --force-clock \
24 --time-pos x+5:y+h-80 \
25 --time-color 880088ff \
26 --date-pos tx:ty+15 \
27 --date-color 990099ff \
28 --date-align 1 \
29 --time-align 1 \
30 --ringver-color 8800ff88 \
31 --ringwrong-color ff008888 \
32 --status-pos x+5:y+h-16 \
33 --verif-align 1 \
34 --wrong-align 1 \
35 --verif-color ffffffff \
36 --wrong-color ffffffff \
37 --modif-pos -50:-50
examples/screenshot.png less more
Binary diff not shown
0 #!/usr/bin/env bash
1 # bash completion for i3lock-color
2
3 _i3lock() {
4 local cur="${COMP_WORDS[COMP_CWORD]}"
5 local last="${COMP_WORDS[COMP_CWORD - 1]}"
6 local -a options=(
7 "--version -v"
8 "--nofork -n"
9 "--beep -b"
10 "--no-unlock-indicator -u"
11 "--image -i"
12 "--raw"
13 "--color -c"
14 "--tiling -t"
15 "--centered -C"
16 "--fill -F"
17 "--max -M"
18 "--scale -L"
19 "--pointer -p"
20 "--ignore-empty-password -e"
21 "--show-failed-attempts"
22 "--debug"
23
24 # i3lock-color OPTIONS
25 "--screen -S"
26 "--blur -B"
27 "--clock --force-clocl -k"
28 "--indicator"
29 "--radius"
30 "--ring-width"
31 # Colors
32 "--inside-color"
33 "--ring-color"
34 "--insidever-color"
35 "--ringver-color"
36 "--insidewrong-color"
37 "--ringwrong-color"
38 "--line-color"
39 "--line-uses-inside"
40 "--line-uses-ring"
41 "--keyhl-color"
42 "--bshl-color"
43 "--separator-color"
44 "--verif-color"
45 "--wrong-color"
46 "--modif-color"
47 "--layout-color"
48 "--time-color"
49 "--date-color"
50 "--greeter-color"
51 # Text
52 "--time-str"
53 "--date-str"
54 "--verif-text"
55 "--wrong-text"
56 "--keylayout"
57 "--noinput-text"
58 "--lock-text"
59 "--lockfailed-text"
60 "--greeter-text"
61 "--no-modkey-text"
62 # Align
63 "--time-align --date-align --layout-align --verif-align --wrong-algin --modif-align --greeter-align"
64 # Outline
65 "--timeoutlinecolor --dateoutlinecolor --layoutoutlinecolor --verifoutlinecolor --wrongoutlinecolor --modifoutline-color --greeteroutlinecolor"
66 # Fonts
67 "--time-font --date-font --layout-font --verif-font --wrong-font --greeter-font"
68 # Size
69 "--timesize --datesize --layoutsize --verifsize --wrongsize --greetersize"
70 # Outline width
71 "--timeoutlinewidth --dateoutlinewidth --layoutoutlinewidth --verifoutlinewidth --wrongoutlinewidth --modifieroutline-width --greeteroutlinewidth"
72 # Position
73 "--ind-pos"
74 "--time-pos"
75 "--date-pos"
76 "--greeter-pos"
77 # Media keys
78 "--pass-media-keys"
79 "--pass-screen-keys"
80 "--pass-power-keys"
81 "--pass-volume-keys"
82 "--custom-key-commands"
83 "--cmd-brightness-up"
84 "--cmd-brightness-down"
85 "--cmd-media-play"
86 "--cmd-media-pause"
87 "--cmd-media-stop"
88 "--cmd-media-next"
89 "--cmd-media-prev"
90 "--cmd-audio-mute"
91 "--cmd-volume-up"
92 "--cmd-volume-down"
93 "--cmd-power-down"
94 "--cmd-power-off"
95 "--cmd-power-sleep"
96 # Bar mode
97 "--bar-indicator"
98 "--bar-direction"
99 "--bar-orientation"
100 "--bar-step"
101 "--bar-max-height"
102 "--bar-base-width"
103 "--bar-color"
104 "--bar-periodic-step"
105 "--bar-pos"
106 "--bar-count"
107 "--bar-total-width"
108 # Extra configs
109 "--redraw-thread"
110 "--refresh-rate"
111 "--composite"
112 "--no-verify"
113 "--slideshow-interval"
114 "--slideshow-random-selection"
115 )
116 local args=""
117 for i in "${options[@]}"; do
118 args+="$i "
119 done
120 COMPREPLY=( $(compgen -W "${args}" -- ${cur}) )
121
122 }
123
124 complete -F _i3lock i3lock
0 #compdef i3lock
1
2 _i3lock() {
3 integer ret=1
4 local -a args
5 zstyle ':completion:*:*:i3lock:*:descriptions' format ''
6 args+=(
7 "(--version -v)"{--version,-v}"[Display the version of i3lock]"
8 "(--nofork -n)"{--nofork,-n}"[Don't fork after starting]"
9 "(--beep -b)"{--beeping,-b}"[Enable beeping]"
10 "(--no-unlock-indicator -u)"{--no-unlock-indicator,-u}"[Disable the unlock indicator]"
11 "(--image -i)"{--image,-i}"[Display the given PNG image instead of a blank screen]:filename:_files -g '*.(png|jpg)'"
12 "--raw[Read the image given by --image as a raw image instead of PNG]:raw:"
13 "(--color -c)"{--color,-c}"[Turn the screen into the given hex color]:hex:->hex"
14 "(--tiling -t)"{--tiling,-t}"[Image will be displayed tiled all over the screen]"
15 "(--centered -C)"{--centered,-C}"[Image will be displayed centered on the screen]"
16 "(--fill -F)"{--fill,-F}"[Image will fill all over the screen]"
17 "(--max -M)"{--max,-M}"[Image will fit the screen at width or height]"
18 "(--scale -L)"{--scale,-L}"[Image will be stretched on the screen]"
19 "(--pointer -p)"{--pointer,-p}"[Sets mouse pointer type]:pointer:(win default)"
20 "(--ignore-empty-password -e)"{--ignore-empty-password,-e}"[Do not validate empty password]"
21 "(--show-failed-attempts -f)"{--show-failed-attempts,-f}"[Show the number of failed attemps]"
22 "--debug[Enables debug logging.]"
23
24 # i3lock-color OPTIONS
25
26 "(--screen -S)"{--screen,-S}"[Specifies which display to draw the unlock indicator]:int:"
27 "(--blur -B)"{--blur,-B}"[Captures the screen and blurs it using the given sigma]:sigma:"
28 "(--clock --force-clock -k)"{--clock,--force-clock,-k}"[Displays the clock]"
29 "--indicator[Forces the indicator to always be visible]"
30 "--radius[The radius of the circle]:float:"
31 "--ring-width[The width of the ring unlock indicator]:float:"
32 # Colors
33 "--inside-color[Sets the default \"resting\" color for the interior circle]:hex:->hex"
34 "--ring-color[Sets the default ring color]:hex:->hex"
35 "--insidever-color[Sets the interior circle color while the password is being verified]:hex:->hex"
36 "--ringver-color[Sets the ring color while the password is being verified]:hex:->hex"
37 "--insidewrong-color[Sets the interior circle color for suring flash for an incorrect password]:hex:->hex"
38 "--ringwrong-color[Sets the ring color during the flas for an incorrect password]:hex:->hex"
39 "--line-color[Sets the color for the line separating the inside circle, and the outer ring]:hex:->hex"
40 "--line-uses-inside[Conflicts with --line-uses-ring. Overrides --linecolor; the line will match the inside color]"
41 "--line-uses-ring[Conflicts with --line-uses-inside. Overrides --linecolor; The line will match the ring color]"
42 "--keyhl-color[Sets the color of the ring 'highlight' strokes that appear upon keypress]:hex:->hex"
43 "--bshl-color[Sets the color of the ring 'highlight' strokes that appear upon backspace]:hex:->hex"
44 "--separator-color[Sets the color of the 'separator', which is at both ends of the ring highlights]:hex:->hex"
45 "--verif-color[Sets the color of the status text while verifying]:hex:->hex"
46 "--wrong-color[Sets the color of the status when \"wrong\"]:hex:->hex"
47 "--modif-color[Sets the color of the status text while verifying]:hex:->hex"
48 "--layout-color[Sets the color of the keyboard layout text]:hex:->hex"
49 "--time-color[Sets te color of the time in the clock]:hex:->hex"
50 "--date-color[Sets the color of the date in the clock]:hex:->hex"
51 "--greeter-color[Sets the color of the greeter text]:hex:->hex"
52 # Text
53 "--time-str[Sets the format used for generating the time string]:str:"
54 "--date-str[Sets the format used for generating the date string]:str:"
55 "--verif-text[Sets the string to be shown while verifying]:str:"
56 "--wrong-text[Sets the string to be shown upon entering an incorrect password]:str:"
57 "--keylayout[Displays the keylayout]:mode:((0\:'Displays the full string returned by the query, i.e. English (US)' 1\:'Displays up until the first parenthesis, i.e. English' 2\:'Displays just the contents of the parenthesis, i.e US'))"
58 "--noinput-text[Sets the string to be shown upon pressing backspace whithout anything to delete]:str:"
59 "--lock-text[Sets the string to be shown while acquiring pointer and keyboard focus]:str:"
60 "--lockfailed-text[Sets the string to be shown after failing to acquire pointer and keyboard focus]:str:"
61 "--greeter-text[Sets the greeter text]:str:"
62 "--no-modkey-text[Hides the modkey indicator]"
63 # Align
64 "(--time-align --date-align --layout-align --verif-align --wrong-align --modif-align --greeter-align)"{--time-align,--date-align,--layout-align,--verif-align,--wrong-align,--modif-align,--greeter-align}"[Sets the text alignment]:alignment:((0\:'default' 1\:'left aligned' 2\:'right aligned'))"
65 # Outline color
66 "(--timeoutline-color --dateoutline-color --layoutoutline-color --verifoutline-color --wrongoutline-color --modifoutline-color --greeteroutline-color)"{--timeoutline-color,--dateoutline-color,--layoutoutline-color,--verifoutline-color,--wrongoutline-color,--modifoutline-color,--greeteroutline-color}"[Sets the color of the outline]:hex:->hex"
67 # Fonts
68 "(--time-font --date-font --layout-font --verif-font --wrong-font --greeter-font)"{--time-font,--date-font,--layout-font,--verif-font,--wrong-font,--greeter-font}"[Sets the font used to render various strings]:str:"
69 # Size
70 "(--time-size --date-size --layout-size --verif-size --wrong-size --greeter-size)"{--time-size,--date-size,--layout-size,--verif-size,--wrong-size,--greeter-size}"[Sets the font size used to render various strings]:int:"
71 # Outline width
72 "(--timeoutline-width --dateoutline-width --layoutoutline-width --verifoutline-width --wrongoutline-width --modifieroutline-width --greeteroutline-width)"{--timeoutline-width,--dateoutline-width,--layoutoutline-width,--verifoutline-width,--wrongoutline-width,--modifieroutline-width,--greeteroutline-width}"[Sets the width of the outline]:float:"
73 # Position
74 "--ind-pos[Sets the position for the unlock indicator]:pos:->ind_pos"
75 "--time-pos[Sets the position for the time string]:pos:->time_pos"
76 "--date-pos[Sets the position for the date string]:pos:->date_pos"
77 "--greeter-pos[Sets the position for the greeter string]:pos:->greeter_pos"
78 # Media keys
79 "--pass-media-keys[Allow media keys to be used while the screen is locked]"
80 "--pass-screen-keys[Allow screen keys to be used while the screen is locked]"
81 "--pass-power-keys[Allow power keys to be used while the screen is locked]"
82 "--pass-volume-keys[Allow volume keys to be used while the screen is locked]"
83 "--custom-key-commands[Enable shell commands for media keys]"
84 "--cmd-brightness-up[Command for XF86MonBrightnessUp]"
85 "--cmd-brightness-down[Command for XF86MonBrightnessDown]"
86 "--cmd-media-play[Command for XF86AudioPlay]"
87 "--cmd-media-pause[Command for XF86AudioPause]"
88 "--cmd-media-stop[Command for XF86AudioStop]"
89 "--cmd-media-next[Command for XF86AudioNext]"
90 "--cmd-media-prev[Command for XF86AudioPrev]"
91 "--cmd-audio-mute[Command for XF86AudioMute]"
92 "--cmd-volume-up[Command for XF86AudioRaiseVolume]"
93 "--cmd-volume-down[Command for XF86AudioLowerVolume]"
94 "--cmd-power-down[Command for XF86PowerDown] "
95 "--cmd-power-off[Command for XF86PowerOff]"
96 "--cmd-power-sleep[Command for XF86Sleep]"
97 # Bar mode
98 "--bar-indicator[Replaces the usual ring indicator with a bar indicator]"
99 "--bar-direction[Sets the direction the bars grow in]:direction:((0\:'default' 1\:'reverse' 2\:'both'))"
100 "--bar-orientation[Sets whether the bar is vertically or horizontally oriented]:orientation:(vertical horizontal)"
101 "--bar-step[Sets the step that each bar decreases by when a key is pressed]:int:"
102 "--bar-max-height[The maximum height a bar can get to]:float:"
103 "--bar-base-width[The thickness of the \"base\" bar that all the bar originate from]:float:"
104 "--bar-color[Sets the default color of the bar base]:hex:->hex"
105 "--bar-periodic-step[The value by which the bars decrease each time the screen is redrawn]:int:"
106 "--bar-pos[Sets the bar position]:pos:->bar_pos"
107 "--bar-count[Sets the number of minibars to draw on each screen]:int:"
108 "--bar-total-width[The total width of the bar]:float:"
109 # Extra configs
110 "--redraw-thread[Starts a separate thread for redrawing the screen]"
111 "--refresh-rate[The refresh rate of the indicator]:double:"
112 "--composite"
113 "--no-verify[Do not verify the password provided by the user and unlock inmediately]"
114 # Slideshow
115 "--slideshow-interval[The interval to wait until switching to the nex image]:double:"
116 "--slideshow-random-selection[Randomize the order of the images]"
117
118
119 )
120 _arguments $args[@] && ret=0
121
122 case "$state" in
123 hex)
124 zstyle ':completion:*:*:i3lock:*:descriptions' format '%d'
125 _message "Color in hexadecimal rrggbbaa, like #ff0000ff or #354F9AFF"
126 ;;
127 ind_pos)
128 zstyle ':completion:*:*:i3lock:*:normal' format '%d'
129 zstyle ':completion:*:*:i3lock:*:descriptions' format '%B%d%b'
130
131 _message "\"x position:y position\""
132 _message -e "normal" "'x' - x position of the current display. Corresponds to the left-most row of pixels"
133 _message -e "normal" "'y' - y position of the current display. Corresponds to the topmost row of pixels"
134 _message -e "normal" "'w' - width of the current display"
135 _message -e "normal" "'w' - height of the current display"
136 _message -e "normal" "'r' - unlock indicator radius"
137 ;;
138 time_pos)
139 zstyle ':completion:*:*:i3lock:*:normal' format '%d'
140 zstyle ':completion:*:*:i3lock:*:descriptions' format '%B%d%b'
141
142 _message "\"x position:y position\""
143 _message -e "normal" "All the variables from --ind-pos may be used, in addition to:"
144 _message -e "normal" "'ix' - x position of the indicator on the current display"
145 _message -e "normal" "'iy' - y position of the indicator on the current display"
146 _message -e "normal" "If the --bar-indicator option is used, the following may be used"
147 _message -e "normal" "'bw' - width od the bar indicator"
148 _message -e "normal" "'bx' - x position of the bar indicator on the current display"
149 _message -e "normal" "'by' - y position of the bar indicator on the current display"
150 ;;
151 date_pos)
152 zstyle ':completion:*:*:i3lock:*:normal' format '%d'
153 zstyle ':completion:*:*:i3lock:*:descriptions' format '%B%d%b'
154
155 _message "\"x position:y position\""
156 _message -e "normal" "All the variables from --ind-pos and --time-pos may be used, in addition to:"
157 _message -e "normal" "'tx' - x position of the timestring on the current display"
158 _message -e "normal" "'ty' - y position of the timestring on the current display"
159 ;;
160 greeter_pos)
161 zstyle ':completion:*:*:i3lock:*:normal' format '%d'
162 zstyle ':completion:*:*:i3lock:*:descriptions' format '%B%d%b'
163
164 _message "\"x position:y position\""
165 _message -e "normal" "All the variables from --ind-pos and --time-pos may be used"
166 ;;
167 bar_pos)
168 zstyle ':completion:*:*:i3lock:*:normal' format '%d'
169 zstyle ':completion:*:*:i3lock:*:descriptions' format '%B%d%b'
170
171 _message "\"x position:y position\""
172 _message -e "normal" "All the variables from --ind-pos and --time-pos may be used"
173 _message -e "normal" "If only one number is provided, sets the vertical offset from the top or left edge"
174 _message -e "normal" "If two numbers are provided, sets the starting position of the bar"
175 ;;
176
177
178 esac
179
180 return ret
181 }
182
183 _i3lock
77 .fi
88 ..
99
10 .TH i3lock-color 1 "JUN 2021" Linux "User Manuals"
10 .TH i3lock-color 1 "JAN 2022" Linux "User Manuals"
1111
1212 .SH NAME
1313 i3lock-color \- improved screen locker
240240 Sets text colors.
241241
242242 .TP
243 .B \-\-keylayout mode
244 Displays the keylayout. Positionable similar to date, time, and indicator.
245 Modes are as follows:
246 .RS
247 .IP \[bu] 2
248 0 - Displays the full string returned by the query, i.e. "English (US)"
249 .IP \[bu]
250 1 - Displays up until the first parenthesis, i.e. "English"
251 .IP \[bu]
252 2 - Displays just the contents of the parenthesis, i.e. "US"
253 .RE
254
255 .B For all following -str or -text options, some control characters
256 .B (i.e. \\\\n, \\\\t) are supported. See \fBCONTROL CHARACTERS\fR
257 .B for more details.
258
259 .TP
243260 .B \-\-time\-str="%H:%M:%S"
244261 Sets the format used for generating the time string.
245262 See strftime(3) for a full list of format specifiers.
257274 Sets the string to be shown upon entering an incorrect password.
258275
259276 .TP
260 .B \-\-keylayout mode
261 Displays the keylayout. Positionable similar to date, time, and indicator.
262 Modes are as follows:
263 .RS
264 .IP \[bu] 2
265 0 - Displays the full string returned by the query, i.e. "English (US)"
266 .IP \[bu]
267 1 - Displays up until the first parenthesis, i.e. "English"
268 .IP \[bu]
269 2 - Displays just the contents of the parenthesis, i.e. "US"
270 .RE
271
272 .TP
273277 .B \-\-noinput\-text="no input"
274278 Sets the string to be shown upon pressing backspace without anything to delete.
275279
385389 power - XF86PowerDown, XF86PowerOff, XF86Sleep
386390 .IP \[bu]
387391 volume - XF86AudioMute, XF86AudioLowerVolume, XF86AudioRaiseVolume
392 .RE
393
394
395 .TP
396 .B \-\-custom\-key\-commands
397 Enables custom shell commands for media, screen, power and volume keys. An alternative to \-\-pass\-media\0keys that will work in any environment.
398
399 .TP
400 .B \-\-cmd\-**
401 Shell command to run when the corresponding key is pressed. Requires \-\-custom\-key\-commands
402 .RS
403 .IP \[bu] 2
404 brightness\-up - XF86MonBrightnessUp
405 .IP \[bu]
406 brightness\-down - XF86MonBrightnessDown
407 .IP \[bu]
408 media\-play - XF86AudioPlay
409 .IP \[bu]
410 media\-pause - XF86AudioPause
411 .IP \[bu]
412 media\-stop - XF86AudioStop
413 .IP \[bu]
414 media\-next - XF86AudioNext
415 .IP \[bu]
416 media\-prev - XF86AudioPrev
417 .IP \[bu]
418 audio\-mute - XF86AudioMute
419 .IP \[bu]
420 volume\-up - XF86AudioRaiseVolume
421 .IP \[bu]
422 volume\-down - XF86AudioLowerVolume
423 .IP \[bu]
424 power\-down - XF86PowerDown
425 .IP \[bu]
426 power\-off - XF86PowerOff
427 .IP \[bu]
428 power\-sleep - XF86Sleep
388429 .RE
389430
390431 .TP
471512 .B \-\-slideshow\-random\-selection
472513 Randomize the order of the images.
473514
515 .SH CONTROL CHARACTERS
516 Control characters (\\r \\n \\b \\t) are supported in text OPTIONS. Their behavior
517 are almost as same as anywhere else.
518 .TP
519 .B Carriage Return(\\\\r)
520 Move to the start of line (left edge).
521 Notes: The rendered characters would still live there.
522 .TP
523 .B Line Feed(\\\\n)
524 Move to start of next line (left edge).
525 .TP
526 .B Backspace(\\\\b)
527 Overwrite last one char if exists.
528 Notes: The rendered character would still live there.
529 .TP
530 .B Tab(\\\\t)
531 Move to next tab stop position.The width of one character for moving is as same as character 'a'.
532 Note: The width may be strange if the font is not mono-spaced.
533
474534 .SH SEE ALSO
475535 .IR xautolock(1)
476536 \- use i3lock as your screen saver
478538 .IR convert(1)
479539 \- feed a wide variety of image formats to i3lock
480540
481 .SH AUTHOR
541 .SH HOMEPAGE
542 https://github.com/Raymo111/i3lock-color
543
544 Please report bugs and submit pull-requests as follows:
545 For i3lock (upstream): https://github.com/i3/i3lock
546 For i3lock-color (enhancements on top of i3lock): https://github.com/Raymo111/i3lock-color
547
548 .SH AUTHORS
482549 Michael Stapelberg <michael+i3lock at stapelberg dot de>
483550
484551 Jan-Erik Rediger <badboy at archlinux.us>
2727 #include <err.h>
2828 #include <errno.h>
2929 #include <assert.h>
30 #include <regex.h>
3031 #ifdef __OpenBSD__
3132 #include <bsd_auth.h>
3233 #else
132133 int modif_align = 0;
133134 int greeter_align = 0;
134135
135 char time_format[64] = "%H:%M:%S\0";
136 char date_format[64] = "%A, %m %Y\0";
136 char time_format[32] = "%H:%M:%S\0";
137 char date_format[32] = "%A, %m %Y\0";
137138
138139 char verif_font[64] = "sans-serif\0";
139140 char wrong_font[64] = "sans-serif\0";
168169 char wrong_x_expr[32] = "ix\0";
169170 char wrong_y_expr[32] = "iy\0";
170171 char greeter_x_expr[32] = "ix\0";
171 char greeter_y_expr[32] = "ix\0";
172 char greeter_y_expr[32] = "iy\0";
172173
173174 double time_size = 32.0;
174175 double date_size = 14.0;
241242 static uint8_t xkb_base_error;
242243 static int randr_base = -1;
243244
245 char *image_path = NULL;
246 char *image_raw_format = NULL;
247 char *slideshow_path = NULL;
248
244249 cairo_surface_t *img = NULL;
245 cairo_surface_t *img_slideshow[256];
250 char *img_slideshow[256];
246251 cairo_surface_t *blur_bg_img = NULL;
247252 int slideshow_image_count = 0;
248253 int slideshow_interval = 10;
256261 bool pass_screen_keys = false;
257262 bool pass_power_keys = false;
258263 bool pass_volume_keys = false;
264
265 bool hotkeys = false;
266 char* cmd_brightness_up = NULL;
267 char* cmd_brightness_down = NULL;
268
269 char* cmd_media_play = NULL;
270 char* cmd_media_pause = NULL;
271 char* cmd_media_stop = NULL;
272 char* cmd_media_next = NULL;
273 char* cmd_media_prev = NULL;
274
275 char* cmd_audio_mute = NULL;
276 char* cmd_volume_up = NULL;
277 char* cmd_volume_down = NULL;
278
279 char* cmd_power_down = NULL;
280 char* cmd_power_off = NULL;
281 char* cmd_power_sleep = NULL;
259282
260283 // for the rendering thread, so we can clean it up
261284 pthread_t draw_thread;
697720 n = xkb_keysym_to_utf8(ksym, buffer, sizeof(buffer));
698721 #endif
699722
723 //custom key commands
724 if (hotkeys) {
725 switch(ksym) {
726 case XKB_KEY_XF86MonBrightnessUp:
727 if (cmd_brightness_up) {
728 system(cmd_brightness_up);
729 return;
730 }
731 break;
732 case XKB_KEY_XF86MonBrightnessDown:
733 if (cmd_brightness_down) {
734 system(cmd_brightness_down);
735 return;
736 }
737 break;
738 case XKB_KEY_XF86AudioPlay:
739 if (cmd_media_play) {
740 system(cmd_media_play);
741 return;
742 }
743 break;
744 case XKB_KEY_XF86AudioPause:
745 if (cmd_media_pause) {
746 system(cmd_media_pause);
747 return;
748 }
749 break;
750 case XKB_KEY_XF86AudioStop:
751 if (cmd_media_stop) {
752 system(cmd_media_stop);
753 return;
754 }
755 break;
756 case XKB_KEY_XF86AudioPrev:
757 if (cmd_media_prev) {
758 system(cmd_media_prev);
759 return;
760 }
761 break;
762 case XKB_KEY_XF86AudioNext:
763 if (cmd_media_next) {
764 system(cmd_media_next);
765 return;
766 }
767 break;
768 case XKB_KEY_XF86AudioMute:
769 if (cmd_audio_mute) {
770 system(cmd_audio_mute);
771 return;
772 }
773 break;
774 case XKB_KEY_XF86AudioLowerVolume:
775 if (cmd_volume_down) {
776 system(cmd_volume_down);
777 return;
778 }
779 break;
780 case XKB_KEY_XF86AudioRaiseVolume:
781 if (cmd_volume_up) {
782 system(cmd_volume_up);
783 return;
784 }
785 break;
786 case XKB_KEY_XF86PowerDown:
787 if (cmd_power_down) {
788 system(cmd_power_down);
789 return;
790 }
791 break;
792 case XKB_KEY_XF86PowerOff:
793 if (cmd_power_off) {
794 system(cmd_power_off);
795 return;
796 }
797 break;
798 case XKB_KEY_XF86Sleep:
799 if (cmd_power_sleep) {
800 system(cmd_power_sleep);
801 return;
802 }
803 break;
804 }
805 }
806
700807 // media keys
701808 if (pass_media_keys) {
702809 switch(ksym) {
13381445 /*
13391446 * Loads an image from the given path. Handles JPEG and PNG. Returns NULL in case of error.
13401447 */
1341 static cairo_surface_t* load_image(char* image_path, char* image_raw_format) {
1448 cairo_surface_t* load_image(char* image_path) {
13421449 cairo_surface_t *img = NULL;
13431450 JPEG_INFO jpg_info;
13441451
13701477 }
13711478
13721479 /*
1373 * Loads the images from the provided directory and stores them in the pointer array
1480 * Reads the provided directory and stores the images path in the pointer array
13741481 * img_slideshow
13751482 */
1376 static void load_slideshow_images(const char *path, char *image_raw_format) {
1483 bool load_slideshow_images(const char *path) {
13771484 slideshow_enabled = true;
13781485 DIR *d;
13791486 struct dirent *dir;
13801487 int file_count = 0;
1488 slideshow_image_count = 0;
1489
1490 DEBUG("Loading slideshow images at \"%s\"\n", path);
13811491
13821492 d = opendir(path);
13831493 if (d == NULL) {
13841494 printf("Could not open directory: %s\n", path);
1385 exit(EXIT_SUCCESS);
1495 return false;
1496 }
1497
1498 regex_t reg;
1499
1500 if (regcomp(&reg, ".*\\.(jpe?g|png)", REG_EXTENDED)) {
1501 printf("Could not compile regex\n");
1502 return false;
13861503 }
13871504
13881505 while ((dir = readdir(d)) != NULL) {
1389 if (file_count >= 256) {
1390 break;
1391 }
1506 if (file_count >= 256) break;
1507 int result = regexec(&reg, dir->d_name, 0, NULL, 0);
1508 if (result) continue;
13921509
13931510 char path_to_image[256];
13941511 strcpy(path_to_image, path);
13951512 strcat(path_to_image, "/");
13961513 strcat(path_to_image, dir->d_name);
13971514
1398 img_slideshow[file_count] = load_image(path_to_image, image_raw_format);
1515 img_slideshow[file_count] = strdup(path_to_image);
13991516
14001517 if (img_slideshow[file_count] != NULL) {
14011518 ++file_count;
14031520 }
14041521
14051522 slideshow_image_count = file_count;
1406
1523 regfree(&reg);
14071524 closedir(d);
1525 return true;
14081526 }
14091527
14101528 int main(int argc, char *argv[]) {
14111529 struct passwd *pw;
14121530 char *username;
1413 char *image_path = NULL;
1414 char *image_raw_format = NULL;
14151531 #ifndef __OpenBSD__
14161532 int ret;
14171533 struct pam_conv conv = {conv_callback, NULL};
15431659 {"pass-power-keys", no_argument, NULL, 603},
15441660 {"pass-volume-keys", no_argument, NULL, 604},
15451661
1662 // custom commands for pass keys
1663 {"custom-key-commands", no_argument, NULL, 610},
1664 {"cmd-brightness-up", required_argument, NULL, 620},
1665 {"cmd-brightness-down", required_argument, NULL, 621},
1666
1667 {"cmd-media-play", required_argument, NULL, 630},
1668 {"cmd-media-pause", required_argument, NULL, 631},
1669 {"cmd-media-stop", required_argument, NULL, 632},
1670 {"cmd-media-next", required_argument, NULL, 633},
1671 {"cmd-media-prev", required_argument, NULL, 634},
1672
1673 {"cmd-audio-mute", required_argument, NULL, 640},
1674 {"cmd-volume-up", required_argument, NULL, 641},
1675 {"cmd-volume-down", required_argument, NULL, 642},
1676
1677 {"cmd-power-down", required_argument, NULL, 650},
1678 {"cmd-power-off", required_argument, NULL, 651},
1679 {"cmd-power-sleep", required_argument, NULL, 652},
1680
15461681 // bar indicator stuff
15471682 {"bar-indicator", no_argument, NULL, 700},
15481683 {"bar-direction", required_argument, NULL, 701},
20132148 }
20142149 arg = optarg;
20152150 if (sscanf(arg, "%30[^:]:%30[^:]", wrong_x_expr, wrong_y_expr) != 2) {
2016 errx(1, "verifpos must be of the form x:y\n");
2151 errx(1, "wrongpos must be of the form x:y\n");
20172152 }
20182153 break;
20192154 case 544:
20582193 case 548:
20592194 if (strlen(optarg) > 31) {
20602195 // this is overly restrictive since both the x and y string buffers have size 32, but it's easier to check.
2061 errx(1, "indicator position string can be at most 31 characters\n");
2196 errx(1, "greeter position string can be at most 31 characters\n");
20622197 }
20632198 arg = optarg;
20642199 if (sscanf(arg, "%30[^:]:%30[^:]", greeter_x_expr, greeter_y_expr) != 2) {
2065 errx(1, "indpos must be of the form x:y\n");
2200 errx(1, "greeterpos must be of the form x:y\n");
20662201 }
20672202 break;
20682203
21042239 pass_volume_keys = true;
21052240 break;
21062241
2242 //custom key commands
2243 case 610:
2244 hotkeys = true;
2245 break;
2246 case 620:
2247 cmd_brightness_up = optarg;
2248 break;
2249 case 621:
2250 cmd_brightness_down = optarg;
2251 break;
2252
2253 case 630:
2254 cmd_media_play = optarg;
2255 break;
2256 case 631:
2257 cmd_media_pause = optarg;
2258 break;
2259 case 632:
2260 cmd_media_stop = optarg;
2261 break;
2262 case 633:
2263 cmd_media_next = optarg;
2264 break;
2265 case 634:
2266 cmd_media_prev = optarg;
2267 break;
2268
2269 case 640:
2270 cmd_audio_mute = optarg;
2271 break;
2272 case 641:
2273 cmd_volume_up = optarg;
2274 break;
2275 case 642:
2276 cmd_volume_down = optarg;
2277 break;
2278
2279 case 650:
2280 cmd_power_down = optarg;
2281 break;
2282 case 651:
2283 cmd_power_off = optarg;
2284 break;
2285 case 652:
2286 cmd_power_sleep = optarg;
2287 break;
2288
21072289 // Bar indicator
21082290 case 700:
21092291 bar_enabled = true;
23252507 init_colors_once();
23262508 if (image_path != NULL) {
23272509 if (!is_directory(image_path)) {
2328 img = load_image(image_path, image_raw_format);
2510 img = load_image(image_path);
23292511 } else {
23302512 /* Path to a directory is provided -> use slideshow mode */
2331 load_slideshow_images(image_path, image_raw_format);
2513 slideshow_path = strdup(image_path);
2514 if (!load_slideshow_images(slideshow_path)) exit(EXIT_FAILURE);
2515 img = load_image(img_slideshow[0]);
23322516 }
23332517
23342518 free(image_path);
+0
-8
install-i3lock-color.sh less more
0 #!/bin/bash
1 ./build.sh
2
3 cd build
4
5 sudo make install
6
7 sudo install -Dm644 ../LICENSE "/usr/share/licenses/i3lock-color/LICENSE"
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2020-11-14.01; # UTC
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # 'make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch.
42
43 tab=' '
44 nl='
45 '
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
50 doit=${DOITPROG-}
51 doit_exec=${doit:-exec}
52
53 # Put in absolute file names if you don't have them in your path;
54 # or use environment vars.
55
56 chgrpprog=${CHGRPPROG-chgrp}
57 chmodprog=${CHMODPROG-chmod}
58 chownprog=${CHOWNPROG-chown}
59 cmpprog=${CMPPROG-cmp}
60 cpprog=${CPPROG-cp}
61 mkdirprog=${MKDIRPROG-mkdir}
62 mvprog=${MVPROG-mv}
63 rmprog=${RMPROG-rm}
64 stripprog=${STRIPPROG-strip}
65
66 posix_mkdir=
67
68 # Desired mode of installed file.
69 mode=0755
70
71 # Create dirs (including intermediate dirs) using mode 755.
72 # This is like GNU 'install' as of coreutils 8.32 (2020).
73 mkdir_umask=22
74
75 backupsuffix=
76 chgrpcmd=
77 chmodcmd=$chmodprog
78 chowncmd=
79 mvcmd=$mvprog
80 rmcmd="$rmprog -f"
81 stripcmd=
82
83 src=
84 dst=
85 dir_arg=
86 dst_arg=
87
88 copy_on_change=false
89 is_target_a_directory=possibly
90
91 usage="\
92 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
93 or: $0 [OPTION]... SRCFILES... DIRECTORY
94 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
95 or: $0 [OPTION]... -d DIRECTORIES...
96
97 In the 1st form, copy SRCFILE to DSTFILE.
98 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
99 In the 4th, create DIRECTORIES.
100
101 Options:
102 --help display this help and exit.
103 --version display version info and exit.
104
105 -c (ignored)
106 -C install only if different (preserve data modification time)
107 -d create directories instead of installing files.
108 -g GROUP $chgrpprog installed files to GROUP.
109 -m MODE $chmodprog installed files to MODE.
110 -o USER $chownprog installed files to USER.
111 -p pass -p to $cpprog.
112 -s $stripprog installed files.
113 -S SUFFIX attempt to back up existing files, with suffix SUFFIX.
114 -t DIRECTORY install into DIRECTORY.
115 -T report an error if DSTFILE is a directory.
116
117 Environment variables override the default commands:
118 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
119 RMPROG STRIPPROG
120
121 By default, rm is invoked with -f; when overridden with RMPROG,
122 it's up to you to specify -f if you want it.
123
124 If -S is not specified, no backups are attempted.
125
126 Email bug reports to [email protected].
127 Automake home page: https://www.gnu.org/software/automake/
128 "
129
130 while test $# -ne 0; do
131 case $1 in
132 -c) ;;
133
134 -C) copy_on_change=true;;
135
136 -d) dir_arg=true;;
137
138 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
140
141 --help) echo "$usage"; exit $?;;
142
143 -m) mode=$2
144 case $mode in
145 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
146 echo "$0: invalid mode: $mode" >&2
147 exit 1;;
148 esac
149 shift;;
150
151 -o) chowncmd="$chownprog $2"
152 shift;;
153
154 -p) cpprog="$cpprog -p";;
155
156 -s) stripcmd=$stripprog;;
157
158 -S) backupsuffix="$2"
159 shift;;
160
161 -t)
162 is_target_a_directory=always
163 dst_arg=$2
164 # Protect names problematic for 'test' and other utilities.
165 case $dst_arg in
166 -* | [=\(\)!]) dst_arg=./$dst_arg;;
167 esac
168 shift;;
169
170 -T) is_target_a_directory=never;;
171
172 --version) echo "$0 $scriptversion"; exit $?;;
173
174 --) shift
175 break;;
176
177 -*) echo "$0: invalid option: $1" >&2
178 exit 1;;
179
180 *) break;;
181 esac
182 shift
183 done
184
185 # We allow the use of options -d and -T together, by making -d
186 # take the precedence; this is for compatibility with GNU install.
187
188 if test -n "$dir_arg"; then
189 if test -n "$dst_arg"; then
190 echo "$0: target directory not allowed when installing a directory." >&2
191 exit 1
192 fi
193 fi
194
195 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
196 # When -d is used, all remaining arguments are directories to create.
197 # When -t is used, the destination is already specified.
198 # Otherwise, the last argument is the destination. Remove it from $@.
199 for arg
200 do
201 if test -n "$dst_arg"; then
202 # $@ is not empty: it contains at least $arg.
203 set fnord "$@" "$dst_arg"
204 shift # fnord
205 fi
206 shift # arg
207 dst_arg=$arg
208 # Protect names problematic for 'test' and other utilities.
209 case $dst_arg in
210 -* | [=\(\)!]) dst_arg=./$dst_arg;;
211 esac
212 done
213 fi
214
215 if test $# -eq 0; then
216 if test -z "$dir_arg"; then
217 echo "$0: no input file specified." >&2
218 exit 1
219 fi
220 # It's OK to call 'install-sh -d' without argument.
221 # This can happen when creating conditional directories.
222 exit 0
223 fi
224
225 if test -z "$dir_arg"; then
226 if test $# -gt 1 || test "$is_target_a_directory" = always; then
227 if test ! -d "$dst_arg"; then
228 echo "$0: $dst_arg: Is not a directory." >&2
229 exit 1
230 fi
231 fi
232 fi
233
234 if test -z "$dir_arg"; then
235 do_exit='(exit $ret); exit $ret'
236 trap "ret=129; $do_exit" 1
237 trap "ret=130; $do_exit" 2
238 trap "ret=141; $do_exit" 13
239 trap "ret=143; $do_exit" 15
240
241 # Set umask so as not to create temps with too-generous modes.
242 # However, 'strip' requires both read and write access to temps.
243 case $mode in
244 # Optimize common cases.
245 *644) cp_umask=133;;
246 *755) cp_umask=22;;
247
248 *[0-7])
249 if test -z "$stripcmd"; then
250 u_plus_rw=
251 else
252 u_plus_rw='% 200'
253 fi
254 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
255 *)
256 if test -z "$stripcmd"; then
257 u_plus_rw=
258 else
259 u_plus_rw=,u+rw
260 fi
261 cp_umask=$mode$u_plus_rw;;
262 esac
263 fi
264
265 for src
266 do
267 # Protect names problematic for 'test' and other utilities.
268 case $src in
269 -* | [=\(\)!]) src=./$src;;
270 esac
271
272 if test -n "$dir_arg"; then
273 dst=$src
274 dstdir=$dst
275 test -d "$dstdir"
276 dstdir_status=$?
277 # Don't chown directories that already exist.
278 if test $dstdir_status = 0; then
279 chowncmd=""
280 fi
281 else
282
283 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
284 # might cause directories to be created, which would be especially bad
285 # if $src (and thus $dsttmp) contains '*'.
286 if test ! -f "$src" && test ! -d "$src"; then
287 echo "$0: $src does not exist." >&2
288 exit 1
289 fi
290
291 if test -z "$dst_arg"; then
292 echo "$0: no destination specified." >&2
293 exit 1
294 fi
295 dst=$dst_arg
296
297 # If destination is a directory, append the input filename.
298 if test -d "$dst"; then
299 if test "$is_target_a_directory" = never; then
300 echo "$0: $dst_arg: Is a directory" >&2
301 exit 1
302 fi
303 dstdir=$dst
304 dstbase=`basename "$src"`
305 case $dst in
306 */) dst=$dst$dstbase;;
307 *) dst=$dst/$dstbase;;
308 esac
309 dstdir_status=0
310 else
311 dstdir=`dirname "$dst"`
312 test -d "$dstdir"
313 dstdir_status=$?
314 fi
315 fi
316
317 case $dstdir in
318 */) dstdirslash=$dstdir;;
319 *) dstdirslash=$dstdir/;;
320 esac
321
322 obsolete_mkdir_used=false
323
324 if test $dstdir_status != 0; then
325 case $posix_mkdir in
326 '')
327 # With -d, create the new directory with the user-specified mode.
328 # Otherwise, rely on $mkdir_umask.
329 if test -n "$dir_arg"; then
330 mkdir_mode=-m$mode
331 else
332 mkdir_mode=
333 fi
334
335 posix_mkdir=false
336 # The $RANDOM variable is not portable (e.g., dash). Use it
337 # here however when possible just to lower collision chance.
338 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
339
340 trap '
341 ret=$?
342 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null
343 exit $ret
344 ' 0
345
346 # Because "mkdir -p" follows existing symlinks and we likely work
347 # directly in world-writeable /tmp, make sure that the '$tmpdir'
348 # directory is successfully created first before we actually test
349 # 'mkdir -p'.
350 if (umask $mkdir_umask &&
351 $mkdirprog $mkdir_mode "$tmpdir" &&
352 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
353 then
354 if test -z "$dir_arg" || {
355 # Check for POSIX incompatibilities with -m.
356 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
357 # other-writable bit of parent directory when it shouldn't.
358 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
359 test_tmpdir="$tmpdir/a"
360 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
361 case $ls_ld_tmpdir in
362 d????-?r-*) different_mode=700;;
363 d????-?--*) different_mode=755;;
364 *) false;;
365 esac &&
366 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
367 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
368 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
369 }
370 }
371 then posix_mkdir=:
372 fi
373 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
374 else
375 # Remove any dirs left behind by ancient mkdir implementations.
376 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
377 fi
378 trap '' 0;;
379 esac
380
381 if
382 $posix_mkdir && (
383 umask $mkdir_umask &&
384 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
385 )
386 then :
387 else
388
389 # mkdir does not conform to POSIX,
390 # or it failed possibly due to a race condition. Create the
391 # directory the slow way, step by step, checking for races as we go.
392
393 case $dstdir in
394 /*) prefix='/';;
395 [-=\(\)!]*) prefix='./';;
396 *) prefix='';;
397 esac
398
399 oIFS=$IFS
400 IFS=/
401 set -f
402 set fnord $dstdir
403 shift
404 set +f
405 IFS=$oIFS
406
407 prefixes=
408
409 for d
410 do
411 test X"$d" = X && continue
412
413 prefix=$prefix$d
414 if test -d "$prefix"; then
415 prefixes=
416 else
417 if $posix_mkdir; then
418 (umask $mkdir_umask &&
419 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
420 # Don't fail if two instances are running concurrently.
421 test -d "$prefix" || exit 1
422 else
423 case $prefix in
424 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
425 *) qprefix=$prefix;;
426 esac
427 prefixes="$prefixes '$qprefix'"
428 fi
429 fi
430 prefix=$prefix/
431 done
432
433 if test -n "$prefixes"; then
434 # Don't fail if two instances are running concurrently.
435 (umask $mkdir_umask &&
436 eval "\$doit_exec \$mkdirprog $prefixes") ||
437 test -d "$dstdir" || exit 1
438 obsolete_mkdir_used=true
439 fi
440 fi
441 fi
442
443 if test -n "$dir_arg"; then
444 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
445 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
446 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
447 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
448 else
449
450 # Make a couple of temp file names in the proper directory.
451 dsttmp=${dstdirslash}_inst.$$_
452 rmtmp=${dstdirslash}_rm.$$_
453
454 # Trap to clean up those temp files at exit.
455 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
456
457 # Copy the file name to the temp name.
458 (umask $cp_umask &&
459 { test -z "$stripcmd" || {
460 # Create $dsttmp read-write so that cp doesn't create it read-only,
461 # which would cause strip to fail.
462 if test -z "$doit"; then
463 : >"$dsttmp" # No need to fork-exec 'touch'.
464 else
465 $doit touch "$dsttmp"
466 fi
467 }
468 } &&
469 $doit_exec $cpprog "$src" "$dsttmp") &&
470
471 # and set any options; do chmod last to preserve setuid bits.
472 #
473 # If any of these fail, we abort the whole thing. If we want to
474 # ignore errors from any of these, just make sure not to ignore
475 # errors from the above "$doit $cpprog $src $dsttmp" command.
476 #
477 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
478 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
479 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
480 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
481
482 # If -C, don't bother to copy if it wouldn't change the file.
483 if $copy_on_change &&
484 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
485 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
486 set -f &&
487 set X $old && old=:$2:$4:$5:$6 &&
488 set X $new && new=:$2:$4:$5:$6 &&
489 set +f &&
490 test "$old" = "$new" &&
491 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
492 then
493 rm -f "$dsttmp"
494 else
495 # If $backupsuffix is set, and the file being installed
496 # already exists, attempt a backup. Don't worry if it fails,
497 # e.g., if mv doesn't support -f.
498 if test -n "$backupsuffix" && test -f "$dst"; then
499 $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null
500 fi
501
502 # Rename the file to the real destination.
503 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
504
505 # The rename failed, perhaps because mv can't rename something else
506 # to itself, or perhaps because mv is so ancient that it does not
507 # support -f.
508 {
509 # Now remove or move aside any old file at destination location.
510 # We try this two ways since rm can't unlink itself on some
511 # systems and the destination file might be busy for other
512 # reasons. In this case, the final cleanup might fail but the new
513 # file should still install successfully.
514 {
515 test ! -f "$dst" ||
516 $doit $rmcmd "$dst" 2>/dev/null ||
517 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
518 { $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
519 } ||
520 { echo "$0: cannot unlink or rename $dst" >&2
521 (exit 1); exit 1
522 }
523 } &&
524
525 # Now rename the file to the real destination.
526 $doit $mvcmd "$dsttmp" "$dst"
527 }
528 fi || exit 1
529
530 trap '' 0
531 fi
532 done
533
534 # Local variables:
535 # eval: (add-hook 'before-save-hook 'time-stamp)
536 # time-stamp-start: "scriptversion="
537 # time-stamp-format: "%:y-%02m-%02d.%02H"
538 # time-stamp-time-zone: "UTC0"
539 # time-stamp-end: "; # UTC"
540 # End:
0 # SYNOPSIS
1 #
2 # AX_CHECK_BASH_COMPLETION()
3 #
4 # DESCRIPTION
5 #
6 # Checks for the presence of an --with-bash-completion-dir option to set a
7 # custom path to bash completions. If no specified, it will use the default
8 # path as long as bash-completion is available.
9 #
10
11 #serial 1
12
13 AC_DEFUN([AX_CHECK_BASH_COMPLETION], [
14 AC_ARG_WITH([bash-completion-dir],
15 AS_HELP_STRING([--with-bash-completion-dir[=PATH]],
16 [Install the bash auto-completion script in this directory. @<:@default=yes@:>@]),
17 [],
18 [with_bash_completion_dir=yes])
19
20 # Check bash-completion
21 if test "x$with_bash_completion_dir" = "xyes"; then
22 PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0], [
23 BASH_COMPLETION_DIR="$datadir/bash-completion/completions"
24 ], [
25 BASH_COMPLETION_DIR=""
26 ])
27 else
28 BASH_COMPLETION_DIR="$with_bash_completion_dir"
29 fi
30 AC_SUBST([BASH_COMPLETION_DIR])
31 AM_CONDITIONAL([ENABLE_BASH_COMPLETION], [test "x$with_bash_completion_dir" != "xno" && test "$BASH_COMPLETION_DIR" != ""])
32 ])
33
0 # SYNOPSIS
1 #
2 # AX_CHECK_ZSH_COMPLETION()
3 #
4 # DESCRIPTION
5 #
6 # Checks for the presence of an --with-zsh-completion-dir option to set a
7 # custom path to zsh completions. If no specified, it will use the default
8 # path as long as zsh is available.
9 #
10
11 #serial 1
12
13 AC_DEFUN([AX_CHECK_ZSH_COMPLETION], [
14 AC_ARG_WITH([zsh-completion-dir],
15 AS_HELP_STRING([--with-zsh-completion-dir[=PATH]],
16 [Install the zsh auto-completion script in this directory. @<:@default=yes@:>@]),
17 [],
18 [with_zsh_completion_dir=yes])
19
20 # Check zsh-completion
21 if test "x$with_zsh_completion_dir" = "xyes"; then
22 AC_ARG_VAR([ZSH_AVAILABLE], [])
23 AC_CHECK_PROG([ZSH_AVAILABLE], [zsh], [yes], [no])
24
25 AS_IF([test "$ZSH_AVAILABLE" = "yes"], [
26 ZSH_COMPLETION_DIR="$datadir/zsh/vendor-completions"
27 ], [
28 ZSH_COMPLETION_DIR=""
29 ])
30 else
31 ZSH_COMPLETION_DIR="$with_zsh_completion_dir"
32 fi
33 AC_SUBST([ZSH_COMPLETION_DIR])
34 AM_CONDITIONAL([ENABLE_ZSH_COMPLETION], [test "x$with_zsh_completion_dir" != "xno" && test "$ZSH_COMPLETION_DIR" != ""])
35 ])
36
0 #! /bin/sh
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <[email protected]>, 1996.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 if test $# -eq 0; then
27 echo 1>&2 "Try '$0 --help' for more information"
28 exit 1
29 fi
30
31 case $1 in
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
43
44 -h|--h|--he|--hel|--help)
45 echo "\
46 $0 [OPTION]... PROGRAM [ARGUMENT]...
47
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
50
51 Options:
52 -h, --help display this help and exit
53 -v, --version output version information and exit
54
55 Supported PROGRAM values:
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
61
62 Send bug reports to <[email protected]>."
63 exit $?
64 ;;
65
66 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
67 echo "missing $scriptversion (GNU Automake)"
68 exit $?
69 ;;
70
71 -*)
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
74 exit 1
75 ;;
76
77 esac
78
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=https://www.perl.org/
104 flex_URL=https://github.com/westes/flex
105 gnu_software_URL=https://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'autom4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
207
208 # Local variables:
209 # eval: (add-hook 'before-save-hook 'time-stamp)
210 # time-stamp-start: "scriptversion="
211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212 # time-stamp-time-zone: "UTC0"
213 # time-stamp-end: "; # UTC"
214 # End:
+0
-25
travis/Dockerfile less more
0 # vim:ft=Dockerfile
1 FROM debian:sid
2
3 RUN echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup
4 # Paper over occasional network flakiness of some mirrors.
5 RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry
6
7 # NOTE: I tried exclusively using gce_debian_mirror.storage.googleapis.com
8 # instead of httpredir.debian.org, but the results (Fetched 123 MB in 36s (3357
9 # kB/s)) are not any better than httpredir.debian.org (Fetched 123 MB in 34s
10 # (3608 kB/s)). Hence, let’s stick with httpredir.debian.org (default) for now.
11
12 # Install mk-build-deps (for installing the i3 build dependencies),
13 # clang and clang-format-9 (for checking formatting and building with clang),
14 # lintian (for checking spelling errors),
15 # test suite dependencies (for running tests)
16 RUN apt-get update && \
17 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
18 build-essential clang git autoconf automake libxcb-randr0-dev pkg-config libpam0g-dev \
19 libcairo2-dev libxcb1-dev libxcb-dpms0-dev libxcb-image0-dev libxcb-util0-dev \
20 libxcb-xrm-dev libev-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev \
21 libxkbcommon-x11-dev clang-format-9 && \
22 rm -rf /var/lib/apt/lists/*
23
24 WORKDIR /usr/src
6161
6262 /* A Cairo surface containing the specified image (-i), if any. */
6363 extern cairo_surface_t *img;
64 extern cairo_surface_t *img_slideshow[256];
64 extern char *image_path;
65 extern char *slideshow_path;
66 extern char *img_slideshow[256];
6567 extern cairo_surface_t *blur_bg_img;
6668 extern int slideshow_image_count;
6769 extern int slideshow_interval;
6870 extern bool slideshow_random_selection;
71 int slideshow_image_now = 0;
6972
7073 unsigned long lastCheck;
7174
160163 extern char *layout_text;
161164 extern char *greeter_text;
162165
166 bool load_slideshow_images(const char *path);
167 cairo_surface_t* load_image(char* image_path);
168
163169 /* Whether the failed attempts should be displayed. */
164170 extern bool show_failed_attempts;
165171 /* Number of failed unlock attempts. */
249255 NULL,
250256 };
251257
258 static control_char_config_t control_characters[] = {
259 {'\n', CC_POS_RESET, 0, CC_POS_CHANGE, 1},
260 {'\b', CC_POS_CHANGE, -1, CC_POS_KEEP, 0},
261 {'\r', CC_POS_RESET, 0, CC_POS_KEEP, 0},
262 {'\t', CC_POS_TAB, 4, CC_POS_KEEP, 0},
263 };
264 size_t control_char_count = sizeof control_characters / sizeof(control_char_config_t);
265
252266 static cairo_font_face_t *get_font_face(int which) {
253267 if (font_faces[which]) {
254268 return font_faces[which];
305319 font_faces[which] = cairo_font_face_reference(face);
306320 FcFini();
307321 return face;
322 }
323
324 /*
325 * Splits the given text by "control chars",
326 * And then draws the given text onto the cairo context.
327 */
328 static void draw_text_with_cc(cairo_t *ctx, text_t text, double start_x) {
329 // get scaled_font
330 cairo_scaled_font_t *sft;
331 cairo_matrix_t fm, ctm;
332 cairo_matrix_init_scale(&fm, text.size, text.size);
333 cairo_get_matrix(ctx, &ctm);
334 cairo_font_options_t *opts;
335 opts = cairo_font_options_create();
336 sft = cairo_scaled_font_create(text.font, &fm, &ctm, opts);
337 cairo_font_options_destroy(opts);
338 /* use `a` to represent common character width, using in `\t` */
339 cairo_text_extents_t te;
340 cairo_text_extents(ctx, "a", &te);
341
342 // convert text to glyphs.
343 cairo_status_t status;
344 cairo_glyph_t* glyphs;
345 int nglyphs = 0,
346 len = 0,
347 start = 0,
348 lineno = 0,
349 x = start_x,
350 y = text.y;
351 size_t cur_cc;
352
353 while (text.str[start + len] != '\0') {
354 char is_cc = 0;
355 do {
356 for (cur_cc = 0; cur_cc < control_char_count; cur_cc++) {
357 if (text.str[start+len] == control_characters[cur_cc].character) {
358 is_cc = 1;
359 break;
360 }
361 }
362 } while (text.str[start+(len++)] != '\0' && !is_cc);
363 if (len > is_cc) {
364 status = cairo_scaled_font_text_to_glyphs(
365 sft, x, y, text.str + start, is_cc ? len - 1: len,
366 &glyphs, &nglyphs,
367 NULL, NULL, NULL
368 );
369 if (status == CAIRO_STATUS_SUCCESS) {
370 cairo_glyph_path(ctx, glyphs, nglyphs);
371 } else {
372 DEBUG("draw %c failed\n", text.str[start]);
373 }
374 }
375 if (is_cc && (cur_cc < control_char_count)) {
376 if (control_characters[cur_cc].x_behavior == CC_POS_CHANGE) {
377 char x_offset = control_characters[cur_cc].x_behavior_arg;
378 if (x_offset < 0 && x_offset > -nglyphs) {
379 x = glyphs[nglyphs+x_offset].x;
380 } else if (x_offset > 0) {
381 if (nglyphs >= 1) { // the case is some leading control chars.(although there is none now)
382 x = glyphs[nglyphs - 1].x + x_offset * te.x_advance;
383 } else { // deal the leading control chars.
384 x += x_offset * te.x_advance;
385 }
386 }
387 } else if (control_characters[cur_cc].x_behavior == CC_POS_RESET) {
388 x = start_x;
389 } else if (control_characters[cur_cc].x_behavior == CC_POS_TAB) {
390 if (nglyphs > 0) { // there may be leading tab, such as '\t\t' or '\n\t'
391 int advance = control_characters[cur_cc].x_behavior_arg - ((nglyphs - 1) % control_characters[cur_cc].x_behavior_arg);
392 x = glyphs[nglyphs - 1].x + advance * te.x_advance;
393 } else { // deal the leading tab.
394 x += control_characters[cur_cc].x_behavior_arg * te.x_advance;
395 }
396 }
397 if (control_characters[cur_cc].y_behavior == CC_POS_CHANGE) {
398 lineno += control_characters[cur_cc].y_behavior_arg;
399 } // CC_POS_KEEP is default for y
400 }
401 y = text.y + text.size * lineno;
402 if (len > is_cc) {
403 cairo_glyph_free(glyphs);
404 }
405 nglyphs = 0;
406 start += len;
407 len = 0;
408 }
409 cairo_scaled_font_destroy(sft);
308410 }
309411
310412 /*
335437 }
336438
337439 cairo_set_source_rgba(ctx, text.color.red, text.color.green, text.color.blue, text.color.alpha);
338 cairo_move_to(ctx, x, text.y);
339
340 cairo_text_path(ctx, text.str);
440
441 draw_text_with_cc(ctx, text, x);
341442 cairo_fill_preserve(ctx);
342443
343444 cairo_set_source_rgba(ctx, text.outline_color.red, text.outline_color.green, text.outline_color.blue, text.outline_color.alpha);
685786 unsigned long now = (unsigned long)time(NULL);
686787 if (img == NULL || now - lastCheck >= slideshow_interval) {
687788 if (slideshow_random_selection) {
688 img = img_slideshow[rand() % slideshow_image_count];
789 img = load_image(img_slideshow[rand() % slideshow_image_count]);
689790 } else {
690 img = img_slideshow[current_slideshow_index++];
691
692 if (current_slideshow_index >= slideshow_image_count) {
693 current_slideshow_index = 0;
694 }
791 img = load_image(img_slideshow[current_slideshow_index]);
792 }
793 current_slideshow_index++;
794 if (current_slideshow_index >= slideshow_image_count) {
795 current_slideshow_index = 0;
796 load_slideshow_images(slideshow_path);
695797 }
696798 lastCheck = now;
697799 }
11311233
11321234 } else if (bg_type == MAX || bg_type == FILL) {
11331235 double aspect_diff = (double) xr_resolutions[i].height / xr_resolutions[i].width - image_height / image_width;
1134 if((bg_type == MAX && aspect_diff > 0) || (bg_type == FILL && aspect_diff < 0)) {
1236 if((bg_type == MAX && aspect_diff >= 0) || (bg_type == FILL && aspect_diff <= 0)) {
11351237 scale_x = scale_y = xr_resolutions[i].width / image_width;
11361238 } else if ((bg_type == MAX && aspect_diff < 0) || (bg_type == FILL && aspect_diff > 0)) {
11371239 scale_x = scale_y = xr_resolutions[i].height / image_height;
4646 MAX,
4747 } background_type_t;
4848
49
50 typedef enum {
51 CC_POS_RESET,
52 CC_POS_CHANGE,
53 CC_POS_KEEP,
54 CC_POS_TAB
55 } control_char_pos_t;
56
57 typedef struct {
58 char character;
59 control_char_pos_t x_behavior;
60 int x_behavior_arg;
61 control_char_pos_t y_behavior;
62 int y_behavior_arg;
63 } control_char_config_t;
64
4965 void render_lock(uint32_t* resolution, xcb_drawable_t drawable);
5066 void draw_image(uint32_t* resolution, cairo_surface_t* img, cairo_t* xcb_ctx);
5167 void init_colors_once(void);