]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
635df748 | 3 | # Generated by GNU Autoconf 2.72. |
f11781c5 | 4 | # |
795ca3e5 | 5 | # |
635df748 | 6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, |
6b2e4ec5 | 7 | # Inc. |
f11781c5 AK |
8 | # |
9 | # | |
795ca3e5 AK |
10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
f11781c5 AK |
12 | ## -------------------- ## |
13 | ## M4sh Initialization. ## | |
14 | ## -------------------- ## | |
ad6254c5 | 15 | |
25fbec5b AK |
16 | # Be more Bourne compatible |
17 | DUALCASE=1; export DUALCASE # for MKS sh | |
6b2e4ec5 ZK |
18 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
19 | then : | |
ad6254c5 AK |
20 | emulate sh |
21 | NULLCMD=: | |
ec6a6fbe | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 | 25 | setopt NO_GLOB_SUBST |
635df748 ZK |
26 | else case e in #( |
27 | e) case `(set -o) 2>/dev/null` in #( | |
f11781c5 AK |
28 | *posix*) : |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
635df748 | 32 | esac ;; |
25fbec5b | 33 | esac |
7a197a62 | 34 | fi |
25fbec5b AK |
35 | |
36 | ||
6b2e4ec5 ZK |
37 | |
38 | # Reset variables that may have inherited troublesome values from | |
39 | # the environment. | |
40 | ||
41 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
42 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
43 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
44 | # Quoting is to prevent editors from complaining about space-tab. | |
ec6a6fbe AK |
45 | as_nl=' |
46 | ' | |
47 | export as_nl | |
6b2e4ec5 ZK |
48 | IFS=" "" $as_nl" |
49 | ||
50 | PS1='$ ' | |
51 | PS2='> ' | |
52 | PS4='+ ' | |
53 | ||
54 | # Ensure predictable behavior from utilities with locale-dependent output. | |
55 | LC_ALL=C | |
56 | export LC_ALL | |
57 | LANGUAGE=C | |
58 | export LANGUAGE | |
59 | ||
60 | # We cannot yet rely on "unset" to work, but we need these variables | |
61 | # to be unset--not just set to an empty or harmless value--now, to | |
62 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
63 | # also avoids known problems related to "unset" and subshell syntax | |
64 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
65 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
66 | do eval test \${$as_var+y} \ | |
67 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
68 | done | |
69 | ||
70 | # Ensure that fds 0, 1, and 2 are open. | |
71 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
72 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
73 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
ec6a6fbe AK |
74 | |
75 | # The user is always right. | |
6b2e4ec5 | 76 | if ${PATH_SEPARATOR+false} :; then |
ec6a6fbe AK |
77 | PATH_SEPARATOR=: |
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
80 | PATH_SEPARATOR=';' | |
81 | } | |
ad6254c5 AK |
82 | fi |
83 | ||
ad6254c5 | 84 | |
7a197a62 | 85 | # Find who we are. Look in the path if we contain no directory separator. |
4d0c3ed0 | 86 | as_myself= |
f11781c5 | 87 | case $0 in #(( |
7a197a62 AK |
88 | *[\\/]* ) as_myself=$0 ;; |
89 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
90 | for as_dir in $PATH | |
91 | do | |
92 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
93 | case $as_dir in #((( |
94 | '') as_dir=./ ;; | |
95 | */) ;; | |
96 | *) as_dir=$as_dir/ ;; | |
97 | esac | |
98 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
f11781c5 | 99 | done |
7a197a62 AK |
100 | IFS=$as_save_IFS |
101 | ||
102 | ;; | |
103 | esac | |
635df748 | 104 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
7a197a62 AK |
105 | # in which case we are not to be found in the path. |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
6b2e4ec5 | 110 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 111 | exit 1 |
7a197a62 AK |
112 | fi |
113 | ||
f11781c5 | 114 | |
4d0c3ed0 AK |
115 | # Use a proper internal environment variable to ensure we don't fall |
116 | # into an infinite loop, continuously re-executing ourselves. | |
117 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
118 | _as_can_reexec=no; export _as_can_reexec; | |
119 | # We cannot yet assume a decent shell, so we have to provide a | |
120 | # neutralization value for shells without unset; and this also | |
121 | # works around shells that cannot unset nonexistent variables. | |
122 | # Preserve -v and -x to the replacement shell. | |
123 | BASH_ENV=/dev/null | |
124 | ENV=/dev/null | |
125 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
126 | case $- in # (((( | |
127 | *v*x* | *x*v* ) as_opts=-vx ;; | |
128 | *v* ) as_opts=-v ;; | |
129 | *x* ) as_opts=-x ;; | |
130 | * ) as_opts= ;; | |
131 | esac | |
132 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
133 | # Admittedly, this is quite paranoid, since all the known shells bail | |
635df748 | 134 | # out after a failed 'exec'. |
6b2e4ec5 ZK |
135 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
136 | exit 255 | |
4d0c3ed0 AK |
137 | fi |
138 | # We don't want this to propagate to other subprocesses. | |
139 | { _as_can_reexec=; unset _as_can_reexec;} | |
f11781c5 | 140 | if test "x$CONFIG_SHELL" = x; then |
635df748 | 141 | as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
6b2e4ec5 | 142 | then : |
f11781c5 AK |
143 | emulate sh |
144 | NULLCMD=: | |
145 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
146 | # is contrary to our usage. Disable this feature. | |
147 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
148 | setopt NO_GLOB_SUBST | |
635df748 ZK |
149 | else case e in #( |
150 | e) case \`(set -o) 2>/dev/null\` in #( | |
f11781c5 AK |
151 | *posix*) : |
152 | set -o posix ;; #( | |
153 | *) : | |
154 | ;; | |
635df748 | 155 | esac ;; |
f11781c5 AK |
156 | esac |
157 | fi | |
158 | " | |
159 | as_required="as_fn_return () { (exit \$1); } | |
160 | as_fn_success () { as_fn_return 0; } | |
161 | as_fn_failure () { as_fn_return 1; } | |
162 | as_fn_ret_success () { return 0; } | |
163 | as_fn_ret_failure () { return 1; } | |
164 | ||
165 | exitcode=0 | |
166 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
167 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
168 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
169 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
6b2e4ec5 ZK |
170 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
171 | then : | |
f11781c5 | 172 | |
635df748 ZK |
173 | else case e in #( |
174 | e) exitcode=1; echo positional parameters were not saved. ;; | |
175 | esac | |
f11781c5 | 176 | fi |
4d0c3ed0 | 177 | test x\$exitcode = x0 || exit 1 |
6b2e4ec5 ZK |
178 | blah=\$(echo \$(echo blah)) |
179 | test x\"\$blah\" = xblah || exit 1 | |
4d0c3ed0 | 180 | test -x / || exit 1" |
f11781c5 AK |
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" | |
6b2e4ec5 ZK |
186 | if (eval "$as_required") 2>/dev/null |
187 | then : | |
f11781c5 | 188 | as_have_required=yes |
635df748 ZK |
189 | else case e in #( |
190 | e) as_have_required=no ;; | |
191 | esac | |
f11781c5 | 192 | fi |
6b2e4ec5 ZK |
193 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
194 | then : | |
f11781c5 | 195 | |
635df748 ZK |
196 | else case e in #( |
197 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
f11781c5 AK |
198 | as_found=false |
199 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
200 | do | |
201 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
202 | case $as_dir in #((( |
203 | '') as_dir=./ ;; | |
204 | */) ;; | |
205 | *) as_dir=$as_dir/ ;; | |
206 | esac | |
f11781c5 AK |
207 | as_found=: |
208 | case $as_dir in #( | |
209 | /*) | |
210 | for as_base in sh bash ksh sh5; do | |
211 | # Try only shells that exist, to save several forks. | |
6b2e4ec5 | 212 | as_shell=$as_dir$as_base |
f11781c5 | 213 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
6b2e4ec5 ZK |
214 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
215 | then : | |
f11781c5 | 216 | CONFIG_SHELL=$as_shell as_have_required=yes |
6b2e4ec5 ZK |
217 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
218 | then : | |
f11781c5 AK |
219 | break 2 |
220 | fi | |
221 | fi | |
222 | done;; | |
223 | esac | |
224 | as_found=false | |
225 | done | |
f11781c5 | 226 | IFS=$as_save_IFS |
6b2e4ec5 ZK |
227 | if $as_found |
228 | then : | |
229 | ||
635df748 ZK |
230 | else case e in #( |
231 | e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
6b2e4ec5 ZK |
232 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
233 | then : | |
234 | CONFIG_SHELL=$SHELL as_have_required=yes | |
635df748 ZK |
235 | fi ;; |
236 | esac | |
6b2e4ec5 | 237 | fi |
f11781c5 AK |
238 | |
239 | ||
6b2e4ec5 ZK |
240 | if test "x$CONFIG_SHELL" != x |
241 | then : | |
4d0c3ed0 AK |
242 | export CONFIG_SHELL |
243 | # We cannot yet assume a decent shell, so we have to provide a | |
244 | # neutralization value for shells without unset; and this also | |
245 | # works around shells that cannot unset nonexistent variables. | |
246 | # Preserve -v and -x to the replacement shell. | |
247 | BASH_ENV=/dev/null | |
248 | ENV=/dev/null | |
249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
250 | case $- in # (((( | |
251 | *v*x* | *x*v* ) as_opts=-vx ;; | |
252 | *v* ) as_opts=-v ;; | |
253 | *x* ) as_opts=-x ;; | |
254 | * ) as_opts= ;; | |
255 | esac | |
256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
257 | # Admittedly, this is quite paranoid, since all the known shells bail | |
635df748 | 258 | # out after a failed 'exec'. |
6b2e4ec5 | 259 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
4d0c3ed0 | 260 | exit 255 |
f11781c5 AK |
261 | fi |
262 | ||
6b2e4ec5 ZK |
263 | if test x$as_have_required = xno |
264 | then : | |
265 | printf "%s\n" "$0: This script requires a shell more modern than all" | |
266 | printf "%s\n" "$0: the shells that I found on your system." | |
267 | if test ${ZSH_VERSION+y} ; then | |
268 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
269 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." | |
f11781c5 | 270 | else |
6b2e4ec5 | 271 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
f11781c5 AK |
272 | $0: including any error possibly output before this |
273 | $0: message. Then install a modern shell, or manually run | |
274 | $0: the script under such a shell if you do have one." | |
275 | fi | |
276 | exit 1 | |
635df748 ZK |
277 | fi ;; |
278 | esac | |
f11781c5 AK |
279 | fi |
280 | fi | |
281 | SHELL=${CONFIG_SHELL-/bin/sh} | |
282 | export SHELL | |
283 | # Unset more variables known to interfere with behavior of common tools. | |
284 | CLICOLOR_FORCE= GREP_OPTIONS= | |
285 | unset CLICOLOR_FORCE GREP_OPTIONS | |
286 | ||
287 | ## --------------------- ## | |
288 | ## M4sh Shell Functions. ## | |
289 | ## --------------------- ## | |
290 | # as_fn_unset VAR | |
291 | # --------------- | |
292 | # Portably unset VAR. | |
293 | as_fn_unset () | |
294 | { | |
295 | { eval $1=; unset $1;} | |
296 | } | |
297 | as_unset=as_fn_unset | |
298 | ||
6b2e4ec5 | 299 | |
f11781c5 AK |
300 | # as_fn_set_status STATUS |
301 | # ----------------------- | |
302 | # Set $? to STATUS, without forking. | |
303 | as_fn_set_status () | |
304 | { | |
305 | return $1 | |
306 | } # as_fn_set_status | |
307 | ||
308 | # as_fn_exit STATUS | |
309 | # ----------------- | |
310 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
311 | as_fn_exit () | |
312 | { | |
313 | set +e | |
314 | as_fn_set_status $1 | |
315 | exit $1 | |
316 | } # as_fn_exit | |
317 | ||
318 | # as_fn_mkdir_p | |
319 | # ------------- | |
320 | # Create "$as_dir" as a directory, including parents if necessary. | |
321 | as_fn_mkdir_p () | |
322 | { | |
323 | ||
324 | case $as_dir in #( | |
325 | -*) as_dir=./$as_dir;; | |
326 | esac | |
327 | test -d "$as_dir" || eval $as_mkdir_p || { | |
328 | as_dirs= | |
329 | while :; do | |
330 | case $as_dir in #( | |
6b2e4ec5 | 331 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
f11781c5 AK |
332 | *) as_qdir=$as_dir;; |
333 | esac | |
334 | as_dirs="'$as_qdir' $as_dirs" | |
335 | as_dir=`$as_dirname -- "$as_dir" || | |
336 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
337 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
338 | X"$as_dir" : 'X\(//\)$' \| \ | |
339 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6b2e4ec5 | 340 | printf "%s\n" X"$as_dir" | |
f11781c5 AK |
341 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
342 | s//\1/ | |
343 | q | |
344 | } | |
345 | /^X\(\/\/\)[^/].*/{ | |
346 | s//\1/ | |
347 | q | |
348 | } | |
349 | /^X\(\/\/\)$/{ | |
350 | s//\1/ | |
351 | q | |
352 | } | |
353 | /^X\(\/\).*/{ | |
354 | s//\1/ | |
355 | q | |
356 | } | |
357 | s/.*/./; q'` | |
358 | test -d "$as_dir" && break | |
359 | done | |
360 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
361 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
362 | ||
363 | ||
364 | } # as_fn_mkdir_p | |
4d0c3ed0 AK |
365 | |
366 | # as_fn_executable_p FILE | |
367 | # ----------------------- | |
368 | # Test if FILE is an executable regular file. | |
369 | as_fn_executable_p () | |
370 | { | |
371 | test -f "$1" && test -x "$1" | |
372 | } # as_fn_executable_p | |
f11781c5 AK |
373 | # as_fn_append VAR VALUE |
374 | # ---------------------- | |
375 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
376 | # advantage of any shell optimizations that allow amortized linear growth over | |
377 | # repeated appends, instead of the typical quadratic growth present in naive | |
378 | # implementations. | |
6b2e4ec5 ZK |
379 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
380 | then : | |
f11781c5 AK |
381 | eval 'as_fn_append () |
382 | { | |
383 | eval $1+=\$2 | |
384 | }' | |
635df748 ZK |
385 | else case e in #( |
386 | e) as_fn_append () | |
f11781c5 AK |
387 | { |
388 | eval $1=\$$1\$2 | |
635df748 ZK |
389 | } ;; |
390 | esac | |
f11781c5 AK |
391 | fi # as_fn_append |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
6b2e4ec5 ZK |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
399 | then : | |
f11781c5 AK |
400 | eval 'as_fn_arith () |
401 | { | |
402 | as_val=$(( $* )) | |
403 | }' | |
635df748 ZK |
404 | else case e in #( |
405 | e) as_fn_arith () | |
f11781c5 AK |
406 | { |
407 | as_val=`expr "$@" || test $? -eq 1` | |
635df748 ZK |
408 | } ;; |
409 | esac | |
f11781c5 AK |
410 | fi # as_fn_arith |
411 | ||
412 | ||
413 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
414 | # ---------------------------------------- | |
415 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
416 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
417 | # script with STATUS, using 1 if that was 0. | |
418 | as_fn_error () | |
419 | { | |
420 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
421 | if test "$4"; then | |
422 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6b2e4ec5 | 423 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
f11781c5 | 424 | fi |
6b2e4ec5 | 425 | printf "%s\n" "$as_me: error: $2" >&2 |
f11781c5 AK |
426 | as_fn_exit $as_status |
427 | } # as_fn_error | |
428 | ||
7a197a62 AK |
429 | if expr a : '\(a\)' >/dev/null 2>&1 && |
430 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
431 | as_expr=expr |
432 | else | |
433 | as_expr=false | |
434 | fi | |
435 | ||
7a197a62 | 436 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
437 | as_basename=basename |
438 | else | |
439 | as_basename=false | |
440 | fi | |
441 | ||
f11781c5 AK |
442 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
443 | as_dirname=dirname | |
444 | else | |
445 | as_dirname=false | |
446 | fi | |
ad6254c5 | 447 | |
7a197a62 | 448 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
449 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
450 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 451 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
6b2e4ec5 | 452 | printf "%s\n" X/"$0" | |
7a197a62 AK |
453 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
454 | s//\1/ | |
455 | q | |
456 | } | |
457 | /^X\/\(\/\/\)$/{ | |
458 | s//\1/ | |
459 | q | |
460 | } | |
461 | /^X\/\(\/\).*/{ | |
462 | s//\1/ | |
463 | q | |
464 | } | |
465 | s/.*/./; q'` | |
ad6254c5 | 466 | |
f11781c5 AK |
467 | # Avoid depending upon Character Ranges. |
468 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
469 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
470 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
471 | as_cr_digits='0123456789' | |
472 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
ad6254c5 | 473 | |
ad6254c5 | 474 | |
f11781c5 AK |
475 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
476 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
477 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
478 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
479 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
480 | sed -n ' | |
481 | p | |
482 | /[$]LINENO/= | |
483 | ' <$as_myself | | |
484 | sed ' | |
635df748 ZK |
485 | t clear |
486 | :clear | |
f11781c5 AK |
487 | s/[$]LINENO.*/&-/ |
488 | t lineno | |
489 | b | |
490 | :lineno | |
491 | N | |
492 | :loop | |
493 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
494 | t loop | |
495 | s/-\n.*// | |
496 | ' >$as_me.lineno && | |
497 | chmod +x "$as_me.lineno" || | |
6b2e4ec5 | 498 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
ad6254c5 | 499 | |
4d0c3ed0 AK |
500 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
501 | # already done that, so ensure we don't try to do so again and fall | |
502 | # in an infinite loop. This has already happened in practice. | |
503 | _as_can_reexec=no; export _as_can_reexec | |
f11781c5 AK |
504 | # Don't try to exec as it changes $[0], causing all sort of problems |
505 | # (the dirname of $[0] is not the place where we might find the | |
506 | # original and so on. Autoconf is especially sensitive to this). | |
507 | . "./$as_me.lineno" | |
508 | # Exit status is that of the last command. | |
509 | exit | |
7a197a62 | 510 | } |
ad6254c5 | 511 | |
6b2e4ec5 ZK |
512 | |
513 | # Determine whether it's possible to make 'echo' print without a newline. | |
514 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
515 | # for compatibility with existing Makefiles. | |
f11781c5 AK |
516 | ECHO_C= ECHO_N= ECHO_T= |
517 | case `echo -n x` in #((((( | |
518 | -n*) | |
519 | case `echo 'xy\c'` in | |
520 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
521 | xy) ECHO_C='\c';; | |
522 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
523 | ECHO_T=' ';; | |
524 | esac;; | |
525 | *) | |
526 | ECHO_N='-n';; | |
527 | esac | |
ad6254c5 | 528 | |
6b2e4ec5 ZK |
529 | # For backward compatibility with old third-party macros, we provide |
530 | # the shell variables $as_echo and $as_echo_n. New code should use | |
531 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
532 | as_echo='printf %s\n' | |
533 | as_echo_n='printf %s' | |
534 | ||
f11781c5 AK |
535 | rm -f conf$$ conf$$.exe conf$$.file |
536 | if test -d conf$$.dir; then | |
537 | rm -f conf$$.dir/conf$$.file | |
538 | else | |
539 | rm -f conf$$.dir | |
540 | mkdir conf$$.dir 2>/dev/null | |
7a197a62 | 541 | fi |
f11781c5 AK |
542 | if (echo >conf$$.file) 2>/dev/null; then |
543 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
544 | as_ln_s='ln -s' | |
545 | # ... but there are two gotchas: | |
635df748 ZK |
546 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
547 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. | |
548 | # In both cases, we have to default to 'cp -pR'. | |
f11781c5 | 549 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
4d0c3ed0 | 550 | as_ln_s='cp -pR' |
f11781c5 AK |
551 | elif ln conf$$.file conf$$ 2>/dev/null; then |
552 | as_ln_s=ln | |
553 | else | |
4d0c3ed0 | 554 | as_ln_s='cp -pR' |
f11781c5 | 555 | fi |
7a197a62 | 556 | else |
4d0c3ed0 | 557 | as_ln_s='cp -pR' |
7a197a62 | 558 | fi |
f11781c5 AK |
559 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
560 | rmdir conf$$.dir 2>/dev/null | |
7a197a62 | 561 | |
f11781c5 AK |
562 | if mkdir -p . 2>/dev/null; then |
563 | as_mkdir_p='mkdir -p "$as_dir"' | |
564 | else | |
565 | test -d ./-p && rmdir ./-p | |
566 | as_mkdir_p=false | |
7a197a62 AK |
567 | fi |
568 | ||
4d0c3ed0 AK |
569 | as_test_x='test -x' |
570 | as_executable_p=as_fn_executable_p | |
7a197a62 | 571 | |
f11781c5 | 572 | # Sed expression to map a string onto a valid CPP name. |
635df748 ZK |
573 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
574 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated | |
7a197a62 | 575 | |
f11781c5 | 576 | # Sed expression to map a string onto a valid variable name. |
635df748 ZK |
577 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
578 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated | |
7a197a62 AK |
579 | |
580 | ||
f11781c5 AK |
581 | test -n "$DJDIR" || exec 7<&0 </dev/null |
582 | exec 6>&1 | |
ad6254c5 AK |
583 | |
584 | # Name of the host. | |
f11781c5 | 585 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
ad6254c5 AK |
586 | # so uname gets run too. |
587 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
588 | ||
ad6254c5 AK |
589 | # |
590 | # Initializations. | |
591 | # | |
795ca3e5 | 592 | ac_default_prefix=/usr/local |
7a197a62 | 593 | ac_clean_files= |
ad6254c5 | 594 | ac_config_libobj_dir=. |
7a197a62 | 595 | LIBOBJS= |
ad6254c5 AK |
596 | cross_compiling=no |
597 | subdirs= | |
598 | MFLAGS= | |
599 | MAKEFLAGS= | |
ad6254c5 | 600 | |
ad6254c5 | 601 | # Identity of this package. |
6b2e4ec5 ZK |
602 | PACKAGE_NAME='' |
603 | PACKAGE_TARNAME='' | |
604 | PACKAGE_VERSION='' | |
605 | PACKAGE_STRING='' | |
606 | PACKAGE_BUGREPORT='' | |
607 | PACKAGE_URL='' | |
ad6254c5 AK |
608 | |
609 | ac_unique_file="lib/device/dev-cache.h" | |
610 | # Factoring default headers for most tests. | |
611 | ac_includes_default="\ | |
6b2e4ec5 ZK |
612 | #include <stddef.h> |
613 | #ifdef HAVE_STDIO_H | |
614 | # include <stdio.h> | |
ad6254c5 | 615 | #endif |
6b2e4ec5 | 616 | #ifdef HAVE_STDLIB_H |
ad6254c5 | 617 | # include <stdlib.h> |
ad6254c5 | 618 | #endif |
25fbec5b | 619 | #ifdef HAVE_STRING_H |
ad6254c5 AK |
620 | # include <string.h> |
621 | #endif | |
25fbec5b | 622 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 623 | # include <inttypes.h> |
ad6254c5 | 624 | #endif |
25fbec5b | 625 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
626 | # include <stdint.h> |
627 | #endif | |
6b2e4ec5 ZK |
628 | #ifdef HAVE_STRINGS_H |
629 | # include <strings.h> | |
630 | #endif | |
631 | #ifdef HAVE_SYS_TYPES_H | |
632 | # include <sys/types.h> | |
633 | #endif | |
634 | #ifdef HAVE_SYS_STAT_H | |
635 | # include <sys/stat.h> | |
636 | #endif | |
25fbec5b | 637 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
638 | # include <unistd.h> |
639 | #endif" | |
640 | ||
6b2e4ec5 ZK |
641 | ac_header_c_list= |
642 | ac_func_c_list= | |
795ca3e5 | 643 | ac_default_prefix=/usr |
ec6a6fbe | 644 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 645 | usrsbindir |
ec6a6fbe | 646 | usrlibdir |
a5f46f6a | 647 | udev_prefix |
86ac529b ZK |
648 | udevdir |
649 | tmpfilesdir | |
ec6a6fbe | 650 | tmpdir |
1453ccd5 | 651 | modulesdir |
ec6a6fbe | 652 | missingkernel |
86ac529b | 653 | kernelvsn |
ec6a6fbe AK |
654 | kerneldir |
655 | interface | |
23b059e7 | 656 | WRITE_INSTALL |
679116a9 | 657 | WRITECACHE |
4a90b0c4 ZK |
658 | VDO_LIB |
659 | VDO_INCLUDE | |
660 | VDO | |
acb6c062 | 661 | VALGRIND_POOL |
3f59969c | 662 | USRSBINDIR |
d62448cb | 663 | USE_TRACKING |
0878503f | 664 | UDEV_SYNC |
86ac529b ZK |
665 | UDEV_STATIC_LIBS |
666 | UDEV_RULE_EXEC_DETECTION | |
a5f46f6a | 667 | UDEV_RULES |
f7f0854e | 668 | UDEV_PC |
86ac529b | 669 | UDEV_HAS_BUILTIN_BLKID |
3ba4a195 | 670 | THIN |
2bc0525e | 671 | TESTSUITE_DATA |
86ac529b | 672 | SYSCONFDIR |
ec6a6fbe | 673 | STATIC_LINK |
86ac529b | 674 | STATIC_LDFLAGS |
ec6a6fbe AK |
675 | STATICDIR |
676 | SNAPSHOTS | |
86ac529b | 677 | SILENT_RULES |
8b8b8ac1 | 678 | SHARED_LINK |
86ac529b | 679 | SELINUX_STATIC_LIBS |
f7f0854e | 680 | SELINUX_PC |
3f59969c | 681 | SBINDIR |
92b53a80 | 682 | RT_LIBS |
5987562c | 683 | PYTHON3DIR |
5987562c | 684 | PYTHON3 |
86ac529b | 685 | PYTHON2DIR |
0d22b581 | 686 | PYTHON2 |
f30875db | 687 | PTHREAD_LIBS |
ec6a6fbe | 688 | PKGCONFIG |
5da35d87 | 689 | ODIRECT |
606d0858 | 690 | OCFDIR |
37ddf259 | 691 | OCF |
86ac529b | 692 | M_LIBS |
ec6a6fbe | 693 | MIRRORS |
1b59f5a9 | 694 | MANGLING |
86ac529b ZK |
695 | LVRESIZE_FS_HELPER_PATH |
696 | LVM_VERSION | |
ec6a6fbe AK |
697 | LVM_RELEASE_DATE |
698 | LVM_RELEASE | |
d2c11605 | 699 | LVM_PATH |
ec6a6fbe AK |
700 | LVM_PATCHLEVEL |
701 | LVM_MINOR | |
702 | LVM_MAJOR | |
bf456146 | 703 | LVM_LIBAPI |
86ac529b ZK |
704 | LVMPOLLD_PIDFILE |
705 | LVMLOCKD_PIDFILE | |
706 | LVMIMPORTVDO_PATH | |
707 | LVMIMPORTVDO | |
0627716f | 708 | LVM2CMD_LIB |
ec6a6fbe AK |
709 | LIB_SUFFIX |
710 | LDDEPS | |
711 | JOBS | |
ec6a6fbe | 712 | INTL |
679116a9 | 713 | INTEGRITY |
9ed518f1 | 714 | FSADM_PATH |
ec6a6fbe | 715 | FSADM |
bf09a320 | 716 | ELDFLAGS |
ec6a6fbe | 717 | DM_LIB_PATCHLEVEL |
86ac529b | 718 | DMEVENTD_PIDFILE |
d1e8046f | 719 | DMEVENTD_PATH |
19a2c6e0 | 720 | DL_LIBS |
ec6a6fbe | 721 | DEVMAPPER |
725136b5 | 722 | DEFAULT_USE_LVMPOLLD |
86ac529b | 723 | DEFAULT_USE_LVMLOCKD |
17baeb65 | 724 | DEFAULT_USE_DEVICES_FILE |
20e336f2 | 725 | DEFAULT_USE_BLKID_WIPING |
3f59969c | 726 | DEFAULT_SYS_LOCK_DIR |
e6e64748 ZK |
727 | DEFAULT_SYS_DIR |
728 | DEFAULT_SPARSE_SEGTYPE | |
b1f08e51 | 729 | DEFAULT_RUN_DIR |
e6e64748 ZK |
730 | DEFAULT_RAID10_SEGTYPE |
731 | DEFAULT_PROFILE_SUBDIR | |
569dd5d0 | 732 | DEFAULT_PROC_DIR |
2b09def6 | 733 | DEFAULT_PID_DIR |
e6e64748 | 734 | DEFAULT_MIRROR_SEGTYPE |
3399ae32 | 735 | DEFAULT_LOCK_DIR |
cd9b2b32 | 736 | DEFAULT_EVENT_ACTIVATION |
3da18a06 | 737 | DEFAULT_DMEVENTD_EXIT_ON_PATH |
e6e64748 | 738 | DEFAULT_DM_RUN_DIR |
3399ae32 AK |
739 | DEFAULT_CACHE_SUBDIR |
740 | DEFAULT_BACKUP_SUBDIR | |
741 | DEFAULT_ARCHIVE_SUBDIR | |
ec6a6fbe AK |
742 | DEBUG |
743 | COPTIMISE_FLAG | |
e2997b73 | 744 | CONFDIR |
86ac529b | 745 | CMIRRORD_PIDFILE |
ec6a6fbe | 746 | CMDLIB |
ec6a6fbe AK |
747 | CLDWHOLEARCHIVE |
748 | CLDNOWHOLEARCHIVE | |
749 | CLDFLAGS | |
a0d64554 | 750 | CACHE |
86ac529b ZK |
751 | BUILD_LVMPOLLD |
752 | BUILD_LVMLOCKD | |
753 | BUILD_LVMDBUSD | |
754 | BUILD_LOCKDSANLOCK | |
07cd341b | 755 | BUILD_LOCKDIDM |
07d41de7 | 756 | BUILD_LOCKDDLM_CONTROL |
c923dee8 | 757 | BUILD_LOCKDDLM |
86ac529b | 758 | BUILD_DMFILEMAPD |
ec6a6fbe | 759 | BUILD_DMEVENTD |
66fd4529 | 760 | BUILD_CMIRRORD |
86ac529b | 761 | BLKID_STATIC_LIBS |
9bfc0be4 | 762 | BLKID_PC |
86ac529b | 763 | BLKDEACTIVATE |
b73e1cd4 ZK |
764 | READLINE_LIBS |
765 | READLINE_CFLAGS | |
86ac529b ZK |
766 | AIO_LIBS |
767 | AIO_CFLAGS | |
ec6a6fbe | 768 | MODPROBE_CMD |
b681b774 ZK |
769 | systemdutildir |
770 | systemdsystemunitdir | |
ec6a6fbe | 771 | MSGFMT |
65534242 ZK |
772 | EDITLINE_LIBS |
773 | EDITLINE_CFLAGS | |
86ac529b ZK |
774 | SELINUX_LIBS |
775 | SELINUX_CFLAGS | |
5987562c | 776 | PYTHON3_CONFIG |
5987562c AK |
777 | pkgpyexecdir |
778 | pyexecdir | |
779 | pkgpythondir | |
780 | pythondir | |
5987562c AK |
781 | PYTHON_EXEC_PREFIX |
782 | PYTHON_PREFIX | |
6b2e4ec5 | 783 | PYTHON_PLATFORM |
5987562c | 784 | PYTHON_VERSION |
ee3cfa41 | 785 | PYTHON |
0627716f ZK |
786 | LIBSYSTEMD_LIBS |
787 | LIBSYSTEMD_CFLAGS | |
d93275eb PR |
788 | UDEV_LIBS |
789 | UDEV_CFLAGS | |
5ac4b662 MC |
790 | BLKID_LIBS |
791 | BLKID_CFLAGS | |
21edfc4a | 792 | SYSTEMD_RUN_CMD |
a861f042 ZK |
793 | LIBSEAGATEILM_LIBS |
794 | LIBSEAGATEILM_CFLAGS | |
795 | LIBDLMCONTROL_LIBS | |
796 | LIBDLMCONTROL_CFLAGS | |
797 | LIBDLM_LIBS | |
798 | LIBDLM_CFLAGS | |
799 | LIBSANLOCKCLIENT_LIBS | |
800 | LIBSANLOCKCLIENT_CFLAGS | |
ee3cfa41 AK |
801 | VALGRIND_LIBS |
802 | VALGRIND_CFLAGS | |
fd4728e1 | 803 | GENPNG |
ec6a6fbe AK |
804 | GENHTML |
805 | LCOV | |
0982c5c7 | 806 | HAVE_WSYNCNAND |
7943a131 | 807 | HAVE_WCLOBBERED |
d95751cb | 808 | HAVE_WJUMP |
e2997b73 AK |
809 | CPG_LIBS |
810 | CPG_CFLAGS | |
f11781c5 AK |
811 | PKG_CONFIG_LIBDIR |
812 | PKG_CONFIG_PATH | |
e2997b73 | 813 | PKG_CONFIG |
4a90b0c4 | 814 | VDO_FORMAT_CMD |
39cb8aa3 ZK |
815 | CACHE_RESTORE_CMD |
816 | CACHE_REPAIR_CMD | |
817 | CACHE_DUMP_CMD | |
818 | CACHE_CHECK_CMD | |
b3539907 | 819 | THIN_RESTORE_CMD |
22fc8098 ZK |
820 | THIN_REPAIR_CMD |
821 | THIN_DUMP_CMD | |
f61cacad | 822 | THIN_CHECK_CMD |
6c6bcc00 PR |
823 | HAVE_FULL_RELRO |
824 | HAVE_PIE | |
ec6a6fbe | 825 | POW_LIB |
ec6a6fbe | 826 | ALLOCA |
9ed518f1 | 827 | LIBOBJS |
6118b0fb ZK |
828 | SORT |
829 | WC | |
5987562c | 830 | CHMOD |
ec6a6fbe AK |
831 | CSCOPE_CMD |
832 | CFLOW_CMD | |
37cd8f96 | 833 | AR |
ae916f77 | 834 | READELF |
ec6a6fbe AK |
835 | RANLIB |
836 | MKDIR_P | |
837 | SET_MAKE | |
635df748 ZK |
838 | EGREP |
839 | GREP | |
ec6a6fbe AK |
840 | LN_S |
841 | INSTALL_DATA | |
842 | INSTALL_SCRIPT | |
843 | INSTALL_PROGRAM | |
acb6c062 PR |
844 | ac_ct_CXX |
845 | CXXFLAGS | |
846 | CXX | |
ec6a6fbe AK |
847 | OBJEXT |
848 | EXEEXT | |
849 | ac_ct_CC | |
850 | CPPFLAGS | |
851 | LDFLAGS | |
852 | CFLAGS | |
853 | CC | |
854 | AWK | |
855 | SED | |
856 | target_os | |
857 | target_vendor | |
858 | target_cpu | |
859 | target | |
860 | host_os | |
861 | host_vendor | |
862 | host_cpu | |
863 | host | |
864 | build_os | |
865 | build_vendor | |
866 | build_cpu | |
867 | build | |
868 | target_alias | |
869 | host_alias | |
870 | build_alias | |
871 | LIBS | |
872 | ECHO_T | |
873 | ECHO_N | |
874 | ECHO_C | |
875 | DEFS | |
876 | mandir | |
877 | localedir | |
878 | libdir | |
879 | psdir | |
880 | pdfdir | |
881 | dvidir | |
882 | htmldir | |
883 | infodir | |
884 | docdir | |
885 | oldincludedir | |
886 | includedir | |
09933553 | 887 | runstatedir |
ec6a6fbe AK |
888 | localstatedir |
889 | sharedstatedir | |
890 | sysconfdir | |
891 | datadir | |
892 | datarootdir | |
893 | libexecdir | |
894 | sbindir | |
895 | bindir | |
896 | program_transform_name | |
897 | prefix | |
898 | exec_prefix | |
f11781c5 | 899 | PACKAGE_URL |
ec6a6fbe AK |
900 | PACKAGE_BUGREPORT |
901 | PACKAGE_STRING | |
902 | PACKAGE_VERSION | |
903 | PACKAGE_TARNAME | |
904 | PACKAGE_NAME | |
905 | PATH_SEPARATOR | |
906 | SHELL' | |
ad6254c5 | 907 | ac_subst_files='' |
ec6a6fbe AK |
908 | ac_user_opts=' |
909 | enable_option_checking | |
d62448cb | 910 | enable_dependency_tracking |
fa58fc32 | 911 | enable_silent_rules |
ec6a6fbe | 912 | enable_static_link |
8b8b8ac1 ZK |
913 | enable_shared |
914 | with_blkid | |
915 | with_systemd | |
916 | with_udev | |
ec6a6fbe AK |
917 | with_user |
918 | with_group | |
919 | with_device_uid | |
920 | with_device_gid | |
921 | with_device_mode | |
d0df875d | 922 | with_device_nodes_on |
b73e1cd4 | 923 | with_default_use_devices_file |
c64d7cd3 | 924 | with_default_name_mangling |
cd9b2b32 | 925 | with_default_event_activation |
ec6a6fbe AK |
926 | with_snapshots |
927 | with_mirrors | |
e6e64748 | 928 | with_default_mirror_segtype |
f80e7bb6 | 929 | with_default_raid10_segtype |
e6e64748 | 930 | with_default_sparse_segtype |
3ba4a195 | 931 | with_thin |
f61cacad | 932 | with_thin_check |
22fc8098 ZK |
933 | with_thin_dump |
934 | with_thin_repair | |
b3539907 | 935 | with_thin_restore |
4d0c3ed0 | 936 | enable_thin_check_needs_check |
90bbed32 | 937 | with_cache |
39cb8aa3 ZK |
938 | with_cache_check |
939 | with_cache_dump | |
940 | with_cache_repair | |
941 | with_cache_restore | |
0ac20a8f | 942 | enable_cache_check_needs_check |
4a90b0c4 ZK |
943 | with_vdo |
944 | with_vdo_format | |
3a557dcf | 945 | with_writecache |
d9e8895a | 946 | with_integrity |
ec6a6fbe | 947 | enable_readline |
65534242 | 948 | enable_editline |
ec6a6fbe | 949 | enable_realtime |
37ddf259 | 950 | enable_ocf |
606d0858 | 951 | with_ocfdir |
5723db01 PR |
952 | with_default_pid_dir |
953 | with_default_dm_run_dir | |
954 | with_default_run_dir | |
66fd4529 AK |
955 | enable_cmirrord |
956 | with_cmirrord_pidfile | |
ec6a6fbe AK |
957 | enable_debug |
958 | with_optimisation | |
1cedbaf1 | 959 | with_symvers |
ec6a6fbe | 960 | enable_profiling |
d1e8046f | 961 | enable_valgrind_pool |
ec6a6fbe | 962 | enable_devmapper |
c923dee8 | 963 | enable_lvmpolld |
658d524d AK |
964 | enable_lvmlockd_sanlock |
965 | enable_lvmlockd_dlm | |
07d41de7 | 966 | enable_lvmlockd_dlmcontrol |
7a8b7b4a | 967 | enable_lvmlockd_idm |
c923dee8 AK |
968 | enable_use_lvmlockd |
969 | with_lvmlockd_pidfile | |
725136b5 | 970 | enable_use_lvmpolld |
e587b067 | 971 | with_lvmpolld_pidfile |
b73e1cd4 | 972 | enable_systemd_journal |
5ac4b662 | 973 | enable_app_machineid |
21edfc4a | 974 | with_systemd_run |
9bfc0be4 | 975 | enable_blkid_wiping |
a5f46f6a AK |
976 | enable_udev_sync |
977 | enable_udev_rules | |
5723db01 | 978 | enable_udev_rule_exec_detection |
95eaa683 | 979 | enable_units_compat |
ec6a6fbe AK |
980 | enable_ioctl |
981 | enable_o_direct | |
5987562c | 982 | enable_dbus_service |
0627716f | 983 | enable_notify_dbus |
6b2e4ec5 ZK |
984 | with_python_sys_prefix |
985 | with_python_prefix | |
986 | with_python_exec_prefix | |
ec6a6fbe | 987 | enable_pkgconfig |
23b059e7 | 988 | enable_write_install |
ec6a6fbe | 989 | enable_fsadm |
12ba43cc | 990 | enable_lvmimportvdo |
a70d6b35 | 991 | enable_blkdeactivate |
ec6a6fbe | 992 | enable_dmeventd |
0627716f | 993 | enable_cmdlib |
a7cf55c6 | 994 | enable_dmfilemapd |
ec6a6fbe | 995 | enable_selinux |
ae96a43f | 996 | enable_blkzeroout |
ec6a6fbe AK |
997 | enable_nls |
998 | with_localedir | |
999 | with_confdir | |
1000 | with_staticdir | |
1001 | with_usrlibdir | |
1002 | with_usrsbindir | |
a2d33cdf | 1003 | with_libexecdir |
a5f46f6a | 1004 | with_udev_prefix |
78ce7acc | 1005 | with_udevdir |
e587cb6a | 1006 | with_systemdsystemunitdir |
4417a8bd | 1007 | with_tmpfilesdir |
1453ccd5 | 1008 | with_modulesdir |
ec6a6fbe AK |
1009 | with_dmeventd_pidfile |
1010 | with_dmeventd_path | |
3da18a06 | 1011 | with_dmeventd_exit_on_path |
3399ae32 | 1012 | with_default_system_dir |
f89a8b81 | 1013 | with_default_profile_subdir |
3399ae32 AK |
1014 | with_default_archive_subdir |
1015 | with_default_backup_subdir | |
1016 | with_default_cache_subdir | |
1017 | with_default_locking_dir | |
ec6a6fbe AK |
1018 | with_interface |
1019 | ' | |
7a197a62 AK |
1020 | ac_precious_vars='build_alias |
1021 | host_alias | |
1022 | target_alias | |
1023 | CC | |
1024 | CFLAGS | |
1025 | LDFLAGS | |
25fbec5b | 1026 | LIBS |
7a197a62 | 1027 | CPPFLAGS |
acb6c062 PR |
1028 | CXX |
1029 | CXXFLAGS | |
1030 | CCC | |
e2997b73 | 1031 | PKG_CONFIG |
f11781c5 AK |
1032 | PKG_CONFIG_PATH |
1033 | PKG_CONFIG_LIBDIR | |
e2997b73 | 1034 | CPG_CFLAGS |
a946372e | 1035 | CPG_LIBS |
ee3cfa41 AK |
1036 | VALGRIND_CFLAGS |
1037 | VALGRIND_LIBS | |
a861f042 ZK |
1038 | LIBSANLOCKCLIENT_CFLAGS |
1039 | LIBSANLOCKCLIENT_LIBS | |
1040 | LIBDLM_CFLAGS | |
1041 | LIBDLM_LIBS | |
1042 | LIBDLMCONTROL_CFLAGS | |
1043 | LIBDLMCONTROL_LIBS | |
1044 | LIBSEAGATEILM_CFLAGS | |
1045 | LIBSEAGATEILM_LIBS | |
c60bac46 ZK |
1046 | BLKID_CFLAGS |
1047 | BLKID_LIBS | |
d93275eb | 1048 | UDEV_CFLAGS |
5987562c | 1049 | UDEV_LIBS |
0627716f ZK |
1050 | LIBSYSTEMD_CFLAGS |
1051 | LIBSYSTEMD_LIBS | |
65534242 | 1052 | PYTHON |
86ac529b ZK |
1053 | SELINUX_CFLAGS |
1054 | SELINUX_LIBS | |
65534242 | 1055 | EDITLINE_CFLAGS |
b73e1cd4 | 1056 | EDITLINE_LIBS |
b681b774 ZK |
1057 | systemdsystemunitdir |
1058 | systemdutildir | |
86ac529b ZK |
1059 | AIO_CFLAGS |
1060 | AIO_LIBS | |
b73e1cd4 ZK |
1061 | READLINE_CFLAGS |
1062 | READLINE_LIBS' | |
7a197a62 | 1063 | |
795ca3e5 AK |
1064 | |
1065 | # Initialize some variables set by options. | |
ad6254c5 AK |
1066 | ac_init_help= |
1067 | ac_init_version=false | |
ec6a6fbe AK |
1068 | ac_unrecognized_opts= |
1069 | ac_unrecognized_sep= | |
795ca3e5 AK |
1070 | # The variables have the same names as the options, with |
1071 | # dashes changed to underlines. | |
ad6254c5 | 1072 | cache_file=/dev/null |
795ca3e5 | 1073 | exec_prefix=NONE |
795ca3e5 | 1074 | no_create= |
795ca3e5 AK |
1075 | no_recursion= |
1076 | prefix=NONE | |
1077 | program_prefix=NONE | |
1078 | program_suffix=NONE | |
1079 | program_transform_name=s,x,x, | |
1080 | silent= | |
1081 | site= | |
1082 | srcdir= | |
795ca3e5 AK |
1083 | verbose= |
1084 | x_includes=NONE | |
1085 | x_libraries=NONE | |
ad6254c5 AK |
1086 | |
1087 | # Installation directory options. | |
1088 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1089 | # and all the variables that are supposed to be based on exec_prefix | |
1090 | # by default will actually change. | |
1091 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 1092 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
1093 | bindir='${exec_prefix}/bin' |
1094 | sbindir='${exec_prefix}/sbin' | |
1095 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
1096 | datarootdir='${prefix}/share' |
1097 | datadir='${datarootdir}' | |
795ca3e5 AK |
1098 | sysconfdir='${prefix}/etc' |
1099 | sharedstatedir='${prefix}/com' | |
1100 | localstatedir='${prefix}/var' | |
09933553 | 1101 | runstatedir='${localstatedir}/run' |
795ca3e5 AK |
1102 | includedir='${prefix}/include' |
1103 | oldincludedir='/usr/include' | |
7a197a62 AK |
1104 | docdir='${datarootdir}/doc/${PACKAGE}' |
1105 | infodir='${datarootdir}/info' | |
1106 | htmldir='${docdir}' | |
1107 | dvidir='${docdir}' | |
1108 | pdfdir='${docdir}' | |
1109 | psdir='${docdir}' | |
1110 | libdir='${exec_prefix}/lib' | |
1111 | localedir='${datarootdir}/locale' | |
1112 | mandir='${datarootdir}/man' | |
795ca3e5 | 1113 | |
795ca3e5 | 1114 | ac_prev= |
7a197a62 | 1115 | ac_dashdash= |
795ca3e5 AK |
1116 | for ac_option |
1117 | do | |
795ca3e5 AK |
1118 | # If the previous option needs an argument, assign it. |
1119 | if test -n "$ac_prev"; then | |
7a197a62 | 1120 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
1121 | ac_prev= |
1122 | continue | |
1123 | fi | |
1124 | ||
7a197a62 | 1125 | case $ac_option in |
4d0c3ed0 AK |
1126 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1127 | *=) ac_optarg= ;; | |
1128 | *) ac_optarg=yes ;; | |
7a197a62 | 1129 | esac |
795ca3e5 | 1130 | |
7a197a62 AK |
1131 | case $ac_dashdash$ac_option in |
1132 | --) | |
1133 | ac_dashdash=yes ;; | |
795ca3e5 AK |
1134 | |
1135 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1136 | ac_prev=bindir ;; | |
1137 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 1138 | bindir=$ac_optarg ;; |
795ca3e5 AK |
1139 | |
1140 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 1141 | ac_prev=build_alias ;; |
795ca3e5 | 1142 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 1143 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
1144 | |
1145 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1146 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1147 | ac_prev=cache_file ;; | |
1148 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1149 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
1150 | cache_file=$ac_optarg ;; |
1151 | ||
1152 | --config-cache | -C) | |
1153 | cache_file=config.cache ;; | |
795ca3e5 | 1154 | |
7a197a62 | 1155 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 1156 | ac_prev=datadir ;; |
7a197a62 | 1157 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 1158 | datadir=$ac_optarg ;; |
795ca3e5 | 1159 | |
7a197a62 AK |
1160 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1161 | | --dataroo | --dataro | --datar) | |
1162 | ac_prev=datarootdir ;; | |
1163 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1164 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1165 | datarootdir=$ac_optarg ;; | |
1166 | ||
795ca3e5 | 1167 | -disable-* | --disable-*) |
ec6a6fbe | 1168 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1169 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1170 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
635df748 | 1171 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
ec6a6fbe | 1172 | ac_useropt_orig=$ac_useropt |
6b2e4ec5 | 1173 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
ec6a6fbe AK |
1174 | case $ac_user_opts in |
1175 | *" | |
1176 | "enable_$ac_useropt" | |
1177 | "*) ;; | |
1178 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1179 | ac_unrecognized_sep=', ';; | |
1180 | esac | |
1181 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1182 | |
1183 | -docdir | --docdir | --docdi | --doc | --do) | |
1184 | ac_prev=docdir ;; | |
1185 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1186 | docdir=$ac_optarg ;; | |
1187 | ||
1188 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1189 | ac_prev=dvidir ;; | |
1190 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1191 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1192 | |
1193 | -enable-* | --enable-*) | |
ec6a6fbe | 1194 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1195 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1196 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
635df748 | 1197 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
ec6a6fbe | 1198 | ac_useropt_orig=$ac_useropt |
6b2e4ec5 | 1199 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
ec6a6fbe AK |
1200 | case $ac_user_opts in |
1201 | *" | |
1202 | "enable_$ac_useropt" | |
1203 | "*) ;; | |
1204 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1205 | ac_unrecognized_sep=', ';; | |
1206 | esac | |
1207 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1208 | |
1209 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1210 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1211 | | --exec | --exe | --ex) | |
1212 | ac_prev=exec_prefix ;; | |
1213 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1214 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1215 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1216 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1217 | |
1218 | -gas | --gas | --ga | --g) | |
1219 | # Obsolete; use --with-gas. | |
1220 | with_gas=yes ;; | |
1221 | ||
ad6254c5 AK |
1222 | -help | --help | --hel | --he | -h) |
1223 | ac_init_help=long ;; | |
1224 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1225 | ac_init_help=recursive ;; | |
1226 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1227 | ac_init_help=short ;; | |
795ca3e5 AK |
1228 | |
1229 | -host | --host | --hos | --ho) | |
ad6254c5 | 1230 | ac_prev=host_alias ;; |
795ca3e5 | 1231 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1232 | host_alias=$ac_optarg ;; |
795ca3e5 | 1233 | |
7a197a62 AK |
1234 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1235 | ac_prev=htmldir ;; | |
1236 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1237 | | --ht=*) | |
1238 | htmldir=$ac_optarg ;; | |
1239 | ||
795ca3e5 AK |
1240 | -includedir | --includedir | --includedi | --included | --include \ |
1241 | | --includ | --inclu | --incl | --inc) | |
1242 | ac_prev=includedir ;; | |
1243 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1244 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1245 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1246 | |
1247 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1248 | ac_prev=infodir ;; | |
1249 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1250 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1251 | |
1252 | -libdir | --libdir | --libdi | --libd) | |
1253 | ac_prev=libdir ;; | |
1254 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1255 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1256 | |
1257 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1258 | | --libexe | --libex | --libe) | |
1259 | ac_prev=libexecdir ;; | |
1260 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1261 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1262 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1263 | |
7a197a62 AK |
1264 | -localedir | --localedir | --localedi | --localed | --locale) |
1265 | ac_prev=localedir ;; | |
1266 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1267 | localedir=$ac_optarg ;; | |
1268 | ||
795ca3e5 | 1269 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1270 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1271 | ac_prev=localstatedir ;; |
1272 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1273 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1274 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1275 | |
1276 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1277 | ac_prev=mandir ;; | |
1278 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1279 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1280 | |
1281 | -nfp | --nfp | --nf) | |
1282 | # Obsolete; use --without-fp. | |
1283 | with_fp=no ;; | |
1284 | ||
1285 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1286 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1287 | no_create=yes ;; |
1288 | ||
1289 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1290 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1291 | no_recursion=yes ;; | |
1292 | ||
1293 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1294 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1295 | | --oldin | --oldi | --old | --ol | --o) | |
1296 | ac_prev=oldincludedir ;; | |
1297 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1298 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1299 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1300 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1301 | |
1302 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1303 | ac_prev=prefix ;; | |
1304 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1305 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1306 | |
1307 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1308 | | --program-pre | --program-pr | --program-p) | |
1309 | ac_prev=program_prefix ;; | |
1310 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1311 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1312 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1313 | |
1314 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1315 | | --program-suf | --program-su | --program-s) | |
1316 | ac_prev=program_suffix ;; | |
1317 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1318 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1319 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1320 | |
1321 | -program-transform-name | --program-transform-name \ | |
1322 | | --program-transform-nam | --program-transform-na \ | |
1323 | | --program-transform-n | --program-transform- \ | |
1324 | | --program-transform | --program-transfor \ | |
1325 | | --program-transfo | --program-transf \ | |
1326 | | --program-trans | --program-tran \ | |
1327 | | --progr-tra | --program-tr | --program-t) | |
1328 | ac_prev=program_transform_name ;; | |
1329 | -program-transform-name=* | --program-transform-name=* \ | |
1330 | | --program-transform-nam=* | --program-transform-na=* \ | |
1331 | | --program-transform-n=* | --program-transform-=* \ | |
1332 | | --program-transform=* | --program-transfor=* \ | |
1333 | | --program-transfo=* | --program-transf=* \ | |
1334 | | --program-trans=* | --program-tran=* \ | |
1335 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1336 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1337 | |
7a197a62 AK |
1338 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1339 | ac_prev=pdfdir ;; | |
1340 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1341 | pdfdir=$ac_optarg ;; | |
1342 | ||
1343 | -psdir | --psdir | --psdi | --psd | --ps) | |
1344 | ac_prev=psdir ;; | |
1345 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1346 | psdir=$ac_optarg ;; | |
1347 | ||
795ca3e5 AK |
1348 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1349 | | -silent | --silent | --silen | --sile | --sil) | |
1350 | silent=yes ;; | |
1351 | ||
09933553 ZK |
1352 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1353 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1354 | | --run | --ru | --r) | |
1355 | ac_prev=runstatedir ;; | |
1356 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1357 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1358 | | --run=* | --ru=* | --r=*) | |
1359 | runstatedir=$ac_optarg ;; | |
1360 | ||
795ca3e5 AK |
1361 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1362 | ac_prev=sbindir ;; | |
1363 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1364 | | --sbi=* | --sb=*) | |
ad6254c5 | 1365 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1366 | |
1367 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1368 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1369 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1370 | | --sha | --sh) | |
1371 | ac_prev=sharedstatedir ;; | |
1372 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1373 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1374 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1375 | | --sha=* | --sh=*) | |
ad6254c5 | 1376 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1377 | |
1378 | -site | --site | --sit) | |
1379 | ac_prev=site ;; | |
1380 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1381 | site=$ac_optarg ;; |
795ca3e5 AK |
1382 | |
1383 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1384 | ac_prev=srcdir ;; | |
1385 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1386 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1387 | |
1388 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1389 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1390 | ac_prev=sysconfdir ;; | |
1391 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1392 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1393 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1394 | |
1395 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1396 | ac_prev=target_alias ;; |
795ca3e5 | 1397 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1398 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1399 | |
1400 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1401 | verbose=yes ;; | |
1402 | ||
ad6254c5 AK |
1403 | -version | --version | --versio | --versi | --vers | -V) |
1404 | ac_init_version=: ;; | |
795ca3e5 AK |
1405 | |
1406 | -with-* | --with-*) | |
ec6a6fbe | 1407 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1408 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1409 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
635df748 | 1410 | as_fn_error $? "invalid package name: '$ac_useropt'" |
ec6a6fbe | 1411 | ac_useropt_orig=$ac_useropt |
6b2e4ec5 | 1412 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
ec6a6fbe AK |
1413 | case $ac_user_opts in |
1414 | *" | |
1415 | "with_$ac_useropt" | |
1416 | "*) ;; | |
1417 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1418 | ac_unrecognized_sep=', ';; | |
1419 | esac | |
1420 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1421 | |
1422 | -without-* | --without-*) | |
ec6a6fbe | 1423 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1424 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1425 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
635df748 | 1426 | as_fn_error $? "invalid package name: '$ac_useropt'" |
ec6a6fbe | 1427 | ac_useropt_orig=$ac_useropt |
6b2e4ec5 | 1428 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
ec6a6fbe AK |
1429 | case $ac_user_opts in |
1430 | *" | |
1431 | "with_$ac_useropt" | |
1432 | "*) ;; | |
1433 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1434 | ac_unrecognized_sep=', ';; | |
1435 | esac | |
1436 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1437 | |
1438 | --x) | |
1439 | # Obsolete; use --with-x. | |
1440 | with_x=yes ;; | |
1441 | ||
1442 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1443 | | --x-incl | --x-inc | --x-in | --x-i) | |
1444 | ac_prev=x_includes ;; | |
1445 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1446 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1447 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1448 | |
1449 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1450 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1451 | ac_prev=x_libraries ;; | |
1452 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1453 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1454 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1455 | |
635df748 ZK |
1456 | -*) as_fn_error $? "unrecognized option: '$ac_option' |
1457 | Try '$0 --help' for more information" | |
795ca3e5 AK |
1458 | ;; |
1459 | ||
ad6254c5 AK |
1460 | *=*) |
1461 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1462 | # Reject names that are not valid shell variable names. | |
f11781c5 AK |
1463 | case $ac_envvar in #( |
1464 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
635df748 | 1465 | as_fn_error $? "invalid variable name: '$ac_envvar'" ;; |
f11781c5 | 1466 | esac |
7a197a62 | 1467 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1468 | export $ac_envvar ;; |
1469 | ||
795ca3e5 | 1470 | *) |
ad6254c5 | 1471 | # FIXME: should be removed in autoconf 3.0. |
6b2e4ec5 | 1472 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1473 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
6b2e4ec5 | 1474 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
4d0c3ed0 | 1475 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
795ca3e5 AK |
1476 | ;; |
1477 | ||
1478 | esac | |
1479 | done | |
1480 | ||
1481 | if test -n "$ac_prev"; then | |
ad6254c5 | 1482 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f11781c5 | 1483 | as_fn_error $? "missing argument to $ac_option" |
795ca3e5 | 1484 | fi |
795ca3e5 | 1485 | |
ec6a6fbe AK |
1486 | if test -n "$ac_unrecognized_opts"; then |
1487 | case $enable_option_checking in | |
1488 | no) ;; | |
f11781c5 | 1489 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
6b2e4ec5 | 1490 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
ec6a6fbe AK |
1491 | esac |
1492 | fi | |
1493 | ||
1494 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1495 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1496 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1497 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
09933553 | 1498 | libdir localedir mandir runstatedir |
795ca3e5 | 1499 | do |
7a197a62 | 1500 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1501 | # Remove trailing slashes. |
1502 | case $ac_val in | |
1503 | */ ) | |
1504 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1505 | eval $ac_var=\$ac_val;; | |
1506 | esac | |
1507 | # Be sure to have absolute directory names. | |
ad6254c5 | 1508 | case $ac_val in |
7a197a62 AK |
1509 | [\\/$]* | ?:[\\/]* ) continue;; |
1510 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1511 | esac |
f11781c5 | 1512 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
795ca3e5 AK |
1513 | done |
1514 | ||
635df748 | 1515 | # There might be people who depend on the old broken behavior: '$host' |
ad6254c5 AK |
1516 | # used to hold the argument of --host etc. |
1517 | # FIXME: To remove some day. | |
1518 | build=$build_alias | |
1519 | host=$host_alias | |
1520 | target=$target_alias | |
1521 | ||
1522 | # FIXME: To remove some day. | |
1523 | if test "x$host_alias" != x; then | |
1524 | if test "x$build_alias" = x; then | |
1525 | cross_compiling=maybe | |
ad6254c5 AK |
1526 | elif test "x$build_alias" != "x$host_alias"; then |
1527 | cross_compiling=yes | |
1528 | fi | |
1529 | fi | |
8106cdd5 | 1530 | |
ad6254c5 AK |
1531 | ac_tool_prefix= |
1532 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1533 | ||
1534 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1535 | |
795ca3e5 | 1536 | |
7a197a62 AK |
1537 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1538 | ac_ls_di=`ls -di .` && | |
1539 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f11781c5 | 1540 | as_fn_error $? "working directory cannot be determined" |
7a197a62 | 1541 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f11781c5 | 1542 | as_fn_error $? "pwd does not report name of working directory" |
7a197a62 AK |
1543 | |
1544 | ||
795ca3e5 AK |
1545 | # Find the source files, if location was not specified. |
1546 | if test -z "$srcdir"; then | |
1547 | ac_srcdir_defaulted=yes | |
7a197a62 | 1548 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1549 | ac_confdir=`$as_dirname -- "$as_myself" || |
1550 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1551 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1552 | X"$as_myself" : 'X\(//\)$' \| \ | |
1553 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
6b2e4ec5 | 1554 | printf "%s\n" X"$as_myself" | |
7a197a62 AK |
1555 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1556 | s//\1/ | |
1557 | q | |
1558 | } | |
1559 | /^X\(\/\/\)[^/].*/{ | |
1560 | s//\1/ | |
1561 | q | |
1562 | } | |
1563 | /^X\(\/\/\)$/{ | |
1564 | s//\1/ | |
1565 | q | |
1566 | } | |
1567 | /^X\(\/\).*/{ | |
1568 | s//\1/ | |
1569 | q | |
1570 | } | |
1571 | s/.*/./; q'` | |
795ca3e5 | 1572 | srcdir=$ac_confdir |
7a197a62 | 1573 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1574 | srcdir=.. |
1575 | fi | |
1576 | else | |
1577 | ac_srcdir_defaulted=no | |
1578 | fi | |
7a197a62 AK |
1579 | if test ! -r "$srcdir/$ac_unique_file"; then |
1580 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f11781c5 | 1581 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
795ca3e5 | 1582 | fi |
635df748 | 1583 | ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" |
7a197a62 | 1584 | ac_abs_confdir=`( |
f11781c5 | 1585 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7a197a62 AK |
1586 | pwd)` |
1587 | # When building in place, set srcdir=. | |
1588 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1589 | srcdir=. | |
1590 | fi | |
1591 | # Remove unnecessary trailing slashes from srcdir. | |
1592 | # Double slashes in file names in object file debugging info | |
1593 | # mess up M-x gdb in Emacs. | |
1594 | case $srcdir in | |
1595 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1596 | esac | |
1597 | for ac_var in $ac_precious_vars; do | |
1598 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1599 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1600 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1601 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1602 | done | |
ad6254c5 AK |
1603 | |
1604 | # | |
1605 | # Report the --help message. | |
1606 | # | |
1607 | if test "$ac_init_help" = "long"; then | |
1608 | # Omit some internal or obsolete options to make the list less imposing. | |
1609 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1610 | cat <<_ACEOF | |
635df748 | 1611 | 'configure' configures this package to adapt to many kinds of systems. |
ad6254c5 AK |
1612 | |
1613 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1614 | ||
1615 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1616 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1617 | ||
1618 | Defaults for the options are specified in brackets. | |
1619 | ||
1620 | Configuration: | |
1621 | -h, --help display this help and exit | |
1622 | --help=short display options specific to this package | |
1623 | --help=recursive display the short help of all the included packages | |
1624 | -V, --version display version information and exit | |
635df748 | 1625 | -q, --quiet, --silent do not print 'checking ...' messages |
ad6254c5 | 1626 | --cache-file=FILE cache test results in FILE [disabled] |
635df748 | 1627 | -C, --config-cache alias for '--cache-file=config.cache' |
ad6254c5 | 1628 | -n, --no-create do not create output files |
635df748 | 1629 | --srcdir=DIR find the sources in DIR [configure dir or '..'] |
ad6254c5 | 1630 | |
ad6254c5 AK |
1631 | Installation directories: |
1632 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1633 | [$ac_default_prefix] |
ad6254c5 | 1634 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1635 | [PREFIX] |
ad6254c5 | 1636 | |
635df748 ZK |
1637 | By default, 'make install' will install all the files in |
1638 | '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify | |
1639 | an installation prefix other than '$ac_default_prefix' using '--prefix', | |
1640 | for instance '--prefix=\$HOME'. | |
ad6254c5 AK |
1641 | |
1642 | For better control, use the options below. | |
1643 | ||
1644 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1645 | --bindir=DIR user executables [EPREFIX/bin] |
1646 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1647 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1648 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1649 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1650 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
09933553 | 1651 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
ec6a6fbe AK |
1652 | --libdir=DIR object code libraries [EPREFIX/lib] |
1653 | --includedir=DIR C header files [PREFIX/include] | |
1654 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1655 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1656 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1657 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1658 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1659 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1660 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1661 | --htmldir=DIR html documentation [DOCDIR] | |
1662 | --dvidir=DIR dvi documentation [DOCDIR] | |
1663 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1664 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1665 | _ACEOF |
1666 | ||
1667 | cat <<\_ACEOF | |
1668 | ||
1669 | System types: | |
1670 | --build=BUILD configure for building on BUILD [guessed] | |
1671 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1672 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1673 | _ACEOF | |
1674 | fi | |
1675 | ||
1676 | if test -n "$ac_init_help"; then | |
1677 | ||
1678 | cat <<\_ACEOF | |
1679 | ||
1680 | Optional Features: | |
ec6a6fbe | 1681 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1682 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1683 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d62448cb ZK |
1684 | --disable-dependency-tracking |
1685 | speeds up one-time build. | |
fa58fc32 | 1686 | --disable-silent-rules disable silent building |
71082be4 ZK |
1687 | --enable-static_link use this to link the tools to their libraries |
1688 | statically (default is dynamic linking | |
8b8b8ac1 | 1689 | --disable-shared disable dynamic linking |
4d0c3ed0 AK |
1690 | --disable-thin_check_needs_check |
1691 | required if thin_check version is < 0.3.0 | |
0ac20a8f ZK |
1692 | --disable-cache_check_needs_check |
1693 | required if cache_check version is < 0.5 | |
71082be4 | 1694 | --disable-readline disable readline support |
65534242 | 1695 | --enable-editline enable editline support |
3e333e9b | 1696 | --disable-realtime disable realtime clock support |
37ddf259 AK |
1697 | --enable-ocf enable Open Cluster Framework (OCF) compliant |
1698 | resource agents | |
71082be4 ZK |
1699 | --enable-cmirrord enable the cluster mirror log daemon |
1700 | --enable-debug enable debugging | |
1701 | --enable-profiling gather gcov profiling data | |
d1e8046f | 1702 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 | 1703 | --disable-devmapper disable LVM2 device-mapper interaction |
e587b067 | 1704 | --enable-lvmpolld enable the LVM Polling Daemon |
658d524d AK |
1705 | --enable-lvmlockd-sanlock |
1706 | enable the LVM lock daemon using sanlock | |
1707 | --enable-lvmlockd-dlm enable the LVM lock daemon using dlm | |
07d41de7 MC |
1708 | --enable-lvmlockd-dlmcontrol |
1709 | enable lvmlockd remote refresh using libdlmcontrol | |
7a8b7b4a | 1710 | --enable-lvmlockd-idm enable the LVM lock daemon using idm |
fe70b03d | 1711 | --disable-use-lvmlockd disable usage of LVM lock daemon |
c923dee8 | 1712 | --disable-use-lvmpolld disable usage of LVM Poll Daemon |
b73e1cd4 ZK |
1713 | --disable-systemd-journal |
1714 | disable LVM systemd journaling | |
1715 | --disable-app-machineid disable LVM system ID using app-specific machine-id | |
75628f34 PR |
1716 | --disable-blkid_wiping disable libblkid detection of signatures when wiping |
1717 | and use native code instead | |
96123b90 ZK |
1718 | --enable-udev_sync enable synchronization with udev processing |
1719 | --enable-udev_rules install rule files needed for udev synchronization | |
5723db01 PR |
1720 | --enable-udev-rule-exec-detection |
1721 | enable executable path detection in udev rules | |
71082be4 ZK |
1722 | --enable-units-compat enable output compatibility with old versions that |
1723 | that do not use KiB-style unit suffixes | |
ad77fb50 | 1724 | --disable-ioctl disable ioctl calls to device-mapper in the kernel |
71082be4 | 1725 | --disable-o_direct disable O_DIRECT |
5987562c | 1726 | --enable-dbus-service install D-Bus support |
0627716f | 1727 | --enable-notify-dbus enable LVM notification using dbus |
71082be4 ZK |
1728 | --enable-pkgconfig install pkgconfig support |
1729 | --enable-write_install install user writable files | |
1730 | --disable-fsadm disable fsadm | |
12ba43cc | 1731 | --disable-lvmimportvdo disable lvm_import_vdo |
a70d6b35 | 1732 | --disable-blkdeactivate disable blkdeactivate |
71082be4 | 1733 | --enable-dmeventd enable the device-mapper event daemon |
0627716f | 1734 | --enable-cmdlib build shared command library |
a7cf55c6 | 1735 | --enable-dmfilemapd enable the dmstats filemap daemon |
71082be4 | 1736 | --disable-selinux disable selinux support |
ae96a43f | 1737 | --disable-blkzeroout do not use BLKZEROOUT for device zeroing |
71082be4 | 1738 | --enable-nls enable Native Language Support |
ad6254c5 AK |
1739 | |
1740 | Optional Packages: | |
1741 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1742 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
8b8b8ac1 ZK |
1743 | --without-blkid do not build with blkid library |
1744 | --without-systemd do not build with systemd library | |
1745 | --without-udev do not build with udev library | |
e6e64748 ZK |
1746 | --with-user=USER set the owner of installed files [USER=] |
1747 | --with-group=GROUP set the group owner of installed files [GROUP=] | |
1748 | --with-device-uid=UID set the owner used for new device nodes [UID=0] | |
1749 | --with-device-gid=GID set the group used for new device nodes [GID=0] | |
1750 | --with-device-mode=MODE set the mode used for new device nodes [MODE=0600] | |
d0df875d | 1751 | --with-device-nodes-on=ON |
e6e64748 | 1752 | create nodes on resume or create [ON=resume] |
cd9b2b32 ZK |
1753 | --with-default-use-devices-file=ON |
1754 | default lvm.conf devices/use_devicesfile = [ON=0] | |
c64d7cd3 | 1755 | --with-default-name-mangling=MANGLING |
e6e64748 | 1756 | default name mangling: auto/none/hex [auto] |
cd9b2b32 ZK |
1757 | --with-default-event-activation=ON |
1758 | default lvm.conf global/event_activation = [ON=1] | |
744afec6 ZK |
1759 | --with-snapshots=TYPE snapshot support: internal/none [internal] |
1760 | --with-mirrors=TYPE mirror support: internal/none [internal] | |
e6e64748 ZK |
1761 | --with-default-mirror-segtype=TYPE |
1762 | default mirror segtype: raid1/mirror [raid1] | |
1763 | --with-default-raid10-segtype=TYPE | |
1764 | default mirror segtype: raid10/mirror [raid10] | |
e6e64748 ZK |
1765 | --with-default-sparse-segtype=TYPE |
1766 | default sparse segtype: thin/snapshot [thin] | |
744afec6 | 1767 | --with-thin=TYPE thin provisioning support: internal/none [internal] |
e6e64748 ZK |
1768 | --with-thin-check=PATH thin_check tool: [autodetect] |
1769 | --with-thin-dump=PATH thin_dump tool: [autodetect] | |
1770 | --with-thin-repair=PATH thin_repair tool: [autodetect] | |
b3539907 | 1771 | --with-thin-restore=PATH |
e6e64748 | 1772 | thin_restore tool: [autodetect] |
744afec6 | 1773 | --with-cache=TYPE cache support: internal/none [internal] |
e6e64748 ZK |
1774 | --with-cache-check=PATH cache_check tool: [autodetect] |
1775 | --with-cache-dump=PATH cache_dump tool: [autodetect] | |
39cb8aa3 | 1776 | --with-cache-repair=PATH |
e6e64748 | 1777 | cache_repair tool: [autodetect] |
39cb8aa3 | 1778 | --with-cache-restore=PATH |
e6e64748 | 1779 | cache_restore tool: [autodetect] |
4a90b0c4 ZK |
1780 | --with-vdo=TYPE vdo support: internal/none [internal] |
1781 | --with-vdo-format=PATH vdoformat tool: [autodetect] | |
3ed11170 ZK |
1782 | --with-writecache=TYPE writecache support: internal/none [internal] |
1783 | --with-integrity=TYPE integrity support: internal/none [internal] | |
e6e64748 ZK |
1784 | --with-ocfdir=DIR install OCF files in |
1785 | [PREFIX/lib/ocf/resource.d/lvm2] | |
5723db01 | 1786 | --with-default-pid-dir=PID_DIR |
3ed11170 | 1787 | default directory to keep PID files in [autodetect] |
5723db01 | 1788 | --with-default-dm-run-dir=DM_RUN_DIR |
3ed11170 | 1789 | default DM run directory [autodetect] |
5723db01 | 1790 | --with-default-run-dir=RUN_DIR |
3ed11170 | 1791 | default LVM run directory [autodetect_run_dir/lvm] |
71082be4 | 1792 | --with-cmirrord-pidfile=PATH |
e6e64748 ZK |
1793 | cmirrord pidfile [PID_DIR/cmirrord.pid] |
1794 | --with-optimisation=OPT C optimisation flag [OPT=-O2] | |
1cedbaf1 ZK |
1795 | --with-symvers=STYLE use symbol versioning of the shared library |
1796 | [default=gnu] | |
c923dee8 AK |
1797 | --with-lvmlockd-pidfile=PATH |
1798 | lvmlockd pidfile [PID_DIR/lvmlockd.pid] | |
e587b067 OK |
1799 | --with-lvmpolld-pidfile=PATH |
1800 | lvmpolld pidfile [PID_DIR/lvmpolld.pid] | |
21edfc4a | 1801 | --with-systemd-run=PATH systemd-run tool: [autodetect] |
6b2e4ec5 ZK |
1802 | --with-python-sys-prefix |
1803 | use Python's sys.prefix and sys.exec_prefix values | |
1804 | --with-python_prefix override the default PYTHON_PREFIX | |
1805 | --with-python_exec_prefix | |
1806 | override the default PYTHON_EXEC_PREFIX | |
dc49e1cd | 1807 | --with-localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
e6e64748 ZK |
1808 | --with-confdir=DIR configuration files in DIR [/etc] |
1809 | --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin] | |
1810 | --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib] | |
1811 | --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin] | |
a2d33cdf | 1812 | --with-libexecdir=DIR libexec executables in DIR [PREFIX/libexec] |
71082be4 | 1813 | --with-udev-prefix=UPREFIX |
e6e64748 ZK |
1814 | install udev rule files in UPREFIX [EPREFIX] |
1815 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] | |
e587cb6a PR |
1816 | --with-systemdsystemunitdir=DIR |
1817 | systemd service files in DIR | |
4417a8bd PR |
1818 | --with-tmpfilesdir=DIR install configuration files for management of |
1819 | volatile files and directories in DIR | |
e6e64748 | 1820 | [PREFIX/lib/tmpfiles.d] |
1453ccd5 ZK |
1821 | --with-modulesdir=DIR Dir to look for file `uname -r`/modules.builtin |
1822 | [/lib/modules] | |
71082be4 | 1823 | --with-dmeventd-pidfile=PATH |
e6e64748 | 1824 | dmeventd pidfile [PID_DIR/dmeventd.pid] |
71082be4 | 1825 | --with-dmeventd-path=PATH |
e6e64748 | 1826 | dmeventd path [EPREFIX/sbin/dmeventd] |
3da18a06 ZK |
1827 | --with-dmeventd-exit-on-path=PATH |
1828 | Default path to exit-on file in dmeventd | |
1829 | [/run/nologin] | |
71082be4 | 1830 | --with-default-system-dir=DIR |
e6e64748 | 1831 | default LVM system directory [/etc/lvm] |
f89a8b81 | 1832 | --with-default-profile-subdir=SUBDIR |
e6e64748 | 1833 | default configuration profile subdir [profile] |
71082be4 | 1834 | --with-default-archive-subdir=SUBDIR |
e6e64748 | 1835 | default metadata archive subdir [archive] |
71082be4 | 1836 | --with-default-backup-subdir=SUBDIR |
e6e64748 | 1837 | default metadata backup subdir [backup] |
71082be4 | 1838 | --with-default-cache-subdir=SUBDIR |
e6e64748 | 1839 | default metadata cache subdir [cache] |
71082be4 | 1840 | --with-default-locking-dir=DIR |
600d7ca1 | 1841 | default locking directory [autodetect_lock_dir/lvm] |
e6e64748 | 1842 | --with-interface=IFACE choose kernel interface (ioctl) [ioctl] |
ad6254c5 AK |
1843 | |
1844 | Some influential environment variables: | |
1845 | CC C compiler command | |
1846 | CFLAGS C compiler flags | |
1847 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1848 | nonstandard directory <lib dir> | |
25fbec5b | 1849 | LIBS libraries to pass to the linker, e.g. -l<library> |
f11781c5 | 1850 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7a197a62 | 1851 | you have headers in a nonstandard directory <include dir> |
acb6c062 PR |
1852 | CXX C++ compiler command |
1853 | CXXFLAGS C++ compiler flags | |
e2997b73 | 1854 | PKG_CONFIG path to pkg-config utility |
f11781c5 AK |
1855 | PKG_CONFIG_PATH |
1856 | directories to add to pkg-config's search path | |
1857 | PKG_CONFIG_LIBDIR | |
1858 | path overriding pkg-config's built-in search path | |
e2997b73 AK |
1859 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config |
1860 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
ee3cfa41 AK |
1861 | VALGRIND_CFLAGS |
1862 | C compiler flags for VALGRIND, overriding pkg-config | |
1863 | VALGRIND_LIBS | |
1864 | linker flags for VALGRIND, overriding pkg-config | |
a861f042 ZK |
1865 | LIBSANLOCKCLIENT_CFLAGS |
1866 | C compiler flags for LIBSANLOCKCLIENT, overriding pkg-config | |
1867 | LIBSANLOCKCLIENT_LIBS | |
1868 | linker flags for LIBSANLOCKCLIENT, overriding pkg-config | |
1869 | LIBDLM_CFLAGS | |
1870 | C compiler flags for LIBDLM, overriding pkg-config | |
1871 | LIBDLM_LIBS linker flags for LIBDLM, overriding pkg-config | |
1872 | LIBDLMCONTROL_CFLAGS | |
1873 | C compiler flags for LIBDLMCONTROL, overriding pkg-config | |
1874 | LIBDLMCONTROL_LIBS | |
1875 | linker flags for LIBDLMCONTROL, overriding pkg-config | |
1876 | LIBSEAGATEILM_CFLAGS | |
1877 | C compiler flags for LIBSEAGATEILM, overriding pkg-config | |
1878 | LIBSEAGATEILM_LIBS | |
1879 | linker flags for LIBSEAGATEILM, overriding pkg-config | |
c60bac46 ZK |
1880 | BLKID_CFLAGS |
1881 | C compiler flags for BLKID, overriding pkg-config | |
1882 | BLKID_LIBS linker flags for BLKID, overriding pkg-config | |
d93275eb PR |
1883 | UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config |
1884 | UDEV_LIBS linker flags for UDEV, overriding pkg-config | |
0627716f ZK |
1885 | LIBSYSTEMD_CFLAGS |
1886 | C compiler flags for LIBSYSTEMD, overriding pkg-config | |
1887 | LIBSYSTEMD_LIBS | |
1888 | linker flags for LIBSYSTEMD, overriding pkg-config | |
5987562c | 1889 | PYTHON the Python interpreter |
86ac529b ZK |
1890 | SELINUX_CFLAGS |
1891 | C compiler flags for SELINUX, overriding pkg-config | |
1892 | SELINUX_LIBS | |
1893 | linker flags for SELINUX, overriding pkg-config | |
65534242 ZK |
1894 | EDITLINE_CFLAGS |
1895 | C compiler flags for EDITLINE, overriding pkg-config | |
1896 | EDITLINE_LIBS | |
1897 | linker flags for EDITLINE, overriding pkg-config | |
b681b774 ZK |
1898 | systemdsystemunitdir |
1899 | value of systemdsystemunitdir for systemd, overriding pkg-config | |
1900 | systemdutildir | |
1901 | value of systemdutildir for systemd, overriding pkg-config | |
86ac529b ZK |
1902 | AIO_CFLAGS C compiler flags for AIO |
1903 | AIO_LIBS linker flags for AIO | |
b73e1cd4 ZK |
1904 | READLINE_CFLAGS |
1905 | C compiler flags for readline | |
1906 | READLINE_LIBS | |
1907 | linker flags for readline | |
ad6254c5 | 1908 | |
635df748 | 1909 | Use these variables to override the choices made by 'configure' or to help |
ad6254c5 AK |
1910 | it to find libraries and programs with nonstandard names/locations. |
1911 | ||
f11781c5 | 1912 | Report bugs to the package provider. |
ad6254c5 | 1913 | _ACEOF |
7a197a62 | 1914 | ac_status=$? |
ad6254c5 AK |
1915 | fi |
1916 | ||
1917 | if test "$ac_init_help" = "recursive"; then | |
1918 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1919 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1920 | test -d "$ac_dir" || |
1921 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1922 | continue | |
ad6254c5 AK |
1923 | ac_builddir=. |
1924 | ||
7a197a62 AK |
1925 | case "$ac_dir" in |
1926 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1927 | *) | |
6b2e4ec5 | 1928 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1929 | # A ".." for each directory in $ac_dir_suffix. |
6b2e4ec5 | 1930 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1931 | case $ac_top_builddir_sub in |
1932 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1933 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1934 | esac ;; | |
1935 | esac | |
1936 | ac_abs_top_builddir=$ac_pwd | |
1937 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1938 | # for backward compatibility: | |
1939 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1940 | |
1941 | case $srcdir in | |
7a197a62 | 1942 | .) # We are building in place. |
ad6254c5 | 1943 | ac_srcdir=. |
7a197a62 AK |
1944 | ac_top_srcdir=$ac_top_builddir_sub |
1945 | ac_abs_top_srcdir=$ac_pwd ;; | |
1946 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1947 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1948 | ac_top_srcdir=$srcdir |
1949 | ac_abs_top_srcdir=$srcdir ;; | |
1950 | *) # Relative name. | |
1951 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1952 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1953 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1954 | esac |
7a197a62 AK |
1955 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1956 | ||
1957 | cd "$ac_dir" || { ac_status=$?; continue; } | |
6b2e4ec5 ZK |
1958 | # Check for configure.gnu first; this name is used for a wrapper for |
1959 | # Metaconfig's "Configure" on case-insensitive file systems. | |
7a197a62 AK |
1960 | if test -f "$ac_srcdir/configure.gnu"; then |
1961 | echo && | |
1962 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1963 | elif test -f "$ac_srcdir/configure"; then | |
1964 | echo && | |
1965 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1966 | else |
6b2e4ec5 | 1967 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1968 | fi || ac_status=$? |
1969 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1970 | done |
1971 | fi | |
1972 | ||
7a197a62 | 1973 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1974 | if $ac_init_version; then |
1975 | cat <<\_ACEOF | |
7a197a62 | 1976 | configure |
635df748 | 1977 | generated by GNU Autoconf 2.72 |
ad6254c5 | 1978 | |
635df748 | 1979 | Copyright (C) 2023 Free Software Foundation, Inc. |
ad6254c5 AK |
1980 | This configure script is free software; the Free Software Foundation |
1981 | gives unlimited permission to copy, distribute and modify it. | |
1982 | _ACEOF | |
7a197a62 | 1983 | exit |
ad6254c5 | 1984 | fi |
ad6254c5 | 1985 | |
f11781c5 AK |
1986 | ## ------------------------ ## |
1987 | ## Autoconf initialization. ## | |
1988 | ## ------------------------ ## | |
ad6254c5 | 1989 | |
f11781c5 AK |
1990 | # ac_fn_c_try_compile LINENO |
1991 | # -------------------------- | |
1992 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1993 | ac_fn_c_try_compile () | |
ad6254c5 | 1994 | { |
f11781c5 | 1995 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
6b2e4ec5 | 1996 | rm -f conftest.$ac_objext conftest.beam |
f11781c5 AK |
1997 | if { { ac_try="$ac_compile" |
1998 | case "(($ac_try" in | |
1999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2000 | *) ac_try_echo=$ac_try;; | |
2001 | esac | |
2002 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6b2e4ec5 | 2003 | printf "%s\n" "$ac_try_echo"; } >&5 |
f11781c5 AK |
2004 | (eval "$ac_compile") 2>conftest.err |
2005 | ac_status=$? | |
2006 | if test -s conftest.err; then | |
2007 | grep -v '^ *+' conftest.err >conftest.er1 | |
2008 | cat conftest.er1 >&5 | |
2009 | mv -f conftest.er1 conftest.err | |
2010 | fi | |
6b2e4ec5 | 2011 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
f11781c5 AK |
2012 | test $ac_status = 0; } && { |
2013 | test -z "$ac_c_werror_flag" || | |
2014 | test ! -s conftest.err | |
6b2e4ec5 ZK |
2015 | } && test -s conftest.$ac_objext |
2016 | then : | |
f11781c5 | 2017 | ac_retval=0 |
635df748 ZK |
2018 | else case e in #( |
2019 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
f11781c5 | 2020 | sed 's/^/| /' conftest.$ac_ext >&5 |
ad6254c5 | 2021 | |
635df748 ZK |
2022 | ac_retval=1 ;; |
2023 | esac | |
f11781c5 | 2024 | fi |
4d0c3ed0 | 2025 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
f11781c5 | 2026 | as_fn_set_status $ac_retval |
ad6254c5 | 2027 | |
f11781c5 | 2028 | } # ac_fn_c_try_compile |
ad6254c5 | 2029 | |
acb6c062 PR |
2030 | # ac_fn_cxx_try_compile LINENO |
2031 | # ---------------------------- | |
2032 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2033 | ac_fn_cxx_try_compile () | |
2034 | { | |
2035 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6b2e4ec5 | 2036 | rm -f conftest.$ac_objext conftest.beam |
acb6c062 PR |
2037 | if { { ac_try="$ac_compile" |
2038 | case "(($ac_try" in | |
2039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2040 | *) ac_try_echo=$ac_try;; | |
2041 | esac | |
2042 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6b2e4ec5 | 2043 | printf "%s\n" "$ac_try_echo"; } >&5 |
acb6c062 PR |
2044 | (eval "$ac_compile") 2>conftest.err |
2045 | ac_status=$? | |
2046 | if test -s conftest.err; then | |
2047 | grep -v '^ *+' conftest.err >conftest.er1 | |
2048 | cat conftest.er1 >&5 | |
2049 | mv -f conftest.er1 conftest.err | |
2050 | fi | |
6b2e4ec5 | 2051 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
acb6c062 PR |
2052 | test $ac_status = 0; } && { |
2053 | test -z "$ac_cxx_werror_flag" || | |
2054 | test ! -s conftest.err | |
6b2e4ec5 ZK |
2055 | } && test -s conftest.$ac_objext |
2056 | then : | |
acb6c062 | 2057 | ac_retval=0 |
635df748 ZK |
2058 | else case e in #( |
2059 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
acb6c062 PR |
2060 | sed 's/^/| /' conftest.$ac_ext >&5 |
2061 | ||
635df748 | 2062 | ac_retval=1 ;; |
f11781c5 | 2063 | esac |
f11781c5 | 2064 | fi |
4d0c3ed0 | 2065 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
f11781c5 | 2066 | as_fn_set_status $ac_retval |
ad6254c5 | 2067 | |
635df748 | 2068 | } # ac_fn_cxx_try_compile |
d911ec67 | 2069 | |
f11781c5 AK |
2070 | # ac_fn_c_try_link LINENO |
2071 | # ----------------------- | |
2072 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2073 | ac_fn_c_try_link () | |
d911ec67 | 2074 | { |
f11781c5 | 2075 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
6b2e4ec5 | 2076 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
f11781c5 | 2077 | if { { ac_try="$ac_link" |
d911ec67 AK |
2078 | case "(($ac_try" in |
2079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2080 | *) ac_try_echo=$ac_try;; | |
2081 | esac | |
f11781c5 | 2082 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
6b2e4ec5 | 2083 | printf "%s\n" "$ac_try_echo"; } >&5 |
f11781c5 | 2084 | (eval "$ac_link") 2>conftest.err |
d911ec67 | 2085 | ac_status=$? |
f11781c5 AK |
2086 | if test -s conftest.err; then |
2087 | grep -v '^ *+' conftest.err >conftest.er1 | |
2088 | cat conftest.er1 >&5 | |
2089 | mv -f conftest.er1 conftest.err | |
2090 | fi | |
6b2e4ec5 | 2091 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
f11781c5 AK |
2092 | test $ac_status = 0; } && { |
2093 | test -z "$ac_c_werror_flag" || | |
2094 | test ! -s conftest.err | |
2095 | } && test -s conftest$ac_exeext && { | |
2096 | test "$cross_compiling" = yes || | |
4d0c3ed0 | 2097 | test -x conftest$ac_exeext |
6b2e4ec5 ZK |
2098 | } |
2099 | then : | |
f11781c5 | 2100 | ac_retval=0 |
635df748 ZK |
2101 | else case e in #( |
2102 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
d911ec67 AK |
2103 | sed 's/^/| /' conftest.$ac_ext >&5 |
2104 | ||
635df748 ZK |
2105 | ac_retval=1 ;; |
2106 | esac | |
d911ec67 | 2107 | fi |
f11781c5 AK |
2108 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
2109 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2110 | # interfere with the next link command; also delete a directory that is | |
2111 | # left behind by Apple's compiler. We do this before executing the actions. | |
2112 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
4d0c3ed0 | 2113 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
f11781c5 | 2114 | as_fn_set_status $ac_retval |
d911ec67 | 2115 | |
f11781c5 | 2116 | } # ac_fn_c_try_link |
d911ec67 | 2117 | |
f11781c5 AK |
2118 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
2119 | # ------------------------------------------------------- | |
2120 | # Tests whether HEADER exists and can be compiled using the include files in | |
2121 | # INCLUDES, setting the cache variable VAR accordingly. | |
2122 | ac_fn_c_check_header_compile () | |
2123 | { | |
2124 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6b2e4ec5 ZK |
2125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2126 | printf %s "checking for $2... " >&6; } | |
2127 | if eval test \${$3+y} | |
2128 | then : | |
2129 | printf %s "(cached) " >&6 | |
635df748 ZK |
2130 | else case e in #( |
2131 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2132 | /* end confdefs.h. */ |
f11781c5 AK |
2133 | $4 |
2134 | #include <$2> | |
ad6254c5 | 2135 | _ACEOF |
6b2e4ec5 ZK |
2136 | if ac_fn_c_try_compile "$LINENO" |
2137 | then : | |
f11781c5 | 2138 | eval "$3=yes" |
635df748 ZK |
2139 | else case e in #( |
2140 | e) eval "$3=no" ;; | |
2141 | esac | |
ad6254c5 | 2142 | fi |
635df748 ZK |
2143 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
2144 | esac | |
ad6254c5 | 2145 | fi |
f11781c5 | 2146 | eval ac_res=\$$3 |
6b2e4ec5 ZK |
2147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2148 | printf "%s\n" "$ac_res" >&6; } | |
4d0c3ed0 | 2149 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ad6254c5 | 2150 | |
f11781c5 | 2151 | } # ac_fn_c_check_header_compile |
ad6254c5 | 2152 | |
1568ed4d AK |
2153 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2154 | # ------------------------------------------- | |
2155 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2156 | # variable VAR accordingly. | |
2157 | ac_fn_c_check_type () | |
f11781c5 AK |
2158 | { |
2159 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6b2e4ec5 ZK |
2160 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2161 | printf %s "checking for $2... " >&6; } | |
2162 | if eval test \${$3+y} | |
2163 | then : | |
2164 | printf %s "(cached) " >&6 | |
635df748 ZK |
2165 | else case e in #( |
2166 | e) eval "$3=no" | |
f11781c5 AK |
2167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2168 | /* end confdefs.h. */ | |
1568ed4d | 2169 | $4 |
f11781c5 | 2170 | int |
6b2e4ec5 | 2171 | main (void) |
f11781c5 | 2172 | { |
1568ed4d AK |
2173 | if (sizeof ($2)) |
2174 | return 0; | |
f11781c5 AK |
2175 | ; |
2176 | return 0; | |
2177 | } | |
ad6254c5 | 2178 | _ACEOF |
6b2e4ec5 ZK |
2179 | if ac_fn_c_try_compile "$LINENO" |
2180 | then : | |
f11781c5 | 2181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 2182 | /* end confdefs.h. */ |
1568ed4d | 2183 | $4 |
f11781c5 | 2184 | int |
6b2e4ec5 | 2185 | main (void) |
f11781c5 | 2186 | { |
1568ed4d AK |
2187 | if (sizeof (($2))) |
2188 | return 0; | |
f11781c5 AK |
2189 | ; |
2190 | return 0; | |
2191 | } | |
2192 | _ACEOF | |
6b2e4ec5 ZK |
2193 | if ac_fn_c_try_compile "$LINENO" |
2194 | then : | |
1568ed4d | 2195 | |
635df748 ZK |
2196 | else case e in #( |
2197 | e) eval "$3=yes" ;; | |
2198 | esac | |
f11781c5 | 2199 | fi |
6b2e4ec5 | 2200 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
f11781c5 | 2201 | fi |
635df748 ZK |
2202 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
2203 | esac | |
f11781c5 | 2204 | fi |
1568ed4d | 2205 | eval ac_res=\$$3 |
6b2e4ec5 ZK |
2206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2207 | printf "%s\n" "$ac_res" >&6; } | |
4d0c3ed0 | 2208 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
f11781c5 | 2209 | |
1568ed4d | 2210 | } # ac_fn_c_check_type |
795ca3e5 | 2211 | |
1568ed4d AK |
2212 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2213 | # ---------------------------------------------------- | |
2214 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2215 | # INCLUDES, setting cache variable VAR accordingly. | |
2216 | ac_fn_c_check_member () | |
f11781c5 AK |
2217 | { |
2218 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6b2e4ec5 ZK |
2219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
2220 | printf %s "checking for $2.$3... " >&6; } | |
2221 | if eval test \${$4+y} | |
2222 | then : | |
2223 | printf %s "(cached) " >&6 | |
635df748 ZK |
2224 | else case e in #( |
2225 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 | 2226 | /* end confdefs.h. */ |
1568ed4d | 2227 | $5 |
ad6254c5 | 2228 | int |
6b2e4ec5 | 2229 | main (void) |
ad6254c5 | 2230 | { |
1568ed4d AK |
2231 | static $2 ac_aggr; |
2232 | if (ac_aggr.$3) | |
2233 | return 0; | |
ad6254c5 AK |
2234 | ; |
2235 | return 0; | |
2236 | } | |
2237 | _ACEOF | |
6b2e4ec5 ZK |
2238 | if ac_fn_c_try_compile "$LINENO" |
2239 | then : | |
1568ed4d | 2240 | eval "$4=yes" |
635df748 ZK |
2241 | else case e in #( |
2242 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 | 2243 | /* end confdefs.h. */ |
1568ed4d | 2244 | $5 |
f11781c5 | 2245 | int |
6b2e4ec5 | 2246 | main (void) |
f11781c5 | 2247 | { |
1568ed4d AK |
2248 | static $2 ac_aggr; |
2249 | if (sizeof ac_aggr.$3) | |
2250 | return 0; | |
f11781c5 AK |
2251 | ; |
2252 | return 0; | |
2253 | } | |
2254 | _ACEOF | |
6b2e4ec5 ZK |
2255 | if ac_fn_c_try_compile "$LINENO" |
2256 | then : | |
1568ed4d | 2257 | eval "$4=yes" |
635df748 ZK |
2258 | else case e in #( |
2259 | e) eval "$4=no" ;; | |
2260 | esac | |
795ca3e5 | 2261 | fi |
635df748 ZK |
2262 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
2263 | esac | |
f11781c5 | 2264 | fi |
635df748 ZK |
2265 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
2266 | esac | |
ad6254c5 | 2267 | fi |
1568ed4d | 2268 | eval ac_res=\$$4 |
6b2e4ec5 ZK |
2269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2270 | printf "%s\n" "$ac_res" >&6; } | |
4d0c3ed0 | 2271 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ad6254c5 | 2272 | |
1568ed4d | 2273 | } # ac_fn_c_check_member |
ad6254c5 | 2274 | |
f11781c5 AK |
2275 | # ac_fn_c_find_intX_t LINENO BITS VAR |
2276 | # ----------------------------------- | |
2277 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
2278 | # accordingly. | |
2279 | ac_fn_c_find_intX_t () | |
2280 | { | |
2281 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6b2e4ec5 ZK |
2282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
2283 | printf %s "checking for int$2_t... " >&6; } | |
2284 | if eval test \${$3+y} | |
2285 | then : | |
2286 | printf %s "(cached) " >&6 | |
635df748 ZK |
2287 | else case e in #( |
2288 | e) eval "$3=no" | |
f11781c5 AK |
2289 | # Order is important - never check a type that is potentially smaller |
2290 | # than half of the expected target width. | |
2291 | for ac_type in int$2_t 'int' 'long int' \ | |
2292 | 'long long int' 'short int' 'signed char'; do | |
2293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7a197a62 AK |
2294 | /* end confdefs.h. */ |
2295 | $ac_includes_default | |
f11781c5 | 2296 | enum { N = $2 / 2 - 1 }; |
7a197a62 | 2297 | int |
6b2e4ec5 | 2298 | main (void) |
7a197a62 | 2299 | { |
f11781c5 | 2300 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
4d0c3ed0 AK |
2301 | test_array [0] = 0; |
2302 | return test_array [0]; | |
7a197a62 | 2303 | |
f11781c5 AK |
2304 | ; |
2305 | return 0; | |
2306 | } | |
2307 | _ACEOF | |
6b2e4ec5 ZK |
2308 | if ac_fn_c_try_compile "$LINENO" |
2309 | then : | |
f11781c5 AK |
2310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2311 | /* end confdefs.h. */ | |
2312 | $ac_includes_default | |
2313 | enum { N = $2 / 2 - 1 }; | |
2314 | int | |
6b2e4ec5 | 2315 | main (void) |
f11781c5 AK |
2316 | { |
2317 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
2318 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
4d0c3ed0 AK |
2319 | test_array [0] = 0; |
2320 | return test_array [0]; | |
7a197a62 AK |
2321 | |
2322 | ; | |
2323 | return 0; | |
2324 | } | |
ad6254c5 | 2325 | _ACEOF |
6b2e4ec5 ZK |
2326 | if ac_fn_c_try_compile "$LINENO" |
2327 | then : | |
ad6254c5 | 2328 | |
635df748 ZK |
2329 | else case e in #( |
2330 | e) case $ac_type in #( | |
f11781c5 AK |
2331 | int$2_t) : |
2332 | eval "$3=yes" ;; #( | |
2333 | *) : | |
2334 | eval "$3=\$ac_type" ;; | |
635df748 | 2335 | esac ;; |
f11781c5 | 2336 | esac |
ad6254c5 | 2337 | fi |
6b2e4ec5 | 2338 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ad6254c5 | 2339 | fi |
6b2e4ec5 ZK |
2340 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2341 | if eval test \"x\$"$3"\" = x"no" | |
2342 | then : | |
ad6254c5 | 2343 | |
635df748 ZK |
2344 | else case e in #( |
2345 | e) break ;; | |
2346 | esac | |
ad6254c5 | 2347 | fi |
635df748 ZK |
2348 | done ;; |
2349 | esac | |
ad6254c5 | 2350 | fi |
f11781c5 | 2351 | eval ac_res=\$$3 |
6b2e4ec5 ZK |
2352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2353 | printf "%s\n" "$ac_res" >&6; } | |
4d0c3ed0 | 2354 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
f11781c5 AK |
2355 | |
2356 | } # ac_fn_c_find_intX_t | |
2357 | ||
2358 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2359 | # ------------------------------------ | |
2360 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2361 | # accordingly. | |
2362 | ac_fn_c_find_uintX_t () | |
2363 | { | |
2364 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6b2e4ec5 ZK |
2365 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
2366 | printf %s "checking for uint$2_t... " >&6; } | |
2367 | if eval test \${$3+y} | |
2368 | then : | |
2369 | printf %s "(cached) " >&6 | |
635df748 ZK |
2370 | else case e in #( |
2371 | e) eval "$3=no" | |
f11781c5 AK |
2372 | # Order is important - never check a type that is potentially smaller |
2373 | # than half of the expected target width. | |
2374 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2375 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2377 | /* end confdefs.h. */ |
7a197a62 | 2378 | $ac_includes_default |
ad6254c5 | 2379 | int |
6b2e4ec5 | 2380 | main (void) |
ad6254c5 | 2381 | { |
f11781c5 | 2382 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
4d0c3ed0 AK |
2383 | test_array [0] = 0; |
2384 | return test_array [0]; | |
ad6254c5 | 2385 | |
f11781c5 AK |
2386 | ; |
2387 | return 0; | |
ad6254c5 AK |
2388 | } |
2389 | _ACEOF | |
6b2e4ec5 ZK |
2390 | if ac_fn_c_try_compile "$LINENO" |
2391 | then : | |
f11781c5 AK |
2392 | case $ac_type in #( |
2393 | uint$2_t) : | |
2394 | eval "$3=yes" ;; #( | |
2395 | *) : | |
2396 | eval "$3=\$ac_type" ;; | |
7a197a62 | 2397 | esac |
ad6254c5 | 2398 | fi |
6b2e4ec5 ZK |
2399 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2400 | if eval test \"x\$"$3"\" = x"no" | |
2401 | then : | |
7a197a62 | 2402 | |
635df748 ZK |
2403 | else case e in #( |
2404 | e) break ;; | |
2405 | esac | |
ad6254c5 | 2406 | fi |
635df748 ZK |
2407 | done ;; |
2408 | esac | |
ad6254c5 | 2409 | fi |
f11781c5 | 2410 | eval ac_res=\$$3 |
6b2e4ec5 ZK |
2411 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2412 | printf "%s\n" "$ac_res" >&6; } | |
4d0c3ed0 | 2413 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
ad6254c5 | 2414 | |
f11781c5 | 2415 | } # ac_fn_c_find_uintX_t |
ad6254c5 | 2416 | |
f11781c5 AK |
2417 | # ac_fn_c_check_func LINENO FUNC VAR |
2418 | # ---------------------------------- | |
2419 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2420 | ac_fn_c_check_func () | |
2421 | { | |
2422 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6b2e4ec5 ZK |
2423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2424 | printf %s "checking for $2... " >&6; } | |
2425 | if eval test \${$3+y} | |
2426 | then : | |
2427 | printf %s "(cached) " >&6 | |
635df748 ZK |
2428 | else case e in #( |
2429 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 AK |
2430 | /* end confdefs.h. */ |
2431 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2432 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2433 | #define $2 innocuous_$2 | |
ad6254c5 | 2434 | |
f11781c5 | 2435 | /* System header to define __stub macros and hopefully few prototypes, |
635df748 | 2436 | which can conflict with char $2 (void); below. */ |
ad6254c5 | 2437 | |
6b2e4ec5 | 2438 | #include <limits.h> |
f11781c5 AK |
2439 | #undef $2 |
2440 | ||
2441 | /* Override any GCC internal prototype to avoid an error. | |
2442 | Use char because int might match the return type of a GCC | |
2443 | builtin and then its argument prototype would still apply. */ | |
2444 | #ifdef __cplusplus | |
2445 | extern "C" | |
2446 | #endif | |
635df748 | 2447 | char $2 (void); |
f11781c5 AK |
2448 | /* The GNU C library defines this for functions which it implements |
2449 | to always fail with ENOSYS. Some functions are actually named | |
2450 | something starting with __ and the normal name is an alias. */ | |
2451 | #if defined __stub_$2 || defined __stub___$2 | |
2452 | choke me | |
2453 | #endif | |
ad6254c5 | 2454 | |
ad6254c5 | 2455 | int |
6b2e4ec5 | 2456 | main (void) |
ad6254c5 | 2457 | { |
f11781c5 | 2458 | return $2 (); |
ad6254c5 AK |
2459 | ; |
2460 | return 0; | |
2461 | } | |
2462 | _ACEOF | |
6b2e4ec5 ZK |
2463 | if ac_fn_c_try_link "$LINENO" |
2464 | then : | |
f11781c5 | 2465 | eval "$3=yes" |
635df748 ZK |
2466 | else case e in #( |
2467 | e) eval "$3=no" ;; | |
2468 | esac | |
ad6254c5 | 2469 | fi |
6b2e4ec5 | 2470 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
635df748 ZK |
2471 | conftest$ac_exeext conftest.$ac_ext ;; |
2472 | esac | |
ad6254c5 | 2473 | fi |
f11781c5 | 2474 | eval ac_res=\$$3 |
6b2e4ec5 ZK |
2475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2476 | printf "%s\n" "$ac_res" >&6; } | |
4d0c3ed0 | 2477 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
7a197a62 | 2478 | |
f11781c5 | 2479 | } # ac_fn_c_check_func |
1568ed4d | 2480 | |
6b2e4ec5 ZK |
2481 | # ac_fn_c_try_run LINENO |
2482 | # ---------------------- | |
2483 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that | |
2484 | # executables *can* be run. | |
2485 | ac_fn_c_try_run () | |
2486 | { | |
2487 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2488 | if { { ac_try="$ac_link" | |
2489 | case "(($ac_try" in | |
2490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2491 | *) ac_try_echo=$ac_try;; | |
2492 | esac | |
2493 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2494 | printf "%s\n" "$ac_try_echo"; } >&5 | |
2495 | (eval "$ac_link") 2>&5 | |
2496 | ac_status=$? | |
2497 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2498 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
2499 | { { case "(($ac_try" in | |
2500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2501 | *) ac_try_echo=$ac_try;; | |
2502 | esac | |
2503 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2504 | printf "%s\n" "$ac_try_echo"; } >&5 | |
2505 | (eval "$ac_try") 2>&5 | |
2506 | ac_status=$? | |
2507 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2508 | test $ac_status = 0; }; } | |
2509 | then : | |
2510 | ac_retval=0 | |
635df748 ZK |
2511 | else case e in #( |
2512 | e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 | |
6b2e4ec5 ZK |
2513 | printf "%s\n" "$as_me: failed program was:" >&5 |
2514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2515 | ||
635df748 ZK |
2516 | ac_retval=$ac_status ;; |
2517 | esac | |
6b2e4ec5 ZK |
2518 | fi |
2519 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2520 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2521 | as_fn_set_status $ac_retval | |
2522 | ||
2523 | } # ac_fn_c_try_run | |
2524 | ||
2525 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR | |
2526 | # ------------------------------------------------------------------ | |
1568ed4d | 2527 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
6b2e4ec5 ZK |
2528 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
2529 | ac_fn_check_decl () | |
1568ed4d AK |
2530 | { |
2531 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2532 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
6b2e4ec5 ZK |
2533 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
2534 | printf %s "checking whether $as_decl_name is declared... " >&6; } | |
2535 | if eval test \${$3+y} | |
2536 | then : | |
2537 | printf %s "(cached) " >&6 | |
635df748 ZK |
2538 | else case e in #( |
2539 | e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
6b2e4ec5 ZK |
2540 | eval ac_save_FLAGS=\$$6 |
2541 | as_fn_append $6 " $5" | |
1568ed4d AK |
2542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2543 | /* end confdefs.h. */ | |
2544 | $4 | |
2545 | int | |
6b2e4ec5 | 2546 | main (void) |
1568ed4d AK |
2547 | { |
2548 | #ifndef $as_decl_name | |
2549 | #ifdef __cplusplus | |
2550 | (void) $as_decl_use; | |
2551 | #else | |
2552 | (void) $as_decl_name; | |
2553 | #endif | |
2554 | #endif | |
2555 | ||
2556 | ; | |
2557 | return 0; | |
2558 | } | |
2559 | _ACEOF | |
6b2e4ec5 ZK |
2560 | if ac_fn_c_try_compile "$LINENO" |
2561 | then : | |
1568ed4d | 2562 | eval "$3=yes" |
635df748 ZK |
2563 | else case e in #( |
2564 | e) eval "$3=no" ;; | |
2565 | esac | |
1568ed4d | 2566 | fi |
6b2e4ec5 ZK |
2567 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2568 | eval $6=\$ac_save_FLAGS | |
635df748 ZK |
2569 | ;; |
2570 | esac | |
1568ed4d AK |
2571 | fi |
2572 | eval ac_res=\$$3 | |
6b2e4ec5 ZK |
2573 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2574 | printf "%s\n" "$ac_res" >&6; } | |
1568ed4d AK |
2575 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2576 | ||
6b2e4ec5 ZK |
2577 | } # ac_fn_check_decl |
2578 | ac_configure_args_raw= | |
2579 | for ac_arg | |
2580 | do | |
2581 | case $ac_arg in | |
2582 | *\'*) | |
2583 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2584 | esac | |
2585 | as_fn_append ac_configure_args_raw " '$ac_arg'" | |
2586 | done | |
2587 | ||
2588 | case $ac_configure_args_raw in | |
2589 | *$as_nl*) | |
2590 | ac_safe_unquote= ;; | |
2591 | *) | |
2592 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. | |
2593 | ac_unsafe_a="$ac_unsafe_z#~" | |
2594 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" | |
2595 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; | |
2596 | esac | |
2597 | ||
f11781c5 AK |
2598 | cat >config.log <<_ACEOF |
2599 | This file contains any messages produced by compilers while | |
2600 | running configure, to aid debugging if configure makes a mistake. | |
7a197a62 | 2601 | |
f11781c5 | 2602 | It was created by $as_me, which was |
635df748 | 2603 | generated by GNU Autoconf 2.72. Invocation command line was |
ad6254c5 | 2604 | |
6b2e4ec5 | 2605 | $ $0$ac_configure_args_raw |
ad6254c5 | 2606 | |
ad6254c5 | 2607 | _ACEOF |
f11781c5 AK |
2608 | exec 5>>config.log |
2609 | { | |
2610 | cat <<_ASUNAME | |
2611 | ## --------- ## | |
2612 | ## Platform. ## | |
2613 | ## --------- ## | |
ad6254c5 | 2614 | |
f11781c5 AK |
2615 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2616 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2617 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2618 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2619 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
ad6254c5 | 2620 | |
f11781c5 AK |
2621 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2622 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8a2fc586 | 2623 | |
f11781c5 AK |
2624 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2625 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2626 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2627 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2628 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2629 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2630 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2631 | ||
2632 | _ASUNAME | |
2633 | ||
2634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2635 | for as_dir in $PATH | |
2636 | do | |
2637 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
2638 | case $as_dir in #((( |
2639 | '') as_dir=./ ;; | |
2640 | */) ;; | |
2641 | *) as_dir=$as_dir/ ;; | |
2642 | esac | |
2643 | printf "%s\n" "PATH: $as_dir" | |
f11781c5 AK |
2644 | done |
2645 | IFS=$as_save_IFS | |
2646 | ||
2647 | } >&5 | |
2648 | ||
2649 | cat >&5 <<_ACEOF | |
2650 | ||
2651 | ||
2652 | ## ----------- ## | |
2653 | ## Core tests. ## | |
2654 | ## ----------- ## | |
ad6254c5 | 2655 | |
ad6254c5 | 2656 | _ACEOF |
ad6254c5 | 2657 | |
7a197a62 | 2658 | |
f11781c5 AK |
2659 | # Keep a trace of the command line. |
2660 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2661 | # Strip out --silent because we don't want to record it for future runs. | |
2662 | # Also quote any args containing shell meta-characters. | |
2663 | # Make two passes to allow for proper duplicate-argument suppression. | |
2664 | ac_configure_args= | |
2665 | ac_configure_args0= | |
2666 | ac_configure_args1= | |
2667 | ac_must_keep_next=false | |
2668 | for ac_pass in 1 2 | |
2669 | do | |
2670 | for ac_arg | |
2671 | do | |
2672 | case $ac_arg in | |
2673 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2674 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2675 | | -silent | --silent | --silen | --sile | --sil) | |
2676 | continue ;; | |
2677 | *\'*) | |
6b2e4ec5 | 2678 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
f11781c5 AK |
2679 | esac |
2680 | case $ac_pass in | |
2681 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2682 | 2) | |
2683 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2684 | if test $ac_must_keep_next = true; then | |
2685 | ac_must_keep_next=false # Got value, back to normal. | |
2686 | else | |
2687 | case $ac_arg in | |
2688 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2689 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2690 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2691 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2692 | case "$ac_configure_args0 " in | |
2693 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2694 | esac | |
2695 | ;; | |
2696 | -* ) ac_must_keep_next=true ;; | |
2697 | esac | |
2698 | fi | |
2699 | as_fn_append ac_configure_args " '$ac_arg'" | |
2700 | ;; | |
2701 | esac | |
2702 | done | |
2703 | done | |
2704 | { ac_configure_args0=; unset ac_configure_args0;} | |
2705 | { ac_configure_args1=; unset ac_configure_args1;} | |
2706 | ||
2707 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2708 | # config.log. We remove comments because anyway the quotes in there | |
2709 | # would cause problems or look ugly. | |
2710 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2711 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2712 | trap 'exit_status=$? | |
6b2e4ec5 ZK |
2713 | # Sanitize IFS. |
2714 | IFS=" "" $as_nl" | |
f11781c5 AK |
2715 | # Save into config.log some information that might help in debugging. |
2716 | { | |
2717 | echo | |
2718 | ||
6b2e4ec5 | 2719 | printf "%s\n" "## ---------------- ## |
f11781c5 AK |
2720 | ## Cache variables. ## |
2721 | ## ---------------- ##" | |
2722 | echo | |
2723 | # The following way of writing the cache mishandles newlines in values, | |
2724 | ( | |
2725 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2726 | eval ac_val=\$$ac_var | |
2727 | case $ac_val in #( | |
2728 | *${as_nl}*) | |
2729 | case $ac_var in #( | |
6b2e4ec5 ZK |
2730 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2731 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
f11781c5 AK |
2732 | esac |
2733 | case $ac_var in #( | |
2734 | _ | IFS | as_nl) ;; #( | |
2735 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2736 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2737 | esac ;; | |
2738 | esac | |
2739 | done | |
2740 | (set) 2>&1 | | |
2741 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2742 | *${as_nl}ac_space=\ *) | |
2743 | sed -n \ | |
2744 | "s/'\''/'\''\\\\'\'''\''/g; | |
2745 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2746 | ;; #( | |
2747 | *) | |
2748 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2749 | ;; | |
2750 | esac | | |
2751 | sort | |
2752 | ) | |
2753 | echo | |
2754 | ||
6b2e4ec5 | 2755 | printf "%s\n" "## ----------------- ## |
f11781c5 AK |
2756 | ## Output variables. ## |
2757 | ## ----------------- ##" | |
2758 | echo | |
2759 | for ac_var in $ac_subst_vars | |
2760 | do | |
2761 | eval ac_val=\$$ac_var | |
2762 | case $ac_val in | |
6b2e4ec5 | 2763 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
f11781c5 | 2764 | esac |
6b2e4ec5 | 2765 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
f11781c5 AK |
2766 | done | sort |
2767 | echo | |
2768 | ||
2769 | if test -n "$ac_subst_files"; then | |
6b2e4ec5 | 2770 | printf "%s\n" "## ------------------- ## |
f11781c5 AK |
2771 | ## File substitutions. ## |
2772 | ## ------------------- ##" | |
2773 | echo | |
2774 | for ac_var in $ac_subst_files | |
2775 | do | |
2776 | eval ac_val=\$$ac_var | |
2777 | case $ac_val in | |
6b2e4ec5 | 2778 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
f11781c5 | 2779 | esac |
6b2e4ec5 | 2780 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
f11781c5 AK |
2781 | done | sort |
2782 | echo | |
2783 | fi | |
2784 | ||
2785 | if test -s confdefs.h; then | |
6b2e4ec5 | 2786 | printf "%s\n" "## ----------- ## |
f11781c5 AK |
2787 | ## confdefs.h. ## |
2788 | ## ----------- ##" | |
2789 | echo | |
2790 | cat confdefs.h | |
2791 | echo | |
2792 | fi | |
2793 | test "$ac_signal" != 0 && | |
6b2e4ec5 ZK |
2794 | printf "%s\n" "$as_me: caught signal $ac_signal" |
2795 | printf "%s\n" "$as_me: exit $exit_status" | |
f11781c5 AK |
2796 | } >&5 |
2797 | rm -f core *.core core.conftest.* && | |
2798 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2799 | exit $exit_status | |
2800 | ' 0 | |
2801 | for ac_signal in 1 2 13 15; do | |
2802 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2803 | done | |
2804 | ac_signal=0 | |
2805 | ||
2806 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2807 | rm -f -r conftest* confdefs.h | |
7a197a62 | 2808 | |
6b2e4ec5 | 2809 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
8a2fc586 | 2810 | |
f11781c5 | 2811 | # Predefined preprocessor variables. |
ad6254c5 | 2812 | |
6b2e4ec5 | 2813 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
ad6254c5 | 2814 | |
6b2e4ec5 | 2815 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
ad6254c5 | 2816 | |
6b2e4ec5 | 2817 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
f11781c5 | 2818 | |
6b2e4ec5 | 2819 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
ad6254c5 | 2820 | |
6b2e4ec5 | 2821 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
7a197a62 | 2822 | |
6b2e4ec5 | 2823 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
ad6254c5 | 2824 | |
7a197a62 | 2825 | |
f11781c5 AK |
2826 | # Let the site file select an alternate cache file if it wants to. |
2827 | # Prefer an explicitly selected file to automatically selected ones. | |
f11781c5 | 2828 | if test -n "$CONFIG_SITE"; then |
6b2e4ec5 | 2829 | ac_site_files="$CONFIG_SITE" |
f11781c5 | 2830 | elif test "x$prefix" != xNONE; then |
6b2e4ec5 | 2831 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
ad6254c5 | 2832 | else |
6b2e4ec5 | 2833 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
ad6254c5 | 2834 | fi |
6b2e4ec5 ZK |
2835 | |
2836 | for ac_site_file in $ac_site_files | |
f11781c5 | 2837 | do |
6b2e4ec5 ZK |
2838 | case $ac_site_file in #( |
2839 | */*) : | |
2840 | ;; #( | |
2841 | *) : | |
2842 | ac_site_file=./$ac_site_file ;; | |
2843 | esac | |
2844 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then | |
2845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2846 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} | |
f11781c5 AK |
2847 | sed 's/^/| /' "$ac_site_file" >&5 |
2848 | . "$ac_site_file" \ | |
635df748 ZK |
2849 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
2850 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
f11781c5 | 2851 | as_fn_error $? "failed to load site script $ac_site_file |
635df748 | 2852 | See 'config.log' for more details" "$LINENO" 5; } |
f11781c5 AK |
2853 | fi |
2854 | done | |
ad6254c5 | 2855 | |
f11781c5 AK |
2856 | if test -r "$cache_file"; then |
2857 | # Some versions of bash will fail to source /dev/null (special files | |
2858 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2859 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
6b2e4ec5 ZK |
2860 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2861 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} | |
f11781c5 AK |
2862 | case $cache_file in |
2863 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2864 | *) . "./$cache_file";; | |
2865 | esac | |
2866 | fi | |
2867 | else | |
6b2e4ec5 ZK |
2868 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2869 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} | |
f11781c5 | 2870 | >$cache_file |
ad6254c5 | 2871 | fi |
ad6254c5 | 2872 | |
6b2e4ec5 ZK |
2873 | # Test code for whether the C compiler supports C89 (global declarations) |
2874 | ac_c_conftest_c89_globals=' | |
2875 | /* Does the compiler advertise C89 conformance? | |
2876 | Do not test the value of __STDC__, because some compilers set it to 0 | |
2877 | while being otherwise adequately conformant. */ | |
2878 | #if !defined __STDC__ | |
2879 | # error "Compiler does not advertise C89 conformance" | |
2880 | #endif | |
2881 | ||
2882 | #include <stddef.h> | |
2883 | #include <stdarg.h> | |
2884 | struct stat; | |
2885 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | |
2886 | struct buf { int x; }; | |
2887 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | |
635df748 | 2888 | static char *e (char **p, int i) |
6b2e4ec5 ZK |
2889 | { |
2890 | return p[i]; | |
2891 | } | |
2892 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2893 | { | |
2894 | char *s; | |
2895 | va_list v; | |
2896 | va_start (v,p); | |
2897 | s = g (p, va_arg (v,int)); | |
2898 | va_end (v); | |
2899 | return s; | |
2900 | } | |
2901 | ||
635df748 ZK |
2902 | /* C89 style stringification. */ |
2903 | #define noexpand_stringify(a) #a | |
2904 | const char *stringified = noexpand_stringify(arbitrary+token=sequence); | |
2905 | ||
2906 | /* C89 style token pasting. Exercises some of the corner cases that | |
2907 | e.g. old MSVC gets wrong, but not very hard. */ | |
2908 | #define noexpand_concat(a,b) a##b | |
2909 | #define expand_concat(a,b) noexpand_concat(a,b) | |
2910 | extern int vA; | |
2911 | extern int vbee; | |
2912 | #define aye A | |
2913 | #define bee B | |
2914 | int *pvA = &expand_concat(v,aye); | |
2915 | int *pvbee = &noexpand_concat(v,bee); | |
2916 | ||
6b2e4ec5 ZK |
2917 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2918 | function prototypes and stuff, but not \xHH hex character constants. | |
2919 | These do not provoke an error unfortunately, instead are silently treated | |
2920 | as an "x". The following induces an error, until -std is added to get | |
2921 | proper ANSI mode. Curiously \x00 != x always comes out true, for an | |
2922 | array size at least. It is necessary to write \x00 == 0 to get something | |
2923 | that is true only with -std. */ | |
2924 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; | |
2925 | ||
2926 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2927 | inside strings and character constants. */ | |
2928 | #define FOO(x) '\''x'\'' | |
2929 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; | |
2930 | ||
2931 | int test (int i, double x); | |
2932 | struct s1 {int (*f) (int a);}; | |
2933 | struct s2 {int (*f) (double a);}; | |
2934 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | |
2935 | int, int);' | |
2936 | ||
2937 | # Test code for whether the C compiler supports C89 (body of main). | |
2938 | ac_c_conftest_c89_main=' | |
2939 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | |
2940 | ' | |
2941 | ||
2942 | # Test code for whether the C compiler supports C99 (global declarations) | |
2943 | ac_c_conftest_c99_globals=' | |
635df748 | 2944 | /* Does the compiler advertise C99 conformance? */ |
6b2e4ec5 ZK |
2945 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
2946 | # error "Compiler does not advertise C99 conformance" | |
2947 | #endif | |
2948 | ||
635df748 ZK |
2949 | // See if C++-style comments work. |
2950 | ||
6b2e4ec5 ZK |
2951 | #include <stdbool.h> |
2952 | extern int puts (const char *); | |
2953 | extern int printf (const char *, ...); | |
2954 | extern int dprintf (int, const char *, ...); | |
2955 | extern void *malloc (size_t); | |
635df748 | 2956 | extern void free (void *); |
6b2e4ec5 ZK |
2957 | |
2958 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
2959 | // dprintf is used instead of fprintf to avoid needing to declare | |
2960 | // FILE and stderr. | |
2961 | #define debug(...) dprintf (2, __VA_ARGS__) | |
2962 | #define showlist(...) puts (#__VA_ARGS__) | |
2963 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
2964 | static void | |
2965 | test_varargs_macros (void) | |
2966 | { | |
2967 | int x = 1234; | |
2968 | int y = 5678; | |
2969 | debug ("Flag"); | |
2970 | debug ("X = %d\n", x); | |
2971 | showlist (The first, second, and third items.); | |
2972 | report (x>y, "x is %d but y is %d", x, y); | |
2973 | } | |
2974 | ||
2975 | // Check long long types. | |
2976 | #define BIG64 18446744073709551615ull | |
2977 | #define BIG32 4294967295ul | |
2978 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
2979 | #if !BIG_OK | |
2980 | #error "your preprocessor is broken" | |
2981 | #endif | |
2982 | #if BIG_OK | |
2983 | #else | |
2984 | #error "your preprocessor is broken" | |
2985 | #endif | |
2986 | static long long int bignum = -9223372036854775807LL; | |
2987 | static unsigned long long int ubignum = BIG64; | |
2988 | ||
2989 | struct incomplete_array | |
2990 | { | |
2991 | int datasize; | |
2992 | double data[]; | |
2993 | }; | |
2994 | ||
2995 | struct named_init { | |
2996 | int number; | |
2997 | const wchar_t *name; | |
2998 | double average; | |
2999 | }; | |
3000 | ||
3001 | typedef const char *ccp; | |
3002 | ||
3003 | static inline int | |
3004 | test_restrict (ccp restrict text) | |
3005 | { | |
6b2e4ec5 ZK |
3006 | // Iterate through items via the restricted pointer. |
3007 | // Also check for declarations in for loops. | |
3008 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) | |
3009 | continue; | |
3010 | return 0; | |
3011 | } | |
3012 | ||
3013 | // Check varargs and va_copy. | |
3014 | static bool | |
3015 | test_varargs (const char *format, ...) | |
3016 | { | |
3017 | va_list args; | |
3018 | va_start (args, format); | |
3019 | va_list args_copy; | |
3020 | va_copy (args_copy, args); | |
3021 | ||
3022 | const char *str = ""; | |
3023 | int number = 0; | |
3024 | float fnumber = 0; | |
3025 | ||
3026 | while (*format) | |
3027 | { | |
3028 | switch (*format++) | |
3029 | { | |
3030 | case '\''s'\'': // string | |
3031 | str = va_arg (args_copy, const char *); | |
3032 | break; | |
3033 | case '\''d'\'': // int | |
3034 | number = va_arg (args_copy, int); | |
3035 | break; | |
3036 | case '\''f'\'': // float | |
3037 | fnumber = va_arg (args_copy, double); | |
3038 | break; | |
3039 | default: | |
3040 | break; | |
3041 | } | |
3042 | } | |
3043 | va_end (args_copy); | |
3044 | va_end (args); | |
3045 | ||
3046 | return *str && number && fnumber; | |
3047 | } | |
3048 | ' | |
3049 | ||
3050 | # Test code for whether the C compiler supports C99 (body of main). | |
3051 | ac_c_conftest_c99_main=' | |
3052 | // Check bool. | |
3053 | _Bool success = false; | |
3054 | success |= (argc != 0); | |
3055 | ||
3056 | // Check restrict. | |
3057 | if (test_restrict ("String literal") == 0) | |
3058 | success = true; | |
3059 | char *restrict newvar = "Another string"; | |
3060 | ||
3061 | // Check varargs. | |
3062 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); | |
3063 | test_varargs_macros (); | |
3064 | ||
3065 | // Check flexible array members. | |
3066 | struct incomplete_array *ia = | |
3067 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
3068 | ia->datasize = 10; | |
3069 | for (int i = 0; i < ia->datasize; ++i) | |
3070 | ia->data[i] = i * 1.234; | |
635df748 ZK |
3071 | // Work around memory leak warnings. |
3072 | free (ia); | |
6b2e4ec5 ZK |
3073 | |
3074 | // Check named initializers. | |
3075 | struct named_init ni = { | |
3076 | .number = 34, | |
3077 | .name = L"Test wide string", | |
3078 | .average = 543.34343, | |
3079 | }; | |
3080 | ||
3081 | ni.number = 58; | |
3082 | ||
3083 | int dynamic_array[ni.number]; | |
3084 | dynamic_array[0] = argv[0][0]; | |
3085 | dynamic_array[ni.number - 1] = 543; | |
3086 | ||
3087 | // work around unused variable warnings | |
3088 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' | |
3089 | || dynamic_array[ni.number - 1] != 543); | |
3090 | ' | |
3091 | ||
3092 | # Test code for whether the C compiler supports C11 (global declarations) | |
3093 | ac_c_conftest_c11_globals=' | |
635df748 | 3094 | /* Does the compiler advertise C11 conformance? */ |
6b2e4ec5 ZK |
3095 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
3096 | # error "Compiler does not advertise C11 conformance" | |
3097 | #endif | |
3098 | ||
3099 | // Check _Alignas. | |
3100 | char _Alignas (double) aligned_as_double; | |
3101 | char _Alignas (0) no_special_alignment; | |
3102 | extern char aligned_as_int; | |
3103 | char _Alignas (0) _Alignas (int) aligned_as_int; | |
3104 | ||
3105 | // Check _Alignof. | |
3106 | enum | |
3107 | { | |
3108 | int_alignment = _Alignof (int), | |
3109 | int_array_alignment = _Alignof (int[100]), | |
3110 | char_alignment = _Alignof (char) | |
3111 | }; | |
3112 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | |
3113 | ||
3114 | // Check _Noreturn. | |
3115 | int _Noreturn does_not_return (void) { for (;;) continue; } | |
3116 | ||
3117 | // Check _Static_assert. | |
3118 | struct test_static_assert | |
3119 | { | |
3120 | int x; | |
3121 | _Static_assert (sizeof (int) <= sizeof (long int), | |
3122 | "_Static_assert does not work in struct"); | |
3123 | long int y; | |
3124 | }; | |
3125 | ||
3126 | // Check UTF-8 literals. | |
3127 | #define u8 syntax error! | |
3128 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; | |
3129 | ||
3130 | // Check duplicate typedefs. | |
3131 | typedef long *long_ptr; | |
3132 | typedef long int *long_ptr; | |
3133 | typedef long_ptr long_ptr; | |
3134 | ||
3135 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | |
3136 | struct anonymous | |
3137 | { | |
3138 | union { | |
3139 | struct { int i; int j; }; | |
3140 | struct { int k; long int l; } w; | |
3141 | }; | |
3142 | int m; | |
3143 | } v1; | |
3144 | ' | |
3145 | ||
3146 | # Test code for whether the C compiler supports C11 (body of main). | |
3147 | ac_c_conftest_c11_main=' | |
3148 | _Static_assert ((offsetof (struct anonymous, i) | |
3149 | == offsetof (struct anonymous, w.k)), | |
3150 | "Anonymous union alignment botch"); | |
3151 | v1.i = 2; | |
3152 | v1.w.k = 5; | |
3153 | ok |= v1.i != 5; | |
3154 | ' | |
3155 | ||
3156 | # Test code for whether the C compiler supports C11 (complete). | |
3157 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} | |
3158 | ${ac_c_conftest_c99_globals} | |
3159 | ${ac_c_conftest_c11_globals} | |
3160 | ||
3161 | int | |
3162 | main (int argc, char **argv) | |
3163 | { | |
3164 | int ok = 0; | |
3165 | ${ac_c_conftest_c89_main} | |
3166 | ${ac_c_conftest_c99_main} | |
3167 | ${ac_c_conftest_c11_main} | |
3168 | return ok; | |
3169 | } | |
3170 | " | |
3171 | ||
3172 | # Test code for whether the C compiler supports C99 (complete). | |
3173 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} | |
3174 | ${ac_c_conftest_c99_globals} | |
3175 | ||
3176 | int | |
3177 | main (int argc, char **argv) | |
3178 | { | |
3179 | int ok = 0; | |
3180 | ${ac_c_conftest_c89_main} | |
3181 | ${ac_c_conftest_c99_main} | |
3182 | return ok; | |
3183 | } | |
3184 | " | |
3185 | ||
3186 | # Test code for whether the C compiler supports C89 (complete). | |
3187 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} | |
3188 | ||
3189 | int | |
3190 | main (int argc, char **argv) | |
3191 | { | |
3192 | int ok = 0; | |
3193 | ${ac_c_conftest_c89_main} | |
3194 | return ok; | |
3195 | } | |
3196 | " | |
3197 | ||
3198 | # Test code for whether the C++ compiler supports C++98 (global declarations) | |
3199 | ac_cxx_conftest_cxx98_globals=' | |
3200 | // Does the compiler advertise C++98 conformance? | |
3201 | #if !defined __cplusplus || __cplusplus < 199711L | |
3202 | # error "Compiler does not advertise C++98 conformance" | |
3203 | #endif | |
3204 | ||
3205 | // These inclusions are to reject old compilers that | |
3206 | // lack the unsuffixed header files. | |
3207 | #include <cstdlib> | |
3208 | #include <exception> | |
3209 | ||
3210 | // <cassert> and <cstring> are *not* freestanding headers in C++98. | |
3211 | extern void assert (int); | |
3212 | namespace std { | |
3213 | extern int strcmp (const char *, const char *); | |
3214 | } | |
3215 | ||
3216 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". | |
3217 | using std::exception; | |
3218 | using std::strcmp; | |
3219 | ||
3220 | namespace { | |
3221 | ||
3222 | void test_exception_syntax() | |
3223 | { | |
3224 | try { | |
3225 | throw "test"; | |
3226 | } catch (const char *s) { | |
3227 | // Extra parentheses suppress a warning when building autoconf itself, | |
3228 | // due to lint rules shared with more typical C programs. | |
3229 | assert (!(strcmp) (s, "test")); | |
3230 | } | |
3231 | } | |
3232 | ||
3233 | template <typename T> struct test_template | |
3234 | { | |
3235 | T const val; | |
3236 | explicit test_template(T t) : val(t) {} | |
3237 | template <typename U> T add(U u) { return static_cast<T>(u) + val; } | |
3238 | }; | |
3239 | ||
3240 | } // anonymous namespace | |
3241 | ' | |
3242 | ||
3243 | # Test code for whether the C++ compiler supports C++98 (body of main) | |
3244 | ac_cxx_conftest_cxx98_main=' | |
3245 | assert (argc); | |
3246 | assert (! argv[0]); | |
3247 | { | |
3248 | test_exception_syntax (); | |
3249 | test_template<double> tt (2.0); | |
3250 | assert (tt.add (4) == 6.0); | |
3251 | assert (true && !false); | |
3252 | } | |
3253 | ' | |
3254 | ||
3255 | # Test code for whether the C++ compiler supports C++11 (global declarations) | |
3256 | ac_cxx_conftest_cxx11_globals=' | |
3257 | // Does the compiler advertise C++ 2011 conformance? | |
3258 | #if !defined __cplusplus || __cplusplus < 201103L | |
3259 | # error "Compiler does not advertise C++11 conformance" | |
3260 | #endif | |
3261 | ||
3262 | namespace cxx11test | |
3263 | { | |
3264 | constexpr int get_val() { return 20; } | |
3265 | ||
3266 | struct testinit | |
3267 | { | |
3268 | int i; | |
3269 | double d; | |
3270 | }; | |
3271 | ||
3272 | class delegate | |
3273 | { | |
3274 | public: | |
3275 | delegate(int n) : n(n) {} | |
3276 | delegate(): delegate(2354) {} | |
3277 | ||
3278 | virtual int getval() { return this->n; }; | |
3279 | protected: | |
3280 | int n; | |
3281 | }; | |
3282 | ||
3283 | class overridden : public delegate | |
3284 | { | |
3285 | public: | |
3286 | overridden(int n): delegate(n) {} | |
3287 | virtual int getval() override final { return this->n * 2; } | |
3288 | }; | |
3289 | ||
3290 | class nocopy | |
3291 | { | |
3292 | public: | |
3293 | nocopy(int i): i(i) {} | |
3294 | nocopy() = default; | |
3295 | nocopy(const nocopy&) = delete; | |
3296 | nocopy & operator=(const nocopy&) = delete; | |
3297 | private: | |
3298 | int i; | |
3299 | }; | |
3300 | ||
3301 | // for testing lambda expressions | |
3302 | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) | |
3303 | { | |
3304 | return f(v); | |
3305 | } | |
3306 | ||
3307 | // for testing variadic templates and trailing return types | |
3308 | template <typename V> auto sum(V first) -> V | |
3309 | { | |
3310 | return first; | |
3311 | } | |
3312 | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V | |
3313 | { | |
3314 | return first + sum(rest...); | |
3315 | } | |
3316 | } | |
3317 | ' | |
3318 | ||
3319 | # Test code for whether the C++ compiler supports C++11 (body of main) | |
3320 | ac_cxx_conftest_cxx11_main=' | |
3321 | { | |
3322 | // Test auto and decltype | |
3323 | auto a1 = 6538; | |
3324 | auto a2 = 48573953.4; | |
3325 | auto a3 = "String literal"; | |
3326 | ||
3327 | int total = 0; | |
3328 | for (auto i = a3; *i; ++i) { total += *i; } | |
3329 | ||
3330 | decltype(a2) a4 = 34895.034; | |
3331 | } | |
3332 | { | |
3333 | // Test constexpr | |
3334 | short sa[cxx11test::get_val()] = { 0 }; | |
3335 | } | |
3336 | { | |
3337 | // Test initializer lists | |
3338 | cxx11test::testinit il = { 4323, 435234.23544 }; | |
3339 | } | |
3340 | { | |
3341 | // Test range-based for | |
3342 | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, | |
3343 | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; | |
3344 | for (auto &x : array) { x += 23; } | |
3345 | } | |
3346 | { | |
3347 | // Test lambda expressions | |
3348 | using cxx11test::eval; | |
3349 | assert (eval ([](int x) { return x*2; }, 21) == 42); | |
3350 | double d = 2.0; | |
3351 | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); | |
3352 | assert (d == 5.0); | |
3353 | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); | |
3354 | assert (d == 5.0); | |
3355 | } | |
3356 | { | |
3357 | // Test use of variadic templates | |
3358 | using cxx11test::sum; | |
3359 | auto a = sum(1); | |
3360 | auto b = sum(1, 2); | |
3361 | auto c = sum(1.0, 2.0, 3.0); | |
3362 | } | |
3363 | { | |
3364 | // Test constructor delegation | |
3365 | cxx11test::delegate d1; | |
3366 | cxx11test::delegate d2(); | |
3367 | cxx11test::delegate d3(45); | |
3368 | } | |
3369 | { | |
3370 | // Test override and final | |
3371 | cxx11test::overridden o1(55464); | |
3372 | } | |
3373 | { | |
3374 | // Test nullptr | |
3375 | char *c = nullptr; | |
3376 | } | |
3377 | { | |
3378 | // Test template brackets | |
3379 | test_template<::test_template<int>> v(test_template<int>(12)); | |
3380 | } | |
3381 | { | |
3382 | // Unicode literals | |
3383 | char const *utf8 = u8"UTF-8 string \u2500"; | |
3384 | char16_t const *utf16 = u"UTF-8 string \u2500"; | |
3385 | char32_t const *utf32 = U"UTF-32 string \u2500"; | |
3386 | } | |
3387 | ' | |
3388 | ||
3389 | # Test code for whether the C compiler supports C++11 (complete). | |
3390 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} | |
3391 | ${ac_cxx_conftest_cxx11_globals} | |
3392 | ||
3393 | int | |
3394 | main (int argc, char **argv) | |
3395 | { | |
3396 | int ok = 0; | |
3397 | ${ac_cxx_conftest_cxx98_main} | |
3398 | ${ac_cxx_conftest_cxx11_main} | |
3399 | return ok; | |
3400 | } | |
3401 | " | |
3402 | ||
3403 | # Test code for whether the C compiler supports C++98 (complete). | |
3404 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} | |
3405 | int | |
3406 | main (int argc, char **argv) | |
3407 | { | |
3408 | int ok = 0; | |
3409 | ${ac_cxx_conftest_cxx98_main} | |
3410 | return ok; | |
3411 | } | |
3412 | " | |
3413 | ||
3414 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" | |
3415 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" | |
3416 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" | |
3417 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" | |
3418 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" | |
3419 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" | |
3420 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" | |
3421 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" | |
3422 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" | |
6b2e4ec5 ZK |
3423 | as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" |
3424 | as_fn_append ac_func_c_list " fork HAVE_FORK" | |
3425 | as_fn_append ac_func_c_list " vfork HAVE_VFORK" | |
5aa8683e | 3426 | as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" |
6b2e4ec5 ZK |
3427 | as_fn_append ac_func_c_list " alarm HAVE_ALARM" |
3428 | as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" | |
3429 | as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" | |
3430 | as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF" | |
3431 | ||
3432 | # Auxiliary files required by this configure script. | |
3433 | ac_aux_files="install-sh config.guess config.sub" | |
3434 | ||
3435 | # Locations in which to look for auxiliary files. | |
3436 | ac_aux_dir_candidates="${srcdir}/autoconf" | |
3437 | ||
3438 | # Search for a directory containing all of the required auxiliary files, | |
3439 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. | |
3440 | # If we don't find one directory that contains all the files we need, | |
3441 | # we report the set of missing files from the *first* directory in | |
3442 | # $ac_aux_dir_candidates and give up. | |
3443 | ac_missing_aux_files="" | |
3444 | ac_first_candidate=: | |
3445 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 | |
3446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3447 | as_found=false | |
3448 | for as_dir in $ac_aux_dir_candidates | |
3449 | do | |
3450 | IFS=$as_save_IFS | |
3451 | case $as_dir in #((( | |
3452 | '') as_dir=./ ;; | |
3453 | */) ;; | |
3454 | *) as_dir=$as_dir/ ;; | |
3455 | esac | |
3456 | as_found=: | |
3457 | ||
3458 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 | |
3459 | ac_aux_dir_found=yes | |
3460 | ac_install_sh= | |
3461 | for ac_aux in $ac_aux_files | |
3462 | do | |
3463 | # As a special case, if "install-sh" is required, that requirement | |
3464 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", | |
3465 | # and $ac_install_sh is set appropriately for whichever one is found. | |
3466 | if test x"$ac_aux" = x"install-sh" | |
3467 | then | |
3468 | if test -f "${as_dir}install-sh"; then | |
3469 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 | |
3470 | ac_install_sh="${as_dir}install-sh -c" | |
3471 | elif test -f "${as_dir}install.sh"; then | |
3472 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 | |
3473 | ac_install_sh="${as_dir}install.sh -c" | |
3474 | elif test -f "${as_dir}shtool"; then | |
3475 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 | |
3476 | ac_install_sh="${as_dir}shtool install -c" | |
3477 | else | |
3478 | ac_aux_dir_found=no | |
3479 | if $ac_first_candidate; then | |
3480 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" | |
3481 | else | |
3482 | break | |
3483 | fi | |
3484 | fi | |
3485 | else | |
3486 | if test -f "${as_dir}${ac_aux}"; then | |
3487 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 | |
3488 | else | |
3489 | ac_aux_dir_found=no | |
3490 | if $ac_first_candidate; then | |
3491 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" | |
3492 | else | |
3493 | break | |
3494 | fi | |
3495 | fi | |
3496 | fi | |
3497 | done | |
3498 | if test "$ac_aux_dir_found" = yes; then | |
3499 | ac_aux_dir="$as_dir" | |
3500 | break | |
3501 | fi | |
3502 | ac_first_candidate=false | |
3503 | ||
3504 | as_found=false | |
3505 | done | |
3506 | IFS=$as_save_IFS | |
3507 | if $as_found | |
3508 | then : | |
3509 | ||
635df748 ZK |
3510 | else case e in #( |
3511 | e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; | |
3512 | esac | |
6b2e4ec5 ZK |
3513 | fi |
3514 | ||
3515 | ||
3516 | # These three variables are undocumented and unsupported, | |
3517 | # and are intended to be withdrawn in a future Autoconf release. | |
3518 | # They can cause serious problems if a builder's source tree is in a directory | |
3519 | # whose full name contains unusual characters. | |
3520 | if test -f "${ac_aux_dir}config.guess"; then | |
3521 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" | |
3522 | fi | |
3523 | if test -f "${ac_aux_dir}config.sub"; then | |
3524 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" | |
3525 | fi | |
3526 | if test -f "$ac_aux_dir/configure"; then | |
3527 | ac_configure="$SHELL ${ac_aux_dir}configure" | |
3528 | fi | |
3529 | ||
3530 | # Check that the precious variables saved in the cache have kept the same | |
3531 | # value. | |
3532 | ac_cache_corrupted=false | |
3533 | for ac_var in $ac_precious_vars; do | |
3534 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
3535 | eval ac_new_set=\$ac_env_${ac_var}_set | |
3536 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
3537 | eval ac_new_val=\$ac_env_${ac_var}_value | |
3538 | case $ac_old_set,$ac_new_set in | |
3539 | set,) | |
635df748 ZK |
3540 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 |
3541 | printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} | |
6b2e4ec5 ZK |
3542 | ac_cache_corrupted=: ;; |
3543 | ,set) | |
635df748 ZK |
3544 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 |
3545 | printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} | |
6b2e4ec5 ZK |
3546 | ac_cache_corrupted=: ;; |
3547 | ,);; | |
3548 | *) | |
3549 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
3550 | # differences in whitespace do not lead to failure. | |
3551 | ac_old_val_w=`echo x $ac_old_val` | |
3552 | ac_new_val_w=`echo x $ac_new_val` | |
3553 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
635df748 ZK |
3554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 |
3555 | printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} | |
6b2e4ec5 ZK |
3556 | ac_cache_corrupted=: |
3557 | else | |
635df748 ZK |
3558 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 |
3559 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} | |
6b2e4ec5 ZK |
3560 | eval $ac_var=\$ac_old_val |
3561 | fi | |
635df748 ZK |
3562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 |
3563 | printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} | |
3564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 | |
3565 | printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} | |
6b2e4ec5 ZK |
3566 | fi;; |
3567 | esac | |
3568 | # Pass precious variables to config.status. | |
3569 | if test "$ac_new_set" = set; then | |
3570 | case $ac_new_val in | |
3571 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3572 | *) ac_arg=$ac_var=$ac_new_val ;; | |
3573 | esac | |
3574 | case " $ac_configure_args " in | |
3575 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
3576 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
3577 | esac | |
3578 | fi | |
f11781c5 AK |
3579 | done |
3580 | if $ac_cache_corrupted; then | |
635df748 ZK |
3581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
3582 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
6b2e4ec5 ZK |
3583 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
3584 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} | |
635df748 | 3585 | as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' |
6b2e4ec5 | 3586 | and start over" "$LINENO" 5 |
ad6254c5 | 3587 | fi |
f11781c5 AK |
3588 | ## -------------------- ## |
3589 | ## Main body of script. ## | |
3590 | ## -------------------- ## | |
ad6254c5 | 3591 | |
f11781c5 AK |
3592 | ac_ext=c |
3593 | ac_cpp='$CPP $CPPFLAGS' | |
3594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 3597 | |
ad6254c5 | 3598 | |
e8362b4c | 3599 | CONFIGURE_LINE="$0 $@" |
ad6254c5 | 3600 | |
95b5d24f | 3601 | ac_config_headers="$ac_config_headers include/configure.h" |
7a197a62 AK |
3602 | |
3603 | ||
f11781c5 | 3604 | ################################################################################ |
ad6254c5 | 3605 | |
ad6254c5 | 3606 | |
6b2e4ec5 | 3607 | ################################################################################ |
ad6254c5 | 3608 | |
8a2fc586 | 3609 | |
ad6254c5 | 3610 | |
6b2e4ec5 ZK |
3611 | # Make sure we can run config.sub. |
3612 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || | |
3613 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 | |
3614 | ||
3615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3616 | printf %s "checking build system type... " >&6; } | |
3617 | if test ${ac_cv_build+y} | |
3618 | then : | |
3619 | printf %s "(cached) " >&6 | |
635df748 ZK |
3620 | else case e in #( |
3621 | e) ac_build_alias=$build_alias | |
f11781c5 | 3622 | test "x$ac_build_alias" = x && |
6b2e4ec5 | 3623 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
f11781c5 AK |
3624 | test "x$ac_build_alias" = x && |
3625 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
6b2e4ec5 ZK |
3626 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
3627 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 | |
635df748 ZK |
3628 | ;; |
3629 | esac | |
ad6254c5 | 3630 | fi |
6b2e4ec5 ZK |
3631 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3632 | printf "%s\n" "$ac_cv_build" >&6; } | |
f11781c5 AK |
3633 | case $ac_cv_build in |
3634 | *-*-*) ;; | |
3635 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
3636 | esac | |
3637 | build=$ac_cv_build | |
3638 | ac_save_IFS=$IFS; IFS='-' | |
3639 | set x $ac_cv_build | |
3640 | shift | |
3641 | build_cpu=$1 | |
3642 | build_vendor=$2 | |
3643 | shift; shift | |
3644 | # Remember, the first character of IFS is used to create $*, | |
3645 | # except with old shells: | |
3646 | build_os=$* | |
3647 | IFS=$ac_save_IFS | |
3648 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
3649 | |
3650 | ||
6b2e4ec5 ZK |
3651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
3652 | printf %s "checking host system type... " >&6; } | |
3653 | if test ${ac_cv_host+y} | |
3654 | then : | |
3655 | printf %s "(cached) " >&6 | |
635df748 ZK |
3656 | else case e in #( |
3657 | e) if test "x$host_alias" = x; then | |
f11781c5 | 3658 | ac_cv_host=$ac_cv_build |
ad6254c5 | 3659 | else |
6b2e4ec5 ZK |
3660 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
3661 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 | |
f11781c5 | 3662 | fi |
635df748 ZK |
3663 | ;; |
3664 | esac | |
f11781c5 | 3665 | fi |
6b2e4ec5 ZK |
3666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3667 | printf "%s\n" "$ac_cv_host" >&6; } | |
f11781c5 AK |
3668 | case $ac_cv_host in |
3669 | *-*-*) ;; | |
3670 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3671 | esac | |
3672 | host=$ac_cv_host | |
3673 | ac_save_IFS=$IFS; IFS='-' | |
3674 | set x $ac_cv_host | |
3675 | shift | |
3676 | host_cpu=$1 | |
3677 | host_vendor=$2 | |
3678 | shift; shift | |
3679 | # Remember, the first character of IFS is used to create $*, | |
3680 | # except with old shells: | |
3681 | host_os=$* | |
3682 | IFS=$ac_save_IFS | |
3683 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 | 3684 | |
ad6254c5 | 3685 | |
6b2e4ec5 ZK |
3686 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
3687 | printf %s "checking target system type... " >&6; } | |
3688 | if test ${ac_cv_target+y} | |
3689 | then : | |
3690 | printf %s "(cached) " >&6 | |
635df748 ZK |
3691 | else case e in #( |
3692 | e) if test "x$target_alias" = x; then | |
f11781c5 AK |
3693 | ac_cv_target=$ac_cv_host |
3694 | else | |
6b2e4ec5 ZK |
3695 | ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || |
3696 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 | |
ad6254c5 | 3697 | fi |
635df748 ZK |
3698 | ;; |
3699 | esac | |
ad6254c5 | 3700 | fi |
6b2e4ec5 ZK |
3701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
3702 | printf "%s\n" "$ac_cv_target" >&6; } | |
f11781c5 AK |
3703 | case $ac_cv_target in |
3704 | *-*-*) ;; | |
3705 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
8a2fc586 | 3706 | esac |
f11781c5 AK |
3707 | target=$ac_cv_target |
3708 | ac_save_IFS=$IFS; IFS='-' | |
3709 | set x $ac_cv_target | |
3710 | shift | |
3711 | target_cpu=$1 | |
3712 | target_vendor=$2 | |
3713 | shift; shift | |
3714 | # Remember, the first character of IFS is used to create $*, | |
3715 | # except with old shells: | |
3716 | target_os=$* | |
3717 | IFS=$ac_save_IFS | |
3718 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8a2fc586 | 3719 | |
ad6254c5 | 3720 | |
f11781c5 AK |
3721 | # The aliases save the names the user supplied, while $host etc. |
3722 | # will get canonicalized. | |
3723 | test -n "$target_alias" && | |
3724 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3725 | NONENONEs,x,x, && | |
3726 | program_prefix=${target_alias}- | |
ad6254c5 | 3727 | |
6b2e4ec5 ZK |
3728 | if test -z "$CFLAGS" |
3729 | then : | |
3fa66d10 ZK |
3730 | COPTIMISE_FLAG="-O2" |
3731 | fi | |
b681b774 ZK |
3732 | case "$host_os" in #( |
3733 | linux*) : | |
3734 | ||
57727bb4 | 3735 | # equivalent to -rdynamic |
bf09a320 | 3736 | ELDFLAGS="-Wl,--export-dynamic" |
86ac529b | 3737 | STATIC_LDFLAGS="-Wl,--no-export-dynamic" |
bf09a320 | 3738 | # FIXME Generate list and use --dynamic-list=.dlopen.sym |
f11781c5 AK |
3739 | CLDWHOLEARCHIVE="-Wl,-whole-archive" |
3740 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
b681b774 ZK |
3741 | LIB_SUFFIX="so" |
3742 | DEVMAPPER="yes" | |
b681b774 ZK |
3743 | ODIRECT="yes" |
3744 | DM_IOCTLS="yes" | |
3745 | SELINUX="yes" | |
3746 | FSADM="yes" | |
3747 | LVMIMPORTVDO="yes" | |
3748 | BLKDEACTIVATE="yes" ;; #( | |
3749 | darwin*) : | |
3750 | ||
f11781c5 | 3751 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" |
bf09a320 | 3752 | ELDFLAGS= |
f11781c5 AK |
3753 | CLDWHOLEARCHIVE="-all_load" |
3754 | CLDNOWHOLEARCHIVE= | |
b681b774 ZK |
3755 | LIB_SUFFIX="dylib" |
3756 | DEVMAPPER="yes" | |
3757 | ODIRECT="no" | |
3758 | DM_IOCTLS="no" | |
3759 | SELINUX="no" | |
3760 | FSADM="no" | |
3761 | LVMIMPORTVDO="no" | |
3762 | BLKDEACTIVATE="no" ;; #( | |
3763 | *) : | |
f569ac59 | 3764 | ;; |
f11781c5 | 3765 | esac |
ad6254c5 | 3766 | |
f11781c5 | 3767 | ################################################################################ |
6b2e4ec5 ZK |
3768 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
3769 | printf %s "checking for a sed that does not truncate output... " >&6; } | |
3770 | if test ${ac_cv_path_SED+y} | |
3771 | then : | |
3772 | printf %s "(cached) " >&6 | |
635df748 ZK |
3773 | else case e in #( |
3774 | e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
f11781c5 AK |
3775 | for ac_i in 1 2 3 4 5 6 7; do |
3776 | ac_script="$ac_script$as_nl$ac_script" | |
3777 | done | |
3778 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3779 | { ac_script=; unset ac_script;} | |
3780 | if test -z "$SED"; then | |
3781 | ac_path_SED_found=false | |
3782 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3784 | for as_dir in $PATH | |
3785 | do | |
3786 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
3787 | case $as_dir in #((( |
3788 | '') as_dir=./ ;; | |
3789 | */) ;; | |
3790 | *) as_dir=$as_dir/ ;; | |
3791 | esac | |
3792 | for ac_prog in sed gsed | |
3793 | do | |
f11781c5 | 3794 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 3795 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext" |
4d0c3ed0 | 3796 | as_fn_executable_p "$ac_path_SED" || continue |
f11781c5 AK |
3797 | # Check for GNU ac_path_SED and select it if it is found. |
3798 | # Check for GNU $ac_path_SED | |
635df748 | 3799 | case `"$ac_path_SED" --version 2>&1` in #( |
f11781c5 AK |
3800 | *GNU*) |
3801 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
635df748 | 3802 | #( |
f11781c5 AK |
3803 | *) |
3804 | ac_count=0 | |
6b2e4ec5 | 3805 | printf %s 0123456789 >"conftest.in" |
f11781c5 AK |
3806 | while : |
3807 | do | |
3808 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3809 | mv "conftest.tmp" "conftest.in" | |
3810 | cp "conftest.in" "conftest.nl" | |
6b2e4ec5 | 3811 | printf "%s\n" '' >> "conftest.nl" |
f11781c5 AK |
3812 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3813 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3814 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3815 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3816 | # Best one so far, save it but keep looking for a better one | |
3817 | ac_cv_path_SED="$ac_path_SED" | |
3818 | ac_path_SED_max=$ac_count | |
3819 | fi | |
3820 | # 10*(2^10) chars as input seems more than enough | |
3821 | test $ac_count -gt 10 && break | |
3822 | done | |
3823 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7a197a62 | 3824 | esac |
ad6254c5 | 3825 | |
f11781c5 AK |
3826 | $ac_path_SED_found && break 3 |
3827 | done | |
3828 | done | |
3829 | done | |
3830 | IFS=$as_save_IFS | |
3831 | if test -z "$ac_cv_path_SED"; then | |
3832 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
3833 | fi | |
3834 | else | |
3835 | ac_cv_path_SED=$SED | |
ad6254c5 | 3836 | fi |
635df748 ZK |
3837 | ;; |
3838 | esac | |
f11781c5 | 3839 | fi |
6b2e4ec5 ZK |
3840 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
3841 | printf "%s\n" "$ac_cv_path_SED" >&6; } | |
f11781c5 AK |
3842 | SED="$ac_cv_path_SED" |
3843 | rm -f conftest.sed | |
ad6254c5 | 3844 | |
f11781c5 AK |
3845 | for ac_prog in gawk mawk nawk awk |
3846 | do | |
3847 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3848 | set dummy $ac_prog; ac_word=$2 | |
6b2e4ec5 ZK |
3849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3850 | printf %s "checking for $ac_word... " >&6; } | |
3851 | if test ${ac_cv_prog_AWK+y} | |
3852 | then : | |
3853 | printf %s "(cached) " >&6 | |
635df748 ZK |
3854 | else case e in #( |
3855 | e) if test -n "$AWK"; then | |
f11781c5 AK |
3856 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
3857 | else | |
3858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3859 | for as_dir in $PATH | |
3860 | do | |
3861 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
3862 | case $as_dir in #((( |
3863 | '') as_dir=./ ;; | |
3864 | */) ;; | |
3865 | *) as_dir=$as_dir/ ;; | |
3866 | esac | |
f11781c5 | 3867 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 3868 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
f11781c5 | 3869 | ac_cv_prog_AWK="$ac_prog" |
6b2e4ec5 | 3870 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
f11781c5 AK |
3871 | break 2 |
3872 | fi | |
3873 | done | |
3874 | done | |
3875 | IFS=$as_save_IFS | |
ad6254c5 | 3876 | |
635df748 ZK |
3877 | fi ;; |
3878 | esac | |
ad6254c5 | 3879 | fi |
f11781c5 AK |
3880 | AWK=$ac_cv_prog_AWK |
3881 | if test -n "$AWK"; then | |
6b2e4ec5 ZK |
3882 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3883 | printf "%s\n" "$AWK" >&6; } | |
f11781c5 | 3884 | else |
6b2e4ec5 ZK |
3885 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3886 | printf "%s\n" "no" >&6; } | |
ad6254c5 | 3887 | fi |
ad6254c5 | 3888 | |
ad6254c5 | 3889 | |
f11781c5 | 3890 | test -n "$AWK" && break |
ad6254c5 AK |
3891 | done |
3892 | ||
f207a6d3 ZK |
3893 | save_CFLAGS=$CFLAGS |
3894 | save_CXXFLAGS=$CXXFLAGS | |
6b2e4ec5 ZK |
3895 | |
3896 | ||
3897 | ||
3898 | ||
3899 | ||
3900 | ||
3901 | ||
3902 | ||
3903 | ||
f11781c5 AK |
3904 | ac_ext=c |
3905 | ac_cpp='$CPP $CPPFLAGS' | |
3906 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3907 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3908 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3909 | if test -n "$ac_tool_prefix"; then | |
3910 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3911 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
6b2e4ec5 ZK |
3912 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3913 | printf %s "checking for $ac_word... " >&6; } | |
3914 | if test ${ac_cv_prog_CC+y} | |
3915 | then : | |
3916 | printf %s "(cached) " >&6 | |
635df748 ZK |
3917 | else case e in #( |
3918 | e) if test -n "$CC"; then | |
f11781c5 | 3919 | ac_cv_prog_CC="$CC" # Let the user override the test. |
ad6254c5 | 3920 | else |
f11781c5 AK |
3921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3922 | for as_dir in $PATH | |
3923 | do | |
3924 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
3925 | case $as_dir in #((( |
3926 | '') as_dir=./ ;; | |
3927 | */) ;; | |
3928 | *) as_dir=$as_dir/ ;; | |
3929 | esac | |
f11781c5 | 3930 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 3931 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
f11781c5 | 3932 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
6b2e4ec5 | 3933 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
f11781c5 AK |
3934 | break 2 |
3935 | fi | |
3936 | done | |
3937 | done | |
3938 | IFS=$as_save_IFS | |
ad6254c5 | 3939 | |
635df748 ZK |
3940 | fi ;; |
3941 | esac | |
ad6254c5 | 3942 | fi |
f11781c5 AK |
3943 | CC=$ac_cv_prog_CC |
3944 | if test -n "$CC"; then | |
6b2e4ec5 ZK |
3945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3946 | printf "%s\n" "$CC" >&6; } | |
f11781c5 | 3947 | else |
6b2e4ec5 ZK |
3948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3949 | printf "%s\n" "no" >&6; } | |
ad6254c5 | 3950 | fi |
ad6254c5 | 3951 | |
f11781c5 AK |
3952 | |
3953 | fi | |
3954 | if test -z "$ac_cv_prog_CC"; then | |
3955 | ac_ct_CC=$CC | |
3956 | # Extract the first word of "gcc", so it can be a program name with args. | |
3957 | set dummy gcc; ac_word=$2 | |
6b2e4ec5 ZK |
3958 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3959 | printf %s "checking for $ac_word... " >&6; } | |
3960 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3961 | then : | |
3962 | printf %s "(cached) " >&6 | |
635df748 ZK |
3963 | else case e in #( |
3964 | e) if test -n "$ac_ct_CC"; then | |
f11781c5 | 3965 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
d911ec67 | 3966 | else |
f11781c5 AK |
3967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3968 | for as_dir in $PATH | |
3969 | do | |
3970 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
3971 | case $as_dir in #((( |
3972 | '') as_dir=./ ;; | |
3973 | */) ;; | |
3974 | *) as_dir=$as_dir/ ;; | |
3975 | esac | |
f11781c5 | 3976 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 3977 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
f11781c5 | 3978 | ac_cv_prog_ac_ct_CC="gcc" |
6b2e4ec5 | 3979 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
f11781c5 AK |
3980 | break 2 |
3981 | fi | |
3982 | done | |
3983 | done | |
3984 | IFS=$as_save_IFS | |
d911ec67 | 3985 | |
635df748 ZK |
3986 | fi ;; |
3987 | esac | |
d911ec67 | 3988 | fi |
f11781c5 AK |
3989 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3990 | if test -n "$ac_ct_CC"; then | |
6b2e4ec5 ZK |
3991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3992 | printf "%s\n" "$ac_ct_CC" >&6; } | |
f11781c5 | 3993 | else |
6b2e4ec5 ZK |
3994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3995 | printf "%s\n" "no" >&6; } | |
d911ec67 | 3996 | fi |
d911ec67 | 3997 | |
f11781c5 AK |
3998 | if test "x$ac_ct_CC" = x; then |
3999 | CC="" | |
4000 | else | |
4001 | case $cross_compiling:$ac_tool_warned in | |
4002 | yes:) | |
6b2e4ec5 ZK |
4003 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4004 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
f11781c5 AK |
4005 | ac_tool_warned=yes ;; |
4006 | esac | |
4007 | CC=$ac_ct_CC | |
4008 | fi | |
4009 | else | |
4010 | CC="$ac_cv_prog_CC" | |
d911ec67 | 4011 | fi |
d911ec67 | 4012 | |
f11781c5 AK |
4013 | if test -z "$CC"; then |
4014 | if test -n "$ac_tool_prefix"; then | |
4015 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4016 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
6b2e4ec5 ZK |
4017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4018 | printf %s "checking for $ac_word... " >&6; } | |
4019 | if test ${ac_cv_prog_CC+y} | |
4020 | then : | |
4021 | printf %s "(cached) " >&6 | |
635df748 ZK |
4022 | else case e in #( |
4023 | e) if test -n "$CC"; then | |
f11781c5 | 4024 | ac_cv_prog_CC="$CC" # Let the user override the test. |
d911ec67 | 4025 | else |
f11781c5 AK |
4026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4027 | for as_dir in $PATH | |
4028 | do | |
4029 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
4030 | case $as_dir in #((( |
4031 | '') as_dir=./ ;; | |
4032 | */) ;; | |
4033 | *) as_dir=$as_dir/ ;; | |
4034 | esac | |
f11781c5 | 4035 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 4036 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
f11781c5 | 4037 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
6b2e4ec5 | 4038 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
f11781c5 AK |
4039 | break 2 |
4040 | fi | |
4041 | done | |
4042 | done | |
4043 | IFS=$as_save_IFS | |
d911ec67 | 4044 | |
635df748 ZK |
4045 | fi ;; |
4046 | esac | |
f11781c5 AK |
4047 | fi |
4048 | CC=$ac_cv_prog_CC | |
4049 | if test -n "$CC"; then | |
6b2e4ec5 ZK |
4050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4051 | printf "%s\n" "$CC" >&6; } | |
f11781c5 | 4052 | else |
6b2e4ec5 ZK |
4053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4054 | printf "%s\n" "no" >&6; } | |
d911ec67 AK |
4055 | fi |
4056 | ||
d911ec67 | 4057 | |
f11781c5 AK |
4058 | fi |
4059 | fi | |
4060 | if test -z "$CC"; then | |
4061 | # Extract the first word of "cc", so it can be a program name with args. | |
4062 | set dummy cc; ac_word=$2 | |
6b2e4ec5 ZK |
4063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4064 | printf %s "checking for $ac_word... " >&6; } | |
4065 | if test ${ac_cv_prog_CC+y} | |
4066 | then : | |
4067 | printf %s "(cached) " >&6 | |
635df748 ZK |
4068 | else case e in #( |
4069 | e) if test -n "$CC"; then | |
f11781c5 AK |
4070 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4071 | else | |
4072 | ac_prog_rejected=no | |
4073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4074 | for as_dir in $PATH | |
4075 | do | |
4076 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
4077 | case $as_dir in #((( |
4078 | '') as_dir=./ ;; | |
4079 | */) ;; | |
4080 | *) as_dir=$as_dir/ ;; | |
4081 | esac | |
f11781c5 | 4082 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
4083 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4084 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
f11781c5 AK |
4085 | ac_prog_rejected=yes |
4086 | continue | |
4087 | fi | |
4088 | ac_cv_prog_CC="cc" | |
6b2e4ec5 | 4089 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
f11781c5 AK |
4090 | break 2 |
4091 | fi | |
4092 | done | |
4093 | done | |
4094 | IFS=$as_save_IFS | |
d911ec67 | 4095 | |
f11781c5 AK |
4096 | if test $ac_prog_rejected = yes; then |
4097 | # We found a bogon in the path, so make sure we never use it. | |
4098 | set dummy $ac_cv_prog_CC | |
4099 | shift | |
4100 | if test $# != 0; then | |
4101 | # We chose a different compiler from the bogus one. | |
4102 | # However, it has the same basename, so the bogon will be chosen | |
4103 | # first if we set CC to just the basename; use the full file name. | |
4104 | shift | |
6b2e4ec5 | 4105 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
f11781c5 AK |
4106 | fi |
4107 | fi | |
635df748 ZK |
4108 | fi ;; |
4109 | esac | |
f11781c5 AK |
4110 | fi |
4111 | CC=$ac_cv_prog_CC | |
4112 | if test -n "$CC"; then | |
6b2e4ec5 ZK |
4113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4114 | printf "%s\n" "$CC" >&6; } | |
f11781c5 | 4115 | else |
6b2e4ec5 ZK |
4116 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4117 | printf "%s\n" "no" >&6; } | |
d911ec67 AK |
4118 | fi |
4119 | ||
d911ec67 | 4120 | |
f11781c5 AK |
4121 | fi |
4122 | if test -z "$CC"; then | |
4123 | if test -n "$ac_tool_prefix"; then | |
4124 | for ac_prog in cl.exe | |
4125 | do | |
4126 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4127 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6b2e4ec5 ZK |
4128 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4129 | printf %s "checking for $ac_word... " >&6; } | |
4130 | if test ${ac_cv_prog_CC+y} | |
4131 | then : | |
4132 | printf %s "(cached) " >&6 | |
635df748 ZK |
4133 | else case e in #( |
4134 | e) if test -n "$CC"; then | |
f11781c5 AK |
4135 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4136 | else | |
4137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4138 | for as_dir in $PATH | |
4139 | do | |
4140 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
4141 | case $as_dir in #((( |
4142 | '') as_dir=./ ;; | |
4143 | */) ;; | |
4144 | *) as_dir=$as_dir/ ;; | |
4145 | esac | |
f11781c5 | 4146 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 4147 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
f11781c5 | 4148 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
6b2e4ec5 | 4149 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
f11781c5 AK |
4150 | break 2 |
4151 | fi | |
4152 | done | |
4153 | done | |
4154 | IFS=$as_save_IFS | |
d911ec67 | 4155 | |
635df748 ZK |
4156 | fi ;; |
4157 | esac | |
f11781c5 AK |
4158 | fi |
4159 | CC=$ac_cv_prog_CC | |
4160 | if test -n "$CC"; then | |
6b2e4ec5 ZK |
4161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4162 | printf "%s\n" "$CC" >&6; } | |
f11781c5 | 4163 | else |
6b2e4ec5 ZK |
4164 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4165 | printf "%s\n" "no" >&6; } | |
d911ec67 AK |
4166 | fi |
4167 | ||
d911ec67 | 4168 | |
f11781c5 AK |
4169 | test -n "$CC" && break |
4170 | done | |
4171 | fi | |
4172 | if test -z "$CC"; then | |
4173 | ac_ct_CC=$CC | |
4174 | for ac_prog in cl.exe | |
4175 | do | |
4176 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4177 | set dummy $ac_prog; ac_word=$2 | |
6b2e4ec5 ZK |
4178 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4179 | printf %s "checking for $ac_word... " >&6; } | |
4180 | if test ${ac_cv_prog_ac_ct_CC+y} | |
4181 | then : | |
4182 | printf %s "(cached) " >&6 | |
635df748 ZK |
4183 | else case e in #( |
4184 | e) if test -n "$ac_ct_CC"; then | |
f11781c5 | 4185 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
ad6254c5 | 4186 | else |
f11781c5 AK |
4187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4188 | for as_dir in $PATH | |
4189 | do | |
4190 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
4191 | case $as_dir in #((( |
4192 | '') as_dir=./ ;; | |
4193 | */) ;; | |
4194 | *) as_dir=$as_dir/ ;; | |
4195 | esac | |
f11781c5 | 4196 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 4197 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
f11781c5 | 4198 | ac_cv_prog_ac_ct_CC="$ac_prog" |
6b2e4ec5 | 4199 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
f11781c5 AK |
4200 | break 2 |
4201 | fi | |
4202 | done | |
4203 | done | |
4204 | IFS=$as_save_IFS | |
ad6254c5 | 4205 | |
635df748 ZK |
4206 | fi ;; |
4207 | esac | |
ad6254c5 | 4208 | fi |
f11781c5 AK |
4209 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4210 | if test -n "$ac_ct_CC"; then | |
6b2e4ec5 ZK |
4211 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4212 | printf "%s\n" "$ac_ct_CC" >&6; } | |
f11781c5 | 4213 | else |
6b2e4ec5 ZK |
4214 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4215 | printf "%s\n" "no" >&6; } | |
ad6254c5 | 4216 | fi |
ad6254c5 | 4217 | |
d911ec67 | 4218 | |
f11781c5 AK |
4219 | test -n "$ac_ct_CC" && break |
4220 | done | |
d911ec67 | 4221 | |
f11781c5 AK |
4222 | if test "x$ac_ct_CC" = x; then |
4223 | CC="" | |
4224 | else | |
4225 | case $cross_compiling:$ac_tool_warned in | |
4226 | yes:) | |
6b2e4ec5 ZK |
4227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4228 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
f11781c5 | 4229 | ac_tool_warned=yes ;; |
d911ec67 | 4230 | esac |
f11781c5 AK |
4231 | CC=$ac_ct_CC |
4232 | fi | |
4233 | fi | |
ad6254c5 AK |
4234 | |
4235 | fi | |
6b2e4ec5 ZK |
4236 | if test -z "$CC"; then |
4237 | if test -n "$ac_tool_prefix"; then | |
4238 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
4239 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
4240 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4241 | printf %s "checking for $ac_word... " >&6; } | |
4242 | if test ${ac_cv_prog_CC+y} | |
4243 | then : | |
4244 | printf %s "(cached) " >&6 | |
635df748 ZK |
4245 | else case e in #( |
4246 | e) if test -n "$CC"; then | |
6b2e4ec5 ZK |
4247 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4248 | else | |
4249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4250 | for as_dir in $PATH | |
4251 | do | |
4252 | IFS=$as_save_IFS | |
4253 | case $as_dir in #((( | |
4254 | '') as_dir=./ ;; | |
4255 | */) ;; | |
4256 | *) as_dir=$as_dir/ ;; | |
4257 | esac | |
4258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4259 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4260 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
4261 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4262 | break 2 | |
4263 | fi | |
4264 | done | |
4265 | done | |
4266 | IFS=$as_save_IFS | |
4267 | ||
635df748 ZK |
4268 | fi ;; |
4269 | esac | |
6b2e4ec5 ZK |
4270 | fi |
4271 | CC=$ac_cv_prog_CC | |
4272 | if test -n "$CC"; then | |
4273 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4274 | printf "%s\n" "$CC" >&6; } | |
4275 | else | |
4276 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4277 | printf "%s\n" "no" >&6; } | |
4278 | fi | |
d911ec67 AK |
4279 | |
4280 | ||
6b2e4ec5 ZK |
4281 | fi |
4282 | if test -z "$ac_cv_prog_CC"; then | |
4283 | ac_ct_CC=$CC | |
4284 | # Extract the first word of "clang", so it can be a program name with args. | |
4285 | set dummy clang; ac_word=$2 | |
4286 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4287 | printf %s "checking for $ac_word... " >&6; } | |
4288 | if test ${ac_cv_prog_ac_ct_CC+y} | |
4289 | then : | |
4290 | printf %s "(cached) " >&6 | |
635df748 ZK |
4291 | else case e in #( |
4292 | e) if test -n "$ac_ct_CC"; then | |
6b2e4ec5 ZK |
4293 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
4294 | else | |
4295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4296 | for as_dir in $PATH | |
4297 | do | |
4298 | IFS=$as_save_IFS | |
4299 | case $as_dir in #((( | |
4300 | '') as_dir=./ ;; | |
4301 | */) ;; | |
4302 | *) as_dir=$as_dir/ ;; | |
4303 | esac | |
4304 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4305 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4306 | ac_cv_prog_ac_ct_CC="clang" | |
4307 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4308 | break 2 | |
4309 | fi | |
4310 | done | |
4311 | done | |
4312 | IFS=$as_save_IFS | |
4313 | ||
635df748 ZK |
4314 | fi ;; |
4315 | esac | |
6b2e4ec5 ZK |
4316 | fi |
4317 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4318 | if test -n "$ac_ct_CC"; then | |
4319 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4320 | printf "%s\n" "$ac_ct_CC" >&6; } | |
4321 | else | |
4322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4323 | printf "%s\n" "no" >&6; } | |
4324 | fi | |
4325 | ||
4326 | if test "x$ac_ct_CC" = x; then | |
4327 | CC="" | |
4328 | else | |
4329 | case $cross_compiling:$ac_tool_warned in | |
4330 | yes:) | |
4331 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4332 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4333 | ac_tool_warned=yes ;; | |
4334 | esac | |
4335 | CC=$ac_ct_CC | |
4336 | fi | |
4337 | else | |
4338 | CC="$ac_cv_prog_CC" | |
4339 | fi | |
4340 | ||
4341 | fi | |
4342 | ||
4343 | ||
635df748 ZK |
4344 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
4345 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
f11781c5 | 4346 | as_fn_error $? "no acceptable C compiler found in \$PATH |
635df748 | 4347 | See 'config.log' for more details" "$LINENO" 5; } |
f11781c5 AK |
4348 | |
4349 | # Provide some information about the compiler. | |
6b2e4ec5 | 4350 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
f11781c5 AK |
4351 | set X $ac_compile |
4352 | ac_compiler=$2 | |
6b2e4ec5 | 4353 | for ac_option in --version -v -V -qversion -version; do |
f11781c5 AK |
4354 | { { ac_try="$ac_compiler $ac_option >&5" |
4355 | case "(($ac_try" in | |
4356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4357 | *) ac_try_echo=$ac_try;; | |
4358 | esac | |
4359 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6b2e4ec5 | 4360 | printf "%s\n" "$ac_try_echo"; } >&5 |
f11781c5 AK |
4361 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
4362 | ac_status=$? | |
4363 | if test -s conftest.err; then | |
4364 | sed '10a\ | |
4365 | ... rest of stderr output deleted ... | |
4366 | 10q' conftest.err >conftest.er1 | |
4367 | cat conftest.er1 >&5 | |
4368 | fi | |
4369 | rm -f conftest.er1 conftest.err | |
6b2e4ec5 | 4370 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
f11781c5 AK |
4371 | test $ac_status = 0; } |
4372 | done | |
ad6254c5 | 4373 | |
f11781c5 | 4374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 4375 | /* end confdefs.h. */ |
f11781c5 | 4376 | |
ad6254c5 | 4377 | int |
6b2e4ec5 | 4378 | main (void) |
ad6254c5 | 4379 | { |
f11781c5 | 4380 | |
ad6254c5 AK |
4381 | ; |
4382 | return 0; | |
4383 | } | |
4384 | _ACEOF | |
f11781c5 AK |
4385 | ac_clean_files_save=$ac_clean_files |
4386 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
4387 | # Try to create an executable without -o first, disregard a.out. | |
4388 | # It will help us diagnose broken compilers, and finding out an intuition | |
4389 | # of exeext. | |
6b2e4ec5 ZK |
4390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4391 | printf %s "checking whether the C compiler works... " >&6; } | |
4392 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
f11781c5 AK |
4393 | |
4394 | # The possible output files: | |
4395 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4396 | ||
4397 | ac_rmfiles= | |
4398 | for ac_file in $ac_files | |
4399 | do | |
4400 | case $ac_file in | |
4401 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4402 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4403 | esac | |
4404 | done | |
4405 | rm -f $ac_rmfiles | |
4406 | ||
4407 | if { { ac_try="$ac_link_default" | |
7a197a62 AK |
4408 | case "(($ac_try" in |
4409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4410 | *) ac_try_echo=$ac_try;; | |
4411 | esac | |
f11781c5 | 4412 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
6b2e4ec5 | 4413 | printf "%s\n" "$ac_try_echo"; } >&5 |
f11781c5 | 4414 | (eval "$ac_link_default") 2>&5 |
ad6254c5 | 4415 | ac_status=$? |
6b2e4ec5 ZK |
4416 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4417 | test $ac_status = 0; } | |
4418 | then : | |
635df748 ZK |
4419 | # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. |
4420 | # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' | |
f11781c5 AK |
4421 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
4422 | # so that the user can short-circuit this test for compilers unknown to | |
4423 | # Autoconf. | |
4424 | for ac_file in $ac_files '' | |
4425 | do | |
4426 | test -f "$ac_file" || continue | |
4427 | case $ac_file in | |
4428 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4429 | ;; | |
4430 | [ab].out ) | |
4431 | # We found the default executable, but exeext='' is most | |
4432 | # certainly right. | |
4433 | break;; | |
4434 | *.* ) | |
6b2e4ec5 | 4435 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
f11781c5 AK |
4436 | then :; else |
4437 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4438 | fi | |
4439 | # We set ac_cv_exeext here because the later test for it is not | |
635df748 | 4440 | # safe: cross compilers may not add the suffix if given an '-o' |
f11781c5 AK |
4441 | # argument, so we may need to know it at that point already. |
4442 | # Even if this section looks crufty: it has the advantage of | |
4443 | # actually working. | |
4444 | break;; | |
4445 | * ) | |
4446 | break;; | |
4447 | esac | |
4448 | done | |
4449 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4450 | ||
635df748 ZK |
4451 | else case e in #( |
4452 | e) ac_file='' ;; | |
4453 | esac | |
f11781c5 | 4454 | fi |
6b2e4ec5 ZK |
4455 | if test -z "$ac_file" |
4456 | then : | |
4457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4458 | printf "%s\n" "no" >&6; } | |
4459 | printf "%s\n" "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
4460 | sed 's/^/| /' conftest.$ac_ext >&5 |
4461 | ||
635df748 ZK |
4462 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
4463 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
f11781c5 | 4464 | as_fn_error 77 "C compiler cannot create executables |
635df748 ZK |
4465 | See 'config.log' for more details" "$LINENO" 5; } |
4466 | else case e in #( | |
4467 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4468 | printf "%s\n" "yes" >&6; } ;; | |
4469 | esac | |
6b2e4ec5 ZK |
4470 | fi |
4471 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
4472 | printf %s "checking for C compiler default output file name... " >&6; } | |
4473 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4474 | printf "%s\n" "$ac_file" >&6; } | |
f11781c5 | 4475 | ac_exeext=$ac_cv_exeext |
7a197a62 | 4476 | |
f11781c5 AK |
4477 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
4478 | ac_clean_files=$ac_clean_files_save | |
6b2e4ec5 ZK |
4479 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4480 | printf %s "checking for suffix of executables... " >&6; } | |
f11781c5 AK |
4481 | if { { ac_try="$ac_link" |
4482 | case "(($ac_try" in | |
4483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4484 | *) ac_try_echo=$ac_try;; | |
8a2fc586 | 4485 | esac |
f11781c5 | 4486 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
6b2e4ec5 | 4487 | printf "%s\n" "$ac_try_echo"; } >&5 |
f11781c5 AK |
4488 | (eval "$ac_link") 2>&5 |
4489 | ac_status=$? | |
6b2e4ec5 ZK |
4490 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4491 | test $ac_status = 0; } | |
4492 | then : | |
635df748 ZK |
4493 | # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) |
4494 | # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will | |
4495 | # work properly (i.e., refer to 'conftest.exe'), while it won't with | |
4496 | # 'rm'. | |
f11781c5 AK |
4497 | for ac_file in conftest.exe conftest conftest.*; do |
4498 | test -f "$ac_file" || continue | |
4499 | case $ac_file in | |
4500 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4501 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4502 | break;; | |
4503 | * ) break;; | |
4504 | esac | |
4505 | done | |
635df748 ZK |
4506 | else case e in #( |
4507 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
4508 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
f11781c5 | 4509 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
635df748 ZK |
4510 | See 'config.log' for more details" "$LINENO" 5; } ;; |
4511 | esac | |
ad6254c5 | 4512 | fi |
f11781c5 | 4513 | rm -f conftest conftest$ac_cv_exeext |
6b2e4ec5 ZK |
4514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4515 | printf "%s\n" "$ac_cv_exeext" >&6; } | |
ad6254c5 | 4516 | |
f11781c5 AK |
4517 | rm -f conftest.$ac_ext |
4518 | EXEEXT=$ac_cv_exeext | |
4519 | ac_exeext=$EXEEXT | |
4520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 4521 | /* end confdefs.h. */ |
f11781c5 | 4522 | #include <stdio.h> |
ad6254c5 | 4523 | int |
6b2e4ec5 | 4524 | main (void) |
ad6254c5 | 4525 | { |
f11781c5 | 4526 | FILE *f = fopen ("conftest.out", "w"); |
635df748 ZK |
4527 | if (!f) |
4528 | return 1; | |
f11781c5 | 4529 | return ferror (f) || fclose (f) != 0; |
ad6254c5 | 4530 | |
f11781c5 | 4531 | ; |
7a197a62 | 4532 | return 0; |
ad6254c5 | 4533 | } |
ad6254c5 | 4534 | _ACEOF |
f11781c5 AK |
4535 | ac_clean_files="$ac_clean_files conftest.out" |
4536 | # Check that the compiler produces executables we can run. If not, either | |
4537 | # the compiler is broken, or we cross compile. | |
6b2e4ec5 ZK |
4538 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4539 | printf %s "checking whether we are cross compiling... " >&6; } | |
f11781c5 AK |
4540 | if test "$cross_compiling" != yes; then |
4541 | { { ac_try="$ac_link" | |
7a197a62 AK |
4542 | case "(($ac_try" in |
4543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4544 | *) ac_try_echo=$ac_try;; | |
4545 | esac | |
f11781c5 | 4546 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
6b2e4ec5 | 4547 | printf "%s\n" "$ac_try_echo"; } >&5 |
7a197a62 | 4548 | (eval "$ac_link") 2>&5 |
ad6254c5 | 4549 | ac_status=$? |
6b2e4ec5 | 4550 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
f11781c5 AK |
4551 | test $ac_status = 0; } |
4552 | if { ac_try='./conftest$ac_cv_exeext' | |
4553 | { { case "(($ac_try" in | |
7a197a62 AK |
4554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4555 | *) ac_try_echo=$ac_try;; | |
4556 | esac | |
f11781c5 | 4557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
6b2e4ec5 | 4558 | printf "%s\n" "$ac_try_echo"; } >&5 |
7a197a62 | 4559 | (eval "$ac_try") 2>&5 |
ad6254c5 | 4560 | ac_status=$? |
6b2e4ec5 | 4561 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
f11781c5 AK |
4562 | test $ac_status = 0; }; }; then |
4563 | cross_compiling=no | |
4564 | else | |
4565 | if test "$cross_compiling" = maybe; then | |
4566 | cross_compiling=yes | |
4567 | else | |
635df748 ZK |
4568 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
4569 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
6b2e4ec5 | 4570 | as_fn_error 77 "cannot run C compiled programs. |
635df748 ZK |
4571 | If you meant to cross compile, use '--host'. |
4572 | See 'config.log' for more details" "$LINENO" 5; } | |
f11781c5 AK |
4573 | fi |
4574 | fi | |
4575 | fi | |
6b2e4ec5 ZK |
4576 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
4577 | printf "%s\n" "$cross_compiling" >&6; } | |
f11781c5 | 4578 | |
635df748 ZK |
4579 | rm -f conftest.$ac_ext conftest$ac_cv_exeext \ |
4580 | conftest.o conftest.obj conftest.out | |
f11781c5 | 4581 | ac_clean_files=$ac_clean_files_save |
6b2e4ec5 ZK |
4582 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4583 | printf %s "checking for suffix of object files... " >&6; } | |
4584 | if test ${ac_cv_objext+y} | |
4585 | then : | |
4586 | printf %s "(cached) " >&6 | |
635df748 ZK |
4587 | else case e in #( |
4588 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 | 4589 | /* end confdefs.h. */ |
ad6254c5 AK |
4590 | |
4591 | int | |
6b2e4ec5 | 4592 | main (void) |
ad6254c5 | 4593 | { |
f11781c5 | 4594 | |
ad6254c5 AK |
4595 | ; |
4596 | return 0; | |
4597 | } | |
4598 | _ACEOF | |
f11781c5 AK |
4599 | rm -f conftest.o conftest.obj |
4600 | if { { ac_try="$ac_compile" | |
7a197a62 AK |
4601 | case "(($ac_try" in |
4602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4603 | *) ac_try_echo=$ac_try;; | |
4604 | esac | |
f11781c5 | 4605 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
6b2e4ec5 | 4606 | printf "%s\n" "$ac_try_echo"; } >&5 |
f11781c5 | 4607 | (eval "$ac_compile") 2>&5 |
ad6254c5 | 4608 | ac_status=$? |
6b2e4ec5 ZK |
4609 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4610 | test $ac_status = 0; } | |
4611 | then : | |
f11781c5 AK |
4612 | for ac_file in conftest.o conftest.obj conftest.*; do |
4613 | test -f "$ac_file" || continue; | |
4614 | case $ac_file in | |
4615 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4616 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4617 | break;; | |
4618 | esac | |
4619 | done | |
635df748 ZK |
4620 | else case e in #( |
4621 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
ad6254c5 AK |
4622 | sed 's/^/| /' conftest.$ac_ext >&5 |
4623 | ||
635df748 ZK |
4624 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
4625 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
f11781c5 | 4626 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
635df748 ZK |
4627 | See 'config.log' for more details" "$LINENO" 5; } ;; |
4628 | esac | |
ad6254c5 | 4629 | fi |
635df748 ZK |
4630 | rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; |
4631 | esac | |
ad6254c5 | 4632 | fi |
6b2e4ec5 ZK |
4633 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4634 | printf "%s\n" "$ac_cv_objext" >&6; } | |
f11781c5 AK |
4635 | OBJEXT=$ac_cv_objext |
4636 | ac_objext=$OBJEXT | |
6b2e4ec5 ZK |
4637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
4638 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
4639 | if test ${ac_cv_c_compiler_gnu+y} | |
4640 | then : | |
4641 | printf %s "(cached) " >&6 | |
635df748 ZK |
4642 | else case e in #( |
4643 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 AK |
4644 | /* end confdefs.h. */ |
4645 | ||
ad6254c5 | 4646 | int |
6b2e4ec5 | 4647 | main (void) |
ad6254c5 | 4648 | { |
f11781c5 AK |
4649 | #ifndef __GNUC__ |
4650 | choke me | |
4651 | #endif | |
4652 | ||
ad6254c5 AK |
4653 | ; |
4654 | return 0; | |
4655 | } | |
4656 | _ACEOF | |
6b2e4ec5 ZK |
4657 | if ac_fn_c_try_compile "$LINENO" |
4658 | then : | |
f11781c5 | 4659 | ac_compiler_gnu=yes |
635df748 ZK |
4660 | else case e in #( |
4661 | e) ac_compiler_gnu=no ;; | |
4662 | esac | |
ad6254c5 | 4663 | fi |
6b2e4ec5 | 4664 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
f11781c5 | 4665 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
635df748 ZK |
4666 | ;; |
4667 | esac | |
d0191583 | 4668 | fi |
6b2e4ec5 ZK |
4669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4670 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
4671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4672 | ||
f11781c5 AK |
4673 | if test $ac_compiler_gnu = yes; then |
4674 | GCC=yes | |
d0191583 | 4675 | else |
f11781c5 | 4676 | GCC= |
d0191583 | 4677 | fi |
6b2e4ec5 | 4678 | ac_test_CFLAGS=${CFLAGS+y} |
f11781c5 | 4679 | ac_save_CFLAGS=$CFLAGS |
6b2e4ec5 ZK |
4680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4681 | printf %s "checking whether $CC accepts -g... " >&6; } | |
4682 | if test ${ac_cv_prog_cc_g+y} | |
4683 | then : | |
4684 | printf %s "(cached) " >&6 | |
635df748 ZK |
4685 | else case e in #( |
4686 | e) ac_save_c_werror_flag=$ac_c_werror_flag | |
f11781c5 AK |
4687 | ac_c_werror_flag=yes |
4688 | ac_cv_prog_cc_g=no | |
4689 | CFLAGS="-g" | |
4690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4691 | /* end confdefs.h. */ | |
72b2cb61 | 4692 | |
f11781c5 | 4693 | int |
6b2e4ec5 | 4694 | main (void) |
f11781c5 | 4695 | { |
72b2cb61 | 4696 | |
f11781c5 AK |
4697 | ; |
4698 | return 0; | |
4699 | } | |
4700 | _ACEOF | |
6b2e4ec5 ZK |
4701 | if ac_fn_c_try_compile "$LINENO" |
4702 | then : | |
f11781c5 | 4703 | ac_cv_prog_cc_g=yes |
635df748 ZK |
4704 | else case e in #( |
4705 | e) CFLAGS="" | |
f11781c5 AK |
4706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4707 | /* end confdefs.h. */ | |
ad6254c5 | 4708 | |
f11781c5 | 4709 | int |
6b2e4ec5 | 4710 | main (void) |
f11781c5 | 4711 | { |
ad6254c5 | 4712 | |
f11781c5 AK |
4713 | ; |
4714 | return 0; | |
4715 | } | |
d0191583 | 4716 | _ACEOF |
6b2e4ec5 ZK |
4717 | if ac_fn_c_try_compile "$LINENO" |
4718 | then : | |
f11781c5 | 4719 | |
635df748 ZK |
4720 | else case e in #( |
4721 | e) ac_c_werror_flag=$ac_save_c_werror_flag | |
f11781c5 AK |
4722 | CFLAGS="-g" |
4723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 4724 | /* end confdefs.h. */ |
7a197a62 | 4725 | |
f11781c5 | 4726 | int |
6b2e4ec5 | 4727 | main (void) |
f11781c5 | 4728 | { |
ad6254c5 | 4729 | |
f11781c5 AK |
4730 | ; |
4731 | return 0; | |
4732 | } | |
4733 | _ACEOF | |
6b2e4ec5 ZK |
4734 | if ac_fn_c_try_compile "$LINENO" |
4735 | then : | |
f11781c5 AK |
4736 | ac_cv_prog_cc_g=yes |
4737 | fi | |
635df748 ZK |
4738 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
4739 | esac | |
f11781c5 | 4740 | fi |
635df748 ZK |
4741 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
4742 | esac | |
f11781c5 | 4743 | fi |
6b2e4ec5 | 4744 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
635df748 ZK |
4745 | ac_c_werror_flag=$ac_save_c_werror_flag ;; |
4746 | esac | |
f11781c5 | 4747 | fi |
6b2e4ec5 ZK |
4748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4749 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
4750 | if test $ac_test_CFLAGS; then | |
f11781c5 AK |
4751 | CFLAGS=$ac_save_CFLAGS |
4752 | elif test $ac_cv_prog_cc_g = yes; then | |
4753 | if test "$GCC" = yes; then | |
4754 | CFLAGS="-g -O2" | |
4755 | else | |
4756 | CFLAGS="-g" | |
4757 | fi | |
4758 | else | |
4759 | if test "$GCC" = yes; then | |
4760 | CFLAGS="-O2" | |
4761 | else | |
4762 | CFLAGS= | |
4763 | fi | |
4764 | fi | |
6b2e4ec5 ZK |
4765 | ac_prog_cc_stdc=no |
4766 | if test x$ac_prog_cc_stdc = xno | |
4767 | then : | |
4768 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
4769 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
4770 | if test ${ac_cv_prog_cc_c11+y} | |
4771 | then : | |
4772 | printf %s "(cached) " >&6 | |
635df748 ZK |
4773 | else case e in #( |
4774 | e) ac_cv_prog_cc_c11=no | |
f11781c5 AK |
4775 | ac_save_CC=$CC |
4776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4777 | /* end confdefs.h. */ | |
6b2e4ec5 ZK |
4778 | $ac_c_conftest_c11_program |
4779 | _ACEOF | |
4780 | for ac_arg in '' -std=gnu11 | |
4781 | do | |
4782 | CC="$ac_save_CC $ac_arg" | |
4783 | if ac_fn_c_try_compile "$LINENO" | |
4784 | then : | |
4785 | ac_cv_prog_cc_c11=$ac_arg | |
4786 | fi | |
4787 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4788 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
4789 | done | |
4790 | rm -f conftest.$ac_ext | |
635df748 ZK |
4791 | CC=$ac_save_CC ;; |
4792 | esac | |
6b2e4ec5 | 4793 | fi |
72b2cb61 | 4794 | |
6b2e4ec5 ZK |
4795 | if test "x$ac_cv_prog_cc_c11" = xno |
4796 | then : | |
4797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4798 | printf "%s\n" "unsupported" >&6; } | |
635df748 ZK |
4799 | else case e in #( |
4800 | e) if test "x$ac_cv_prog_cc_c11" = x | |
6b2e4ec5 ZK |
4801 | then : |
4802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4803 | printf "%s\n" "none needed" >&6; } | |
635df748 ZK |
4804 | else case e in #( |
4805 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
6b2e4ec5 | 4806 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
635df748 ZK |
4807 | CC="$CC $ac_cv_prog_cc_c11" ;; |
4808 | esac | |
6b2e4ec5 ZK |
4809 | fi |
4810 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
635df748 ZK |
4811 | ac_prog_cc_stdc=c11 ;; |
4812 | esac | |
6b2e4ec5 ZK |
4813 | fi |
4814 | fi | |
4815 | if test x$ac_prog_cc_stdc = xno | |
4816 | then : | |
4817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
4818 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
4819 | if test ${ac_cv_prog_cc_c99+y} | |
4820 | then : | |
4821 | printf %s "(cached) " >&6 | |
635df748 ZK |
4822 | else case e in #( |
4823 | e) ac_cv_prog_cc_c99=no | |
6b2e4ec5 ZK |
4824 | ac_save_CC=$CC |
4825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4826 | /* end confdefs.h. */ | |
4827 | $ac_c_conftest_c99_program | |
4828 | _ACEOF | |
4829 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
4830 | do | |
4831 | CC="$ac_save_CC $ac_arg" | |
4832 | if ac_fn_c_try_compile "$LINENO" | |
4833 | then : | |
4834 | ac_cv_prog_cc_c99=$ac_arg | |
4835 | fi | |
4836 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4837 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4838 | done | |
4839 | rm -f conftest.$ac_ext | |
635df748 ZK |
4840 | CC=$ac_save_CC ;; |
4841 | esac | |
6b2e4ec5 | 4842 | fi |
d0191583 | 4843 | |
6b2e4ec5 ZK |
4844 | if test "x$ac_cv_prog_cc_c99" = xno |
4845 | then : | |
4846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4847 | printf "%s\n" "unsupported" >&6; } | |
635df748 ZK |
4848 | else case e in #( |
4849 | e) if test "x$ac_cv_prog_cc_c99" = x | |
6b2e4ec5 ZK |
4850 | then : |
4851 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4852 | printf "%s\n" "none needed" >&6; } | |
635df748 ZK |
4853 | else case e in #( |
4854 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
6b2e4ec5 | 4855 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
635df748 ZK |
4856 | CC="$CC $ac_cv_prog_cc_c99" ;; |
4857 | esac | |
6b2e4ec5 ZK |
4858 | fi |
4859 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
635df748 ZK |
4860 | ac_prog_cc_stdc=c99 ;; |
4861 | esac | |
6b2e4ec5 ZK |
4862 | fi |
4863 | fi | |
4864 | if test x$ac_prog_cc_stdc = xno | |
4865 | then : | |
4866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
4867 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
4868 | if test ${ac_cv_prog_cc_c89+y} | |
4869 | then : | |
4870 | printf %s "(cached) " >&6 | |
635df748 ZK |
4871 | else case e in #( |
4872 | e) ac_cv_prog_cc_c89=no | |
6b2e4ec5 ZK |
4873 | ac_save_CC=$CC |
4874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4875 | /* end confdefs.h. */ | |
4876 | $ac_c_conftest_c89_program | |
72b2cb61 | 4877 | _ACEOF |
6b2e4ec5 | 4878 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
f11781c5 AK |
4879 | do |
4880 | CC="$ac_save_CC $ac_arg" | |
6b2e4ec5 ZK |
4881 | if ac_fn_c_try_compile "$LINENO" |
4882 | then : | |
f11781c5 AK |
4883 | ac_cv_prog_cc_c89=$ac_arg |
4884 | fi | |
6b2e4ec5 | 4885 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
f11781c5 AK |
4886 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
4887 | done | |
4888 | rm -f conftest.$ac_ext | |
635df748 ZK |
4889 | CC=$ac_save_CC ;; |
4890 | esac | |
f11781c5 | 4891 | fi |
f11781c5 | 4892 | |
6b2e4ec5 ZK |
4893 | if test "x$ac_cv_prog_cc_c89" = xno |
4894 | then : | |
4895 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4896 | printf "%s\n" "unsupported" >&6; } | |
635df748 ZK |
4897 | else case e in #( |
4898 | e) if test "x$ac_cv_prog_cc_c89" = x | |
6b2e4ec5 ZK |
4899 | then : |
4900 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4901 | printf "%s\n" "none needed" >&6; } | |
635df748 ZK |
4902 | else case e in #( |
4903 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
6b2e4ec5 | 4904 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
635df748 ZK |
4905 | CC="$CC $ac_cv_prog_cc_c89" ;; |
4906 | esac | |
6b2e4ec5 ZK |
4907 | fi |
4908 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
635df748 ZK |
4909 | ac_prog_cc_stdc=c89 ;; |
4910 | esac | |
6b2e4ec5 | 4911 | fi |
f11781c5 AK |
4912 | fi |
4913 | ||
4914 | ac_ext=c | |
4915 | ac_cpp='$CPP $CPPFLAGS' | |
4916 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4917 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4918 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
72b2cb61 | 4919 | |
6b2e4ec5 ZK |
4920 | |
4921 | ||
4922 | ||
4923 | ||
4924 | ||
4925 | ||
acb6c062 PR |
4926 | ac_ext=cpp |
4927 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4928 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4929 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4930 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4931 | if test -z "$CXX"; then | |
4932 | if test -n "$CCC"; then | |
4933 | CXX=$CCC | |
4934 | else | |
4935 | if test -n "$ac_tool_prefix"; then | |
6b2e4ec5 | 4936 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
acb6c062 PR |
4937 | do |
4938 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4939 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6b2e4ec5 ZK |
4940 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4941 | printf %s "checking for $ac_word... " >&6; } | |
4942 | if test ${ac_cv_prog_CXX+y} | |
4943 | then : | |
4944 | printf %s "(cached) " >&6 | |
635df748 ZK |
4945 | else case e in #( |
4946 | e) if test -n "$CXX"; then | |
acb6c062 PR |
4947 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
4948 | else | |
4949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4950 | for as_dir in $PATH | |
4951 | do | |
4952 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
4953 | case $as_dir in #((( |
4954 | '') as_dir=./ ;; | |
4955 | */) ;; | |
4956 | *) as_dir=$as_dir/ ;; | |
4957 | esac | |
acb6c062 | 4958 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 4959 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
acb6c062 | 4960 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
6b2e4ec5 | 4961 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
acb6c062 PR |
4962 | break 2 |
4963 | fi | |
4964 | done | |
4965 | done | |
4966 | IFS=$as_save_IFS | |
4967 | ||
635df748 ZK |
4968 | fi ;; |
4969 | esac | |
acb6c062 PR |
4970 | fi |
4971 | CXX=$ac_cv_prog_CXX | |
4972 | if test -n "$CXX"; then | |
6b2e4ec5 ZK |
4973 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4974 | printf "%s\n" "$CXX" >&6; } | |
acb6c062 | 4975 | else |
6b2e4ec5 ZK |
4976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4977 | printf "%s\n" "no" >&6; } | |
acb6c062 PR |
4978 | fi |
4979 | ||
4980 | ||
4981 | test -n "$CXX" && break | |
4982 | done | |
4983 | fi | |
4984 | if test -z "$CXX"; then | |
4985 | ac_ct_CXX=$CXX | |
6b2e4ec5 | 4986 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
acb6c062 PR |
4987 | do |
4988 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4989 | set dummy $ac_prog; ac_word=$2 | |
6b2e4ec5 ZK |
4990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4991 | printf %s "checking for $ac_word... " >&6; } | |
4992 | if test ${ac_cv_prog_ac_ct_CXX+y} | |
4993 | then : | |
4994 | printf %s "(cached) " >&6 | |
635df748 ZK |
4995 | else case e in #( |
4996 | e) if test -n "$ac_ct_CXX"; then | |
acb6c062 PR |
4997 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
4998 | else | |
4999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5000 | for as_dir in $PATH | |
5001 | do | |
5002 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
5003 | case $as_dir in #((( |
5004 | '') as_dir=./ ;; | |
5005 | */) ;; | |
5006 | *) as_dir=$as_dir/ ;; | |
5007 | esac | |
acb6c062 | 5008 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 5009 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
acb6c062 | 5010 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
6b2e4ec5 | 5011 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
acb6c062 PR |
5012 | break 2 |
5013 | fi | |
5014 | done | |
5015 | done | |
5016 | IFS=$as_save_IFS | |
5017 | ||
635df748 ZK |
5018 | fi ;; |
5019 | esac | |
acb6c062 PR |
5020 | fi |
5021 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5022 | if test -n "$ac_ct_CXX"; then | |
6b2e4ec5 ZK |
5023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
5024 | printf "%s\n" "$ac_ct_CXX" >&6; } | |
acb6c062 | 5025 | else |
6b2e4ec5 ZK |
5026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5027 | printf "%s\n" "no" >&6; } | |
acb6c062 PR |
5028 | fi |
5029 | ||
5030 | ||
5031 | test -n "$ac_ct_CXX" && break | |
5032 | done | |
5033 | ||
5034 | if test "x$ac_ct_CXX" = x; then | |
5035 | CXX="g++" | |
5036 | else | |
5037 | case $cross_compiling:$ac_tool_warned in | |
5038 | yes:) | |
6b2e4ec5 ZK |
5039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5040 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
acb6c062 PR |
5041 | ac_tool_warned=yes ;; |
5042 | esac | |
5043 | CXX=$ac_ct_CXX | |
5044 | fi | |
5045 | fi | |
5046 | ||
5047 | fi | |
5048 | fi | |
5049 | # Provide some information about the compiler. | |
6b2e4ec5 | 5050 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
acb6c062 PR |
5051 | set X $ac_compile |
5052 | ac_compiler=$2 | |
5053 | for ac_option in --version -v -V -qversion; do | |
5054 | { { ac_try="$ac_compiler $ac_option >&5" | |
5055 | case "(($ac_try" in | |
5056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5057 | *) ac_try_echo=$ac_try;; | |
5058 | esac | |
5059 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6b2e4ec5 | 5060 | printf "%s\n" "$ac_try_echo"; } >&5 |
acb6c062 PR |
5061 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
5062 | ac_status=$? | |
5063 | if test -s conftest.err; then | |
5064 | sed '10a\ | |
5065 | ... rest of stderr output deleted ... | |
5066 | 10q' conftest.err >conftest.er1 | |
5067 | cat conftest.er1 >&5 | |
5068 | fi | |
5069 | rm -f conftest.er1 conftest.err | |
6b2e4ec5 | 5070 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
acb6c062 PR |
5071 | test $ac_status = 0; } |
5072 | done | |
5073 | ||
6b2e4ec5 ZK |
5074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
5075 | printf %s "checking whether the compiler supports GNU C++... " >&6; } | |
5076 | if test ${ac_cv_cxx_compiler_gnu+y} | |
5077 | then : | |
5078 | printf %s "(cached) " >&6 | |
635df748 ZK |
5079 | else case e in #( |
5080 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acb6c062 PR |
5081 | /* end confdefs.h. */ |
5082 | ||
5083 | int | |
6b2e4ec5 | 5084 | main (void) |
acb6c062 PR |
5085 | { |
5086 | #ifndef __GNUC__ | |
5087 | choke me | |
5088 | #endif | |
5089 | ||
5090 | ; | |
5091 | return 0; | |
5092 | } | |
5093 | _ACEOF | |
6b2e4ec5 ZK |
5094 | if ac_fn_cxx_try_compile "$LINENO" |
5095 | then : | |
acb6c062 | 5096 | ac_compiler_gnu=yes |
635df748 ZK |
5097 | else case e in #( |
5098 | e) ac_compiler_gnu=no ;; | |
5099 | esac | |
acb6c062 | 5100 | fi |
6b2e4ec5 | 5101 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
acb6c062 | 5102 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
635df748 ZK |
5103 | ;; |
5104 | esac | |
acb6c062 | 5105 | fi |
6b2e4ec5 ZK |
5106 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5107 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } | |
5108 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5109 | ||
acb6c062 PR |
5110 | if test $ac_compiler_gnu = yes; then |
5111 | GXX=yes | |
5112 | else | |
5113 | GXX= | |
5114 | fi | |
6b2e4ec5 | 5115 | ac_test_CXXFLAGS=${CXXFLAGS+y} |
acb6c062 | 5116 | ac_save_CXXFLAGS=$CXXFLAGS |
6b2e4ec5 ZK |
5117 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5118 | printf %s "checking whether $CXX accepts -g... " >&6; } | |
5119 | if test ${ac_cv_prog_cxx_g+y} | |
5120 | then : | |
5121 | printf %s "(cached) " >&6 | |
635df748 ZK |
5122 | else case e in #( |
5123 | e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
acb6c062 PR |
5124 | ac_cxx_werror_flag=yes |
5125 | ac_cv_prog_cxx_g=no | |
5126 | CXXFLAGS="-g" | |
5127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5128 | /* end confdefs.h. */ | |
5129 | ||
5130 | int | |
6b2e4ec5 | 5131 | main (void) |
acb6c062 PR |
5132 | { |
5133 | ||
5134 | ; | |
5135 | return 0; | |
5136 | } | |
5137 | _ACEOF | |
6b2e4ec5 ZK |
5138 | if ac_fn_cxx_try_compile "$LINENO" |
5139 | then : | |
acb6c062 | 5140 | ac_cv_prog_cxx_g=yes |
635df748 ZK |
5141 | else case e in #( |
5142 | e) CXXFLAGS="" | |
acb6c062 PR |
5143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5144 | /* end confdefs.h. */ | |
5145 | ||
5146 | int | |
6b2e4ec5 | 5147 | main (void) |
acb6c062 PR |
5148 | { |
5149 | ||
5150 | ; | |
5151 | return 0; | |
5152 | } | |
5153 | _ACEOF | |
6b2e4ec5 ZK |
5154 | if ac_fn_cxx_try_compile "$LINENO" |
5155 | then : | |
acb6c062 | 5156 | |
635df748 ZK |
5157 | else case e in #( |
5158 | e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
acb6c062 PR |
5159 | CXXFLAGS="-g" |
5160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5161 | /* end confdefs.h. */ | |
5162 | ||
5163 | int | |
6b2e4ec5 | 5164 | main (void) |
acb6c062 PR |
5165 | { |
5166 | ||
5167 | ; | |
5168 | return 0; | |
5169 | } | |
5170 | _ACEOF | |
6b2e4ec5 ZK |
5171 | if ac_fn_cxx_try_compile "$LINENO" |
5172 | then : | |
acb6c062 PR |
5173 | ac_cv_prog_cxx_g=yes |
5174 | fi | |
635df748 ZK |
5175 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
5176 | esac | |
acb6c062 | 5177 | fi |
635df748 ZK |
5178 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
5179 | esac | |
acb6c062 | 5180 | fi |
6b2e4ec5 | 5181 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
635df748 ZK |
5182 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; |
5183 | esac | |
acb6c062 | 5184 | fi |
6b2e4ec5 ZK |
5185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
5186 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } | |
5187 | if test $ac_test_CXXFLAGS; then | |
acb6c062 PR |
5188 | CXXFLAGS=$ac_save_CXXFLAGS |
5189 | elif test $ac_cv_prog_cxx_g = yes; then | |
5190 | if test "$GXX" = yes; then | |
5191 | CXXFLAGS="-g -O2" | |
5192 | else | |
5193 | CXXFLAGS="-g" | |
5194 | fi | |
5195 | else | |
5196 | if test "$GXX" = yes; then | |
5197 | CXXFLAGS="-O2" | |
5198 | else | |
5199 | CXXFLAGS= | |
5200 | fi | |
5201 | fi | |
6b2e4ec5 ZK |
5202 | ac_prog_cxx_stdcxx=no |
5203 | if test x$ac_prog_cxx_stdcxx = xno | |
5204 | then : | |
5205 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 | |
5206 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } | |
ae916f77 | 5207 | if test ${ac_cv_prog_cxx_cxx11+y} |
6b2e4ec5 ZK |
5208 | then : |
5209 | printf %s "(cached) " >&6 | |
635df748 ZK |
5210 | else case e in #( |
5211 | e) ac_cv_prog_cxx_cxx11=no | |
6b2e4ec5 ZK |
5212 | ac_save_CXX=$CXX |
5213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5214 | /* end confdefs.h. */ | |
5215 | $ac_cxx_conftest_cxx11_program | |
5216 | _ACEOF | |
5217 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA | |
5218 | do | |
5219 | CXX="$ac_save_CXX $ac_arg" | |
5220 | if ac_fn_cxx_try_compile "$LINENO" | |
5221 | then : | |
5222 | ac_cv_prog_cxx_cxx11=$ac_arg | |
5223 | fi | |
5224 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5225 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break | |
5226 | done | |
5227 | rm -f conftest.$ac_ext | |
635df748 ZK |
5228 | CXX=$ac_save_CXX ;; |
5229 | esac | |
6b2e4ec5 ZK |
5230 | fi |
5231 | ||
5232 | if test "x$ac_cv_prog_cxx_cxx11" = xno | |
5233 | then : | |
5234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5235 | printf "%s\n" "unsupported" >&6; } | |
635df748 ZK |
5236 | else case e in #( |
5237 | e) if test "x$ac_cv_prog_cxx_cxx11" = x | |
6b2e4ec5 ZK |
5238 | then : |
5239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5240 | printf "%s\n" "none needed" >&6; } | |
635df748 ZK |
5241 | else case e in #( |
5242 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 | |
6b2e4ec5 | 5243 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } |
635df748 ZK |
5244 | CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; |
5245 | esac | |
6b2e4ec5 ZK |
5246 | fi |
5247 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 | |
635df748 ZK |
5248 | ac_prog_cxx_stdcxx=cxx11 ;; |
5249 | esac | |
6b2e4ec5 ZK |
5250 | fi |
5251 | fi | |
5252 | if test x$ac_prog_cxx_stdcxx = xno | |
5253 | then : | |
5254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 | |
5255 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } | |
ae916f77 | 5256 | if test ${ac_cv_prog_cxx_cxx98+y} |
6b2e4ec5 ZK |
5257 | then : |
5258 | printf %s "(cached) " >&6 | |
635df748 ZK |
5259 | else case e in #( |
5260 | e) ac_cv_prog_cxx_cxx98=no | |
6b2e4ec5 ZK |
5261 | ac_save_CXX=$CXX |
5262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5263 | /* end confdefs.h. */ | |
5264 | $ac_cxx_conftest_cxx98_program | |
5265 | _ACEOF | |
5266 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA | |
5267 | do | |
5268 | CXX="$ac_save_CXX $ac_arg" | |
5269 | if ac_fn_cxx_try_compile "$LINENO" | |
5270 | then : | |
5271 | ac_cv_prog_cxx_cxx98=$ac_arg | |
5272 | fi | |
5273 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5274 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break | |
5275 | done | |
5276 | rm -f conftest.$ac_ext | |
635df748 ZK |
5277 | CXX=$ac_save_CXX ;; |
5278 | esac | |
6b2e4ec5 ZK |
5279 | fi |
5280 | ||
5281 | if test "x$ac_cv_prog_cxx_cxx98" = xno | |
5282 | then : | |
5283 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5284 | printf "%s\n" "unsupported" >&6; } | |
635df748 ZK |
5285 | else case e in #( |
5286 | e) if test "x$ac_cv_prog_cxx_cxx98" = x | |
6b2e4ec5 ZK |
5287 | then : |
5288 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5289 | printf "%s\n" "none needed" >&6; } | |
635df748 ZK |
5290 | else case e in #( |
5291 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 | |
6b2e4ec5 | 5292 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } |
635df748 ZK |
5293 | CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; |
5294 | esac | |
6b2e4ec5 ZK |
5295 | fi |
5296 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 | |
635df748 ZK |
5297 | ac_prog_cxx_stdcxx=cxx98 ;; |
5298 | esac | |
6b2e4ec5 ZK |
5299 | fi |
5300 | fi | |
5301 | ||
acb6c062 PR |
5302 | ac_ext=c |
5303 | ac_cpp='$CPP $CPPFLAGS' | |
5304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5307 | ||
f207a6d3 ZK |
5308 | CFLAGS=$save_CFLAGS |
5309 | CXXFLAGS=$save_CXXFLAGS | |
e727da6c | 5310 | PATH_SBIN="$PATH:/usr/sbin:/sbin" |
ad6254c5 | 5311 | |
7a197a62 | 5312 | |
ad6254c5 | 5313 | |
635df748 ZK |
5314 | # Find a good install program. We prefer a C program (faster), |
5315 | # so one script is as good as another. But avoid the broken or | |
5316 | # incompatible versions: | |
5317 | # SysV /etc/install, /usr/sbin/install | |
5318 | # SunOS /usr/etc/install | |
5319 | # IRIX /sbin/install | |
5320 | # AIX /bin/install | |
5321 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
5322 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
5323 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5324 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5325 | # OS/2's system install, which has a completely different semantic | |
5326 | # ./install, which can be erroneously created by make from ./install.sh. | |
5327 | # Reject install programs that cannot install multiple files. | |
5328 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
5329 | printf %s "checking for a BSD-compatible install... " >&6; } | |
5330 | if test -z "$INSTALL"; then | |
5331 | if test ${ac_cv_path_install+y} | |
6b2e4ec5 ZK |
5332 | then : |
5333 | printf %s "(cached) " >&6 | |
635df748 ZK |
5334 | else case e in #( |
5335 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5336 | for as_dir in $PATH | |
f11781c5 AK |
5337 | do |
5338 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
5339 | case $as_dir in #((( |
5340 | '') as_dir=./ ;; | |
5341 | */) ;; | |
5342 | *) as_dir=$as_dir/ ;; | |
5343 | esac | |
635df748 ZK |
5344 | # Account for fact that we put trailing slashes in our PATH walk. |
5345 | case $as_dir in #(( | |
5346 | ./ | /[cC]/* | \ | |
5347 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5348 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
5349 | /usr/ucb/* ) ;; | |
5350 | *) | |
5351 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5352 | # Don't use installbsd from OSF since it installs stuff as root | |
5353 | # by default. | |
5354 | for ac_prog in ginstall scoinst install; do | |
5355 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5356 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then | |
5357 | if test $ac_prog = install && | |
5358 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5359 | # AIX install. It has an incompatible calling convention. | |
5360 | : | |
5361 | elif test $ac_prog = install && | |
5362 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5363 | # program-specific install script used by HP pwplus--don't use. | |
5364 | : | |
5365 | else | |
5366 | rm -rf conftest.one conftest.two conftest.dir | |
5367 | echo one > conftest.one | |
5368 | echo two > conftest.two | |
5369 | mkdir conftest.dir | |
5370 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && | |
5371 | test -s conftest.one && test -s conftest.two && | |
5372 | test -s conftest.dir/conftest.one && | |
5373 | test -s conftest.dir/conftest.two | |
5374 | then | |
5375 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" | |
5376 | break 3 | |
5377 | fi | |
5378 | fi | |
5379 | fi | |
5380 | done | |
5381 | done | |
5382 | ;; | |
5383 | esac | |
5384 | ||
5385 | done | |
5386 | IFS=$as_save_IFS | |
5387 | ||
5388 | rm -rf conftest.one conftest.two conftest.dir | |
5389 | ;; | |
5390 | esac | |
5391 | fi | |
5392 | if test ${ac_cv_path_install+y}; then | |
5393 | INSTALL=$ac_cv_path_install | |
5394 | else | |
5395 | # As a last resort, use the slow shell script. Don't cache a | |
5396 | # value for INSTALL within a source directory, because that will | |
5397 | # break other packages using the cache if that directory is | |
5398 | # removed, or if the value is a relative name. | |
5399 | INSTALL=$ac_install_sh | |
5400 | fi | |
5401 | fi | |
5402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
5403 | printf "%s\n" "$INSTALL" >&6; } | |
5404 | ||
5405 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5406 | # It thinks the first close brace ends the variable substitution. | |
5407 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5408 | ||
5409 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
5410 | ||
5411 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
5412 | ||
5413 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5414 | printf %s "checking whether ln -s works... " >&6; } | |
5415 | LN_S=$as_ln_s | |
5416 | if test "$LN_S" = "ln -s"; then | |
5417 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5418 | printf "%s\n" "yes" >&6; } | |
5419 | else | |
5420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5421 | printf "%s\n" "no, using $LN_S" >&6; } | |
5422 | fi | |
5423 | ||
5424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5425 | printf %s "checking for grep that handles long lines and -e... " >&6; } | |
5426 | if test ${ac_cv_path_GREP+y} | |
5427 | then : | |
5428 | printf %s "(cached) " >&6 | |
5429 | else case e in #( | |
5430 | e) if test -z "$GREP"; then | |
5431 | ac_path_GREP_found=false | |
5432 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5434 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5435 | do | |
5436 | IFS=$as_save_IFS | |
5437 | case $as_dir in #((( | |
5438 | '') as_dir=./ ;; | |
5439 | */) ;; | |
5440 | *) as_dir=$as_dir/ ;; | |
5441 | esac | |
5442 | for ac_prog in grep ggrep | |
5443 | do | |
5444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5445 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" | |
5446 | as_fn_executable_p "$ac_path_GREP" || continue | |
5447 | # Check for GNU ac_path_GREP and select it if it is found. | |
f11781c5 | 5448 | # Check for GNU $ac_path_GREP |
635df748 | 5449 | case `"$ac_path_GREP" --version 2>&1` in #( |
f11781c5 AK |
5450 | *GNU*) |
5451 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
635df748 | 5452 | #( |
f11781c5 AK |
5453 | *) |
5454 | ac_count=0 | |
6b2e4ec5 | 5455 | printf %s 0123456789 >"conftest.in" |
f11781c5 AK |
5456 | while : |
5457 | do | |
5458 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5459 | mv "conftest.tmp" "conftest.in" | |
5460 | cp "conftest.in" "conftest.nl" | |
6b2e4ec5 | 5461 | printf "%s\n" 'GREP' >> "conftest.nl" |
f11781c5 AK |
5462 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5463 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5464 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5465 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5466 | # Best one so far, save it but keep looking for a better one | |
5467 | ac_cv_path_GREP="$ac_path_GREP" | |
5468 | ac_path_GREP_max=$ac_count | |
5469 | fi | |
5470 | # 10*(2^10) chars as input seems more than enough | |
5471 | test $ac_count -gt 10 && break | |
5472 | done | |
5473 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5474 | esac | |
ad6254c5 | 5475 | |
f11781c5 AK |
5476 | $ac_path_GREP_found && break 3 |
5477 | done | |
5478 | done | |
5479 | done | |
5480 | IFS=$as_save_IFS | |
5481 | if test -z "$ac_cv_path_GREP"; then | |
5482 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5483 | fi | |
5484 | else | |
5485 | ac_cv_path_GREP=$GREP | |
7a197a62 | 5486 | fi |
635df748 ZK |
5487 | ;; |
5488 | esac | |
d0191583 | 5489 | fi |
6b2e4ec5 ZK |
5490 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
5491 | printf "%s\n" "$ac_cv_path_GREP" >&6; } | |
f11781c5 | 5492 | GREP="$ac_cv_path_GREP" |
ad6254c5 | 5493 | |
24bbc4d7 | 5494 | |
6b2e4ec5 ZK |
5495 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
5496 | printf %s "checking for egrep... " >&6; } | |
5497 | if test ${ac_cv_path_EGREP+y} | |
5498 | then : | |
5499 | printf %s "(cached) " >&6 | |
635df748 ZK |
5500 | else case e in #( |
5501 | e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
f11781c5 AK |
5502 | then ac_cv_path_EGREP="$GREP -E" |
5503 | else | |
5504 | if test -z "$EGREP"; then | |
5505 | ac_path_EGREP_found=false | |
5506 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5508 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5509 | do | |
5510 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
5511 | case $as_dir in #((( |
5512 | '') as_dir=./ ;; | |
5513 | */) ;; | |
5514 | *) as_dir=$as_dir/ ;; | |
5515 | esac | |
5516 | for ac_prog in egrep | |
5517 | do | |
f11781c5 | 5518 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 5519 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
4d0c3ed0 | 5520 | as_fn_executable_p "$ac_path_EGREP" || continue |
f11781c5 AK |
5521 | # Check for GNU ac_path_EGREP and select it if it is found. |
5522 | # Check for GNU $ac_path_EGREP | |
635df748 | 5523 | case `"$ac_path_EGREP" --version 2>&1` in #( |
f11781c5 AK |
5524 | *GNU*) |
5525 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
635df748 | 5526 | #( |
f11781c5 AK |
5527 | *) |
5528 | ac_count=0 | |
6b2e4ec5 | 5529 | printf %s 0123456789 >"conftest.in" |
f11781c5 AK |
5530 | while : |
5531 | do | |
5532 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5533 | mv "conftest.tmp" "conftest.in" | |
5534 | cp "conftest.in" "conftest.nl" | |
6b2e4ec5 | 5535 | printf "%s\n" 'EGREP' >> "conftest.nl" |
f11781c5 AK |
5536 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
5537 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5538 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5539 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5540 | # Best one so far, save it but keep looking for a better one | |
5541 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5542 | ac_path_EGREP_max=$ac_count | |
5543 | fi | |
5544 | # 10*(2^10) chars as input seems more than enough | |
5545 | test $ac_count -gt 10 && break | |
5546 | done | |
5547 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5548 | esac | |
24bbc4d7 | 5549 | |
f11781c5 AK |
5550 | $ac_path_EGREP_found && break 3 |
5551 | done | |
5552 | done | |
5553 | done | |
5554 | IFS=$as_save_IFS | |
5555 | if test -z "$ac_cv_path_EGREP"; then | |
5556 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5557 | fi | |
24bbc4d7 | 5558 | else |
f11781c5 | 5559 | ac_cv_path_EGREP=$EGREP |
24bbc4d7 AK |
5560 | fi |
5561 | ||
635df748 ZK |
5562 | fi ;; |
5563 | esac | |
24bbc4d7 | 5564 | fi |
6b2e4ec5 ZK |
5565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
5566 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } | |
f11781c5 | 5567 | EGREP="$ac_cv_path_EGREP" |
93bd259b | 5568 | |
635df748 ZK |
5569 | EGREP_TRADITIONAL=$EGREP |
5570 | ac_cv_path_EGREP_TRADITIONAL=$EGREP | |
ad6254c5 | 5571 | |
6b2e4ec5 ZK |
5572 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
5573 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
f11781c5 | 5574 | set x ${MAKE-make} |
6b2e4ec5 ZK |
5575 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
5576 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} | |
5577 | then : | |
5578 | printf %s "(cached) " >&6 | |
635df748 ZK |
5579 | else case e in #( |
5580 | e) cat >conftest.make <<\_ACEOF | |
f11781c5 AK |
5581 | SHELL = /bin/sh |
5582 | all: | |
5583 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5584 | _ACEOF | |
5585 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
5586 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
5587 | *@@@%%%=?*=@@@%%%*) | |
5588 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5589 | *) | |
5590 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5591 | esac | |
635df748 ZK |
5592 | rm -f conftest.make ;; |
5593 | esac | |
f11781c5 AK |
5594 | fi |
5595 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6b2e4ec5 ZK |
5596 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5597 | printf "%s\n" "yes" >&6; } | |
f11781c5 AK |
5598 | SET_MAKE= |
5599 | else | |
6b2e4ec5 ZK |
5600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5601 | printf "%s\n" "no" >&6; } | |
f11781c5 | 5602 | SET_MAKE="MAKE=${MAKE-make}" |
ad6254c5 AK |
5603 | fi |
5604 | ||
6b2e4ec5 ZK |
5605 | |
5606 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 | |
5607 | printf %s "checking for a race-free mkdir -p... " >&6; } | |
f11781c5 | 5608 | if test -z "$MKDIR_P"; then |
6b2e4ec5 ZK |
5609 | if test ${ac_cv_path_mkdir+y} |
5610 | then : | |
5611 | printf %s "(cached) " >&6 | |
635df748 ZK |
5612 | else case e in #( |
5613 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
f11781c5 AK |
5614 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
5615 | do | |
5616 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
5617 | case $as_dir in #((( |
5618 | '') as_dir=./ ;; | |
5619 | */) ;; | |
5620 | *) as_dir=$as_dir/ ;; | |
5621 | esac | |
f11781c5 AK |
5622 | for ac_prog in mkdir gmkdir; do |
5623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6b2e4ec5 ZK |
5624 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
5625 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
5626 | 'mkdir ('*'coreutils) '* | \ | |
635df748 | 5627 | *'BusyBox '* | \ |
f11781c5 | 5628 | 'mkdir (fileutils) '4.1*) |
6b2e4ec5 | 5629 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
f11781c5 AK |
5630 | break 3;; |
5631 | esac | |
5632 | done | |
5633 | done | |
5634 | done | |
5635 | IFS=$as_save_IFS | |
635df748 ZK |
5636 | ;; |
5637 | esac | |
f11781c5 | 5638 | fi |
ad6254c5 | 5639 | |
f11781c5 | 5640 | test -d ./--version && rmdir ./--version |
6b2e4ec5 | 5641 | if test ${ac_cv_path_mkdir+y}; then |
f11781c5 AK |
5642 | MKDIR_P="$ac_cv_path_mkdir -p" |
5643 | else | |
635df748 ZK |
5644 | # As a last resort, use plain mkdir -p, |
5645 | # in the hope it doesn't have the bugs of ancient mkdir. | |
5646 | MKDIR_P='mkdir -p' | |
f11781c5 | 5647 | fi |
ad6254c5 | 5648 | fi |
6b2e4ec5 ZK |
5649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
5650 | printf "%s\n" "$MKDIR_P" >&6; } | |
7a197a62 | 5651 | |
f11781c5 AK |
5652 | if test -n "$ac_tool_prefix"; then |
5653 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5654 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6b2e4ec5 ZK |
5655 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5656 | printf %s "checking for $ac_word... " >&6; } | |
5657 | if test ${ac_cv_prog_RANLIB+y} | |
5658 | then : | |
5659 | printf %s "(cached) " >&6 | |
635df748 ZK |
5660 | else case e in #( |
5661 | e) if test -n "$RANLIB"; then | |
f11781c5 AK |
5662 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
5663 | else | |
5664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5665 | for as_dir in $PATH | |
5666 | do | |
5667 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
5668 | case $as_dir in #((( |
5669 | '') as_dir=./ ;; | |
5670 | */) ;; | |
5671 | *) as_dir=$as_dir/ ;; | |
5672 | esac | |
f11781c5 | 5673 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 5674 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
f11781c5 | 5675 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6b2e4ec5 | 5676 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
f11781c5 AK |
5677 | break 2 |
5678 | fi | |
5679 | done | |
5680 | done | |
5681 | IFS=$as_save_IFS | |
d0191583 | 5682 | |
635df748 ZK |
5683 | fi ;; |
5684 | esac | |
f11781c5 AK |
5685 | fi |
5686 | RANLIB=$ac_cv_prog_RANLIB | |
5687 | if test -n "$RANLIB"; then | |
6b2e4ec5 ZK |
5688 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
5689 | printf "%s\n" "$RANLIB" >&6; } | |
d0191583 | 5690 | else |
6b2e4ec5 ZK |
5691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5692 | printf "%s\n" "no" >&6; } | |
ad6254c5 | 5693 | fi |
ad6254c5 | 5694 | |
8a2fc586 | 5695 | |
d0191583 | 5696 | fi |
f11781c5 AK |
5697 | if test -z "$ac_cv_prog_RANLIB"; then |
5698 | ac_ct_RANLIB=$RANLIB | |
5699 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5700 | set dummy ranlib; ac_word=$2 | |
6b2e4ec5 ZK |
5701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5702 | printf %s "checking for $ac_word... " >&6; } | |
5703 | if test ${ac_cv_prog_ac_ct_RANLIB+y} | |
5704 | then : | |
5705 | printf %s "(cached) " >&6 | |
635df748 ZK |
5706 | else case e in #( |
5707 | e) if test -n "$ac_ct_RANLIB"; then | |
f11781c5 AK |
5708 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
5709 | else | |
5710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5711 | for as_dir in $PATH | |
5712 | do | |
5713 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
5714 | case $as_dir in #((( |
5715 | '') as_dir=./ ;; | |
5716 | */) ;; | |
5717 | *) as_dir=$as_dir/ ;; | |
5718 | esac | |
f11781c5 | 5719 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 5720 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
f11781c5 | 5721 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6b2e4ec5 | 5722 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
f11781c5 AK |
5723 | break 2 |
5724 | fi | |
5725 | done | |
5726 | done | |
5727 | IFS=$as_save_IFS | |
8a2fc586 | 5728 | |
635df748 ZK |
5729 | fi ;; |
5730 | esac | |
f11781c5 AK |
5731 | fi |
5732 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5733 | if test -n "$ac_ct_RANLIB"; then | |
6b2e4ec5 ZK |
5734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
5735 | printf "%s\n" "$ac_ct_RANLIB" >&6; } | |
8fea97b7 | 5736 | else |
6b2e4ec5 ZK |
5737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5738 | printf "%s\n" "no" >&6; } | |
8fea97b7 ZK |
5739 | fi |
5740 | ||
f11781c5 AK |
5741 | if test "x$ac_ct_RANLIB" = x; then |
5742 | RANLIB=":" | |
5743 | else | |
5744 | case $cross_compiling:$ac_tool_warned in | |
5745 | yes:) | |
6b2e4ec5 ZK |
5746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5747 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
f11781c5 | 5748 | ac_tool_warned=yes ;; |
8fea97b7 | 5749 | esac |
f11781c5 AK |
5750 | RANLIB=$ac_ct_RANLIB |
5751 | fi | |
d0191583 | 5752 | else |
f11781c5 | 5753 | RANLIB="$ac_cv_prog_RANLIB" |
d0191583 | 5754 | fi |
8a2fc586 | 5755 | |
ae916f77 ZK |
5756 | if test -n "$ac_tool_prefix"; then |
5757 | # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args. | |
5758 | set dummy ${ac_tool_prefix}readelf; ac_word=$2 | |
5759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5760 | printf %s "checking for $ac_word... " >&6; } | |
5761 | if test ${ac_cv_prog_READELF+y} | |
5762 | then : | |
5763 | printf %s "(cached) " >&6 | |
635df748 ZK |
5764 | else case e in #( |
5765 | e) if test -n "$READELF"; then | |
ae916f77 ZK |
5766 | ac_cv_prog_READELF="$READELF" # Let the user override the test. |
5767 | else | |
5768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5769 | for as_dir in $PATH | |
5770 | do | |
5771 | IFS=$as_save_IFS | |
5772 | case $as_dir in #((( | |
5773 | '') as_dir=./ ;; | |
5774 | */) ;; | |
5775 | *) as_dir=$as_dir/ ;; | |
5776 | esac | |
5777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5778 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5779 | ac_cv_prog_READELF="${ac_tool_prefix}readelf" | |
5780 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5781 | break 2 | |
5782 | fi | |
5783 | done | |
5784 | done | |
5785 | IFS=$as_save_IFS | |
5786 | ||
635df748 ZK |
5787 | fi ;; |
5788 | esac | |
ae916f77 ZK |
5789 | fi |
5790 | READELF=$ac_cv_prog_READELF | |
5791 | if test -n "$READELF"; then | |
5792 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
5793 | printf "%s\n" "$READELF" >&6; } | |
5794 | else | |
5795 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5796 | printf "%s\n" "no" >&6; } | |
5797 | fi | |
5798 | ||
5799 | ||
5800 | fi | |
5801 | if test -z "$ac_cv_prog_READELF"; then | |
5802 | ac_ct_READELF=$READELF | |
5803 | # Extract the first word of "readelf", so it can be a program name with args. | |
5804 | set dummy readelf; ac_word=$2 | |
5805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5806 | printf %s "checking for $ac_word... " >&6; } | |
5807 | if test ${ac_cv_prog_ac_ct_READELF+y} | |
5808 | then : | |
5809 | printf %s "(cached) " >&6 | |
635df748 ZK |
5810 | else case e in #( |
5811 | e) if test -n "$ac_ct_READELF"; then | |
ae916f77 ZK |
5812 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. |
5813 | else | |
5814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5815 | for as_dir in $PATH | |
5816 | do | |
5817 | IFS=$as_save_IFS | |
5818 | case $as_dir in #((( | |
5819 | '') as_dir=./ ;; | |
5820 | */) ;; | |
5821 | *) as_dir=$as_dir/ ;; | |
5822 | esac | |
5823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5824 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5825 | ac_cv_prog_ac_ct_READELF="readelf" | |
5826 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5827 | break 2 | |
5828 | fi | |
5829 | done | |
5830 | done | |
5831 | IFS=$as_save_IFS | |
5832 | ||
635df748 ZK |
5833 | fi ;; |
5834 | esac | |
ae916f77 ZK |
5835 | fi |
5836 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | |
5837 | if test -n "$ac_ct_READELF"; then | |
5838 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | |
5839 | printf "%s\n" "$ac_ct_READELF" >&6; } | |
5840 | else | |
5841 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5842 | printf "%s\n" "no" >&6; } | |
5843 | fi | |
5844 | ||
5845 | if test "x$ac_ct_READELF" = x; then | |
5846 | READELF="" | |
5847 | else | |
5848 | case $cross_compiling:$ac_tool_warned in | |
5849 | yes:) | |
5850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5851 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5852 | ac_tool_warned=yes ;; | |
5853 | esac | |
5854 | READELF=$ac_ct_READELF | |
5855 | fi | |
5856 | else | |
5857 | READELF="$ac_cv_prog_READELF" | |
5858 | fi | |
5859 | ||
37cd8f96 ZK |
5860 | if test -n "$ac_tool_prefix"; then |
5861 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5862 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6b2e4ec5 ZK |
5863 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5864 | printf %s "checking for $ac_word... " >&6; } | |
5865 | if test ${ac_cv_prog_AR+y} | |
5866 | then : | |
5867 | printf %s "(cached) " >&6 | |
635df748 ZK |
5868 | else case e in #( |
5869 | e) if test -n "$AR"; then | |
37cd8f96 ZK |
5870 | ac_cv_prog_AR="$AR" # Let the user override the test. |
5871 | else | |
5872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5873 | for as_dir in $PATH | |
5874 | do | |
5875 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
5876 | case $as_dir in #((( |
5877 | '') as_dir=./ ;; | |
5878 | */) ;; | |
5879 | *) as_dir=$as_dir/ ;; | |
5880 | esac | |
37cd8f96 | 5881 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 5882 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
37cd8f96 | 5883 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6b2e4ec5 | 5884 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
37cd8f96 ZK |
5885 | break 2 |
5886 | fi | |
5887 | done | |
5888 | done | |
5889 | IFS=$as_save_IFS | |
5890 | ||
635df748 ZK |
5891 | fi ;; |
5892 | esac | |
37cd8f96 ZK |
5893 | fi |
5894 | AR=$ac_cv_prog_AR | |
5895 | if test -n "$AR"; then | |
6b2e4ec5 ZK |
5896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5897 | printf "%s\n" "$AR" >&6; } | |
37cd8f96 | 5898 | else |
6b2e4ec5 ZK |
5899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5900 | printf "%s\n" "no" >&6; } | |
37cd8f96 ZK |
5901 | fi |
5902 | ||
5903 | ||
5904 | fi | |
5905 | if test -z "$ac_cv_prog_AR"; then | |
5906 | ac_ct_AR=$AR | |
5907 | # Extract the first word of "ar", so it can be a program name with args. | |
5908 | set dummy ar; ac_word=$2 | |
6b2e4ec5 ZK |
5909 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5910 | printf %s "checking for $ac_word... " >&6; } | |
5911 | if test ${ac_cv_prog_ac_ct_AR+y} | |
5912 | then : | |
5913 | printf %s "(cached) " >&6 | |
635df748 ZK |
5914 | else case e in #( |
5915 | e) if test -n "$ac_ct_AR"; then | |
37cd8f96 ZK |
5916 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
5917 | else | |
5918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5919 | for as_dir in $PATH | |
5920 | do | |
5921 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
5922 | case $as_dir in #((( |
5923 | '') as_dir=./ ;; | |
5924 | */) ;; | |
5925 | *) as_dir=$as_dir/ ;; | |
5926 | esac | |
37cd8f96 | 5927 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 | 5928 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
37cd8f96 | 5929 | ac_cv_prog_ac_ct_AR="ar" |
6b2e4ec5 | 5930 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
37cd8f96 ZK |
5931 | break 2 |
5932 | fi | |
5933 | done | |
5934 | done | |
5935 | IFS=$as_save_IFS | |
5936 | ||
635df748 ZK |
5937 | fi ;; |
5938 | esac | |
37cd8f96 ZK |
5939 | fi |
5940 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5941 | if test -n "$ac_ct_AR"; then | |
6b2e4ec5 ZK |
5942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5943 | printf "%s\n" "$ac_ct_AR" >&6; } | |
37cd8f96 | 5944 | else |
6b2e4ec5 ZK |
5945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5946 | printf "%s\n" "no" >&6; } | |
37cd8f96 ZK |
5947 | fi |
5948 | ||
5949 | if test "x$ac_ct_AR" = x; then | |
5950 | AR="" | |
5951 | else | |
5952 | case $cross_compiling:$ac_tool_warned in | |
5953 | yes:) | |
6b2e4ec5 ZK |
5954 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5955 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
37cd8f96 ZK |
5956 | ac_tool_warned=yes ;; |
5957 | esac | |
5958 | AR=$ac_ct_AR | |
5959 | fi | |
5960 | else | |
5961 | AR="$ac_cv_prog_AR" | |
5962 | fi | |
5963 | ||
1b59f5a9 ZK |
5964 | if test -n "$ac_tool_prefix"; then |
5965 | # Extract the first word of "${ac_tool_prefix}cflow", so it can be a program name with args. | |
5966 | set dummy ${ac_tool_prefix}cflow; ac_word=$2 | |
6b2e4ec5 ZK |
5967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5968 | printf %s "checking for $ac_word... " >&6; } | |
5969 | if test ${ac_cv_path_CFLOW_CMD+y} | |
5970 | then : | |
5971 | printf %s "(cached) " >&6 | |
635df748 ZK |
5972 | else case e in #( |
5973 | e) case $CFLOW_CMD in | |
f11781c5 AK |
5974 | [\\/]* | ?:[\\/]*) |
5975 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
5976 | ;; | |
5977 | *) | |
5978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5979 | for as_dir in $PATH | |
5980 | do | |
5981 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
5982 | case $as_dir in #((( |
5983 | '') as_dir=./ ;; | |
5984 | */) ;; | |
5985 | *) as_dir=$as_dir/ ;; | |
5986 | esac | |
f11781c5 | 5987 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
5988 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
5989 | ac_cv_path_CFLOW_CMD="$as_dir$ac_word$ac_exec_ext" | |
5990 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
f11781c5 AK |
5991 | break 2 |
5992 | fi | |
5993 | done | |
5994 | done | |
5995 | IFS=$as_save_IFS | |
8a2fc586 | 5996 | |
f11781c5 | 5997 | ;; |
635df748 | 5998 | esac ;; |
f11781c5 | 5999 | esac |
ad6254c5 | 6000 | fi |
f11781c5 AK |
6001 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD |
6002 | if test -n "$CFLOW_CMD"; then | |
6b2e4ec5 ZK |
6003 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5 |
6004 | printf "%s\n" "$CFLOW_CMD" >&6; } | |
37ddf259 | 6005 | else |
6b2e4ec5 ZK |
6006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6007 | printf "%s\n" "no" >&6; } | |
37ddf259 AK |
6008 | fi |
6009 | ||
e2997b73 | 6010 | |
1b59f5a9 ZK |
6011 | fi |
6012 | if test -z "$ac_cv_path_CFLOW_CMD"; then | |
6013 | ac_pt_CFLOW_CMD=$CFLOW_CMD | |
6014 | # Extract the first word of "cflow", so it can be a program name with args. | |
6015 | set dummy cflow; ac_word=$2 | |
6b2e4ec5 ZK |
6016 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6017 | printf %s "checking for $ac_word... " >&6; } | |
6018 | if test ${ac_cv_path_ac_pt_CFLOW_CMD+y} | |
6019 | then : | |
6020 | printf %s "(cached) " >&6 | |
635df748 ZK |
6021 | else case e in #( |
6022 | e) case $ac_pt_CFLOW_CMD in | |
1b59f5a9 ZK |
6023 | [\\/]* | ?:[\\/]*) |
6024 | ac_cv_path_ac_pt_CFLOW_CMD="$ac_pt_CFLOW_CMD" # Let the user override the test with a path. | |
6025 | ;; | |
6026 | *) | |
6027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6028 | for as_dir in $PATH | |
6029 | do | |
6030 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
6031 | case $as_dir in #((( |
6032 | '') as_dir=./ ;; | |
6033 | */) ;; | |
6034 | *) as_dir=$as_dir/ ;; | |
6035 | esac | |
1b59f5a9 | 6036 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
6037 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6038 | ac_cv_path_ac_pt_CFLOW_CMD="$as_dir$ac_word$ac_exec_ext" | |
6039 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
1b59f5a9 ZK |
6040 | break 2 |
6041 | fi | |
6042 | done | |
6043 | done | |
6044 | IFS=$as_save_IFS | |
6045 | ||
6046 | ;; | |
635df748 | 6047 | esac ;; |
1b59f5a9 ZK |
6048 | esac |
6049 | fi | |
6050 | ac_pt_CFLOW_CMD=$ac_cv_path_ac_pt_CFLOW_CMD | |
6051 | if test -n "$ac_pt_CFLOW_CMD"; then | |
6b2e4ec5 ZK |
6052 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CFLOW_CMD" >&5 |
6053 | printf "%s\n" "$ac_pt_CFLOW_CMD" >&6; } | |
1b59f5a9 | 6054 | else |
6b2e4ec5 ZK |
6055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6056 | printf "%s\n" "no" >&6; } | |
1b59f5a9 ZK |
6057 | fi |
6058 | ||
6059 | if test "x$ac_pt_CFLOW_CMD" = x; then | |
6060 | CFLOW_CMD="" | |
6061 | else | |
6062 | case $cross_compiling:$ac_tool_warned in | |
6063 | yes:) | |
6b2e4ec5 ZK |
6064 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6065 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
1b59f5a9 ZK |
6066 | ac_tool_warned=yes ;; |
6067 | esac | |
6068 | CFLOW_CMD=$ac_pt_CFLOW_CMD | |
6069 | fi | |
6070 | else | |
6071 | CFLOW_CMD="$ac_cv_path_CFLOW_CMD" | |
6072 | fi | |
6073 | ||
6074 | if test -n "$ac_tool_prefix"; then | |
6075 | # Extract the first word of "${ac_tool_prefix}cscope", so it can be a program name with args. | |
6076 | set dummy ${ac_tool_prefix}cscope; ac_word=$2 | |
6b2e4ec5 ZK |
6077 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6078 | printf %s "checking for $ac_word... " >&6; } | |
6079 | if test ${ac_cv_path_CSCOPE_CMD+y} | |
6080 | then : | |
6081 | printf %s "(cached) " >&6 | |
635df748 ZK |
6082 | else case e in #( |
6083 | e) case $CSCOPE_CMD in | |
e2997b73 | 6084 | [\\/]* | ?:[\\/]*) |
f11781c5 | 6085 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. |
e2997b73 AK |
6086 | ;; |
6087 | *) | |
6088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6089 | for as_dir in $PATH | |
6090 | do | |
6091 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
6092 | case $as_dir in #((( |
6093 | '') as_dir=./ ;; | |
6094 | */) ;; | |
6095 | *) as_dir=$as_dir/ ;; | |
6096 | esac | |
f11781c5 | 6097 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
6098 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6099 | ac_cv_path_CSCOPE_CMD="$as_dir$ac_word$ac_exec_ext" | |
6100 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
e2997b73 AK |
6101 | break 2 |
6102 | fi | |
6103 | done | |
f11781c5 | 6104 | done |
e2997b73 AK |
6105 | IFS=$as_save_IFS |
6106 | ||
6107 | ;; | |
635df748 | 6108 | esac ;; |
e2997b73 AK |
6109 | esac |
6110 | fi | |
f11781c5 AK |
6111 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
6112 | if test -n "$CSCOPE_CMD"; then | |
6b2e4ec5 ZK |
6113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5 |
6114 | printf "%s\n" "$CSCOPE_CMD" >&6; } | |
e2997b73 | 6115 | else |
6b2e4ec5 ZK |
6116 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6117 | printf "%s\n" "no" >&6; } | |
e2997b73 | 6118 | fi |
f11781c5 AK |
6119 | |
6120 | ||
1b59f5a9 ZK |
6121 | fi |
6122 | if test -z "$ac_cv_path_CSCOPE_CMD"; then | |
6123 | ac_pt_CSCOPE_CMD=$CSCOPE_CMD | |
6124 | # Extract the first word of "cscope", so it can be a program name with args. | |
6125 | set dummy cscope; ac_word=$2 | |
6b2e4ec5 ZK |
6126 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6127 | printf %s "checking for $ac_word... " >&6; } | |
6128 | if test ${ac_cv_path_ac_pt_CSCOPE_CMD+y} | |
6129 | then : | |
6130 | printf %s "(cached) " >&6 | |
635df748 ZK |
6131 | else case e in #( |
6132 | e) case $ac_pt_CSCOPE_CMD in | |
1b59f5a9 ZK |
6133 | [\\/]* | ?:[\\/]*) |
6134 | ac_cv_path_ac_pt_CSCOPE_CMD="$ac_pt_CSCOPE_CMD" # Let the user override the test with a path. | |
6135 | ;; | |
6136 | *) | |
6137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6138 | for as_dir in $PATH | |
6139 | do | |
6140 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
6141 | case $as_dir in #((( |
6142 | '') as_dir=./ ;; | |
6143 | */) ;; | |
6144 | *) as_dir=$as_dir/ ;; | |
6145 | esac | |
1b59f5a9 | 6146 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
6147 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6148 | ac_cv_path_ac_pt_CSCOPE_CMD="$as_dir$ac_word$ac_exec_ext" | |
6149 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
1b59f5a9 ZK |
6150 | break 2 |
6151 | fi | |
6152 | done | |
6153 | done | |
6154 | IFS=$as_save_IFS | |
6155 | ||
6156 | ;; | |
635df748 | 6157 | esac ;; |
1b59f5a9 ZK |
6158 | esac |
6159 | fi | |
6160 | ac_pt_CSCOPE_CMD=$ac_cv_path_ac_pt_CSCOPE_CMD | |
6161 | if test -n "$ac_pt_CSCOPE_CMD"; then | |
6b2e4ec5 ZK |
6162 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CSCOPE_CMD" >&5 |
6163 | printf "%s\n" "$ac_pt_CSCOPE_CMD" >&6; } | |
1b59f5a9 | 6164 | else |
6b2e4ec5 ZK |
6165 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6166 | printf "%s\n" "no" >&6; } | |
1b59f5a9 ZK |
6167 | fi |
6168 | ||
6169 | if test "x$ac_pt_CSCOPE_CMD" = x; then | |
6170 | CSCOPE_CMD="" | |
6171 | else | |
6172 | case $cross_compiling:$ac_tool_warned in | |
6173 | yes:) | |
6b2e4ec5 ZK |
6174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6175 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
1b59f5a9 ZK |
6176 | ac_tool_warned=yes ;; |
6177 | esac | |
6178 | CSCOPE_CMD=$ac_pt_CSCOPE_CMD | |
6179 | fi | |
6180 | else | |
6181 | CSCOPE_CMD="$ac_cv_path_CSCOPE_CMD" | |
6182 | fi | |
6183 | ||
5987562c AK |
6184 | if test -n "$ac_tool_prefix"; then |
6185 | # Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args. | |
6186 | set dummy ${ac_tool_prefix}chmod; ac_word=$2 | |
6b2e4ec5 ZK |
6187 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6188 | printf %s "checking for $ac_word... " >&6; } | |
6189 | if test ${ac_cv_path_CHMOD+y} | |
6190 | then : | |
6191 | printf %s "(cached) " >&6 | |
635df748 ZK |
6192 | else case e in #( |
6193 | e) case $CHMOD in | |
5987562c AK |
6194 | [\\/]* | ?:[\\/]*) |
6195 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
6196 | ;; | |
6197 | *) | |
6198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6199 | for as_dir in $PATH | |
6200 | do | |
6201 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
6202 | case $as_dir in #((( |
6203 | '') as_dir=./ ;; | |
6204 | */) ;; | |
6205 | *) as_dir=$as_dir/ ;; | |
6206 | esac | |
5987562c | 6207 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
6208 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6209 | ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext" | |
6210 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5987562c AK |
6211 | break 2 |
6212 | fi | |
6213 | done | |
6214 | done | |
6215 | IFS=$as_save_IFS | |
6216 | ||
6217 | ;; | |
635df748 | 6218 | esac ;; |
5987562c AK |
6219 | esac |
6220 | fi | |
6221 | CHMOD=$ac_cv_path_CHMOD | |
6222 | if test -n "$CHMOD"; then | |
6b2e4ec5 ZK |
6223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
6224 | printf "%s\n" "$CHMOD" >&6; } | |
5987562c | 6225 | else |
6b2e4ec5 ZK |
6226 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6227 | printf "%s\n" "no" >&6; } | |
5987562c AK |
6228 | fi |
6229 | ||
6230 | ||
6231 | fi | |
6232 | if test -z "$ac_cv_path_CHMOD"; then | |
6233 | ac_pt_CHMOD=$CHMOD | |
6234 | # Extract the first word of "chmod", so it can be a program name with args. | |
6235 | set dummy chmod; ac_word=$2 | |
6b2e4ec5 ZK |
6236 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6237 | printf %s "checking for $ac_word... " >&6; } | |
6238 | if test ${ac_cv_path_ac_pt_CHMOD+y} | |
6239 | then : | |
6240 | printf %s "(cached) " >&6 | |
635df748 ZK |
6241 | else case e in #( |
6242 | e) case $ac_pt_CHMOD in | |
5987562c AK |
6243 | [\\/]* | ?:[\\/]*) |
6244 | ac_cv_path_ac_pt_CHMOD="$ac_pt_CHMOD" # Let the user override the test with a path. | |
6245 | ;; | |
6246 | *) | |
6247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6248 | for as_dir in $PATH | |
6249 | do | |
6250 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
6251 | case $as_dir in #((( |
6252 | '') as_dir=./ ;; | |
6253 | */) ;; | |
6254 | *) as_dir=$as_dir/ ;; | |
6255 | esac | |
5987562c | 6256 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
6257 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6258 | ac_cv_path_ac_pt_CHMOD="$as_dir$ac_word$ac_exec_ext" | |
6259 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5987562c AK |
6260 | break 2 |
6261 | fi | |
6262 | done | |
6263 | done | |
6264 | IFS=$as_save_IFS | |
6265 | ||
6266 | ;; | |
635df748 | 6267 | esac ;; |
5987562c AK |
6268 | esac |
6269 | fi | |
6270 | ac_pt_CHMOD=$ac_cv_path_ac_pt_CHMOD | |
6271 | if test -n "$ac_pt_CHMOD"; then | |
6b2e4ec5 ZK |
6272 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CHMOD" >&5 |
6273 | printf "%s\n" "$ac_pt_CHMOD" >&6; } | |
5987562c | 6274 | else |
6b2e4ec5 ZK |
6275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6276 | printf "%s\n" "no" >&6; } | |
5987562c AK |
6277 | fi |
6278 | ||
6279 | if test "x$ac_pt_CHMOD" = x; then | |
6280 | CHMOD="" | |
6281 | else | |
6282 | case $cross_compiling:$ac_tool_warned in | |
6283 | yes:) | |
6b2e4ec5 ZK |
6284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6285 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5987562c AK |
6286 | ac_tool_warned=yes ;; |
6287 | esac | |
6288 | CHMOD=$ac_pt_CHMOD | |
6289 | fi | |
6290 | else | |
6291 | CHMOD="$ac_cv_path_CHMOD" | |
6292 | fi | |
6293 | ||
6118b0fb ZK |
6294 | if test -n "$ac_tool_prefix"; then |
6295 | # Extract the first word of "${ac_tool_prefix}wc", so it can be a program name with args. | |
6296 | set dummy ${ac_tool_prefix}wc; ac_word=$2 | |
6b2e4ec5 ZK |
6297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6298 | printf %s "checking for $ac_word... " >&6; } | |
6299 | if test ${ac_cv_path_WC+y} | |
6300 | then : | |
6301 | printf %s "(cached) " >&6 | |
635df748 ZK |
6302 | else case e in #( |
6303 | e) case $WC in | |
6118b0fb ZK |
6304 | [\\/]* | ?:[\\/]*) |
6305 | ac_cv_path_WC="$WC" # Let the user override the test with a path. | |
6306 | ;; | |
6307 | *) | |
6308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6309 | for as_dir in $PATH | |
6310 | do | |
6311 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
6312 | case $as_dir in #((( |
6313 | '') as_dir=./ ;; | |
6314 | */) ;; | |
6315 | *) as_dir=$as_dir/ ;; | |
6316 | esac | |
6118b0fb | 6317 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
6318 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6319 | ac_cv_path_WC="$as_dir$ac_word$ac_exec_ext" | |
6320 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6118b0fb ZK |
6321 | break 2 |
6322 | fi | |
6323 | done | |
6324 | done | |
6325 | IFS=$as_save_IFS | |
6326 | ||
6327 | ;; | |
635df748 | 6328 | esac ;; |
6118b0fb ZK |
6329 | esac |
6330 | fi | |
6331 | WC=$ac_cv_path_WC | |
6332 | if test -n "$WC"; then | |
6b2e4ec5 ZK |
6333 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 |
6334 | printf "%s\n" "$WC" >&6; } | |
6118b0fb | 6335 | else |
6b2e4ec5 ZK |
6336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6337 | printf "%s\n" "no" >&6; } | |
6118b0fb ZK |
6338 | fi |
6339 | ||
6340 | ||
6341 | fi | |
6342 | if test -z "$ac_cv_path_WC"; then | |
6343 | ac_pt_WC=$WC | |
6344 | # Extract the first word of "wc", so it can be a program name with args. | |
6345 | set dummy wc; ac_word=$2 | |
6b2e4ec5 ZK |
6346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6347 | printf %s "checking for $ac_word... " >&6; } | |
6348 | if test ${ac_cv_path_ac_pt_WC+y} | |
6349 | then : | |
6350 | printf %s "(cached) " >&6 | |
635df748 ZK |
6351 | else case e in #( |
6352 | e) case $ac_pt_WC in | |
6118b0fb ZK |
6353 | [\\/]* | ?:[\\/]*) |
6354 | ac_cv_path_ac_pt_WC="$ac_pt_WC" # Let the user override the test with a path. | |
6355 | ;; | |
6356 | *) | |
6357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6358 | for as_dir in $PATH | |
6359 | do | |
6360 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
6361 | case $as_dir in #((( |
6362 | '') as_dir=./ ;; | |
6363 | */) ;; | |
6364 | *) as_dir=$as_dir/ ;; | |
6365 | esac | |
6118b0fb | 6366 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
6367 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6368 | ac_cv_path_ac_pt_WC="$as_dir$ac_word$ac_exec_ext" | |
6369 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6118b0fb ZK |
6370 | break 2 |
6371 | fi | |
6372 | done | |
6373 | done | |
6374 | IFS=$as_save_IFS | |
6375 | ||
6376 | ;; | |
635df748 | 6377 | esac ;; |
6118b0fb ZK |
6378 | esac |
6379 | fi | |
6380 | ac_pt_WC=$ac_cv_path_ac_pt_WC | |
6381 | if test -n "$ac_pt_WC"; then | |
6b2e4ec5 ZK |
6382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_WC" >&5 |
6383 | printf "%s\n" "$ac_pt_WC" >&6; } | |
6118b0fb | 6384 | else |
6b2e4ec5 ZK |
6385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6386 | printf "%s\n" "no" >&6; } | |
6118b0fb ZK |
6387 | fi |
6388 | ||
6389 | if test "x$ac_pt_WC" = x; then | |
6390 | WC="" | |
6391 | else | |
6392 | case $cross_compiling:$ac_tool_warned in | |
6393 | yes:) | |
6b2e4ec5 ZK |
6394 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6395 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6118b0fb ZK |
6396 | ac_tool_warned=yes ;; |
6397 | esac | |
6398 | WC=$ac_pt_WC | |
6399 | fi | |
6400 | else | |
6401 | WC="$ac_cv_path_WC" | |
6402 | fi | |
6403 | ||
6404 | if test -n "$ac_tool_prefix"; then | |
6405 | # Extract the first word of "${ac_tool_prefix}sort", so it can be a program name with args. | |
6406 | set dummy ${ac_tool_prefix}sort; ac_word=$2 | |
6b2e4ec5 ZK |
6407 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6408 | printf %s "checking for $ac_word... " >&6; } | |
6409 | if test ${ac_cv_path_SORT+y} | |
6410 | then : | |
6411 | printf %s "(cached) " >&6 | |
635df748 ZK |
6412 | else case e in #( |
6413 | e) case $SORT in | |
6118b0fb ZK |
6414 | [\\/]* | ?:[\\/]*) |
6415 | ac_cv_path_SORT="$SORT" # Let the user override the test with a path. | |
6416 | ;; | |
6417 | *) | |
6418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6419 | for as_dir in $PATH | |
6420 | do | |
6421 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
6422 | case $as_dir in #((( |
6423 | '') as_dir=./ ;; | |
6424 | */) ;; | |
6425 | *) as_dir=$as_dir/ ;; | |
6426 | esac | |
6118b0fb | 6427 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
6428 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6429 | ac_cv_path_SORT="$as_dir$ac_word$ac_exec_ext" | |
6430 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6118b0fb ZK |
6431 | break 2 |
6432 | fi | |
6433 | done | |
6434 | done | |
6435 | IFS=$as_save_IFS | |
6436 | ||
6437 | ;; | |
635df748 | 6438 | esac ;; |
6118b0fb ZK |
6439 | esac |
6440 | fi | |
6441 | SORT=$ac_cv_path_SORT | |
6442 | if test -n "$SORT"; then | |
6b2e4ec5 ZK |
6443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 |
6444 | printf "%s\n" "$SORT" >&6; } | |
6118b0fb | 6445 | else |
6b2e4ec5 ZK |
6446 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6447 | printf "%s\n" "no" >&6; } | |
6118b0fb ZK |
6448 | fi |
6449 | ||
6450 | ||
6451 | fi | |
6452 | if test -z "$ac_cv_path_SORT"; then | |
6453 | ac_pt_SORT=$SORT | |
6454 | # Extract the first word of "sort", so it can be a program name with args. | |
6455 | set dummy sort; ac_word=$2 | |
6b2e4ec5 ZK |
6456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6457 | printf %s "checking for $ac_word... " >&6; } | |
6458 | if test ${ac_cv_path_ac_pt_SORT+y} | |
6459 | then : | |
6460 | printf %s "(cached) " >&6 | |
635df748 ZK |
6461 | else case e in #( |
6462 | e) case $ac_pt_SORT in | |
6118b0fb ZK |
6463 | [\\/]* | ?:[\\/]*) |
6464 | ac_cv_path_ac_pt_SORT="$ac_pt_SORT" # Let the user override the test with a path. | |
6465 | ;; | |
6466 | *) | |
6467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6468 | for as_dir in $PATH | |
6469 | do | |
6470 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
6471 | case $as_dir in #((( |
6472 | '') as_dir=./ ;; | |
6473 | */) ;; | |
6474 | *) as_dir=$as_dir/ ;; | |
6475 | esac | |
6118b0fb | 6476 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
6477 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6478 | ac_cv_path_ac_pt_SORT="$as_dir$ac_word$ac_exec_ext" | |
6479 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6118b0fb ZK |
6480 | break 2 |
6481 | fi | |
6482 | done | |
6483 | done | |
6484 | IFS=$as_save_IFS | |
6485 | ||
6486 | ;; | |
635df748 | 6487 | esac ;; |
6118b0fb ZK |
6488 | esac |
6489 | fi | |
6490 | ac_pt_SORT=$ac_cv_path_ac_pt_SORT | |
6491 | if test -n "$ac_pt_SORT"; then | |
6b2e4ec5 ZK |
6492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_SORT" >&5 |
6493 | printf "%s\n" "$ac_pt_SORT" >&6; } | |
6118b0fb | 6494 | else |
6b2e4ec5 ZK |
6495 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6496 | printf "%s\n" "no" >&6; } | |
6118b0fb ZK |
6497 | fi |
6498 | ||
6499 | if test "x$ac_pt_SORT" = x; then | |
6500 | SORT="" | |
6501 | else | |
6502 | case $cross_compiling:$ac_tool_warned in | |
6503 | yes:) | |
6b2e4ec5 ZK |
6504 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6505 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6118b0fb ZK |
6506 | ac_tool_warned=yes ;; |
6507 | esac | |
6508 | SORT=$ac_pt_SORT | |
6509 | fi | |
6510 | else | |
6511 | SORT="$ac_cv_path_SORT" | |
6512 | fi | |
6513 | ||
f11781c5 AK |
6514 | |
6515 | ################################################################################ | |
635df748 | 6516 | |
f11781c5 AK |
6517 | ac_header_dirent=no |
6518 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
635df748 | 6519 | as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"` |
6b2e4ec5 ZK |
6520 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
6521 | printf %s "checking for $ac_hdr that defines DIR... " >&6; } | |
6522 | if eval test \${$as_ac_Header+y} | |
6523 | then : | |
6524 | printf %s "(cached) " >&6 | |
635df748 ZK |
6525 | else case e in #( |
6526 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 AK |
6527 | /* end confdefs.h. */ |
6528 | #include <sys/types.h> | |
6529 | #include <$ac_hdr> | |
6530 | ||
6531 | int | |
6b2e4ec5 | 6532 | main (void) |
f11781c5 AK |
6533 | { |
6534 | if ((DIR *) 0) | |
6535 | return 0; | |
6536 | ; | |
6537 | return 0; | |
6538 | } | |
6539 | _ACEOF | |
6b2e4ec5 ZK |
6540 | if ac_fn_c_try_compile "$LINENO" |
6541 | then : | |
f11781c5 | 6542 | eval "$as_ac_Header=yes" |
635df748 ZK |
6543 | else case e in #( |
6544 | e) eval "$as_ac_Header=no" ;; | |
6545 | esac | |
f11781c5 | 6546 | fi |
635df748 ZK |
6547 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
6548 | esac | |
f11781c5 AK |
6549 | fi |
6550 | eval ac_res=\$$as_ac_Header | |
6b2e4ec5 ZK |
6551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
6552 | printf "%s\n" "$ac_res" >&6; } | |
6553 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
6554 | then : | |
f11781c5 | 6555 | cat >>confdefs.h <<_ACEOF |
635df748 | 6556 | #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1 |
f11781c5 AK |
6557 | _ACEOF |
6558 | ||
6559 | ac_header_dirent=$ac_hdr; break | |
6560 | fi | |
6561 | ||
6562 | done | |
6563 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
6564 | if test $ac_header_dirent = dirent.h; then | |
6b2e4ec5 ZK |
6565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
6566 | printf %s "checking for library containing opendir... " >&6; } | |
6567 | if test ${ac_cv_search_opendir+y} | |
6568 | then : | |
6569 | printf %s "(cached) " >&6 | |
635df748 ZK |
6570 | else case e in #( |
6571 | e) ac_func_search_save_LIBS=$LIBS | |
f11781c5 AK |
6572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6573 | /* end confdefs.h. */ | |
e2997b73 | 6574 | |
f11781c5 AK |
6575 | /* Override any GCC internal prototype to avoid an error. |
6576 | Use char because int might match the return type of a GCC | |
635df748 ZK |
6577 | builtin and then its argument prototype would still apply. |
6578 | The 'extern "C"' is for builds by C++ compilers; | |
6579 | although this is not generally supported in C code supporting it here | |
6580 | has little cost and some practical benefit (sr 110532). */ | |
6581 | #ifdef __cplusplus | |
6582 | extern "C" | |
6583 | #endif | |
6584 | char opendir (void); | |
f11781c5 | 6585 | int |
6b2e4ec5 | 6586 | main (void) |
f11781c5 AK |
6587 | { |
6588 | return opendir (); | |
6589 | ; | |
6590 | return 0; | |
6591 | } | |
6592 | _ACEOF | |
6b2e4ec5 ZK |
6593 | for ac_lib in '' dir |
6594 | do | |
f11781c5 AK |
6595 | if test -z "$ac_lib"; then |
6596 | ac_res="none required" | |
6597 | else | |
6598 | ac_res=-l$ac_lib | |
6599 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6600 | fi | |
6b2e4ec5 ZK |
6601 | if ac_fn_c_try_link "$LINENO" |
6602 | then : | |
f11781c5 | 6603 | ac_cv_search_opendir=$ac_res |
e2997b73 | 6604 | fi |
6b2e4ec5 | 6605 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f11781c5 | 6606 | conftest$ac_exeext |
6b2e4ec5 ZK |
6607 | if test ${ac_cv_search_opendir+y} |
6608 | then : | |
f11781c5 | 6609 | break |
e2997b73 | 6610 | fi |
f11781c5 | 6611 | done |
6b2e4ec5 ZK |
6612 | if test ${ac_cv_search_opendir+y} |
6613 | then : | |
e2997b73 | 6614 | |
635df748 ZK |
6615 | else case e in #( |
6616 | e) ac_cv_search_opendir=no ;; | |
6617 | esac | |
f11781c5 | 6618 | fi |
6b2e4ec5 | 6619 | rm conftest.$ac_ext |
635df748 ZK |
6620 | LIBS=$ac_func_search_save_LIBS ;; |
6621 | esac | |
e2997b73 | 6622 | fi |
6b2e4ec5 ZK |
6623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
6624 | printf "%s\n" "$ac_cv_search_opendir" >&6; } | |
6625 | ac_res=$ac_cv_search_opendir | |
6626 | if test "$ac_res" != no | |
6627 | then : | |
6628 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 | 6629 | |
e2997b73 | 6630 | fi |
90c80887 | 6631 | |
f11781c5 | 6632 | else |
6b2e4ec5 ZK |
6633 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
6634 | printf %s "checking for library containing opendir... " >&6; } | |
6635 | if test ${ac_cv_search_opendir+y} | |
6636 | then : | |
6637 | printf %s "(cached) " >&6 | |
635df748 ZK |
6638 | else case e in #( |
6639 | e) ac_func_search_save_LIBS=$LIBS | |
6b2e4ec5 | 6640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f11781c5 | 6641 | /* end confdefs.h. */ |
f11781c5 | 6642 | |
6b2e4ec5 ZK |
6643 | /* Override any GCC internal prototype to avoid an error. |
6644 | Use char because int might match the return type of a GCC | |
635df748 ZK |
6645 | builtin and then its argument prototype would still apply. |
6646 | The 'extern "C"' is for builds by C++ compilers; | |
6647 | although this is not generally supported in C code supporting it here | |
6648 | has little cost and some practical benefit (sr 110532). */ | |
6649 | #ifdef __cplusplus | |
6650 | extern "C" | |
6651 | #endif | |
6652 | char opendir (void); | |
f11781c5 | 6653 | int |
6b2e4ec5 | 6654 | main (void) |
f11781c5 | 6655 | { |
6b2e4ec5 ZK |
6656 | return opendir (); |
6657 | ; | |
f11781c5 AK |
6658 | return 0; |
6659 | } | |
6660 | _ACEOF | |
6b2e4ec5 ZK |
6661 | for ac_lib in '' x |
6662 | do | |
6663 | if test -z "$ac_lib"; then | |
6664 | ac_res="none required" | |
6665 | else | |
6666 | ac_res=-l$ac_lib | |
6667 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6668 | fi | |
6669 | if ac_fn_c_try_link "$LINENO" | |
6670 | then : | |
6671 | ac_cv_search_opendir=$ac_res | |
90c80887 | 6672 | fi |
6b2e4ec5 ZK |
6673 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6674 | conftest$ac_exeext | |
6675 | if test ${ac_cv_search_opendir+y} | |
6676 | then : | |
6677 | break | |
90c80887 | 6678 | fi |
6b2e4ec5 ZK |
6679 | done |
6680 | if test ${ac_cv_search_opendir+y} | |
6681 | then : | |
90c80887 | 6682 | |
635df748 ZK |
6683 | else case e in #( |
6684 | e) ac_cv_search_opendir=no ;; | |
6685 | esac | |
90c80887 | 6686 | fi |
6b2e4ec5 | 6687 | rm conftest.$ac_ext |
635df748 ZK |
6688 | LIBS=$ac_func_search_save_LIBS ;; |
6689 | esac | |
90c80887 | 6690 | fi |
6b2e4ec5 ZK |
6691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
6692 | printf "%s\n" "$ac_cv_search_opendir" >&6; } | |
6693 | ac_res=$ac_cv_search_opendir | |
6694 | if test "$ac_res" != no | |
6695 | then : | |
6696 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
90c80887 | 6697 | |
90c80887 | 6698 | fi |
f11781c5 | 6699 | |
90c80887 | 6700 | fi |
f11781c5 | 6701 | |
6b2e4ec5 ZK |
6702 | ac_header= ac_cache= |
6703 | for ac_item in $ac_header_c_list | |
6704 | do | |
6705 | if test $ac_cache; then | |
6706 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" | |
6707 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then | |
6708 | printf "%s\n" "#define $ac_item 1" >> confdefs.h | |
6709 | fi | |
6710 | ac_header= ac_cache= | |
6711 | elif test $ac_header; then | |
6712 | ac_cache=$ac_item | |
6713 | else | |
6714 | ac_header=$ac_item | |
6715 | fi | |
f11781c5 AK |
6716 | done |
6717 | ||
6718 | ||
f11781c5 | 6719 | |
f11781c5 | 6720 | |
f11781c5 | 6721 | |
6b2e4ec5 ZK |
6722 | |
6723 | ||
6724 | ||
6725 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes | |
6726 | then : | |
6727 | ||
6728 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h | |
90c80887 | 6729 | |
a946372e | 6730 | fi |
e2997b73 | 6731 | |
6b2e4ec5 ZK |
6732 | ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
6733 | if test "x$ac_cv_header_sys_mkdev_h" = xyes | |
6734 | then : | |
e2997b73 | 6735 | |
6b2e4ec5 | 6736 | printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h |
a946372e | 6737 | |
6b2e4ec5 ZK |
6738 | fi |
6739 | ||
6740 | if test $ac_cv_header_sys_mkdev_h = no; then | |
6741 | ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
6742 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes | |
6743 | then : | |
f11781c5 | 6744 | |
6b2e4ec5 | 6745 | printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h |
f11781c5 | 6746 | |
e2997b73 | 6747 | fi |
a946372e | 6748 | |
6b2e4ec5 ZK |
6749 | fi |
6750 | ||
6751 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" | |
6752 | if test "x$ac_cv_type__Bool" = xyes | |
6753 | then : | |
6754 | ||
6755 | printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h | |
6756 | ||
a946372e | 6757 | |
f11781c5 AK |
6758 | fi |
6759 | ||
635df748 ZK |
6760 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5 |
6761 | printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; } | |
6b2e4ec5 ZK |
6762 | if test ${ac_cv_header_stdbool_h+y} |
6763 | then : | |
6764 | printf %s "(cached) " >&6 | |
635df748 ZK |
6765 | else case e in #( |
6766 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1568ed4d | 6767 | /* end confdefs.h. */ |
6b2e4ec5 | 6768 | #include <stdbool.h> |
1568ed4d | 6769 | |
635df748 ZK |
6770 | /* "true" and "false" should be usable in #if expressions and |
6771 | integer constant expressions, and "bool" should be a valid | |
6772 | type name. | |
6b2e4ec5 | 6773 | |
635df748 ZK |
6774 | Although C99 requires bool, true, and false to be macros, |
6775 | C23 and C++11 overrule that, so do not test for that. | |
6776 | Although C99 requires __bool_true_false_are_defined and | |
6777 | _Bool, C23 says they are obsolescent, so do not require | |
6778 | them. */ | |
6b2e4ec5 ZK |
6779 | |
6780 | #if !true | |
6781 | #error "'true' is not true" | |
1568ed4d AK |
6782 | #endif |
6783 | #if true != 1 | |
6b2e4ec5 | 6784 | #error "'true' is not equal to 1" |
1568ed4d | 6785 | #endif |
6b2e4ec5 ZK |
6786 | char b[true == 1 ? 1 : -1]; |
6787 | char c[true]; | |
6788 | ||
6789 | #if false | |
6790 | #error "'false' is not false" | |
6791 | #endif | |
6792 | #if false != 0 | |
6793 | #error "'false' is not equal to 0" | |
1568ed4d | 6794 | #endif |
6b2e4ec5 ZK |
6795 | char d[false == 0 ? 1 : -1]; |
6796 | ||
6797 | enum { e = false, f = true, g = false * true, h = true * 256 }; | |
6798 | ||
6799 | char i[(bool) 0.5 == true ? 1 : -1]; | |
6800 | char j[(bool) 0.0 == false ? 1 : -1]; | |
6801 | char k[sizeof (bool) > 0 ? 1 : -1]; | |
6802 | ||
6803 | struct sb { bool s: 1; bool t; } s; | |
6804 | char l[sizeof s.t > 0 ? 1 : -1]; | |
1568ed4d | 6805 | |
1568ed4d AK |
6806 | /* The following fails for |
6807 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ | |
6b2e4ec5 ZK |
6808 | bool m[h]; |
6809 | char n[sizeof m == h * sizeof m[0] ? 1 : -1]; | |
6810 | char o[-1 - (bool) 0 < 0 ? 1 : -1]; | |
1568ed4d | 6811 | /* Catch a bug in an HP-UX C compiler. See |
635df748 ZK |
6812 | https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
6813 | https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html | |
1568ed4d | 6814 | */ |
6b2e4ec5 ZK |
6815 | bool p = true; |
6816 | bool *pp = &p; | |
6817 | ||
1568ed4d | 6818 | int |
6b2e4ec5 | 6819 | main (void) |
1568ed4d AK |
6820 | { |
6821 | ||
6b2e4ec5 ZK |
6822 | bool ps = &s; |
6823 | *pp |= p; | |
6824 | *pp |= ! p; | |
6825 | ||
6b2e4ec5 ZK |
6826 | /* Refer to every declared value, so they cannot be |
6827 | discarded as unused. */ | |
635df748 ZK |
6828 | return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k |
6829 | + !l + !m + !n + !o + !p + !pp + !ps); | |
1568ed4d AK |
6830 | |
6831 | ; | |
6832 | return 0; | |
6833 | } | |
6834 | _ACEOF | |
6b2e4ec5 ZK |
6835 | if ac_fn_c_try_compile "$LINENO" |
6836 | then : | |
1568ed4d | 6837 | ac_cv_header_stdbool_h=yes |
635df748 ZK |
6838 | else case e in #( |
6839 | e) ac_cv_header_stdbool_h=no ;; | |
6840 | esac | |
1568ed4d | 6841 | fi |
635df748 ZK |
6842 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
6843 | esac | |
1568ed4d | 6844 | fi |
6b2e4ec5 ZK |
6845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
6846 | printf "%s\n" "$ac_cv_header_stdbool_h" >&6; } | |
1568ed4d AK |
6847 | |
6848 | if test $ac_cv_header_stdbool_h = yes; then | |
6849 | ||
6b2e4ec5 | 6850 | printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h |
e2997b73 | 6851 | |
f11781c5 | 6852 | fi |
a946372e | 6853 | |
f11781c5 | 6854 | |
6b2e4ec5 | 6855 | for ac_header in assert.h ctype.h dirent.h errno.h fcntl.h float.h getopt.h inttypes.h langinfo.h libgen.h limits.h locale.h paths.h signal.h stdarg.h stddef.h stdio.h stdlib.h string.h sys/file.h sys/ioctl.h syslog.h sys/mman.h sys/param.h sys/resource.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h time.h unistd.h |
f11781c5 | 6856 | do : |
635df748 | 6857 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` |
6b2e4ec5 ZK |
6858 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6859 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
6860 | then : | |
f11781c5 | 6861 | cat >>confdefs.h <<_ACEOF |
635df748 | 6862 | #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 |
f11781c5 | 6863 | _ACEOF |
d0191583 | 6864 | |
635df748 ZK |
6865 | else case e in #( |
6866 | e) as_fn_error $? "bailing out" "$LINENO" 5 ;; | |
6867 | esac | |
d0191583 JM |
6868 | fi |
6869 | ||
f11781c5 | 6870 | done |
fddafd51 | 6871 | |
6b2e4ec5 ZK |
6872 | ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" |
6873 | if test "x$ac_cv_header_termios_h" = xyes | |
6874 | then : | |
6875 | printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h | |
f11781c5 | 6876 | |
6b2e4ec5 ZK |
6877 | fi |
6878 | ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" | |
6879 | if test "x$ac_cv_header_sys_statvfs_h" = xyes | |
6880 | then : | |
6881 | printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h | |
a946372e | 6882 | |
a946372e | 6883 | fi |
6b2e4ec5 ZK |
6884 | ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" |
6885 | if test "x$ac_cv_header_sys_timerfd_h" = xyes | |
6886 | then : | |
6887 | printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h | |
a946372e | 6888 | |
6b2e4ec5 ZK |
6889 | fi |
6890 | ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" | |
6891 | if test "x$ac_cv_header_sys_vfs_h" = xyes | |
6892 | then : | |
6893 | printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h | |
6894 | ||
6895 | fi | |
6896 | ac_fn_c_check_header_compile "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default" | |
6897 | if test "x$ac_cv_header_linux_magic_h" = xyes | |
6898 | then : | |
6899 | printf "%s\n" "#define HAVE_LINUX_MAGIC_H 1" >>confdefs.h | |
6900 | ||
6901 | fi | |
6902 | ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default" | |
6903 | if test "x$ac_cv_header_linux_fiemap_h" = xyes | |
6904 | then : | |
6905 | printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h | |
6906 | ||
6907 | fi | |
1568ed4d | 6908 | |
6b2e4ec5 | 6909 | for ac_header in libaio.h |
57b5bc9c | 6910 | do : |
6b2e4ec5 ZK |
6911 | ac_fn_c_check_header_compile "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default" |
6912 | if test "x$ac_cv_header_libaio_h" = xyes | |
6913 | then : | |
6914 | printf "%s\n" "#define HAVE_LIBAIO_H 1" >>confdefs.h | |
57b5bc9c | 6915 | LVM_NEEDS_LIBAIO_WARN= |
635df748 ZK |
6916 | else case e in #( |
6917 | e) LVM_NEEDS_LIBAIO_WARN=y ;; | |
6918 | esac | |
57b5bc9c ZK |
6919 | fi |
6920 | ||
6921 | done | |
b681b774 ZK |
6922 | case "$host_os" in #( |
6923 | linux*) : | |
6924 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
f11781c5 | 6925 | do : |
635df748 | 6926 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` |
6b2e4ec5 ZK |
6927 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6928 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
6929 | then : | |
f11781c5 | 6930 | cat >>confdefs.h <<_ACEOF |
635df748 | 6931 | #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 |
f11781c5 | 6932 | _ACEOF |
a946372e | 6933 | |
635df748 ZK |
6934 | else case e in #( |
6935 | e) as_fn_error $? "bailing out" "$LINENO" 5 ;; | |
6936 | esac | |
f11781c5 | 6937 | fi |
a946372e | 6938 | |
b681b774 ZK |
6939 | done ;; #( |
6940 | darwin*) : | |
6941 | for ac_header in machine/endian.h sys/disk.h | |
f11781c5 | 6942 | do : |
635df748 | 6943 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` |
6b2e4ec5 ZK |
6944 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
6945 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
6946 | then : | |
f11781c5 | 6947 | cat >>confdefs.h <<_ACEOF |
635df748 | 6948 | #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 |
f11781c5 AK |
6949 | _ACEOF |
6950 | ||
635df748 ZK |
6951 | else case e in #( |
6952 | e) as_fn_error $? "bailing out" "$LINENO" 5 ;; | |
6953 | esac | |
a946372e | 6954 | fi |
a946372e | 6955 | |
b681b774 ZK |
6956 | done ;; #( |
6957 | *) : | |
6958 | ;; | |
1568ed4d | 6959 | esac |
a946372e | 6960 | |
f11781c5 | 6961 | ################################################################################ |
6b2e4ec5 ZK |
6962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
6963 | printf %s "checking for an ANSI C-conforming const... " >&6; } | |
6964 | if test ${ac_cv_c_const+y} | |
6965 | then : | |
6966 | printf %s "(cached) " >&6 | |
635df748 ZK |
6967 | else case e in #( |
6968 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 6969 | /* end confdefs.h. */ |
a946372e | 6970 | |
f11781c5 | 6971 | int |
6b2e4ec5 | 6972 | main (void) |
f11781c5 | 6973 | { |
4d0c3ed0 | 6974 | |
f11781c5 | 6975 | #ifndef __cplusplus |
4d0c3ed0 | 6976 | /* Ultrix mips cc rejects this sort of thing. */ |
f11781c5 | 6977 | typedef int charset[2]; |
4d0c3ed0 | 6978 | const charset cs = { 0, 0 }; |
f11781c5 AK |
6979 | /* SunOS 4.1.1 cc rejects this. */ |
6980 | char const *const *pcpcc; | |
6981 | char **ppc; | |
6982 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6983 | struct point {int x, y;}; | |
6984 | static struct point const zero = {0,0}; | |
6b2e4ec5 | 6985 | /* IBM XL C 1.02.0.0 rejects this. |
f11781c5 AK |
6986 | It does not let you subtract one const X* pointer from another in |
6987 | an arm of an if-expression whose if-part is not a constant | |
6988 | expression */ | |
6989 | const char *g = "string"; | |
6990 | pcpcc = &g + (g ? g-g : 0); | |
6991 | /* HPUX 7.0 cc rejects these. */ | |
6992 | ++pcpcc; | |
6993 | ppc = (char**) pcpcc; | |
6994 | pcpcc = (char const *const *) ppc; | |
4d0c3ed0 AK |
6995 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
6996 | char tx; | |
6997 | char *t = &tx; | |
f11781c5 | 6998 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
a946372e | 6999 | |
f11781c5 AK |
7000 | *t++ = 0; |
7001 | if (s) return 0; | |
7002 | } | |
7003 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
7004 | int x[] = {25, 17}; | |
7005 | const int *foo = &x[0]; | |
7006 | ++foo; | |
7007 | } | |
7008 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
7009 | typedef const int *iptr; | |
7010 | iptr p = 0; | |
7011 | ++p; | |
7012 | } | |
6b2e4ec5 | 7013 | { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying |
f11781c5 | 7014 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
4d0c3ed0 AK |
7015 | struct s { int j; const int *ap[3]; } bx; |
7016 | struct s *b = &bx; b->j = 5; | |
f11781c5 AK |
7017 | } |
7018 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
7019 | const int foo = 10; | |
7020 | if (!foo) return 0; | |
7021 | } | |
7022 | return !cs[0] && !zero.x; | |
7023 | #endif | |
a946372e | 7024 | |
f11781c5 AK |
7025 | ; |
7026 | return 0; | |
7027 | } | |
a946372e | 7028 | _ACEOF |
6b2e4ec5 ZK |
7029 | if ac_fn_c_try_compile "$LINENO" |
7030 | then : | |
f11781c5 | 7031 | ac_cv_c_const=yes |
635df748 ZK |
7032 | else case e in #( |
7033 | e) ac_cv_c_const=no ;; | |
7034 | esac | |
f11781c5 | 7035 | fi |
635df748 ZK |
7036 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
7037 | esac | |
a946372e | 7038 | fi |
6b2e4ec5 ZK |
7039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
7040 | printf "%s\n" "$ac_cv_c_const" >&6; } | |
f11781c5 | 7041 | if test $ac_cv_c_const = no; then |
a946372e | 7042 | |
6b2e4ec5 | 7043 | printf "%s\n" "#define const /**/" >>confdefs.h |
a946372e | 7044 | |
f11781c5 | 7045 | fi |
a946372e | 7046 | |
6b2e4ec5 ZK |
7047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
7048 | printf %s "checking for inline... " >&6; } | |
7049 | if test ${ac_cv_c_inline+y} | |
7050 | then : | |
7051 | printf %s "(cached) " >&6 | |
635df748 ZK |
7052 | else case e in #( |
7053 | e) ac_cv_c_inline=no | |
f11781c5 AK |
7054 | for ac_kw in inline __inline__ __inline; do |
7055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7056 | /* end confdefs.h. */ | |
7057 | #ifndef __cplusplus | |
7058 | typedef int foo_t; | |
6b2e4ec5 ZK |
7059 | static $ac_kw foo_t static_foo (void) {return 0; } |
7060 | $ac_kw foo_t foo (void) {return 0; } | |
f11781c5 AK |
7061 | #endif |
7062 | ||
7063 | _ACEOF | |
6b2e4ec5 ZK |
7064 | if ac_fn_c_try_compile "$LINENO" |
7065 | then : | |
f11781c5 | 7066 | ac_cv_c_inline=$ac_kw |
a946372e | 7067 | fi |
6b2e4ec5 | 7068 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
f11781c5 AK |
7069 | test "$ac_cv_c_inline" != no && break |
7070 | done | |
635df748 ZK |
7071 | ;; |
7072 | esac | |
a946372e | 7073 | fi |
6b2e4ec5 ZK |
7074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
7075 | printf "%s\n" "$ac_cv_c_inline" >&6; } | |
f11781c5 AK |
7076 | |
7077 | case $ac_cv_c_inline in | |
7078 | inline | yes) ;; | |
7079 | *) | |
7080 | case $ac_cv_c_inline in | |
7081 | no) ac_val=;; | |
7082 | *) ac_val=$ac_cv_c_inline;; | |
7083 | esac | |
7084 | cat >>confdefs.h <<_ACEOF | |
7085 | #ifndef __cplusplus | |
7086 | #define inline $ac_val | |
7087 | #endif | |
7088 | _ACEOF | |
7089 | ;; | |
7090 | esac | |
7091 | ||
7092 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
6b2e4ec5 ZK |
7093 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes |
7094 | then : | |
f11781c5 | 7095 | |
6b2e4ec5 | 7096 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h |
a946372e | 7097 | |
f11781c5 | 7098 | |
1568ed4d AK |
7099 | fi |
7100 | ||
7101 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
6b2e4ec5 ZK |
7102 | if test "x$ac_cv_type_ptrdiff_t" = xyes |
7103 | then : | |
1568ed4d | 7104 | |
6b2e4ec5 | 7105 | printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h |
1568ed4d AK |
7106 | |
7107 | ||
7108 | fi | |
7109 | ||
e8362b4c | 7110 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
6b2e4ec5 ZK |
7111 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes |
7112 | then : | |
e8362b4c | 7113 | |
6b2e4ec5 | 7114 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h |
e8362b4c AK |
7115 | |
7116 | ||
6b2e4ec5 | 7117 | printf "%s\n" "#define HAVE_ST_BLOCKS 1" >>confdefs.h |
e8362b4c | 7118 | |
635df748 ZK |
7119 | else case e in #( |
7120 | e) case " $LIBOBJS " in | |
e8362b4c AK |
7121 | *" fileblocks.$ac_objext "* ) ;; |
7122 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | |
7123 | ;; | |
7124 | esac | |
635df748 ZK |
7125 | ;; |
7126 | esac | |
e8362b4c AK |
7127 | fi |
7128 | ||
7129 | ||
6b2e4ec5 ZK |
7130 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
7131 | printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
7132 | if test ${ac_cv_struct_tm+y} | |
7133 | then : | |
7134 | printf %s "(cached) " >&6 | |
635df748 ZK |
7135 | else case e in #( |
7136 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1568ed4d AK |
7137 | /* end confdefs.h. */ |
7138 | #include <sys/types.h> | |
7139 | #include <time.h> | |
7140 | ||
7141 | int | |
6b2e4ec5 | 7142 | main (void) |
1568ed4d AK |
7143 | { |
7144 | struct tm tm; | |
7145 | int *p = &tm.tm_sec; | |
7146 | return !p; | |
7147 | ; | |
7148 | return 0; | |
7149 | } | |
7150 | _ACEOF | |
6b2e4ec5 ZK |
7151 | if ac_fn_c_try_compile "$LINENO" |
7152 | then : | |
1568ed4d | 7153 | ac_cv_struct_tm=time.h |
635df748 ZK |
7154 | else case e in #( |
7155 | e) ac_cv_struct_tm=sys/time.h ;; | |
7156 | esac | |
1568ed4d | 7157 | fi |
635df748 ZK |
7158 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
7159 | esac | |
1568ed4d | 7160 | fi |
6b2e4ec5 ZK |
7161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
7162 | printf "%s\n" "$ac_cv_struct_tm" >&6; } | |
1568ed4d AK |
7163 | if test $ac_cv_struct_tm = sys/time.h; then |
7164 | ||
6b2e4ec5 | 7165 | printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h |
1568ed4d | 7166 | |
a946372e AK |
7167 | fi |
7168 | ||
f11781c5 | 7169 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
6b2e4ec5 ZK |
7170 | if test "x$ac_cv_type_off_t" = xyes |
7171 | then : | |
a946372e | 7172 | |
635df748 ZK |
7173 | else case e in #( |
7174 | e) | |
6b2e4ec5 | 7175 | printf "%s\n" "#define off_t long int" >>confdefs.h |
635df748 ZK |
7176 | ;; |
7177 | esac | |
a946372e AK |
7178 | fi |
7179 | ||
a946372e | 7180 | |
6b2e4ec5 ZK |
7181 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
7182 | " | |
7183 | if test "x$ac_cv_type_pid_t" = xyes | |
7184 | then : | |
7185 | ||
635df748 ZK |
7186 | else case e in #( |
7187 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6b2e4ec5 ZK |
7188 | /* end confdefs.h. */ |
7189 | ||
7190 | #if defined _WIN64 && !defined __CYGWIN__ | |
7191 | LLP64 | |
7192 | #endif | |
7193 | ||
7194 | int | |
7195 | main (void) | |
7196 | { | |
7197 | ||
7198 | ; | |
7199 | return 0; | |
7200 | } | |
f11781c5 | 7201 | |
f11781c5 | 7202 | _ACEOF |
6b2e4ec5 ZK |
7203 | if ac_fn_c_try_compile "$LINENO" |
7204 | then : | |
7205 | ac_pid_type='int' | |
635df748 ZK |
7206 | else case e in #( |
7207 | e) ac_pid_type='__int64' ;; | |
7208 | esac | |
6b2e4ec5 ZK |
7209 | fi |
7210 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7211 | ||
7212 | printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h | |
7213 | ||
635df748 ZK |
7214 | ;; |
7215 | esac | |
f11781c5 AK |
7216 | fi |
7217 | ||
6b2e4ec5 | 7218 | |
f11781c5 | 7219 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
6b2e4ec5 ZK |
7220 | if test "x$ac_cv_type_size_t" = xyes |
7221 | then : | |
a946372e | 7222 | |
635df748 ZK |
7223 | else case e in #( |
7224 | e) | |
6b2e4ec5 | 7225 | printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
635df748 ZK |
7226 | ;; |
7227 | esac | |
a946372e | 7228 | fi |
f11781c5 AK |
7229 | |
7230 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
6b2e4ec5 ZK |
7231 | if test "x$ac_cv_type_mode_t" = xyes |
7232 | then : | |
f11781c5 | 7233 | |
635df748 ZK |
7234 | else case e in #( |
7235 | e) | |
6b2e4ec5 | 7236 | printf "%s\n" "#define mode_t int" >>confdefs.h |
635df748 ZK |
7237 | ;; |
7238 | esac | |
a946372e AK |
7239 | fi |
7240 | ||
f11781c5 AK |
7241 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
7242 | case $ac_cv_c_int8_t in #( | |
7243 | no|yes) ;; #( | |
7244 | *) | |
a946372e | 7245 | |
6b2e4ec5 | 7246 | printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h |
f11781c5 | 7247 | ;; |
a946372e | 7248 | esac |
a946372e | 7249 | |
f11781c5 AK |
7250 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
7251 | case $ac_cv_c_int16_t in #( | |
7252 | no|yes) ;; #( | |
7253 | *) | |
a946372e | 7254 | |
6b2e4ec5 | 7255 | printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h |
f11781c5 AK |
7256 | ;; |
7257 | esac | |
a946372e | 7258 | |
f11781c5 AK |
7259 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
7260 | case $ac_cv_c_int32_t in #( | |
7261 | no|yes) ;; #( | |
7262 | *) | |
a946372e | 7263 | |
6b2e4ec5 | 7264 | printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h |
f11781c5 | 7265 | ;; |
a946372e | 7266 | esac |
a946372e | 7267 | |
f11781c5 AK |
7268 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
7269 | case $ac_cv_c_int64_t in #( | |
7270 | no|yes) ;; #( | |
7271 | *) | |
7272 | ||
6b2e4ec5 | 7273 | printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h |
f11781c5 AK |
7274 | ;; |
7275 | esac | |
7276 | ||
7277 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
6b2e4ec5 ZK |
7278 | if test "x$ac_cv_type_ssize_t" = xyes |
7279 | then : | |
a946372e | 7280 | |
635df748 ZK |
7281 | else case e in #( |
7282 | e) | |
6b2e4ec5 | 7283 | printf "%s\n" "#define ssize_t int" >>confdefs.h |
635df748 ZK |
7284 | ;; |
7285 | esac | |
f11781c5 | 7286 | fi |
a946372e | 7287 | |
635df748 ZK |
7288 | ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" |
7289 | if test "x$ac_cv_type_uid_t" = xyes | |
6b2e4ec5 | 7290 | then : |
a946372e | 7291 | |
635df748 ZK |
7292 | else case e in #( |
7293 | e) | |
6b2e4ec5 | 7294 | printf "%s\n" "#define uid_t int" >>confdefs.h |
635df748 ZK |
7295 | ;; |
7296 | esac | |
7297 | fi | |
a946372e | 7298 | |
635df748 ZK |
7299 | ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" |
7300 | if test "x$ac_cv_type_gid_t" = xyes | |
7301 | then : | |
f11781c5 | 7302 | |
635df748 ZK |
7303 | else case e in #( |
7304 | e) | |
6b2e4ec5 | 7305 | printf "%s\n" "#define gid_t int" >>confdefs.h |
635df748 ZK |
7306 | ;; |
7307 | esac | |
f11781c5 AK |
7308 | fi |
7309 | ||
7310 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
7311 | case $ac_cv_c_uint8_t in #( | |
7312 | no|yes) ;; #( | |
7313 | *) | |
7314 | ||
6b2e4ec5 | 7315 | printf "%s\n" "#define _UINT8_T 1" >>confdefs.h |
f11781c5 AK |
7316 | |
7317 | ||
6b2e4ec5 | 7318 | printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h |
f11781c5 AK |
7319 | ;; |
7320 | esac | |
7321 | ||
7322 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
7323 | case $ac_cv_c_uint16_t in #( | |
7324 | no|yes) ;; #( | |
7325 | *) | |
7326 | ||
7327 | ||
6b2e4ec5 | 7328 | printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h |
f11781c5 AK |
7329 | ;; |
7330 | esac | |
a946372e | 7331 | |
f11781c5 AK |
7332 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
7333 | case $ac_cv_c_uint32_t in #( | |
7334 | no|yes) ;; #( | |
7335 | *) | |
a946372e | 7336 | |
6b2e4ec5 | 7337 | printf "%s\n" "#define _UINT32_T 1" >>confdefs.h |
a946372e | 7338 | |
a946372e | 7339 | |
6b2e4ec5 | 7340 | printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h |
f11781c5 AK |
7341 | ;; |
7342 | esac | |
7343 | ||
7344 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
7345 | case $ac_cv_c_uint64_t in #( | |
7346 | no|yes) ;; #( | |
7347 | *) | |
7348 | ||
6b2e4ec5 | 7349 | printf "%s\n" "#define _UINT64_T 1" >>confdefs.h |
f11781c5 AK |
7350 | |
7351 | ||
6b2e4ec5 | 7352 | printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h |
f11781c5 AK |
7353 | ;; |
7354 | esac | |
7355 | ||
f11781c5 | 7356 | |
83a9cd52 BR |
7357 | |
7358 | ||
6b2e4ec5 ZK |
7359 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 |
7360 | printf %s "checking for __builtin_clz... " >&6; } | |
7361 | if test ${ax_cv_have___builtin_clz+y} | |
7362 | then : | |
7363 | printf %s "(cached) " >&6 | |
635df748 ZK |
7364 | else case e in #( |
7365 | e) | |
83a9cd52 BR |
7366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7367 | /* end confdefs.h. */ | |
7368 | ||
7369 | int | |
6b2e4ec5 | 7370 | main (void) |
83a9cd52 BR |
7371 | { |
7372 | ||
7373 | __builtin_clz(0) | |
7374 | ||
7375 | ; | |
7376 | return 0; | |
7377 | } | |
7378 | _ACEOF | |
6b2e4ec5 ZK |
7379 | if ac_fn_c_try_link "$LINENO" |
7380 | then : | |
83a9cd52 | 7381 | ax_cv_have___builtin_clz=yes |
635df748 ZK |
7382 | else case e in #( |
7383 | e) ax_cv_have___builtin_clz=no ;; | |
7384 | esac | |
83a9cd52 | 7385 | fi |
6b2e4ec5 | 7386 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
83a9cd52 | 7387 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
7388 | ;; |
7389 | esac | |
83a9cd52 | 7390 | fi |
6b2e4ec5 ZK |
7391 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clz" >&5 |
7392 | printf "%s\n" "$ax_cv_have___builtin_clz" >&6; } | |
83a9cd52 | 7393 | |
6b2e4ec5 ZK |
7394 | if test yes = $ax_cv_have___builtin_clz |
7395 | then : | |
83a9cd52 | 7396 | |
6b2e4ec5 | 7397 | printf "%s\n" "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h |
83a9cd52 BR |
7398 | |
7399 | fi | |
7400 | ||
7401 | ||
7402 | ||
7403 | ||
6c84a36b ZK |
7404 | |
7405 | ||
6b2e4ec5 ZK |
7406 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5 |
7407 | printf %s "checking for __builtin_clzll... " >&6; } | |
7408 | if test ${ax_cv_have___builtin_clzll+y} | |
7409 | then : | |
7410 | printf %s "(cached) " >&6 | |
635df748 ZK |
7411 | else case e in #( |
7412 | e) | |
6c84a36b ZK |
7413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7414 | /* end confdefs.h. */ | |
7415 | ||
7416 | int | |
6b2e4ec5 | 7417 | main (void) |
6c84a36b ZK |
7418 | { |
7419 | ||
7420 | __builtin_clzll(0) | |
7421 | ||
7422 | ; | |
7423 | return 0; | |
7424 | } | |
7425 | _ACEOF | |
6b2e4ec5 ZK |
7426 | if ac_fn_c_try_link "$LINENO" |
7427 | then : | |
6c84a36b | 7428 | ax_cv_have___builtin_clzll=yes |
635df748 ZK |
7429 | else case e in #( |
7430 | e) ax_cv_have___builtin_clzll=no ;; | |
7431 | esac | |
6c84a36b | 7432 | fi |
6b2e4ec5 | 7433 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6c84a36b | 7434 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
7435 | ;; |
7436 | esac | |
6c84a36b | 7437 | fi |
6b2e4ec5 ZK |
7438 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clzll" >&5 |
7439 | printf "%s\n" "$ax_cv_have___builtin_clzll" >&6; } | |
6c84a36b | 7440 | |
6b2e4ec5 ZK |
7441 | if test yes = $ax_cv_have___builtin_clzll |
7442 | then : | |
6c84a36b | 7443 | |
6b2e4ec5 | 7444 | printf "%s\n" "#define HAVE___BUILTIN_CLZLL 1" >>confdefs.h |
6c84a36b ZK |
7445 | |
7446 | fi | |
7447 | ||
7448 | ||
7449 | ||
7450 | ||
0b19387d ZK |
7451 | |
7452 | ||
6b2e4ec5 ZK |
7453 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffs" >&5 |
7454 | printf %s "checking for __builtin_ffs... " >&6; } | |
7455 | if test ${ax_cv_have___builtin_ffs+y} | |
7456 | then : | |
7457 | printf %s "(cached) " >&6 | |
635df748 ZK |
7458 | else case e in #( |
7459 | e) | |
ff788ef1 ZK |
7460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7461 | /* end confdefs.h. */ | |
7462 | ||
7463 | int | |
6b2e4ec5 | 7464 | main (void) |
ff788ef1 ZK |
7465 | { |
7466 | ||
7467 | __builtin_ffs(0) | |
7468 | ||
7469 | ; | |
7470 | return 0; | |
7471 | } | |
7472 | _ACEOF | |
6b2e4ec5 ZK |
7473 | if ac_fn_c_try_link "$LINENO" |
7474 | then : | |
ff788ef1 | 7475 | ax_cv_have___builtin_ffs=yes |
635df748 ZK |
7476 | else case e in #( |
7477 | e) ax_cv_have___builtin_ffs=no ;; | |
7478 | esac | |
ff788ef1 | 7479 | fi |
6b2e4ec5 | 7480 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
ff788ef1 | 7481 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
7482 | ;; |
7483 | esac | |
ff788ef1 | 7484 | fi |
6b2e4ec5 ZK |
7485 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_ffs" >&5 |
7486 | printf "%s\n" "$ax_cv_have___builtin_ffs" >&6; } | |
ff788ef1 | 7487 | |
6b2e4ec5 ZK |
7488 | if test yes = $ax_cv_have___builtin_ffs |
7489 | then : | |
ff788ef1 | 7490 | |
6b2e4ec5 | 7491 | printf "%s\n" "#define HAVE___BUILTIN_FFS 1" >>confdefs.h |
ff788ef1 ZK |
7492 | |
7493 | fi | |
7494 | ||
b73e1cd4 ZK |
7495 | |
7496 | ||
7497 | ||
7498 | ||
7499 | ||
6b2e4ec5 | 7500 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
0b19387d ZK |
7501 | |
7502 | ||
6b2e4ec5 | 7503 | printf "%s\n" "#define _REENTRANT 1" >>confdefs.h |
0b19387d ZK |
7504 | |
7505 | ||
7506 | ||
f11781c5 | 7507 | ################################################################################ |
6b2e4ec5 ZK |
7508 | |
7509 | for ac_func in ftruncate gethostname getpagesize gettimeofday localtime_r memchr memset mkdir mkfifo munmap nl_langinfo pselect realpath rmdir setenv setlocale strcasecmp strchr strcspn strdup strerror strncasecmp strndup strrchr strspn strstr strtol strtoul uname | |
f11781c5 | 7510 | do : |
635df748 | 7511 | as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"` |
f11781c5 | 7512 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
6b2e4ec5 ZK |
7513 | if eval test \"x\$"$as_ac_var"\" = x"yes" |
7514 | then : | |
a946372e | 7515 | cat >>confdefs.h <<_ACEOF |
635df748 | 7516 | #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1 |
a946372e AK |
7517 | _ACEOF |
7518 | ||
635df748 ZK |
7519 | else case e in #( |
7520 | e) as_fn_error $? "bailing out" "$LINENO" 5 ;; | |
7521 | esac | |
a946372e | 7522 | fi |
6b2e4ec5 | 7523 | |
a946372e | 7524 | done |
6b2e4ec5 ZK |
7525 | ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs" |
7526 | if test "x$ac_cv_func_ffs" = xyes | |
7527 | then : | |
7528 | printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h | |
a946372e | 7529 | |
bda93ed4 ZK |
7530 | fi |
7531 | ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2" | |
7532 | if test "x$ac_cv_func_mallinfo2" = xyes | |
7533 | then : | |
7534 | printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h | |
7535 | ||
6b2e4ec5 ZK |
7536 | fi |
7537 | ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit" | |
7538 | if test "x$ac_cv_func_prlimit" = xyes | |
7539 | then : | |
7540 | printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h | |
7541 | ||
7542 | fi | |
7543 | ac_fn_c_check_func "$LINENO" "versionsort" "ac_cv_func_versionsort" | |
7544 | if test "x$ac_cv_func_versionsort" = xyes | |
7545 | then : | |
7546 | printf "%s\n" "#define HAVE_VERSIONSORT 1" >>confdefs.h | |
ff788ef1 ZK |
7547 | |
7548 | fi | |
aefd177b | 7549 | |
f11781c5 AK |
7550 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
7551 | # for constant arguments. Useless! | |
6b2e4ec5 ZK |
7552 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
7553 | printf %s "checking for working alloca.h... " >&6; } | |
7554 | if test ${ac_cv_working_alloca_h+y} | |
7555 | then : | |
7556 | printf %s "(cached) " >&6 | |
635df748 ZK |
7557 | else case e in #( |
7558 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 AK |
7559 | /* end confdefs.h. */ |
7560 | #include <alloca.h> | |
7561 | int | |
6b2e4ec5 | 7562 | main (void) |
f11781c5 AK |
7563 | { |
7564 | char *p = (char *) alloca (2 * sizeof (int)); | |
7565 | if (p) return 0; | |
7566 | ; | |
7567 | return 0; | |
7568 | } | |
7569 | _ACEOF | |
6b2e4ec5 ZK |
7570 | if ac_fn_c_try_link "$LINENO" |
7571 | then : | |
f11781c5 | 7572 | ac_cv_working_alloca_h=yes |
635df748 ZK |
7573 | else case e in #( |
7574 | e) ac_cv_working_alloca_h=no ;; | |
7575 | esac | |
a946372e | 7576 | fi |
6b2e4ec5 | 7577 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
635df748 ZK |
7578 | conftest$ac_exeext conftest.$ac_ext ;; |
7579 | esac | |
a946372e | 7580 | fi |
6b2e4ec5 ZK |
7581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
7582 | printf "%s\n" "$ac_cv_working_alloca_h" >&6; } | |
f11781c5 | 7583 | if test $ac_cv_working_alloca_h = yes; then |
a946372e | 7584 | |
6b2e4ec5 | 7585 | printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h |
a946372e | 7586 | |
a946372e | 7587 | fi |
a946372e | 7588 | |
6b2e4ec5 ZK |
7589 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
7590 | printf %s "checking for alloca... " >&6; } | |
7591 | if test ${ac_cv_func_alloca_works+y} | |
7592 | then : | |
7593 | printf %s "(cached) " >&6 | |
635df748 ZK |
7594 | else case e in #( |
7595 | e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h | |
7596 | if test "$ac_cv_func_alloca_works" != yes | |
7597 | then : | |
f11781c5 | 7598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 7599 | /* end confdefs.h. */ |
6b2e4ec5 ZK |
7600 | #include <stdlib.h> |
7601 | #include <stddef.h> | |
7602 | #ifndef alloca | |
7603 | # ifdef __GNUC__ | |
7604 | # define alloca __builtin_alloca | |
7605 | # elif defined _MSC_VER | |
f11781c5 AK |
7606 | # include <malloc.h> |
7607 | # define alloca _alloca | |
7608 | # else | |
6b2e4ec5 ZK |
7609 | # ifdef __cplusplus |
7610 | extern "C" | |
f11781c5 | 7611 | # endif |
6b2e4ec5 | 7612 | void *alloca (size_t); |
f11781c5 AK |
7613 | # endif |
7614 | #endif | |
a946372e | 7615 | |
f11781c5 | 7616 | int |
6b2e4ec5 | 7617 | main (void) |
f11781c5 AK |
7618 | { |
7619 | char *p = (char *) alloca (1); | |
7620 | if (p) return 0; | |
7621 | ; | |
7622 | return 0; | |
7623 | } | |
a946372e | 7624 | _ACEOF |
6b2e4ec5 ZK |
7625 | if ac_fn_c_try_link "$LINENO" |
7626 | then : | |
f11781c5 | 7627 | ac_cv_func_alloca_works=yes |
a946372e | 7628 | fi |
6b2e4ec5 | 7629 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f11781c5 | 7630 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
7631 | fi ;; |
7632 | esac | |
f11781c5 | 7633 | fi |
6b2e4ec5 ZK |
7634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
7635 | printf "%s\n" "$ac_cv_func_alloca_works" >&6; } | |
a946372e | 7636 | |
f11781c5 | 7637 | if test $ac_cv_func_alloca_works = yes; then |
a946372e | 7638 | |
6b2e4ec5 | 7639 | printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h |
a946372e | 7640 | |
a946372e | 7641 | else |
f11781c5 AK |
7642 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
7643 | # that cause trouble. Some versions do not even contain alloca or | |
7644 | # contain a buggy version. If you still want to use their alloca, | |
7645 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
a946372e | 7646 | |
f11781c5 | 7647 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
a946372e | 7648 | |
6b2e4ec5 | 7649 | printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h |
a946372e | 7650 | |
a946372e | 7651 | |
6b2e4ec5 ZK |
7652 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
7653 | printf %s "checking stack direction for C alloca... " >&6; } | |
7654 | if test ${ac_cv_c_stack_direction+y} | |
7655 | then : | |
7656 | printf %s "(cached) " >&6 | |
635df748 ZK |
7657 | else case e in #( |
7658 | e) if test "$cross_compiling" = yes | |
6b2e4ec5 | 7659 | then : |
f11781c5 | 7660 | ac_cv_c_stack_direction=0 |
635df748 ZK |
7661 | else case e in #( |
7662 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 AK |
7663 | /* end confdefs.h. */ |
7664 | $ac_includes_default | |
7665 | int | |
4d0c3ed0 | 7666 | find_stack_direction (int *addr, int depth) |
f11781c5 | 7667 | { |
4d0c3ed0 AK |
7668 | int dir, dummy = 0; |
7669 | if (! addr) | |
7670 | addr = &dummy; | |
7671 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
7672 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
7673 | return dir + dummy; | |
f11781c5 AK |
7674 | } |
7675 | ||
7676 | int | |
4d0c3ed0 | 7677 | main (int argc, char **argv) |
f11781c5 | 7678 | { |
4d0c3ed0 | 7679 | return find_stack_direction (0, argc + !argv + 20) < 0; |
f11781c5 AK |
7680 | } |
7681 | _ACEOF | |
6b2e4ec5 ZK |
7682 | if ac_fn_c_try_run "$LINENO" |
7683 | then : | |
f11781c5 | 7684 | ac_cv_c_stack_direction=1 |
635df748 ZK |
7685 | else case e in #( |
7686 | e) ac_cv_c_stack_direction=-1 ;; | |
7687 | esac | |
f11781c5 AK |
7688 | fi |
7689 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
635df748 ZK |
7690 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
7691 | esac | |
a946372e | 7692 | fi |
635df748 ZK |
7693 | ;; |
7694 | esac | |
a946372e | 7695 | fi |
6b2e4ec5 ZK |
7696 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
7697 | printf "%s\n" "$ac_cv_c_stack_direction" >&6; } | |
7698 | printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h | |
a946372e | 7699 | |
f11781c5 | 7700 | |
a946372e AK |
7701 | fi |
7702 | ||
6b2e4ec5 ZK |
7703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
7704 | printf %s "checking whether closedir returns void... " >&6; } | |
7705 | if test ${ac_cv_func_closedir_void+y} | |
7706 | then : | |
7707 | printf %s "(cached) " >&6 | |
635df748 ZK |
7708 | else case e in #( |
7709 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 | 7710 | /* end confdefs.h. */ |
6b2e4ec5 | 7711 | |
f11781c5 | 7712 | #include <$ac_header_dirent> |
a946372e | 7713 | |
f11781c5 | 7714 | int |
6b2e4ec5 | 7715 | main (void) |
f11781c5 | 7716 | { |
6b2e4ec5 ZK |
7717 | |
7718 | return closedir(0); | |
7719 | ||
f11781c5 AK |
7720 | ; |
7721 | return 0; | |
7722 | } | |
7723 | _ACEOF | |
6b2e4ec5 ZK |
7724 | if ac_fn_c_try_compile "$LINENO" |
7725 | then : | |
f11781c5 | 7726 | ac_cv_func_closedir_void=no |
635df748 ZK |
7727 | else case e in #( |
7728 | e) ac_cv_func_closedir_void=yes ;; | |
7729 | esac | |
a946372e | 7730 | fi |
635df748 ZK |
7731 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
7732 | esac | |
f11781c5 | 7733 | fi |
6b2e4ec5 ZK |
7734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 |
7735 | printf "%s\n" "$ac_cv_func_closedir_void" >&6; } | |
f11781c5 | 7736 | if test $ac_cv_func_closedir_void = yes; then |
a946372e | 7737 | |
6b2e4ec5 ZK |
7738 | printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h |
7739 | ||
7740 | fi | |
7741 | ||
7742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 | |
7743 | printf %s "checking for working chown... " >&6; } | |
7744 | if test ${ac_cv_func_chown_works+y} | |
7745 | then : | |
7746 | printf %s "(cached) " >&6 | |
635df748 ZK |
7747 | else case e in #( |
7748 | e) if test "$cross_compiling" = yes | |
6b2e4ec5 ZK |
7749 | then : |
7750 | case "$host_os" in # (( | |
7751 | # Guess yes on glibc systems. | |
7752 | *-gnu*) ac_cv_func_chown_works=yes ;; | |
7753 | # If we don't know, assume the worst. | |
7754 | *) ac_cv_func_chown_works=no ;; | |
7755 | esac | |
635df748 ZK |
7756 | else case e in #( |
7757 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 AK |
7758 | /* end confdefs.h. */ |
7759 | $ac_includes_default | |
7760 | #include <fcntl.h> | |
a946372e | 7761 | |
f11781c5 | 7762 | int |
6b2e4ec5 | 7763 | main (void) |
f11781c5 AK |
7764 | { |
7765 | char *f = "conftest.chown"; | |
7766 | struct stat before, after; | |
a946372e | 7767 | |
f11781c5 AK |
7768 | if (creat (f, 0600) < 0) |
7769 | return 1; | |
7770 | if (stat (f, &before) < 0) | |
7771 | return 1; | |
7772 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
7773 | return 1; | |
7774 | if (stat (f, &after) < 0) | |
7775 | return 1; | |
7776 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
a946372e | 7777 | |
f11781c5 AK |
7778 | ; |
7779 | return 0; | |
7780 | } | |
7781 | _ACEOF | |
6b2e4ec5 ZK |
7782 | if ac_fn_c_try_run "$LINENO" |
7783 | then : | |
f11781c5 | 7784 | ac_cv_func_chown_works=yes |
635df748 ZK |
7785 | else case e in #( |
7786 | e) ac_cv_func_chown_works=no ;; | |
7787 | esac | |
a946372e | 7788 | fi |
f11781c5 | 7789 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
635df748 ZK |
7790 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
7791 | esac | |
a946372e AK |
7792 | fi |
7793 | ||
f11781c5 | 7794 | rm -f conftest.chown |
635df748 ZK |
7795 | ;; |
7796 | esac | |
f11781c5 | 7797 | fi |
6b2e4ec5 ZK |
7798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 |
7799 | printf "%s\n" "$ac_cv_func_chown_works" >&6; } | |
f11781c5 | 7800 | if test $ac_cv_func_chown_works = yes; then |
a946372e | 7801 | |
6b2e4ec5 | 7802 | printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h |
a946372e | 7803 | |
a946372e | 7804 | fi |
a946372e | 7805 | |
a946372e | 7806 | |
6b2e4ec5 ZK |
7807 | ac_func= |
7808 | for ac_item in $ac_func_c_list | |
7809 | do | |
7810 | if test $ac_func; then | |
7811 | ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func | |
7812 | if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then | |
7813 | echo "#define $ac_item 1" >> confdefs.h | |
7814 | fi | |
7815 | ac_func= | |
7816 | else | |
7817 | ac_func=$ac_item | |
7818 | fi | |
f11781c5 | 7819 | done |
a946372e | 7820 | |
a946372e AK |
7821 | |
7822 | ||
f11781c5 | 7823 | if test "x$ac_cv_func_fork" = xyes; then |
6b2e4ec5 ZK |
7824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
7825 | printf %s "checking for working fork... " >&6; } | |
7826 | if test ${ac_cv_func_fork_works+y} | |
7827 | then : | |
7828 | printf %s "(cached) " >&6 | |
635df748 ZK |
7829 | else case e in #( |
7830 | e) if test "$cross_compiling" = yes | |
6b2e4ec5 | 7831 | then : |
f11781c5 | 7832 | ac_cv_func_fork_works=cross |
635df748 ZK |
7833 | else case e in #( |
7834 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 AK |
7835 | /* end confdefs.h. */ |
7836 | $ac_includes_default | |
7837 | int | |
6b2e4ec5 | 7838 | main (void) |
f11781c5 | 7839 | { |
a946372e | 7840 | |
635df748 | 7841 | /* By R. Kuhlmann. */ |
f11781c5 | 7842 | return fork () < 0; |
a946372e | 7843 | |
f11781c5 AK |
7844 | ; |
7845 | return 0; | |
7846 | } | |
7847 | _ACEOF | |
6b2e4ec5 ZK |
7848 | if ac_fn_c_try_run "$LINENO" |
7849 | then : | |
f11781c5 | 7850 | ac_cv_func_fork_works=yes |
635df748 ZK |
7851 | else case e in #( |
7852 | e) ac_cv_func_fork_works=no ;; | |
7853 | esac | |
f11781c5 AK |
7854 | fi |
7855 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
635df748 ZK |
7856 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
7857 | esac | |
a946372e | 7858 | fi |
635df748 ZK |
7859 | ;; |
7860 | esac | |
f11781c5 | 7861 | fi |
6b2e4ec5 ZK |
7862 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
7863 | printf "%s\n" "$ac_cv_func_fork_works" >&6; } | |
f11781c5 | 7864 | |
a946372e | 7865 | else |
f11781c5 | 7866 | ac_cv_func_fork_works=$ac_cv_func_fork |
a946372e | 7867 | fi |
f11781c5 AK |
7868 | if test "x$ac_cv_func_fork_works" = xcross; then |
7869 | case $host in | |
7870 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7871 | # Override, as these systems have only a dummy fork() stub | |
7872 | ac_cv_func_fork_works=no | |
7873 | ;; | |
7874 | *) | |
7875 | ac_cv_func_fork_works=yes | |
7876 | ;; | |
7877 | esac | |
6b2e4ec5 ZK |
7878 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
7879 | printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
a946372e | 7880 | fi |
f11781c5 AK |
7881 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
7882 | if test "x$ac_cv_func_vfork" = xyes; then | |
6b2e4ec5 ZK |
7883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
7884 | printf %s "checking for working vfork... " >&6; } | |
7885 | if test ${ac_cv_func_vfork_works+y} | |
7886 | then : | |
7887 | printf %s "(cached) " >&6 | |
635df748 ZK |
7888 | else case e in #( |
7889 | e) if test "$cross_compiling" = yes | |
6b2e4ec5 | 7890 | then : |
f11781c5 | 7891 | ac_cv_func_vfork_works=cross |
635df748 ZK |
7892 | else case e in #( |
7893 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 AK |
7894 | /* end confdefs.h. */ |
7895 | /* Thanks to Paul Eggert for this test. */ | |
7896 | $ac_includes_default | |
6b2e4ec5 | 7897 | #include <signal.h> |
f11781c5 AK |
7898 | #include <sys/wait.h> |
7899 | #ifdef HAVE_VFORK_H | |
7900 | # include <vfork.h> | |
7901 | #endif | |
6b2e4ec5 ZK |
7902 | |
7903 | static void | |
7904 | do_nothing (int sig) | |
7905 | { | |
7906 | (void) sig; | |
7907 | } | |
7908 | ||
f11781c5 AK |
7909 | /* On some sparc systems, changes by the child to local and incoming |
7910 | argument registers are propagated back to the parent. The compiler | |
7911 | is told about this with #include <vfork.h>, but some compilers | |
7912 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7913 | static variable whose address is put into a register that is | |
7914 | clobbered by the vfork. */ | |
7915 | static void | |
f11781c5 | 7916 | sparc_address_test (int arg) |
f11781c5 AK |
7917 | { |
7918 | static pid_t child; | |
7919 | if (!child) { | |
7920 | child = vfork (); | |
7921 | if (child < 0) { | |
7922 | perror ("vfork"); | |
7923 | _exit(2); | |
7924 | } | |
7925 | if (!child) { | |
7926 | arg = getpid(); | |
7927 | write(-1, "", 0); | |
7928 | _exit (arg); | |
7929 | } | |
7930 | } | |
7931 | } | |
a946372e | 7932 | |
f11781c5 | 7933 | int |
6b2e4ec5 | 7934 | main (void) |
f11781c5 AK |
7935 | { |
7936 | pid_t parent = getpid (); | |
7937 | pid_t child; | |
a946372e | 7938 | |
f11781c5 | 7939 | sparc_address_test (0); |
a946372e | 7940 | |
6b2e4ec5 ZK |
7941 | /* On Solaris 2.4, changes by the child to the signal handler |
7942 | also munge signal handlers in the parent. To detect this, | |
7943 | start by putting the parent's handler in a known state. */ | |
7944 | signal (SIGTERM, SIG_DFL); | |
7945 | ||
f11781c5 | 7946 | child = vfork (); |
a946372e | 7947 | |
f11781c5 AK |
7948 | if (child == 0) { |
7949 | /* Here is another test for sparc vfork register problems. This | |
7950 | test uses lots of local variables, at least as many local | |
7951 | variables as main has allocated so far including compiler | |
7952 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7953 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7954 | reuse the register of parent for one of the local variables, | |
7955 | since it will think that parent can't possibly be used any more | |
7956 | in this routine. Assigning to the local variable will thus | |
7957 | munge parent in the parent process. */ | |
7958 | pid_t | |
7959 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7960 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7961 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7962 | use the same hardware register for all 8 local variables. */ | |
7963 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7964 | || p != p5 || p != p6 || p != p7) | |
7965 | _exit(1); | |
a946372e | 7966 | |
6b2e4ec5 ZK |
7967 | /* Alter the child's signal handler. */ |
7968 | if (signal (SIGTERM, do_nothing) != SIG_DFL) | |
7969 | _exit(1); | |
7970 | ||
f11781c5 AK |
7971 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
7972 | from child file descriptors. If the child closes a descriptor | |
7973 | before it execs or exits, this munges the parent's descriptor | |
7974 | as well. Test for this by closing stdout in the child. */ | |
7975 | _exit(close(fileno(stdout)) != 0); | |
7976 | } else { | |
7977 | int status; | |
7978 | struct stat st; | |
7979 | ||
7980 | while (wait(&status) != child) | |
7981 | ; | |
7982 | return ( | |
7983 | /* Was there some problem with vforking? */ | |
7984 | child < 0 | |
7985 | ||
6b2e4ec5 ZK |
7986 | /* Did the child munge the parent's signal handler? */ |
7987 | || signal (SIGTERM, SIG_DFL) != SIG_DFL | |
7988 | ||
f11781c5 AK |
7989 | /* Did the child fail? (This shouldn't happen.) */ |
7990 | || status | |
7991 | ||
7992 | /* Did the vfork/compiler bug occur? */ | |
7993 | || parent != getpid() | |
7994 | ||
7995 | /* Did the file descriptor bug occur? */ | |
7996 | || fstat(fileno(stdout), &st) != 0 | |
7997 | ); | |
7998 | } | |
7999 | } | |
8000 | _ACEOF | |
6b2e4ec5 ZK |
8001 | if ac_fn_c_try_run "$LINENO" |
8002 | then : | |
f11781c5 | 8003 | ac_cv_func_vfork_works=yes |
635df748 ZK |
8004 | else case e in #( |
8005 | e) ac_cv_func_vfork_works=no ;; | |
8006 | esac | |
a946372e | 8007 | fi |
f11781c5 | 8008 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
635df748 ZK |
8009 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
8010 | esac | |
a946372e | 8011 | fi |
635df748 ZK |
8012 | ;; |
8013 | esac | |
a946372e | 8014 | fi |
6b2e4ec5 ZK |
8015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
8016 | printf "%s\n" "$ac_cv_func_vfork_works" >&6; } | |
a946372e | 8017 | |
f11781c5 AK |
8018 | fi; |
8019 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8020 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6b2e4ec5 ZK |
8021 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
8022 | printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
f11781c5 | 8023 | fi |
a946372e | 8024 | |
f11781c5 | 8025 | if test "x$ac_cv_func_vfork_works" = xyes; then |
a946372e | 8026 | |
6b2e4ec5 | 8027 | printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
a946372e | 8028 | |
a946372e | 8029 | else |
a946372e | 8030 | |
6b2e4ec5 | 8031 | printf "%s\n" "#define vfork fork" >>confdefs.h |
f11781c5 | 8032 | |
a946372e | 8033 | fi |
f11781c5 | 8034 | if test "x$ac_cv_func_fork_works" = xyes; then |
a946372e | 8035 | |
6b2e4ec5 | 8036 | printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h |
a946372e | 8037 | |
a946372e | 8038 | fi |
f11781c5 | 8039 | |
6b2e4ec5 ZK |
8040 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 |
8041 | printf %s "checking whether lstat correctly handles trailing slash... " >&6; } | |
8042 | if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y} | |
8043 | then : | |
8044 | printf %s "(cached) " >&6 | |
635df748 ZK |
8045 | else case e in #( |
8046 | e) rm -f conftest.sym conftest.file | |
f11781c5 AK |
8047 | echo >conftest.file |
8048 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6b2e4ec5 ZK |
8049 | if test "$cross_compiling" = yes |
8050 | then : | |
8051 | case "$host_os" in # (( | |
8052 | # Guess yes on glibc systems. | |
8053 | *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;; | |
8054 | # If we don't know, assume the worst. | |
8055 | *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;; | |
8056 | esac | |
635df748 ZK |
8057 | else case e in #( |
8058 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 8059 | /* end confdefs.h. */ |
f11781c5 AK |
8060 | $ac_includes_default |
8061 | int | |
6b2e4ec5 | 8062 | main (void) |
f11781c5 AK |
8063 | { |
8064 | struct stat sbuf; | |
8065 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
8066 | That is better in the sense that it means we will not | |
8067 | have to compile and use the lstat wrapper. */ | |
8068 | return lstat ("conftest.sym/", &sbuf) == 0; | |
8069 | ; | |
8070 | return 0; | |
8071 | } | |
a946372e | 8072 | _ACEOF |
6b2e4ec5 ZK |
8073 | if ac_fn_c_try_run "$LINENO" |
8074 | then : | |
f11781c5 | 8075 | ac_cv_func_lstat_dereferences_slashed_symlink=yes |
635df748 ZK |
8076 | else case e in #( |
8077 | e) ac_cv_func_lstat_dereferences_slashed_symlink=no ;; | |
8078 | esac | |
a946372e | 8079 | fi |
f11781c5 | 8080 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
635df748 ZK |
8081 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
8082 | esac | |
a946372e | 8083 | fi |
a946372e | 8084 | |
a946372e | 8085 | else |
635df748 | 8086 | # If the 'ln -s' command failed, then we probably don't even |
f11781c5 AK |
8087 | # have an lstat function. |
8088 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 8089 | fi |
f11781c5 | 8090 | rm -f conftest.sym conftest.file |
635df748 ZK |
8091 | ;; |
8092 | esac | |
f11781c5 | 8093 | fi |
6b2e4ec5 ZK |
8094 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
8095 | printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
a946372e | 8096 | |
f11781c5 | 8097 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
a946372e | 8098 | |
6b2e4ec5 | 8099 | printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h |
a946372e | 8100 | |
a946372e | 8101 | |
f11781c5 AK |
8102 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
8103 | case " $LIBOBJS " in | |
8104 | *" lstat.$ac_objext "* ) ;; | |
8105 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
8106 | ;; | |
8107 | esac | |
a946372e | 8108 | |
f11781c5 | 8109 | fi |
a946372e | 8110 | |
6b2e4ec5 ZK |
8111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 |
8112 | printf %s "checking whether lstat accepts an empty string... " >&6; } | |
8113 | if test ${ac_cv_func_lstat_empty_string_bug+y} | |
8114 | then : | |
8115 | printf %s "(cached) " >&6 | |
635df748 ZK |
8116 | else case e in #( |
8117 | e) if test "$cross_compiling" = yes | |
6b2e4ec5 | 8118 | then : |
f11781c5 | 8119 | ac_cv_func_lstat_empty_string_bug=yes |
635df748 ZK |
8120 | else case e in #( |
8121 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 AK |
8122 | /* end confdefs.h. */ |
8123 | $ac_includes_default | |
8124 | int | |
6b2e4ec5 | 8125 | main (void) |
f11781c5 AK |
8126 | { |
8127 | struct stat sbuf; | |
8128 | return lstat ("", &sbuf) == 0; | |
8129 | ; | |
8130 | return 0; | |
8131 | } | |
8132 | _ACEOF | |
6b2e4ec5 ZK |
8133 | if ac_fn_c_try_run "$LINENO" |
8134 | then : | |
f11781c5 | 8135 | ac_cv_func_lstat_empty_string_bug=no |
635df748 ZK |
8136 | else case e in #( |
8137 | e) ac_cv_func_lstat_empty_string_bug=yes ;; | |
8138 | esac | |
a946372e | 8139 | fi |
f11781c5 | 8140 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
635df748 ZK |
8141 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
8142 | esac | |
a946372e | 8143 | fi |
635df748 ZK |
8144 | ;; |
8145 | esac | |
f11781c5 | 8146 | fi |
6b2e4ec5 ZK |
8147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
8148 | printf "%s\n" "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
f11781c5 AK |
8149 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
8150 | case " $LIBOBJS " in | |
8151 | *" lstat.$ac_objext "* ) ;; | |
8152 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
8153 | ;; | |
8154 | esac | |
a946372e AK |
8155 | |
8156 | ||
6b2e4ec5 | 8157 | printf "%s\n" "#define HAVE_LSTAT_EMPTY_STRING_BUG 1" >>confdefs.h |
f11781c5 | 8158 | |
a946372e AK |
8159 | fi |
8160 | ||
6b2e4ec5 ZK |
8161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
8162 | printf %s "checking for GNU libc compatible malloc... " >&6; } | |
8163 | if test ${ac_cv_func_malloc_0_nonnull+y} | |
8164 | then : | |
8165 | printf %s "(cached) " >&6 | |
635df748 ZK |
8166 | else case e in #( |
8167 | e) if test "$cross_compiling" = yes | |
6b2e4ec5 ZK |
8168 | then : |
8169 | case "$host_os" in # (( | |
8170 | # Guess yes on platforms where we know the result. | |
8171 | *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ | |
635df748 | 8172 | | hpux* | solaris* | cygwin* | mingw* | windows* | msys* ) |
6b2e4ec5 ZK |
8173 | ac_cv_func_malloc_0_nonnull=yes ;; |
8174 | # If we don't know, assume the worst. | |
8175 | *) ac_cv_func_malloc_0_nonnull=no ;; | |
8176 | esac | |
635df748 ZK |
8177 | else case e in #( |
8178 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 | 8179 | /* end confdefs.h. */ |
6b2e4ec5 | 8180 | #include <stdlib.h> |
a946372e | 8181 | |
f11781c5 | 8182 | int |
6b2e4ec5 | 8183 | main (void) |
f11781c5 | 8184 | { |
6b2e4ec5 ZK |
8185 | void *p = malloc (0); |
8186 | int result = !p; | |
8187 | free (p); | |
8188 | return result; | |
f11781c5 AK |
8189 | ; |
8190 | return 0; | |
8191 | } | |
8192 | _ACEOF | |
6b2e4ec5 ZK |
8193 | if ac_fn_c_try_run "$LINENO" |
8194 | then : | |
f11781c5 | 8195 | ac_cv_func_malloc_0_nonnull=yes |
635df748 ZK |
8196 | else case e in #( |
8197 | e) ac_cv_func_malloc_0_nonnull=no ;; | |
8198 | esac | |
a946372e | 8199 | fi |
f11781c5 | 8200 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
635df748 ZK |
8201 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
8202 | esac | |
a946372e | 8203 | fi |
635df748 ZK |
8204 | ;; |
8205 | esac | |
a946372e | 8206 | fi |
6b2e4ec5 ZK |
8207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
8208 | printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } | |
8209 | if test $ac_cv_func_malloc_0_nonnull = yes | |
8210 | then : | |
a946372e | 8211 | |
6b2e4ec5 | 8212 | printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h |
a946372e | 8213 | |
635df748 ZK |
8214 | else case e in #( |
8215 | e) printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h | |
a946372e | 8216 | |
f11781c5 AK |
8217 | case " $LIBOBJS " in |
8218 | *" malloc.$ac_objext "* ) ;; | |
8219 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
8220 | ;; | |
8221 | esac | |
8222 | ||
8223 | ||
6b2e4ec5 | 8224 | printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h |
635df748 ZK |
8225 | ;; |
8226 | esac | |
a946372e | 8227 | fi |
a946372e | 8228 | |
a946372e | 8229 | |
6b2e4ec5 ZK |
8230 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
8231 | printf %s "checking for working memcmp... " >&6; } | |
8232 | if test ${ac_cv_func_memcmp_working+y} | |
8233 | then : | |
8234 | printf %s "(cached) " >&6 | |
635df748 ZK |
8235 | else case e in #( |
8236 | e) if test "$cross_compiling" = yes | |
6b2e4ec5 | 8237 | then : |
f11781c5 | 8238 | ac_cv_func_memcmp_working=no |
635df748 ZK |
8239 | else case e in #( |
8240 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
8241 | /* end confdefs.h. */ |
8242 | $ac_includes_default | |
f11781c5 | 8243 | int |
6b2e4ec5 | 8244 | main (void) |
f11781c5 | 8245 | { |
a946372e | 8246 | |
f11781c5 AK |
8247 | /* Some versions of memcmp are not 8-bit clean. */ |
8248 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
8249 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
8250 | return 1; | |
a946372e | 8251 | |
f11781c5 AK |
8252 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
8253 | or more and with at least one buffer not starting on a 4-byte boundary. | |
8254 | William Lewis provided this test program. */ | |
8255 | { | |
8256 | char foo[21]; | |
8257 | char bar[21]; | |
8258 | int i; | |
8259 | for (i = 0; i < 4; i++) | |
8260 | { | |
8261 | char *a = foo + i; | |
8262 | char *b = bar + i; | |
8263 | strcpy (a, "--------01111111"); | |
8264 | strcpy (b, "--------10000000"); | |
8265 | if (memcmp (a, b, 16) >= 0) | |
8266 | return 1; | |
8267 | } | |
8268 | return 0; | |
8269 | } | |
a946372e | 8270 | |
f11781c5 AK |
8271 | ; |
8272 | return 0; | |
8273 | } | |
a946372e | 8274 | _ACEOF |
6b2e4ec5 ZK |
8275 | if ac_fn_c_try_run "$LINENO" |
8276 | then : | |
f11781c5 | 8277 | ac_cv_func_memcmp_working=yes |
635df748 ZK |
8278 | else case e in #( |
8279 | e) ac_cv_func_memcmp_working=no ;; | |
8280 | esac | |
f11781c5 AK |
8281 | fi |
8282 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
635df748 ZK |
8283 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
8284 | esac | |
f11781c5 | 8285 | fi |
635df748 ZK |
8286 | ;; |
8287 | esac | |
a946372e | 8288 | fi |
6b2e4ec5 ZK |
8289 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
8290 | printf "%s\n" "$ac_cv_func_memcmp_working" >&6; } | |
f11781c5 AK |
8291 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
8292 | *" memcmp.$ac_objext "* ) ;; | |
8293 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
8294 | ;; | |
8295 | esac | |
a946372e | 8296 | |
a946372e | 8297 | |
a946372e | 8298 | |
a946372e | 8299 | |
f11781c5 | 8300 | |
5aa8683e | 8301 | |
6b2e4ec5 ZK |
8302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 |
8303 | printf %s "checking for working mktime... " >&6; } | |
8304 | if test ${ac_cv_func_working_mktime+y} | |
8305 | then : | |
8306 | printf %s "(cached) " >&6 | |
635df748 ZK |
8307 | else case e in #( |
8308 | e) if test "$cross_compiling" = yes | |
6b2e4ec5 | 8309 | then : |
1568ed4d | 8310 | ac_cv_func_working_mktime=no |
635df748 ZK |
8311 | else case e in #( |
8312 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1568ed4d AK |
8313 | /* end confdefs.h. */ |
8314 | /* Test program from Paul Eggert and Tony Leneis. */ | |
6b2e4ec5 ZK |
8315 | #include <time.h> |
8316 | #ifdef HAVE_SYS_TIME_H | |
1568ed4d | 8317 | # include <sys/time.h> |
1568ed4d AK |
8318 | #endif |
8319 | ||
8320 | #include <limits.h> | |
8321 | #include <stdlib.h> | |
8322 | ||
8323 | #ifdef HAVE_UNISTD_H | |
8324 | # include <unistd.h> | |
8325 | #endif | |
8326 | ||
8327 | #ifndef HAVE_ALARM | |
8328 | # define alarm(X) /* empty */ | |
8329 | #endif | |
8330 | ||
8331 | /* Work around redefinition to rpl_putenv by other config tests. */ | |
8332 | #undef putenv | |
8333 | ||
8334 | static time_t time_t_max; | |
8335 | static time_t time_t_min; | |
8336 | ||
8337 | /* Values we'll use to set the TZ environment variable. */ | |
8338 | static const char *tz_strings[] = { | |
8339 | (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
8340 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
8341 | }; | |
8342 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
8343 | ||
8344 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. | |
8345 | Based on a problem report from Andreas Jaeger. */ | |
8346 | static int | |
635df748 | 8347 | spring_forward_gap (void) |
1568ed4d AK |
8348 | { |
8349 | /* glibc (up to about 1998-10-07) failed this test. */ | |
8350 | struct tm tm; | |
8351 | ||
8352 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
8353 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
8354 | on systems that don't support the Olson extension, or don't have the | |
8355 | full zoneinfo tables installed. */ | |
8356 | putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); | |
8357 | ||
8358 | tm.tm_year = 98; | |
8359 | tm.tm_mon = 3; | |
8360 | tm.tm_mday = 5; | |
8361 | tm.tm_hour = 2; | |
8362 | tm.tm_min = 0; | |
8363 | tm.tm_sec = 0; | |
8364 | tm.tm_isdst = -1; | |
8365 | return mktime (&tm) != (time_t) -1; | |
8366 | } | |
8367 | ||
8368 | static int | |
8369 | mktime_test1 (time_t now) | |
8370 | { | |
8371 | struct tm *lt; | |
8372 | return ! (lt = localtime (&now)) || mktime (lt) == now; | |
8373 | } | |
8374 | ||
8375 | static int | |
8376 | mktime_test (time_t now) | |
8377 | { | |
8378 | return (mktime_test1 (now) | |
8379 | && mktime_test1 ((time_t) (time_t_max - now)) | |
8380 | && mktime_test1 ((time_t) (time_t_min + now))); | |
8381 | } | |
8382 | ||
8383 | static int | |
635df748 | 8384 | irix_6_4_bug (void) |
1568ed4d AK |
8385 | { |
8386 | /* Based on code from Ariel Faigon. */ | |
8387 | struct tm tm; | |
8388 | tm.tm_year = 96; | |
8389 | tm.tm_mon = 3; | |
8390 | tm.tm_mday = 0; | |
8391 | tm.tm_hour = 0; | |
8392 | tm.tm_min = 0; | |
8393 | tm.tm_sec = 0; | |
8394 | tm.tm_isdst = -1; | |
8395 | mktime (&tm); | |
8396 | return tm.tm_mon == 2 && tm.tm_mday == 31; | |
8397 | } | |
8398 | ||
8399 | static int | |
8400 | bigtime_test (int j) | |
8401 | { | |
8402 | struct tm tm; | |
8403 | time_t now; | |
8404 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
8405 | now = mktime (&tm); | |
8406 | if (now != (time_t) -1) | |
8407 | { | |
8408 | struct tm *lt = localtime (&now); | |
8409 | if (! (lt | |
8410 | && lt->tm_year == tm.tm_year | |
8411 | && lt->tm_mon == tm.tm_mon | |
8412 | && lt->tm_mday == tm.tm_mday | |
8413 | && lt->tm_hour == tm.tm_hour | |
8414 | && lt->tm_min == tm.tm_min | |
8415 | && lt->tm_sec == tm.tm_sec | |
8416 | && lt->tm_yday == tm.tm_yday | |
8417 | && lt->tm_wday == tm.tm_wday | |
8418 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
8419 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
8420 | return 0; | |
8421 | } | |
8422 | return 1; | |
8423 | } | |
8424 | ||
8425 | static int | |
635df748 | 8426 | year_2050_test (void) |
1568ed4d AK |
8427 | { |
8428 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, | |
8429 | ignoring leap seconds. */ | |
8430 | unsigned long int answer = 2527315200UL; | |
8431 | ||
8432 | struct tm tm; | |
8433 | time_t t; | |
8434 | tm.tm_year = 2050 - 1900; | |
8435 | tm.tm_mon = 2 - 1; | |
8436 | tm.tm_mday = 1; | |
8437 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | |
8438 | tm.tm_isdst = -1; | |
8439 | ||
8440 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
8441 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
8442 | on systems that don't support the Olson extension, or don't have the | |
8443 | full zoneinfo tables installed. */ | |
8444 | putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); | |
8445 | ||
8446 | t = mktime (&tm); | |
8447 | ||
8448 | /* Check that the result is either a failure, or close enough | |
8449 | to the correct answer that we can assume the discrepancy is | |
8450 | due to leap seconds. */ | |
8451 | return (t == (time_t) -1 | |
8452 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | |
8453 | } | |
8454 | ||
8455 | int | |
6b2e4ec5 | 8456 | main (void) |
1568ed4d AK |
8457 | { |
8458 | time_t t, delta; | |
8459 | int i, j; | |
8460 | ||
8461 | /* This test makes some buggy mktime implementations loop. | |
8462 | Give up after 60 seconds; a mktime slower than that | |
8463 | isn't worth using anyway. */ | |
8464 | alarm (60); | |
8465 | ||
8466 | for (;;) | |
8467 | { | |
8468 | t = (time_t_max << 1) + 1; | |
8469 | if (t <= time_t_max) | |
8470 | break; | |
8471 | time_t_max = t; | |
8472 | } | |
8473 | time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; | |
8474 | ||
8475 | delta = time_t_max / 997; /* a suitable prime number */ | |
8476 | for (i = 0; i < N_STRINGS; i++) | |
8477 | { | |
8478 | if (tz_strings[i]) | |
8479 | putenv ((char*) tz_strings[i]); | |
8480 | ||
8481 | for (t = 0; t <= time_t_max - delta; t += delta) | |
8482 | if (! mktime_test (t)) | |
8483 | return 1; | |
8484 | if (! (mktime_test ((time_t) 1) | |
8485 | && mktime_test ((time_t) (60 * 60)) | |
8486 | && mktime_test ((time_t) (60 * 60 * 24)))) | |
8487 | return 1; | |
8488 | ||
8489 | for (j = 1; ; j <<= 1) | |
8490 | if (! bigtime_test (j)) | |
8491 | return 1; | |
8492 | else if (INT_MAX / 2 < j) | |
8493 | break; | |
8494 | if (! bigtime_test (INT_MAX)) | |
8495 | return 1; | |
8496 | } | |
8497 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); | |
8498 | } | |
8499 | _ACEOF | |
6b2e4ec5 ZK |
8500 | if ac_fn_c_try_run "$LINENO" |
8501 | then : | |
1568ed4d | 8502 | ac_cv_func_working_mktime=yes |
635df748 ZK |
8503 | else case e in #( |
8504 | e) ac_cv_func_working_mktime=no ;; | |
8505 | esac | |
1568ed4d AK |
8506 | fi |
8507 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
635df748 ZK |
8508 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
8509 | esac | |
1568ed4d | 8510 | fi |
635df748 ZK |
8511 | ;; |
8512 | esac | |
1568ed4d | 8513 | fi |
6b2e4ec5 ZK |
8514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 |
8515 | printf "%s\n" "$ac_cv_func_working_mktime" >&6; } | |
1568ed4d AK |
8516 | if test $ac_cv_func_working_mktime = no; then |
8517 | case " $LIBOBJS " in | |
8518 | *" mktime.$ac_objext "* ) ;; | |
8519 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" | |
8520 | ;; | |
8521 | esac | |
8522 | ||
8523 | fi | |
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
6b2e4ec5 ZK |
8529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
8530 | printf %s "checking for working mmap... " >&6; } | |
8531 | if test ${ac_cv_func_mmap_fixed_mapped+y} | |
8532 | then : | |
8533 | printf %s "(cached) " >&6 | |
635df748 ZK |
8534 | else case e in #( |
8535 | e) if test "$cross_compiling" = yes | |
6b2e4ec5 ZK |
8536 | then : |
8537 | case "$host_os" in # (( | |
8538 | # Guess yes on platforms where we know the result. | |
8539 | linux*) ac_cv_func_mmap_fixed_mapped=yes ;; | |
8540 | # If we don't know, assume the worst. | |
8541 | *) ac_cv_func_mmap_fixed_mapped=no ;; | |
8542 | esac | |
635df748 ZK |
8543 | else case e in #( |
8544 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
8545 | /* end confdefs.h. */ |
8546 | $ac_includes_default | |
f11781c5 AK |
8547 | /* malloc might have been renamed as rpl_malloc. */ |
8548 | #undef malloc | |
8549 | ||
8550 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8551 | Here is a matrix of mmap possibilities: | |
8552 | mmap private not fixed | |
8553 | mmap private fixed at somewhere currently unmapped | |
8554 | mmap private fixed at somewhere already mapped | |
8555 | mmap shared not fixed | |
8556 | mmap shared fixed at somewhere currently unmapped | |
8557 | mmap shared fixed at somewhere already mapped | |
8558 | For private mappings, we should verify that changes cannot be read() | |
8559 | back from the file, nor mmap's back from the file at a different | |
8560 | address. (There have been systems where private was not correctly | |
8561 | implemented like the infamous i386 svr4.0, and systems where the | |
8562 | VM page cache was not coherent with the file system buffer cache | |
8563 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8564 | For shared mappings, we should conversely verify that changes get | |
635df748 | 8565 | propagated back to all the places they're supposed to be. */ |
f11781c5 AK |
8566 | |
8567 | #include <fcntl.h> | |
8568 | #include <sys/mman.h> | |
8569 | ||
635df748 ZK |
8570 | #ifndef getpagesize |
8571 | /* Prefer sysconf to the legacy getpagesize function, as getpagesize has | |
8572 | been removed from POSIX and is limited to page sizes that fit in 'int'. */ | |
f11781c5 | 8573 | # ifdef _SC_PAGESIZE |
635df748 ZK |
8574 | # define getpagesize() sysconf (_SC_PAGESIZE) |
8575 | # elif defined _SC_PAGE_SIZE | |
8576 | # define getpagesize() sysconf (_SC_PAGE_SIZE) | |
8577 | # elif HAVE_GETPAGESIZE | |
8578 | int getpagesize (); | |
8579 | # else | |
f11781c5 AK |
8580 | # ifdef HAVE_SYS_PARAM_H |
8581 | # include <sys/param.h> | |
8582 | # ifdef EXEC_PAGESIZE | |
8583 | # define getpagesize() EXEC_PAGESIZE | |
8584 | # else /* no EXEC_PAGESIZE */ | |
8585 | # ifdef NBPG | |
8586 | # define getpagesize() NBPG * CLSIZE | |
8587 | # ifndef CLSIZE | |
8588 | # define CLSIZE 1 | |
8589 | # endif /* no CLSIZE */ | |
8590 | # else /* no NBPG */ | |
8591 | # ifdef NBPC | |
8592 | # define getpagesize() NBPC | |
8593 | # else /* no NBPC */ | |
8594 | # ifdef PAGESIZE | |
8595 | # define getpagesize() PAGESIZE | |
8596 | # endif /* PAGESIZE */ | |
8597 | # endif /* no NBPC */ | |
8598 | # endif /* no NBPG */ | |
8599 | # endif /* no EXEC_PAGESIZE */ | |
8600 | # else /* no HAVE_SYS_PARAM_H */ | |
8601 | # define getpagesize() 8192 /* punt totally */ | |
8602 | # endif /* no HAVE_SYS_PARAM_H */ | |
635df748 ZK |
8603 | # endif |
8604 | #endif | |
f11781c5 AK |
8605 | |
8606 | int | |
6b2e4ec5 | 8607 | main (void) |
f11781c5 AK |
8608 | { |
8609 | char *data, *data2, *data3; | |
8610 | const char *cdata2; | |
635df748 | 8611 | long i, pagesize; |
f11781c5 AK |
8612 | int fd, fd2; |
8613 | ||
8614 | pagesize = getpagesize (); | |
8615 | ||
8616 | /* First, make a file with some known garbage in it. */ | |
8617 | data = (char *) malloc (pagesize); | |
8618 | if (!data) | |
8619 | return 1; | |
8620 | for (i = 0; i < pagesize; ++i) | |
8621 | *(data + i) = rand (); | |
8622 | umask (0); | |
8623 | fd = creat ("conftest.mmap", 0600); | |
8624 | if (fd < 0) | |
8625 | return 2; | |
8626 | if (write (fd, data, pagesize) != pagesize) | |
8627 | return 3; | |
8628 | close (fd); | |
8629 | ||
8630 | /* Next, check that the tail of a page is zero-filled. File must have | |
8631 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
8632 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
8633 | if (fd2 < 0) | |
8634 | return 4; | |
8635 | cdata2 = ""; | |
8636 | if (write (fd2, cdata2, 1) != 1) | |
8637 | return 5; | |
8638 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
8639 | if (data2 == MAP_FAILED) | |
8640 | return 6; | |
8641 | for (i = 0; i < pagesize; ++i) | |
8642 | if (*(data2 + i)) | |
8643 | return 7; | |
8644 | close (fd2); | |
635df748 | 8645 | /* 'return 8;' not currently used. */ |
f11781c5 AK |
8646 | |
8647 | /* Next, try to mmap the file at a fixed address which already has | |
8648 | something else allocated at it. If we can, also make sure that | |
8649 | we see the same garbage. */ | |
8650 | fd = open ("conftest.mmap", O_RDWR); | |
8651 | if (fd < 0) | |
8652 | return 9; | |
8653 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
8654 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
8655 | return 10; | |
8656 | for (i = 0; i < pagesize; ++i) | |
8657 | if (*(data + i) != *(data2 + i)) | |
8658 | return 11; | |
8659 | ||
8660 | /* Finally, make sure that changes to the mapped area do not | |
8661 | percolate back to the file as seen by read(). (This is a bug on | |
8662 | some variants of i386 svr4.0.) */ | |
8663 | for (i = 0; i < pagesize; ++i) | |
8664 | *(data2 + i) = *(data2 + i) + 1; | |
8665 | data3 = (char *) malloc (pagesize); | |
8666 | if (!data3) | |
8667 | return 12; | |
8668 | if (read (fd, data3, pagesize) != pagesize) | |
8669 | return 13; | |
8670 | for (i = 0; i < pagesize; ++i) | |
8671 | if (*(data + i) != *(data3 + i)) | |
8672 | return 14; | |
8673 | close (fd); | |
6b2e4ec5 ZK |
8674 | free (data); |
8675 | free (data3); | |
f11781c5 AK |
8676 | return 0; |
8677 | } | |
a946372e | 8678 | _ACEOF |
6b2e4ec5 ZK |
8679 | if ac_fn_c_try_run "$LINENO" |
8680 | then : | |
f11781c5 | 8681 | ac_cv_func_mmap_fixed_mapped=yes |
635df748 ZK |
8682 | else case e in #( |
8683 | e) ac_cv_func_mmap_fixed_mapped=no ;; | |
8684 | esac | |
f11781c5 AK |
8685 | fi |
8686 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
635df748 ZK |
8687 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
8688 | esac | |
f11781c5 | 8689 | fi |
635df748 ZK |
8690 | ;; |
8691 | esac | |
a946372e | 8692 | fi |
6b2e4ec5 ZK |
8693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
8694 | printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
f11781c5 | 8695 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
a946372e | 8696 | |
6b2e4ec5 | 8697 | printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h |
a946372e | 8698 | |
f11781c5 AK |
8699 | fi |
8700 | rm -f conftest.mmap conftest.txt | |
8701 | ||
6b2e4ec5 ZK |
8702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 |
8703 | printf %s "checking for GNU libc compatible realloc... " >&6; } | |
8704 | if test ${ac_cv_func_realloc_0_nonnull+y} | |
8705 | then : | |
8706 | printf %s "(cached) " >&6 | |
635df748 ZK |
8707 | else case e in #( |
8708 | e) if test "$cross_compiling" = yes | |
6b2e4ec5 ZK |
8709 | then : |
8710 | case "$host_os" in # (( | |
8711 | # Guess yes on platforms where we know the result. | |
8712 | *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ | |
635df748 | 8713 | | hpux* | solaris* | cygwin* | mingw* | windows* | msys* ) |
6b2e4ec5 ZK |
8714 | ac_cv_func_realloc_0_nonnull=yes ;; |
8715 | # If we don't know, assume the worst. | |
8716 | *) ac_cv_func_realloc_0_nonnull=no ;; | |
8717 | esac | |
635df748 ZK |
8718 | else case e in #( |
8719 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 8720 | /* end confdefs.h. */ |
6b2e4ec5 | 8721 | #include <stdlib.h> |
f11781c5 AK |
8722 | |
8723 | int | |
6b2e4ec5 | 8724 | main (void) |
f11781c5 | 8725 | { |
6b2e4ec5 ZK |
8726 | void *p = realloc (0, 0); |
8727 | int result = !p; | |
8728 | free (p); | |
8729 | return result; | |
f11781c5 AK |
8730 | ; |
8731 | return 0; | |
8732 | } | |
a946372e | 8733 | _ACEOF |
6b2e4ec5 ZK |
8734 | if ac_fn_c_try_run "$LINENO" |
8735 | then : | |
f11781c5 | 8736 | ac_cv_func_realloc_0_nonnull=yes |
635df748 ZK |
8737 | else case e in #( |
8738 | e) ac_cv_func_realloc_0_nonnull=no ;; | |
8739 | esac | |
f11781c5 AK |
8740 | fi |
8741 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
635df748 ZK |
8742 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
8743 | esac | |
a946372e | 8744 | fi |
635df748 ZK |
8745 | ;; |
8746 | esac | |
f11781c5 | 8747 | fi |
6b2e4ec5 ZK |
8748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 |
8749 | printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; } | |
8750 | if test $ac_cv_func_realloc_0_nonnull = yes | |
8751 | then : | |
a946372e | 8752 | |
6b2e4ec5 | 8753 | printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h |
a946372e | 8754 | |
635df748 ZK |
8755 | else case e in #( |
8756 | e) printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h | |
f11781c5 AK |
8757 | |
8758 | case " $LIBOBJS " in | |
8759 | *" realloc.$ac_objext "* ) ;; | |
8760 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
8761 | ;; | |
8762 | esac | |
a946372e | 8763 | |
a946372e | 8764 | |
6b2e4ec5 | 8765 | printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h |
635df748 ZK |
8766 | ;; |
8767 | esac | |
a946372e AK |
8768 | fi |
8769 | ||
a946372e | 8770 | |
6b2e4ec5 ZK |
8771 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
8772 | printf %s "checking whether stat accepts an empty string... " >&6; } | |
8773 | if test ${ac_cv_func_stat_empty_string_bug+y} | |
8774 | then : | |
8775 | printf %s "(cached) " >&6 | |
635df748 ZK |
8776 | else case e in #( |
8777 | e) if test "$cross_compiling" = yes | |
6b2e4ec5 | 8778 | then : |
f11781c5 | 8779 | ac_cv_func_stat_empty_string_bug=yes |
635df748 ZK |
8780 | else case e in #( |
8781 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 AK |
8782 | /* end confdefs.h. */ |
8783 | $ac_includes_default | |
8784 | int | |
6b2e4ec5 | 8785 | main (void) |
f11781c5 AK |
8786 | { |
8787 | struct stat sbuf; | |
8788 | return stat ("", &sbuf) == 0; | |
8789 | ; | |
8790 | return 0; | |
8791 | } | |
8792 | _ACEOF | |
6b2e4ec5 ZK |
8793 | if ac_fn_c_try_run "$LINENO" |
8794 | then : | |
f11781c5 | 8795 | ac_cv_func_stat_empty_string_bug=no |
635df748 ZK |
8796 | else case e in #( |
8797 | e) ac_cv_func_stat_empty_string_bug=yes ;; | |
8798 | esac | |
a946372e | 8799 | fi |
f11781c5 | 8800 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
635df748 ZK |
8801 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
8802 | esac | |
a946372e | 8803 | fi |
635df748 ZK |
8804 | ;; |
8805 | esac | |
8c4e8a18 | 8806 | fi |
6b2e4ec5 ZK |
8807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
8808 | printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; } | |
f11781c5 AK |
8809 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
8810 | case " $LIBOBJS " in | |
8811 | *" stat.$ac_objext "* ) ;; | |
8812 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" | |
8813 | ;; | |
8814 | esac | |
8c4e8a18 FDN |
8815 | |
8816 | ||
6b2e4ec5 | 8817 | printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h |
8c4e8a18 FDN |
8818 | |
8819 | fi | |
8820 | ||
6b2e4ec5 ZK |
8821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
8822 | printf %s "checking for working strtod... " >&6; } | |
8823 | if test ${ac_cv_func_strtod+y} | |
8824 | then : | |
8825 | printf %s "(cached) " >&6 | |
635df748 ZK |
8826 | else case e in #( |
8827 | e) if test "$cross_compiling" = yes | |
6b2e4ec5 | 8828 | then : |
f11781c5 | 8829 | ac_cv_func_strtod=no |
635df748 ZK |
8830 | else case e in #( |
8831 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f11781c5 | 8832 | /* end confdefs.h. */ |
66fd4529 | 8833 | |
f11781c5 | 8834 | $ac_includes_default |
f11781c5 | 8835 | int |
6b2e4ec5 | 8836 | main (void) |
f11781c5 AK |
8837 | { |
8838 | { | |
8839 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8840 | char *string = " +69"; | |
8841 | char *term; | |
8842 | double value; | |
8843 | value = strtod (string, &term); | |
8844 | if (value != 69 || term != (string + 4)) | |
8845 | return 1; | |
8846 | } | |
66fd4529 | 8847 | |
f11781c5 AK |
8848 | { |
8849 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8850 | terminating character under some conditions. */ | |
8851 | char *string = "NaN"; | |
8852 | char *term; | |
8853 | strtod (string, &term); | |
8854 | if (term != string && *(term - 1) == 0) | |
8855 | return 1; | |
8856 | } | |
8857 | return 0; | |
8858 | } | |
66fd4529 | 8859 | |
f11781c5 | 8860 | _ACEOF |
6b2e4ec5 ZK |
8861 | if ac_fn_c_try_run "$LINENO" |
8862 | then : | |
f11781c5 | 8863 | ac_cv_func_strtod=yes |
635df748 ZK |
8864 | else case e in #( |
8865 | e) ac_cv_func_strtod=no ;; | |
8866 | esac | |
f11781c5 AK |
8867 | fi |
8868 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
635df748 ZK |
8869 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
8870 | esac | |
a946372e | 8871 | fi |
635df748 ZK |
8872 | ;; |
8873 | esac | |
f11781c5 | 8874 | fi |
6b2e4ec5 ZK |
8875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 |
8876 | printf "%s\n" "$ac_cv_func_strtod" >&6; } | |
f11781c5 AK |
8877 | if test $ac_cv_func_strtod = no; then |
8878 | case " $LIBOBJS " in | |
8879 | *" strtod.$ac_objext "* ) ;; | |
8880 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
8881 | ;; | |
8882 | esac | |
71082be4 | 8883 | |
f11781c5 | 8884 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
6b2e4ec5 ZK |
8885 | if test "x$ac_cv_func_pow" = xyes |
8886 | then : | |
71082be4 | 8887 | |
66fd4529 | 8888 | fi |
a946372e | 8889 | |
f11781c5 | 8890 | if test $ac_cv_func_pow = no; then |
6b2e4ec5 ZK |
8891 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
8892 | printf %s "checking for pow in -lm... " >&6; } | |
8893 | if test ${ac_cv_lib_m_pow+y} | |
8894 | then : | |
8895 | printf %s "(cached) " >&6 | |
635df748 ZK |
8896 | else case e in #( |
8897 | e) ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
8898 | LIBS="-lm $LIBS" |
8899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8900 | /* end confdefs.h. */ | |
90c80887 | 8901 | |
f11781c5 AK |
8902 | /* Override any GCC internal prototype to avoid an error. |
8903 | Use char because int might match the return type of a GCC | |
635df748 ZK |
8904 | builtin and then its argument prototype would still apply. |
8905 | The 'extern "C"' is for builds by C++ compilers; | |
8906 | although this is not generally supported in C code supporting it here | |
8907 | has little cost and some practical benefit (sr 110532). */ | |
8908 | #ifdef __cplusplus | |
8909 | extern "C" | |
8910 | #endif | |
8911 | char pow (void); | |
f11781c5 | 8912 | int |
6b2e4ec5 | 8913 | main (void) |
f11781c5 AK |
8914 | { |
8915 | return pow (); | |
8916 | ; | |
8917 | return 0; | |
8918 | } | |
8919 | _ACEOF | |
6b2e4ec5 ZK |
8920 | if ac_fn_c_try_link "$LINENO" |
8921 | then : | |
f11781c5 | 8922 | ac_cv_lib_m_pow=yes |
635df748 ZK |
8923 | else case e in #( |
8924 | e) ac_cv_lib_m_pow=no ;; | |
8925 | esac | |
90c80887 | 8926 | fi |
6b2e4ec5 | 8927 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f11781c5 | 8928 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
8929 | LIBS=$ac_check_lib_save_LIBS ;; |
8930 | esac | |
90c80887 | 8931 | fi |
6b2e4ec5 ZK |
8932 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
8933 | printf "%s\n" "$ac_cv_lib_m_pow" >&6; } | |
8934 | if test "x$ac_cv_lib_m_pow" = xyes | |
8935 | then : | |
f11781c5 | 8936 | POW_LIB=-lm |
635df748 ZK |
8937 | else case e in #( |
8938 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 | |
8939 | printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;} ;; | |
8940 | esac | |
90c80887 | 8941 | fi |
f11781c5 | 8942 | |
90c80887 AK |
8943 | fi |
8944 | ||
f11781c5 AK |
8945 | fi |
8946 | ||
90c80887 AK |
8947 | |
8948 | ||
6b2e4ec5 ZK |
8949 | if test "x$ac_cv_func_vprintf" = xno |
8950 | then : | |
8951 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" | |
8952 | if test "x$ac_cv_func__doprnt" = xyes | |
8953 | then : | |
90c80887 | 8954 | |
6b2e4ec5 | 8955 | printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h |
90c80887 | 8956 | |
f11781c5 | 8957 | fi |
90c80887 | 8958 | |
6b2e4ec5 | 8959 | fi |
90c80887 | 8960 | |
d62448cb | 8961 | ################################################################################ |
6b2e4ec5 ZK |
8962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable dependency tracking" >&5 |
8963 | printf %s "checking whether to enable dependency tracking... " >&6; } | |
d62448cb | 8964 | # Check whether --enable-dependency-tracking was given. |
6b2e4ec5 ZK |
8965 | if test ${enable_dependency_tracking+y} |
8966 | then : | |
d62448cb | 8967 | enableval=$enable_dependency_tracking; USE_TRACKING=$enableval |
635df748 ZK |
8968 | else case e in #( |
8969 | e) USE_TRACKING="yes" ;; | |
8970 | esac | |
d62448cb ZK |
8971 | fi |
8972 | ||
6b2e4ec5 ZK |
8973 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_TRACKING" >&5 |
8974 | printf "%s\n" "$USE_TRACKING" >&6; } | |
d62448cb | 8975 | |
fa58fc32 | 8976 | ################################################################################ |
6b2e4ec5 ZK |
8977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build silently" >&5 |
8978 | printf %s "checking whether to build silently... " >&6; } | |
fa58fc32 | 8979 | # Check whether --enable-silent-rules was given. |
6b2e4ec5 ZK |
8980 | if test ${enable_silent_rules+y} |
8981 | then : | |
fa58fc32 | 8982 | enableval=$enable_silent_rules; SILENT_RULES=$enableval |
635df748 ZK |
8983 | else case e in #( |
8984 | e) SILENT_RULES="yes" ;; | |
8985 | esac | |
fa58fc32 ZK |
8986 | fi |
8987 | ||
6b2e4ec5 ZK |
8988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SILENT_RULES" >&5 |
8989 | printf "%s\n" "$SILENT_RULES" >&6; } | |
fa58fc32 ZK |
8990 | |
8991 | ||
f11781c5 | 8992 | ################################################################################ |
6b2e4ec5 ZK |
8993 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5 |
8994 | printf %s "checking whether to use static linking... " >&6; } | |
f11781c5 | 8995 | # Check whether --enable-static_link was given. |
6b2e4ec5 ZK |
8996 | if test ${enable_static_link+y} |
8997 | then : | |
f11781c5 | 8998 | enableval=$enable_static_link; STATIC_LINK=$enableval |
635df748 ZK |
8999 | else case e in #( |
9000 | e) STATIC_LINK="no" ;; | |
9001 | esac | |
f11781c5 | 9002 | fi |
90c80887 | 9003 | |
6b2e4ec5 ZK |
9004 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5 |
9005 | printf "%s\n" "$STATIC_LINK" >&6; } | |
90c80887 | 9006 | |
8b8b8ac1 ZK |
9007 | ################################################################################ |
9008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use dynamic linking" >&5 | |
9009 | printf %s "checking whether to use dynamic linking... " >&6; } | |
9010 | # Check whether --enable-shared was given. | |
9011 | if test ${enable_shared+y} | |
9012 | then : | |
9013 | enableval=$enable_shared; SHARED_LINK=$enableval | |
635df748 ZK |
9014 | else case e in #( |
9015 | e) SHARED_LINK="yes" ;; | |
9016 | esac | |
8b8b8ac1 ZK |
9017 | fi |
9018 | ||
9019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHARED_LINK" >&5 | |
9020 | printf "%s\n" "$SHARED_LINK" >&6; } | |
9021 | ||
6c6bcc00 PR |
9022 | ################################################################################ |
9023 | ||
9024 | ||
9025 | ac_save_CFLAGS=$CFLAGS | |
9026 | CFLAGS=-pie | |
6b2e4ec5 ZK |
9027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pie flag" >&5 |
9028 | printf %s "checking whether $CC accepts -pie flag... " >&6; } | |
9029 | if test ${ac_cv_flag_HAVE_PIE+y} | |
9030 | then : | |
9031 | printf %s "(cached) " >&6 | |
635df748 ZK |
9032 | else case e in #( |
9033 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6c6bcc00 PR |
9034 | /* end confdefs.h. */ |
9035 | ||
9036 | int | |
6b2e4ec5 | 9037 | main (void) |
6c6bcc00 PR |
9038 | { |
9039 | ||
9040 | ; | |
9041 | return 0; | |
9042 | } | |
9043 | _ACEOF | |
6b2e4ec5 ZK |
9044 | if ac_fn_c_try_compile "$LINENO" |
9045 | then : | |
6c6bcc00 | 9046 | ac_cv_flag_HAVE_PIE=yes |
635df748 ZK |
9047 | else case e in #( |
9048 | e) ac_cv_flag_HAVE_PIE=no ;; | |
9049 | esac | |
6c6bcc00 | 9050 | fi |
635df748 ZK |
9051 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
9052 | esac | |
6c6bcc00 | 9053 | fi |
6b2e4ec5 ZK |
9054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_PIE" >&5 |
9055 | printf "%s\n" "$ac_cv_flag_HAVE_PIE" >&6; } | |
6c6bcc00 PR |
9056 | CFLAGS=$ac_save_CFLAGS |
9057 | HAVE_PIE=$ac_cv_flag_HAVE_PIE | |
9058 | if test "HAVE_PIE" = yes; then | |
9059 | : | |
9060 | else | |
9061 | : | |
9062 | fi | |
9063 | ||
9064 | ||
9065 | ||
9066 | ||
9067 | ac_save_LDFLAGS=$LDFLAGS | |
f569ac59 ZK |
9068 | LDFLAGS=-Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed |
9069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed ld flags" >&5 | |
9070 | printf %s "checking whether $CC accepts -Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed ld flags... " >&6; } | |
6b2e4ec5 ZK |
9071 | if test ${ac_cv_flag_HAVE_FULL_RELRO+y} |
9072 | then : | |
9073 | printf %s "(cached) " >&6 | |
635df748 ZK |
9074 | else case e in #( |
9075 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6c6bcc00 PR |
9076 | /* end confdefs.h. */ |
9077 | ||
9078 | int | |
6b2e4ec5 | 9079 | main (void) |
6c6bcc00 PR |
9080 | { |
9081 | ||
9082 | ; | |
9083 | return 0; | |
9084 | } | |
9085 | _ACEOF | |
6b2e4ec5 ZK |
9086 | if ac_fn_c_try_link "$LINENO" |
9087 | then : | |
6c6bcc00 | 9088 | ac_cv_flag_HAVE_FULL_RELRO=yes |
635df748 ZK |
9089 | else case e in #( |
9090 | e) ac_cv_flag_HAVE_FULL_RELRO=no ;; | |
9091 | esac | |
6c6bcc00 | 9092 | fi |
6b2e4ec5 | 9093 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
635df748 ZK |
9094 | conftest$ac_exeext conftest.$ac_ext ;; |
9095 | esac | |
6c6bcc00 | 9096 | fi |
6b2e4ec5 ZK |
9097 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_FULL_RELRO" >&5 |
9098 | printf "%s\n" "$ac_cv_flag_HAVE_FULL_RELRO" >&6; } | |
28939dba | 9099 | LDFLAGS=$ac_save_LDFLAGS |
6c6bcc00 PR |
9100 | HAVE_FULL_RELRO=$ac_cv_flag_HAVE_FULL_RELRO |
9101 | if test "HAVE_FULL_RELRO" = yes; then | |
9102 | : | |
9103 | else | |
9104 | : | |
9105 | fi | |
9106 | ||
9107 | ||
9108 | ||
f11781c5 | 9109 | ################################################################################ |
90c80887 | 9110 | |
3f59969c ZK |
9111 | |
9112 | ################################################################################ | |
b681b774 | 9113 | test "$exec_prefix" = "NONE" && test "$prefix" = "NONE" && exec_prefix="" |
3f59969c | 9114 | |
b681b774 | 9115 | test "$prefix" = "NONE" && prefix=$ac_default_prefix |
3f59969c | 9116 | # Let make expand exec_prefix. |
b681b774 | 9117 | test "$exec_prefix" = "NONE" && exec_prefix='${prefix}' |
3f59969c | 9118 | |
8b8b8ac1 ZK |
9119 | |
9120 | ||
9121 | # Check whether --with-blkid was given. | |
9122 | if test ${with_blkid+y} | |
9123 | then : | |
9124 | withval=$with_blkid; | |
635df748 ZK |
9125 | else case e in #( |
9126 | e) with_blkid="yes" ;; | |
9127 | esac | |
8b8b8ac1 ZK |
9128 | fi |
9129 | ||
9130 | ||
9131 | # Check whether --with-systemd was given. | |
9132 | if test ${with_systemd+y} | |
9133 | then : | |
9134 | withval=$with_systemd; | |
635df748 ZK |
9135 | else case e in #( |
9136 | e) with_systemd="yes" ;; | |
9137 | esac | |
8b8b8ac1 ZK |
9138 | fi |
9139 | ||
9140 | ||
9141 | # Check whether --with-udev was given. | |
9142 | if test ${with_udev+y} | |
9143 | then : | |
9144 | withval=$with_udev; | |
635df748 ZK |
9145 | else case e in #( |
9146 | e) with_udev="yes" ;; | |
9147 | esac | |
8b8b8ac1 ZK |
9148 | fi |
9149 | ||
9150 | ||
f11781c5 | 9151 | ################################################################################ |
6b2e4ec5 ZK |
9152 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking file owner" >&5 |
9153 | printf %s "checking file owner... " >&6; } | |
90c80887 | 9154 | |
f11781c5 | 9155 | # Check whether --with-user was given. |
6b2e4ec5 ZK |
9156 | if test ${with_user+y} |
9157 | then : | |
f11781c5 AK |
9158 | withval=$with_user; OWNER=$withval |
9159 | fi | |
90c80887 | 9160 | |
6b2e4ec5 ZK |
9161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5 |
9162 | printf "%s\n" "$OWNER" >&6; } | |
1b59f5a9 | 9163 | test -n "$OWNER" && INSTALL="$INSTALL -o $OWNER" |
a946372e | 9164 | |
f11781c5 | 9165 | ################################################################################ |
6b2e4ec5 ZK |
9166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking group owner" >&5 |
9167 | printf %s "checking group owner... " >&6; } | |
a946372e | 9168 | |
f11781c5 | 9169 | # Check whether --with-group was given. |
6b2e4ec5 ZK |
9170 | if test ${with_group+y} |
9171 | then : | |
f11781c5 | 9172 | withval=$with_group; GROUP=$withval |
a946372e | 9173 | fi |
f11781c5 | 9174 | |
6b2e4ec5 ZK |
9175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5 |
9176 | printf "%s\n" "$GROUP" >&6; } | |
1b59f5a9 | 9177 | test -n "$GROUP" && INSTALL="$INSTALL -g $GROUP" |
f11781c5 AK |
9178 | |
9179 | ################################################################################ | |
6b2e4ec5 ZK |
9180 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5 |
9181 | printf %s "checking device node uid... " >&6; } | |
f11781c5 AK |
9182 | |
9183 | ||
9184 | # Check whether --with-device-uid was given. | |
6b2e4ec5 ZK |
9185 | if test ${with_device_uid+y} |
9186 | then : | |
f11781c5 | 9187 | withval=$with_device_uid; DM_DEVICE_UID=$withval |
635df748 ZK |
9188 | else case e in #( |
9189 | e) DM_DEVICE_UID=0 ;; | |
9190 | esac | |
a946372e AK |
9191 | fi |
9192 | ||
6b2e4ec5 ZK |
9193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5 |
9194 | printf "%s\n" "$DM_DEVICE_UID" >&6; } | |
a946372e | 9195 | |
6b2e4ec5 | 9196 | printf "%s\n" "#define DM_DEVICE_UID $DM_DEVICE_UID" >>confdefs.h |
fe00b163 ZK |
9197 | |
9198 | ||
f11781c5 | 9199 | ################################################################################ |
6b2e4ec5 ZK |
9200 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5 |
9201 | printf %s "checking device node gid... " >&6; } | |
a946372e | 9202 | |
a946372e | 9203 | |
f11781c5 | 9204 | # Check whether --with-device-gid was given. |
6b2e4ec5 ZK |
9205 | if test ${with_device_gid+y} |
9206 | then : | |
f11781c5 | 9207 | withval=$with_device_gid; DM_DEVICE_GID=$withval |
635df748 ZK |
9208 | else case e in #( |
9209 | e) DM_DEVICE_GID=0 ;; | |
9210 | esac | |
a946372e | 9211 | fi |
a946372e | 9212 | |
6b2e4ec5 ZK |
9213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5 |
9214 | printf "%s\n" "$DM_DEVICE_GID" >&6; } | |
90c80887 | 9215 | |
6b2e4ec5 | 9216 | printf "%s\n" "#define DM_DEVICE_GID $DM_DEVICE_GID" >>confdefs.h |
fe00b163 ZK |
9217 | |
9218 | ||
f11781c5 | 9219 | ################################################################################ |
6b2e4ec5 ZK |
9220 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5 |
9221 | printf %s "checking device node mode... " >&6; } | |
90c80887 | 9222 | |
90c80887 | 9223 | |
f11781c5 | 9224 | # Check whether --with-device-mode was given. |
6b2e4ec5 ZK |
9225 | if test ${with_device_mode+y} |
9226 | then : | |
f11781c5 | 9227 | withval=$with_device_mode; DM_DEVICE_MODE=$withval |
635df748 ZK |
9228 | else case e in #( |
9229 | e) DM_DEVICE_MODE=0600 ;; | |
9230 | esac | |
f11781c5 | 9231 | fi |
90c80887 | 9232 | |
6b2e4ec5 ZK |
9233 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5 |
9234 | printf "%s\n" "$DM_DEVICE_MODE" >&6; } | |
90c80887 | 9235 | |
6b2e4ec5 | 9236 | printf "%s\n" "#define DM_DEVICE_MODE $DM_DEVICE_MODE" >>confdefs.h |
fe00b163 ZK |
9237 | |
9238 | ||
6b2e4ec5 ZK |
9239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5 |
9240 | printf %s "checking when to create device nodes... " >&6; } | |
d0df875d ZK |
9241 | |
9242 | # Check whether --with-device-nodes-on was given. | |
6b2e4ec5 ZK |
9243 | if test ${with_device_nodes_on+y} |
9244 | then : | |
d0df875d | 9245 | withval=$with_device_nodes_on; ADD_NODE=$withval |
635df748 ZK |
9246 | else case e in #( |
9247 | e) ADD_NODE=resume ;; | |
9248 | esac | |
d0df875d ZK |
9249 | fi |
9250 | ||
b681b774 ZK |
9251 | case "$ADD_NODE" in #( |
9252 | resume) : | |
9253 | add_on=DM_ADD_NODE_ON_RESUME ;; #( | |
9254 | create) : | |
9255 | add_on=DM_ADD_NODE_ON_CREATE ;; #( | |
9256 | *) : | |
9257 | as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5 ;; | |
d0df875d | 9258 | esac |
6b2e4ec5 ZK |
9259 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5 |
9260 | printf "%s\n" "on $ADD_NODE" >&6; } | |
d0df875d | 9261 | |
6b2e4ec5 | 9262 | printf "%s\n" "#define DEFAULT_DM_ADD_NODE $add_on" >>confdefs.h |
d0df875d ZK |
9263 | |
9264 | ||
b73e1cd4 | 9265 | |
6b2e4ec5 ZK |
9266 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default for use_devicesfile" >&5 |
9267 | printf %s "checking default for use_devicesfile... " >&6; } | |
b73e1cd4 ZK |
9268 | |
9269 | # Check whether --with-default-use-devices-file was given. | |
6b2e4ec5 ZK |
9270 | if test ${with_default_use_devices_file+y} |
9271 | then : | |
8aefd972 | 9272 | withval=$with_default_use_devices_file; DEFAULT_USE_DEVICES_FILE=$withval |
635df748 ZK |
9273 | else case e in #( |
9274 | e) DEFAULT_USE_DEVICES_FILE=0 ;; | |
9275 | esac | |
b73e1cd4 | 9276 | fi |
c60bac46 | 9277 | |
b681b774 ZK |
9278 | case "$DEFAULT_USE_DEVICES_FILE" in #( |
9279 | 0|1) : | |
9280 | ;; #( | |
9281 | *) : | |
9282 | as_fn_error $? "--with-default-use-devices-file parameter invalid" "$LINENO" 5 ;; | |
b73e1cd4 | 9283 | esac |
6b2e4ec5 ZK |
9284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_DEVICES_FILE" >&5 |
9285 | printf "%s\n" "$DEFAULT_USE_DEVICES_FILE" >&6; } | |
b73e1cd4 | 9286 | |
6b2e4ec5 | 9287 | printf "%s\n" "#define DEFAULT_USE_DEVICES_FILE $DEFAULT_USE_DEVICES_FILE" >>confdefs.h |
b73e1cd4 ZK |
9288 | |
9289 | ||
6b2e4ec5 ZK |
9290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5 |
9291 | printf %s "checking default name mangling... " >&6; } | |
c64d7cd3 PR |
9292 | |
9293 | # Check whether --with-default-name-mangling was given. | |
6b2e4ec5 ZK |
9294 | if test ${with_default_name_mangling+y} |
9295 | then : | |
c64d7cd3 | 9296 | withval=$with_default_name_mangling; MANGLING=$withval |
635df748 ZK |
9297 | else case e in #( |
9298 | e) MANGLING=auto ;; | |
9299 | esac | |
c64d7cd3 PR |
9300 | fi |
9301 | ||
b681b774 ZK |
9302 | case "$MANGLING" in #( |
9303 | auto) : | |
9304 | mangling=DM_STRING_MANGLING_AUTO ;; #( | |
9305 | no|none|disabled) : | |
9306 | mangling=DM_STRING_MANGLING_NONE ;; #( | |
9307 | hex) : | |
9308 | mangling=DM_STRING_MANGLING_HEX ;; #( | |
9309 | *) : | |
9310 | as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5 ;; | |
c64d7cd3 | 9311 | esac |
6b2e4ec5 ZK |
9312 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5 |
9313 | printf "%s\n" "$MANGLING" >&6; } | |
c64d7cd3 | 9314 | |
6b2e4ec5 | 9315 | printf "%s\n" "#define DEFAULT_DM_NAME_MANGLING $mangling" >>confdefs.h |
c64d7cd3 PR |
9316 | |
9317 | ||
cd9b2b32 ZK |
9318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default for event_activation" >&5 |
9319 | printf %s "checking default for event_activation... " >&6; } | |
9320 | ||
9321 | # Check whether --with-default-event-activation was given. | |
9322 | if test ${with_default_event_activation+y} | |
9323 | then : | |
9324 | withval=$with_default_event_activation; DEFAULT_EVENT_ACTIVATION=$withval | |
9325 | else case e in #( | |
9326 | e) DEFAULT_EVENT_ACTIVATION=1 ;; | |
9327 | esac | |
9328 | fi | |
9329 | ||
9330 | case "$DEFAULT_EVENT_ACTIVATION" in #( | |
9331 | 0|1) : | |
9332 | ;; #( | |
9333 | *) : | |
9334 | as_fn_error $? "--with-default-event-activation parameter invalid" "$LINENO" 5 ;; | |
9335 | esac | |
9336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_EVENT_ACTIVATION" >&5 | |
9337 | printf "%s\n" "$DEFAULT_EVENT_ACTIVATION" >&6; } | |
9338 | ||
9339 | printf "%s\n" "#define DEFAULT_EVENT_ACTIVATION $DEFAULT_EVENT_ACTIVATION" >>confdefs.h | |
9340 | ||
9341 | ||
f11781c5 | 9342 | ################################################################################ |
6b2e4ec5 ZK |
9343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5 |
9344 | printf %s "checking whether to include snapshots... " >&6; } | |
f11781c5 AK |
9345 | |
9346 | # Check whether --with-snapshots was given. | |
6b2e4ec5 ZK |
9347 | if test ${with_snapshots+y} |
9348 | then : | |
f11781c5 | 9349 | withval=$with_snapshots; SNAPSHOTS=$withval |
635df748 ZK |
9350 | else case e in #( |
9351 | e) SNAPSHOTS=internal ;; | |
9352 | esac | |
fddafd51 ZK |
9353 | fi |
9354 | ||
6b2e4ec5 ZK |
9355 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5 |
9356 | printf "%s\n" "$SNAPSHOTS" >&6; } | |
fddafd51 | 9357 | |
b681b774 ZK |
9358 | case "$SNAPSHOTS" in #( |
9359 | no|none|shared) : | |
9360 | ;; #( | |
9361 | internal) : | |
9362 | ||
9363 | ||
6b2e4ec5 | 9364 | printf "%s\n" "#define SNAPSHOT_INTERNAL 1" >>confdefs.h |
b681b774 ZK |
9365 | ;; #( |
9366 | *) : | |
9367 | as_fn_error $? "--with-snapshots parameter invalid" "$LINENO" 5 ;; | |
1b59f5a9 | 9368 | esac |
f11781c5 AK |
9369 | |
9370 | ################################################################################ | |
6b2e4ec5 ZK |
9371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5 |
9372 | printf %s "checking whether to include mirrors... " >&6; } | |
f11781c5 AK |
9373 | |
9374 | # Check whether --with-mirrors was given. | |
6b2e4ec5 ZK |
9375 | if test ${with_mirrors+y} |
9376 | then : | |
f11781c5 | 9377 | withval=$with_mirrors; MIRRORS=$withval |
635df748 ZK |
9378 | else case e in #( |
9379 | e) MIRRORS=internal ;; | |
9380 | esac | |
fddafd51 ZK |
9381 | fi |
9382 | ||
6b2e4ec5 ZK |
9383 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5 |
9384 | printf "%s\n" "$MIRRORS" >&6; } | |
fddafd51 | 9385 | |
b681b774 ZK |
9386 | case "$MIRRORS" in #( |
9387 | no|none|shared) : | |
9388 | ;; #( | |
9389 | internal) : | |
9390 | ||
9391 | ||
6b2e4ec5 | 9392 | printf "%s\n" "#define MIRRORED_INTERNAL 1" >>confdefs.h |
b681b774 ZK |
9393 | ;; #( |
9394 | *) : | |
9395 | as_fn_error $? "--with-mirrors parameter invalid" "$LINENO" 5 ;; | |
1b59f5a9 | 9396 | esac |
f11781c5 | 9397 | |
cac52ca4 | 9398 | ################################################################################ |
e6e64748 ZK |
9399 | |
9400 | # Check whether --with-default-mirror-segtype was given. | |
6b2e4ec5 ZK |
9401 | if test ${with_default_mirror_segtype+y} |
9402 | then : | |
e6e64748 | 9403 | withval=$with_default_mirror_segtype; DEFAULT_MIRROR_SEGTYPE=$withval |
635df748 ZK |
9404 | else case e in #( |
9405 | e) DEFAULT_MIRROR_SEGTYPE="raid1" ;; | |
9406 | esac | |
e6e64748 ZK |
9407 | fi |
9408 | ||
9409 | ||
f80e7bb6 | 9410 | # Check whether --with-default-raid10-segtype was given. |
6b2e4ec5 ZK |
9411 | if test ${with_default_raid10_segtype+y} |
9412 | then : | |
f80e7bb6 | 9413 | withval=$with_default_raid10_segtype; DEFAULT_RAID10_SEGTYPE=$withval |
635df748 ZK |
9414 | else case e in #( |
9415 | e) DEFAULT_RAID10_SEGTYPE="raid10" ;; | |
9416 | esac | |
e6e64748 ZK |
9417 | fi |
9418 | ||
b393fbec JT |
9419 | |
9420 | ||
6b2e4ec5 | 9421 | printf "%s\n" "#define RAID_INTERNAL 1" >>confdefs.h |
b393fbec | 9422 | |
cac52ca4 | 9423 | |
e6e64748 | 9424 | |
6b2e4ec5 | 9425 | printf "%s\n" "#define DEFAULT_MIRROR_SEGTYPE \"$DEFAULT_MIRROR_SEGTYPE\"" >>confdefs.h |
e6e64748 ZK |
9426 | |
9427 | ||
9428 | ||
6b2e4ec5 | 9429 | printf "%s\n" "#define DEFAULT_RAID10_SEGTYPE \"$DEFAULT_RAID10_SEGTYPE\"" >>confdefs.h |
e6e64748 ZK |
9430 | |
9431 | ||
f11781c5 | 9432 | ################################################################################ |
e6e64748 ZK |
9433 | |
9434 | # Check whether --with-default-sparse-segtype was given. | |
6b2e4ec5 ZK |
9435 | if test ${with_default_sparse_segtype+y} |
9436 | then : | |
b681b774 ZK |
9437 | withval=$with_default_sparse_segtype; |
9438 | case "$withval" in #( | |
9439 | thin|snapshot) : | |
9440 | DEFAULT_SPARSE_SEGTYPE=$withval ;; #( | |
9441 | *) : | |
9442 | as_fn_error $? "--with-default-sparse-segtype parameter invalid" "$LINENO" 5 ;; | |
9443 | esac | |
9444 | ||
635df748 ZK |
9445 | else case e in #( |
9446 | e) DEFAULT_SPARSE_SEGTYPE="thin" ;; | |
9447 | esac | |
e6e64748 ZK |
9448 | fi |
9449 | ||
9450 | ||
3ba4a195 | 9451 | ################################################################################ |
6b2e4ec5 ZK |
9452 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5 |
9453 | printf %s "checking whether to include thin provisioning... " >&6; } | |
3ba4a195 ZK |
9454 | |
9455 | # Check whether --with-thin was given. | |
6b2e4ec5 ZK |
9456 | if test ${with_thin+y} |
9457 | then : | |
3ba4a195 | 9458 | withval=$with_thin; THIN=$withval |
635df748 ZK |
9459 | else case e in #( |
9460 | e) THIN=internal ;; | |
9461 | esac | |
3ba4a195 ZK |
9462 | fi |
9463 | ||
aefab64e PR |
9464 | |
9465 | # Check whether --with-thin-check was given. | |
6b2e4ec5 ZK |
9466 | if test ${with_thin_check+y} |
9467 | then : | |
aefab64e | 9468 | withval=$with_thin_check; THIN_CHECK_CMD=$withval |
635df748 ZK |
9469 | else case e in #( |
9470 | e) THIN_CHECK_CMD="autodetect" ;; | |
9471 | esac | |
aefab64e PR |
9472 | fi |
9473 | ||
9474 | ||
9475 | # Check whether --with-thin-dump was given. | |
6b2e4ec5 ZK |
9476 | if test ${with_thin_dump+y} |
9477 | then : | |
aefab64e | 9478 | withval=$with_thin_dump; THIN_DUMP_CMD=$withval |
635df748 ZK |
9479 | else case e in #( |
9480 | e) THIN_DUMP_CMD="autodetect" ;; | |
9481 | esac | |
aefab64e PR |
9482 | fi |
9483 | ||
9484 | ||
9485 | # Check whether --with-thin-repair was given. | |
6b2e4ec5 ZK |
9486 | if test ${with_thin_repair+y} |
9487 | then : | |
aefab64e | 9488 | withval=$with_thin_repair; THIN_REPAIR_CMD=$withval |
635df748 ZK |
9489 | else case e in #( |
9490 | e) THIN_REPAIR_CMD="autodetect" ;; | |
9491 | esac | |
aefab64e PR |
9492 | fi |
9493 | ||
9494 | ||
b3539907 | 9495 | # Check whether --with-thin-restore was given. |
6b2e4ec5 ZK |
9496 | if test ${with_thin_restore+y} |
9497 | then : | |
b3539907 | 9498 | withval=$with_thin_restore; THIN_RESTORE_CMD=$withval |
635df748 ZK |
9499 | else case e in #( |
9500 | e) THIN_RESTORE_CMD="autodetect" ;; | |
9501 | esac | |
b3539907 ZK |
9502 | fi |
9503 | ||
9504 | ||
6b2e4ec5 ZK |
9505 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5 |
9506 | printf "%s\n" "$THIN" >&6; } | |
3ba4a195 | 9507 | |
b681b774 ZK |
9508 | case "$THIN" in #( |
9509 | no|none) : | |
9510 | test "$DEFAULT_SPARSE_SEGTYPE" = "thin" && DEFAULT_SPARSE_SEGTYPE="snapshot" ;; #( | |
9511 | shared) : | |
9512 | ;; #( | |
9513 | internal) : | |
9514 | ||
9515 | ||
6b2e4ec5 | 9516 | printf "%s\n" "#define THIN_INTERNAL 1" >>confdefs.h |
b681b774 ZK |
9517 | ;; #( |
9518 | *) : | |
9519 | as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;; | |
3ba4a195 ZK |
9520 | esac |
9521 | ||
e6e64748 | 9522 | |
6b2e4ec5 | 9523 | printf "%s\n" "#define DEFAULT_SPARSE_SEGTYPE \"$DEFAULT_SPARSE_SEGTYPE\"" >>confdefs.h |
e6e64748 ZK |
9524 | |
9525 | ||
f13977e8 | 9526 | # Check whether --enable-thin_check_needs_check was given. |
6b2e4ec5 ZK |
9527 | if test ${enable_thin_check_needs_check+y} |
9528 | then : | |
f13977e8 | 9529 | enableval=$enable_thin_check_needs_check; THIN_CHECK_NEEDS_CHECK=$enableval |
635df748 ZK |
9530 | else case e in #( |
9531 | e) THIN_CHECK_NEEDS_CHECK="yes" ;; | |
9532 | esac | |
f13977e8 AK |
9533 | fi |
9534 | ||
f13977e8 | 9535 | |
aefab64e PR |
9536 | # Test if necessary thin tools are available |
9537 | # if not - use plain defaults and warn user | |
b681b774 ZK |
9538 | case "$THIN" in #( |
9539 | internal|shared) : | |
9540 | ||
f61cacad | 9541 | # Empty means a config way to ignore thin checking |
b681b774 ZK |
9542 | if test "$THIN_CHECK_CMD" = "autodetect" |
9543 | then : | |
9544 | ||
aefab64e PR |
9545 | if test -n "$ac_tool_prefix"; then |
9546 | # Extract the first word of "${ac_tool_prefix}thin_check", so it can be a program name with args. | |
9547 | set dummy ${ac_tool_prefix}thin_check; ac_word=$2 | |
6b2e4ec5 ZK |
9548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9549 | printf %s "checking for $ac_word... " >&6; } | |
9550 | if test ${ac_cv_path_THIN_CHECK_CMD+y} | |
9551 | then : | |
9552 | printf %s "(cached) " >&6 | |
635df748 ZK |
9553 | else case e in #( |
9554 | e) case $THIN_CHECK_CMD in | |
f61cacad ZK |
9555 | [\\/]* | ?:[\\/]*) |
9556 | ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path. | |
9557 | ;; | |
9558 | *) | |
9559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 9560 | for as_dir in $PATH_SBIN |
f61cacad ZK |
9561 | do |
9562 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
9563 | case $as_dir in #((( |
9564 | '') as_dir=./ ;; | |
9565 | */) ;; | |
9566 | *) as_dir=$as_dir/ ;; | |
9567 | esac | |
f61cacad | 9568 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
9569 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
9570 | ac_cv_path_THIN_CHECK_CMD="$as_dir$ac_word$ac_exec_ext" | |
9571 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
f61cacad ZK |
9572 | break 2 |
9573 | fi | |
9574 | done | |
9575 | done | |
9576 | IFS=$as_save_IFS | |
9577 | ||
9578 | ;; | |
635df748 | 9579 | esac ;; |
f61cacad ZK |
9580 | esac |
9581 | fi | |
9582 | THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD | |
9583 | if test -n "$THIN_CHECK_CMD"; then | |
6b2e4ec5 ZK |
9584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5 |
9585 | printf "%s\n" "$THIN_CHECK_CMD" >&6; } | |
f61cacad | 9586 | else |
6b2e4ec5 ZK |
9587 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9588 | printf "%s\n" "no" >&6; } | |
f61cacad ZK |
9589 | fi |
9590 | ||
9591 | ||
aefab64e PR |
9592 | fi |
9593 | if test -z "$ac_cv_path_THIN_CHECK_CMD"; then | |
9594 | ac_pt_THIN_CHECK_CMD=$THIN_CHECK_CMD | |
9595 | # Extract the first word of "thin_check", so it can be a program name with args. | |
9596 | set dummy thin_check; ac_word=$2 | |
6b2e4ec5 ZK |
9597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9598 | printf %s "checking for $ac_word... " >&6; } | |
9599 | if test ${ac_cv_path_ac_pt_THIN_CHECK_CMD+y} | |
9600 | then : | |
9601 | printf %s "(cached) " >&6 | |
635df748 ZK |
9602 | else case e in #( |
9603 | e) case $ac_pt_THIN_CHECK_CMD in | |
aefab64e PR |
9604 | [\\/]* | ?:[\\/]*) |
9605 | ac_cv_path_ac_pt_THIN_CHECK_CMD="$ac_pt_THIN_CHECK_CMD" # Let the user override the test with a path. | |
9606 | ;; | |
9607 | *) | |
9608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 9609 | for as_dir in $PATH_SBIN |
aefab64e PR |
9610 | do |
9611 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
9612 | case $as_dir in #((( |
9613 | '') as_dir=./ ;; | |
9614 | */) ;; | |
9615 | *) as_dir=$as_dir/ ;; | |
9616 | esac | |
aefab64e | 9617 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
9618 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
9619 | ac_cv_path_ac_pt_THIN_CHECK_CMD="$as_dir$ac_word$ac_exec_ext" | |
9620 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
aefab64e PR |
9621 | break 2 |
9622 | fi | |
9623 | done | |
9624 | done | |
9625 | IFS=$as_save_IFS | |
22fc8098 | 9626 | |
aefab64e | 9627 | ;; |
635df748 | 9628 | esac ;; |
aefab64e PR |
9629 | esac |
9630 | fi | |
9631 | ac_pt_THIN_CHECK_CMD=$ac_cv_path_ac_pt_THIN_CHECK_CMD | |
9632 | if test -n "$ac_pt_THIN_CHECK_CMD"; then | |
6b2e4ec5 ZK |
9633 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_CHECK_CMD" >&5 |
9634 | printf "%s\n" "$ac_pt_THIN_CHECK_CMD" >&6; } | |
22fc8098 | 9635 | else |
6b2e4ec5 ZK |
9636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9637 | printf "%s\n" "no" >&6; } | |
aefab64e PR |
9638 | fi |
9639 | ||
9640 | if test "x$ac_pt_THIN_CHECK_CMD" = x; then | |
131693c4 | 9641 | THIN_CHECK_CMD="" |
aefab64e PR |
9642 | else |
9643 | case $cross_compiling:$ac_tool_warned in | |
9644 | yes:) | |
6b2e4ec5 ZK |
9645 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
9646 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
aefab64e PR |
9647 | ac_tool_warned=yes ;; |
9648 | esac | |
9649 | THIN_CHECK_CMD=$ac_pt_THIN_CHECK_CMD | |
9650 | fi | |
9651 | else | |
9652 | THIN_CHECK_CMD="$ac_cv_path_THIN_CHECK_CMD" | |
22fc8098 ZK |
9653 | fi |
9654 | ||
b681b774 ZK |
9655 | if test -z "$THIN_CHECK_CMD" |
9656 | then : | |
9657 | ||
07cd341b ZK |
9658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: thin_check not found in path $PATH_SBIN" >&5 |
9659 | printf "%s\n" "$as_me: WARNING: thin_check not found in path $PATH_SBIN" >&2;} | |
b681b774 ZK |
9660 | THIN_CHECK_CMD="/usr/sbin/thin_check" |
9661 | THIN_CONFIGURE_WARN="y" | |
9662 | ||
9663 | fi | |
9664 | ||
9665 | fi | |
9666 | if test "$THIN_CHECK_NEEDS_CHECK" = "yes" && test "$THIN_CONFIGURE_WARN" != "y" | |
9667 | then : | |
9668 | ||
9669 | THIN_CHECK_VSN=$("$THIN_CHECK_CMD" -V 2>/dev/null) | |
8b8b8ac1 | 9670 | THIN_CHECK_VSN=${THIN_CHECK_VSN##* } # trim away all before the first space |
b681b774 ZK |
9671 | THIN_CHECK_VSN_MAJOR=$(echo "$THIN_CHECK_VSN" | $AWK -F '.' '{print $1}') |
9672 | THIN_CHECK_VSN_MINOR=$(echo "$THIN_CHECK_VSN" | $AWK -F '.' '{print $2}') | |
9673 | ||
9674 | if test -z "$THIN_CHECK_VSN_MAJOR" || test -z "$THIN_CHECK_VSN_MINOR" | |
9675 | then : | |
2e1192f6 | 9676 | |
6b2e4ec5 ZK |
9677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $THIN_CHECK_CMD: Bad version \"$THIN_CHECK_VSN\" found" >&5 |
9678 | printf "%s\n" "$as_me: WARNING: $THIN_CHECK_CMD: Bad version \"$THIN_CHECK_VSN\" found" >&2;} | |
b681b774 ZK |
9679 | THIN_CHECK_VERSION_WARN="y" |
9680 | THIN_CHECK_NEEDS_CHECK="no" | |
9681 | ||
9682 | elif test "$THIN_CHECK_VSN_MAJOR" -eq 0 && test "$THIN_CHECK_VSN_MINOR" -lt 3 | |
9683 | then : | |
9684 | ||
6b2e4ec5 ZK |
9685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $THIN_CHECK_CMD: Old version \"$THIN_CHECK_VSN\" found" >&5 |
9686 | printf "%s\n" "$as_me: WARNING: $THIN_CHECK_CMD: Old version \"$THIN_CHECK_VSN\" found" >&2;} | |
b681b774 ZK |
9687 | THIN_CHECK_VERSION_WARN="y" |
9688 | THIN_CHECK_NEEDS_CHECK="no" | |
9689 | ||
9690 | fi | |
9691 | ||
9692 | fi | |
39cb8aa3 | 9693 | # Empty means a config way to ignore thin dumping |
b681b774 ZK |
9694 | if test "$THIN_DUMP_CMD" = "autodetect" |
9695 | then : | |
9696 | ||
aefab64e PR |
9697 | if test -n "$ac_tool_prefix"; then |
9698 | # Extract the first word of "${ac_tool_prefix}thin_dump", so it can be a program name with args. | |
9699 | set dummy ${ac_tool_prefix}thin_dump; ac_word=$2 | |
6b2e4ec5 ZK |
9700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9701 | printf %s "checking for $ac_word... " >&6; } | |
9702 | if test ${ac_cv_path_THIN_DUMP_CMD+y} | |
9703 | then : | |
9704 | printf %s "(cached) " >&6 | |
635df748 ZK |
9705 | else case e in #( |
9706 | e) case $THIN_DUMP_CMD in | |
22fc8098 ZK |
9707 | [\\/]* | ?:[\\/]*) |
9708 | ac_cv_path_THIN_DUMP_CMD="$THIN_DUMP_CMD" # Let the user override the test with a path. | |
9709 | ;; | |
9710 | *) | |
9711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 9712 | for as_dir in $PATH_SBIN |
22fc8098 ZK |
9713 | do |
9714 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
9715 | case $as_dir in #((( |
9716 | '') as_dir=./ ;; | |
9717 | */) ;; | |
9718 | *) as_dir=$as_dir/ ;; | |
9719 | esac | |
22fc8098 | 9720 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
9721 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
9722 | ac_cv_path_THIN_DUMP_CMD="$as_dir$ac_word$ac_exec_ext" | |
9723 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
22fc8098 ZK |
9724 | break 2 |
9725 | fi | |
9726 | done | |
9727 | done | |
9728 | IFS=$as_save_IFS | |
9729 | ||
9730 | ;; | |
635df748 | 9731 | esac ;; |
22fc8098 ZK |
9732 | esac |
9733 | fi | |
9734 | THIN_DUMP_CMD=$ac_cv_path_THIN_DUMP_CMD | |
9735 | if test -n "$THIN_DUMP_CMD"; then | |
6b2e4ec5 ZK |
9736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_DUMP_CMD" >&5 |
9737 | printf "%s\n" "$THIN_DUMP_CMD" >&6; } | |
22fc8098 | 9738 | else |
6b2e4ec5 ZK |
9739 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9740 | printf "%s\n" "no" >&6; } | |
22fc8098 ZK |
9741 | fi |
9742 | ||
9743 | ||
aefab64e PR |
9744 | fi |
9745 | if test -z "$ac_cv_path_THIN_DUMP_CMD"; then | |
9746 | ac_pt_THIN_DUMP_CMD=$THIN_DUMP_CMD | |
9747 | # Extract the first word of "thin_dump", so it can be a program name with args. | |
9748 | set dummy thin_dump; ac_word=$2 | |
6b2e4ec5 ZK |
9749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9750 | printf %s "checking for $ac_word... " >&6; } | |
9751 | if test ${ac_cv_path_ac_pt_THIN_DUMP_CMD+y} | |
9752 | then : | |
9753 | printf %s "(cached) " >&6 | |
635df748 ZK |
9754 | else case e in #( |
9755 | e) case $ac_pt_THIN_DUMP_CMD in | |
aefab64e PR |
9756 | [\\/]* | ?:[\\/]*) |
9757 | ac_cv_path_ac_pt_THIN_DUMP_CMD="$ac_pt_THIN_DUMP_CMD" # Let the user override the test with a path. | |
9758 | ;; | |
9759 | *) | |
9760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 9761 | for as_dir in $PATH_SBIN |
aefab64e PR |
9762 | do |
9763 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
9764 | case $as_dir in #((( |
9765 | '') as_dir=./ ;; | |
9766 | */) ;; | |
9767 | *) as_dir=$as_dir/ ;; | |
9768 | esac | |
aefab64e | 9769 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
9770 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
9771 | ac_cv_path_ac_pt_THIN_DUMP_CMD="$as_dir$ac_word$ac_exec_ext" | |
9772 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
aefab64e PR |
9773 | break 2 |
9774 | fi | |
9775 | done | |
9776 | done | |
9777 | IFS=$as_save_IFS | |
22fc8098 | 9778 | |
aefab64e | 9779 | ;; |
635df748 | 9780 | esac ;; |
aefab64e PR |
9781 | esac |
9782 | fi | |
9783 | ac_pt_THIN_DUMP_CMD=$ac_cv_path_ac_pt_THIN_DUMP_CMD | |
9784 | if test -n "$ac_pt_THIN_DUMP_CMD"; then | |
6b2e4ec5 ZK |
9785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_DUMP_CMD" >&5 |
9786 | printf "%s\n" "$ac_pt_THIN_DUMP_CMD" >&6; } | |
aefab64e | 9787 | else |
6b2e4ec5 ZK |
9788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9789 | printf "%s\n" "no" >&6; } | |
aefab64e PR |
9790 | fi |
9791 | ||
9792 | if test "x$ac_pt_THIN_DUMP_CMD" = x; then | |
131693c4 | 9793 | THIN_DUMP_CMD="" |
aefab64e PR |
9794 | else |
9795 | case $cross_compiling:$ac_tool_warned in | |
9796 | yes:) | |
6b2e4ec5 ZK |
9797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
9798 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
aefab64e PR |
9799 | ac_tool_warned=yes ;; |
9800 | esac | |
9801 | THIN_DUMP_CMD=$ac_pt_THIN_DUMP_CMD | |
9802 | fi | |
22fc8098 | 9803 | else |
aefab64e | 9804 | THIN_DUMP_CMD="$ac_cv_path_THIN_DUMP_CMD" |
22fc8098 ZK |
9805 | fi |
9806 | ||
b681b774 ZK |
9807 | if test -z "$THIN_DUMP_CMD" |
9808 | then : | |
9809 | ||
07cd341b ZK |
9810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_dump not found in path $PATH_SBIN\"" >&5 |
9811 | printf "%s\n" "$as_me: WARNING: \"thin_dump not found in path $PATH_SBIN\"" >&2;} | |
b681b774 ZK |
9812 | THIN_DUMP_CMD="/usr/sbin/thin_dump" |
9813 | THIN_CONFIGURE_WARN="y" | |
9814 | ||
9815 | fi | |
9816 | ||
9817 | fi | |
39cb8aa3 | 9818 | # Empty means a config way to ignore thin repairing |
b681b774 ZK |
9819 | if test "$THIN_REPAIR_CMD" = "autodetect" |
9820 | then : | |
9821 | ||
aefab64e PR |
9822 | if test -n "$ac_tool_prefix"; then |
9823 | # Extract the first word of "${ac_tool_prefix}thin_repair", so it can be a program name with args. | |
9824 | set dummy ${ac_tool_prefix}thin_repair; ac_word=$2 | |
6b2e4ec5 ZK |
9825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9826 | printf %s "checking for $ac_word... " >&6; } | |
9827 | if test ${ac_cv_path_THIN_REPAIR_CMD+y} | |
9828 | then : | |
9829 | printf %s "(cached) " >&6 | |
635df748 ZK |
9830 | else case e in #( |
9831 | e) case $THIN_REPAIR_CMD in | |
22fc8098 ZK |
9832 | [\\/]* | ?:[\\/]*) |
9833 | ac_cv_path_THIN_REPAIR_CMD="$THIN_REPAIR_CMD" # Let the user override the test with a path. | |
9834 | ;; | |
9835 | *) | |
9836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 9837 | for as_dir in $PATH_SBIN |
22fc8098 ZK |
9838 | do |
9839 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
9840 | case $as_dir in #((( |
9841 | '') as_dir=./ ;; | |
9842 | */) ;; | |
9843 | *) as_dir=$as_dir/ ;; | |
9844 | esac | |
22fc8098 | 9845 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
9846 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
9847 | ac_cv_path_THIN_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext" | |
9848 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
22fc8098 ZK |
9849 | break 2 |
9850 | fi | |
9851 | done | |
9852 | done | |
9853 | IFS=$as_save_IFS | |
9854 | ||
9855 | ;; | |
635df748 | 9856 | esac ;; |
22fc8098 ZK |
9857 | esac |
9858 | fi | |
9859 | THIN_REPAIR_CMD=$ac_cv_path_THIN_REPAIR_CMD | |
9860 | if test -n "$THIN_REPAIR_CMD"; then | |
6b2e4ec5 ZK |
9861 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_REPAIR_CMD" >&5 |
9862 | printf "%s\n" "$THIN_REPAIR_CMD" >&6; } | |
22fc8098 | 9863 | else |
6b2e4ec5 ZK |
9864 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9865 | printf "%s\n" "no" >&6; } | |
22fc8098 ZK |
9866 | fi |
9867 | ||
9868 | ||
aefab64e PR |
9869 | fi |
9870 | if test -z "$ac_cv_path_THIN_REPAIR_CMD"; then | |
9871 | ac_pt_THIN_REPAIR_CMD=$THIN_REPAIR_CMD | |
9872 | # Extract the first word of "thin_repair", so it can be a program name with args. | |
9873 | set dummy thin_repair; ac_word=$2 | |
6b2e4ec5 ZK |
9874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9875 | printf %s "checking for $ac_word... " >&6; } | |
9876 | if test ${ac_cv_path_ac_pt_THIN_REPAIR_CMD+y} | |
9877 | then : | |
9878 | printf %s "(cached) " >&6 | |
635df748 ZK |
9879 | else case e in #( |
9880 | e) case $ac_pt_THIN_REPAIR_CMD in | |
aefab64e PR |
9881 | [\\/]* | ?:[\\/]*) |
9882 | ac_cv_path_ac_pt_THIN_REPAIR_CMD="$ac_pt_THIN_REPAIR_CMD" # Let the user override the test with a path. | |
9883 | ;; | |
9884 | *) | |
9885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 9886 | for as_dir in $PATH_SBIN |
aefab64e PR |
9887 | do |
9888 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
9889 | case $as_dir in #((( |
9890 | '') as_dir=./ ;; | |
9891 | */) ;; | |
9892 | *) as_dir=$as_dir/ ;; | |
9893 | esac | |
aefab64e | 9894 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
9895 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
9896 | ac_cv_path_ac_pt_THIN_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext" | |
9897 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
aefab64e PR |
9898 | break 2 |
9899 | fi | |
9900 | done | |
9901 | done | |
9902 | IFS=$as_save_IFS | |
9903 | ||
9904 | ;; | |
635df748 | 9905 | esac ;; |
aefab64e PR |
9906 | esac |
9907 | fi | |
9908 | ac_pt_THIN_REPAIR_CMD=$ac_cv_path_ac_pt_THIN_REPAIR_CMD | |
9909 | if test -n "$ac_pt_THIN_REPAIR_CMD"; then | |
6b2e4ec5 ZK |
9910 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_REPAIR_CMD" >&5 |
9911 | printf "%s\n" "$ac_pt_THIN_REPAIR_CMD" >&6; } | |
aefab64e | 9912 | else |
6b2e4ec5 ZK |
9913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9914 | printf "%s\n" "no" >&6; } | |
aefab64e PR |
9915 | fi |
9916 | ||
9917 | if test "x$ac_pt_THIN_REPAIR_CMD" = x; then | |
9918 | THIN_REPAIR_CMD="" | |
9919 | else | |
9920 | case $cross_compiling:$ac_tool_warned in | |
9921 | yes:) | |
6b2e4ec5 ZK |
9922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
9923 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
aefab64e PR |
9924 | ac_tool_warned=yes ;; |
9925 | esac | |
9926 | THIN_REPAIR_CMD=$ac_pt_THIN_REPAIR_CMD | |
9927 | fi | |
9928 | else | |
9929 | THIN_REPAIR_CMD="$ac_cv_path_THIN_REPAIR_CMD" | |
9930 | fi | |
9931 | ||
b681b774 ZK |
9932 | if test -z "$THIN_REPAIR_CMD" |
9933 | then : | |
9934 | ||
07cd341b ZK |
9935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_repair not found in path $PATH_SBIN\"" >&5 |
9936 | printf "%s\n" "$as_me: WARNING: \"thin_repair not found in path $PATH_SBIN\"" >&2;} | |
b681b774 ZK |
9937 | THIN_REPAIR_CMD="/usr/sbin/thin_repair" |
9938 | THIN_CONFIGURE_WARN="y" | |
9939 | ||
9940 | fi | |
9941 | ||
9942 | fi | |
39cb8aa3 | 9943 | # Empty means a config way to ignore thin restoring |
b681b774 ZK |
9944 | if test "$THIN_RESTORE_CMD" = "autodetect" |
9945 | then : | |
9946 | ||
b3539907 ZK |
9947 | if test -n "$ac_tool_prefix"; then |
9948 | # Extract the first word of "${ac_tool_prefix}thin_restore", so it can be a program name with args. | |
9949 | set dummy ${ac_tool_prefix}thin_restore; ac_word=$2 | |
6b2e4ec5 ZK |
9950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9951 | printf %s "checking for $ac_word... " >&6; } | |
9952 | if test ${ac_cv_path_THIN_RESTORE_CMD+y} | |
9953 | then : | |
9954 | printf %s "(cached) " >&6 | |
635df748 ZK |
9955 | else case e in #( |
9956 | e) case $THIN_RESTORE_CMD in | |
b3539907 ZK |
9957 | [\\/]* | ?:[\\/]*) |
9958 | ac_cv_path_THIN_RESTORE_CMD="$THIN_RESTORE_CMD" # Let the user override the test with a path. | |
9959 | ;; | |
9960 | *) | |
9961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 9962 | for as_dir in $PATH_SBIN |
b3539907 ZK |
9963 | do |
9964 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
9965 | case $as_dir in #((( |
9966 | '') as_dir=./ ;; | |
9967 | */) ;; | |
9968 | *) as_dir=$as_dir/ ;; | |
9969 | esac | |
b3539907 | 9970 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
9971 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
9972 | ac_cv_path_THIN_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext" | |
9973 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
b3539907 ZK |
9974 | break 2 |
9975 | fi | |
9976 | done | |
9977 | done | |
9978 | IFS=$as_save_IFS | |
9979 | ||
9980 | ;; | |
635df748 | 9981 | esac ;; |
b3539907 ZK |
9982 | esac |
9983 | fi | |
9984 | THIN_RESTORE_CMD=$ac_cv_path_THIN_RESTORE_CMD | |
9985 | if test -n "$THIN_RESTORE_CMD"; then | |
6b2e4ec5 ZK |
9986 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_RESTORE_CMD" >&5 |
9987 | printf "%s\n" "$THIN_RESTORE_CMD" >&6; } | |
b3539907 | 9988 | else |
6b2e4ec5 ZK |
9989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9990 | printf "%s\n" "no" >&6; } | |
b3539907 ZK |
9991 | fi |
9992 | ||
9993 | ||
9994 | fi | |
9995 | if test -z "$ac_cv_path_THIN_RESTORE_CMD"; then | |
9996 | ac_pt_THIN_RESTORE_CMD=$THIN_RESTORE_CMD | |
9997 | # Extract the first word of "thin_restore", so it can be a program name with args. | |
9998 | set dummy thin_restore; ac_word=$2 | |
6b2e4ec5 ZK |
9999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10000 | printf %s "checking for $ac_word... " >&6; } | |
10001 | if test ${ac_cv_path_ac_pt_THIN_RESTORE_CMD+y} | |
10002 | then : | |
10003 | printf %s "(cached) " >&6 | |
635df748 ZK |
10004 | else case e in #( |
10005 | e) case $ac_pt_THIN_RESTORE_CMD in | |
b3539907 ZK |
10006 | [\\/]* | ?:[\\/]*) |
10007 | ac_cv_path_ac_pt_THIN_RESTORE_CMD="$ac_pt_THIN_RESTORE_CMD" # Let the user override the test with a path. | |
10008 | ;; | |
10009 | *) | |
10010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 10011 | for as_dir in $PATH_SBIN |
b3539907 ZK |
10012 | do |
10013 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
10014 | case $as_dir in #((( |
10015 | '') as_dir=./ ;; | |
10016 | */) ;; | |
10017 | *) as_dir=$as_dir/ ;; | |
10018 | esac | |
b3539907 | 10019 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
10020 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
10021 | ac_cv_path_ac_pt_THIN_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext" | |
10022 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
b3539907 ZK |
10023 | break 2 |
10024 | fi | |
10025 | done | |
10026 | done | |
10027 | IFS=$as_save_IFS | |
10028 | ||
10029 | ;; | |
635df748 | 10030 | esac ;; |
b3539907 ZK |
10031 | esac |
10032 | fi | |
10033 | ac_pt_THIN_RESTORE_CMD=$ac_cv_path_ac_pt_THIN_RESTORE_CMD | |
10034 | if test -n "$ac_pt_THIN_RESTORE_CMD"; then | |
6b2e4ec5 ZK |
10035 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_RESTORE_CMD" >&5 |
10036 | printf "%s\n" "$ac_pt_THIN_RESTORE_CMD" >&6; } | |
b3539907 | 10037 | else |
6b2e4ec5 ZK |
10038 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10039 | printf "%s\n" "no" >&6; } | |
b3539907 ZK |
10040 | fi |
10041 | ||
10042 | if test "x$ac_pt_THIN_RESTORE_CMD" = x; then | |
10043 | THIN_RESTORE_CMD="" | |
10044 | else | |
10045 | case $cross_compiling:$ac_tool_warned in | |
10046 | yes:) | |
6b2e4ec5 ZK |
10047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
10048 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
b3539907 ZK |
10049 | ac_tool_warned=yes ;; |
10050 | esac | |
10051 | THIN_RESTORE_CMD=$ac_pt_THIN_RESTORE_CMD | |
10052 | fi | |
10053 | else | |
10054 | THIN_RESTORE_CMD="$ac_cv_path_THIN_RESTORE_CMD" | |
10055 | fi | |
10056 | ||
b681b774 ZK |
10057 | if test -z "$THIN_RESTORE_CMD" |
10058 | then : | |
10059 | ||
07cd341b ZK |
10060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_restore not found in path $PATH_SBIN\"" >&5 |
10061 | printf "%s\n" "$as_me: WARNING: \"thin_restore not found in path $PATH_SBIN\"" >&2;} | |
b681b774 ZK |
10062 | THIN_RESTORE_CMD="/usr/sbin/thin_restore" |
10063 | THIN_CONFIGURE_WARN="y" | |
10064 | ||
10065 | fi | |
10066 | ||
10067 | fi | |
f61cacad | 10068 | |
8b8b8ac1 ZK |
10069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $THIN_CHECK_CMD ($THIN_CHECK_VSN_MAJOR.$THIN_CHECK_VSN_MINOR) supports the needs-check flag" >&5 |
10070 | printf %s "checking whether $THIN_CHECK_CMD ($THIN_CHECK_VSN_MAJOR.$THIN_CHECK_VSN_MINOR) supports the needs-check flag... " >&6; } | |
6b2e4ec5 ZK |
10071 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_NEEDS_CHECK" >&5 |
10072 | printf "%s\n" "$THIN_CHECK_NEEDS_CHECK" >&6; } | |
b681b774 ZK |
10073 | if test "$THIN_CHECK_NEEDS_CHECK" = "yes" |
10074 | then : | |
10075 | ||
2e1192f6 | 10076 | |
6b2e4ec5 | 10077 | printf "%s\n" "#define THIN_CHECK_NEEDS_CHECK 1" >>confdefs.h |
2e1192f6 | 10078 | |
b681b774 ZK |
10079 | |
10080 | fi | |
10081 | ;; #( | |
10082 | *) : | |
10083 | ;; | |
e6e64748 | 10084 | esac |
2e1192f6 | 10085 | |
f61cacad | 10086 | |
6b2e4ec5 | 10087 | printf "%s\n" "#define THIN_CHECK_CMD \"$THIN_CHECK_CMD\"" >>confdefs.h |
f61cacad | 10088 | |
f61cacad ZK |
10089 | |
10090 | ||
6b2e4ec5 | 10091 | printf "%s\n" "#define THIN_DUMP_CMD \"$THIN_DUMP_CMD\"" >>confdefs.h |
22fc8098 ZK |
10092 | |
10093 | ||
10094 | ||
6b2e4ec5 | 10095 | printf "%s\n" "#define THIN_REPAIR_CMD \"$THIN_REPAIR_CMD\"" >>confdefs.h |
22fc8098 ZK |
10096 | |
10097 | ||
b3539907 | 10098 | |
6b2e4ec5 | 10099 | printf "%s\n" "#define THIN_RESTORE_CMD \"$THIN_RESTORE_CMD\"" >>confdefs.h |
b3539907 ZK |
10100 | |
10101 | ||
a0d64554 | 10102 | ################################################################################ |
6b2e4ec5 ZK |
10103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include cache" >&5 |
10104 | printf %s "checking whether to include cache... " >&6; } | |
a0d64554 PR |
10105 | |
10106 | # Check whether --with-cache was given. | |
6b2e4ec5 ZK |
10107 | if test ${with_cache+y} |
10108 | then : | |
a0d64554 | 10109 | withval=$with_cache; CACHE=$withval |
635df748 ZK |
10110 | else case e in #( |
10111 | e) CACHE="internal" ;; | |
10112 | esac | |
39cb8aa3 ZK |
10113 | fi |
10114 | ||
10115 | ||
10116 | # Check whether --with-cache-check was given. | |
6b2e4ec5 ZK |
10117 | if test ${with_cache_check+y} |
10118 | then : | |
39cb8aa3 | 10119 | withval=$with_cache_check; CACHE_CHECK_CMD=$withval |
635df748 ZK |
10120 | else case e in #( |
10121 | e) CACHE_CHECK_CMD="autodetect" ;; | |
10122 | esac | |
39cb8aa3 ZK |
10123 | fi |
10124 | ||
10125 | ||
10126 | # Check whether --with-cache-dump was given. | |
6b2e4ec5 ZK |
10127 | if test ${with_cache_dump+y} |
10128 | then : | |
39cb8aa3 | 10129 | withval=$with_cache_dump; CACHE_DUMP_CMD=$withval |
635df748 ZK |
10130 | else case e in #( |
10131 | e) CACHE_DUMP_CMD="autodetect" ;; | |
10132 | esac | |
39cb8aa3 ZK |
10133 | fi |
10134 | ||
10135 | ||
10136 | # Check whether --with-cache-repair was given. | |
6b2e4ec5 ZK |
10137 | if test ${with_cache_repair+y} |
10138 | then : | |
39cb8aa3 | 10139 | withval=$with_cache_repair; CACHE_REPAIR_CMD=$withval |
635df748 ZK |
10140 | else case e in #( |
10141 | e) CACHE_REPAIR_CMD="autodetect" ;; | |
10142 | esac | |
39cb8aa3 ZK |
10143 | fi |
10144 | ||
10145 | ||
10146 | # Check whether --with-cache-restore was given. | |
6b2e4ec5 ZK |
10147 | if test ${with_cache_restore+y} |
10148 | then : | |
39cb8aa3 | 10149 | withval=$with_cache_restore; CACHE_RESTORE_CMD=$withval |
635df748 ZK |
10150 | else case e in #( |
10151 | e) CACHE_RESTORE_CMD="autodetect" ;; | |
10152 | esac | |
a0d64554 PR |
10153 | fi |
10154 | ||
6b2e4ec5 ZK |
10155 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE" >&5 |
10156 | printf "%s\n" "$CACHE" >&6; } | |
a0d64554 | 10157 | |
b681b774 ZK |
10158 | case "$CACHE" in #( |
10159 | no|none|shared) : | |
10160 | ;; #( | |
10161 | internal) : | |
10162 | ||
10163 | ||
6b2e4ec5 | 10164 | printf "%s\n" "#define CACHE_INTERNAL 1" >>confdefs.h |
b681b774 ZK |
10165 | ;; #( |
10166 | *) : | |
10167 | as_fn_error $? "--with-cache parameter invalid" "$LINENO" 5 ;; | |
1b59f5a9 | 10168 | esac |
22fc8098 | 10169 | |
0ac20a8f | 10170 | # Check whether --enable-cache_check_needs_check was given. |
6b2e4ec5 ZK |
10171 | if test ${enable_cache_check_needs_check+y} |
10172 | then : | |
0ac20a8f | 10173 | enableval=$enable_cache_check_needs_check; CACHE_CHECK_NEEDS_CHECK=$enableval |
635df748 ZK |
10174 | else case e in #( |
10175 | e) CACHE_CHECK_NEEDS_CHECK="yes" ;; | |
10176 | esac | |
0ac20a8f ZK |
10177 | fi |
10178 | ||
10179 | ||
39cb8aa3 ZK |
10180 | # Test if necessary cache tools are available |
10181 | # if not - use plain defaults and warn user | |
b681b774 ZK |
10182 | case "$CACHE" in #( |
10183 | internal|shared) : | |
10184 | ||
39cb8aa3 | 10185 | # Empty means a config way to ignore cache checking |
b681b774 ZK |
10186 | if test "$CACHE_CHECK_CMD" = "autodetect" |
10187 | then : | |
10188 | ||
39cb8aa3 ZK |
10189 | if test -n "$ac_tool_prefix"; then |
10190 | # Extract the first word of "${ac_tool_prefix}cache_check", so it can be a program name with args. | |
10191 | set dummy ${ac_tool_prefix}cache_check; ac_word=$2 | |
6b2e4ec5 ZK |
10192 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10193 | printf %s "checking for $ac_word... " >&6; } | |
10194 | if test ${ac_cv_path_CACHE_CHECK_CMD+y} | |
10195 | then : | |
10196 | printf %s "(cached) " >&6 | |
635df748 ZK |
10197 | else case e in #( |
10198 | e) case $CACHE_CHECK_CMD in | |
39cb8aa3 ZK |
10199 | [\\/]* | ?:[\\/]*) |
10200 | ac_cv_path_CACHE_CHECK_CMD="$CACHE_CHECK_CMD" # Let the user override the test with a path. | |
10201 | ;; | |
10202 | *) | |
10203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 10204 | for as_dir in $PATH_SBIN |
39cb8aa3 ZK |
10205 | do |
10206 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
10207 | case $as_dir in #((( |
10208 | '') as_dir=./ ;; | |
10209 | */) ;; | |
10210 | *) as_dir=$as_dir/ ;; | |
10211 | esac | |
39cb8aa3 | 10212 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
10213 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
10214 | ac_cv_path_CACHE_CHECK_CMD="$as_dir$ac_word$ac_exec_ext" | |
10215 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
39cb8aa3 ZK |
10216 | break 2 |
10217 | fi | |
10218 | done | |
10219 | done | |
10220 | IFS=$as_save_IFS | |
10221 | ||
10222 | ;; | |
635df748 | 10223 | esac ;; |
39cb8aa3 ZK |
10224 | esac |
10225 | fi | |
10226 | CACHE_CHECK_CMD=$ac_cv_path_CACHE_CHECK_CMD | |
10227 | if test -n "$CACHE_CHECK_CMD"; then | |
6b2e4ec5 ZK |
10228 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_CHECK_CMD" >&5 |
10229 | printf "%s\n" "$CACHE_CHECK_CMD" >&6; } | |
39cb8aa3 | 10230 | else |
6b2e4ec5 ZK |
10231 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10232 | printf "%s\n" "no" >&6; } | |
39cb8aa3 ZK |
10233 | fi |
10234 | ||
10235 | ||
10236 | fi | |
10237 | if test -z "$ac_cv_path_CACHE_CHECK_CMD"; then | |
10238 | ac_pt_CACHE_CHECK_CMD=$CACHE_CHECK_CMD | |
10239 | # Extract the first word of "cache_check", so it can be a program name with args. | |
10240 | set dummy cache_check; ac_word=$2 | |
6b2e4ec5 ZK |
10241 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10242 | printf %s "checking for $ac_word... " >&6; } | |
10243 | if test ${ac_cv_path_ac_pt_CACHE_CHECK_CMD+y} | |
10244 | then : | |
10245 | printf %s "(cached) " >&6 | |
635df748 ZK |
10246 | else case e in #( |
10247 | e) case $ac_pt_CACHE_CHECK_CMD in | |
39cb8aa3 ZK |
10248 | [\\/]* | ?:[\\/]*) |
10249 | ac_cv_path_ac_pt_CACHE_CHECK_CMD="$ac_pt_CACHE_CHECK_CMD" # Let the user override the test with a path. | |
10250 | ;; | |
10251 | *) | |
10252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 10253 | for as_dir in $PATH_SBIN |
39cb8aa3 ZK |
10254 | do |
10255 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
10256 | case $as_dir in #((( |
10257 | '') as_dir=./ ;; | |
10258 | */) ;; | |
10259 | *) as_dir=$as_dir/ ;; | |
10260 | esac | |
39cb8aa3 | 10261 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
10262 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
10263 | ac_cv_path_ac_pt_CACHE_CHECK_CMD="$as_dir$ac_word$ac_exec_ext" | |
10264 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
39cb8aa3 ZK |
10265 | break 2 |
10266 | fi | |
10267 | done | |
10268 | done | |
10269 | IFS=$as_save_IFS | |
10270 | ||
10271 | ;; | |
635df748 | 10272 | esac ;; |
39cb8aa3 ZK |
10273 | esac |
10274 | fi | |
10275 | ac_pt_CACHE_CHECK_CMD=$ac_cv_path_ac_pt_CACHE_CHECK_CMD | |
10276 | if test -n "$ac_pt_CACHE_CHECK_CMD"; then | |
6b2e4ec5 ZK |
10277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_CHECK_CMD" >&5 |
10278 | printf "%s\n" "$ac_pt_CACHE_CHECK_CMD" >&6; } | |
39cb8aa3 | 10279 | else |
6b2e4ec5 ZK |
10280 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10281 | printf "%s\n" "no" >&6; } | |
39cb8aa3 ZK |
10282 | fi |
10283 | ||
10284 | if test "x$ac_pt_CACHE_CHECK_CMD" = x; then | |
10285 | CACHE_CHECK_CMD="" | |
10286 | else | |
10287 | case $cross_compiling:$ac_tool_warned in | |
10288 | yes:) | |
6b2e4ec5 ZK |
10289 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
10290 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
39cb8aa3 ZK |
10291 | ac_tool_warned=yes ;; |
10292 | esac | |
10293 | CACHE_CHECK_CMD=$ac_pt_CACHE_CHECK_CMD | |
10294 | fi | |
10295 | else | |
10296 | CACHE_CHECK_CMD="$ac_cv_path_CACHE_CHECK_CMD" | |
10297 | fi | |
10298 | ||
b681b774 ZK |
10299 | if test -z "$CACHE_CHECK_CMD" |
10300 | then : | |
10301 | ||
07cd341b ZK |
10302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache_check not found in path $PATH_SBIN" >&5 |
10303 | printf "%s\n" "$as_me: WARNING: cache_check not found in path $PATH_SBIN" >&2;} | |
b681b774 ZK |
10304 | CACHE_CHECK_CMD="/usr/sbin/cache_check" |
10305 | CACHE_CONFIGURE_WARN="y" | |
10306 | ||
10307 | fi | |
10308 | ||
10309 | fi | |
10310 | if test "$CACHE_CHECK_NEEDS_CHECK" = "yes" && test "$CACHE_CONFIGURE_WARN" != "y" | |
10311 | then : | |
10312 | ||
8b8b8ac1 | 10313 | "$CACHE_CHECK_CMD" -V 2>/dev/null >conftest.tmp |
664a9f48 | 10314 | read -r CACHE_CHECK_VSN < conftest.tmp |
5ce33492 | 10315 | IFS=.- read -r CACHE_CHECK_VSN_MAJOR CACHE_CHECK_VSN_MINOR CACHE_CHECK_VSN_PATCH LEFTOVER < conftest.tmp |
664a9f48 ZK |
10316 | rm -f conftest.tmp |
10317 | ||
10318 | # Require version >= 0.5.4 for --clear-needs-check-flag | |
8b8b8ac1 | 10319 | CACHE_CHECK_VSN_MAJOR=${CACHE_CHECK_VSN_MAJOR##* } |
664a9f48 ZK |
10320 | if test -z "$CACHE_CHECK_VSN_MAJOR" \ |
10321 | || test -z "$CACHE_CHECK_VSN_MINOR" \ | |
b681b774 ZK |
10322 | || test -z "$CACHE_CHECK_VSN_PATCH" |
10323 | then : | |
10324 | ||
6b2e4ec5 ZK |
10325 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Bad version \"$CACHE_CHECK_VSN\" found" >&5 |
10326 | printf "%s\n" "$as_me: WARNING: $CACHE_CHECK_CMD: Bad version \"$CACHE_CHECK_VSN\" found" >&2;} | |
b681b774 ZK |
10327 | CACHE_CHECK_VERSION_WARN="y" |
10328 | CACHE_CHECK_NEEDS_CHECK="no" | |
10329 | ||
10330 | elif test "$CACHE_CHECK_VSN_MAJOR" -eq 0 | |
10331 | then : | |
10332 | ||
664a9f48 | 10333 | if test "$CACHE_CHECK_VSN_MINOR" -lt 5 \ |
b681b774 ZK |
10334 | || ( test "$CACHE_CHECK_VSN_MINOR" -eq 5 && test "$CACHE_CHECK_VSN_PATCH" -lt 4 ) |
10335 | then : | |
10336 | ||
6b2e4ec5 ZK |
10337 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" found" >&5 |
10338 | printf "%s\n" "$as_me: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" found" >&2;} | |
b681b774 ZK |
10339 | CACHE_CHECK_VERSION_WARN="y" |
10340 | CACHE_CHECK_NEEDS_CHECK="no" | |
10341 | ||
10342 | fi | |
10343 | if test "$CACHE_CHECK_VSN_MINOR" -lt 7 | |
10344 | then : | |
10345 | ||
6b2e4ec5 ZK |
10346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" does not support new cache format V2" >&5 |
10347 | printf "%s\n" "$as_me: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" does not support new cache format V2" >&2;} | |
358eee15 | 10348 | CACHE_CHECK_VERSION_WARN=y |
b681b774 ZK |
10349 | |
10350 | fi | |
10351 | ||
10352 | fi | |
10353 | ||
10354 | fi | |
39cb8aa3 | 10355 | # Empty means a config way to ignore cache dumping |
b681b774 ZK |
10356 | if test "$CACHE_DUMP_CMD" = "autodetect" |
10357 | then : | |
10358 | ||
39cb8aa3 ZK |
10359 | if test -n "$ac_tool_prefix"; then |
10360 | # Extract the first word of "${ac_tool_prefix}cache_dump", so it can be a program name with args. | |
10361 | set dummy ${ac_tool_prefix}cache_dump; ac_word=$2 | |
6b2e4ec5 ZK |
10362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10363 | printf %s "checking for $ac_word... " >&6; } | |
10364 | if test ${ac_cv_path_CACHE_DUMP_CMD+y} | |
10365 | then : | |
10366 | printf %s "(cached) " >&6 | |
635df748 ZK |
10367 | else case e in #( |
10368 | e) case $CACHE_DUMP_CMD in | |
39cb8aa3 ZK |
10369 | [\\/]* | ?:[\\/]*) |
10370 | ac_cv_path_CACHE_DUMP_CMD="$CACHE_DUMP_CMD" # Let the user override the test with a path. | |
10371 | ;; | |
10372 | *) | |
10373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 10374 | for as_dir in $PATH_SBIN |
39cb8aa3 ZK |
10375 | do |
10376 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
10377 | case $as_dir in #((( |
10378 | '') as_dir=./ ;; | |
10379 | */) ;; | |
10380 | *) as_dir=$as_dir/ ;; | |
10381 | esac | |
39cb8aa3 | 10382 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
10383 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
10384 | ac_cv_path_CACHE_DUMP_CMD="$as_dir$ac_word$ac_exec_ext" | |
10385 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
39cb8aa3 ZK |
10386 | break 2 |
10387 | fi | |
10388 | done | |
10389 | done | |
10390 | IFS=$as_save_IFS | |
10391 | ||
10392 | ;; | |
635df748 | 10393 | esac ;; |
39cb8aa3 ZK |
10394 | esac |
10395 | fi | |
10396 | CACHE_DUMP_CMD=$ac_cv_path_CACHE_DUMP_CMD | |
10397 | if test -n "$CACHE_DUMP_CMD"; then | |
6b2e4ec5 ZK |
10398 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_DUMP_CMD" >&5 |
10399 | printf "%s\n" "$CACHE_DUMP_CMD" >&6; } | |
39cb8aa3 | 10400 | else |
6b2e4ec5 ZK |
10401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10402 | printf "%s\n" "no" >&6; } | |
39cb8aa3 ZK |
10403 | fi |
10404 | ||
10405 | ||
10406 | fi | |
10407 | if test -z "$ac_cv_path_CACHE_DUMP_CMD"; then | |
10408 | ac_pt_CACHE_DUMP_CMD=$CACHE_DUMP_CMD | |
10409 | # Extract the first word of "cache_dump", so it can be a program name with args. | |
10410 | set dummy cache_dump; ac_word=$2 | |
6b2e4ec5 ZK |
10411 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10412 | printf %s "checking for $ac_word... " >&6; } | |
10413 | if test ${ac_cv_path_ac_pt_CACHE_DUMP_CMD+y} | |
10414 | then : | |
10415 | printf %s "(cached) " >&6 | |
635df748 ZK |
10416 | else case e in #( |
10417 | e) case $ac_pt_CACHE_DUMP_CMD in | |
39cb8aa3 ZK |
10418 | [\\/]* | ?:[\\/]*) |
10419 | ac_cv_path_ac_pt_CACHE_DUMP_CMD="$ac_pt_CACHE_DUMP_CMD" # Let the user override the test with a path. | |
10420 | ;; | |
10421 | *) | |
10422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 10423 | for as_dir in $PATH_SBIN |
39cb8aa3 ZK |
10424 | do |
10425 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
10426 | case $as_dir in #((( |
10427 | '') as_dir=./ ;; | |
10428 | */) ;; | |
10429 | *) as_dir=$as_dir/ ;; | |
10430 | esac | |
39cb8aa3 | 10431 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
10432 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
10433 | ac_cv_path_ac_pt_CACHE_DUMP_CMD="$as_dir$ac_word$ac_exec_ext" | |
10434 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
39cb8aa3 ZK |
10435 | break 2 |
10436 | fi | |
10437 | done | |
10438 | done | |
10439 | IFS=$as_save_IFS | |
10440 | ||
10441 | ;; | |
635df748 | 10442 | esac ;; |
39cb8aa3 ZK |
10443 | esac |
10444 | fi | |
10445 | ac_pt_CACHE_DUMP_CMD=$ac_cv_path_ac_pt_CACHE_DUMP_CMD | |
10446 | if test -n "$ac_pt_CACHE_DUMP_CMD"; then | |
6b2e4ec5 ZK |
10447 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_DUMP_CMD" >&5 |
10448 | printf "%s\n" "$ac_pt_CACHE_DUMP_CMD" >&6; } | |
39cb8aa3 | 10449 | else |
6b2e4ec5 ZK |
10450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10451 | printf "%s\n" "no" >&6; } | |
39cb8aa3 ZK |
10452 | fi |
10453 | ||
10454 | if test "x$ac_pt_CACHE_DUMP_CMD" = x; then | |
10455 | CACHE_DUMP_CMD="" | |
10456 | else | |
10457 | case $cross_compiling:$ac_tool_warned in | |
10458 | yes:) | |
6b2e4ec5 ZK |
10459 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
10460 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
39cb8aa3 ZK |
10461 | ac_tool_warned=yes ;; |
10462 | esac | |
10463 | CACHE_DUMP_CMD=$ac_pt_CACHE_DUMP_CMD | |
10464 | fi | |
10465 | else | |
10466 | CACHE_DUMP_CMD="$ac_cv_path_CACHE_DUMP_CMD" | |
10467 | fi | |
10468 | ||
b681b774 ZK |
10469 | if test -z "$CACHE_DUMP_CMD" |
10470 | then : | |
10471 | ||
07cd341b ZK |
10472 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_dump not found in path $PATH_SBIN\"" >&5 |
10473 | printf "%s\n" "$as_me: WARNING: \"cache_dump not found in path $PATH_SBIN\"" >&2;} | |
b681b774 ZK |
10474 | CACHE_DUMP_CMD="/usr/sbin/cache_dump" |
10475 | CACHE_CONFIGURE_WARN="y" | |
10476 | ||
10477 | fi | |
10478 | ||
10479 | fi | |
39cb8aa3 | 10480 | # Empty means a config way to ignore cache repairing |
b681b774 ZK |
10481 | if test "$CACHE_REPAIR_CMD" = "autodetect" |
10482 | then : | |
10483 | ||
39cb8aa3 ZK |
10484 | if test -n "$ac_tool_prefix"; then |
10485 | # Extract the first word of "${ac_tool_prefix}cache_repair", so it can be a program name with args. | |
10486 | set dummy ${ac_tool_prefix}cache_repair; ac_word=$2 | |
6b2e4ec5 ZK |
10487 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10488 | printf %s "checking for $ac_word... " >&6; } | |
10489 | if test ${ac_cv_path_CACHE_REPAIR_CMD+y} | |
10490 | then : | |
10491 | printf %s "(cached) " >&6 | |
635df748 ZK |
10492 | else case e in #( |
10493 | e) case $CACHE_REPAIR_CMD in | |
39cb8aa3 ZK |
10494 | [\\/]* | ?:[\\/]*) |
10495 | ac_cv_path_CACHE_REPAIR_CMD="$CACHE_REPAIR_CMD" # Let the user override the test with a path. | |
10496 | ;; | |
10497 | *) | |
10498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 10499 | for as_dir in $PATH_SBIN |
39cb8aa3 ZK |
10500 | do |
10501 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
10502 | case $as_dir in #((( |
10503 | '') as_dir=./ ;; | |
10504 | */) ;; | |
10505 | *) as_dir=$as_dir/ ;; | |
10506 | esac | |
39cb8aa3 | 10507 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
10508 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
10509 | ac_cv_path_CACHE_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext" | |
10510 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
39cb8aa3 ZK |
10511 | break 2 |
10512 | fi | |
10513 | done | |
10514 | done | |
10515 | IFS=$as_save_IFS | |
10516 | ||
10517 | ;; | |
635df748 | 10518 | esac ;; |
39cb8aa3 ZK |
10519 | esac |
10520 | fi | |
10521 | CACHE_REPAIR_CMD=$ac_cv_path_CACHE_REPAIR_CMD | |
10522 | if test -n "$CACHE_REPAIR_CMD"; then | |
6b2e4ec5 ZK |
10523 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_REPAIR_CMD" >&5 |
10524 | printf "%s\n" "$CACHE_REPAIR_CMD" >&6; } | |
39cb8aa3 | 10525 | else |
6b2e4ec5 ZK |
10526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10527 | printf "%s\n" "no" >&6; } | |
39cb8aa3 ZK |
10528 | fi |
10529 | ||
10530 | ||
10531 | fi | |
10532 | if test -z "$ac_cv_path_CACHE_REPAIR_CMD"; then | |
10533 | ac_pt_CACHE_REPAIR_CMD=$CACHE_REPAIR_CMD | |
10534 | # Extract the first word of "cache_repair", so it can be a program name with args. | |
10535 | set dummy cache_repair; ac_word=$2 | |
6b2e4ec5 ZK |
10536 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10537 | printf %s "checking for $ac_word... " >&6; } | |
10538 | if test ${ac_cv_path_ac_pt_CACHE_REPAIR_CMD+y} | |
10539 | then : | |
10540 | printf %s "(cached) " >&6 | |
635df748 ZK |
10541 | else case e in #( |
10542 | e) case $ac_pt_CACHE_REPAIR_CMD in | |
39cb8aa3 ZK |
10543 | [\\/]* | ?:[\\/]*) |
10544 | ac_cv_path_ac_pt_CACHE_REPAIR_CMD="$ac_pt_CACHE_REPAIR_CMD" # Let the user override the test with a path. | |
10545 | ;; | |
10546 | *) | |
10547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 10548 | for as_dir in $PATH_SBIN |
39cb8aa3 ZK |
10549 | do |
10550 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
10551 | case $as_dir in #((( |
10552 | '') as_dir=./ ;; | |
10553 | */) ;; | |
10554 | *) as_dir=$as_dir/ ;; | |
10555 | esac | |
39cb8aa3 | 10556 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
10557 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
10558 | ac_cv_path_ac_pt_CACHE_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext" | |
10559 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
39cb8aa3 ZK |
10560 | break 2 |
10561 | fi | |
10562 | done | |
10563 | done | |
10564 | IFS=$as_save_IFS | |
10565 | ||
10566 | ;; | |
635df748 | 10567 | esac ;; |
39cb8aa3 ZK |
10568 | esac |
10569 | fi | |
10570 | ac_pt_CACHE_REPAIR_CMD=$ac_cv_path_ac_pt_CACHE_REPAIR_CMD | |
10571 | if test -n "$ac_pt_CACHE_REPAIR_CMD"; then | |
6b2e4ec5 ZK |
10572 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_REPAIR_CMD" >&5 |
10573 | printf "%s\n" "$ac_pt_CACHE_REPAIR_CMD" >&6; } | |
39cb8aa3 | 10574 | else |
6b2e4ec5 ZK |
10575 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10576 | printf "%s\n" "no" >&6; } | |
39cb8aa3 ZK |
10577 | fi |
10578 | ||
10579 | if test "x$ac_pt_CACHE_REPAIR_CMD" = x; then | |
10580 | CACHE_REPAIR_CMD="" | |
10581 | else | |
10582 | case $cross_compiling:$ac_tool_warned in | |
10583 | yes:) | |
6b2e4ec5 ZK |
10584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
10585 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
39cb8aa3 ZK |
10586 | ac_tool_warned=yes ;; |
10587 | esac | |
10588 | CACHE_REPAIR_CMD=$ac_pt_CACHE_REPAIR_CMD | |
10589 | fi | |
10590 | else | |
10591 | CACHE_REPAIR_CMD="$ac_cv_path_CACHE_REPAIR_CMD" | |
10592 | fi | |
10593 | ||
b681b774 ZK |
10594 | if test -z "$CACHE_REPAIR_CMD" |
10595 | then : | |
10596 | ||
07cd341b ZK |
10597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_repair not found in path $PATH_SBIN\"" >&5 |
10598 | printf "%s\n" "$as_me: WARNING: \"cache_repair not found in path $PATH_SBIN\"" >&2;} | |
b681b774 ZK |
10599 | CACHE_REPAIR_CMD="/usr/sbin/cache_repair" |
10600 | CACHE_CONFIGURE_WARN="y" | |
10601 | ||
10602 | fi | |
10603 | ||
10604 | fi | |
39cb8aa3 | 10605 | # Empty means a config way to ignore cache restoring |
b681b774 ZK |
10606 | if test "$CACHE_RESTORE_CMD" = "autodetect" |
10607 | then : | |
10608 | ||
39cb8aa3 ZK |
10609 | if test -n "$ac_tool_prefix"; then |
10610 | # Extract the first word of "${ac_tool_prefix}cache_restore", so it can be a program name with args. | |
10611 | set dummy ${ac_tool_prefix}cache_restore; ac_word=$2 | |
6b2e4ec5 ZK |
10612 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10613 | printf %s "checking for $ac_word... " >&6; } | |
10614 | if test ${ac_cv_path_CACHE_RESTORE_CMD+y} | |
10615 | then : | |
10616 | printf %s "(cached) " >&6 | |
635df748 ZK |
10617 | else case e in #( |
10618 | e) case $CACHE_RESTORE_CMD in | |
39cb8aa3 ZK |
10619 | [\\/]* | ?:[\\/]*) |
10620 | ac_cv_path_CACHE_RESTORE_CMD="$CACHE_RESTORE_CMD" # Let the user override the test with a path. | |
10621 | ;; | |
10622 | *) | |
10623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 10624 | for as_dir in $PATH_SBIN |
39cb8aa3 ZK |
10625 | do |
10626 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
10627 | case $as_dir in #((( |
10628 | '') as_dir=./ ;; | |
10629 | */) ;; | |
10630 | *) as_dir=$as_dir/ ;; | |
10631 | esac | |
39cb8aa3 | 10632 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
10633 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
10634 | ac_cv_path_CACHE_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext" | |
10635 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
39cb8aa3 ZK |
10636 | break 2 |
10637 | fi | |
10638 | done | |
10639 | done | |
10640 | IFS=$as_save_IFS | |
10641 | ||
10642 | ;; | |
635df748 | 10643 | esac ;; |
39cb8aa3 ZK |
10644 | esac |
10645 | fi | |
10646 | CACHE_RESTORE_CMD=$ac_cv_path_CACHE_RESTORE_CMD | |
10647 | if test -n "$CACHE_RESTORE_CMD"; then | |
6b2e4ec5 ZK |
10648 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_RESTORE_CMD" >&5 |
10649 | printf "%s\n" "$CACHE_RESTORE_CMD" >&6; } | |
39cb8aa3 | 10650 | else |
6b2e4ec5 ZK |
10651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10652 | printf "%s\n" "no" >&6; } | |
39cb8aa3 ZK |
10653 | fi |
10654 | ||
10655 | ||
10656 | fi | |
10657 | if test -z "$ac_cv_path_CACHE_RESTORE_CMD"; then | |
10658 | ac_pt_CACHE_RESTORE_CMD=$CACHE_RESTORE_CMD | |
10659 | # Extract the first word of "cache_restore", so it can be a program name with args. | |
10660 | set dummy cache_restore; ac_word=$2 | |
6b2e4ec5 ZK |
10661 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10662 | printf %s "checking for $ac_word... " >&6; } | |
10663 | if test ${ac_cv_path_ac_pt_CACHE_RESTORE_CMD+y} | |
10664 | then : | |
10665 | printf %s "(cached) " >&6 | |
635df748 ZK |
10666 | else case e in #( |
10667 | e) case $ac_pt_CACHE_RESTORE_CMD in | |
39cb8aa3 ZK |
10668 | [\\/]* | ?:[\\/]*) |
10669 | ac_cv_path_ac_pt_CACHE_RESTORE_CMD="$ac_pt_CACHE_RESTORE_CMD" # Let the user override the test with a path. | |
10670 | ;; | |
10671 | *) | |
10672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 10673 | for as_dir in $PATH_SBIN |
39cb8aa3 ZK |
10674 | do |
10675 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
10676 | case $as_dir in #((( |
10677 | '') as_dir=./ ;; | |
10678 | */) ;; | |
10679 | *) as_dir=$as_dir/ ;; | |
10680 | esac | |
39cb8aa3 | 10681 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
10682 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
10683 | ac_cv_path_ac_pt_CACHE_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext" | |
10684 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
39cb8aa3 ZK |
10685 | break 2 |
10686 | fi | |
10687 | done | |
10688 | done | |
10689 | IFS=$as_save_IFS | |
10690 | ||
10691 | ;; | |
635df748 | 10692 | esac ;; |
39cb8aa3 ZK |
10693 | esac |
10694 | fi | |
10695 | ac_pt_CACHE_RESTORE_CMD=$ac_cv_path_ac_pt_CACHE_RESTORE_CMD | |
10696 | if test -n "$ac_pt_CACHE_RESTORE_CMD"; then | |
6b2e4ec5 ZK |
10697 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_RESTORE_CMD" >&5 |
10698 | printf "%s\n" "$ac_pt_CACHE_RESTORE_CMD" >&6; } | |
39cb8aa3 | 10699 | else |
6b2e4ec5 ZK |
10700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10701 | printf "%s\n" "no" >&6; } | |
39cb8aa3 ZK |
10702 | fi |
10703 | ||
10704 | if test "x$ac_pt_CACHE_RESTORE_CMD" = x; then | |
10705 | CACHE_RESTORE_CMD="" | |
10706 | else | |
10707 | case $cross_compiling:$ac_tool_warned in | |
10708 | yes:) | |
6b2e4ec5 ZK |
10709 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
10710 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
39cb8aa3 ZK |
10711 | ac_tool_warned=yes ;; |
10712 | esac | |
10713 | CACHE_RESTORE_CMD=$ac_pt_CACHE_RESTORE_CMD | |
10714 | fi | |
10715 | else | |
10716 | CACHE_RESTORE_CMD="$ac_cv_path_CACHE_RESTORE_CMD" | |
10717 | fi | |
10718 | ||
b681b774 ZK |
10719 | if test -z "$CACHE_RESTORE_CMD" |
10720 | then : | |
10721 | ||
07cd341b ZK |
10722 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_restore not found in path $PATH_SBIN\"" >&5 |
10723 | printf "%s\n" "$as_me: WARNING: \"cache_restore not found in path $PATH_SBIN\"" >&2;} | |
b681b774 ZK |
10724 | CACHE_RESTORE_CMD="/usr/sbin/cache_restore" |
10725 | CACHE_CONFIGURE_WARN="y" | |
10726 | ||
10727 | fi | |
10728 | ||
10729 | fi | |
0ac20a8f | 10730 | |
8b8b8ac1 ZK |
10731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CACHE_CHECK_CMD ($CACHE_CHECK_VSN_MAJOR.$CACHE_CHECK_VSN_MINOR.$CACHE_CHECK_VSN_PATCH) supports the needs-check flag" >&5 |
10732 | printf %s "checking whether $CACHE_CHECK_CMD ($CACHE_CHECK_VSN_MAJOR.$CACHE_CHECK_VSN_MINOR.$CACHE_CHECK_VSN_PATCH) supports the needs-check flag... " >&6; } | |
6b2e4ec5 ZK |
10733 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_CHECK_NEEDS_CHECK" >&5 |
10734 | printf "%s\n" "$CACHE_CHECK_NEEDS_CHECK" >&6; } | |
b681b774 ZK |
10735 | if test "$CACHE_CHECK_NEEDS_CHECK" = "yes" |
10736 | then : | |
10737 | ||
0ac20a8f | 10738 | |
6b2e4ec5 | 10739 | printf "%s\n" "#define CACHE_CHECK_NEEDS_CHECK 1" >>confdefs.h |
0ac20a8f | 10740 | |
b681b774 ZK |
10741 | |
10742 | fi | |
10743 | ;; #( | |
10744 | *) : | |
10745 | ;; | |
39cb8aa3 ZK |
10746 | esac |
10747 | ||
10748 | ||
6b2e4ec5 | 10749 | printf "%s\n" "#define CACHE_CHECK_CMD \"$CACHE_CHECK_CMD\"" >>confdefs.h |
39cb8aa3 ZK |
10750 | |
10751 | ||
10752 | ||
6b2e4ec5 | 10753 | printf "%s\n" "#define CACHE_DUMP_CMD \"$CACHE_DUMP_CMD\"" >>confdefs.h |
39cb8aa3 ZK |
10754 | |
10755 | ||
10756 | ||
6b2e4ec5 | 10757 | printf "%s\n" "#define CACHE_REPAIR_CMD \"$CACHE_REPAIR_CMD\"" >>confdefs.h |
39cb8aa3 ZK |
10758 | |
10759 | ||
10760 | ||
6b2e4ec5 | 10761 | printf "%s\n" "#define CACHE_RESTORE_CMD \"$CACHE_RESTORE_CMD\"" >>confdefs.h |
39cb8aa3 ZK |
10762 | |
10763 | ||
4a90b0c4 | 10764 | ################################################################################ |
6b2e4ec5 ZK |
10765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include vdo" >&5 |
10766 | printf %s "checking whether to include vdo... " >&6; } | |
4a90b0c4 ZK |
10767 | |
10768 | # Check whether --with-vdo was given. | |
6b2e4ec5 ZK |
10769 | if test ${with_vdo+y} |
10770 | then : | |
4a90b0c4 | 10771 | withval=$with_vdo; VDO=$withval |
635df748 ZK |
10772 | else case e in #( |
10773 | e) VDO="internal" ;; | |
10774 | esac | |
4a90b0c4 ZK |
10775 | fi |
10776 | ||
10777 | ||
6b2e4ec5 ZK |
10778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VDO" >&5 |
10779 | printf "%s\n" "$VDO" >&6; } | |
4a90b0c4 ZK |
10780 | |
10781 | ||
10782 | # Check whether --with-vdo-format was given. | |
6b2e4ec5 ZK |
10783 | if test ${with_vdo_format+y} |
10784 | then : | |
4a90b0c4 | 10785 | withval=$with_vdo_format; VDO_FORMAT_CMD=$withval |
635df748 ZK |
10786 | else case e in #( |
10787 | e) VDO_FORMAT_CMD="autodetect" ;; | |
10788 | esac | |
4a90b0c4 ZK |
10789 | fi |
10790 | ||
b681b774 ZK |
10791 | case "$VDO" in #( |
10792 | no|none) : | |
10793 | ;; #( | |
10794 | internal) : | |
10795 | ||
4a90b0c4 | 10796 | |
6b2e4ec5 | 10797 | printf "%s\n" "#define VDO_INTERNAL 1" >>confdefs.h |
4a90b0c4 | 10798 | |
b681b774 ZK |
10799 | if test "$VDO_FORMAT_CMD" = "autodetect" |
10800 | then : | |
10801 | ||
10802 | if test -n "$ac_tool_prefix"; then | |
4a90b0c4 ZK |
10803 | # Extract the first word of "${ac_tool_prefix}vdoformat", so it can be a program name with args. |
10804 | set dummy ${ac_tool_prefix}vdoformat; ac_word=$2 | |
6b2e4ec5 ZK |
10805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10806 | printf %s "checking for $ac_word... " >&6; } | |
10807 | if test ${ac_cv_path_VDO_FORMAT_CMD+y} | |
10808 | then : | |
10809 | printf %s "(cached) " >&6 | |
635df748 ZK |
10810 | else case e in #( |
10811 | e) case $VDO_FORMAT_CMD in | |
4a90b0c4 ZK |
10812 | [\\/]* | ?:[\\/]*) |
10813 | ac_cv_path_VDO_FORMAT_CMD="$VDO_FORMAT_CMD" # Let the user override the test with a path. | |
10814 | ;; | |
10815 | *) | |
10816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10817 | for as_dir in $PATH | |
10818 | do | |
10819 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
10820 | case $as_dir in #((( |
10821 | '') as_dir=./ ;; | |
10822 | */) ;; | |
10823 | *) as_dir=$as_dir/ ;; | |
10824 | esac | |
4a90b0c4 | 10825 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
10826 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
10827 | ac_cv_path_VDO_FORMAT_CMD="$as_dir$ac_word$ac_exec_ext" | |
10828 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4a90b0c4 ZK |
10829 | break 2 |
10830 | fi | |
10831 | done | |
10832 | done | |
10833 | IFS=$as_save_IFS | |
10834 | ||
10835 | ;; | |
635df748 | 10836 | esac ;; |
4a90b0c4 ZK |
10837 | esac |
10838 | fi | |
10839 | VDO_FORMAT_CMD=$ac_cv_path_VDO_FORMAT_CMD | |
10840 | if test -n "$VDO_FORMAT_CMD"; then | |
6b2e4ec5 ZK |
10841 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VDO_FORMAT_CMD" >&5 |
10842 | printf "%s\n" "$VDO_FORMAT_CMD" >&6; } | |
4a90b0c4 | 10843 | else |
6b2e4ec5 ZK |
10844 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10845 | printf "%s\n" "no" >&6; } | |
4a90b0c4 ZK |
10846 | fi |
10847 | ||
10848 | ||
10849 | fi | |
10850 | if test -z "$ac_cv_path_VDO_FORMAT_CMD"; then | |
10851 | ac_pt_VDO_FORMAT_CMD=$VDO_FORMAT_CMD | |
10852 | # Extract the first word of "vdoformat", so it can be a program name with args. | |
10853 | set dummy vdoformat; ac_word=$2 | |
6b2e4ec5 ZK |
10854 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10855 | printf %s "checking for $ac_word... " >&6; } | |
10856 | if test ${ac_cv_path_ac_pt_VDO_FORMAT_CMD+y} | |
10857 | then : | |
10858 | printf %s "(cached) " >&6 | |
635df748 ZK |
10859 | else case e in #( |
10860 | e) case $ac_pt_VDO_FORMAT_CMD in | |
4a90b0c4 ZK |
10861 | [\\/]* | ?:[\\/]*) |
10862 | ac_cv_path_ac_pt_VDO_FORMAT_CMD="$ac_pt_VDO_FORMAT_CMD" # Let the user override the test with a path. | |
10863 | ;; | |
10864 | *) | |
10865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10866 | for as_dir in $PATH | |
10867 | do | |
10868 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
10869 | case $as_dir in #((( |
10870 | '') as_dir=./ ;; | |
10871 | */) ;; | |
10872 | *) as_dir=$as_dir/ ;; | |
10873 | esac | |
4a90b0c4 | 10874 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
10875 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
10876 | ac_cv_path_ac_pt_VDO_FORMAT_CMD="$as_dir$ac_word$ac_exec_ext" | |
10877 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4a90b0c4 ZK |
10878 | break 2 |
10879 | fi | |
10880 | done | |
10881 | done | |
10882 | IFS=$as_save_IFS | |
10883 | ||
10884 | ;; | |
635df748 | 10885 | esac ;; |
4a90b0c4 ZK |
10886 | esac |
10887 | fi | |
10888 | ac_pt_VDO_FORMAT_CMD=$ac_cv_path_ac_pt_VDO_FORMAT_CMD | |
10889 | if test -n "$ac_pt_VDO_FORMAT_CMD"; then | |
6b2e4ec5 ZK |
10890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_VDO_FORMAT_CMD" >&5 |
10891 | printf "%s\n" "$ac_pt_VDO_FORMAT_CMD" >&6; } | |
4a90b0c4 | 10892 | else |
6b2e4ec5 ZK |
10893 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10894 | printf "%s\n" "no" >&6; } | |
4a90b0c4 ZK |
10895 | fi |
10896 | ||
10897 | if test "x$ac_pt_VDO_FORMAT_CMD" = x; then | |
10898 | VDO_FORMAT_CMD="" | |
10899 | else | |
10900 | case $cross_compiling:$ac_tool_warned in | |
10901 | yes:) | |
6b2e4ec5 ZK |
10902 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
10903 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4a90b0c4 ZK |
10904 | ac_tool_warned=yes ;; |
10905 | esac | |
10906 | VDO_FORMAT_CMD=$ac_pt_VDO_FORMAT_CMD | |
10907 | fi | |
10908 | else | |
10909 | VDO_FORMAT_CMD="$ac_cv_path_VDO_FORMAT_CMD" | |
10910 | fi | |
10911 | ||
b681b774 ZK |
10912 | if test -z "$VDO_FORMAT_CMD" |
10913 | then : | |
10914 | ||
10915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: vdoformat not found in path $PATH" >&5 | |
6b2e4ec5 | 10916 | printf "%s\n" "$as_me: WARNING: vdoformat not found in path $PATH" >&2;} |
b681b774 ZK |
10917 | VDO_FORMAT_CMD="/usr/bin/vdoformat" |
10918 | VDO_CONFIGURE_WARN=y | |
10919 | ||
10920 | fi | |
10921 | ||
10922 | fi ;; #( | |
10923 | *) : | |
10924 | as_fn_error $? "--with-vdo parameter invalid" "$LINENO" 5 ;; | |
4a90b0c4 ZK |
10925 | esac |
10926 | ||
10927 | ||
6b2e4ec5 | 10928 | printf "%s\n" "#define VDO_FORMAT_CMD \"$VDO_FORMAT_CMD\"" >>confdefs.h |
4a90b0c4 ZK |
10929 | |
10930 | # | |
10931 | # Do we need to use the API?? | |
418fb5a3 | 10932 | # Do we want to link lvm2 with a big library for VDO formatting ? |
4a90b0c4 ZK |
10933 | # |
10934 | #AC_ARG_WITH(vdo-include, | |
b73e1cd4 | 10935 | # AS_HELP_STRING([--with-vdo-include=PATH], |
4a90b0c4 ZK |
10936 | # [vdo support: Path to utils headers: [/usr/include/vdo/utils]]), |
10937 | # VDO_INCLUDE=$withval, VDO_INCLUDE="/usr/include/vdo/utils") | |
b681b774 | 10938 | #AC_MSG_RESULT([$VDO_INCLUDE]) |
4a90b0c4 ZK |
10939 | # |
10940 | #AC_ARG_WITH(vdo-lib, | |
b73e1cd4 | 10941 | # AS_HELP_STRING([--with-vdo-lib=PATH], |
4a90b0c4 ZK |
10942 | # [vdo support: Path to utils lib: [/usr/lib]]), |
10943 | # VDO_LIB=$withval, VDO_LIB="/usr/lib") | |
b681b774 | 10944 | #AC_MSG_RESULT([$VDO_LIB]) |
39cb8aa3 | 10945 | |
3a557dcf | 10946 | ################################################################################ |
6b2e4ec5 ZK |
10947 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include writecache" >&5 |
10948 | printf %s "checking whether to include writecache... " >&6; } | |
3a557dcf ZK |
10949 | |
10950 | # Check whether --with-writecache was given. | |
6b2e4ec5 ZK |
10951 | if test ${with_writecache+y} |
10952 | then : | |
3a557dcf | 10953 | withval=$with_writecache; WRITECACHE=$withval |
635df748 ZK |
10954 | else case e in #( |
10955 | e) WRITECACHE="internal" ;; | |
10956 | esac | |
3a557dcf ZK |
10957 | fi |
10958 | ||
10959 | ||
6b2e4ec5 ZK |
10960 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WRITECACHE" >&5 |
10961 | printf "%s\n" "$WRITECACHE" >&6; } | |
3a557dcf | 10962 | |
b681b774 ZK |
10963 | case "$WRITECACHE" in #( |
10964 | no|none) : | |
10965 | ;; #( | |
10966 | internal) : | |
3a557dcf | 10967 | |
3a557dcf | 10968 | |
b681b774 ZK |
10969 | printf "%s\n" "#define WRITECACHE_INTERNAL 1" >>confdefs.h |
10970 | ;; #( | |
10971 | *) : | |
10972 | as_fn_error $? "--with-writecache parameter invalid" "$LINENO" 5 ;; | |
3a557dcf ZK |
10973 | esac |
10974 | ||
d9e8895a | 10975 | ################################################################################ |
6b2e4ec5 ZK |
10976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include integrity" >&5 |
10977 | printf %s "checking whether to include integrity... " >&6; } | |
d9e8895a DT |
10978 | |
10979 | # Check whether --with-integrity was given. | |
6b2e4ec5 ZK |
10980 | if test ${with_integrity+y} |
10981 | then : | |
d9e8895a | 10982 | withval=$with_integrity; INTEGRITY=$withval |
635df748 ZK |
10983 | else case e in #( |
10984 | e) INTEGRITY="internal" ;; | |
10985 | esac | |
d9e8895a DT |
10986 | fi |
10987 | ||
10988 | ||
6b2e4ec5 ZK |
10989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTEGRITY" >&5 |
10990 | printf "%s\n" "$INTEGRITY" >&6; } | |
d9e8895a | 10991 | |
b681b774 ZK |
10992 | case "$INTEGRITY" in #( |
10993 | no|none) : | |
10994 | ;; #( | |
10995 | internal) : | |
d9e8895a | 10996 | |
d9e8895a | 10997 | |
b681b774 ZK |
10998 | printf "%s\n" "#define INTEGRITY_INTERNAL 1" >>confdefs.h |
10999 | ;; #( | |
11000 | *) : | |
11001 | as_fn_error $? "--with-integrity parameter invalid" "$LINENO" 5 ;; | |
d9e8895a DT |
11002 | esac |
11003 | ||
f11781c5 | 11004 | ################################################################################ |
f11781c5 | 11005 | # Check whether --enable-readline was given. |
6b2e4ec5 ZK |
11006 | if test ${enable_readline+y} |
11007 | then : | |
f11781c5 | 11008 | enableval=$enable_readline; READLINE=$enableval |
635df748 ZK |
11009 | else case e in #( |
11010 | e) READLINE="maybe" ;; | |
11011 | esac | |
fd4728e1 ZK |
11012 | fi |
11013 | ||
11014 | ||
65534242 ZK |
11015 | ################################################################################ |
11016 | # Check whether --enable-editline was given. | |
6b2e4ec5 ZK |
11017 | if test ${enable_editline+y} |
11018 | then : | |
65534242 | 11019 | enableval=$enable_editline; EDITLINE=$enableval |
635df748 ZK |
11020 | else case e in #( |
11021 | e) EDITLINE="no" ;; | |
11022 | esac | |
65534242 ZK |
11023 | fi |
11024 | ||
11025 | ||
f11781c5 | 11026 | ################################################################################ |
6b2e4ec5 ZK |
11027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5 |
11028 | printf %s "checking whether to enable realtime support... " >&6; } | |
f11781c5 | 11029 | # Check whether --enable-realtime was given. |
6b2e4ec5 ZK |
11030 | if test ${enable_realtime+y} |
11031 | then : | |
f11781c5 | 11032 | enableval=$enable_realtime; REALTIME=$enableval |
635df748 ZK |
11033 | else case e in #( |
11034 | e) REALTIME="yes" ;; | |
11035 | esac | |
5556819a | 11036 | fi |
d0191583 | 11037 | |
6b2e4ec5 ZK |
11038 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5 |
11039 | printf "%s\n" "$REALTIME" >&6; } | |
f11781c5 | 11040 | |
54b362f9 | 11041 | ################################################################################ |
6b2e4ec5 ZK |
11042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5 |
11043 | printf %s "checking whether to enable OCF resource agents... " >&6; } | |
f11781c5 | 11044 | # Check whether --enable-ocf was given. |
6b2e4ec5 ZK |
11045 | if test ${enable_ocf+y} |
11046 | then : | |
f11781c5 | 11047 | enableval=$enable_ocf; OCF=$enableval |
635df748 ZK |
11048 | else case e in #( |
11049 | e) OCF="no" ;; | |
11050 | esac | |
54b362f9 AK |
11051 | fi |
11052 | ||
6b2e4ec5 ZK |
11053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5 |
11054 | printf "%s\n" "$OCF" >&6; } | |
54b362f9 | 11055 | |
606d0858 | 11056 | # Check whether --with-ocfdir was given. |
6b2e4ec5 ZK |
11057 | if test ${with_ocfdir+y} |
11058 | then : | |
606d0858 | 11059 | withval=$with_ocfdir; OCFDIR=$withval |
635df748 ZK |
11060 | else case e in #( |
11061 | e) OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' ;; | |
11062 | esac | |
606d0858 AK |
11063 | fi |
11064 | ||
11065 | ||
f11781c5 | 11066 | ################################################################################ |
b681b774 ZK |
11067 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default run directory" >&5 |
11068 | printf %s "checking for default run directory... " >&6; } | |
11069 | RUN_DIR="/run" | |
86ac529b ZK |
11070 | if test ! -d "$RUN_DIR" |
11071 | then : | |
11072 | RUN_DIR="/var/run" | |
11073 | fi | |
b681b774 ZK |
11074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RUN_DIR" >&5 |
11075 | printf "%s\n" "$RUN_DIR" >&6; } | |
f11781c5 AK |
11076 | |
11077 | ||
b681b774 ZK |
11078 | # Check whether --with-default-pid-dir was given. |
11079 | if test ${with_default_pid_dir+y} | |
11080 | then : | |
11081 | withval=$with_default_pid_dir; DEFAULT_PID_DIR="$withval" | |
635df748 ZK |
11082 | else case e in #( |
11083 | e) DEFAULT_PID_DIR=$RUN_DIR ;; | |
11084 | esac | |
b681b774 ZK |
11085 | fi |
11086 | ||
f11781c5 | 11087 | |
b681b774 | 11088 | printf "%s\n" "#define DEFAULT_PID_DIR \"$DEFAULT_PID_DIR\"" >>confdefs.h |
f11781c5 AK |
11089 | |
11090 | ||
11091 | ||
4d0c3ed0 | 11092 | |
b681b774 ZK |
11093 | # Check whether --with-default-dm-run-dir was given. |
11094 | if test ${with_default_dm_run_dir+y} | |
6b2e4ec5 | 11095 | then : |
b681b774 | 11096 | withval=$with_default_dm_run_dir; DEFAULT_DM_RUN_DIR="$withval" |
635df748 ZK |
11097 | else case e in #( |
11098 | e) DEFAULT_DM_RUN_DIR=$RUN_DIR ;; | |
11099 | esac | |
54b362f9 AK |
11100 | fi |
11101 | ||
11102 | ||
b681b774 ZK |
11103 | printf "%s\n" "#define DEFAULT_DM_RUN_DIR \"$DEFAULT_DM_RUN_DIR\"" >>confdefs.h |
11104 | ||
11105 | ||
11106 | ||
11107 | ||
11108 | # Check whether --with-default-run-dir was given. | |
11109 | if test ${with_default_run_dir+y} | |
11110 | then : | |
11111 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" | |
635df748 ZK |
11112 | else case e in #( |
11113 | e) DEFAULT_RUN_DIR="$RUN_DIR/lvm" ;; | |
11114 | esac | |
b681b774 ZK |
11115 | fi |
11116 | ||
11117 | ||
11118 | printf "%s\n" "#define DEFAULT_RUN_DIR \"$DEFAULT_RUN_DIR\"" >>confdefs.h | |
11119 | ||
11120 | ||
11121 | ################################################################################ | |
11122 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5 | |
11123 | printf %s "checking whether to build cluster mirror log daemon... " >&6; } | |
11124 | # Check whether --enable-cmirrord was given. | |
11125 | if test ${enable_cmirrord+y} | |
11126 | then : | |
86ac529b | 11127 | enableval=$enable_cmirrord; BUILD_CMIRRORD=$enableval |
635df748 ZK |
11128 | else case e in #( |
11129 | e) BUILD_CMIRRORD="no" ;; | |
11130 | esac | |
b681b774 ZK |
11131 | fi |
11132 | ||
86ac529b ZK |
11133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CMIRRORD" >&5 |
11134 | printf "%s\n" "$BUILD_CMIRRORD" >&6; } | |
b681b774 ZK |
11135 | |
11136 | ################################################################################ | |
11137 | if test "$BUILD_CMIRRORD" = "yes" | |
11138 | then : | |
11139 | ||
11140 | ||
11141 | # Check whether --with-cmirrord-pidfile was given. | |
11142 | if test ${with_cmirrord_pidfile+y} | |
11143 | then : | |
11144 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval | |
635df748 ZK |
11145 | else case e in #( |
11146 | e) CMIRRORD_PIDFILE="$DEFAULT_PID_DIR/cmirrord.pid" ;; | |
11147 | esac | |
b681b774 ZK |
11148 | fi |
11149 | ||
11150 | ||
11151 | printf "%s\n" "#define CMIRRORD_PIDFILE \"$CMIRRORD_PIDFILE\"" >>confdefs.h | |
11152 | ||
11153 | ||
11154 | fi | |
11155 | ||
11156 | ################################################################################ | |
11157 | ||
11158 | ||
11159 | ||
11160 | ||
11161 | ||
11162 | ||
11163 | ||
11164 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
11165 | if test -n "$ac_tool_prefix"; then | |
11166 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
11167 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
11168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11169 | printf %s "checking for $ac_word... " >&6; } | |
11170 | if test ${ac_cv_path_PKG_CONFIG+y} | |
11171 | then : | |
11172 | printf %s "(cached) " >&6 | |
635df748 ZK |
11173 | else case e in #( |
11174 | e) case $PKG_CONFIG in | |
b681b774 ZK |
11175 | [\\/]* | ?:[\\/]*) |
11176 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11177 | ;; | |
11178 | *) | |
11179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11180 | for as_dir in $PATH | |
11181 | do | |
11182 | IFS=$as_save_IFS | |
11183 | case $as_dir in #((( | |
11184 | '') as_dir=./ ;; | |
11185 | */) ;; | |
11186 | *) as_dir=$as_dir/ ;; | |
11187 | esac | |
11188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11189 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
11190 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
11191 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
11192 | break 2 | |
11193 | fi | |
11194 | done | |
11195 | done | |
11196 | IFS=$as_save_IFS | |
11197 | ||
11198 | ;; | |
635df748 | 11199 | esac ;; |
b681b774 ZK |
11200 | esac |
11201 | fi | |
11202 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11203 | if test -n "$PKG_CONFIG"; then | |
11204 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
11205 | printf "%s\n" "$PKG_CONFIG" >&6; } | |
11206 | else | |
11207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11208 | printf "%s\n" "no" >&6; } | |
11209 | fi | |
11210 | ||
11211 | ||
11212 | fi | |
11213 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
11214 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
11215 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11216 | set dummy pkg-config; ac_word=$2 | |
11217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11218 | printf %s "checking for $ac_word... " >&6; } | |
11219 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} | |
11220 | then : | |
6b2e4ec5 | 11221 | printf %s "(cached) " >&6 |
635df748 ZK |
11222 | else case e in #( |
11223 | e) case $ac_pt_PKG_CONFIG in | |
54b362f9 | 11224 | [\\/]* | ?:[\\/]*) |
f11781c5 | 11225 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
11226 | ;; |
11227 | *) | |
11228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11229 | for as_dir in $PATH | |
11230 | do | |
11231 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
11232 | case $as_dir in #((( |
11233 | '') as_dir=./ ;; | |
11234 | */) ;; | |
11235 | *) as_dir=$as_dir/ ;; | |
11236 | esac | |
f11781c5 | 11237 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
11238 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11239 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
11240 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
11241 | break 2 |
11242 | fi | |
11243 | done | |
f11781c5 | 11244 | done |
54b362f9 AK |
11245 | IFS=$as_save_IFS |
11246 | ||
11247 | ;; | |
635df748 | 11248 | esac ;; |
54b362f9 AK |
11249 | esac |
11250 | fi | |
f11781c5 AK |
11251 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
11252 | if test -n "$ac_pt_PKG_CONFIG"; then | |
6b2e4ec5 ZK |
11253 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
11254 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } | |
54b362f9 | 11255 | else |
6b2e4ec5 ZK |
11256 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11257 | printf "%s\n" "no" >&6; } | |
54b362f9 AK |
11258 | fi |
11259 | ||
f11781c5 AK |
11260 | if test "x$ac_pt_PKG_CONFIG" = x; then |
11261 | PKG_CONFIG="" | |
11262 | else | |
11263 | case $cross_compiling:$ac_tool_warned in | |
11264 | yes:) | |
6b2e4ec5 ZK |
11265 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
11266 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
f11781c5 AK |
11267 | ac_tool_warned=yes ;; |
11268 | esac | |
11269 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
11270 | fi | |
d1e8046f | 11271 | else |
f11781c5 | 11272 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
d1e8046f AK |
11273 | fi |
11274 | ||
f11781c5 AK |
11275 | fi |
11276 | if test -n "$PKG_CONFIG"; then | |
11277 | _pkg_min_version=0.9.0 | |
6b2e4ec5 ZK |
11278 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
11279 | printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
f11781c5 | 11280 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
6b2e4ec5 ZK |
11281 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11282 | printf "%s\n" "yes" >&6; } | |
f11781c5 | 11283 | else |
6b2e4ec5 ZK |
11284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11285 | printf "%s\n" "no" >&6; } | |
f11781c5 AK |
11286 | PKG_CONFIG="" |
11287 | fi | |
11288 | fi | |
418fb5a3 ZK |
11289 | if test -z "$PKG_CONFIG"; then |
11290 | as_fn_error $? "pkg-config not found" "$LINENO" 5 | |
11291 | fi | |
b681b774 | 11292 | if test "$BUILD_CMIRRORD" = "yes" && test "$HAVE_CPG" != "yes" |
6b2e4ec5 | 11293 | then : |
5723db01 PR |
11294 | |
11295 | ||
f11781c5 | 11296 | pkg_failed=no |
a7cf55c6 ZK |
11297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpg" >&5 |
11298 | printf %s "checking for libcpg... " >&6; } | |
93bd259b | 11299 | |
0d22b581 JT |
11300 | if test -n "$CPG_CFLAGS"; then |
11301 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
f11781c5 AK |
11302 | elif test -n "$PKG_CONFIG"; then |
11303 | if test -n "$PKG_CONFIG" && \ | |
6b2e4ec5 | 11304 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 |
0d22b581 | 11305 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 |
f11781c5 | 11306 | ac_status=$? |
6b2e4ec5 | 11307 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
f11781c5 | 11308 | test $ac_status = 0; }; then |
0d22b581 | 11309 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` |
4d0c3ed0 | 11310 | test "x$?" != "x0" && pkg_failed=yes |
f11781c5 AK |
11311 | else |
11312 | pkg_failed=yes | |
ad6254c5 | 11313 | fi |
f11781c5 AK |
11314 | else |
11315 | pkg_failed=untried | |
ad6254c5 | 11316 | fi |
0d22b581 JT |
11317 | if test -n "$CPG_LIBS"; then |
11318 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
f11781c5 AK |
11319 | elif test -n "$PKG_CONFIG"; then |
11320 | if test -n "$PKG_CONFIG" && \ | |
6b2e4ec5 | 11321 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 |
0d22b581 | 11322 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 |
93bd259b | 11323 | ac_status=$? |
6b2e4ec5 | 11324 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
f11781c5 | 11325 | test $ac_status = 0; }; then |
0d22b581 | 11326 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` |
4d0c3ed0 | 11327 | test "x$?" != "x0" && pkg_failed=yes |
93bd259b | 11328 | else |
f11781c5 AK |
11329 | pkg_failed=yes |
11330 | fi | |
11331 | else | |
11332 | pkg_failed=untried | |
93bd259b AK |
11333 | fi |
11334 | ||
f11781c5 AK |
11335 | |
11336 | ||
11337 | if test $pkg_failed = yes; then | |
a7cf55c6 | 11338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 11339 | printf "%s\n" "no" >&6; } |
f11781c5 AK |
11340 | |
11341 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11342 | _pkg_short_errors_supported=yes | |
11343 | else | |
11344 | _pkg_short_errors_supported=no | |
93bd259b | 11345 | fi |
f11781c5 | 11346 | if test $_pkg_short_errors_supported = yes; then |
a7cf55c6 | 11347 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcpg" 2>&1` |
f11781c5 | 11348 | else |
a7cf55c6 | 11349 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcpg" 2>&1` |
f11781c5 | 11350 | fi |
a7cf55c6 ZK |
11351 | # Put the nasty error message in config.log where it belongs |
11352 | echo "$CPG_PKG_ERRORS" >&5 | |
93bd259b | 11353 | |
a7cf55c6 | 11354 | as_fn_error $? "Package requirements (libcpg) were not met: |
93bd259b | 11355 | |
0d22b581 | 11356 | $CPG_PKG_ERRORS |
93bd259b | 11357 | |
0d22b581 JT |
11358 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
11359 | installed software in a non-standard prefix. | |
93bd259b | 11360 | |
0d22b581 JT |
11361 | Alternatively, you may set the environment variables CPG_CFLAGS |
11362 | and CPG_LIBS to avoid the need to call pkg-config. | |
11363 | See the pkg-config man page for more details." "$LINENO" 5 | |
f11781c5 | 11364 | elif test $pkg_failed = untried; then |
a7cf55c6 | 11365 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 11366 | printf "%s\n" "no" >&6; } |
635df748 ZK |
11367 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
11368 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
0d22b581 JT |
11369 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
11370 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11371 | path to pkg-config. | |
93bd259b | 11372 | |
0d22b581 JT |
11373 | Alternatively, you may set the environment variables CPG_CFLAGS |
11374 | and CPG_LIBS to avoid the need to call pkg-config. | |
11375 | See the pkg-config man page for more details. | |
f11781c5 | 11376 | |
0d22b581 | 11377 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
635df748 | 11378 | See 'config.log' for more details" "$LINENO" 5; } |
f11781c5 | 11379 | else |
a7cf55c6 ZK |
11380 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS |
11381 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
6b2e4ec5 ZK |
11382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11383 | printf "%s\n" "yes" >&6; } | |
0d22b581 | 11384 | |
93bd259b | 11385 | fi |
b681b774 | 11386 | |
93bd259b AK |
11387 | fi |
11388 | ||
0d22b581 | 11389 | ################################################################################ |
6b2e4ec5 ZK |
11390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 |
11391 | printf %s "checking whether to enable debugging... " >&6; } | |
0d22b581 | 11392 | # Check whether --enable-debug was given. |
6b2e4ec5 ZK |
11393 | if test ${enable_debug+y} |
11394 | then : | |
0d22b581 | 11395 | enableval=$enable_debug; DEBUG=$enableval |
635df748 ZK |
11396 | else case e in #( |
11397 | e) DEBUG="no" ;; | |
11398 | esac | |
f11781c5 | 11399 | fi |
0d22b581 | 11400 | |
6b2e4ec5 ZK |
11401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 |
11402 | printf "%s\n" "$DEBUG" >&6; } | |
0d22b581 | 11403 | |
b681b774 ZK |
11404 | if test "$DEBUG" = "yes" |
11405 | then : | |
11406 | COPTIMISE_FLAG="" | |
635df748 ZK |
11407 | else case e in #( |
11408 | e) CSCOPE_CMD="" ;; | |
11409 | esac | |
ad6254c5 | 11410 | fi |
ad6254c5 | 11411 | |
72b2cb61 | 11412 | |
72b2cb61 | 11413 | |
0d22b581 JT |
11414 | ac_save_CFLAGS=$CFLAGS |
11415 | CFLAGS=-Wjump-misses-init | |
6b2e4ec5 ZK |
11416 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wjump-misses-init flag" >&5 |
11417 | printf %s "checking whether $CC accepts -Wjump-misses-init flag... " >&6; } | |
11418 | if test ${ac_cv_flag_HAVE_WJUMP+y} | |
11419 | then : | |
11420 | printf %s "(cached) " >&6 | |
635df748 ZK |
11421 | else case e in #( |
11422 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0d22b581 | 11423 | /* end confdefs.h. */ |
ad6254c5 | 11424 | |
0d22b581 | 11425 | int |
6b2e4ec5 | 11426 | main (void) |
0d22b581 JT |
11427 | { |
11428 | ||
11429 | ; | |
11430 | return 0; | |
11431 | } | |
11432 | _ACEOF | |
6b2e4ec5 ZK |
11433 | if ac_fn_c_try_compile "$LINENO" |
11434 | then : | |
0d22b581 | 11435 | ac_cv_flag_HAVE_WJUMP=yes |
635df748 ZK |
11436 | else case e in #( |
11437 | e) ac_cv_flag_HAVE_WJUMP=no ;; | |
11438 | esac | |
f11781c5 | 11439 | fi |
635df748 ZK |
11440 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
11441 | esac | |
ad6254c5 | 11442 | fi |
6b2e4ec5 ZK |
11443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WJUMP" >&5 |
11444 | printf "%s\n" "$ac_cv_flag_HAVE_WJUMP" >&6; } | |
0d22b581 JT |
11445 | CFLAGS=$ac_save_CFLAGS |
11446 | HAVE_WJUMP=$ac_cv_flag_HAVE_WJUMP | |
11447 | if test "HAVE_WJUMP" = yes; then | |
11448 | : | |
11449 | else | |
11450 | : | |
11451 | fi | |
ad6254c5 | 11452 | |
f30875db | 11453 | |
f11781c5 | 11454 | |
f30875db | 11455 | |
0d22b581 JT |
11456 | ac_save_CFLAGS=$CFLAGS |
11457 | CFLAGS=-Wclobbered | |
6b2e4ec5 ZK |
11458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wclobbered flag" >&5 |
11459 | printf %s "checking whether $CC accepts -Wclobbered flag... " >&6; } | |
11460 | if test ${ac_cv_flag_HAVE_WCLOBBERED+y} | |
11461 | then : | |
11462 | printf %s "(cached) " >&6 | |
635df748 ZK |
11463 | else case e in #( |
11464 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0d22b581 | 11465 | /* end confdefs.h. */ |
d0191583 | 11466 | |
0d22b581 | 11467 | int |
6b2e4ec5 | 11468 | main (void) |
0d22b581 | 11469 | { |
8a2fc586 | 11470 | |
0d22b581 JT |
11471 | ; |
11472 | return 0; | |
11473 | } | |
11474 | _ACEOF | |
6b2e4ec5 ZK |
11475 | if ac_fn_c_try_compile "$LINENO" |
11476 | then : | |
0d22b581 | 11477 | ac_cv_flag_HAVE_WCLOBBERED=yes |
635df748 ZK |
11478 | else case e in #( |
11479 | e) ac_cv_flag_HAVE_WCLOBBERED=no ;; | |
11480 | esac | |
8a2fc586 | 11481 | fi |
635df748 ZK |
11482 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
11483 | esac | |
8a2fc586 | 11484 | fi |
6b2e4ec5 ZK |
11485 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WCLOBBERED" >&5 |
11486 | printf "%s\n" "$ac_cv_flag_HAVE_WCLOBBERED" >&6; } | |
0d22b581 JT |
11487 | CFLAGS=$ac_save_CFLAGS |
11488 | HAVE_WCLOBBERED=$ac_cv_flag_HAVE_WCLOBBERED | |
11489 | if test "HAVE_WCLOBBERED" = yes; then | |
11490 | : | |
11491 | else | |
11492 | : | |
11493 | fi | |
d0191583 | 11494 | |
d0191583 | 11495 | |
f8f6ec92 | 11496 | |
8a2fc586 | 11497 | |
0d22b581 JT |
11498 | ac_save_CFLAGS=$CFLAGS |
11499 | CFLAGS=-Wsync-nand | |
6b2e4ec5 ZK |
11500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsync-nand flag" >&5 |
11501 | printf %s "checking whether $CC accepts -Wsync-nand flag... " >&6; } | |
11502 | if test ${ac_cv_flag_HAVE_WSYNCNAND+y} | |
11503 | then : | |
11504 | printf %s "(cached) " >&6 | |
635df748 ZK |
11505 | else case e in #( |
11506 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
0d22b581 | 11507 | /* end confdefs.h. */ |
ad6254c5 | 11508 | |
0d22b581 | 11509 | int |
6b2e4ec5 | 11510 | main (void) |
0d22b581 JT |
11511 | { |
11512 | ||
11513 | ; | |
11514 | return 0; | |
11515 | } | |
11516 | _ACEOF | |
6b2e4ec5 ZK |
11517 | if ac_fn_c_try_compile "$LINENO" |
11518 | then : | |
0d22b581 | 11519 | ac_cv_flag_HAVE_WSYNCNAND=yes |
635df748 ZK |
11520 | else case e in #( |
11521 | e) ac_cv_flag_HAVE_WSYNCNAND=no ;; | |
11522 | esac | |
ad6254c5 | 11523 | fi |
635df748 ZK |
11524 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
11525 | esac | |
ad6254c5 | 11526 | fi |
6b2e4ec5 ZK |
11527 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WSYNCNAND" >&5 |
11528 | printf "%s\n" "$ac_cv_flag_HAVE_WSYNCNAND" >&6; } | |
0d22b581 JT |
11529 | CFLAGS=$ac_save_CFLAGS |
11530 | HAVE_WSYNCNAND=$ac_cv_flag_HAVE_WSYNCNAND | |
11531 | if test "HAVE_WSYNCNAND" = yes; then | |
11532 | : | |
11533 | else | |
11534 | : | |
11535 | fi | |
ad6254c5 | 11536 | |
72b2cb61 | 11537 | |
f8f6ec92 | 11538 | |
0d22b581 | 11539 | ################################################################################ |
6b2e4ec5 ZK |
11540 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 |
11541 | printf %s "checking for C optimisation flag... " >&6; } | |
f8f6ec92 | 11542 | |
0d22b581 | 11543 | # Check whether --with-optimisation was given. |
6b2e4ec5 ZK |
11544 | if test ${with_optimisation+y} |
11545 | then : | |
0d22b581 | 11546 | withval=$with_optimisation; COPTIMISE_FLAG=$withval |
f8f6ec92 ZK |
11547 | fi |
11548 | ||
6b2e4ec5 ZK |
11549 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5 |
11550 | printf "%s\n" "$COPTIMISE_FLAG" >&6; } | |
f8f6ec92 | 11551 | |
1cedbaf1 | 11552 | ################################################################################ |
6b2e4ec5 ZK |
11553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use symbol versioning" >&5 |
11554 | printf %s "checking whether to use symbol versioning... " >&6; } | |
1cedbaf1 ZK |
11555 | |
11556 | # Check whether --with-symvers was given. | |
6b2e4ec5 ZK |
11557 | if test ${with_symvers+y} |
11558 | then : | |
b681b774 ZK |
11559 | withval=$with_symvers; |
11560 | case "$withval" in #( | |
11561 | gnu|no) : | |
11562 | symvers=$withval ;; #( | |
11563 | *) : | |
11564 | as_fn_error $? "--with-symvers parameter invalid" "$LINENO" 5 ;; | |
11565 | esac | |
635df748 ZK |
11566 | else case e in #( |
11567 | e) symvers="gnu" ;; | |
11568 | esac | |
1cedbaf1 ZK |
11569 | fi |
11570 | ||
6b2e4ec5 ZK |
11571 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $symvers" >&5 |
11572 | printf "%s\n" "$symvers" >&6; } | |
1cedbaf1 | 11573 | |
b681b774 ZK |
11574 | if test "$GCC" = "yes" && test "$symvers" = "gnu" |
11575 | then : | |
11576 | ||
1cedbaf1 | 11577 | |
6b2e4ec5 | 11578 | printf "%s\n" "#define GNU_SYMVER 1" >>confdefs.h |
1cedbaf1 | 11579 | |
b681b774 ZK |
11580 | case "$host_os" in #( |
11581 | linux*) : | |
11582 | ||
f569ac59 | 11583 | CLDFLAGS="-Wl,--version-script,.export.sym" |
b681b774 ZK |
11584 | LDDEPS="$LDDEPS .export.sym" ;; #( |
11585 | *) : | |
11586 | ;; | |
11587 | esac | |
11588 | ||
1cedbaf1 ZK |
11589 | fi |
11590 | ||
0d22b581 | 11591 | ################################################################################ |
6b2e4ec5 ZK |
11592 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5 |
11593 | printf %s "checking whether to gather gcov profiling data... " >&6; } | |
0d22b581 | 11594 | # Check whether --enable-profiling was given. |
6b2e4ec5 ZK |
11595 | if test ${enable_profiling+y} |
11596 | then : | |
0d22b581 | 11597 | enableval=$enable_profiling; PROFILING=$enableval |
635df748 ZK |
11598 | else case e in #( |
11599 | e) PROFILING="no" ;; | |
11600 | esac | |
66e941e8 JM |
11601 | fi |
11602 | ||
6b2e4ec5 ZK |
11603 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5 |
11604 | printf "%s\n" "$PROFILING" >&6; } | |
f11781c5 | 11605 | |
b681b774 ZK |
11606 | if test "$PROFILING" = "yes" |
11607 | then : | |
11608 | ||
2b864aeb | 11609 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -fprofile-update=atomic -ftest-coverage" |
0d22b581 JT |
11610 | if test -n "$ac_tool_prefix"; then |
11611 | # Extract the first word of "${ac_tool_prefix}lcov", so it can be a program name with args. | |
11612 | set dummy ${ac_tool_prefix}lcov; ac_word=$2 | |
6b2e4ec5 ZK |
11613 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11614 | printf %s "checking for $ac_word... " >&6; } | |
11615 | if test ${ac_cv_path_LCOV+y} | |
11616 | then : | |
11617 | printf %s "(cached) " >&6 | |
635df748 ZK |
11618 | else case e in #( |
11619 | e) case $LCOV in | |
0d22b581 JT |
11620 | [\\/]* | ?:[\\/]*) |
11621 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
11622 | ;; | |
11623 | *) | |
11624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11625 | for as_dir in $PATH | |
11626 | do | |
11627 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
11628 | case $as_dir in #((( |
11629 | '') as_dir=./ ;; | |
11630 | */) ;; | |
11631 | *) as_dir=$as_dir/ ;; | |
11632 | esac | |
0d22b581 | 11633 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
11634 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11635 | ac_cv_path_LCOV="$as_dir$ac_word$ac_exec_ext" | |
11636 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
0d22b581 JT |
11637 | break 2 |
11638 | fi | |
dd1f2c09 | 11639 | done |
0d22b581 JT |
11640 | done |
11641 | IFS=$as_save_IFS | |
dd1f2c09 | 11642 | |
0d22b581 | 11643 | ;; |
635df748 | 11644 | esac ;; |
0d22b581 | 11645 | esac |
b6d7a484 | 11646 | fi |
0d22b581 JT |
11647 | LCOV=$ac_cv_path_LCOV |
11648 | if test -n "$LCOV"; then | |
6b2e4ec5 ZK |
11649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 |
11650 | printf "%s\n" "$LCOV" >&6; } | |
b6d7a484 | 11651 | else |
6b2e4ec5 ZK |
11652 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11653 | printf "%s\n" "no" >&6; } | |
b6d7a484 | 11654 | fi |
0d22b581 JT |
11655 | |
11656 | ||
b6d7a484 | 11657 | fi |
0d22b581 JT |
11658 | if test -z "$ac_cv_path_LCOV"; then |
11659 | ac_pt_LCOV=$LCOV | |
11660 | # Extract the first word of "lcov", so it can be a program name with args. | |
11661 | set dummy lcov; ac_word=$2 | |
6b2e4ec5 ZK |
11662 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11663 | printf %s "checking for $ac_word... " >&6; } | |
11664 | if test ${ac_cv_path_ac_pt_LCOV+y} | |
11665 | then : | |
11666 | printf %s "(cached) " >&6 | |
635df748 ZK |
11667 | else case e in #( |
11668 | e) case $ac_pt_LCOV in | |
0d22b581 JT |
11669 | [\\/]* | ?:[\\/]*) |
11670 | ac_cv_path_ac_pt_LCOV="$ac_pt_LCOV" # Let the user override the test with a path. | |
11671 | ;; | |
11672 | *) | |
11673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11674 | for as_dir in $PATH | |
11675 | do | |
11676 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
11677 | case $as_dir in #((( |
11678 | '') as_dir=./ ;; | |
11679 | */) ;; | |
11680 | *) as_dir=$as_dir/ ;; | |
11681 | esac | |
0d22b581 | 11682 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
11683 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11684 | ac_cv_path_ac_pt_LCOV="$as_dir$ac_word$ac_exec_ext" | |
11685 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
0d22b581 JT |
11686 | break 2 |
11687 | fi | |
11688 | done | |
11689 | done | |
11690 | IFS=$as_save_IFS | |
f11781c5 | 11691 | |
0d22b581 | 11692 | ;; |
635df748 | 11693 | esac ;; |
0d22b581 | 11694 | esac |
b6d7a484 | 11695 | fi |
0d22b581 JT |
11696 | ac_pt_LCOV=$ac_cv_path_ac_pt_LCOV |
11697 | if test -n "$ac_pt_LCOV"; then | |
6b2e4ec5 ZK |
11698 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LCOV" >&5 |
11699 | printf "%s\n" "$ac_pt_LCOV" >&6; } | |
b6d7a484 | 11700 | else |
6b2e4ec5 ZK |
11701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11702 | printf "%s\n" "no" >&6; } | |
b6d7a484 AK |
11703 | fi |
11704 | ||
0d22b581 JT |
11705 | if test "x$ac_pt_LCOV" = x; then |
11706 | LCOV="" | |
11707 | else | |
11708 | case $cross_compiling:$ac_tool_warned in | |
11709 | yes:) | |
6b2e4ec5 ZK |
11710 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
11711 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
0d22b581 JT |
11712 | ac_tool_warned=yes ;; |
11713 | esac | |
11714 | LCOV=$ac_pt_LCOV | |
11715 | fi | |
b6d7a484 | 11716 | else |
0d22b581 | 11717 | LCOV="$ac_cv_path_LCOV" |
b6d7a484 AK |
11718 | fi |
11719 | ||
0d22b581 JT |
11720 | if test -n "$ac_tool_prefix"; then |
11721 | # Extract the first word of "${ac_tool_prefix}genhtml", so it can be a program name with args. | |
11722 | set dummy ${ac_tool_prefix}genhtml; ac_word=$2 | |
6b2e4ec5 ZK |
11723 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11724 | printf %s "checking for $ac_word... " >&6; } | |
11725 | if test ${ac_cv_path_GENHTML+y} | |
11726 | then : | |
11727 | printf %s "(cached) " >&6 | |
635df748 ZK |
11728 | else case e in #( |
11729 | e) case $GENHTML in | |
0d22b581 JT |
11730 | [\\/]* | ?:[\\/]*) |
11731 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
11732 | ;; | |
11733 | *) | |
11734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11735 | for as_dir in $PATH | |
11736 | do | |
11737 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
11738 | case $as_dir in #((( |
11739 | '') as_dir=./ ;; | |
11740 | */) ;; | |
11741 | *) as_dir=$as_dir/ ;; | |
11742 | esac | |
0d22b581 | 11743 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
11744 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11745 | ac_cv_path_GENHTML="$as_dir$ac_word$ac_exec_ext" | |
11746 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
0d22b581 JT |
11747 | break 2 |
11748 | fi | |
b6d7a484 | 11749 | done |
0d22b581 JT |
11750 | done |
11751 | IFS=$as_save_IFS | |
b6d7a484 | 11752 | |
0d22b581 | 11753 | ;; |
635df748 | 11754 | esac ;; |
0d22b581 | 11755 | esac |
f11781c5 | 11756 | fi |
0d22b581 JT |
11757 | GENHTML=$ac_cv_path_GENHTML |
11758 | if test -n "$GENHTML"; then | |
6b2e4ec5 ZK |
11759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 |
11760 | printf "%s\n" "$GENHTML" >&6; } | |
f11781c5 | 11761 | else |
6b2e4ec5 ZK |
11762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11763 | printf "%s\n" "no" >&6; } | |
dd1f2c09 MB |
11764 | fi |
11765 | ||
f11781c5 | 11766 | |
f11781c5 | 11767 | fi |
0d22b581 JT |
11768 | if test -z "$ac_cv_path_GENHTML"; then |
11769 | ac_pt_GENHTML=$GENHTML | |
11770 | # Extract the first word of "genhtml", so it can be a program name with args. | |
11771 | set dummy genhtml; ac_word=$2 | |
6b2e4ec5 ZK |
11772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11773 | printf %s "checking for $ac_word... " >&6; } | |
11774 | if test ${ac_cv_path_ac_pt_GENHTML+y} | |
11775 | then : | |
11776 | printf %s "(cached) " >&6 | |
635df748 ZK |
11777 | else case e in #( |
11778 | e) case $ac_pt_GENHTML in | |
0d22b581 JT |
11779 | [\\/]* | ?:[\\/]*) |
11780 | ac_cv_path_ac_pt_GENHTML="$ac_pt_GENHTML" # Let the user override the test with a path. | |
11781 | ;; | |
11782 | *) | |
11783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11784 | for as_dir in $PATH | |
11785 | do | |
11786 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
11787 | case $as_dir in #((( |
11788 | '') as_dir=./ ;; | |
11789 | */) ;; | |
11790 | *) as_dir=$as_dir/ ;; | |
11791 | esac | |
0d22b581 | 11792 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
11793 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11794 | ac_cv_path_ac_pt_GENHTML="$as_dir$ac_word$ac_exec_ext" | |
11795 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
0d22b581 JT |
11796 | break 2 |
11797 | fi | |
11798 | done | |
11799 | done | |
11800 | IFS=$as_save_IFS | |
f11781c5 | 11801 | |
0d22b581 | 11802 | ;; |
635df748 | 11803 | esac ;; |
0d22b581 | 11804 | esac |
dd1f2c09 | 11805 | fi |
0d22b581 JT |
11806 | ac_pt_GENHTML=$ac_cv_path_ac_pt_GENHTML |
11807 | if test -n "$ac_pt_GENHTML"; then | |
6b2e4ec5 ZK |
11808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GENHTML" >&5 |
11809 | printf "%s\n" "$ac_pt_GENHTML" >&6; } | |
c923dee8 | 11810 | else |
6b2e4ec5 ZK |
11811 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11812 | printf "%s\n" "no" >&6; } | |
c923dee8 AK |
11813 | fi |
11814 | ||
0d22b581 JT |
11815 | if test "x$ac_pt_GENHTML" = x; then |
11816 | GENHTML="" | |
11817 | else | |
11818 | case $cross_compiling:$ac_tool_warned in | |
11819 | yes:) | |
6b2e4ec5 ZK |
11820 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
11821 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
0d22b581 JT |
11822 | ac_tool_warned=yes ;; |
11823 | esac | |
11824 | GENHTML=$ac_pt_GENHTML | |
11825 | fi | |
c923dee8 | 11826 | else |
0d22b581 | 11827 | GENHTML="$ac_cv_path_GENHTML" |
c923dee8 AK |
11828 | fi |
11829 | ||
b681b774 ZK |
11830 | if test -z "$LCOV" || test -z "$GENHTML" |
11831 | then : | |
11832 | ||
11833 | as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5 | |
11834 | ||
11835 | fi | |
0d22b581 JT |
11836 | if test -n "$ac_tool_prefix"; then |
11837 | # Extract the first word of "${ac_tool_prefix}genpng", so it can be a program name with args. | |
11838 | set dummy ${ac_tool_prefix}genpng; ac_word=$2 | |
6b2e4ec5 ZK |
11839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11840 | printf %s "checking for $ac_word... " >&6; } | |
11841 | if test ${ac_cv_path_GENPNG+y} | |
11842 | then : | |
11843 | printf %s "(cached) " >&6 | |
635df748 ZK |
11844 | else case e in #( |
11845 | e) case $GENPNG in | |
0d22b581 JT |
11846 | [\\/]* | ?:[\\/]*) |
11847 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
11848 | ;; | |
11849 | *) | |
11850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11851 | for as_dir in $PATH | |
11852 | do | |
11853 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
11854 | case $as_dir in #((( |
11855 | '') as_dir=./ ;; | |
11856 | */) ;; | |
11857 | *) as_dir=$as_dir/ ;; | |
11858 | esac | |
0d22b581 | 11859 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
11860 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11861 | ac_cv_path_GENPNG="$as_dir$ac_word$ac_exec_ext" | |
11862 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
0d22b581 JT |
11863 | break 2 |
11864 | fi | |
11865 | done | |
11866 | done | |
11867 | IFS=$as_save_IFS | |
c923dee8 | 11868 | |
0d22b581 | 11869 | ;; |
635df748 | 11870 | esac ;; |
0d22b581 JT |
11871 | esac |
11872 | fi | |
11873 | GENPNG=$ac_cv_path_GENPNG | |
11874 | if test -n "$GENPNG"; then | |
6b2e4ec5 ZK |
11875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5 |
11876 | printf "%s\n" "$GENPNG" >&6; } | |
c923dee8 | 11877 | else |
6b2e4ec5 ZK |
11878 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11879 | printf "%s\n" "no" >&6; } | |
c923dee8 AK |
11880 | fi |
11881 | ||
c923dee8 | 11882 | |
0d22b581 JT |
11883 | fi |
11884 | if test -z "$ac_cv_path_GENPNG"; then | |
11885 | ac_pt_GENPNG=$GENPNG | |
11886 | # Extract the first word of "genpng", so it can be a program name with args. | |
11887 | set dummy genpng; ac_word=$2 | |
6b2e4ec5 ZK |
11888 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11889 | printf %s "checking for $ac_word... " >&6; } | |
11890 | if test ${ac_cv_path_ac_pt_GENPNG+y} | |
11891 | then : | |
11892 | printf %s "(cached) " >&6 | |
635df748 ZK |
11893 | else case e in #( |
11894 | e) case $ac_pt_GENPNG in | |
0d22b581 JT |
11895 | [\\/]* | ?:[\\/]*) |
11896 | ac_cv_path_ac_pt_GENPNG="$ac_pt_GENPNG" # Let the user override the test with a path. | |
11897 | ;; | |
11898 | *) | |
11899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11900 | for as_dir in $PATH | |
11901 | do | |
11902 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
11903 | case $as_dir in #((( |
11904 | '') as_dir=./ ;; | |
11905 | */) ;; | |
11906 | *) as_dir=$as_dir/ ;; | |
11907 | esac | |
0d22b581 | 11908 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
11909 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11910 | ac_cv_path_ac_pt_GENPNG="$as_dir$ac_word$ac_exec_ext" | |
11911 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
0d22b581 JT |
11912 | break 2 |
11913 | fi | |
11914 | done | |
11915 | done | |
11916 | IFS=$as_save_IFS | |
c923dee8 | 11917 | |
0d22b581 | 11918 | ;; |
635df748 | 11919 | esac ;; |
0d22b581 JT |
11920 | esac |
11921 | fi | |
11922 | ac_pt_GENPNG=$ac_cv_path_ac_pt_GENPNG | |
11923 | if test -n "$ac_pt_GENPNG"; then | |
6b2e4ec5 ZK |
11924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GENPNG" >&5 |
11925 | printf "%s\n" "$ac_pt_GENPNG" >&6; } | |
658d524d | 11926 | else |
6b2e4ec5 ZK |
11927 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11928 | printf "%s\n" "no" >&6; } | |
8b789822 BR |
11929 | fi |
11930 | ||
0d22b581 JT |
11931 | if test "x$ac_pt_GENPNG" = x; then |
11932 | GENPNG="" | |
11933 | else | |
11934 | case $cross_compiling:$ac_tool_warned in | |
11935 | yes:) | |
6b2e4ec5 ZK |
11936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
11937 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
0d22b581 JT |
11938 | ac_tool_warned=yes ;; |
11939 | esac | |
11940 | GENPNG=$ac_pt_GENPNG | |
11941 | fi | |
af7a11bc | 11942 | else |
0d22b581 | 11943 | GENPNG="$ac_cv_path_GENPNG" |
af7a11bc BR |
11944 | fi |
11945 | ||
b681b774 ZK |
11946 | if test -n "$GENPNG" |
11947 | then : | |
11948 | ||
6b2e4ec5 ZK |
11949 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5 |
11950 | printf %s "checking whether $GENPNG has all required modules... " >&6; } | |
b681b774 ZK |
11951 | if "$GENPNG" --help > /dev/null 2>&1 |
11952 | then : | |
11953 | ||
6b2e4ec5 ZK |
11954 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
11955 | printf "%s\n" "ok" >&6; } | |
0d22b581 | 11956 | GENHTML="$GENHTML --frames" |
b681b774 | 11957 | |
635df748 ZK |
11958 | else case e in #( |
11959 | e) | |
6b2e4ec5 ZK |
11960 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 |
11961 | printf "%s\n" "not supported" >&6; } | |
11962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5 | |
11963 | printf "%s\n" "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
0d22b581 | 11964 | GENPNG= |
635df748 ZK |
11965 | ;; |
11966 | esac | |
b681b774 ZK |
11967 | fi |
11968 | ||
11969 | fi | |
11970 | ||
af7a11bc BR |
11971 | fi |
11972 | ||
2159a142 | 11973 | ################################################################################ |
0d22b581 JT |
11974 | TESTSUITE_DATA='${datarootdir}/lvm2-testsuite' |
11975 | # double eval needed ${datarootdir} -> ${prefix}/share -> real path | |
2159a142 | 11976 | |
6b2e4ec5 | 11977 | printf "%s\n" "#define TESTSUITE_DATA \"$(eval echo $(eval echo $TESTSUITE_DATA))\"" >>confdefs.h |
2159a142 | 11978 | |
2159a142 | 11979 | |
0d22b581 | 11980 | ################################################################################ |
6b2e4ec5 ZK |
11981 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5 |
11982 | printf %s "checking whether to enable valgrind awareness of pools... " >&6; } | |
0d22b581 | 11983 | # Check whether --enable-valgrind_pool was given. |
6b2e4ec5 ZK |
11984 | if test ${enable_valgrind_pool+y} |
11985 | then : | |
0d22b581 | 11986 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval |
635df748 ZK |
11987 | else case e in #( |
11988 | e) VALGRIND_POOL="no" ;; | |
11989 | esac | |
2159a142 AK |
11990 | fi |
11991 | ||
6b2e4ec5 ZK |
11992 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5 |
11993 | printf "%s\n" "$VALGRIND_POOL" >&6; } | |
0d22b581 | 11994 | |
2159a142 AK |
11995 | |
11996 | pkg_failed=no | |
a7cf55c6 ZK |
11997 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5 |
11998 | printf %s "checking for valgrind... " >&6; } | |
2159a142 | 11999 | |
0d22b581 JT |
12000 | if test -n "$VALGRIND_CFLAGS"; then |
12001 | pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" | |
2159a142 AK |
12002 | elif test -n "$PKG_CONFIG"; then |
12003 | if test -n "$PKG_CONFIG" && \ | |
6b2e4ec5 | 12004 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 |
0d22b581 | 12005 | ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 |
2159a142 | 12006 | ac_status=$? |
6b2e4ec5 | 12007 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2159a142 | 12008 | test $ac_status = 0; }; then |
0d22b581 | 12009 | pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null` |
2159a142 AK |
12010 | test "x$?" != "x0" && pkg_failed=yes |
12011 | else | |
12012 | pkg_failed=yes | |
12013 | fi | |
12014 | else | |
12015 | pkg_failed=untried | |
12016 | fi | |
0d22b581 JT |
12017 | if test -n "$VALGRIND_LIBS"; then |
12018 | pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" | |
2159a142 AK |
12019 | elif test -n "$PKG_CONFIG"; then |
12020 | if test -n "$PKG_CONFIG" && \ | |
6b2e4ec5 | 12021 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 |
0d22b581 | 12022 | ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 |
2159a142 | 12023 | ac_status=$? |
6b2e4ec5 | 12024 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2159a142 | 12025 | test $ac_status = 0; }; then |
0d22b581 | 12026 | pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null` |
2159a142 AK |
12027 | test "x$?" != "x0" && pkg_failed=yes |
12028 | else | |
12029 | pkg_failed=yes | |
12030 | fi | |
12031 | else | |
12032 | pkg_failed=untried | |
12033 | fi | |
12034 | ||
12035 | ||
12036 | ||
12037 | if test $pkg_failed = yes; then | |
a7cf55c6 | 12038 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 12039 | printf "%s\n" "no" >&6; } |
2159a142 AK |
12040 | |
12041 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12042 | _pkg_short_errors_supported=yes | |
12043 | else | |
12044 | _pkg_short_errors_supported=no | |
12045 | fi | |
12046 | if test $_pkg_short_errors_supported = yes; then | |
a7cf55c6 | 12047 | VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1` |
2159a142 | 12048 | else |
a7cf55c6 | 12049 | VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1` |
2159a142 | 12050 | fi |
a7cf55c6 ZK |
12051 | # Put the nasty error message in config.log where it belongs |
12052 | echo "$VALGRIND_PKG_ERRORS" >&5 | |
2159a142 | 12053 | |
b681b774 ZK |
12054 | |
12055 | if test "$VALGRIND_POOL" = "yes" | |
12056 | then : | |
12057 | as_fn_error $? "bailing out" "$LINENO" 5 | |
12058 | fi | |
12059 | ||
2159a142 | 12060 | elif test $pkg_failed = untried; then |
a7cf55c6 | 12061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 12062 | printf "%s\n" "no" >&6; } |
b681b774 ZK |
12063 | |
12064 | if test "$VALGRIND_POOL" = "yes" | |
12065 | then : | |
12066 | as_fn_error $? "bailing out" "$LINENO" 5 | |
12067 | fi | |
12068 | ||
2159a142 | 12069 | else |
a7cf55c6 ZK |
12070 | VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS |
12071 | VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS | |
6b2e4ec5 ZK |
12072 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12073 | printf "%s\n" "yes" >&6; } | |
a7cf55c6 | 12074 | HAVE_VALGRIND="yes" |
0d22b581 JT |
12075 | fi |
12076 | ||
12077 | ||
b681b774 ZK |
12078 | if test "$HAVE_VALGRIND" = "yes" |
12079 | then : | |
12080 | ||
0d22b581 | 12081 | |
6b2e4ec5 | 12082 | printf "%s\n" "#define HAVE_VALGRIND 1" >>confdefs.h |
0d22b581 | 12083 | |
b681b774 | 12084 | |
0d22b581 JT |
12085 | fi |
12086 | ||
b681b774 ZK |
12087 | if test "$VALGRIND_POOL" = "yes" |
12088 | then : | |
12089 | ||
0d22b581 | 12090 | |
6b2e4ec5 | 12091 | printf "%s\n" "#define VALGRIND_POOL 1" >>confdefs.h |
0d22b581 | 12092 | |
b681b774 | 12093 | |
0d22b581 JT |
12094 | fi |
12095 | ||
12096 | ################################################################################ | |
6b2e4ec5 ZK |
12097 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5 |
12098 | printf %s "checking whether to use device-mapper... " >&6; } | |
0d22b581 | 12099 | # Check whether --enable-devmapper was given. |
6b2e4ec5 ZK |
12100 | if test ${enable_devmapper+y} |
12101 | then : | |
0d22b581 JT |
12102 | enableval=$enable_devmapper; DEVMAPPER=$enableval |
12103 | fi | |
12104 | ||
6b2e4ec5 ZK |
12105 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5 |
12106 | printf "%s\n" "$DEVMAPPER" >&6; } | |
0d22b581 | 12107 | |
b681b774 ZK |
12108 | if test "$DEVMAPPER" = "yes" |
12109 | then : | |
12110 | ||
0d22b581 | 12111 | |
6b2e4ec5 | 12112 | printf "%s\n" "#define DEVMAPPER_SUPPORT 1" >>confdefs.h |
0d22b581 | 12113 | |
b681b774 | 12114 | |
2159a142 | 12115 | fi |
0d22b581 | 12116 | |
fe70b03d | 12117 | ################################################################################ |
6b2e4ec5 ZK |
12118 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmpolld" >&5 |
12119 | printf %s "checking whether to build lvmpolld... " >&6; } | |
0d22b581 | 12120 | # Check whether --enable-lvmpolld was given. |
6b2e4ec5 ZK |
12121 | if test ${enable_lvmpolld+y} |
12122 | then : | |
86ac529b | 12123 | enableval=$enable_lvmpolld; BUILD_LVMPOLLD=$enableval |
635df748 ZK |
12124 | else case e in #( |
12125 | e) BUILD_LVMPOLLD="no" ;; | |
12126 | esac | |
0d22b581 | 12127 | fi |
fe70b03d | 12128 | |
6b2e4ec5 ZK |
12129 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMPOLLD" >&5 |
12130 | printf "%s\n" "$BUILD_LVMPOLLD" >&6; } | |
0d22b581 JT |
12131 | |
12132 | ################################################################################ | |
12133 | BUILD_LVMLOCKD=no | |
12134 | ||
6b2e4ec5 ZK |
12135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockdsanlock" >&5 |
12136 | printf %s "checking whether to build lvmlockdsanlock... " >&6; } | |
0d22b581 | 12137 | # Check whether --enable-lvmlockd-sanlock was given. |
6b2e4ec5 ZK |
12138 | if test ${enable_lvmlockd_sanlock+y} |
12139 | then : | |
07cd341b | 12140 | enableval=$enable_lvmlockd_sanlock; BUILD_LOCKDSANLOCK=$enableval |
635df748 ZK |
12141 | else case e in #( |
12142 | e) BUILD_LOCKDSANLOCK="no" ;; | |
12143 | esac | |
9bfc0be4 PR |
12144 | fi |
12145 | ||
07cd341b ZK |
12146 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDSANLOCK" >&5 |
12147 | printf "%s\n" "$BUILD_LOCKDSANLOCK" >&6; } | |
9bfc0be4 | 12148 | |
b681b774 ZK |
12149 | if test "$BUILD_LOCKDSANLOCK" = "yes" |
12150 | then : | |
12151 | ||
9bfc0be4 PR |
12152 | |
12153 | pkg_failed=no | |
569dd5d0 ZK |
12154 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsanlock_client >= 3.7.0" >&5 |
12155 | printf %s "checking for libsanlock_client >= 3.7.0... " >&6; } | |
9bfc0be4 | 12156 | |
a861f042 ZK |
12157 | if test -n "$LIBSANLOCKCLIENT_CFLAGS"; then |
12158 | pkg_cv_LIBSANLOCKCLIENT_CFLAGS="$LIBSANLOCKCLIENT_CFLAGS" | |
9bfc0be4 PR |
12159 | elif test -n "$PKG_CONFIG"; then |
12160 | if test -n "$PKG_CONFIG" && \ | |
569dd5d0 ZK |
12161 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsanlock_client >= 3.7.0\""; } >&5 |
12162 | ($PKG_CONFIG --exists --print-errors "libsanlock_client >= 3.7.0") 2>&5 | |
9bfc0be4 | 12163 | ac_status=$? |
6b2e4ec5 | 12164 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9bfc0be4 | 12165 | test $ac_status = 0; }; then |
569dd5d0 | 12166 | pkg_cv_LIBSANLOCKCLIENT_CFLAGS=`$PKG_CONFIG --cflags "libsanlock_client >= 3.7.0" 2>/dev/null` |
4d0c3ed0 | 12167 | test "x$?" != "x0" && pkg_failed=yes |
9bfc0be4 PR |
12168 | else |
12169 | pkg_failed=yes | |
12170 | fi | |
12171 | else | |
12172 | pkg_failed=untried | |
12173 | fi | |
a861f042 ZK |
12174 | if test -n "$LIBSANLOCKCLIENT_LIBS"; then |
12175 | pkg_cv_LIBSANLOCKCLIENT_LIBS="$LIBSANLOCKCLIENT_LIBS" | |
9bfc0be4 PR |
12176 | elif test -n "$PKG_CONFIG"; then |
12177 | if test -n "$PKG_CONFIG" && \ | |
569dd5d0 ZK |
12178 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsanlock_client >= 3.7.0\""; } >&5 |
12179 | ($PKG_CONFIG --exists --print-errors "libsanlock_client >= 3.7.0") 2>&5 | |
9bfc0be4 | 12180 | ac_status=$? |
6b2e4ec5 | 12181 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9bfc0be4 | 12182 | test $ac_status = 0; }; then |
569dd5d0 | 12183 | pkg_cv_LIBSANLOCKCLIENT_LIBS=`$PKG_CONFIG --libs "libsanlock_client >= 3.7.0" 2>/dev/null` |
4d0c3ed0 | 12184 | test "x$?" != "x0" && pkg_failed=yes |
9bfc0be4 PR |
12185 | else |
12186 | pkg_failed=yes | |
12187 | fi | |
12188 | else | |
12189 | pkg_failed=untried | |
12190 | fi | |
12191 | ||
12192 | ||
12193 | ||
12194 | if test $pkg_failed = yes; then | |
a7cf55c6 | 12195 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 12196 | printf "%s\n" "no" >&6; } |
9bfc0be4 PR |
12197 | |
12198 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12199 | _pkg_short_errors_supported=yes | |
12200 | else | |
12201 | _pkg_short_errors_supported=no | |
12202 | fi | |
12203 | if test $_pkg_short_errors_supported = yes; then | |
569dd5d0 | 12204 | LIBSANLOCKCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsanlock_client >= 3.7.0" 2>&1` |
9bfc0be4 | 12205 | else |
569dd5d0 | 12206 | LIBSANLOCKCLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsanlock_client >= 3.7.0" 2>&1` |
9bfc0be4 | 12207 | fi |
a7cf55c6 ZK |
12208 | # Put the nasty error message in config.log where it belongs |
12209 | echo "$LIBSANLOCKCLIENT_PKG_ERRORS" >&5 | |
9bfc0be4 | 12210 | |
569dd5d0 | 12211 | as_fn_error $? "Package requirements (libsanlock_client >= 3.7.0) were not met: |
86ac529b ZK |
12212 | |
12213 | $LIBSANLOCKCLIENT_PKG_ERRORS | |
12214 | ||
12215 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12216 | installed software in a non-standard prefix. | |
12217 | ||
12218 | Alternatively, you may set the environment variables LIBSANLOCKCLIENT_CFLAGS | |
12219 | and LIBSANLOCKCLIENT_LIBS to avoid the need to call pkg-config. | |
12220 | See the pkg-config man page for more details." "$LINENO" 5 | |
9bfc0be4 | 12221 | elif test $pkg_failed = untried; then |
a7cf55c6 | 12222 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 12223 | printf "%s\n" "no" >&6; } |
635df748 ZK |
12224 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
12225 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
86ac529b ZK |
12226 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
12227 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12228 | path to pkg-config. | |
12229 | ||
12230 | Alternatively, you may set the environment variables LIBSANLOCKCLIENT_CFLAGS | |
12231 | and LIBSANLOCKCLIENT_LIBS to avoid the need to call pkg-config. | |
12232 | See the pkg-config man page for more details. | |
12233 | ||
12234 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
635df748 | 12235 | See 'config.log' for more details" "$LINENO" 5; } |
9bfc0be4 | 12236 | else |
a7cf55c6 ZK |
12237 | LIBSANLOCKCLIENT_CFLAGS=$pkg_cv_LIBSANLOCKCLIENT_CFLAGS |
12238 | LIBSANLOCKCLIENT_LIBS=$pkg_cv_LIBSANLOCKCLIENT_LIBS | |
6b2e4ec5 ZK |
12239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12240 | printf "%s\n" "yes" >&6; } | |
a7cf55c6 | 12241 | BUILD_LVMLOCKD="yes" |
50172847 | 12242 | fi |
9bfc0be4 | 12243 | |
6b2e4ec5 | 12244 | printf "%s\n" "#define LOCKDSANLOCK_SUPPORT 1" >>confdefs.h |
20e336f2 | 12245 | |
b681b774 | 12246 | |
0d22b581 | 12247 | fi |
20e336f2 | 12248 | |
546db1c4 | 12249 | ################################################################################ |
6b2e4ec5 ZK |
12250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockddlm" >&5 |
12251 | printf %s "checking whether to build lvmlockddlm... " >&6; } | |
0d22b581 | 12252 | # Check whether --enable-lvmlockd-dlm was given. |
6b2e4ec5 ZK |
12253 | if test ${enable_lvmlockd_dlm+y} |
12254 | then : | |
07cd341b | 12255 | enableval=$enable_lvmlockd_dlm; BUILD_LOCKDDLM=$enableval |
635df748 ZK |
12256 | else case e in #( |
12257 | e) BUILD_LOCKDDLM="no" ;; | |
12258 | esac | |
546db1c4 PR |
12259 | fi |
12260 | ||
07cd341b ZK |
12261 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDDLM" >&5 |
12262 | printf "%s\n" "$BUILD_LOCKDDLM" >&6; } | |
0d22b581 | 12263 | |
b681b774 ZK |
12264 | if test "$BUILD_LOCKDDLM" = "yes" |
12265 | then : | |
12266 | ||
74ed1ba9 PR |
12267 | |
12268 | pkg_failed=no | |
a7cf55c6 ZK |
12269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdlm_lt" >&5 |
12270 | printf %s "checking for libdlm_lt... " >&6; } | |
74ed1ba9 | 12271 | |
a861f042 ZK |
12272 | if test -n "$LIBDLM_CFLAGS"; then |
12273 | pkg_cv_LIBDLM_CFLAGS="$LIBDLM_CFLAGS" | |
74ed1ba9 PR |
12274 | elif test -n "$PKG_CONFIG"; then |
12275 | if test -n "$PKG_CONFIG" && \ | |
86ac529b ZK |
12276 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm_lt\""; } >&5 |
12277 | ($PKG_CONFIG --exists --print-errors "libdlm_lt") 2>&5 | |
74ed1ba9 | 12278 | ac_status=$? |
6b2e4ec5 | 12279 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
74ed1ba9 | 12280 | test $ac_status = 0; }; then |
86ac529b | 12281 | pkg_cv_LIBDLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm_lt" 2>/dev/null` |
74ed1ba9 PR |
12282 | test "x$?" != "x0" && pkg_failed=yes |
12283 | else | |
12284 | pkg_failed=yes | |
12285 | fi | |
12286 | else | |
12287 | pkg_failed=untried | |
12288 | fi | |
a861f042 ZK |
12289 | if test -n "$LIBDLM_LIBS"; then |
12290 | pkg_cv_LIBDLM_LIBS="$LIBDLM_LIBS" | |
74ed1ba9 PR |
12291 | elif test -n "$PKG_CONFIG"; then |
12292 | if test -n "$PKG_CONFIG" && \ | |
86ac529b ZK |
12293 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm_lt\""; } >&5 |
12294 | ($PKG_CONFIG --exists --print-errors "libdlm_lt") 2>&5 | |
74ed1ba9 | 12295 | ac_status=$? |
6b2e4ec5 | 12296 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
74ed1ba9 | 12297 | test $ac_status = 0; }; then |
86ac529b | 12298 | pkg_cv_LIBDLM_LIBS=`$PKG_CONFIG --libs "libdlm_lt" 2>/dev/null` |
74ed1ba9 PR |
12299 | test "x$?" != "x0" && pkg_failed=yes |
12300 | else | |
12301 | pkg_failed=yes | |
12302 | fi | |
12303 | else | |
12304 | pkg_failed=untried | |
12305 | fi | |
12306 | ||
12307 | ||
12308 | ||
12309 | if test $pkg_failed = yes; then | |
a7cf55c6 | 12310 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 12311 | printf "%s\n" "no" >&6; } |
74ed1ba9 PR |
12312 | |
12313 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12314 | _pkg_short_errors_supported=yes | |
12315 | else | |
12316 | _pkg_short_errors_supported=no | |
12317 | fi | |
12318 | if test $_pkg_short_errors_supported = yes; then | |
a7cf55c6 | 12319 | LIBDLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdlm_lt" 2>&1` |
74ed1ba9 | 12320 | else |
a7cf55c6 | 12321 | LIBDLM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdlm_lt" 2>&1` |
74ed1ba9 | 12322 | fi |
a7cf55c6 ZK |
12323 | # Put the nasty error message in config.log where it belongs |
12324 | echo "$LIBDLM_PKG_ERRORS" >&5 | |
74ed1ba9 | 12325 | |
a7cf55c6 | 12326 | as_fn_error $? "Package requirements (libdlm_lt) were not met: |
86ac529b ZK |
12327 | |
12328 | $LIBDLM_PKG_ERRORS | |
12329 | ||
12330 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12331 | installed software in a non-standard prefix. | |
12332 | ||
12333 | Alternatively, you may set the environment variables LIBDLM_CFLAGS | |
12334 | and LIBDLM_LIBS to avoid the need to call pkg-config. | |
12335 | See the pkg-config man page for more details." "$LINENO" 5 | |
74ed1ba9 | 12336 | elif test $pkg_failed = untried; then |
a7cf55c6 | 12337 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 12338 | printf "%s\n" "no" >&6; } |
635df748 ZK |
12339 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
12340 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
86ac529b ZK |
12341 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
12342 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12343 | path to pkg-config. | |
12344 | ||
12345 | Alternatively, you may set the environment variables LIBDLM_CFLAGS | |
12346 | and LIBDLM_LIBS to avoid the need to call pkg-config. | |
12347 | See the pkg-config man page for more details. | |
12348 | ||
12349 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
635df748 | 12350 | See 'config.log' for more details" "$LINENO" 5; } |
74ed1ba9 | 12351 | else |
a7cf55c6 ZK |
12352 | LIBDLM_CFLAGS=$pkg_cv_LIBDLM_CFLAGS |
12353 | LIBDLM_LIBS=$pkg_cv_LIBDLM_LIBS | |
6b2e4ec5 ZK |
12354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12355 | printf "%s\n" "yes" >&6; } | |
a7cf55c6 | 12356 | BUILD_LVMLOCKD="yes" |
74ed1ba9 PR |
12357 | fi |
12358 | ||
6b2e4ec5 | 12359 | printf "%s\n" "#define LOCKDDLM_SUPPORT 1" >>confdefs.h |
50172847 | 12360 | |
86ac529b ZK |
12361 | case "$LIBDLM_LIBS" in #( |
12362 | *lpthread*) : | |
12363 | ||
12364 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: replacing pkg-config --libs libdlm_lt \"$LIBDLM_LIBS\" with... -ldlm_lt" >&5 | |
12365 | printf "%s\n" "replacing pkg-config --libs libdlm_lt \"$LIBDLM_LIBS\" with... -ldlm_lt" >&6; } | |
12366 | LIBDLM_LIBS="${LIBDLM_LIBS%%ldlm*}ldlm_lt" ;; #( | |
12367 | *) : | |
12368 | ;; | |
12369 | esac | |
b681b774 | 12370 | |
7a197a62 | 12371 | fi |
ad6254c5 | 12372 | |
07d41de7 | 12373 | ################################################################################ |
6b2e4ec5 ZK |
12374 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockddlmcontrol" >&5 |
12375 | printf %s "checking whether to build lvmlockddlmcontrol... " >&6; } | |
07d41de7 | 12376 | # Check whether --enable-lvmlockd-dlmcontrol was given. |
6b2e4ec5 ZK |
12377 | if test ${enable_lvmlockd_dlmcontrol+y} |
12378 | then : | |
07cd341b | 12379 | enableval=$enable_lvmlockd_dlmcontrol; BUILD_LOCKDDLM_CONTROL=$enableval |
635df748 ZK |
12380 | else case e in #( |
12381 | e) BUILD_LOCKDDLM_CONTROL="no" ;; | |
12382 | esac | |
07d41de7 MC |
12383 | fi |
12384 | ||
07cd341b ZK |
12385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDDLM_CONTROL" >&5 |
12386 | printf "%s\n" "$BUILD_LOCKDDLM_CONTROL" >&6; } | |
07d41de7 | 12387 | |
b681b774 ZK |
12388 | if test "$BUILD_LOCKDDLM_CONTROL" = "yes" |
12389 | then : | |
12390 | ||
07d41de7 MC |
12391 | |
12392 | pkg_failed=no | |
a7cf55c6 ZK |
12393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdlmcontrol >= 3.2" >&5 |
12394 | printf %s "checking for libdlmcontrol >= 3.2... " >&6; } | |
07d41de7 | 12395 | |
a861f042 ZK |
12396 | if test -n "$LIBDLMCONTROL_CFLAGS"; then |
12397 | pkg_cv_LIBDLMCONTROL_CFLAGS="$LIBDLMCONTROL_CFLAGS" | |
07d41de7 MC |
12398 | elif test -n "$PKG_CONFIG"; then |
12399 | if test -n "$PKG_CONFIG" && \ | |
6b2e4ec5 | 12400 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlmcontrol >= 3.2\""; } >&5 |
07d41de7 MC |
12401 | ($PKG_CONFIG --exists --print-errors "libdlmcontrol >= 3.2") 2>&5 |
12402 | ac_status=$? | |
6b2e4ec5 | 12403 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
07d41de7 | 12404 | test $ac_status = 0; }; then |
a861f042 | 12405 | pkg_cv_LIBDLMCONTROL_CFLAGS=`$PKG_CONFIG --cflags "libdlmcontrol >= 3.2" 2>/dev/null` |
07d41de7 MC |
12406 | test "x$?" != "x0" && pkg_failed=yes |
12407 | else | |
12408 | pkg_failed=yes | |
12409 | fi | |
12410 | else | |
12411 | pkg_failed=untried | |
12412 | fi | |
a861f042 ZK |
12413 | if test -n "$LIBDLMCONTROL_LIBS"; then |
12414 | pkg_cv_LIBDLMCONTROL_LIBS="$LIBDLMCONTROL_LIBS" | |
07d41de7 MC |
12415 | elif test -n "$PKG_CONFIG"; then |
12416 | if test -n "$PKG_CONFIG" && \ | |
6b2e4ec5 | 12417 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlmcontrol >= 3.2\""; } >&5 |
07d41de7 MC |
12418 | ($PKG_CONFIG --exists --print-errors "libdlmcontrol >= 3.2") 2>&5 |
12419 | ac_status=$? | |
6b2e4ec5 | 12420 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
07d41de7 | 12421 | test $ac_status = 0; }; then |
a861f042 | 12422 | pkg_cv_LIBDLMCONTROL_LIBS=`$PKG_CONFIG --libs "libdlmcontrol >= 3.2" 2>/dev/null` |
07d41de7 MC |
12423 | test "x$?" != "x0" && pkg_failed=yes |
12424 | else | |
12425 | pkg_failed=yes | |
12426 | fi | |
12427 | else | |
12428 | pkg_failed=untried | |
12429 | fi | |
12430 | ||
12431 | ||
12432 | ||
12433 | if test $pkg_failed = yes; then | |
a7cf55c6 | 12434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 12435 | printf "%s\n" "no" >&6; } |
07d41de7 MC |
12436 | |
12437 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12438 | _pkg_short_errors_supported=yes | |
12439 | else | |
12440 | _pkg_short_errors_supported=no | |
12441 | fi | |
12442 | if test $_pkg_short_errors_supported = yes; then | |
a7cf55c6 | 12443 | LIBDLMCONTROL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdlmcontrol >= 3.2" 2>&1` |
07d41de7 | 12444 | else |
a7cf55c6 | 12445 | LIBDLMCONTROL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdlmcontrol >= 3.2" 2>&1` |
07d41de7 | 12446 | fi |
a7cf55c6 ZK |
12447 | # Put the nasty error message in config.log where it belongs |
12448 | echo "$LIBDLMCONTROL_PKG_ERRORS" >&5 | |
07d41de7 | 12449 | |
a7cf55c6 | 12450 | as_fn_error $? "Package requirements (libdlmcontrol >= 3.2) were not met: |
86ac529b ZK |
12451 | |
12452 | $LIBDLMCONTROL_PKG_ERRORS | |
12453 | ||
12454 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12455 | installed software in a non-standard prefix. | |
12456 | ||
12457 | Alternatively, you may set the environment variables LIBDLMCONTROL_CFLAGS | |
12458 | and LIBDLMCONTROL_LIBS to avoid the need to call pkg-config. | |
12459 | See the pkg-config man page for more details." "$LINENO" 5 | |
07d41de7 | 12460 | elif test $pkg_failed = untried; then |
a7cf55c6 | 12461 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 12462 | printf "%s\n" "no" >&6; } |
635df748 ZK |
12463 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
12464 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
86ac529b ZK |
12465 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
12466 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12467 | path to pkg-config. | |
12468 | ||
12469 | Alternatively, you may set the environment variables LIBDLMCONTROL_CFLAGS | |
12470 | and LIBDLMCONTROL_LIBS to avoid the need to call pkg-config. | |
12471 | See the pkg-config man page for more details. | |
12472 | ||
12473 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
635df748 | 12474 | See 'config.log' for more details" "$LINENO" 5; } |
07d41de7 | 12475 | else |
a7cf55c6 ZK |
12476 | LIBDLMCONTROL_CFLAGS=$pkg_cv_LIBDLMCONTROL_CFLAGS |
12477 | LIBDLMCONTROL_LIBS=$pkg_cv_LIBDLMCONTROL_LIBS | |
6b2e4ec5 ZK |
12478 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12479 | printf "%s\n" "yes" >&6; } | |
a7cf55c6 | 12480 | BUILD_LVMLOCKD="yes" |
07d41de7 MC |
12481 | fi |
12482 | ||
6b2e4ec5 | 12483 | printf "%s\n" "#define LOCKDDLM_CONTROL_SUPPORT 1" >>confdefs.h |
07d41de7 | 12484 | |
b681b774 | 12485 | |
07d41de7 MC |
12486 | fi |
12487 | ||
7a8b7b4a | 12488 | ################################################################################ |
6b2e4ec5 ZK |
12489 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockdidm" >&5 |
12490 | printf %s "checking whether to build lvmlockdidm... " >&6; } | |
7a8b7b4a | 12491 | # Check whether --enable-lvmlockd-idm was given. |
6b2e4ec5 ZK |
12492 | if test ${enable_lvmlockd_idm+y} |
12493 | then : | |
07cd341b | 12494 | enableval=$enable_lvmlockd_idm; BUILD_LOCKDIDM=$enableval |
635df748 ZK |
12495 | else case e in #( |
12496 | e) BUILD_LOCKDIDM="no" ;; | |
12497 | esac | |
7a8b7b4a LY |
12498 | fi |
12499 | ||
07cd341b ZK |
12500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDIDM" >&5 |
12501 | printf "%s\n" "$BUILD_LOCKDIDM" >&6; } | |
7a8b7b4a | 12502 | |
b681b774 ZK |
12503 | if test "$BUILD_LOCKDIDM" = "yes" |
12504 | then : | |
12505 | ||
a861f042 ZK |
12506 | if test -n "$PKG_CONFIG" && \ |
12507 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5 | |
12508 | ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5 | |
12509 | ac_status=$? | |
12510 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12511 | test $ac_status = 0; }; then | |
12512 | ||
7a8b7b4a LY |
12513 | |
12514 | pkg_failed=no | |
a7cf55c6 ZK |
12515 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseagate_ilm >= 0.1.0" >&5 |
12516 | printf %s "checking for libseagate_ilm >= 0.1.0... " >&6; } | |
7a8b7b4a | 12517 | |
a861f042 ZK |
12518 | if test -n "$LIBSEAGATEILM_CFLAGS"; then |
12519 | pkg_cv_LIBSEAGATEILM_CFLAGS="$LIBSEAGATEILM_CFLAGS" | |
7a8b7b4a LY |
12520 | elif test -n "$PKG_CONFIG"; then |
12521 | if test -n "$PKG_CONFIG" && \ | |
6b2e4ec5 | 12522 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libseagate_ilm >= 0.1.0\""; } >&5 |
7a8b7b4a LY |
12523 | ($PKG_CONFIG --exists --print-errors "libseagate_ilm >= 0.1.0") 2>&5 |
12524 | ac_status=$? | |
6b2e4ec5 | 12525 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7a8b7b4a | 12526 | test $ac_status = 0; }; then |
a861f042 | 12527 | pkg_cv_LIBSEAGATEILM_CFLAGS=`$PKG_CONFIG --cflags "libseagate_ilm >= 0.1.0" 2>/dev/null` |
7a8b7b4a LY |
12528 | test "x$?" != "x0" && pkg_failed=yes |
12529 | else | |
12530 | pkg_failed=yes | |
12531 | fi | |
12532 | else | |
12533 | pkg_failed=untried | |
12534 | fi | |
a861f042 ZK |
12535 | if test -n "$LIBSEAGATEILM_LIBS"; then |
12536 | pkg_cv_LIBSEAGATEILM_LIBS="$LIBSEAGATEILM_LIBS" | |
7a8b7b4a LY |
12537 | elif test -n "$PKG_CONFIG"; then |
12538 | if test -n "$PKG_CONFIG" && \ | |
6b2e4ec5 | 12539 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libseagate_ilm >= 0.1.0\""; } >&5 |
7a8b7b4a LY |
12540 | ($PKG_CONFIG --exists --print-errors "libseagate_ilm >= 0.1.0") 2>&5 |
12541 | ac_status=$? | |
6b2e4ec5 | 12542 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7a8b7b4a | 12543 | test $ac_status = 0; }; then |
a861f042 | 12544 | pkg_cv_LIBSEAGATEILM_LIBS=`$PKG_CONFIG --libs "libseagate_ilm >= 0.1.0" 2>/dev/null` |
7a8b7b4a LY |
12545 | test "x$?" != "x0" && pkg_failed=yes |
12546 | else | |
12547 | pkg_failed=yes | |
12548 | fi | |
12549 | else | |
12550 | pkg_failed=untried | |
12551 | fi | |
12552 | ||
12553 | ||
12554 | ||
12555 | if test $pkg_failed = yes; then | |
a7cf55c6 | 12556 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 12557 | printf "%s\n" "no" >&6; } |
7a8b7b4a LY |
12558 | |
12559 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12560 | _pkg_short_errors_supported=yes | |
12561 | else | |
12562 | _pkg_short_errors_supported=no | |
12563 | fi | |
12564 | if test $_pkg_short_errors_supported = yes; then | |
a7cf55c6 | 12565 | LIBSEAGATEILM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libseagate_ilm >= 0.1.0" 2>&1` |
7a8b7b4a | 12566 | else |
a7cf55c6 | 12567 | LIBSEAGATEILM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libseagate_ilm >= 0.1.0" 2>&1` |
7a8b7b4a | 12568 | fi |
a7cf55c6 ZK |
12569 | # Put the nasty error message in config.log where it belongs |
12570 | echo "$LIBSEAGATEILM_PKG_ERRORS" >&5 | |
7a8b7b4a | 12571 | |
a7cf55c6 | 12572 | as_fn_error $? "Package requirements (libseagate_ilm >= 0.1.0) were not met: |
86ac529b ZK |
12573 | |
12574 | $LIBSEAGATEILM_PKG_ERRORS | |
12575 | ||
12576 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12577 | installed software in a non-standard prefix. | |
12578 | ||
12579 | Alternatively, you may set the environment variables LIBSEAGATEILM_CFLAGS | |
12580 | and LIBSEAGATEILM_LIBS to avoid the need to call pkg-config. | |
12581 | See the pkg-config man page for more details." "$LINENO" 5 | |
7a8b7b4a | 12582 | elif test $pkg_failed = untried; then |
a7cf55c6 | 12583 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 12584 | printf "%s\n" "no" >&6; } |
635df748 ZK |
12585 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
12586 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
86ac529b ZK |
12587 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
12588 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12589 | path to pkg-config. | |
12590 | ||
12591 | Alternatively, you may set the environment variables LIBSEAGATEILM_CFLAGS | |
12592 | and LIBSEAGATEILM_LIBS to avoid the need to call pkg-config. | |
12593 | See the pkg-config man page for more details. | |
12594 | ||
12595 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
635df748 | 12596 | See 'config.log' for more details" "$LINENO" 5; } |
7a8b7b4a | 12597 | else |
a7cf55c6 ZK |
12598 | LIBSEAGATEILM_CFLAGS=$pkg_cv_LIBSEAGATEILM_CFLAGS |
12599 | LIBSEAGATEILM_LIBS=$pkg_cv_LIBSEAGATEILM_LIBS | |
6b2e4ec5 ZK |
12600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12601 | printf "%s\n" "yes" >&6; } | |
a7cf55c6 | 12602 | BUILD_LVMLOCKD="yes" |
7a8b7b4a LY |
12603 | fi |
12604 | ||
6b2e4ec5 | 12605 | printf "%s\n" "#define LOCKDIDM_SUPPORT 1" >>confdefs.h |
7a8b7b4a | 12606 | |
86ac529b ZK |
12607 | if test -z "$LIBSEAGATEILM_LIBS" |
12608 | then : | |
12609 | LIBSEAGATEILM_LIBS="-lseagate_ilm" | |
12610 | fi | |
a861f042 ZK |
12611 | |
12612 | else | |
12613 | $bailout | |
12614 | fi | |
b681b774 | 12615 | |
7a8b7b4a LY |
12616 | fi |
12617 | ||
0d22b581 | 12618 | ################################################################################ |
6b2e4ec5 ZK |
12619 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockd" >&5 |
12620 | printf %s "checking whether to build lvmlockd... " >&6; } | |
12621 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMLOCKD" >&5 | |
12622 | printf "%s\n" "$BUILD_LVMLOCKD" >&6; } | |
d93275eb | 12623 | |
a7cf55c6 | 12624 | DEFAULT_USE_LVMLOCKD=0 |
b681b774 ZK |
12625 | if test "$BUILD_LVMLOCKD" = "yes" |
12626 | then : | |
12627 | ||
12628 | if test "$LVMPOLLD" = "no" | |
6b2e4ec5 | 12629 | then : |
0d22b581 | 12630 | as_fn_error $? "cannot build lvmlockd with --disable-lvmpolld." "$LINENO" 5 |
f11781c5 | 12631 | fi |
b681b774 | 12632 | if test "$BUILD_LVMPOLLD" = "no" |
6b2e4ec5 ZK |
12633 | then : |
12634 | BUILD_LVMPOLLD=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enabling lvmpolld - required by lvmlockd." >&5 | |
12635 | printf "%s\n" "$as_me: WARNING: Enabling lvmpolld - required by lvmlockd." >&2;} | |
0d22b581 | 12636 | fi |
6b2e4ec5 ZK |
12637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking defaults for use_lvmlockd" >&5 |
12638 | printf %s "checking defaults for use_lvmlockd... " >&6; } | |
0d22b581 | 12639 | # Check whether --enable-use_lvmlockd was given. |
6b2e4ec5 ZK |
12640 | if test ${enable_use_lvmlockd+y} |
12641 | then : | |
a7cf55c6 | 12642 | enableval=$enable_use_lvmlockd; use_lvmlockd=$enableval |
635df748 ZK |
12643 | else case e in #( |
12644 | e) use_lvmlockd="yes" ;; | |
12645 | esac | |
b681b774 | 12646 | fi |
a7cf55c6 ZK |
12647 | |
12648 | if test "$use_lvmlockd" = "yes" | |
12649 | then : | |
0d22b581 | 12650 | DEFAULT_USE_LVMLOCKD=1 |
d93275eb | 12651 | fi |
6b2e4ec5 ZK |
12652 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_LVMLOCKD" >&5 |
12653 | printf "%s\n" "$DEFAULT_USE_LVMLOCKD" >&6; } | |
d93275eb | 12654 | |
6b2e4ec5 | 12655 | printf "%s\n" "#define LVMLOCKD_SUPPORT 1" >>confdefs.h |
d93275eb | 12656 | |
d93275eb | 12657 | |
0d22b581 JT |
12658 | |
12659 | # Check whether --with-lvmlockd-pidfile was given. | |
6b2e4ec5 ZK |
12660 | if test ${with_lvmlockd_pidfile+y} |
12661 | then : | |
0d22b581 | 12662 | withval=$with_lvmlockd_pidfile; LVMLOCKD_PIDFILE=$withval |
635df748 ZK |
12663 | else case e in #( |
12664 | e) LVMLOCKD_PIDFILE="$DEFAULT_PID_DIR/lvmlockd.pid" ;; | |
12665 | esac | |
d93275eb | 12666 | fi |
d93275eb | 12667 | |
d93275eb | 12668 | |
6b2e4ec5 | 12669 | printf "%s\n" "#define LVMLOCKD_PIDFILE \"$LVMLOCKD_PIDFILE\"" >>confdefs.h |
d93275eb | 12670 | |
b681b774 | 12671 | |
0d22b581 | 12672 | fi |
d93275eb | 12673 | |
6b2e4ec5 | 12674 | printf "%s\n" "#define DEFAULT_USE_LVMLOCKD $DEFAULT_USE_LVMLOCKD" >>confdefs.h |
d93275eb | 12675 | |
d93275eb | 12676 | |
0d22b581 | 12677 | ################################################################################ |
a7cf55c6 | 12678 | DEFAULT_USE_LVMPOLLD=0 |
b681b774 ZK |
12679 | if test "$BUILD_LVMPOLLD" = "yes" |
12680 | then : | |
12681 | ||
6b2e4ec5 ZK |
12682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking defaults for use_lvmpolld" >&5 |
12683 | printf %s "checking defaults for use_lvmpolld... " >&6; } | |
0d22b581 | 12684 | # Check whether --enable-use_lvmpolld was given. |
6b2e4ec5 ZK |
12685 | if test ${enable_use_lvmpolld+y} |
12686 | then : | |
a7cf55c6 | 12687 | enableval=$enable_use_lvmpolld; use_lvmpolld=$enableval |
635df748 ZK |
12688 | else case e in #( |
12689 | e) use_lvmpolld="yes" ;; | |
12690 | esac | |
b681b774 | 12691 | fi |
a7cf55c6 ZK |
12692 | |
12693 | if test "$use_lvmpolld" = "yes" | |
12694 | then : | |
0d22b581 | 12695 | DEFAULT_USE_LVMPOLLD=1 |
f11781c5 | 12696 | fi |
6b2e4ec5 ZK |
12697 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_LVMPOLLD" >&5 |
12698 | printf "%s\n" "$DEFAULT_USE_LVMPOLLD" >&6; } | |
0d22b581 | 12699 | |
6b2e4ec5 | 12700 | printf "%s\n" "#define LVMPOLLD_SUPPORT 1" >>confdefs.h |
0d22b581 JT |
12701 | |
12702 | ||
12703 | ||
12704 | # Check whether --with-lvmpolld-pidfile was given. | |
6b2e4ec5 ZK |
12705 | if test ${with_lvmpolld_pidfile+y} |
12706 | then : | |
0d22b581 | 12707 | withval=$with_lvmpolld_pidfile; LVMPOLLD_PIDFILE=$withval |
635df748 ZK |
12708 | else case e in #( |
12709 | e) LVMPOLLD_PIDFILE="$DEFAULT_PID_DIR/lvmpolld.pid" ;; | |
12710 | esac | |
68f2de6d AK |
12711 | fi |
12712 | ||
12713 | ||
6b2e4ec5 | 12714 | printf "%s\n" "#define LVMPOLLD_PIDFILE \"$LVMPOLLD_PIDFILE\"" >>confdefs.h |
0d22b581 | 12715 | |
b681b774 | 12716 | |
5723db01 PR |
12717 | fi |
12718 | ||
6b2e4ec5 | 12719 | printf "%s\n" "#define DEFAULT_USE_LVMPOLLD $DEFAULT_USE_LVMPOLLD" >>confdefs.h |
5723db01 | 12720 | |
b559a1e6 | 12721 | |
2061c0ec | 12722 | |
bf87b835 | 12723 | SYSTEMD_MIN_VERSION=0 |
0627716f | 12724 | NOTIFYDBUS_SUPPORT="no" |
8b8b8ac1 ZK |
12725 | SYSTEMD_JOURNAL_SUPPORT="no" |
12726 | APP_MACHINEID_SUPPORT="no" | |
8b8b8ac1 ZK |
12727 | if test "$with_systemd" = "yes" |
12728 | then : | |
12729 | if test -n "$PKG_CONFIG" && \ | |
a7cf55c6 ZK |
12730 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= 221\""; } >&5 |
12731 | ($PKG_CONFIG --exists --print-errors "systemd >= 221") 2>&5 | |
bf87b835 | 12732 | ac_status=$? |
6b2e4ec5 | 12733 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
bf87b835 | 12734 | test $ac_status = 0; }; then |
0627716f | 12735 | SYSTEMD_MIN_VERSION=221 NOTIFYDBUS_SUPPORT="maybe" SYSTEMD_JOURNAL_SUPPORT="maybe" |
bf87b835 | 12736 | fi |
8b8b8ac1 | 12737 | if test -n "$PKG_CONFIG" && \ |
a7cf55c6 ZK |
12738 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= 234\""; } >&5 |
12739 | ($PKG_CONFIG --exists --print-errors "systemd >= 234") 2>&5 | |
bf87b835 | 12740 | ac_status=$? |
6b2e4ec5 | 12741 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
bf87b835 | 12742 | test $ac_status = 0; }; then |
8b8b8ac1 ZK |
12743 | SYSTEMD_MIN_VERSION=234 APP_MACHINEID_SUPPORT="maybe" |
12744 | fi | |
bf87b835 | 12745 | fi |
a7cf55c6 | 12746 | |
f11781c5 | 12747 | ################################################################################ |
8b8b8ac1 | 12748 | if test "$SYSTEMD_JOURNAL_SUPPORT" != "no" |
6b2e4ec5 | 12749 | then : |
8b8b8ac1 | 12750 | ac_fn_c_check_header_compile "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default" |
6b2e4ec5 | 12751 | if test "x$ac_cv_header_systemd_sd_journal_h" = xyes |
6b2e4ec5 | 12752 | then : |
b681b774 | 12753 | SYSTEMD_JOURNAL_SUPPORT="yes" |
635df748 ZK |
12754 | else case e in #( |
12755 | e) SYSTEMD_JOURNAL_SUPPORT="no" ;; | |
12756 | esac | |
0d22b581 | 12757 | fi |
b73e1cd4 | 12758 | |
8b8b8ac1 | 12759 | fi |
b73e1cd4 | 12760 | # Check whether --enable-systemd-journal was given. |
6b2e4ec5 ZK |
12761 | if test ${enable_systemd_journal+y} |
12762 | then : | |
b681b774 | 12763 | enableval=$enable_systemd_journal; if test "$enableval" = "yes" && test "$SYSTEMD_JOURNAL_SUPPORT" = "no" |
6b2e4ec5 | 12764 | then : |
8b8b8ac1 | 12765 | as_fn_error $? "--enable-systemd-journal requires systemd/sd-journal.h and systemd >= 221. (--with-systemd=$with_systemd)" "$LINENO" 5 |
fe00b163 | 12766 | fi |
b73e1cd4 | 12767 | SYSTEMD_JOURNAL_SUPPORT=$enableval |
f11781c5 | 12768 | fi |
ad6254c5 | 12769 | |
8b8b8ac1 ZK |
12770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to log to systemd journal" >&5 |
12771 | printf %s "checking whether to log to systemd journal... " >&6; } | |
6b2e4ec5 ZK |
12772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_JOURNAL_SUPPORT" >&5 |
12773 | printf "%s\n" "$SYSTEMD_JOURNAL_SUPPORT" >&6; } | |
f11781c5 | 12774 | |
b681b774 | 12775 | if test "$SYSTEMD_JOURNAL_SUPPORT" = "yes" |
6b2e4ec5 | 12776 | then : |
f11781c5 | 12777 | |
6b2e4ec5 | 12778 | printf "%s\n" "#define SYSTEMD_JOURNAL_SUPPORT 1" >>confdefs.h |
ad6254c5 | 12779 | |
ad6254c5 | 12780 | fi |
ad6254c5 | 12781 | |
b73e1cd4 | 12782 | ################################################################################ |
8b8b8ac1 | 12783 | if test "$APP_MACHINEID_SUPPORT" != "no" |
a7cf55c6 | 12784 | then : |
8b8b8ac1 | 12785 | ac_fn_c_check_header_compile "$LINENO" "systemd/sd-id128.h" "ac_cv_header_systemd_sd_id128_h" "$ac_includes_default" |
6b2e4ec5 | 12786 | if test "x$ac_cv_header_systemd_sd_id128_h" = xyes |
6b2e4ec5 | 12787 | then : |
b681b774 | 12788 | APP_MACHINEID_SUPPORT="yes" |
635df748 ZK |
12789 | else case e in #( |
12790 | e) APP_MACHINEID_SUPPORT="no" ;; | |
12791 | esac | |
0c46f9cf | 12792 | fi |
ad6254c5 | 12793 | |
8b8b8ac1 | 12794 | fi |
5ac4b662 | 12795 | # Check whether --enable-app-machineid was given. |
6b2e4ec5 ZK |
12796 | if test ${enable_app_machineid+y} |
12797 | then : | |
b681b774 | 12798 | enableval=$enable_app_machineid; if test "$enableval" = "yes" && test "$APP_MACHINEID_SUPPORT" = "no" |
6b2e4ec5 | 12799 | then : |
8b8b8ac1 | 12800 | as_fn_error $? "--enable-app-machineid requires systemd/sd-id128.h and systemd >= 234. (--with-systemd=$with_systemd)" "$LINENO" 5 |
b73e1cd4 ZK |
12801 | fi |
12802 | APP_MACHINEID_SUPPORT=$enableval | |
5ac4b662 MC |
12803 | fi |
12804 | ||
8b8b8ac1 ZK |
12805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support systemd appmachineid" >&5 |
12806 | printf %s "checking whether to support systemd appmachineid... " >&6; } | |
6b2e4ec5 ZK |
12807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APP_MACHINEID_SUPPORT" >&5 |
12808 | printf "%s\n" "$APP_MACHINEID_SUPPORT" >&6; } | |
5ac4b662 | 12809 | |
b681b774 | 12810 | if test "$APP_MACHINEID_SUPPORT" = "yes" |
6b2e4ec5 | 12811 | then : |
5ac4b662 | 12812 | |
6b2e4ec5 | 12813 | printf "%s\n" "#define APP_MACHINEID_SUPPORT 1" >>confdefs.h |
5ac4b662 | 12814 | |
5ac4b662 MC |
12815 | fi |
12816 | ||
f11781c5 | 12817 | ################################################################################ |
f11781c5 | 12818 | |
21edfc4a ZK |
12819 | # Check whether --with-systemd-run was given. |
12820 | if test ${with_systemd_run+y} | |
12821 | then : | |
12822 | withval=$with_systemd_run; SYSTEMD_RUN_CMD=$withval | |
635df748 ZK |
12823 | else case e in #( |
12824 | e) SYSTEMD_RUN_CMD="autodetect" ;; | |
12825 | esac | |
21edfc4a ZK |
12826 | fi |
12827 | ||
21edfc4a ZK |
12828 | if test "$SYSTEMD_RUN_CMD" = "autodetect" |
12829 | then : | |
12830 | if test -n "$ac_tool_prefix"; then | |
12831 | # Extract the first word of "${ac_tool_prefix}systemd-run", so it can be a program name with args. | |
12832 | set dummy ${ac_tool_prefix}systemd-run; ac_word=$2 | |
12833 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12834 | printf %s "checking for $ac_word... " >&6; } | |
12835 | if test ${ac_cv_path_SYSTEMD_RUN_CMD+y} | |
12836 | then : | |
12837 | printf %s "(cached) " >&6 | |
635df748 ZK |
12838 | else case e in #( |
12839 | e) case $SYSTEMD_RUN_CMD in | |
21edfc4a ZK |
12840 | [\\/]* | ?:[\\/]*) |
12841 | ac_cv_path_SYSTEMD_RUN_CMD="$SYSTEMD_RUN_CMD" # Let the user override the test with a path. | |
12842 | ;; | |
12843 | *) | |
12844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12845 | for as_dir in $PATH | |
12846 | do | |
12847 | IFS=$as_save_IFS | |
12848 | case $as_dir in #((( | |
12849 | '') as_dir=./ ;; | |
12850 | */) ;; | |
12851 | *) as_dir=$as_dir/ ;; | |
12852 | esac | |
12853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12854 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
12855 | ac_cv_path_SYSTEMD_RUN_CMD="$as_dir$ac_word$ac_exec_ext" | |
12856 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
12857 | break 2 | |
12858 | fi | |
12859 | done | |
12860 | done | |
12861 | IFS=$as_save_IFS | |
12862 | ||
12863 | ;; | |
635df748 | 12864 | esac ;; |
21edfc4a ZK |
12865 | esac |
12866 | fi | |
12867 | SYSTEMD_RUN_CMD=$ac_cv_path_SYSTEMD_RUN_CMD | |
12868 | if test -n "$SYSTEMD_RUN_CMD"; then | |
12869 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_RUN_CMD" >&5 | |
12870 | printf "%s\n" "$SYSTEMD_RUN_CMD" >&6; } | |
12871 | else | |
12872 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12873 | printf "%s\n" "no" >&6; } | |
12874 | fi | |
12875 | ||
12876 | ||
12877 | fi | |
12878 | if test -z "$ac_cv_path_SYSTEMD_RUN_CMD"; then | |
12879 | ac_pt_SYSTEMD_RUN_CMD=$SYSTEMD_RUN_CMD | |
12880 | # Extract the first word of "systemd-run", so it can be a program name with args. | |
12881 | set dummy systemd-run; ac_word=$2 | |
12882 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12883 | printf %s "checking for $ac_word... " >&6; } | |
12884 | if test ${ac_cv_path_ac_pt_SYSTEMD_RUN_CMD+y} | |
12885 | then : | |
12886 | printf %s "(cached) " >&6 | |
635df748 ZK |
12887 | else case e in #( |
12888 | e) case $ac_pt_SYSTEMD_RUN_CMD in | |
21edfc4a ZK |
12889 | [\\/]* | ?:[\\/]*) |
12890 | ac_cv_path_ac_pt_SYSTEMD_RUN_CMD="$ac_pt_SYSTEMD_RUN_CMD" # Let the user override the test with a path. | |
12891 | ;; | |
12892 | *) | |
12893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12894 | for as_dir in $PATH | |
12895 | do | |
12896 | IFS=$as_save_IFS | |
12897 | case $as_dir in #((( | |
12898 | '') as_dir=./ ;; | |
12899 | */) ;; | |
12900 | *) as_dir=$as_dir/ ;; | |
12901 | esac | |
12902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12903 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
12904 | ac_cv_path_ac_pt_SYSTEMD_RUN_CMD="$as_dir$ac_word$ac_exec_ext" | |
12905 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
12906 | break 2 | |
12907 | fi | |
12908 | done | |
12909 | done | |
12910 | IFS=$as_save_IFS | |
12911 | ||
12912 | ;; | |
635df748 | 12913 | esac ;; |
21edfc4a ZK |
12914 | esac |
12915 | fi | |
12916 | ac_pt_SYSTEMD_RUN_CMD=$ac_cv_path_ac_pt_SYSTEMD_RUN_CMD | |
12917 | if test -n "$ac_pt_SYSTEMD_RUN_CMD"; then | |
12918 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_SYSTEMD_RUN_CMD" >&5 | |
12919 | printf "%s\n" "$ac_pt_SYSTEMD_RUN_CMD" >&6; } | |
12920 | else | |
12921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12922 | printf "%s\n" "no" >&6; } | |
12923 | fi | |
12924 | ||
12925 | if test "x$ac_pt_SYSTEMD_RUN_CMD" = x; then | |
12926 | SYSTEMD_RUN_CMD="" | |
12927 | else | |
12928 | case $cross_compiling:$ac_tool_warned in | |
12929 | yes:) | |
12930 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12931 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12932 | ac_tool_warned=yes ;; | |
12933 | esac | |
12934 | SYSTEMD_RUN_CMD=$ac_pt_SYSTEMD_RUN_CMD | |
12935 | fi | |
12936 | else | |
12937 | SYSTEMD_RUN_CMD="$ac_cv_path_SYSTEMD_RUN_CMD" | |
12938 | fi | |
12939 | ||
a7cf55c6 ZK |
12940 | fi |
12941 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for app running udev background service" >&5 | |
12942 | printf %s "checking for app running udev background service... " >&6; } | |
12943 | if test -z "$SYSTEMD_RUN_CMD" | |
21edfc4a ZK |
12944 | then : |
12945 | SYSTEMD_RUN_CMD="/usr/bin/systemd-run" | |
12946 | fi | |
a7cf55c6 | 12947 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_RUN_CMD" >&5 |
21edfc4a | 12948 | printf "%s\n" "$SYSTEMD_RUN_CMD" >&6; } |
21edfc4a ZK |
12949 | |
12950 | ################################################################################ | |
12951 | ||
8b8b8ac1 ZK |
12952 | # TODO: possibly detect right version of blkid with BLKID_SUBLKS_FSINFO support |
12953 | # so lvresize can check detected flag here | |
12954 | # | |
12955 | DEFAULT_USE_BLKID_WIPING=0 | |
0d22b581 | 12956 | # Check whether --enable-blkid_wiping was given. |
6b2e4ec5 ZK |
12957 | if test ${enable_blkid_wiping+y} |
12958 | then : | |
0d22b581 | 12959 | enableval=$enable_blkid_wiping; BLKID_WIPING=$enableval |
635df748 ZK |
12960 | else case e in #( |
12961 | e) if test "$with_blkid" = "yes" | |
8b8b8ac1 | 12962 | then : |
b681b774 | 12963 | BLKID_WIPING="maybe" |
635df748 ZK |
12964 | else case e in #( |
12965 | e) BLKID_WIPING="no" ;; | |
12966 | esac | |
12967 | fi ;; | |
12968 | esac | |
615347da ZK |
12969 | fi |
12970 | ||
8b8b8ac1 ZK |
12971 | |
12972 | if test "$BLKID_WIPING" != "no" | |
615347da | 12973 | then : |
b681b774 | 12974 | |
ee3cfa41 | 12975 | |
0d22b581 | 12976 | pkg_failed=no |
a7cf55c6 ZK |
12977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid >= 2.24" >&5 |
12978 | printf %s "checking for blkid >= 2.24... " >&6; } | |
ee3cfa41 | 12979 | |
0d22b581 JT |
12980 | if test -n "$BLKID_CFLAGS"; then |
12981 | pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS" | |
12982 | elif test -n "$PKG_CONFIG"; then | |
12983 | if test -n "$PKG_CONFIG" && \ | |
21edfc4a ZK |
12984 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5 |
12985 | ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5 | |
0d22b581 | 12986 | ac_status=$? |
6b2e4ec5 | 12987 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
0d22b581 | 12988 | test $ac_status = 0; }; then |
21edfc4a | 12989 | pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid >= 2.24" 2>/dev/null` |
0d22b581 | 12990 | test "x$?" != "x0" && pkg_failed=yes |
5987562c | 12991 | else |
0d22b581 | 12992 | pkg_failed=yes |
5987562c | 12993 | fi |
0d22b581 JT |
12994 | else |
12995 | pkg_failed=untried | |
12996 | fi | |
12997 | if test -n "$BLKID_LIBS"; then | |
12998 | pkg_cv_BLKID_LIBS="$BLKID_LIBS" | |
12999 | elif test -n "$PKG_CONFIG"; then | |
13000 | if test -n "$PKG_CONFIG" && \ | |
21edfc4a ZK |
13001 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5 |
13002 | ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5 | |
0d22b581 | 13003 | ac_status=$? |
6b2e4ec5 | 13004 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
0d22b581 | 13005 | test $ac_status = 0; }; then |
21edfc4a | 13006 | pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid >= 2.24" 2>/dev/null` |
0d22b581 | 13007 | test "x$?" != "x0" && pkg_failed=yes |
5987562c | 13008 | else |
0d22b581 | 13009 | pkg_failed=yes |
5987562c | 13010 | fi |
0d22b581 JT |
13011 | else |
13012 | pkg_failed=untried | |
5987562c | 13013 | fi |
ee3cfa41 | 13014 | |
5987562c AK |
13015 | |
13016 | ||
0d22b581 | 13017 | if test $pkg_failed = yes; then |
a7cf55c6 | 13018 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 13019 | printf "%s\n" "no" >&6; } |
5987562c | 13020 | |
0d22b581 JT |
13021 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
13022 | _pkg_short_errors_supported=yes | |
5987562c | 13023 | else |
0d22b581 | 13024 | _pkg_short_errors_supported=no |
5987562c | 13025 | fi |
b681b774 | 13026 | if test $_pkg_short_errors_supported = yes; then |
a7cf55c6 | 13027 | BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid >= 2.24" 2>&1` |
b681b774 | 13028 | else |
a7cf55c6 | 13029 | BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid >= 2.24" 2>&1` |
b681b774 | 13030 | fi |
a7cf55c6 ZK |
13031 | # Put the nasty error message in config.log where it belongs |
13032 | echo "$BLKID_PKG_ERRORS" >&5 | |
b681b774 | 13033 | |
8b8b8ac1 ZK |
13034 | if test "$BLKID_WIPING" = "yes" |
13035 | then : | |
13036 | BLKID_WIPING="error" | |
635df748 ZK |
13037 | else case e in #( |
13038 | e) BLKID_WIPING="no" ;; | |
13039 | esac | |
8b8b8ac1 | 13040 | fi |
b681b774 | 13041 | elif test $pkg_failed = untried; then |
a7cf55c6 | 13042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
b681b774 | 13043 | printf "%s\n" "no" >&6; } |
8b8b8ac1 ZK |
13044 | if test "$BLKID_WIPING" = "yes" |
13045 | then : | |
13046 | BLKID_WIPING="error" | |
635df748 ZK |
13047 | else case e in #( |
13048 | e) BLKID_WIPING="no" ;; | |
13049 | esac | |
8b8b8ac1 | 13050 | fi |
b681b774 | 13051 | else |
a7cf55c6 ZK |
13052 | BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS |
13053 | BLKID_LIBS=$pkg_cv_BLKID_LIBS | |
b681b774 ZK |
13054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13055 | printf "%s\n" "yes" >&6; } | |
13056 | ||
8b8b8ac1 | 13057 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid.h defines BLKID_SUBLKS_FSINFO." >&5 |
615347da | 13058 | printf %s "checking for blkid.h defines BLKID_SUBLKS_FSINFO.... " >&6; } |
b681b774 ZK |
13059 | if test ${ac_cv_have_blkid_sublks_fsinfo+y} |
13060 | then : | |
13061 | printf %s "(cached) " >&6 | |
635df748 ZK |
13062 | else case e in #( |
13063 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b681b774 ZK |
13064 | /* end confdefs.h. */ |
13065 | #include <blkid/blkid.h> | |
13066 | #ifndef BLKID_SUBLKS_FSINFO | |
13067 | #error BLKID_SUBLKS_FSINFO is missing | |
13068 | #endif | |
8b8b8ac1 | 13069 | |
b681b774 ZK |
13070 | int |
13071 | main (void) | |
13072 | { | |
13073 | ||
13074 | ; | |
13075 | return 0; | |
13076 | } | |
13077 | _ACEOF | |
13078 | if ac_fn_c_try_compile "$LINENO" | |
13079 | then : | |
13080 | ac_cv_have_blkid_sublks_fsinfo="yes" | |
635df748 ZK |
13081 | else case e in #( |
13082 | e) ac_cv_have_blkid_sublks_fsinfo="no" ;; | |
13083 | esac | |
b681b774 | 13084 | fi |
635df748 ZK |
13085 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
13086 | esac | |
b681b774 ZK |
13087 | fi |
13088 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_blkid_sublks_fsinfo" >&5 | |
13089 | printf "%s\n" "$ac_cv_have_blkid_sublks_fsinfo" >&6; } | |
0d22b581 | 13090 | |
8b8b8ac1 | 13091 | if test $ac_cv_have_blkid_sublks_fsinfo = yes |
b681b774 | 13092 | then : |
0d22b581 | 13093 | |
b681b774 | 13094 | printf "%s\n" "#define HAVE_BLKID_SUBLKS_FSINFO 1" >>confdefs.h |
ee3cfa41 | 13095 | |
ee3cfa41 | 13096 | fi |
0d22b581 | 13097 | |
8b8b8ac1 | 13098 | if test "$with_blkid" = "no" |
b681b774 | 13099 | then : |
8b8b8ac1 | 13100 | BLKID_WIPING="error" |
635df748 ZK |
13101 | else case e in #( |
13102 | e) | |
8b8b8ac1 ZK |
13103 | BLKID_WIPING="yes" |
13104 | BLKID_PC="blkid" | |
13105 | DEFAULT_USE_BLKID_WIPING=1 | |
13106 | # pkg_config --static does not really work ATM... | |
13107 | BLKID_STATIC_LIBS=$("$PKG_CONFIG" --static --libs blkid) | |
b681b774 | 13108 | |
8b8b8ac1 | 13109 | printf "%s\n" "#define BLKID_WIPING_SUPPORT 1" >>confdefs.h |
b681b774 | 13110 | |
635df748 ZK |
13111 | ;; |
13112 | esac | |
8b8b8ac1 | 13113 | fi |
b681b774 | 13114 | |
0d22b581 | 13115 | fi |
b681b774 | 13116 | |
0d22b581 | 13117 | fi |
b681b774 | 13118 | |
8b8b8ac1 ZK |
13119 | if test "$BLKID_WIPING" = "error" |
13120 | then : | |
13121 | as_fn_error $? "--enable-blkid_wiping requires blkid library >= 2.24. (--with-blkid=$with_blkid)" "$LINENO" 5 | |
0d22b581 | 13122 | fi |
8b8b8ac1 | 13123 | |
b681b774 ZK |
13124 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable libblkid detection of signatures when wiping" >&5 |
13125 | printf %s "checking whether to enable libblkid detection of signatures when wiping... " >&6; } | |
13126 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKID_WIPING" >&5 | |
13127 | printf "%s\n" "$BLKID_WIPING" >&6; } | |
13128 | ||
13129 | printf "%s\n" "#define DEFAULT_USE_BLKID_WIPING $DEFAULT_USE_BLKID_WIPING" >>confdefs.h | |
5987562c AK |
13130 | |
13131 | ||
0d22b581 | 13132 | ################################################################################ |
96123b90 ZK |
13133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronization with udev processing" >&5 |
13134 | printf %s "checking whether to enable synchronization with udev processing... " >&6; } | |
0d22b581 | 13135 | # Check whether --enable-udev_sync was given. |
6b2e4ec5 ZK |
13136 | if test ${enable_udev_sync+y} |
13137 | then : | |
0d22b581 | 13138 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval |
635df748 ZK |
13139 | else case e in #( |
13140 | e) UDEV_SYNC="no" ;; | |
13141 | esac | |
5987562c | 13142 | fi |
5987562c | 13143 | |
6b2e4ec5 ZK |
13144 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5 |
13145 | printf "%s\n" "$UDEV_SYNC" >&6; } | |
8b8b8ac1 ZK |
13146 | if test "$UDEV_SYNC" = "yes" && test "$with_udev" = "no" |
13147 | then : | |
13148 | as_fn_error $? "--enable-udev_sync requires udev >= 143. (--with-udev=$with_udev)" "$LINENO" 5 | |
13149 | fi | |
5987562c | 13150 | |
b681b774 ZK |
13151 | if test "$UDEV_SYNC" = "yes" |
13152 | then : | |
13153 | ||
5987562c | 13154 | |
0d22b581 | 13155 | pkg_failed=no |
a7cf55c6 ZK |
13156 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libudev >= 143" >&5 |
13157 | printf %s "checking for libudev >= 143... " >&6; } | |
5987562c | 13158 | |
0d22b581 JT |
13159 | if test -n "$UDEV_CFLAGS"; then |
13160 | pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" | |
13161 | elif test -n "$PKG_CONFIG"; then | |
13162 | if test -n "$PKG_CONFIG" && \ | |
6b2e4ec5 | 13163 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 |
0d22b581 JT |
13164 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 |
13165 | ac_status=$? | |
6b2e4ec5 | 13166 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
0d22b581 JT |
13167 | test $ac_status = 0; }; then |
13168 | pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null` | |
13169 | test "x$?" != "x0" && pkg_failed=yes | |
5987562c | 13170 | else |
0d22b581 JT |
13171 | pkg_failed=yes |
13172 | fi | |
13173 | else | |
13174 | pkg_failed=untried | |
13175 | fi | |
13176 | if test -n "$UDEV_LIBS"; then | |
13177 | pkg_cv_UDEV_LIBS="$UDEV_LIBS" | |
13178 | elif test -n "$PKG_CONFIG"; then | |
13179 | if test -n "$PKG_CONFIG" && \ | |
6b2e4ec5 | 13180 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 |
0d22b581 JT |
13181 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 |
13182 | ac_status=$? | |
6b2e4ec5 | 13183 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
0d22b581 JT |
13184 | test $ac_status = 0; }; then |
13185 | pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null` | |
13186 | test "x$?" != "x0" && pkg_failed=yes | |
13187 | else | |
13188 | pkg_failed=yes | |
13189 | fi | |
13190 | else | |
13191 | pkg_failed=untried | |
5987562c | 13192 | fi |
5987562c AK |
13193 | |
13194 | ||
5987562c | 13195 | |
0d22b581 | 13196 | if test $pkg_failed = yes; then |
a7cf55c6 | 13197 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 13198 | printf "%s\n" "no" >&6; } |
5987562c | 13199 | |
0d22b581 JT |
13200 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
13201 | _pkg_short_errors_supported=yes | |
5987562c | 13202 | else |
0d22b581 JT |
13203 | _pkg_short_errors_supported=no |
13204 | fi | |
13205 | if test $_pkg_short_errors_supported = yes; then | |
a7cf55c6 | 13206 | UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 143" 2>&1` |
0d22b581 | 13207 | else |
a7cf55c6 | 13208 | UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 143" 2>&1` |
0d22b581 | 13209 | fi |
a7cf55c6 ZK |
13210 | # Put the nasty error message in config.log where it belongs |
13211 | echo "$UDEV_PKG_ERRORS" >&5 | |
5987562c | 13212 | |
a7cf55c6 | 13213 | as_fn_error $? "Package requirements (libudev >= 143) were not met: |
5987562c | 13214 | |
0d22b581 | 13215 | $UDEV_PKG_ERRORS |
5987562c | 13216 | |
0d22b581 JT |
13217 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
13218 | installed software in a non-standard prefix. | |
5987562c | 13219 | |
0d22b581 JT |
13220 | Alternatively, you may set the environment variables UDEV_CFLAGS |
13221 | and UDEV_LIBS to avoid the need to call pkg-config. | |
13222 | See the pkg-config man page for more details." "$LINENO" 5 | |
13223 | elif test $pkg_failed = untried; then | |
a7cf55c6 | 13224 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 13225 | printf "%s\n" "no" >&6; } |
635df748 ZK |
13226 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
13227 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
0d22b581 JT |
13228 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
13229 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13230 | path to pkg-config. | |
5987562c | 13231 | |
0d22b581 JT |
13232 | Alternatively, you may set the environment variables UDEV_CFLAGS |
13233 | and UDEV_LIBS to avoid the need to call pkg-config. | |
13234 | See the pkg-config man page for more details. | |
5987562c | 13235 | |
0d22b581 | 13236 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
635df748 | 13237 | See 'config.log' for more details" "$LINENO" 5; } |
0d22b581 | 13238 | else |
a7cf55c6 ZK |
13239 | UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS |
13240 | UDEV_LIBS=$pkg_cv_UDEV_LIBS | |
6b2e4ec5 ZK |
13241 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13242 | printf "%s\n" "yes" >&6; } | |
a7cf55c6 | 13243 | UDEV_PC="libudev" |
0d22b581 | 13244 | fi |
86ac529b | 13245 | UDEV_STATIC_LIBS=$("$PKG_CONFIG" --static --libs libudev) |
5987562c | 13246 | |
6b2e4ec5 | 13247 | printf "%s\n" "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h |
5987562c AK |
13248 | |
13249 | ||
6b2e4ec5 ZK |
13250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev_device_get_is_initialized in -ludev" >&5 |
13251 | printf %s "checking for udev_device_get_is_initialized in -ludev... " >&6; } | |
13252 | if test ${ac_cv_lib_udev_udev_device_get_is_initialized+y} | |
13253 | then : | |
13254 | printf %s "(cached) " >&6 | |
635df748 ZK |
13255 | else case e in #( |
13256 | e) ac_check_lib_save_LIBS=$LIBS | |
0d22b581 JT |
13257 | LIBS="-ludev $LIBS" |
13258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13259 | /* end confdefs.h. */ | |
ee3cfa41 | 13260 | |
0d22b581 JT |
13261 | /* Override any GCC internal prototype to avoid an error. |
13262 | Use char because int might match the return type of a GCC | |
635df748 ZK |
13263 | builtin and then its argument prototype would still apply. |
13264 | The 'extern "C"' is for builds by C++ compilers; | |
13265 | although this is not generally supported in C code supporting it here | |
13266 | has little cost and some practical benefit (sr 110532). */ | |
13267 | #ifdef __cplusplus | |
13268 | extern "C" | |
13269 | #endif | |
13270 | char udev_device_get_is_initialized (void); | |
0d22b581 | 13271 | int |
6b2e4ec5 | 13272 | main (void) |
0d22b581 JT |
13273 | { |
13274 | return udev_device_get_is_initialized (); | |
13275 | ; | |
13276 | return 0; | |
13277 | } | |
13278 | _ACEOF | |
6b2e4ec5 ZK |
13279 | if ac_fn_c_try_link "$LINENO" |
13280 | then : | |
0d22b581 | 13281 | ac_cv_lib_udev_udev_device_get_is_initialized=yes |
635df748 ZK |
13282 | else case e in #( |
13283 | e) ac_cv_lib_udev_udev_device_get_is_initialized=no ;; | |
13284 | esac | |
0d22b581 | 13285 | fi |
6b2e4ec5 | 13286 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
0d22b581 | 13287 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
13288 | LIBS=$ac_check_lib_save_LIBS ;; |
13289 | esac | |
1b59f5a9 | 13290 | fi |
6b2e4ec5 ZK |
13291 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_device_get_is_initialized" >&5 |
13292 | printf "%s\n" "$ac_cv_lib_udev_udev_device_get_is_initialized" >&6; } | |
13293 | if test "x$ac_cv_lib_udev_udev_device_get_is_initialized" = xyes | |
13294 | then : | |
1b59f5a9 | 13295 | |
6b2e4ec5 | 13296 | printf "%s\n" "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h |
5987562c AK |
13297 | |
13298 | fi | |
5987562c | 13299 | |
0d22b581 | 13300 | LIBS=$ac_check_lib_save_LIBS |
b681b774 | 13301 | |
5987562c | 13302 | fi |
0d22b581 | 13303 | |
96123b90 ZK |
13304 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronization" >&5 |
13305 | printf %s "checking whether to enable installation of udev rules required for synchronization... " >&6; } | |
0d22b581 | 13306 | # Check whether --enable-udev_rules was given. |
6b2e4ec5 ZK |
13307 | if test ${enable_udev_rules+y} |
13308 | then : | |
0d22b581 | 13309 | enableval=$enable_udev_rules; UDEV_RULES=$enableval |
635df748 ZK |
13310 | else case e in #( |
13311 | e) UDEV_RULES=$UDEV_SYNC ;; | |
13312 | esac | |
5987562c AK |
13313 | fi |
13314 | ||
6b2e4ec5 ZK |
13315 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5 |
13316 | printf "%s\n" "$UDEV_RULES" >&6; } | |
0d22b581 | 13317 | |
6b2e4ec5 ZK |
13318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable executable path detection in udev rules" >&5 |
13319 | printf %s "checking whether to enable executable path detection in udev rules... " >&6; } | |
0d22b581 | 13320 | # Check whether --enable-udev_rule_exec_detection was given. |
6b2e4ec5 ZK |
13321 | if test ${enable_udev_rule_exec_detection+y} |
13322 | then : | |
0d22b581 | 13323 | enableval=$enable_udev_rule_exec_detection; UDEV_RULE_EXEC_DETECTION=$enableval |
635df748 ZK |
13324 | else case e in #( |
13325 | e) UDEV_RULE_EXEC_DETECTION="no" ;; | |
13326 | esac | |
1b59f5a9 ZK |
13327 | fi |
13328 | ||
6b2e4ec5 ZK |
13329 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULE_EXEC_DETECTION" >&5 |
13330 | printf "%s\n" "$UDEV_RULE_EXEC_DETECTION" >&6; } | |
5987562c | 13331 | |
b681b774 ZK |
13332 | if test "$UDEV_RULE" != "no" |
13333 | then : | |
13334 | ||
13335 | if test -n "$PKG_CONFIG" && \ | |
13336 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 176\""; } >&5 | |
13337 | ($PKG_CONFIG --exists --print-errors "libudev >= 176") 2>&5 | |
13338 | ac_status=$? | |
13339 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13340 | test $ac_status = 0; }; then | |
13341 | ||
13342 | UDEV_HAS_BUILTIN_BLKID="yes" | |
13343 | ||
13344 | else | |
13345 | ||
13346 | UDEV_HAS_BUILTIN_BLKID="no" | |
13347 | ||
13348 | fi | |
6b2e4ec5 ZK |
13349 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether udev supports built-in blkid" >&5 |
13350 | printf %s "checking whether udev supports built-in blkid... " >&6; } | |
6b2e4ec5 ZK |
13351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5 |
13352 | printf "%s\n" "$UDEV_HAS_BUILTIN_BLKID" >&6; } | |
b681b774 | 13353 | |
5987562c | 13354 | fi |
0d22b581 | 13355 | |
0d22b581 JT |
13356 | ################################################################################ |
13357 | # Check whether --enable-units-compat was given. | |
6b2e4ec5 ZK |
13358 | if test ${enable_units_compat+y} |
13359 | then : | |
0d22b581 | 13360 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval |
635df748 ZK |
13361 | else case e in #( |
13362 | e) UNITS_COMPAT="no" ;; | |
13363 | esac | |
e5fc4841 AK |
13364 | fi |
13365 | ||
e5fc4841 | 13366 | |
b681b774 ZK |
13367 | if test "$UNITS_COMPAT" = "yes" |
13368 | then : | |
13369 | ||
0d22b581 | 13370 | |
6b2e4ec5 | 13371 | printf "%s\n" "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h |
0d22b581 | 13372 | |
b681b774 | 13373 | |
e5fc4841 | 13374 | fi |
0d22b581 JT |
13375 | |
13376 | ################################################################################ | |
13377 | # Check whether --enable-ioctl was given. | |
6b2e4ec5 ZK |
13378 | if test ${enable_ioctl+y} |
13379 | then : | |
0d22b581 | 13380 | enableval=$enable_ioctl; DM_IOCTLS=$enableval |
e5fc4841 AK |
13381 | fi |
13382 | ||
b681b774 | 13383 | if test "$DM_IOCTLS" = "yes" |
6b2e4ec5 | 13384 | then : |
0d22b581 | 13385 | |
6b2e4ec5 | 13386 | printf "%s\n" "#define DM_IOCTLS 1" >>confdefs.h |
e5fc4841 AK |
13387 | |
13388 | fi | |
5987562c | 13389 | |
0d22b581 | 13390 | ################################################################################ |
6b2e4ec5 ZK |
13391 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5 |
13392 | printf %s "checking whether to enable O_DIRECT... " >&6; } | |
0d22b581 | 13393 | # Check whether --enable-o_direct was given. |
6b2e4ec5 ZK |
13394 | if test ${enable_o_direct+y} |
13395 | then : | |
0d22b581 JT |
13396 | enableval=$enable_o_direct; ODIRECT=$enableval |
13397 | fi | |
13398 | ||
6b2e4ec5 ZK |
13399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5 |
13400 | printf "%s\n" "$ODIRECT" >&6; } | |
0d22b581 | 13401 | |
b681b774 ZK |
13402 | if test "$ODIRECT" = "yes" |
13403 | then : | |
13404 | ||
0d22b581 | 13405 | |
6b2e4ec5 | 13406 | printf "%s\n" "#define O_DIRECT_SUPPORT 1" >>confdefs.h |
0d22b581 | 13407 | |
b681b774 | 13408 | |
5987562c | 13409 | fi |
0d22b581 JT |
13410 | |
13411 | ################################################################################ | |
0627716f ZK |
13412 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include Python D-Bus support" >&5 |
13413 | printf %s "checking whether to include Python D-Bus support... " >&6; } | |
13414 | # Check whether --enable-dbus-service was given. | |
13415 | if test ${enable_dbus_service+y} | |
6b2e4ec5 | 13416 | then : |
0627716f | 13417 | enableval=$enable_dbus_service; BUILD_LVMDBUSD=$enableval |
635df748 ZK |
13418 | else case e in #( |
13419 | e) BUILD_LVMDBUSD="no" ;; | |
13420 | esac | |
5987562c | 13421 | fi |
1b59f5a9 | 13422 | |
0627716f ZK |
13423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMDBUSD" >&5 |
13424 | printf "%s\n" "$BUILD_LVMDBUSD" >&6; } | |
0d22b581 | 13425 | |
0627716f ZK |
13426 | ################################################################################ |
13427 | # Check whether --enable-notify-dbus was given. | |
13428 | if test ${enable_notify_dbus+y} | |
8b8b8ac1 | 13429 | then : |
0627716f | 13430 | enableval=$enable_notify_dbus; NOTIFYDBUS_SUPPORT=$enableval |
8b8b8ac1 | 13431 | fi |
0627716f ZK |
13432 | |
13433 | ||
13434 | if test "$NOTIFYDBUS_SUPPORT" = "maybe" | |
13435 | then : | |
13436 | if test "$BUILD_LVMDBUSD" = "yes" | |
13437 | then : | |
13438 | NOTIFYDBUS_SUPPORT="yes" | |
635df748 ZK |
13439 | else case e in #( |
13440 | e) NOTIFYDBUS_SUPPORT="no" ;; | |
13441 | esac | |
0627716f | 13442 | fi |
b681b774 | 13443 | fi |
0d22b581 | 13444 | |
0627716f | 13445 | if test "$NOTIFYDBUS_SUPPORT" = "yes" |
6b2e4ec5 | 13446 | then : |
0627716f ZK |
13447 | if test "$SYSTEMD_MIN_VERSION" -lt 221 |
13448 | then : | |
13449 | as_fn_error $? "--enable-notify-dbus requires systemd >= 221. (--with-systemd=$with_systemd)" "$LINENO" 5 | |
5987562c AK |
13450 | fi |
13451 | ||
0627716f ZK |
13452 | printf "%s\n" "#define NOTIFYDBUS_SUPPORT 1" >>confdefs.h |
13453 | ||
13454 | fi | |
13455 | ||
13456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build notifydbus" >&5 | |
13457 | printf %s "checking whether to build notifydbus... " >&6; } | |
13458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NOTIFYDBUS_SUPPORT" >&5 | |
13459 | printf "%s\n" "$NOTIFYDBUS_SUPPORT" >&6; } | |
13460 | ||
13461 | ################################################################################ | |
13462 | if test "$NOTIFYDBUS_SUPPORT" = "yes" || test "$SYSTEMD_JOURNAL_SUPPORT" = "yes" || test "$APP_MACHINEID_SUPPORT" = "yes" | |
6b2e4ec5 | 13463 | then : |
0627716f ZK |
13464 | |
13465 | ||
13466 | pkg_failed=no | |
13467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 | |
13468 | printf %s "checking for libsystemd... " >&6; } | |
13469 | ||
13470 | if test -n "$LIBSYSTEMD_CFLAGS"; then | |
13471 | pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS" | |
13472 | elif test -n "$PKG_CONFIG"; then | |
13473 | if test -n "$PKG_CONFIG" && \ | |
13474 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 | |
13475 | ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 | |
13476 | ac_status=$? | |
13477 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13478 | test $ac_status = 0; }; then | |
13479 | pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` | |
13480 | test "x$?" != "x0" && pkg_failed=yes | |
13481 | else | |
13482 | pkg_failed=yes | |
13483 | fi | |
13484 | else | |
13485 | pkg_failed=untried | |
13486 | fi | |
13487 | if test -n "$LIBSYSTEMD_LIBS"; then | |
13488 | pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS" | |
13489 | elif test -n "$PKG_CONFIG"; then | |
13490 | if test -n "$PKG_CONFIG" && \ | |
13491 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 | |
13492 | ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 | |
13493 | ac_status=$? | |
13494 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13495 | test $ac_status = 0; }; then | |
13496 | pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` | |
13497 | test "x$?" != "x0" && pkg_failed=yes | |
13498 | else | |
13499 | pkg_failed=yes | |
13500 | fi | |
13501 | else | |
13502 | pkg_failed=untried | |
13503 | fi | |
13504 | ||
13505 | ||
13506 | ||
13507 | if test $pkg_failed = yes; then | |
13508 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13509 | printf "%s\n" "no" >&6; } | |
13510 | ||
13511 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13512 | _pkg_short_errors_supported=yes | |
13513 | else | |
13514 | _pkg_short_errors_supported=no | |
13515 | fi | |
13516 | if test $_pkg_short_errors_supported = yes; then | |
13517 | LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` | |
13518 | else | |
13519 | LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` | |
13520 | fi | |
13521 | # Put the nasty error message in config.log where it belongs | |
13522 | echo "$LIBSYSTEMD_PKG_ERRORS" >&5 | |
13523 | ||
13524 | as_fn_error $? "Package requirements (libsystemd) were not met: | |
13525 | ||
13526 | $LIBSYSTEMD_PKG_ERRORS | |
13527 | ||
13528 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13529 | installed software in a non-standard prefix. | |
13530 | ||
13531 | Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS | |
13532 | and LIBSYSTEMD_LIBS to avoid the need to call pkg-config. | |
13533 | See the pkg-config man page for more details." "$LINENO" 5 | |
13534 | elif test $pkg_failed = untried; then | |
13535 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13536 | printf "%s\n" "no" >&6; } | |
635df748 ZK |
13537 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
13538 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
0627716f ZK |
13539 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
13540 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13541 | path to pkg-config. | |
13542 | ||
13543 | Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS | |
13544 | and LIBSYSTEMD_LIBS to avoid the need to call pkg-config. | |
13545 | See the pkg-config man page for more details. | |
13546 | ||
13547 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
635df748 | 13548 | See 'config.log' for more details" "$LINENO" 5; } |
0627716f ZK |
13549 | else |
13550 | LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS | |
13551 | LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS | |
13552 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13553 | printf "%s\n" "yes" >&6; } | |
13554 | ||
13555 | fi | |
13556 | ||
5987562c AK |
13557 | fi |
13558 | ||
0d22b581 JT |
13559 | ################################################################################ |
13560 | ||
b681b774 ZK |
13561 | if test "$BUILD_LVMDBUSD" = "yes" |
13562 | then : | |
13563 | ||
5987562c AK |
13564 | unset am_cv_pathless_PYTHON ac_cv_path_PYTHON am_cv_python_platform |
13565 | unset am_cv_python_pythondir am_cv_python_version am_cv_python_pyexecdir | |
13566 | unset ac_cv_path_PYTHON_CONFIG ac_cv_path_ac_pt_PYTHON_CONFIG | |
13567 | ||
13568 | ||
13569 | ||
13570 | ||
13571 | ||
13572 | ||
2df7ef58 | 13573 | |
5987562c AK |
13574 | if test -n "$PYTHON"; then |
13575 | # If the user set $PYTHON, use it and don't search something else. | |
6b2e4ec5 ZK |
13576 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5 |
13577 | printf %s "checking whether $PYTHON version is >= 3... " >&6; } | |
5987562c AK |
13578 | prog="import sys |
13579 | # split strings by '.' and convert to numeric. Append some zeros | |
13580 | # because we need at least 4 digits for the hex conversion. | |
13581 | # map returns an iterator in Python 3.0 and a list in 2.x | |
13582 | minver = list(map(int, '3'.split('.'))) + [0, 0, 0] | |
13583 | minverhex = 0 | |
13584 | # xrange is not present in Python 3.0 and range returns an iterator | |
13585 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] | |
13586 | sys.exit(sys.hexversion < minverhex)" | |
13587 | if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 | |
13588 | ($PYTHON -c "$prog") >&5 2>&5 | |
13589 | ac_status=$? | |
13590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6b2e4ec5 ZK |
13591 | (exit $ac_status); } |
13592 | then : | |
13593 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13594 | printf "%s\n" "yes" >&6; } | |
635df748 ZK |
13595 | else case e in #( |
13596 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6b2e4ec5 | 13597 | printf "%s\n" "no" >&6; } |
635df748 ZK |
13598 | as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;; |
13599 | esac | |
5987562c AK |
13600 | fi |
13601 | am_display_PYTHON=$PYTHON | |
13602 | else | |
13603 | # Otherwise, try each interpreter until we find one that satisfies | |
13604 | # VERSION. | |
6b2e4ec5 ZK |
13605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5 |
13606 | printf %s "checking for a Python interpreter with version >= 3... " >&6; } | |
13607 | if test ${am_cv_pathless_PYTHON+y} | |
13608 | then : | |
13609 | printf %s "(cached) " >&6 | |
635df748 ZK |
13610 | else case e in #( |
13611 | e) | |
a861f042 | 13612 | for am_cv_pathless_PYTHON in python3 python2 python python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do |
5987562c AK |
13613 | test "$am_cv_pathless_PYTHON" = none && break |
13614 | prog="import sys | |
13615 | # split strings by '.' and convert to numeric. Append some zeros | |
13616 | # because we need at least 4 digits for the hex conversion. | |
13617 | # map returns an iterator in Python 3.0 and a list in 2.x | |
13618 | minver = list(map(int, '3'.split('.'))) + [0, 0, 0] | |
13619 | minverhex = 0 | |
13620 | # xrange is not present in Python 3.0 and range returns an iterator | |
13621 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] | |
13622 | sys.exit(sys.hexversion < minverhex)" | |
13623 | if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 | |
13624 | ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 | |
13625 | ac_status=$? | |
13626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6b2e4ec5 ZK |
13627 | (exit $ac_status); } |
13628 | then : | |
5987562c AK |
13629 | break |
13630 | fi | |
635df748 ZK |
13631 | done ;; |
13632 | esac | |
5987562c | 13633 | fi |
6b2e4ec5 ZK |
13634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 |
13635 | printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } | |
5987562c AK |
13636 | # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. |
13637 | if test "$am_cv_pathless_PYTHON" = none; then | |
13638 | PYTHON=: | |
13639 | else | |
13640 | # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. | |
13641 | set dummy $am_cv_pathless_PYTHON; ac_word=$2 | |
6b2e4ec5 ZK |
13642 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13643 | printf %s "checking for $ac_word... " >&6; } | |
13644 | if test ${ac_cv_path_PYTHON+y} | |
13645 | then : | |
13646 | printf %s "(cached) " >&6 | |
635df748 ZK |
13647 | else case e in #( |
13648 | e) case $PYTHON in | |
5987562c AK |
13649 | [\\/]* | ?:[\\/]*) |
13650 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | |
13651 | ;; | |
13652 | *) | |
13653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13654 | for as_dir in $PATH | |
13655 | do | |
13656 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
13657 | case $as_dir in #((( |
13658 | '') as_dir=./ ;; | |
13659 | */) ;; | |
13660 | *) as_dir=$as_dir/ ;; | |
13661 | esac | |
5987562c | 13662 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
13663 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
13664 | ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" | |
13665 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5987562c AK |
13666 | break 2 |
13667 | fi | |
13668 | done | |
13669 | done | |
13670 | IFS=$as_save_IFS | |
13671 | ||
13672 | ;; | |
635df748 | 13673 | esac ;; |
5987562c AK |
13674 | esac |
13675 | fi | |
13676 | PYTHON=$ac_cv_path_PYTHON | |
13677 | if test -n "$PYTHON"; then | |
6b2e4ec5 ZK |
13678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
13679 | printf "%s\n" "$PYTHON" >&6; } | |
5987562c | 13680 | else |
6b2e4ec5 ZK |
13681 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13682 | printf "%s\n" "no" >&6; } | |
5987562c AK |
13683 | fi |
13684 | ||
13685 | ||
13686 | fi | |
13687 | am_display_PYTHON=$am_cv_pathless_PYTHON | |
13688 | fi | |
13689 | ||
13690 | ||
13691 | if test "$PYTHON" = :; then | |
6b2e4ec5 | 13692 | as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 |
5987562c AK |
13693 | else |
13694 | ||
6b2e4ec5 ZK |
13695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 |
13696 | printf %s "checking for $am_display_PYTHON version... " >&6; } | |
13697 | if test ${am_cv_python_version+y} | |
13698 | then : | |
13699 | printf %s "(cached) " >&6 | |
635df748 ZK |
13700 | else case e in #( |
13701 | e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;; | |
13702 | esac | |
5987562c | 13703 | fi |
6b2e4ec5 ZK |
13704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 |
13705 | printf "%s\n" "$am_cv_python_version" >&6; } | |
5987562c AK |
13706 | PYTHON_VERSION=$am_cv_python_version |
13707 | ||
13708 | ||
6b2e4ec5 ZK |
13709 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 |
13710 | printf %s "checking for $am_display_PYTHON platform... " >&6; } | |
13711 | if test ${am_cv_python_platform+y} | |
13712 | then : | |
13713 | printf %s "(cached) " >&6 | |
635df748 ZK |
13714 | else case e in #( |
13715 | e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;; | |
13716 | esac | |
6b2e4ec5 ZK |
13717 | fi |
13718 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 | |
13719 | printf "%s\n" "$am_cv_python_platform" >&6; } | |
13720 | PYTHON_PLATFORM=$am_cv_python_platform | |
5987562c | 13721 | |
5987562c | 13722 | |
6b2e4ec5 ZK |
13723 | if test "x$prefix" = xNONE; then |
13724 | am__usable_prefix=$ac_default_prefix | |
13725 | else | |
13726 | am__usable_prefix=$prefix | |
13727 | fi | |
5987562c | 13728 | |
6b2e4ec5 ZK |
13729 | # Allow user to request using sys.* values from Python, |
13730 | # instead of the GNU $prefix values. | |
13731 | ||
13732 | # Check whether --with-python-sys-prefix was given. | |
13733 | if test ${with_python_sys_prefix+y} | |
13734 | then : | |
13735 | withval=$with_python_sys_prefix; am_use_python_sys=: | |
635df748 ZK |
13736 | else case e in #( |
13737 | e) am_use_python_sys=false ;; | |
13738 | esac | |
6b2e4ec5 ZK |
13739 | fi |
13740 | ||
13741 | ||
13742 | # Allow user to override whatever the default Python prefix is. | |
13743 | ||
13744 | # Check whether --with-python_prefix was given. | |
13745 | if test ${with_python_prefix+y} | |
13746 | then : | |
13747 | withval=$with_python_prefix; am_python_prefix_subst=$withval | |
13748 | am_cv_python_prefix=$withval | |
13749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 | |
13750 | printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } | |
13751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 | |
13752 | printf "%s\n" "$am_cv_python_prefix" >&6; } | |
635df748 ZK |
13753 | else case e in #( |
13754 | e) | |
6b2e4ec5 ZK |
13755 | if $am_use_python_sys; then |
13756 | # using python sys.prefix value, not GNU | |
13757 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 | |
13758 | printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } | |
13759 | if test ${am_cv_python_prefix+y} | |
13760 | then : | |
13761 | printf %s "(cached) " >&6 | |
635df748 ZK |
13762 | else case e in #( |
13763 | e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;; | |
13764 | esac | |
6b2e4ec5 ZK |
13765 | fi |
13766 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 | |
13767 | printf "%s\n" "$am_cv_python_prefix" >&6; } | |
13768 | ||
13769 | case $am_cv_python_prefix in | |
13770 | $am__usable_prefix*) | |
13771 | am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` | |
13772 | am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` | |
13773 | ;; | |
13774 | *) | |
13775 | am_python_prefix_subst=$am_cv_python_prefix | |
13776 | ;; | |
13777 | esac | |
13778 | else # using GNU prefix value, not python sys.prefix | |
13779 | am_python_prefix_subst='${prefix}' | |
13780 | am_python_prefix=$am_python_prefix_subst | |
13781 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 | |
13782 | printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } | |
13783 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 | |
13784 | printf "%s\n" "$am_python_prefix" >&6; } | |
635df748 ZK |
13785 | fi ;; |
13786 | esac | |
6b2e4ec5 | 13787 | fi |
5987562c | 13788 | |
6b2e4ec5 ZK |
13789 | # Substituting python_prefix_subst value. |
13790 | PYTHON_PREFIX=$am_python_prefix_subst | |
13791 | ||
13792 | ||
13793 | # emacs-page Now do it all over again for Python exec_prefix, but with yet | |
13794 | # another conditional: fall back to regular prefix if that was specified. | |
13795 | ||
13796 | # Check whether --with-python_exec_prefix was given. | |
13797 | if test ${with_python_exec_prefix+y} | |
13798 | then : | |
13799 | withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval | |
13800 | am_cv_python_exec_prefix=$withval | |
13801 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 | |
13802 | printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } | |
13803 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 | |
13804 | printf "%s\n" "$am_cv_python_exec_prefix" >&6; } | |
635df748 ZK |
13805 | else case e in #( |
13806 | e) | |
6b2e4ec5 ZK |
13807 | # no explicit --with-python_exec_prefix, but if |
13808 | # --with-python_prefix was given, use its value for python_exec_prefix too. | |
13809 | if test -n "$with_python_prefix" | |
13810 | then : | |
13811 | am_python_exec_prefix_subst=$with_python_prefix | |
13812 | am_cv_python_exec_prefix=$with_python_prefix | |
13813 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 | |
13814 | printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } | |
13815 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 | |
13816 | printf "%s\n" "$am_cv_python_exec_prefix" >&6; } | |
635df748 ZK |
13817 | else case e in #( |
13818 | e) | |
6b2e4ec5 ZK |
13819 | # Set am__usable_exec_prefix whether using GNU or Python values, |
13820 | # since we use that variable for pyexecdir. | |
13821 | if test "x$exec_prefix" = xNONE; then | |
13822 | am__usable_exec_prefix=$am__usable_prefix | |
13823 | else | |
13824 | am__usable_exec_prefix=$exec_prefix | |
13825 | fi | |
13826 | # | |
13827 | if $am_use_python_sys; then # using python sys.exec_prefix, not GNU | |
13828 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 | |
13829 | printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } | |
13830 | if test ${am_cv_python_exec_prefix+y} | |
13831 | then : | |
13832 | printf %s "(cached) " >&6 | |
635df748 ZK |
13833 | else case e in #( |
13834 | e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;; | |
13835 | esac | |
6b2e4ec5 ZK |
13836 | fi |
13837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 | |
13838 | printf "%s\n" "$am_cv_python_exec_prefix" >&6; } | |
13839 | case $am_cv_python_exec_prefix in | |
13840 | $am__usable_exec_prefix*) | |
13841 | am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` | |
13842 | am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` | |
13843 | ;; | |
13844 | *) | |
13845 | am_python_exec_prefix_subst=$am_cv_python_exec_prefix | |
13846 | ;; | |
13847 | esac | |
13848 | else # using GNU $exec_prefix, not python sys.exec_prefix | |
13849 | am_python_exec_prefix_subst='${exec_prefix}' | |
13850 | am_python_exec_prefix=$am_python_exec_prefix_subst | |
13851 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 | |
13852 | printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } | |
13853 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 | |
13854 | printf "%s\n" "$am_python_exec_prefix" >&6; } | |
635df748 ZK |
13855 | fi ;; |
13856 | esac | |
13857 | fi ;; | |
13858 | esac | |
5987562c | 13859 | fi |
5987562c | 13860 | |
6b2e4ec5 ZK |
13861 | # Substituting python_exec_prefix_subst. |
13862 | PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst | |
5987562c | 13863 | |
6b2e4ec5 ZK |
13864 | |
13865 | # Factor out some code duplication into this shell variable. | |
5987562c AK |
13866 | am_python_setup_sysconfig="\ |
13867 | import sys | |
13868 | # Prefer sysconfig over distutils.sysconfig, for better compatibility | |
13869 | # with python 3.x. See automake bug#10227. | |
13870 | try: | |
13871 | import sysconfig | |
13872 | except ImportError: | |
13873 | can_use_sysconfig = 0 | |
13874 | else: | |
13875 | can_use_sysconfig = 1 | |
13876 | # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: | |
13877 | # <https://github.com/pypa/virtualenv/issues/118> | |
13878 | try: | |
13879 | from platform import python_implementation | |
13880 | if python_implementation() == 'CPython' and sys.version[:3] == '2.7': | |
13881 | can_use_sysconfig = 0 | |
13882 | except ImportError: | |
13883 | pass" | |
13884 | ||
13885 | ||
6b2e4ec5 ZK |
13886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 |
13887 | printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } | |
13888 | if test ${am_cv_python_pythondir+y} | |
13889 | then : | |
13890 | printf %s "(cached) " >&6 | |
635df748 ZK |
13891 | else case e in #( |
13892 | e) if test "x$am_cv_python_prefix" = x; then | |
6b2e4ec5 ZK |
13893 | am_py_prefix=$am__usable_prefix |
13894 | else | |
13895 | am_py_prefix=$am_cv_python_prefix | |
13896 | fi | |
13897 | am_cv_python_pythondir=`$PYTHON -c " | |
5987562c AK |
13898 | $am_python_setup_sysconfig |
13899 | if can_use_sysconfig: | |
6b2e4ec5 | 13900 | sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) |
5987562c | 13901 | else: |
6b2e4ec5 ZK |
13902 | from distutils import sysconfig |
13903 | sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') | |
5987562c | 13904 | sys.stdout.write(sitedir)"` |
6b2e4ec5 ZK |
13905 | # |
13906 | case $am_cv_python_pythondir in | |
13907 | $am_py_prefix*) | |
13908 | am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` | |
13909 | am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` | |
13910 | ;; | |
13911 | *) | |
13912 | case $am_py_prefix in | |
13913 | /usr|/System*) ;; | |
13914 | *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" | |
13915 | ;; | |
5987562c | 13916 | esac |
6b2e4ec5 ZK |
13917 | ;; |
13918 | esac | |
635df748 ZK |
13919 | ;; |
13920 | esac | |
5987562c | 13921 | fi |
6b2e4ec5 ZK |
13922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 |
13923 | printf "%s\n" "$am_cv_python_pythondir" >&6; } | |
5987562c AK |
13924 | pythondir=$am_cv_python_pythondir |
13925 | ||
13926 | ||
6b2e4ec5 | 13927 | pkgpythondir=\${pythondir}/$PACKAGE |
5987562c AK |
13928 | |
13929 | ||
6b2e4ec5 ZK |
13930 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 |
13931 | printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } | |
13932 | if test ${am_cv_python_pyexecdir+y} | |
13933 | then : | |
13934 | printf %s "(cached) " >&6 | |
635df748 ZK |
13935 | else case e in #( |
13936 | e) if test "x$am_cv_python_exec_prefix" = x; then | |
6b2e4ec5 ZK |
13937 | am_py_exec_prefix=$am__usable_exec_prefix |
13938 | else | |
13939 | am_py_exec_prefix=$am_cv_python_exec_prefix | |
13940 | fi | |
13941 | am_cv_python_pyexecdir=`$PYTHON -c " | |
5987562c AK |
13942 | $am_python_setup_sysconfig |
13943 | if can_use_sysconfig: | |
6b2e4ec5 | 13944 | sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) |
5987562c | 13945 | else: |
6b2e4ec5 ZK |
13946 | from distutils import sysconfig |
13947 | sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') | |
5987562c | 13948 | sys.stdout.write(sitedir)"` |
6b2e4ec5 ZK |
13949 | # |
13950 | case $am_cv_python_pyexecdir in | |
13951 | $am_py_exec_prefix*) | |
13952 | am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` | |
13953 | am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` | |
13954 | ;; | |
13955 | *) | |
13956 | case $am_py_exec_prefix in | |
13957 | /usr|/System*) ;; | |
13958 | *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" | |
13959 | ;; | |
5987562c | 13960 | esac |
6b2e4ec5 ZK |
13961 | ;; |
13962 | esac | |
635df748 ZK |
13963 | ;; |
13964 | esac | |
5987562c | 13965 | fi |
6b2e4ec5 ZK |
13966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 |
13967 | printf "%s\n" "$am_cv_python_pyexecdir" >&6; } | |
5987562c AK |
13968 | pyexecdir=$am_cv_python_pyexecdir |
13969 | ||
13970 | ||
6b2e4ec5 | 13971 | pkgpyexecdir=\${pyexecdir}/$PACKAGE |
5987562c AK |
13972 | |
13973 | ||
13974 | ||
13975 | fi | |
13976 | ||
5987562c | 13977 | PYTHON3=$PYTHON |
b681b774 ZK |
13978 | if test -z "$PYTHON3" |
13979 | then : | |
13980 | ||
13981 | as_fn_error $? "python3 is required for --enable-python3_bindings or --enable-dbus-service but cannot be found" "$LINENO" 5 | |
13982 | ||
13983 | fi | |
1b59f5a9 | 13984 | if test -n "$ac_tool_prefix"; then |
5987562c AK |
13985 | # Extract the first word of "${ac_tool_prefix}python3-config", so it can be a program name with args. |
13986 | set dummy ${ac_tool_prefix}python3-config; ac_word=$2 | |
6b2e4ec5 ZK |
13987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13988 | printf %s "checking for $ac_word... " >&6; } | |
13989 | if test ${ac_cv_path_PYTHON3_CONFIG+y} | |
13990 | then : | |
13991 | printf %s "(cached) " >&6 | |
635df748 ZK |
13992 | else case e in #( |
13993 | e) case $PYTHON3_CONFIG in | |
ee3cfa41 | 13994 | [\\/]* | ?:[\\/]*) |
5987562c | 13995 | ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path. |
ee3cfa41 AK |
13996 | ;; |
13997 | *) | |
13998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13999 | for as_dir in $PATH | |
14000 | do | |
14001 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
14002 | case $as_dir in #((( |
14003 | '') as_dir=./ ;; | |
14004 | */) ;; | |
14005 | *) as_dir=$as_dir/ ;; | |
14006 | esac | |
ee3cfa41 | 14007 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
14008 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
14009 | ac_cv_path_PYTHON3_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
14010 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
ee3cfa41 AK |
14011 | break 2 |
14012 | fi | |
14013 | done | |
14014 | done | |
14015 | IFS=$as_save_IFS | |
14016 | ||
ee3cfa41 | 14017 | ;; |
635df748 | 14018 | esac ;; |
ee3cfa41 AK |
14019 | esac |
14020 | fi | |
5987562c AK |
14021 | PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG |
14022 | if test -n "$PYTHON3_CONFIG"; then | |
6b2e4ec5 ZK |
14023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5 |
14024 | printf "%s\n" "$PYTHON3_CONFIG" >&6; } | |
ee3cfa41 | 14025 | else |
6b2e4ec5 ZK |
14026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14027 | printf "%s\n" "no" >&6; } | |
ee3cfa41 AK |
14028 | fi |
14029 | ||
14030 | ||
1b59f5a9 | 14031 | fi |
5987562c AK |
14032 | if test -z "$ac_cv_path_PYTHON3_CONFIG"; then |
14033 | ac_pt_PYTHON3_CONFIG=$PYTHON3_CONFIG | |
14034 | # Extract the first word of "python3-config", so it can be a program name with args. | |
14035 | set dummy python3-config; ac_word=$2 | |
6b2e4ec5 ZK |
14036 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14037 | printf %s "checking for $ac_word... " >&6; } | |
14038 | if test ${ac_cv_path_ac_pt_PYTHON3_CONFIG+y} | |
14039 | then : | |
14040 | printf %s "(cached) " >&6 | |
635df748 ZK |
14041 | else case e in #( |
14042 | e) case $ac_pt_PYTHON3_CONFIG in | |
1b59f5a9 | 14043 | [\\/]* | ?:[\\/]*) |
5987562c | 14044 | ac_cv_path_ac_pt_PYTHON3_CONFIG="$ac_pt_PYTHON3_CONFIG" # Let the user override the test with a path. |
1b59f5a9 ZK |
14045 | ;; |
14046 | *) | |
14047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14048 | for as_dir in $PATH | |
14049 | do | |
14050 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
14051 | case $as_dir in #((( |
14052 | '') as_dir=./ ;; | |
14053 | */) ;; | |
14054 | *) as_dir=$as_dir/ ;; | |
14055 | esac | |
1b59f5a9 | 14056 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
14057 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
14058 | ac_cv_path_ac_pt_PYTHON3_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
14059 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
1b59f5a9 ZK |
14060 | break 2 |
14061 | fi | |
14062 | done | |
14063 | done | |
14064 | IFS=$as_save_IFS | |
ee3cfa41 | 14065 | |
1b59f5a9 | 14066 | ;; |
635df748 | 14067 | esac ;; |
1b59f5a9 ZK |
14068 | esac |
14069 | fi | |
5987562c AK |
14070 | ac_pt_PYTHON3_CONFIG=$ac_cv_path_ac_pt_PYTHON3_CONFIG |
14071 | if test -n "$ac_pt_PYTHON3_CONFIG"; then | |
6b2e4ec5 ZK |
14072 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON3_CONFIG" >&5 |
14073 | printf "%s\n" "$ac_pt_PYTHON3_CONFIG" >&6; } | |
1b59f5a9 | 14074 | else |
6b2e4ec5 ZK |
14075 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14076 | printf "%s\n" "no" >&6; } | |
1b59f5a9 | 14077 | fi |
ee3cfa41 | 14078 | |
5987562c AK |
14079 | if test "x$ac_pt_PYTHON3_CONFIG" = x; then |
14080 | PYTHON3_CONFIG="" | |
1b59f5a9 ZK |
14081 | else |
14082 | case $cross_compiling:$ac_tool_warned in | |
14083 | yes:) | |
6b2e4ec5 ZK |
14084 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
14085 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
1b59f5a9 ZK |
14086 | ac_tool_warned=yes ;; |
14087 | esac | |
5987562c | 14088 | PYTHON3_CONFIG=$ac_pt_PYTHON3_CONFIG |
1b59f5a9 ZK |
14089 | fi |
14090 | else | |
5987562c AK |
14091 | PYTHON3_CONFIG="$ac_cv_path_PYTHON3_CONFIG" |
14092 | fi | |
14093 | ||
b681b774 ZK |
14094 | if test -z "$PYTHON3_CONFIG" |
14095 | then : | |
14096 | ||
14097 | as_fn_error $? "python3 headers are required for --enable-python3_bindings or --enable-dbus-service but cannot be found" "$LINENO" 5 | |
14098 | ||
14099 | fi | |
5987562c | 14100 | PYTHON3DIR=$pythondir |
b681b774 ZK |
14101 | if test "$PYTHON3_BINDINGS" = "yes" |
14102 | then : | |
a861f042 | 14103 | PYTHON_BINDINGS="yes" |
b681b774 | 14104 | fi |
1b59f5a9 | 14105 | |
5987562c | 14106 | # To get this macro, install autoconf-archive package then run autoreconf |
1b59f5a9 | 14107 | |
5987562c AK |
14108 | if test -z $PYTHON; |
14109 | then | |
14110 | if test -z "python3"; | |
14111 | then | |
14112 | PYTHON="python3" | |
14113 | else | |
14114 | PYTHON="python3" | |
14115 | fi | |
14116 | fi | |
14117 | PYTHON_NAME=`basename $PYTHON` | |
6b2e4ec5 ZK |
14118 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: pyudev" >&5 |
14119 | printf %s "checking $PYTHON_NAME module: pyudev... " >&6; } | |
5987562c AK |
14120 | $PYTHON -c "import pyudev" 2>/dev/null |
14121 | if test $? -eq 0; | |
14122 | then | |
6b2e4ec5 ZK |
14123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14124 | printf "%s\n" "yes" >&6; } | |
5987562c AK |
14125 | eval HAVE_PYMOD_PYUDEV=yes |
14126 | else | |
6b2e4ec5 ZK |
14127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14128 | printf "%s\n" "no" >&6; } | |
5987562c AK |
14129 | eval HAVE_PYMOD_PYUDEV=no |
14130 | # | |
14131 | if test -n "Required" | |
14132 | then | |
14133 | as_fn_error $? "failed to find required module pyudev" "$LINENO" 5 | |
14134 | exit 1 | |
14135 | fi | |
14136 | fi | |
14137 | ||
14138 | ||
14139 | if test -z $PYTHON; | |
14140 | then | |
14141 | if test -z "python3"; | |
14142 | then | |
14143 | PYTHON="python3" | |
14144 | else | |
14145 | PYTHON="python3" | |
14146 | fi | |
14147 | fi | |
14148 | PYTHON_NAME=`basename $PYTHON` | |
6b2e4ec5 ZK |
14149 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: dbus" >&5 |
14150 | printf %s "checking $PYTHON_NAME module: dbus... " >&6; } | |
5987562c AK |
14151 | $PYTHON -c "import dbus" 2>/dev/null |
14152 | if test $? -eq 0; | |
14153 | then | |
6b2e4ec5 ZK |
14154 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14155 | printf "%s\n" "yes" >&6; } | |
5987562c AK |
14156 | eval HAVE_PYMOD_DBUS=yes |
14157 | else | |
6b2e4ec5 ZK |
14158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14159 | printf "%s\n" "no" >&6; } | |
5987562c AK |
14160 | eval HAVE_PYMOD_DBUS=no |
14161 | # | |
14162 | if test -n "Required" | |
14163 | then | |
14164 | as_fn_error $? "failed to find required module dbus" "$LINENO" 5 | |
14165 | exit 1 | |
14166 | fi | |
14167 | fi | |
14168 | ||
b681b774 | 14169 | |
5987562c AK |
14170 | fi |
14171 | ||
f11781c5 AK |
14172 | ################################################################################ |
14173 | # Check whether --enable-pkgconfig was given. | |
6b2e4ec5 ZK |
14174 | if test ${enable_pkgconfig+y} |
14175 | then : | |
f11781c5 | 14176 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval |
635df748 ZK |
14177 | else case e in #( |
14178 | e) PKGCONFIG="no" ;; | |
14179 | esac | |
ad6254c5 | 14180 | fi |
ad6254c5 | 14181 | |
ad6254c5 | 14182 | |
f11781c5 AK |
14183 | ################################################################################ |
14184 | # Check whether --enable-write_install was given. | |
6b2e4ec5 ZK |
14185 | if test ${enable_write_install+y} |
14186 | then : | |
f11781c5 | 14187 | enableval=$enable_write_install; WRITE_INSTALL=$enableval |
635df748 ZK |
14188 | else case e in #( |
14189 | e) WRITE_INSTALL="no" ;; | |
14190 | esac | |
ad6254c5 AK |
14191 | fi |
14192 | ||
ad6254c5 | 14193 | |
f11781c5 | 14194 | ################################################################################ |
6b2e4ec5 ZK |
14195 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5 |
14196 | printf %s "checking whether to install fsadm... " >&6; } | |
f11781c5 | 14197 | # Check whether --enable-fsadm was given. |
6b2e4ec5 ZK |
14198 | if test ${enable_fsadm+y} |
14199 | then : | |
f11781c5 | 14200 | enableval=$enable_fsadm; FSADM=$enableval |
ad6254c5 AK |
14201 | fi |
14202 | ||
6b2e4ec5 ZK |
14203 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5 |
14204 | printf "%s\n" "$FSADM" >&6; } | |
ad6254c5 | 14205 | |
ed48cb26 ZK |
14206 | |
14207 | ################################################################################ | |
6b2e4ec5 ZK |
14208 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install lvm_import_vdo" >&5 |
14209 | printf %s "checking whether to install lvm_import_vdo... " >&6; } | |
12ba43cc | 14210 | # Check whether --enable-lvmimportvdo was given. |
6b2e4ec5 ZK |
14211 | if test ${enable_lvmimportvdo+y} |
14212 | then : | |
12ba43cc | 14213 | enableval=$enable_lvmimportvdo; LVMIMPORTVDO=$enableval |
ed48cb26 ZK |
14214 | fi |
14215 | ||
6b2e4ec5 ZK |
14216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LVMIMPORTVDO" >&5 |
14217 | printf "%s\n" "$LVMIMPORTVDO" >&6; } | |
ed48cb26 | 14218 | |
a70d6b35 | 14219 | ################################################################################ |
6b2e4ec5 ZK |
14220 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install blkdeactivate" >&5 |
14221 | printf %s "checking whether to install blkdeactivate... " >&6; } | |
a70d6b35 | 14222 | # Check whether --enable-blkdeactivate was given. |
6b2e4ec5 ZK |
14223 | if test ${enable_blkdeactivate+y} |
14224 | then : | |
a70d6b35 PR |
14225 | enableval=$enable_blkdeactivate; BLKDEACTIVATE=$enableval |
14226 | fi | |
14227 | ||
6b2e4ec5 ZK |
14228 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKDEACTIVATE" >&5 |
14229 | printf "%s\n" "$BLKDEACTIVATE" >&6; } | |
a70d6b35 | 14230 | |
f11781c5 | 14231 | ################################################################################ |
6b2e4ec5 ZK |
14232 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5 |
14233 | printf %s "checking whether to use dmeventd... " >&6; } | |
f11781c5 | 14234 | # Check whether --enable-dmeventd was given. |
6b2e4ec5 ZK |
14235 | if test ${enable_dmeventd+y} |
14236 | then : | |
95dd5bc7 | 14237 | enableval=$enable_dmeventd; BUILD_DMEVENTD=$enableval |
635df748 ZK |
14238 | else case e in #( |
14239 | e) BUILD_DMEVENTD="no" ;; | |
14240 | esac | |
f11781c5 | 14241 | fi |
ad6254c5 | 14242 | |
6b2e4ec5 ZK |
14243 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_DMEVENTD" >&5 |
14244 | printf "%s\n" "$BUILD_DMEVENTD" >&6; } | |
ad6254c5 | 14245 | |
b681b774 ZK |
14246 | if test "$BUILD_DMEVENTD" = "yes" |
14247 | then : | |
14248 | ||
0627716f | 14249 | if test "$MIRRORS" != "internal" |
b681b774 | 14250 | then : |
0627716f ZK |
14251 | as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal" "$LINENO" 5 |
14252 | fi | |
b681b774 | 14253 | |
0627716f | 14254 | printf "%s\n" "#define DMEVENTD 1" >>confdefs.h |
b681b774 ZK |
14255 | |
14256 | fi | |
0627716f ZK |
14257 | |
14258 | ################################################################################ | |
14259 | # Check whether --enable-cmdlib was given. | |
14260 | if test ${enable_cmdlib+y} | |
b681b774 | 14261 | then : |
0627716f | 14262 | enableval=$enable_cmdlib; CMDLIB=$enableval |
635df748 ZK |
14263 | else case e in #( |
14264 | e) CMDLIB="maybe" ;; | |
14265 | esac | |
0627716f | 14266 | fi |
b681b774 | 14267 | |
b681b774 | 14268 | |
0627716f ZK |
14269 | if test "$BUILD_DMEVENTD" = "yes" |
14270 | then : | |
14271 | if test "$CMDLIB" = "no" | |
14272 | then : | |
14273 | as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well" "$LINENO" 5 | |
635df748 ZK |
14274 | else case e in #( |
14275 | e) CMDLIB="yes" ;; | |
14276 | esac | |
0627716f | 14277 | fi |
b681b774 | 14278 | fi |
ad6254c5 | 14279 | |
0627716f ZK |
14280 | if test "$CMDLIB" != "yes" |
14281 | then : | |
14282 | CMDLIB="no" LVM2CMD_LIB= | |
635df748 ZK |
14283 | else case e in #( |
14284 | e) LVM2CMD_LIB="-llvm2cmd" ;; | |
14285 | esac | |
0627716f | 14286 | fi |
ad6254c5 | 14287 | |
0627716f ZK |
14288 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5 |
14289 | printf %s "checking whether to compile liblvm2cmd.so... " >&6; } | |
14290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5 | |
14291 | printf "%s\n" "$CMDLIB" >&6; } | |
b681b774 | 14292 | |
0627716f ZK |
14293 | if test "$CMDLIB" == "yes" && test "$SHARED_LINK" = "no" |
14294 | then : | |
14295 | as_fn_error $? "--enable-cmdlib requires dynamic linking." "$LINENO" 5 | |
a7cf55c6 ZK |
14296 | fi |
14297 | ||
0627716f | 14298 | |
a7cf55c6 ZK |
14299 | ################################################################################ |
14300 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build dmfilemapd" >&5 | |
14301 | printf %s "checking whether to build dmfilemapd... " >&6; } | |
14302 | # Check whether --enable-dmfilemapd was given. | |
14303 | if test ${enable_dmfilemapd+y} | |
14304 | then : | |
14305 | enableval=$enable_dmfilemapd; BUILD_DMFILEMAPD=$enableval | |
635df748 ZK |
14306 | else case e in #( |
14307 | e) BUILD_DMFILEMAPD="no" ;; | |
14308 | esac | |
a7cf55c6 ZK |
14309 | fi |
14310 | ||
14311 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_DMFILEMAPD" >&5 | |
14312 | printf "%s\n" "$BUILD_DMFILEMAPD" >&6; } | |
14313 | ||
14314 | if test "$BUILD_DMFILEMAPD" = "yes" | |
14315 | then : | |
0627716f | 14316 | ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default" |
a7cf55c6 ZK |
14317 | if test "x$ac_cv_header_linux_fiemap_h" = xyes |
14318 | then : | |
14319 | ||
635df748 ZK |
14320 | else case e in #( |
14321 | e) as_fn_error $? "--enable-dmfilemapd requires fiemap.h" "$LINENO" 5 ;; | |
14322 | esac | |
a7cf55c6 ZK |
14323 | fi |
14324 | ||
14325 | ||
14326 | printf "%s\n" "#define DMFILEMAPD 1" >>confdefs.h | |
14327 | ||
f11781c5 | 14328 | fi |
ad6254c5 | 14329 | |
f11781c5 | 14330 | ################################################################################ |
ad6254c5 | 14331 | |
6b2e4ec5 ZK |
14332 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5 |
14333 | printf %s "checking for getline in -lc... " >&6; } | |
14334 | if test ${ac_cv_lib_c_getline+y} | |
14335 | then : | |
14336 | printf %s "(cached) " >&6 | |
635df748 ZK |
14337 | else case e in #( |
14338 | e) ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
14339 | LIBS="-lc $LIBS" |
14340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 14341 | /* end confdefs.h. */ |
f11781c5 AK |
14342 | |
14343 | /* Override any GCC internal prototype to avoid an error. | |
14344 | Use char because int might match the return type of a GCC | |
635df748 ZK |
14345 | builtin and then its argument prototype would still apply. |
14346 | The 'extern "C"' is for builds by C++ compilers; | |
14347 | although this is not generally supported in C code supporting it here | |
14348 | has little cost and some practical benefit (sr 110532). */ | |
14349 | #ifdef __cplusplus | |
14350 | extern "C" | |
14351 | #endif | |
14352 | char getline (void); | |
f11781c5 | 14353 | int |
6b2e4ec5 | 14354 | main (void) |
f11781c5 AK |
14355 | { |
14356 | return getline (); | |
14357 | ; | |
14358 | return 0; | |
14359 | } | |
ad6254c5 | 14360 | _ACEOF |
6b2e4ec5 ZK |
14361 | if ac_fn_c_try_link "$LINENO" |
14362 | then : | |
f11781c5 | 14363 | ac_cv_lib_c_getline=yes |
635df748 ZK |
14364 | else case e in #( |
14365 | e) ac_cv_lib_c_getline=no ;; | |
14366 | esac | |
f11781c5 | 14367 | fi |
6b2e4ec5 | 14368 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f11781c5 | 14369 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
14370 | LIBS=$ac_check_lib_save_LIBS ;; |
14371 | esac | |
f11781c5 | 14372 | fi |
6b2e4ec5 ZK |
14373 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5 |
14374 | printf "%s\n" "$ac_cv_lib_c_getline" >&6; } | |
14375 | if test "x$ac_cv_lib_c_getline" = xyes | |
14376 | then : | |
f11781c5 | 14377 | |
6b2e4ec5 | 14378 | printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h |
ad6254c5 | 14379 | |
ad6254c5 | 14380 | fi |
7a197a62 | 14381 | |
ad6254c5 | 14382 | |
f11781c5 AK |
14383 | ################################################################################ |
14384 | ||
6b2e4ec5 ZK |
14385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5 |
14386 | printf %s "checking for canonicalize_file_name in -lc... " >&6; } | |
14387 | if test ${ac_cv_lib_c_canonicalize_file_name+y} | |
14388 | then : | |
14389 | printf %s "(cached) " >&6 | |
635df748 ZK |
14390 | else case e in #( |
14391 | e) ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
14392 | LIBS="-lc $LIBS" |
14393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 14394 | /* end confdefs.h. */ |
f11781c5 AK |
14395 | |
14396 | /* Override any GCC internal prototype to avoid an error. | |
14397 | Use char because int might match the return type of a GCC | |
635df748 ZK |
14398 | builtin and then its argument prototype would still apply. |
14399 | The 'extern "C"' is for builds by C++ compilers; | |
14400 | although this is not generally supported in C code supporting it here | |
14401 | has little cost and some practical benefit (sr 110532). */ | |
14402 | #ifdef __cplusplus | |
14403 | extern "C" | |
14404 | #endif | |
14405 | char canonicalize_file_name (void); | |
f11781c5 | 14406 | int |
6b2e4ec5 | 14407 | main (void) |
f11781c5 AK |
14408 | { |
14409 | return canonicalize_file_name (); | |
14410 | ; | |
14411 | return 0; | |
14412 | } | |
ad6254c5 | 14413 | _ACEOF |
6b2e4ec5 ZK |
14414 | if ac_fn_c_try_link "$LINENO" |
14415 | then : | |
f11781c5 | 14416 | ac_cv_lib_c_canonicalize_file_name=yes |
635df748 ZK |
14417 | else case e in #( |
14418 | e) ac_cv_lib_c_canonicalize_file_name=no ;; | |
14419 | esac | |
f11781c5 | 14420 | fi |
6b2e4ec5 | 14421 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f11781c5 | 14422 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
14423 | LIBS=$ac_check_lib_save_LIBS ;; |
14424 | esac | |
f11781c5 | 14425 | fi |
6b2e4ec5 ZK |
14426 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5 |
14427 | printf "%s\n" "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
14428 | if test "x$ac_cv_lib_c_canonicalize_file_name" = xyes | |
14429 | then : | |
f11781c5 | 14430 | |
6b2e4ec5 | 14431 | printf "%s\n" "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h |
ad6254c5 | 14432 | |
ad6254c5 | 14433 | fi |
7a197a62 | 14434 | |
ad6254c5 | 14435 | |
f11781c5 | 14436 | ################################################################################ |
6b2e4ec5 ZK |
14437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
14438 | printf %s "checking for dlopen in -ldl... " >&6; } | |
14439 | if test ${ac_cv_lib_dl_dlopen+y} | |
14440 | then : | |
14441 | printf %s "(cached) " >&6 | |
635df748 ZK |
14442 | else case e in #( |
14443 | e) ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
14444 | LIBS="-ldl $LIBS" |
14445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14446 | /* end confdefs.h. */ | |
ad6254c5 | 14447 | |
f11781c5 AK |
14448 | /* Override any GCC internal prototype to avoid an error. |
14449 | Use char because int might match the return type of a GCC | |
635df748 ZK |
14450 | builtin and then its argument prototype would still apply. |
14451 | The 'extern "C"' is for builds by C++ compilers; | |
14452 | although this is not generally supported in C code supporting it here | |
14453 | has little cost and some practical benefit (sr 110532). */ | |
14454 | #ifdef __cplusplus | |
14455 | extern "C" | |
14456 | #endif | |
14457 | char dlopen (void); | |
f11781c5 | 14458 | int |
6b2e4ec5 | 14459 | main (void) |
f11781c5 AK |
14460 | { |
14461 | return dlopen (); | |
14462 | ; | |
14463 | return 0; | |
14464 | } | |
ad6254c5 | 14465 | _ACEOF |
6b2e4ec5 ZK |
14466 | if ac_fn_c_try_link "$LINENO" |
14467 | then : | |
f11781c5 | 14468 | ac_cv_lib_dl_dlopen=yes |
635df748 ZK |
14469 | else case e in #( |
14470 | e) ac_cv_lib_dl_dlopen=no ;; | |
14471 | esac | |
795ca3e5 | 14472 | fi |
6b2e4ec5 | 14473 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f11781c5 | 14474 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
14475 | LIBS=$ac_check_lib_save_LIBS ;; |
14476 | esac | |
f11781c5 | 14477 | fi |
6b2e4ec5 ZK |
14478 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
14479 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } | |
14480 | if test "x$ac_cv_lib_dl_dlopen" = xyes | |
14481 | then : | |
795ca3e5 | 14482 | |
6b2e4ec5 | 14483 | printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h |
ad6254c5 | 14484 | |
1b59f5a9 | 14485 | DL_LIBS="-ldl" |
b681b774 | 14486 | HAVE_LIBDL="yes" |
635df748 ZK |
14487 | else case e in #( |
14488 | e) DL_LIBS= | |
14489 | HAVE_LIBDL="no" ;; | |
14490 | esac | |
f11781c5 | 14491 | fi |
8106cdd5 | 14492 | |
ad6254c5 | 14493 | |
f11781c5 | 14494 | ################################################################################ |
b681b774 ZK |
14495 | if ( test "$LVM1" = "shared" || test "$POOL" = "shared" ) && test "$STATIC_LINK" = "yes" |
14496 | then : | |
14497 | ||
1b59f5a9 | 14498 | as_fn_error $? "Features cannot be 'shared' when building statically" "$LINENO" 5 |
b681b774 | 14499 | |
f11781c5 | 14500 | fi |
ad6254c5 | 14501 | |
c1bd76d6 | 14502 | ################################################################################ |
6b2e4ec5 ZK |
14503 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5 |
14504 | printf %s "checking for log10 in -lm... " >&6; } | |
14505 | if test ${ac_cv_lib_m_log10+y} | |
14506 | then : | |
14507 | printf %s "(cached) " >&6 | |
635df748 ZK |
14508 | else case e in #( |
14509 | e) ac_check_lib_save_LIBS=$LIBS | |
c1bd76d6 BR |
14510 | LIBS="-lm $LIBS" |
14511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14512 | /* end confdefs.h. */ | |
14513 | ||
14514 | /* Override any GCC internal prototype to avoid an error. | |
14515 | Use char because int might match the return type of a GCC | |
635df748 ZK |
14516 | builtin and then its argument prototype would still apply. |
14517 | The 'extern "C"' is for builds by C++ compilers; | |
14518 | although this is not generally supported in C code supporting it here | |
14519 | has little cost and some practical benefit (sr 110532). */ | |
14520 | #ifdef __cplusplus | |
14521 | extern "C" | |
14522 | #endif | |
14523 | char log10 (void); | |
c1bd76d6 | 14524 | int |
6b2e4ec5 | 14525 | main (void) |
c1bd76d6 BR |
14526 | { |
14527 | return log10 (); | |
14528 | ; | |
14529 | return 0; | |
14530 | } | |
14531 | _ACEOF | |
6b2e4ec5 ZK |
14532 | if ac_fn_c_try_link "$LINENO" |
14533 | then : | |
c1bd76d6 | 14534 | ac_cv_lib_m_log10=yes |
635df748 ZK |
14535 | else case e in #( |
14536 | e) ac_cv_lib_m_log10=no ;; | |
14537 | esac | |
c1bd76d6 | 14538 | fi |
6b2e4ec5 | 14539 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
c1bd76d6 | 14540 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
14541 | LIBS=$ac_check_lib_save_LIBS ;; |
14542 | esac | |
c1bd76d6 | 14543 | fi |
6b2e4ec5 ZK |
14544 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5 |
14545 | printf "%s\n" "$ac_cv_lib_m_log10" >&6; } | |
14546 | if test "x$ac_cv_lib_m_log10" = xyes | |
14547 | then : | |
c1bd76d6 | 14548 | M_LIBS="-lm" |
635df748 ZK |
14549 | else case e in #( |
14550 | e) hard_bailout ;; | |
14551 | esac | |
c1bd76d6 BR |
14552 | fi |
14553 | ||
14554 | ||
f11781c5 | 14555 | ################################################################################ |
6b2e4ec5 ZK |
14556 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 |
14557 | printf %s "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
14558 | if test ${ac_cv_lib_pthread_pthread_mutex_lock+y} | |
14559 | then : | |
14560 | printf %s "(cached) " >&6 | |
635df748 ZK |
14561 | else case e in #( |
14562 | e) ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
14563 | LIBS="-lpthread $LIBS" |
14564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 14565 | /* end confdefs.h. */ |
8a2fc586 | 14566 | |
f11781c5 AK |
14567 | /* Override any GCC internal prototype to avoid an error. |
14568 | Use char because int might match the return type of a GCC | |
635df748 ZK |
14569 | builtin and then its argument prototype would still apply. |
14570 | The 'extern "C"' is for builds by C++ compilers; | |
14571 | although this is not generally supported in C code supporting it here | |
14572 | has little cost and some practical benefit (sr 110532). */ | |
14573 | #ifdef __cplusplus | |
14574 | extern "C" | |
14575 | #endif | |
14576 | char pthread_mutex_lock (void); | |
f11781c5 | 14577 | int |
6b2e4ec5 | 14578 | main (void) |
f11781c5 AK |
14579 | { |
14580 | return pthread_mutex_lock (); | |
14581 | ; | |
14582 | return 0; | |
14583 | } | |
14584 | _ACEOF | |
6b2e4ec5 ZK |
14585 | if ac_fn_c_try_link "$LINENO" |
14586 | then : | |
f11781c5 | 14587 | ac_cv_lib_pthread_pthread_mutex_lock=yes |
635df748 ZK |
14588 | else case e in #( |
14589 | e) ac_cv_lib_pthread_pthread_mutex_lock=no ;; | |
14590 | esac | |
f11781c5 | 14591 | fi |
6b2e4ec5 | 14592 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f11781c5 | 14593 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
14594 | LIBS=$ac_check_lib_save_LIBS ;; |
14595 | esac | |
f11781c5 | 14596 | fi |
6b2e4ec5 ZK |
14597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 |
14598 | printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
14599 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes | |
14600 | then : | |
f11781c5 | 14601 | PTHREAD_LIBS="-lpthread" |
635df748 ZK |
14602 | else case e in #( |
14603 | e) hard_bailout ;; | |
14604 | esac | |
f11781c5 AK |
14605 | fi |
14606 | ||
f11781c5 AK |
14607 | |
14608 | ################################################################################ | |
6b2e4ec5 ZK |
14609 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5 |
14610 | printf %s "checking whether to enable selinux support... " >&6; } | |
f11781c5 | 14611 | # Check whether --enable-selinux was given. |
6b2e4ec5 ZK |
14612 | if test ${enable_selinux+y} |
14613 | then : | |
f11781c5 AK |
14614 | enableval=$enable_selinux; SELINUX=$enableval |
14615 | fi | |
14616 | ||
6b2e4ec5 ZK |
14617 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5 |
14618 | printf "%s\n" "$SELINUX" >&6; } | |
8a2fc586 | 14619 | |
f11781c5 | 14620 | ################################################################################ |
b681b774 ZK |
14621 | if test "$SELINUX" = "yes" |
14622 | then : | |
14623 | ||
6b2e4ec5 ZK |
14624 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5 |
14625 | printf %s "checking for sepol_check_context in -lsepol... " >&6; } | |
14626 | if test ${ac_cv_lib_sepol_sepol_check_context+y} | |
14627 | then : | |
14628 | printf %s "(cached) " >&6 | |
635df748 ZK |
14629 | else case e in #( |
14630 | e) ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
14631 | LIBS="-lsepol $LIBS" |
14632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14633 | /* end confdefs.h. */ | |
8a2fc586 | 14634 | |
7a197a62 AK |
14635 | /* Override any GCC internal prototype to avoid an error. |
14636 | Use char because int might match the return type of a GCC | |
635df748 ZK |
14637 | builtin and then its argument prototype would still apply. |
14638 | The 'extern "C"' is for builds by C++ compilers; | |
14639 | although this is not generally supported in C code supporting it here | |
14640 | has little cost and some practical benefit (sr 110532). */ | |
14641 | #ifdef __cplusplus | |
14642 | extern "C" | |
14643 | #endif | |
14644 | char sepol_check_context (void); | |
ad6254c5 | 14645 | int |
6b2e4ec5 | 14646 | main (void) |
ad6254c5 | 14647 | { |
f11781c5 | 14648 | return sepol_check_context (); |
ad6254c5 AK |
14649 | ; |
14650 | return 0; | |
14651 | } | |
14652 | _ACEOF | |
6b2e4ec5 ZK |
14653 | if ac_fn_c_try_link "$LINENO" |
14654 | then : | |
f11781c5 | 14655 | ac_cv_lib_sepol_sepol_check_context=yes |
635df748 ZK |
14656 | else case e in #( |
14657 | e) ac_cv_lib_sepol_sepol_check_context=no ;; | |
14658 | esac | |
f11781c5 | 14659 | fi |
6b2e4ec5 | 14660 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f11781c5 | 14661 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
14662 | LIBS=$ac_check_lib_save_LIBS ;; |
14663 | esac | |
80992638 | 14664 | fi |
6b2e4ec5 ZK |
14665 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
14666 | printf "%s\n" "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
14667 | if test "x$ac_cv_lib_sepol_sepol_check_context" = xyes | |
14668 | then : | |
7a197a62 | 14669 | |
80992638 | 14670 | |
6b2e4ec5 | 14671 | printf "%s\n" "#define HAVE_SEPOL 1" >>confdefs.h |
f11781c5 | 14672 | |
86ac529b ZK |
14673 | SEPOL_LIBS="-lsepol" |
14674 | fi | |
14675 | ||
14676 | ||
14677 | if test -n "$PKG_CONFIG" && \ | |
14678 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 | |
14679 | ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 | |
14680 | ac_status=$? | |
14681 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14682 | test $ac_status = 0; }; then | |
14683 | ||
14684 | pkg_failed=no | |
a7cf55c6 ZK |
14685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libselinux" >&5 |
14686 | printf %s "checking for libselinux... " >&6; } | |
86ac529b ZK |
14687 | |
14688 | if test -n "$SELINUX_CFLAGS"; then | |
14689 | pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS" | |
14690 | elif test -n "$PKG_CONFIG"; then | |
14691 | if test -n "$PKG_CONFIG" && \ | |
14692 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 | |
14693 | ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 | |
14694 | ac_status=$? | |
14695 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14696 | test $ac_status = 0; }; then | |
14697 | pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null` | |
14698 | test "x$?" != "x0" && pkg_failed=yes | |
14699 | else | |
14700 | pkg_failed=yes | |
14701 | fi | |
14702 | else | |
14703 | pkg_failed=untried | |
14704 | fi | |
14705 | if test -n "$SELINUX_LIBS"; then | |
14706 | pkg_cv_SELINUX_LIBS="$SELINUX_LIBS" | |
14707 | elif test -n "$PKG_CONFIG"; then | |
14708 | if test -n "$PKG_CONFIG" && \ | |
14709 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 | |
14710 | ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 | |
14711 | ac_status=$? | |
14712 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14713 | test $ac_status = 0; }; then | |
14714 | pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null` | |
14715 | test "x$?" != "x0" && pkg_failed=yes | |
14716 | else | |
14717 | pkg_failed=yes | |
14718 | fi | |
14719 | else | |
14720 | pkg_failed=untried | |
14721 | fi | |
14722 | ||
14723 | ||
14724 | ||
14725 | if test $pkg_failed = yes; then | |
a7cf55c6 | 14726 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
86ac529b ZK |
14727 | printf "%s\n" "no" >&6; } |
14728 | ||
14729 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14730 | _pkg_short_errors_supported=yes | |
14731 | else | |
14732 | _pkg_short_errors_supported=no | |
8106cdd5 | 14733 | fi |
86ac529b | 14734 | if test $_pkg_short_errors_supported = yes; then |
a7cf55c6 | 14735 | SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1` |
86ac529b | 14736 | else |
a7cf55c6 | 14737 | SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1` |
86ac529b | 14738 | fi |
a7cf55c6 ZK |
14739 | # Put the nasty error message in config.log where it belongs |
14740 | echo "$SELINUX_PKG_ERRORS" >&5 | |
795ca3e5 | 14741 | |
a7cf55c6 | 14742 | as_fn_error $? "Package requirements (libselinux) were not met: |
86ac529b ZK |
14743 | |
14744 | $SELINUX_PKG_ERRORS | |
14745 | ||
14746 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14747 | installed software in a non-standard prefix. | |
14748 | ||
14749 | Alternatively, you may set the environment variables SELINUX_CFLAGS | |
14750 | and SELINUX_LIBS to avoid the need to call pkg-config. | |
14751 | See the pkg-config man page for more details." "$LINENO" 5 | |
14752 | elif test $pkg_failed = untried; then | |
a7cf55c6 | 14753 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
86ac529b | 14754 | printf "%s\n" "no" >&6; } |
635df748 ZK |
14755 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
14756 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
86ac529b ZK |
14757 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
14758 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14759 | path to pkg-config. | |
14760 | ||
14761 | Alternatively, you may set the environment variables SELINUX_CFLAGS | |
14762 | and SELINUX_LIBS to avoid the need to call pkg-config. | |
14763 | See the pkg-config man page for more details. | |
14764 | ||
14765 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
635df748 | 14766 | See 'config.log' for more details" "$LINENO" 5; } |
86ac529b | 14767 | else |
a7cf55c6 ZK |
14768 | SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS |
14769 | SELINUX_LIBS=$pkg_cv_SELINUX_LIBS | |
86ac529b ZK |
14770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
14771 | printf "%s\n" "yes" >&6; } | |
a7cf55c6 | 14772 | SELINUX_STATIC_LIBS=$("$PKG_CONFIG" --static --libs libselinux) |
86ac529b ZK |
14773 | fi |
14774 | fi | |
f11781c5 | 14775 | |
6b2e4ec5 ZK |
14776 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 |
14777 | printf %s "checking for is_selinux_enabled in -lselinux... " >&6; } | |
14778 | if test ${ac_cv_lib_selinux_is_selinux_enabled+y} | |
14779 | then : | |
14780 | printf %s "(cached) " >&6 | |
635df748 ZK |
14781 | else case e in #( |
14782 | e) ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
14783 | LIBS="-lselinux $LIBS" |
14784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25fbec5b | 14785 | /* end confdefs.h. */ |
80992638 | 14786 | |
7a197a62 AK |
14787 | /* Override any GCC internal prototype to avoid an error. |
14788 | Use char because int might match the return type of a GCC | |
635df748 ZK |
14789 | builtin and then its argument prototype would still apply. |
14790 | The 'extern "C"' is for builds by C++ compilers; | |
14791 | although this is not generally supported in C code supporting it here | |
14792 | has little cost and some practical benefit (sr 110532). */ | |
14793 | #ifdef __cplusplus | |
14794 | extern "C" | |
14795 | #endif | |
14796 | char is_selinux_enabled (void); | |
ad6254c5 | 14797 | int |
6b2e4ec5 | 14798 | main (void) |
ad6254c5 | 14799 | { |
f11781c5 | 14800 | return is_selinux_enabled (); |
ad6254c5 AK |
14801 | ; |
14802 | return 0; | |
14803 | } | |
14804 | _ACEOF | |
6b2e4ec5 ZK |
14805 | if ac_fn_c_try_link "$LINENO" |
14806 | then : | |
f11781c5 | 14807 | ac_cv_lib_selinux_is_selinux_enabled=yes |
635df748 ZK |
14808 | else case e in #( |
14809 | e) ac_cv_lib_selinux_is_selinux_enabled=no ;; | |
14810 | esac | |
25fbec5b | 14811 | fi |
6b2e4ec5 | 14812 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f11781c5 | 14813 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
14814 | LIBS=$ac_check_lib_save_LIBS ;; |
14815 | esac | |
25fbec5b | 14816 | fi |
6b2e4ec5 ZK |
14817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
14818 | printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
14819 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes | |
14820 | then : | |
25fbec5b | 14821 | |
6b2e4ec5 | 14822 | for ac_header in selinux/selinux.h |
f11781c5 | 14823 | do : |
6b2e4ec5 ZK |
14824 | ac_fn_c_check_header_compile "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" |
14825 | if test "x$ac_cv_header_selinux_selinux_h" = xyes | |
14826 | then : | |
14827 | printf "%s\n" "#define HAVE_SELINUX_SELINUX_H 1" >>confdefs.h | |
795ca3e5 | 14828 | |
635df748 ZK |
14829 | else case e in #( |
14830 | e) hard_bailout ;; | |
14831 | esac | |
795ca3e5 | 14832 | fi |
795ca3e5 | 14833 | |
f11781c5 | 14834 | done |
6b2e4ec5 ZK |
14835 | ac_fn_c_check_header_compile "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" |
14836 | if test "x$ac_cv_header_selinux_label_h" = xyes | |
14837 | then : | |
14838 | printf "%s\n" "#define HAVE_SELINUX_LABEL_H 1" >>confdefs.h | |
ad6254c5 | 14839 | |
ad6254c5 | 14840 | fi |
7a197a62 | 14841 | |
ad6254c5 | 14842 | |
6b2e4ec5 | 14843 | printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h |
7a197a62 | 14844 | |
86ac529b ZK |
14845 | SELINUX_LIBS=${SELINUX_LIBS:--lselinux} |
14846 | SELINUX_STATIC_LIBS=${SELINUX_STATIC_LIBS:-$SELINUX_LIBS $SEPOL_LIBS} | |
f11781c5 AK |
14847 | SELINUX_PC="libselinux" |
14848 | HAVE_SELINUX=yes | |
635df748 ZK |
14849 | else case e in #( |
14850 | e) | |
6b2e4ec5 ZK |
14851 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5 |
14852 | printf "%s\n" "$as_me: WARNING: Disabling selinux" >&2;} | |
f11781c5 | 14853 | SELINUX_LIBS= |
86ac529b | 14854 | SELINUX_STATIC_LIBS= |
f11781c5 | 14855 | SELINUX_PC= |
635df748 ZK |
14856 | HAVE_SELINUX=no ;; |
14857 | esac | |
795ca3e5 | 14858 | fi |
ad6254c5 | 14859 | |
b681b774 | 14860 | |
795ca3e5 AK |
14861 | fi |
14862 | ||
ae96a43f ZK |
14863 | ################################################################################ |
14864 | ||
6b2e4ec5 ZK |
14865 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BLKZEROOUT in sys/ioctl.h." >&5 |
14866 | printf %s "checking for BLKZEROOUT in sys/ioctl.h.... " >&6; } | |
14867 | if test ${ac_cv_have_blkzeroout+y} | |
14868 | then : | |
14869 | printf %s "(cached) " >&6 | |
635df748 ZK |
14870 | else case e in #( |
14871 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ae96a43f ZK |
14872 | /* end confdefs.h. */ |
14873 | #include <sys/ioctl.h> | |
14874 | #include <linux/fs.h> | |
14875 | int bar(void) { return ioctl(0, BLKZEROOUT, 0); } | |
14876 | ||
14877 | int | |
6b2e4ec5 | 14878 | main (void) |
ae96a43f ZK |
14879 | { |
14880 | ||
14881 | ; | |
14882 | return 0; | |
14883 | } | |
14884 | _ACEOF | |
6b2e4ec5 ZK |
14885 | if ac_fn_c_try_compile "$LINENO" |
14886 | then : | |
b681b774 | 14887 | ac_cv_have_blkzeroout="yes" |
635df748 ZK |
14888 | else case e in #( |
14889 | e) ac_cv_have_blkzeroout="no" ;; | |
14890 | esac | |
ae96a43f | 14891 | fi |
635df748 ZK |
14892 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
14893 | esac | |
ae96a43f | 14894 | fi |
6b2e4ec5 ZK |
14895 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_blkzeroout" >&5 |
14896 | printf "%s\n" "$ac_cv_have_blkzeroout" >&6; } | |
ae96a43f ZK |
14897 | |
14898 | ||
14899 | # Check whether --enable-blkzeroout was given. | |
6b2e4ec5 ZK |
14900 | if test ${enable_blkzeroout+y} |
14901 | then : | |
ae96a43f | 14902 | enableval=$enable_blkzeroout; BLKZEROOUT=$enableval |
635df748 ZK |
14903 | else case e in #( |
14904 | e) BLKZEROOUT="yes" ;; | |
14905 | esac | |
ae96a43f ZK |
14906 | fi |
14907 | ||
14908 | ||
6b2e4ec5 ZK |
14909 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use BLKZEROOUT for device zeroing" >&5 |
14910 | printf %s "checking whether to use BLKZEROOUT for device zeroing... " >&6; } | |
b681b774 ZK |
14911 | if test "$BLKZEROOUT" = "yes" |
14912 | then : | |
14913 | ||
6b2e4ec5 ZK |
14914 | if test $ac_cv_have_blkzeroout = yes |
14915 | then : | |
ae96a43f | 14916 | |
6b2e4ec5 | 14917 | printf "%s\n" "#define HAVE_BLKZEROOUT 1" >>confdefs.h |
ae96a43f | 14918 | |
635df748 ZK |
14919 | else case e in #( |
14920 | e) BLKZEROOUT="no" ;; | |
14921 | esac | |
ae96a43f | 14922 | fi |
b681b774 | 14923 | |
ae96a43f | 14924 | fi |
6b2e4ec5 ZK |
14925 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKZEROOUT" >&5 |
14926 | printf "%s\n" "$BLKZEROOUT" >&6; } | |
ae96a43f ZK |
14927 | |
14928 | ||
f11781c5 | 14929 | ################################################################################ |
92b53a80 ZK |
14930 | RT_LIBS= |
14931 | HAVE_REALTIME=no | |
b681b774 ZK |
14932 | if test "$REALTIME" = "yes" |
14933 | then : | |
14934 | ||
6b2e4ec5 ZK |
14935 | |
14936 | for ac_func in clock_gettime | |
92b53a80 ZK |
14937 | do : |
14938 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | |
6b2e4ec5 ZK |
14939 | if test "x$ac_cv_func_clock_gettime" = xyes |
14940 | then : | |
14941 | printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | |
92b53a80 ZK |
14942 | HAVE_REALTIME=yes |
14943 | fi | |
92b53a80 | 14944 | |
6b2e4ec5 | 14945 | done |
92b53a80 | 14946 | |
b681b774 | 14947 | if test "$HAVE_REALTIME" != "yes" |
6b2e4ec5 | 14948 | then : |
92b53a80 | 14949 | # try again with -lrt |
6b2e4ec5 ZK |
14950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
14951 | printf %s "checking for clock_gettime in -lrt... " >&6; } | |
14952 | if test ${ac_cv_lib_rt_clock_gettime+y} | |
14953 | then : | |
14954 | printf %s "(cached) " >&6 | |
635df748 ZK |
14955 | else case e in #( |
14956 | e) ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
14957 | LIBS="-lrt $LIBS" |
14958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 14959 | /* end confdefs.h. */ |
ad6254c5 | 14960 | |
f11781c5 AK |
14961 | /* Override any GCC internal prototype to avoid an error. |
14962 | Use char because int might match the return type of a GCC | |
635df748 ZK |
14963 | builtin and then its argument prototype would still apply. |
14964 | The 'extern "C"' is for builds by C++ compilers; | |
14965 | although this is not generally supported in C code supporting it here | |
14966 | has little cost and some practical benefit (sr 110532). */ | |
14967 | #ifdef __cplusplus | |
14968 | extern "C" | |
14969 | #endif | |
14970 | char clock_gettime (void); | |
ad6254c5 | 14971 | int |
6b2e4ec5 | 14972 | main (void) |
ad6254c5 | 14973 | { |
f11781c5 | 14974 | return clock_gettime (); |
ad6254c5 AK |
14975 | ; |
14976 | return 0; | |
14977 | } | |
14978 | _ACEOF | |
6b2e4ec5 ZK |
14979 | if ac_fn_c_try_link "$LINENO" |
14980 | then : | |
f11781c5 | 14981 | ac_cv_lib_rt_clock_gettime=yes |
635df748 ZK |
14982 | else case e in #( |
14983 | e) ac_cv_lib_rt_clock_gettime=no ;; | |
14984 | esac | |
ad6254c5 | 14985 | fi |
6b2e4ec5 | 14986 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f11781c5 | 14987 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
14988 | LIBS=$ac_check_lib_save_LIBS ;; |
14989 | esac | |
26e7f2e0 | 14990 | fi |
6b2e4ec5 ZK |
14991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
14992 | printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } | |
14993 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes | |
14994 | then : | |
92b53a80 | 14995 | RT_LIBS="-lrt"; HAVE_REALTIME=yes |
8106cdd5 | 14996 | fi |
ad6254c5 | 14997 | |
92b53a80 | 14998 | fi |
ad6254c5 | 14999 | |
b681b774 ZK |
15000 | if test "$HAVE_REALTIME" = "yes" |
15001 | then : | |
15002 | ||
7a197a62 | 15003 | |
6b2e4ec5 | 15004 | printf "%s\n" "#define HAVE_REALTIME 1" >>confdefs.h |
ad6254c5 | 15005 | |
b681b774 | 15006 | |
635df748 ZK |
15007 | else case e in #( |
15008 | e) | |
6b2e4ec5 ZK |
15009 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5 |
15010 | printf "%s\n" "$as_me: WARNING: Disabling realtime clock" >&2;} | |
635df748 ZK |
15011 | ;; |
15012 | esac | |
b681b774 ZK |
15013 | fi |
15014 | ||
f11781c5 AK |
15015 | fi |
15016 | ||
6b2e4ec5 ZK |
15017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat has st_ctim." >&5 |
15018 | printf %s "checking for struct stat has st_ctim.... " >&6; } | |
15019 | if test ${ac_cv_stat_st_ctim+y} | |
15020 | then : | |
15021 | printf %s "(cached) " >&6 | |
635df748 ZK |
15022 | else case e in #( |
15023 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17583f1b ZK |
15024 | /* end confdefs.h. */ |
15025 | #include <sys/stat.h> | |
15026 | long bar(void) { struct stat s; return (long)(s.st_ctim.tv_sec + s.st_ctim.tv_nsec);} | |
15027 | ||
15028 | int | |
6b2e4ec5 | 15029 | main (void) |
17583f1b ZK |
15030 | { |
15031 | ||
15032 | ; | |
15033 | return 0; | |
15034 | } | |
15035 | _ACEOF | |
6b2e4ec5 ZK |
15036 | if ac_fn_c_try_compile "$LINENO" |
15037 | then : | |
17583f1b | 15038 | ac_cv_stat_st_ctim=yes |
635df748 ZK |
15039 | else case e in #( |
15040 | e) ac_cv_stat_st_ctim=no ;; | |
15041 | esac | |
17583f1b | 15042 | fi |
635df748 ZK |
15043 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
15044 | esac | |
17583f1b | 15045 | fi |
6b2e4ec5 ZK |
15046 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_st_ctim" >&5 |
15047 | printf "%s\n" "$ac_cv_stat_st_ctim" >&6; } | |
17583f1b | 15048 | |
6b2e4ec5 ZK |
15049 | if test $ac_cv_stat_st_ctim = yes |
15050 | then : | |
17583f1b | 15051 | |
6b2e4ec5 | 15052 | printf "%s\n" "#define HAVE_STAT_ST_CTIM 1" >>confdefs.h |
17583f1b ZK |
15053 | |
15054 | fi | |
15055 | ||
f11781c5 | 15056 | ################################################################################ |
6b2e4ec5 | 15057 | for ac_header in getopt.h |
f11781c5 | 15058 | do : |
6b2e4ec5 ZK |
15059 | ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" |
15060 | if test "x$ac_cv_header_getopt_h" = xyes | |
15061 | then : | |
15062 | printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h | |
f11781c5 | 15063 | |
6b2e4ec5 | 15064 | printf "%s\n" "#define HAVE_GETOPTLONG 1" >>confdefs.h |
ad6254c5 | 15065 | |
ad6254c5 | 15066 | fi |
7a197a62 | 15067 | |
f11781c5 | 15068 | done |
ad6254c5 | 15069 | |
65534242 | 15070 | ################################################################################ |
b681b774 ZK |
15071 | if test "$EDITLINE" = "yes" |
15072 | then : | |
15073 | ||
65534242 ZK |
15074 | |
15075 | pkg_failed=no | |
a7cf55c6 ZK |
15076 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 |
15077 | printf %s "checking for libedit... " >&6; } | |
65534242 ZK |
15078 | |
15079 | if test -n "$EDITLINE_CFLAGS"; then | |
15080 | pkg_cv_EDITLINE_CFLAGS="$EDITLINE_CFLAGS" | |
15081 | elif test -n "$PKG_CONFIG"; then | |
15082 | if test -n "$PKG_CONFIG" && \ | |
6b2e4ec5 | 15083 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 |
65534242 ZK |
15084 | ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 |
15085 | ac_status=$? | |
6b2e4ec5 | 15086 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
65534242 ZK |
15087 | test $ac_status = 0; }; then |
15088 | pkg_cv_EDITLINE_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null` | |
15089 | test "x$?" != "x0" && pkg_failed=yes | |
15090 | else | |
15091 | pkg_failed=yes | |
15092 | fi | |
15093 | else | |
15094 | pkg_failed=untried | |
15095 | fi | |
15096 | if test -n "$EDITLINE_LIBS"; then | |
15097 | pkg_cv_EDITLINE_LIBS="$EDITLINE_LIBS" | |
15098 | elif test -n "$PKG_CONFIG"; then | |
15099 | if test -n "$PKG_CONFIG" && \ | |
6b2e4ec5 | 15100 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 |
65534242 ZK |
15101 | ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 |
15102 | ac_status=$? | |
6b2e4ec5 | 15103 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
65534242 ZK |
15104 | test $ac_status = 0; }; then |
15105 | pkg_cv_EDITLINE_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null` | |
15106 | test "x$?" != "x0" && pkg_failed=yes | |
15107 | else | |
15108 | pkg_failed=yes | |
15109 | fi | |
15110 | else | |
15111 | pkg_failed=untried | |
15112 | fi | |
15113 | ||
15114 | ||
15115 | ||
15116 | if test $pkg_failed = yes; then | |
a7cf55c6 | 15117 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 15118 | printf "%s\n" "no" >&6; } |
65534242 ZK |
15119 | |
15120 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15121 | _pkg_short_errors_supported=yes | |
15122 | else | |
15123 | _pkg_short_errors_supported=no | |
15124 | fi | |
15125 | if test $_pkg_short_errors_supported = yes; then | |
a7cf55c6 | 15126 | EDITLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1` |
65534242 | 15127 | else |
a7cf55c6 | 15128 | EDITLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1` |
65534242 | 15129 | fi |
a7cf55c6 ZK |
15130 | # Put the nasty error message in config.log where it belongs |
15131 | echo "$EDITLINE_PKG_ERRORS" >&5 | |
65534242 | 15132 | |
a7cf55c6 | 15133 | as_fn_error $? "libedit could not be found which is required for the --enable-editline option." "$LINENO" 5 |
65534242 ZK |
15134 | |
15135 | elif test $pkg_failed = untried; then | |
a7cf55c6 | 15136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6b2e4ec5 | 15137 | printf "%s\n" "no" >&6; } |
a7cf55c6 | 15138 | as_fn_error $? "libedit could not be found which is required for the --enable-editline option." "$LINENO" 5 |
65534242 ZK |
15139 | |
15140 | else | |
a7cf55c6 ZK |
15141 | EDITLINE_CFLAGS=$pkg_cv_EDITLINE_CFLAGS |
15142 | EDITLINE_LIBS=$pkg_cv_EDITLINE_LIBS | |
6b2e4ec5 ZK |
15143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15144 | printf "%s\n" "yes" >&6; } | |
65534242 ZK |
15145 | |
15146 | ||
6b2e4ec5 | 15147 | printf "%s\n" "#define EDITLINE_SUPPORT 1" >>confdefs.h |
65534242 ZK |
15148 | |
15149 | fi | |
b681b774 | 15150 | |
65534242 ZK |
15151 | fi |
15152 | ||
f11781c5 | 15153 | ################################################################################ |
b681b774 ZK |
15154 | if test "$READLINE" != "no" |
15155 | then : | |
15156 | ||
f11781c5 | 15157 | lvm_saved_libs=$LIBS |
6b2e4ec5 ZK |
15158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 |
15159 | printf %s "checking for library containing tgetent... " >&6; } | |
15160 | if test ${ac_cv_search_tgetent+y} | |
15161 | then : | |
15162 | printf %s "(cached) " >&6 | |
635df748 ZK |
15163 | else case e in #( |
15164 | e) ac_func_search_save_LIBS=$LIBS | |
f11781c5 AK |
15165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15166 | /* end confdefs.h. */ | |
ad6254c5 | 15167 | |
f11781c5 AK |
15168 | /* Override any GCC internal prototype to avoid an error. |
15169 | Use char because int might match the return type of a GCC | |
635df748 ZK |
15170 | builtin and then its argument prototype would still apply. |
15171 | The 'extern "C"' is for builds by C++ compilers; | |
15172 | although this is not generally supported in C code supporting it here | |
15173 | has little cost and some practical benefit (sr 110532). */ | |
15174 | #ifdef __cplusplus | |
15175 | extern "C" | |
15176 | #endif | |
15177 | char tgetent (void); | |
f11781c5 | 15178 | int |
6b2e4ec5 | 15179 | main (void) |
f11781c5 AK |
15180 | { |
15181 | return tgetent (); | |
15182 | ; | |
15183 | return 0; | |
15184 | } | |
ad6254c5 | 15185 | _ACEOF |
6b2e4ec5 ZK |
15186 | for ac_lib in '' tinfo ncurses curses termcap termlib |
15187 | do | |
f11781c5 AK |
15188 | if test -z "$ac_lib"; then |
15189 | ac_res="none required" | |
15190 | else | |
15191 | ac_res=-l$ac_lib | |
15192 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15193 | fi | |
6b2e4ec5 ZK |
15194 | if ac_fn_c_try_link "$LINENO" |
15195 | then : | |
f11781c5 AK |
15196 | ac_cv_search_tgetent=$ac_res |
15197 | fi | |
6b2e4ec5 | 15198 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f11781c5 | 15199 | conftest$ac_exeext |
6b2e4ec5 ZK |
15200 | if test ${ac_cv_search_tgetent+y} |
15201 | then : | |
f11781c5 AK |
15202 | break |
15203 | fi | |
15204 | done | |
6b2e4ec5 ZK |
15205 | if test ${ac_cv_search_tgetent+y} |
15206 | then : | |
ad6254c5 | 15207 | |
635df748 ZK |
15208 | else case e in #( |
15209 | e) ac_cv_search_tgetent=no ;; | |
15210 | esac | |
b896caa1 | 15211 | fi |
f11781c5 | 15212 | rm conftest.$ac_ext |
635df748 ZK |
15213 | LIBS=$ac_func_search_save_LIBS ;; |
15214 | esac | |
f11781c5 | 15215 | fi |
6b2e4ec5 ZK |
15216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 |
15217 | printf "%s\n" "$ac_cv_search_tgetent" >&6; } | |
f11781c5 | 15218 | ac_res=$ac_cv_search_tgetent |
6b2e4ec5 ZK |
15219 | if test "$ac_res" != no |
15220 | then : | |
f11781c5 AK |
15221 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
15222 | READLINE_LIBS=$ac_cv_search_tgetent | |
635df748 ZK |
15223 | else case e in #( |
15224 | e) | |
b681b774 ZK |
15225 | if test "$READLINE" = "yes" |
15226 | then : | |
15227 | ||
f11781c5 AK |
15228 | as_fn_error $? "termcap could not be found which is required for the |
15229 | --enable-readline option (which is enabled by default). Either disable readline | |
15230 | support with --disable-readline or download and install termcap from: | |
15231 | ftp.gnu.org/gnu/termcap | |
15232 | Note: if you are using precompiled packages you will also need the development | |
15233 | package as well (which may be called termcap-devel or something similar). | |
15234 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15235 | not found either - but you could try installing that as well." "$LINENO" 5 | |
b681b774 ZK |
15236 | |
15237 | fi | |
635df748 ZK |
15238 | ;; |
15239 | esac | |
f11781c5 | 15240 | fi |
b896caa1 | 15241 | |
6b2e4ec5 ZK |
15242 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
15243 | printf %s "checking for readline in -lreadline... " >&6; } | |
15244 | if test ${ac_cv_lib_readline_readline+y} | |
15245 | then : | |
15246 | printf %s "(cached) " >&6 | |
635df748 ZK |
15247 | else case e in #( |
15248 | e) ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
15249 | LIBS="-lreadline $LIBS" |
15250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 15251 | /* end confdefs.h. */ |
8a2fc586 | 15252 | |
f11781c5 AK |
15253 | /* Override any GCC internal prototype to avoid an error. |
15254 | Use char because int might match the return type of a GCC | |
635df748 ZK |
15255 | builtin and then its argument prototype would still apply. |
15256 | The 'extern "C"' is for builds by C++ compilers; | |
15257 | although this is not generally supported in C code supporting it here | |
15258 | has little cost and some practical benefit (sr 110532). */ | |
15259 | #ifdef __cplusplus | |
15260 | extern "C" | |
15261 | #endif | |
15262 | char readline (void); | |
f11781c5 | 15263 | int |
6b2e4ec5 | 15264 | main (void) |
f11781c5 AK |
15265 | { |
15266 | return readline (); | |
15267 | ; | |
15268 | return 0; | |
15269 | } | |
15270 | _ACEOF | |
6b2e4ec5 ZK |
15271 | if ac_fn_c_try_link "$LINENO" |
15272 | then : | |
f11781c5 | 15273 | ac_cv_lib_readline_readline=yes |
635df748 ZK |
15274 | else case e in #( |
15275 | e) ac_cv_lib_readline_readline=no ;; | |
15276 | esac | |
f11781c5 | 15277 | fi |
6b2e4ec5 | 15278 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f11781c5 | 15279 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
15280 | LIBS=$ac_check_lib_save_LIBS ;; |
15281 | esac | |
f11781c5 | 15282 | fi |
6b2e4ec5 ZK |
15283 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 |
15284 | printf "%s\n" "$ac_cv_lib_readline_readline" >&6; } | |
15285 | if test "x$ac_cv_lib_readline_readline" = xyes | |
15286 | then : | |
f11781c5 | 15287 | |
8a2fc586 | 15288 | |
6b2e4ec5 | 15289 | printf "%s\n" "#define READLINE_SUPPORT 1" >>confdefs.h |
f11781c5 | 15290 | |
07cd341b | 15291 | READLINE="yes" |
5ef20d21 | 15292 | LIBS=$lvm_saved_libs |
6b2e4ec5 ZK |
15293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5 |
15294 | printf %s "checking for rl_line_buffer in -lreadline... " >&6; } | |
15295 | if test ${ac_cv_lib_readline_rl_line_buffer+y} | |
15296 | then : | |
15297 | printf %s "(cached) " >&6 | |
635df748 ZK |
15298 | else case e in #( |
15299 | e) ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
15300 | LIBS="-lreadline $LIBS" |
15301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15302 | /* end confdefs.h. */ | |
8a2fc586 | 15303 | |
7a197a62 AK |
15304 | /* Override any GCC internal prototype to avoid an error. |
15305 | Use char because int might match the return type of a GCC | |
635df748 ZK |
15306 | builtin and then its argument prototype would still apply. |
15307 | The 'extern "C"' is for builds by C++ compilers; | |
15308 | although this is not generally supported in C code supporting it here | |
15309 | has little cost and some practical benefit (sr 110532). */ | |
15310 | #ifdef __cplusplus | |
15311 | extern "C" | |
15312 | #endif | |
15313 | char rl_line_buffer (void); | |
ad6254c5 | 15314 | int |
6b2e4ec5 | 15315 | main (void) |
ad6254c5 | 15316 | { |
f11781c5 | 15317 | return rl_line_buffer (); |
ad6254c5 AK |
15318 | ; |
15319 | return 0; | |
15320 | } | |
15321 | _ACEOF | |
6b2e4ec5 ZK |
15322 | if ac_fn_c_try_link "$LINENO" |
15323 | then : | |
f11781c5 | 15324 | ac_cv_lib_readline_rl_line_buffer=yes |
635df748 ZK |
15325 | else case e in #( |
15326 | e) ac_cv_lib_readline_rl_line_buffer=no ;; | |
15327 | esac | |
f11781c5 | 15328 | fi |
6b2e4ec5 | 15329 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f11781c5 | 15330 | conftest$ac_exeext conftest.$ac_ext |
635df748 ZK |
15331 | LIBS=$ac_check_lib_save_LIBS ;; |
15332 | esac | |
f11781c5 | 15333 | fi |
6b2e4ec5 ZK |
15334 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5 |
15335 | printf "%s\n" "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
15336 | if test "x$ac_cv_lib_readline_rl_line_buffer" = xyes | |
15337 | then : | |
f11781c5 | 15338 | READLINE_LIBS="-lreadline" |
635df748 ZK |
15339 | else case e in #( |
15340 | e) | |
6b2e4ec5 ZK |
15341 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5 |
15342 | printf "%s\n" "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
f11781c5 | 15343 | READLINE_LIBS="-lreadline $READLINE_LIBS" |
635df748 ZK |
15344 | ;; |
15345 | esac | |
ad6254c5 | 15346 | fi |
7a197a62 | 15347 | |
635df748 ZK |
15348 | else case e in #( |
15349 | e) | |
f11781c5 | 15350 | READLINE_LIBS= |
b681b774 ZK |
15351 | if test "$READLINE" = "yes" |
15352 | then : | |
15353 | ||
f11781c5 AK |
15354 | as_fn_error $? "GNU Readline could not be found which is required for the |
15355 | --enable-readline option (which is enabled by default). Either disable readline | |
15356 | support with --disable-readline or download and install readline from: | |
15357 | ftp.gnu.org/gnu/readline | |
15358 | Note: if you are using precompiled packages you will also need the development | |
15359 | package as well (which may be called readline-devel or something similar)." "$LINENO" 5 | |
b681b774 ZK |
15360 | |
15361 | fi | |
635df748 ZK |
15362 | ;; |
15363 | esac | |
ad6254c5 | 15364 | fi |
f11781c5 AK |
15365 | |
15366 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
6b2e4ec5 ZK |
15367 | ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" |
15368 | if test "x$ac_cv_func_rl_completion_matches" = xyes | |
15369 | then : | |
15370 | printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | |
ad6254c5 | 15371 | |
ad6254c5 | 15372 | fi |
ad6254c5 | 15373 | |
f11781c5 | 15374 | LIBS=$lvm_saved_libs |
b681b774 | 15375 | |
ad6254c5 AK |
15376 | fi |
15377 | ||
f11781c5 | 15378 | ################################################################################ |
6b2e4ec5 ZK |
15379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5 |
15380 | printf %s "checking whether to enable internationalisation... " >&6; } | |
f11781c5 | 15381 | # Check whether --enable-nls was given. |
6b2e4ec5 ZK |
15382 | if test ${enable_nls+y} |
15383 | then : | |
f11781c5 | 15384 | enableval=$enable_nls; INTL=$enableval |
635df748 ZK |
15385 | else case e in #( |
15386 | e) INTL="no" ;; | |
15387 | esac | |
f11781c5 | 15388 | fi |
d911ec67 | 15389 | |
6b2e4ec5 ZK |
15390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5 |
15391 | printf "%s\n" "$INTL" >&6; } | |
f11781c5 | 15392 | |
b681b774 ZK |
15393 | if test "$INTL" = "yes" |
15394 | then : | |
15395 | ||
f11781c5 AK |
15396 | # FIXME - Move this - can be device-mapper too |
15397 | INTL_PACKAGE="lvm2" | |
1b59f5a9 ZK |
15398 | if test -n "$ac_tool_prefix"; then |
15399 | # Extract the first word of "${ac_tool_prefix}msgfmt", so it can be a program name with args. | |
15400 | set dummy ${ac_tool_prefix}msgfmt; ac_word=$2 | |
6b2e4ec5 ZK |
15401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15402 | printf %s "checking for $ac_word... " >&6; } | |
15403 | if test ${ac_cv_path_MSGFMT+y} | |
15404 | then : | |
15405 | printf %s "(cached) " >&6 | |
635df748 ZK |
15406 | else case e in #( |
15407 | e) case $MSGFMT in | |
f11781c5 AK |
15408 | [\\/]* | ?:[\\/]*) |
15409 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
15410 | ;; | |
15411 | *) | |
15412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15413 | for as_dir in $PATH | |
15414 | do | |
15415 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
15416 | case $as_dir in #((( |
15417 | '') as_dir=./ ;; | |
15418 | */) ;; | |
15419 | *) as_dir=$as_dir/ ;; | |
15420 | esac | |
f11781c5 | 15421 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
15422 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
15423 | ac_cv_path_MSGFMT="$as_dir$ac_word$ac_exec_ext" | |
15424 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
f11781c5 AK |
15425 | break 2 |
15426 | fi | |
15427 | done | |
15428 | done | |
15429 | IFS=$as_save_IFS | |
15430 | ||
15431 | ;; | |
635df748 | 15432 | esac ;; |
d911ec67 | 15433 | esac |
f11781c5 AK |
15434 | fi |
15435 | MSGFMT=$ac_cv_path_MSGFMT | |
15436 | if test -n "$MSGFMT"; then | |
6b2e4ec5 ZK |
15437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
15438 | printf "%s\n" "$MSGFMT" >&6; } | |
d911ec67 | 15439 | else |
6b2e4ec5 ZK |
15440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15441 | printf "%s\n" "no" >&6; } | |
f11781c5 | 15442 | fi |
d911ec67 | 15443 | |
f11781c5 | 15444 | |
1b59f5a9 ZK |
15445 | fi |
15446 | if test -z "$ac_cv_path_MSGFMT"; then | |
15447 | ac_pt_MSGFMT=$MSGFMT | |
15448 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
15449 | set dummy msgfmt; ac_word=$2 | |
6b2e4ec5 ZK |
15450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
15451 | printf %s "checking for $ac_word... " >&6; } | |
15452 | if test ${ac_cv_path_ac_pt_MSGFMT+y} | |
15453 | then : | |
15454 | printf %s "(cached) " >&6 | |
635df748 ZK |
15455 | else case e in #( |
15456 | e) case $ac_pt_MSGFMT in | |
1b59f5a9 ZK |
15457 | [\\/]* | ?:[\\/]*) |
15458 | ac_cv_path_ac_pt_MSGFMT="$ac_pt_MSGFMT" # Let the user override the test with a path. | |
15459 | ;; | |
15460 | *) | |
15461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15462 | for as_dir in $PATH | |
15463 | do | |
15464 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
15465 | case $as_dir in #((( |
15466 | '') as_dir=./ ;; | |
15467 | */) ;; | |
15468 | *) as_dir=$as_dir/ ;; | |
15469 | esac | |
1b59f5a9 | 15470 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
15471 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
15472 | ac_cv_path_ac_pt_MSGFMT="$as_dir$ac_word$ac_exec_ext" | |
15473 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
1b59f5a9 ZK |
15474 | break 2 |
15475 | fi | |
15476 | done | |
15477 | done | |
15478 | IFS=$as_save_IFS | |
15479 | ||
15480 | ;; | |
635df748 | 15481 | esac ;; |
1b59f5a9 ZK |
15482 | esac |
15483 | fi | |
15484 | ac_pt_MSGFMT=$ac_cv_path_ac_pt_MSGFMT | |
15485 | if test -n "$ac_pt_MSGFMT"; then | |
6b2e4ec5 ZK |
15486 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MSGFMT" >&5 |
15487 | printf "%s\n" "$ac_pt_MSGFMT" >&6; } | |
1b59f5a9 | 15488 | else |
6b2e4ec5 ZK |
15489 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15490 | printf "%s\n" "no" >&6; } | |
1b59f5a9 ZK |
15491 | fi |
15492 | ||
15493 | if test "x$ac_pt_MSGFMT" = x; then | |
15494 | MSGFMT="" | |
15495 | else | |
15496 | case $cross_compiling:$ac_tool_warned in | |
15497 | yes:) | |
6b2e4ec5 ZK |
15498 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
15499 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
1b59f5a9 ZK |
15500 | ac_tool_warned=yes ;; |
15501 | esac | |
15502 | MSGFMT=$ac_pt_MSGFMT | |
15503 | fi | |
15504 | else | |
15505 | MSGFMT="$ac_cv_path_MSGFMT" | |
15506 | fi | |
15507 | ||
fe00b163 | 15508 | |
6b2e4ec5 ZK |
15509 | if test -z "$MSGFMT" |
15510 | then : | |
fe00b163 ZK |
15511 | as_fn_error $? "msgfmt not found in path $PATH" "$LINENO" 5 |
15512 | fi | |
f11781c5 AK |
15513 | |
15514 | ||
15515 | # Check whether --with-localedir was given. | |
6b2e4ec5 ZK |
15516 | if test ${with_localedir+y} |
15517 | then : | |
dc49e1cd | 15518 | withval=$with_localedir; localedir=$withval |
635df748 ZK |
15519 | else case e in #( |
15520 | e) localedir=${localedir-'${datarootdir}/locale'} ;; | |
15521 | esac | |
f11781c5 AK |
15522 | fi |
15523 | ||
fe00b163 | 15524 | |
6b2e4ec5 | 15525 | printf "%s\n" "#define INTL_PACKAGE \"$INTL_PACKAGE\"" >>confdefs.h |
fe00b163 | 15526 | |
dc49e1cd | 15527 | # double eval needed ${datarootdir} -> ${prefix}/share -> real path |
fe00b163 | 15528 | |
6b2e4ec5 | 15529 | printf "%s\n" "#define LOCALEDIR \"$(eval echo $(eval echo $localedir))\"" >>confdefs.h |
fe00b163 | 15530 | |
b681b774 | 15531 | |
f11781c5 AK |
15532 | fi |
15533 | ||
15534 | ################################################################################ | |
15535 | ||
15536 | # Check whether --with-confdir was given. | |
6b2e4ec5 ZK |
15537 | if test ${with_confdir+y} |
15538 | then : | |
f11781c5 | 15539 | withval=$with_confdir; CONFDIR=$withval |
635df748 ZK |
15540 | else case e in #( |
15541 | e) CONFDIR='/etc' ;; | |
15542 | esac | |
f11781c5 AK |
15543 | fi |
15544 | ||
15545 | ||
6b2e4ec5 | 15546 | printf "%s\n" "#define DEFAULT_ETC_DIR \"$CONFDIR\"" >>confdefs.h |
032c9178 AK |
15547 | |
15548 | ||
f11781c5 AK |
15549 | |
15550 | # Check whether --with-staticdir was given. | |
6b2e4ec5 ZK |
15551 | if test ${with_staticdir+y} |
15552 | then : | |
f11781c5 | 15553 | withval=$with_staticdir; STATICDIR=$withval |
635df748 ZK |
15554 | else case e in #( |
15555 | e) STATICDIR='${exec_prefix}/sbin' ;; | |
15556 | esac | |
f11781c5 AK |
15557 | fi |
15558 | ||
15559 | ||
15560 | ||
15561 | # Check whether --with-usrlibdir was given. | |
6b2e4ec5 ZK |
15562 | if test ${with_usrlibdir+y} |
15563 | then : | |
f11781c5 | 15564 | withval=$with_usrlibdir; usrlibdir=$withval |
635df748 ZK |
15565 | else case e in #( |
15566 | e) usrlibdir='${prefix}/lib' ;; | |
15567 | esac | |
d911ec67 AK |
15568 | fi |
15569 | ||
d911ec67 | 15570 | |
d911ec67 | 15571 | |
f11781c5 | 15572 | # Check whether --with-usrsbindir was given. |
6b2e4ec5 ZK |
15573 | if test ${with_usrsbindir+y} |
15574 | then : | |
f11781c5 | 15575 | withval=$with_usrsbindir; usrsbindir=$withval |
635df748 ZK |
15576 | else case e in #( |
15577 | e) usrsbindir='${prefix}/sbin' ;; | |
15578 | esac | |
d911ec67 AK |
15579 | fi |
15580 | ||
d911ec67 | 15581 | |
a2d33cdf MC |
15582 | |
15583 | # Check whether --with-libexecdir was given. | |
15584 | if test ${with_libexecdir+y} | |
15585 | then : | |
15586 | withval=$with_libexecdir; libexecdir=$withval | |
635df748 ZK |
15587 | else case e in #( |
15588 | e) libexecdir='${prefix}/libexec' ;; | |
15589 | esac | |
a2d33cdf MC |
15590 | fi |
15591 | ||
15592 | ||
f11781c5 | 15593 | ################################################################################ |
d911ec67 | 15594 | |
f11781c5 | 15595 | # Check whether --with-udev_prefix was given. |
6b2e4ec5 ZK |
15596 | if test ${with_udev_prefix+y} |
15597 | then : | |
f11781c5 | 15598 | withval=$with_udev_prefix; udev_prefix=$withval |
635df748 ZK |
15599 | else case e in #( |
15600 | e) udev_prefix='${exec_prefix}' ;; | |
15601 | esac | |
d911ec67 | 15602 | fi |
d911ec67 | 15603 | |
f11781c5 AK |
15604 | |
15605 | ||
15606 | # Check whether --with-udevdir was given. | |
6b2e4ec5 ZK |
15607 | if test ${with_udevdir+y} |
15608 | then : | |
f11781c5 | 15609 | withval=$with_udevdir; udevdir=$withval |
635df748 ZK |
15610 | else case e in #( |
15611 | e) udevdir='${udev_prefix}/lib/udev/rules.d' ;; | |
15612 | esac | |
d911ec67 | 15613 | fi |
f11781c5 AK |
15614 | |
15615 | ||
e587cb6a PR |
15616 | ################################################################################ |
15617 | ||
15618 | # Check whether --with-systemdsystemunitdir was given. | |
6b2e4ec5 ZK |
15619 | if test ${with_systemdsystemunitdir+y} |
15620 | then : | |
b681b774 ZK |
15621 | withval=$with_systemdsystemunitdir; |
15622 | fi | |
15623 | ||
15624 | ||
15625 | if test -z "$with_systemdsystemunitdir" | |
15626 | then : | |
15627 | ||
b681b774 ZK |
15628 | if test -n "$systemdsystemunitdir"; then |
15629 | pkg_cv_systemdsystemunitdir="$systemdsystemunitdir" | |
15630 | elif test -n "$PKG_CONFIG"; then | |
15631 | if test -n "$PKG_CONFIG" && \ | |
15632 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 | |
15633 | ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 | |
15634 | ac_status=$? | |
15635 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15636 | test $ac_status = 0; }; then | |
15637 | pkg_cv_systemdsystemunitdir=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null` | |
15638 | test "x$?" != "x0" && pkg_failed=yes | |
15639 | else | |
15640 | pkg_failed=yes | |
15641 | fi | |
15642 | else | |
15643 | pkg_failed=untried | |
15644 | fi | |
15645 | systemdsystemunitdir=$pkg_cv_systemdsystemunitdir | |
15646 | ||
15647 | if test "x$systemdsystemunitdir" = x"" | |
15648 | then : | |
a7cf55c6 | 15649 | systemdsystemunitdir='${exec_prefix}/lib/systemd/system' |
b681b774 | 15650 | fi |
635df748 ZK |
15651 | else case e in #( |
15652 | e) systemdsystemunitdir="$with_systemdsystemunitdir" ;; | |
15653 | esac | |
b681b774 ZK |
15654 | fi |
15655 | ||
15656 | ||
15657 | if test -n "$systemdutildir"; then | |
15658 | pkg_cv_systemdutildir="$systemdutildir" | |
15659 | elif test -n "$PKG_CONFIG"; then | |
15660 | if test -n "$PKG_CONFIG" && \ | |
15661 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 | |
15662 | ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 | |
15663 | ac_status=$? | |
15664 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15665 | test $ac_status = 0; }; then | |
15666 | pkg_cv_systemdutildir=`$PKG_CONFIG --variable="systemdutildir" "systemd" 2>/dev/null` | |
15667 | test "x$?" != "x0" && pkg_failed=yes | |
15668 | else | |
15669 | pkg_failed=yes | |
e587cb6a | 15670 | fi |
b681b774 ZK |
15671 | else |
15672 | pkg_failed=untried | |
15673 | fi | |
15674 | systemdutildir=$pkg_cv_systemdutildir | |
e587cb6a | 15675 | |
b681b774 ZK |
15676 | if test "x$systemdutildir" = x"" |
15677 | then : | |
a7cf55c6 | 15678 | systemdutildir='${exec_prefix}/lib/systemd' |
b681b774 | 15679 | fi |
fa68466e | 15680 | |
4417a8bd PR |
15681 | ################################################################################ |
15682 | ||
15683 | # Check whether --with-tmpfilesdir was given. | |
6b2e4ec5 ZK |
15684 | if test ${with_tmpfilesdir+y} |
15685 | then : | |
4417a8bd | 15686 | withval=$with_tmpfilesdir; tmpfilesdir=$withval |
635df748 ZK |
15687 | else case e in #( |
15688 | e) tmpfilesdir='${prefix}/lib/tmpfiles.d' ;; | |
15689 | esac | |
4417a8bd PR |
15690 | fi |
15691 | ||
1453ccd5 ZK |
15692 | |
15693 | ################################################################################ | |
15694 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kernel modules directory" >&5 | |
15695 | printf %s "checking for kernel modules directory... " >&6; } | |
15696 | ||
15697 | # Check whether --with-modulesdir was given. | |
15698 | if test ${with_modulesdir+y} | |
15699 | then : | |
15700 | withval=$with_modulesdir; modulesdir=$withval | |
635df748 ZK |
15701 | else case e in #( |
15702 | e) modulesdir="/lib/modules" ;; | |
15703 | esac | |
1453ccd5 ZK |
15704 | fi |
15705 | ||
15706 | ||
15707 | printf "%s\n" "#define MODULES_PATH \"$modulesdir\"" >>confdefs.h | |
15708 | ||
15709 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $modulesdir" >&5 | |
15710 | printf "%s\n" "$modulesdir" >&6; } | |
15711 | ||
f11781c5 | 15712 | ################################################################################ |
b681b774 ZK |
15713 | if test "$READLINE" = "yes" |
15714 | then : | |
15715 | ||
6b2e4ec5 | 15716 | for ac_header in readline/readline.h readline/history.h |
f11781c5 | 15717 | do : |
635df748 | 15718 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` |
6b2e4ec5 ZK |
15719 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
15720 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
15721 | then : | |
d911ec67 | 15722 | cat >>confdefs.h <<_ACEOF |
635df748 | 15723 | #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 |
d911ec67 AK |
15724 | _ACEOF |
15725 | ||
635df748 ZK |
15726 | else case e in #( |
15727 | e) hard_bailout ;; | |
15728 | esac | |
d911ec67 AK |
15729 | fi |
15730 | ||
15731 | done | |
b681b774 | 15732 | |
d911ec67 | 15733 | fi |
6b2e4ec5 ZK |
15734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5 |
15735 | printf %s "checking whether to enable readline... " >&6; } | |
15736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 | |
15737 | printf "%s\n" "$READLINE" >&6; } | |
d911ec67 | 15738 | |
b681b774 ZK |
15739 | if test "$EDITLINE" = "yes" |
15740 | then : | |
15741 | ||
6b2e4ec5 | 15742 | for ac_header in editline/readline.h |
65534242 | 15743 | do : |
6b2e4ec5 ZK |
15744 | ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" |
15745 | if test "x$ac_cv_header_editline_readline_h" = xyes | |
15746 | then : | |
15747 | printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h | |
65534242 | 15748 | |
635df748 ZK |
15749 | else case e in #( |
15750 | e) hard_bailout ;; | |
15751 | esac | |
65534242 ZK |
15752 | fi |
15753 | ||
15754 | done | |
b681b774 | 15755 | |
65534242 | 15756 | fi |
6b2e4ec5 ZK |
15757 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable editline" >&5 |
15758 | printf %s "checking whether to enable editline... " >&6; } | |
15759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EDITLINE" >&5 | |
15760 | printf "%s\n" "$EDITLINE" >&6; } | |
65534242 | 15761 | |
b681b774 ZK |
15762 | if test "$BUILD_CMIRRORD" = "yes" |
15763 | then : | |
15764 | ||
6b2e4ec5 ZK |
15765 | |
15766 | for ac_func in atexit | |
1568ed4d AK |
15767 | do : |
15768 | ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" | |
6b2e4ec5 ZK |
15769 | if test "x$ac_cv_func_atexit" = xyes |
15770 | then : | |
15771 | printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h | |
1568ed4d | 15772 | |
635df748 ZK |
15773 | else case e in #( |
15774 | e) hard_bailout ;; | |
15775 | esac | |
1568ed4d | 15776 | fi |
1568ed4d | 15777 | |
6b2e4ec5 | 15778 | done |
b681b774 | 15779 | |
1568ed4d AK |
15780 | fi |
15781 | ||
b681b774 ZK |
15782 | if test "$BUILD_LVMLOCKD" = "yes" |
15783 | then : | |
15784 | ||
15785 | if test "$HAVE_REALTIME" != "yes" | |
6b2e4ec5 | 15786 | then : |
b681b774 ZK |
15787 | |
15788 | as_fn_error $? "Realtime clock support is mandatory for lvmlockd." "$LINENO" 5 | |
92b53a80 | 15789 | fi |
6b2e4ec5 ZK |
15790 | |
15791 | for ac_func in strtoull | |
1568ed4d | 15792 | do : |
92b53a80 | 15793 | ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" |
6b2e4ec5 ZK |
15794 | if test "x$ac_cv_func_strtoull" = xyes |
15795 | then : | |
15796 | printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h | |
1568ed4d | 15797 | |
635df748 ZK |
15798 | else case e in #( |
15799 | e) hard_bailout ;; | |
15800 | esac | |
1568ed4d | 15801 | fi |
1568ed4d | 15802 | |
6b2e4ec5 | 15803 | done |
1568ed4d | 15804 | |
1568ed4d | 15805 | fi |
6b2e4ec5 | 15806 | |
b681b774 | 15807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
6b2e4ec5 ZK |
15808 | printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
15809 | if test ${ac_cv_c_undeclared_builtin_options+y} | |
15810 | then : | |
15811 | printf %s "(cached) " >&6 | |
635df748 ZK |
15812 | else case e in #( |
15813 | e) ac_save_CFLAGS=$CFLAGS | |
6b2e4ec5 ZK |
15814 | ac_cv_c_undeclared_builtin_options='cannot detect' |
15815 | for ac_arg in '' -fno-builtin; do | |
15816 | CFLAGS="$ac_save_CFLAGS $ac_arg" | |
15817 | # This test program should *not* compile successfully. | |
15818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15819 | /* end confdefs.h. */ | |
15820 | ||
15821 | int | |
15822 | main (void) | |
15823 | { | |
15824 | (void) strchr; | |
15825 | ; | |
15826 | return 0; | |
15827 | } | |
15828 | _ACEOF | |
15829 | if ac_fn_c_try_compile "$LINENO" | |
15830 | then : | |
15831 | ||
635df748 ZK |
15832 | else case e in #( |
15833 | e) # This test program should compile successfully. | |
6b2e4ec5 ZK |
15834 | # No library function is consistently available on |
15835 | # freestanding implementations, so test against a dummy | |
15836 | # declaration. Include always-available headers on the | |
15837 | # off chance that they somehow elicit warnings. | |
15838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15839 | /* end confdefs.h. */ | |
15840 | #include <float.h> | |
15841 | #include <limits.h> | |
15842 | #include <stdarg.h> | |
15843 | #include <stddef.h> | |
15844 | extern void ac_decl (int, char *); | |
15845 | ||
15846 | int | |
15847 | main (void) | |
15848 | { | |
15849 | (void) ac_decl (0, (char *) 0); | |
15850 | (void) ac_decl; | |
15851 | ||
15852 | ; | |
15853 | return 0; | |
15854 | } | |
15855 | _ACEOF | |
15856 | if ac_fn_c_try_compile "$LINENO" | |
15857 | then : | |
15858 | if test x"$ac_arg" = x | |
15859 | then : | |
15860 | ac_cv_c_undeclared_builtin_options='none needed' | |
635df748 ZK |
15861 | else case e in #( |
15862 | e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; | |
15863 | esac | |
6b2e4ec5 ZK |
15864 | fi |
15865 | break | |
15866 | fi | |
635df748 ZK |
15867 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
15868 | esac | |
6b2e4ec5 ZK |
15869 | fi |
15870 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15871 | done | |
15872 | CFLAGS=$ac_save_CFLAGS | |
635df748 ZK |
15873 | ;; |
15874 | esac | |
6b2e4ec5 ZK |
15875 | fi |
15876 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 | |
15877 | printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } | |
15878 | case $ac_cv_c_undeclared_builtin_options in #( | |
15879 | 'cannot detect') : | |
635df748 ZK |
15880 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
15881 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
6b2e4ec5 | 15882 | as_fn_error $? "cannot make $CC report undeclared builtins |
635df748 | 15883 | See 'config.log' for more details" "$LINENO" 5; } ;; #( |
6b2e4ec5 ZK |
15884 | 'none needed') : |
15885 | ac_c_undeclared_builtin_options='' ;; #( | |
15886 | *) : | |
15887 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; | |
15888 | esac | |
1568ed4d | 15889 | |
6b2e4ec5 ZK |
15890 | ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
15891 | if test "x$ac_cv_have_decl_strerror_r" = xyes | |
15892 | then : | |
1568ed4d | 15893 | ac_have_decl=1 |
635df748 ZK |
15894 | else case e in #( |
15895 | e) ac_have_decl=0 ;; | |
15896 | esac | |
1568ed4d | 15897 | fi |
6b2e4ec5 | 15898 | printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h |
1568ed4d | 15899 | |
b681b774 ZK |
15900 | if test "$BUILD_LVMPOLLD" = "yes" |
15901 | then : | |
15902 | ||
15903 | ||
15904 | for ac_func in strpbrk | |
15905 | do : | |
15906 | ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk" | |
15907 | if test "x$ac_cv_func_strpbrk" = xyes | |
15908 | then : | |
15909 | printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h | |
15910 | ||
635df748 ZK |
15911 | else case e in #( |
15912 | e) hard_bailout ;; | |
15913 | esac | |
b681b774 ZK |
15914 | fi |
15915 | ||
15916 | done | |
1568ed4d | 15917 | |
6b2e4ec5 ZK |
15918 | if test $ac_cv_have_decl_strerror_r = yes; then |
15919 | # For backward compatibility's sake, define HAVE_STRERROR_R. | |
15920 | # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well | |
15921 | # as AC_CHECK_DECLS_ONCE.) | |
15922 | ||
15923 | printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h | |
1568ed4d AK |
15924 | |
15925 | fi | |
1568ed4d | 15926 | |
6b2e4ec5 ZK |
15927 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 |
15928 | printf %s "checking whether strerror_r returns char *... " >&6; } | |
15929 | if test ${ac_cv_func_strerror_r_char_p+y} | |
15930 | then : | |
15931 | printf %s "(cached) " >&6 | |
635df748 ZK |
15932 | else case e in #( |
15933 | e) | |
1568ed4d AK |
15934 | ac_cv_func_strerror_r_char_p=no |
15935 | if test $ac_cv_have_decl_strerror_r = yes; then | |
15936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15937 | /* end confdefs.h. */ | |
6b2e4ec5 | 15938 | #include <string.h> |
1568ed4d | 15939 | int |
6b2e4ec5 | 15940 | main (void) |
1568ed4d AK |
15941 | { |
15942 | ||
15943 | char buf[100]; | |
15944 | char x = *strerror_r (0, buf, sizeof buf); | |
15945 | char *p = strerror_r (0, buf, sizeof buf); | |
15946 | return !p || x; | |
15947 | ||
15948 | ; | |
15949 | return 0; | |
15950 | } | |
15951 | _ACEOF | |
6b2e4ec5 ZK |
15952 | if ac_fn_c_try_compile "$LINENO" |
15953 | then : | |
1568ed4d AK |
15954 | ac_cv_func_strerror_r_char_p=yes |
15955 | fi | |
6b2e4ec5 | 15956 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1568ed4d AK |
15957 | |
15958 | fi | |
635df748 ZK |
15959 | ;; |
15960 | esac | |
1568ed4d | 15961 | fi |
6b2e4ec5 ZK |
15962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 |
15963 | printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } | |
1568ed4d AK |
15964 | if test $ac_cv_func_strerror_r_char_p = yes; then |
15965 | ||
6b2e4ec5 | 15966 | printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h |
1568ed4d AK |
15967 | |
15968 | fi | |
15969 | ||
b681b774 | 15970 | |
1568ed4d AK |
15971 | fi |
15972 | ||
b681b774 ZK |
15973 | if test "$BUILD_DMEVENTD" = "yes" |
15974 | then : | |
15975 | ||
6b2e4ec5 | 15976 | for ac_header in arpa/inet.h |
f11781c5 | 15977 | do : |
6b2e4ec5 ZK |
15978 | ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
15979 | if test "x$ac_cv_header_arpa_inet_h" = xyes | |
15980 | then : | |
15981 | printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h | |
69792976 | 15982 | |
635df748 ZK |
15983 | else case e in #( |
15984 | e) hard_bailout ;; | |
15985 | esac | |
80992638 AK |
15986 | fi |
15987 | ||
ad6254c5 | 15988 | done |
b681b774 | 15989 | |
ad6254c5 AK |
15990 | fi |
15991 | ||
b681b774 ZK |
15992 | if test "$HAVE_LIBDL" = "yes" |
15993 | then : | |
15994 | ||
6b2e4ec5 | 15995 | for ac_header in dlfcn.h |
f11781c5 | 15996 | do : |
6b2e4ec5 ZK |
15997 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
15998 | if test "x$ac_cv_header_dlfcn_h" = xyes | |
15999 | then : | |
16000 | printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h | |
a5f46f6a | 16001 | |
635df748 ZK |
16002 | else case e in #( |
16003 | e) hard_bailout ;; | |
16004 | esac | |
a5f46f6a AK |
16005 | fi |
16006 | ||
f11781c5 | 16007 | done |
b681b774 | 16008 | |
a5f46f6a AK |
16009 | fi |
16010 | ||
b681b774 ZK |
16011 | if test "$INTL" = "yes" |
16012 | then : | |
16013 | ||
6b2e4ec5 | 16014 | for ac_header in libintl.h |
f11781c5 | 16015 | do : |
6b2e4ec5 ZK |
16016 | ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" |
16017 | if test "x$ac_cv_header_libintl_h" = xyes | |
16018 | then : | |
16019 | printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h | |
a5f46f6a | 16020 | |
635df748 ZK |
16021 | else case e in #( |
16022 | e) hard_bailout ;; | |
16023 | esac | |
a5f46f6a | 16024 | fi |
f11781c5 AK |
16025 | |
16026 | done | |
b681b774 | 16027 | |
a5f46f6a | 16028 | fi |
f11781c5 | 16029 | |
b681b774 ZK |
16030 | if test "$UDEV_SYNC" = "yes" |
16031 | then : | |
16032 | ||
6b2e4ec5 | 16033 | for ac_header in sys/ipc.h sys/sem.h |
f11781c5 | 16034 | do : |
635df748 | 16035 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` |
6b2e4ec5 ZK |
16036 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
16037 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
16038 | then : | |
a5f46f6a | 16039 | cat >>confdefs.h <<_ACEOF |
635df748 | 16040 | #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 |
a5f46f6a AK |
16041 | _ACEOF |
16042 | ||
635df748 ZK |
16043 | else case e in #( |
16044 | e) hard_bailout ;; | |
16045 | esac | |
a5f46f6a AK |
16046 | fi |
16047 | ||
16048 | done | |
b681b774 | 16049 | |
a5f46f6a AK |
16050 | fi |
16051 | ||
b681b774 ZK |
16052 | if test "$BUILD_DMFILEMAPD" = "yes" |
16053 | then : | |
16054 | ||
6b2e4ec5 | 16055 | for ac_header in sys/inotify.h |
8b789822 | 16056 | do : |
6b2e4ec5 ZK |
16057 | ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" |
16058 | if test "x$ac_cv_header_sys_inotify_h" = xyes | |
16059 | then : | |
16060 | printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h | |
8b789822 | 16061 | |
635df748 ZK |
16062 | else case e in #( |
16063 | e) hard_bailout ;; | |
16064 | esac | |
8b789822 BR |
16065 | fi |
16066 | ||
16067 | done | |
b681b774 | 16068 | |
8b789822 BR |
16069 | fi |
16070 | ||
a653923f | 16071 | ################################################################################ |
1b59f5a9 ZK |
16072 | if test -n "$ac_tool_prefix"; then |
16073 | # Extract the first word of "${ac_tool_prefix}modprobe", so it can be a program name with args. | |
16074 | set dummy ${ac_tool_prefix}modprobe; ac_word=$2 | |
6b2e4ec5 ZK |
16075 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16076 | printf %s "checking for $ac_word... " >&6; } | |
16077 | if test ${ac_cv_path_MODPROBE_CMD+y} | |
16078 | then : | |
16079 | printf %s "(cached) " >&6 | |
635df748 ZK |
16080 | else case e in #( |
16081 | e) case $MODPROBE_CMD in | |
72b2cb61 AK |
16082 | [\\/]* | ?:[\\/]*) |
16083 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
16084 | ;; | |
16085 | *) | |
16086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 16087 | for as_dir in $PATH_SBIN |
72b2cb61 AK |
16088 | do |
16089 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
16090 | case $as_dir in #((( |
16091 | '') as_dir=./ ;; | |
16092 | */) ;; | |
16093 | *) as_dir=$as_dir/ ;; | |
16094 | esac | |
f11781c5 | 16095 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
16096 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
16097 | ac_cv_path_MODPROBE_CMD="$as_dir$ac_word$ac_exec_ext" | |
16098 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
72b2cb61 AK |
16099 | break 2 |
16100 | fi | |
16101 | done | |
f11781c5 | 16102 | done |
7a197a62 | 16103 | IFS=$as_save_IFS |
72b2cb61 AK |
16104 | |
16105 | ;; | |
635df748 | 16106 | esac ;; |
72b2cb61 AK |
16107 | esac |
16108 | fi | |
16109 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 16110 | if test -n "$MODPROBE_CMD"; then |
6b2e4ec5 ZK |
16111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5 |
16112 | printf "%s\n" "$MODPROBE_CMD" >&6; } | |
72b2cb61 | 16113 | else |
6b2e4ec5 ZK |
16114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16115 | printf "%s\n" "no" >&6; } | |
72b2cb61 AK |
16116 | fi |
16117 | ||
a653923f | 16118 | |
1b59f5a9 ZK |
16119 | fi |
16120 | if test -z "$ac_cv_path_MODPROBE_CMD"; then | |
16121 | ac_pt_MODPROBE_CMD=$MODPROBE_CMD | |
16122 | # Extract the first word of "modprobe", so it can be a program name with args. | |
16123 | set dummy modprobe; ac_word=$2 | |
6b2e4ec5 ZK |
16124 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16125 | printf %s "checking for $ac_word... " >&6; } | |
16126 | if test ${ac_cv_path_ac_pt_MODPROBE_CMD+y} | |
16127 | then : | |
16128 | printf %s "(cached) " >&6 | |
635df748 ZK |
16129 | else case e in #( |
16130 | e) case $ac_pt_MODPROBE_CMD in | |
1b59f5a9 ZK |
16131 | [\\/]* | ?:[\\/]*) |
16132 | ac_cv_path_ac_pt_MODPROBE_CMD="$ac_pt_MODPROBE_CMD" # Let the user override the test with a path. | |
16133 | ;; | |
16134 | *) | |
16135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
e727da6c | 16136 | for as_dir in $PATH_SBIN |
1b59f5a9 ZK |
16137 | do |
16138 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
16139 | case $as_dir in #((( |
16140 | '') as_dir=./ ;; | |
16141 | */) ;; | |
16142 | *) as_dir=$as_dir/ ;; | |
16143 | esac | |
1b59f5a9 | 16144 | for ac_exec_ext in '' $ac_executable_extensions; do |
6b2e4ec5 ZK |
16145 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
16146 | ac_cv_path_ac_pt_MODPROBE_CMD="$as_dir$ac_word$ac_exec_ext" | |
16147 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
1b59f5a9 ZK |
16148 | break 2 |
16149 | fi | |
16150 | done | |
16151 | done | |
16152 | IFS=$as_save_IFS | |
16153 | ||
16154 | ;; | |
635df748 | 16155 | esac ;; |
1b59f5a9 ZK |
16156 | esac |
16157 | fi | |
16158 | ac_pt_MODPROBE_CMD=$ac_cv_path_ac_pt_MODPROBE_CMD | |
16159 | if test -n "$ac_pt_MODPROBE_CMD"; then | |
6b2e4ec5 ZK |
16160 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MODPROBE_CMD" >&5 |
16161 | printf "%s\n" "$ac_pt_MODPROBE_CMD" >&6; } | |
1b59f5a9 | 16162 | else |
6b2e4ec5 ZK |
16163 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16164 | printf "%s\n" "no" >&6; } | |
1b59f5a9 ZK |
16165 | fi |
16166 | ||
16167 | if test "x$ac_pt_MODPROBE_CMD" = x; then | |
16168 | MODPROBE_CMD="" | |
16169 | else | |
16170 | case $cross_compiling:$ac_tool_warned in | |
16171 | yes:) | |
6b2e4ec5 ZK |
16172 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
16173 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
1b59f5a9 ZK |
16174 | ac_tool_warned=yes ;; |
16175 | esac | |
16176 | MODPROBE_CMD=$ac_pt_MODPROBE_CMD | |
16177 | fi | |
16178 | else | |
16179 | MODPROBE_CMD="$ac_cv_path_MODPROBE_CMD" | |
16180 | fi | |
16181 | ||
7a197a62 | 16182 | |
b681b774 ZK |
16183 | if test -n "$MODPROBE_CMD" |
16184 | then : | |
16185 | ||
72b2cb61 | 16186 | |
6b2e4ec5 | 16187 | printf "%s\n" "#define MODPROBE_CMD \"$MODPROBE_CMD\"" >>confdefs.h |
72b2cb61 | 16188 | |
b681b774 | 16189 | |
a653923f AK |
16190 | fi |
16191 | ||
3f59969c | 16192 | SYSCONFDIR="$(eval echo $(eval echo $sysconfdir))" |
b5c2529b | 16193 | |
3f59969c ZK |
16194 | SBINDIR="$(eval echo $(eval echo $sbindir))" |
16195 | LVM_PATH="$SBINDIR/lvm" | |
a9b601e2 | 16196 | |
6b2e4ec5 | 16197 | printf "%s\n" "#define LVM_PATH \"$LVM_PATH\"" >>confdefs.h |
b5c2529b ZK |
16198 | |
16199 | ||
a0f6f188 | 16200 | LVMCONFIG_PATH="$SBINDIR/lvmconfig" |
b5c2529b | 16201 | |
6b2e4ec5 | 16202 | printf "%s\n" "#define LVMCONFIG_PATH \"$LVMCONFIG_PATH\"" >>confdefs.h |
b5c2529b | 16203 | |
b5c2529b | 16204 | |
0d22b581 JT |
16205 | USRSBINDIR="$(eval echo $(eval echo $usrsbindir))" |
16206 | ||
3f59969c | 16207 | FSADM_PATH="$SBINDIR/fsadm" |
3018cdca | 16208 | |
6b2e4ec5 | 16209 | printf "%s\n" "#define FSADM_PATH \"$FSADM_PATH\"" >>confdefs.h |
3018cdca ZK |
16210 | |
16211 | ||
12ba43cc | 16212 | LVMIMPORTVDO_PATH="$SBINDIR/lvm_import_vdo" |
ed48cb26 | 16213 | |
6b2e4ec5 | 16214 | printf "%s\n" "#define LVMIMPORTVDO_PATH \"$LVMIMPORTVDO_PATH\"" >>confdefs.h |
ed48cb26 ZK |
16215 | |
16216 | ||
a2d33cdf MC |
16217 | LIBEXECDIR="$(eval echo $(eval echo $libexecdir))" |
16218 | ||
16219 | LVRESIZE_FS_HELPER_PATH="$LIBEXECDIR/lvresize_fs_helper" | |
16220 | ||
16221 | printf "%s\n" "#define LVRESIZE_FS_HELPER_PATH \"$LVRESIZE_FS_HELPER_PATH\"" >>confdefs.h | |
16222 | ||
16223 | ||
80992638 | 16224 | ################################################################################ |
93bd259b AK |
16225 | |
16226 | # Check whether --with-dmeventd-pidfile was given. | |
6b2e4ec5 ZK |
16227 | if test ${with_dmeventd_pidfile+y} |
16228 | then : | |
71082be4 | 16229 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
635df748 ZK |
16230 | else case e in #( |
16231 | e) DMEVENTD_PIDFILE="$DEFAULT_PID_DIR/dmeventd.pid" ;; | |
16232 | esac | |
93bd259b AK |
16233 | fi |
16234 | ||
93bd259b | 16235 | |
93bd259b | 16236 | # Check whether --with-dmeventd-path was given. |
6b2e4ec5 ZK |
16237 | if test ${with_dmeventd_path+y} |
16238 | then : | |
71082be4 | 16239 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
635df748 ZK |
16240 | else case e in #( |
16241 | e) DMEVENTD_PATH="$SBINDIR/dmeventd" ;; | |
16242 | esac | |
93bd259b AK |
16243 | fi |
16244 | ||
93bd259b | 16245 | |
3da18a06 ZK |
16246 | # Check whether --with-dmeventd-exit-on-path was given. |
16247 | if test ${with_dmeventd_exit_on_path+y} | |
16248 | then : | |
16249 | withval=$with_dmeventd_exit_on_path; DEFAULT_DMEVENTD_EXIT_ON_PATH=$withval | |
635df748 ZK |
16250 | else case e in #( |
16251 | e) DEFAULT_DMEVENTD_EXIT_ON_PATH="/run/nologin" ;; | |
16252 | esac | |
3da18a06 ZK |
16253 | fi |
16254 | ||
16255 | ||
86ac529b ZK |
16256 | if test "$BUILD_DMEVENTD" = "yes" |
16257 | then : | |
16258 | ||
16259 | ||
16260 | printf "%s\n" "#define DMEVENTD_PIDFILE \"$DMEVENTD_PIDFILE\"" >>confdefs.h | |
16261 | ||
16262 | ||
6b2e4ec5 | 16263 | printf "%s\n" "#define DMEVENTD_PATH \"$DMEVENTD_PATH\"" >>confdefs.h |
3399ae32 | 16264 | |
b681b774 | 16265 | |
3da18a06 ZK |
16266 | printf "%s\n" "#define DEFAULT_DMEVENTD_EXIT_ON_PATH \"$DEFAULT_DMEVENTD_EXIT_ON_PATH\"" >>confdefs.h |
16267 | ||
16268 | ||
71082be4 | 16269 | fi |
3399ae32 | 16270 | |
71082be4 | 16271 | ################################################################################ |
3399ae32 AK |
16272 | |
16273 | # Check whether --with-default-system-dir was given. | |
6b2e4ec5 ZK |
16274 | if test ${with_default_system_dir+y} |
16275 | then : | |
71082be4 | 16276 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
635df748 ZK |
16277 | else case e in #( |
16278 | e) DEFAULT_SYS_DIR="/etc/lvm" ;; | |
16279 | esac | |
3399ae32 AK |
16280 | fi |
16281 | ||
71082be4 | 16282 | |
6b2e4ec5 | 16283 | printf "%s\n" "#define DEFAULT_SYS_DIR \"$DEFAULT_SYS_DIR\"" >>confdefs.h |
3399ae32 AK |
16284 | |
16285 | ||
16286 | ||
f89a8b81 | 16287 | # Check whether --with-default-profile-subdir was given. |
6b2e4ec5 ZK |
16288 | if test ${with_default_profile_subdir+y} |
16289 | then : | |
f89a8b81 | 16290 | withval=$with_default_profile_subdir; DEFAULT_PROFILE_SUBDIR=$withval |
635df748 ZK |
16291 | else case e in #( |
16292 | e) DEFAULT_PROFILE_SUBDIR="profile" ;; | |
16293 | esac | |
f89a8b81 PR |
16294 | fi |
16295 | ||
16296 | ||
6b2e4ec5 | 16297 | printf "%s\n" "#define DEFAULT_PROFILE_SUBDIR \"$DEFAULT_PROFILE_SUBDIR\"" >>confdefs.h |
f89a8b81 PR |
16298 | |
16299 | ||
16300 | ||
3399ae32 | 16301 | # Check whether --with-default-archive-subdir was given. |
6b2e4ec5 ZK |
16302 | if test ${with_default_archive_subdir+y} |
16303 | then : | |
71082be4 | 16304 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
635df748 ZK |
16305 | else case e in #( |
16306 | e) DEFAULT_ARCHIVE_SUBDIR="archive" ;; | |
16307 | esac | |
3399ae32 AK |
16308 | fi |
16309 | ||
71082be4 | 16310 | |
6b2e4ec5 | 16311 | printf "%s\n" "#define DEFAULT_ARCHIVE_SUBDIR \"$DEFAULT_ARCHIVE_SUBDIR\"" >>confdefs.h |
3399ae32 AK |
16312 | |
16313 | ||
16314 | ||
3399ae32 | 16315 | # Check whether --with-default-backup-subdir was given. |
6b2e4ec5 ZK |
16316 | if test ${with_default_backup_subdir+y} |
16317 | then : | |
71082be4 | 16318 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
635df748 ZK |
16319 | else case e in #( |
16320 | e) DEFAULT_BACKUP_SUBDIR="backup" ;; | |
16321 | esac | |
3399ae32 AK |
16322 | fi |
16323 | ||
71082be4 | 16324 | |
6b2e4ec5 | 16325 | printf "%s\n" "#define DEFAULT_BACKUP_SUBDIR \"$DEFAULT_BACKUP_SUBDIR\"" >>confdefs.h |
3399ae32 AK |
16326 | |
16327 | ||
16328 | ||
3399ae32 | 16329 | # Check whether --with-default-cache-subdir was given. |
6b2e4ec5 ZK |
16330 | if test ${with_default_cache_subdir+y} |
16331 | then : | |
71082be4 | 16332 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
635df748 ZK |
16333 | else case e in #( |
16334 | e) DEFAULT_CACHE_SUBDIR="cache" ;; | |
16335 | esac | |
3399ae32 AK |
16336 | fi |
16337 | ||
71082be4 | 16338 | |
6b2e4ec5 | 16339 | printf "%s\n" "#define DEFAULT_CACHE_SUBDIR \"$DEFAULT_CACHE_SUBDIR\"" >>confdefs.h |
3399ae32 AK |
16340 | |
16341 | ||
3f59969c ZK |
16342 | # Select default system locking dir, prefer /run/lock over /var/lock |
16343 | DEFAULT_SYS_LOCK_DIR="$RUN_DIR/lock" | |
16344 | test -d "$DEFAULT_SYS_LOCK_DIR" || DEFAULT_SYS_LOCK_DIR="/var/lock" | |
16345 | ||
16346 | # Support configurable locking subdir for lvm | |
a7cf55c6 ZK |
16347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default lock directory" >&5 |
16348 | printf %s "checking for default lock directory... " >&6; } | |
3399ae32 | 16349 | |
3399ae32 | 16350 | # Check whether --with-default-locking-dir was given. |
6b2e4ec5 ZK |
16351 | if test ${with_default_locking_dir+y} |
16352 | then : | |
71082be4 | 16353 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
635df748 ZK |
16354 | else case e in #( |
16355 | e) DEFAULT_LOCK_DIR="$DEFAULT_SYS_LOCK_DIR/lvm" ;; | |
16356 | esac | |
3399ae32 AK |
16357 | fi |
16358 | ||
a7cf55c6 ZK |
16359 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_LOCK_DIR" >&5 |
16360 | printf "%s\n" "$DEFAULT_LOCK_DIR" >&6; } | |
71082be4 | 16361 | |
6b2e4ec5 | 16362 | printf "%s\n" "#define DEFAULT_LOCK_DIR \"$DEFAULT_LOCK_DIR\"" >>confdefs.h |
3399ae32 AK |
16363 | |
16364 | ||
569dd5d0 ZK |
16365 | # No --with configure setting, but store in the main configure.h |
16366 | ||
16367 | printf "%s\n" "#define DEFAULT_PROC_DIR \"/proc\"" >>confdefs.h | |
16368 | ||
16369 | ||
93bd259b | 16370 | ################################################################################ |
6b2e4ec5 ZK |
16371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5 |
16372 | printf %s "checking for kernel interface choice... " >&6; } | |
93bd259b AK |
16373 | |
16374 | # Check whether --with-interface was given. | |
6b2e4ec5 ZK |
16375 | if test ${with_interface+y} |
16376 | then : | |
71082be4 | 16377 | withval=$with_interface; interface=$withval |
635df748 ZK |
16378 | else case e in #( |
16379 | e) interface="ioctl" ;; | |
16380 | esac | |
93bd259b AK |
16381 | fi |
16382 | ||
86ac529b ZK |
16383 | if test "$interface" != "ioctl" |
16384 | then : | |
16385 | as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5 | |
16386 | fi | |
6b2e4ec5 ZK |
16387 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $interface" >&5 |
16388 | printf "%s\n" "$interface" >&6; } | |
93bd259b AK |
16389 | |
16390 | ################################################################################ | |
b681b774 | 16391 | read DM_LIB_VERSION < "$srcdir"/VERSION_DM 2>/dev/null || DM_LIB_VERSION="Unknown" |
24bbc4d7 | 16392 | |
6b2e4ec5 | 16393 | printf "%s\n" "#define DM_LIB_VERSION \"$DM_LIB_VERSION\"" >>confdefs.h |
24bbc4d7 AK |
16394 | |
16395 | ||
86ac529b | 16396 | DM_LIB_PATCHLEVEL=$($AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}' "$srcdir"/VERSION_DM) |
7e3fe830 | 16397 | |
d62448cb | 16398 | read VER < "$srcdir"/VERSION 2>/dev/null || VER=Unknown |
fae0c576 | 16399 | |
d62448cb | 16400 | LVM_VERSION=\"$VER\" |
b681b774 ZK |
16401 | LVM_RELEASE_DATE="\"$(echo $VER | $SED 's/.* (//;s/).*//')\"" |
16402 | VER=$(echo "$VER" | $AWK '{print $1}') | |
16403 | LVM_RELEASE="\"$(echo "$VER" | $AWK -F '-' '{print $2}')\"" | |
16404 | VER=$(echo "$VER" | $AWK -F '-' '{print $1}') | |
16405 | LVM_MAJOR=$(echo "$VER" | $AWK -F '.' '{print $1}') | |
16406 | LVM_MINOR=$(echo "$VER" | $AWK -F '.' '{print $2}') | |
16407 | LVM_PATCHLEVEL=$(echo "$VER" | $AWK -F '[(.]' '{print $3}') | |
16408 | LVM_LIBAPI=$(echo "$VER" | $AWK -F '[()]' '{print $2}') | |
ec6a6fbe | 16409 | |
e8362b4c | 16410 | |
6b2e4ec5 | 16411 | printf "%s\n" "#define LVM_CONFIGURE_LINE \"$CONFIGURE_LINE\"" >>confdefs.h |
e8362b4c AK |
16412 | |
16413 | ||
86ac529b ZK |
16414 | ################################################################################ |
16415 | # Allow users to override default location for libaio | |
16416 | # there seems to be no pkg-config support available | |
16417 | AIO_CFLAGS=${AIO_CFLAGS:-} | |
16418 | AIO_LIBS=${AIO_LIBS:--laio} | |
16419 | ||
16420 | ||
16421 | ||
fae0c576 | 16422 | |
83912faa | 16423 | |
795ca3e5 | 16424 | |
b73e1cd4 ZK |
16425 | ################################################################################ |
16426 | ||
16427 | ||
21edfc4a | 16428 | |
b73e1cd4 ZK |
16429 | |
16430 | ||
16431 | ||
16432 | ||
16433 | ||
16434 | ||
69792976 | 16435 | |
d0191583 | 16436 | |
69792976 | 16437 | |
8106cdd5 AK |
16438 | |
16439 | ||
16440 | ||
16441 | ||
16442 | ||
d68a82ec | 16443 | |
036f273a | 16444 | |
7d1552c9 | 16445 | |
8106cdd5 | 16446 | |
0a62c911 | 16447 | |
8106cdd5 | 16448 | |
4a7f3eb2 | 16449 | |
4922197a AK |
16450 | |
16451 | ||
d8ac0fbc | 16452 | |
1a9ea74d | 16453 | |
8a2fc586 AK |
16454 | |
16455 | ||
d0191583 | 16456 | |
93bd259b AK |
16457 | |
16458 | ||
16459 | ||
16460 | ||
16461 | ||
d0191583 JM |
16462 | |
16463 | ||
16464 | ||
16465 | ||
16466 | ||
8a2fc586 | 16467 | |
19a2c6e0 | 16468 | |
f7f0854e ZK |
16469 | |
16470 | ||
3ceb7608 | 16471 | |
8ce0cbda | 16472 | |
8b1a3214 | 16473 | |
ec6a6fbe AK |
16474 | |
16475 | ||
16476 | ||
16477 | ||
e2997b73 AK |
16478 | |
16479 | ||
16480 | ||
16481 | ||
16482 | ||
16483 | ||
a946372e AK |
16484 | |
16485 | ||
16486 | ||
16487 | ||
16488 | ||
16489 | ||
16490 | ||
16491 | ||
16492 | ||
16493 | ||
16494 | ||
ec6a6fbe | 16495 | |
cac52ca4 | 16496 | |
d3c8211f | 16497 | |
7e3fe830 | 16498 | |
a5f46f6a AK |
16499 | |
16500 | ||
16501 | ||
572fefeb | 16502 | |
90c80887 | 16503 | |
3399ae32 AK |
16504 | |
16505 | ||
16506 | ||
16507 | ||
16508 | ||
90c80887 | 16509 | |
bf456146 | 16510 | |
e1b8a236 | 16511 | |
0878503f | 16512 | |
8fea97b7 | 16513 | |
54b362f9 | 16514 | |
b1f08e51 | 16515 | |
d1e8046f | 16516 | |
fea55602 | 16517 | |
c89bc357 | 16518 | |
6e5c1f75 | 16519 | |
3ba4a195 | 16520 | |
d2c11605 ZK |
16521 | |
16522 | ||
cdd50823 | 16523 | |
426fc742 PR |
16524 | |
16525 | ||
b6d7a484 AK |
16526 | |
16527 | ||
bf09a320 | 16528 | |
e587cb6a | 16529 | |
b559a1e6 | 16530 | |
5723db01 PR |
16531 | |
16532 | ||
16533 | ||
ee3cfa41 AK |
16534 | |
16535 | ||
16536 | ||
5987562c AK |
16537 | |
16538 | ||
fe70b03d | 16539 | |
dc49e1cd | 16540 | |
c923dee8 | 16541 | |
c1bd76d6 | 16542 | |
5ff18f51 MC |
16543 | |
16544 | ||
07d41de7 | 16545 | |
679116a9 ZK |
16546 | |
16547 | ||
3a92d633 ZK |
16548 | |
16549 | ||
a2d33cdf MC |
16550 | |
16551 | ||
86ac529b ZK |
16552 | |
16553 | ||
16554 | ||
16555 | ||
16556 | ||
2df7ef58 | 16557 | |
b681b774 ZK |
16558 | |
16559 | ||
17baeb65 | 16560 | |
3da18a06 | 16561 | |
8b8b8ac1 | 16562 | |
0627716f | 16563 | |
1453ccd5 | 16564 | |
cd9b2b32 | 16565 | |
569dd5d0 | 16566 | |
68f2de6d AK |
16567 | |
16568 | ||
80992638 | 16569 | ################################################################################ |
46f94614 | 16570 | ac_config_files="$ac_config_files Makefile make.tmpl libdm/make.tmpl daemons/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/dmeventd/plugins/vdo/Makefile daemons/lvmdbusd/Makefile daemons/lvmdbusd/lvmdbusd daemons/lvmdbusd/lvmdb.py daemons/lvmdbusd/lvm_shell_proxy.py daemons/lvmdbusd/path.py daemons/lvmpolld/Makefile daemons/lvmlockd/Makefile conf/Makefile conf/example.conf conf/lvmlocal.conf conf/command_profile_template.profile conf/metadata_profile_template.profile include/Makefile lib/Makefile include/lvm-version.h libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/dm-tools/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/lvm2-pvscan.service scripts/blkdeactivate.sh scripts/blk_availability_init_red_hat scripts/blk_availability_systemd_red_hat.service scripts/cmirrord_init_red_hat scripts/com.redhat.lvmdbus1.service scripts/dm_event_systemd_red_hat.service scripts/dm_event_systemd_red_hat.socket scripts/lvm2_cmirrord_systemd_red_hat.service scripts/lvm2_lvmdbusd_systemd_red_hat.service scripts/lvm2_lvmpolld_init_red_hat scripts/lvm2_lvmpolld_systemd_red_hat.service scripts/lvm2_lvmpolld_systemd_red_hat.socket scripts/lvmlockd.service scripts/lvmlocks.service scripts/lvm2_monitoring_init_red_hat scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/lvmdump.sh scripts/Makefile test/Makefile tools/Makefile udev/Makefile" |
7a197a62 | 16571 | |
ad6254c5 | 16572 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
16573 | # This file is a shell script that caches the results of configure |
16574 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
16575 | # scripts and configure runs, see configure's option --config-cache. |
16576 | # It is not useful on other systems. If it contains results you don't | |
16577 | # want to keep, you may remove or edit it. | |
795ca3e5 | 16578 | # |
ad6254c5 AK |
16579 | # config.status only pays attention to the cache file if you give it |
16580 | # the --recheck option to rerun configure. | |
795ca3e5 | 16581 | # |
635df748 ZK |
16582 | # 'ac_cv_env_foo' variables (set or unset) will be overridden when |
16583 | # loading this file, other *unset* 'ac_cv_foo' will be assigned the | |
ad6254c5 AK |
16584 | # following values. |
16585 | ||
16586 | _ACEOF | |
16587 | ||
795ca3e5 AK |
16588 | # The following way of writing the cache mishandles newlines in values, |
16589 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 16590 | # So, we kill variables containing newlines. |
795ca3e5 AK |
16591 | # Ultrix sh set writes to stderr and can't be redirected directly, |
16592 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
16593 | ( |
16594 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16595 | eval ac_val=\$$ac_var | |
16596 | case $ac_val in #( | |
16597 | *${as_nl}*) | |
16598 | case $ac_var in #( | |
6b2e4ec5 ZK |
16599 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
16600 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7a197a62 AK |
16601 | esac |
16602 | case $ac_var in #( | |
16603 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 16604 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
f11781c5 | 16605 | *) { eval $ac_var=; unset $ac_var;} ;; |
7a197a62 AK |
16606 | esac ;; |
16607 | esac | |
16608 | done | |
16609 | ||
ad6254c5 | 16610 | (set) 2>&1 | |
7a197a62 AK |
16611 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
16612 | *${as_nl}ac_space=\ *) | |
635df748 | 16613 | # 'set' does not quote correctly, so add quotes: double-quote |
f11781c5 | 16614 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
ad6254c5 | 16615 | sed -n \ |
8a2fc586 AK |
16616 | "s/'/'\\\\''/g; |
16617 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 16618 | ;; #( |
ad6254c5 | 16619 | *) |
635df748 | 16620 | # 'set' quotes correctly as required by POSIX, so do not add quotes. |
7a197a62 | 16621 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 16622 | ;; |
7a197a62 AK |
16623 | esac | |
16624 | sort | |
16625 | ) | | |
ad6254c5 | 16626 | sed ' |
7a197a62 | 16627 | /^ac_cv_env_/b end |
ad6254c5 | 16628 | t clear |
7a197a62 | 16629 | :clear |
6b2e4ec5 | 16630 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
ad6254c5 | 16631 | t end |
7a197a62 AK |
16632 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
16633 | :end' >>confcache | |
16634 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16635 | if test -w "$cache_file"; then | |
4d0c3ed0 | 16636 | if test "x$cache_file" != "x/dev/null"; then |
6b2e4ec5 ZK |
16637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
16638 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} | |
4d0c3ed0 AK |
16639 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
16640 | cat confcache >"$cache_file" | |
16641 | else | |
16642 | case $cache_file in #( | |
16643 | */* | ?:*) | |
16644 | mv -f confcache "$cache_file"$$ && | |
16645 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
16646 | *) | |
16647 | mv -f confcache "$cache_file" ;; | |
16648 | esac | |
16649 | fi | |
16650 | fi | |
795ca3e5 | 16651 | else |
6b2e4ec5 ZK |
16652 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
16653 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} | |
795ca3e5 AK |
16654 | fi |
16655 | fi | |
16656 | rm -f confcache | |
16657 | ||
795ca3e5 AK |
16658 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
16659 | # Let make expand exec_prefix. | |
16660 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16661 | ||
72b2cb61 | 16662 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
16663 | |
16664 | ac_libobjs= | |
16665 | ac_ltlibobjs= | |
f11781c5 | 16666 | U= |
ad6254c5 AK |
16667 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
16668 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 16669 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
6b2e4ec5 | 16670 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
16671 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
16672 | # will be set to the directory where LIBOBJS objects are built. | |
f11781c5 AK |
16673 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
16674 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
16675 | done |
16676 | LIBOBJS=$ac_libobjs | |
80992638 | 16677 | |
ad6254c5 AK |
16678 | LTLIBOBJS=$ac_ltlibobjs |
16679 | ||
16680 | ||
16681 | ||
4d0c3ed0 | 16682 | : "${CONFIG_STATUS=./config.status}" |
ec6a6fbe | 16683 | ac_write_fail=0 |
ad6254c5 AK |
16684 | ac_clean_files_save=$ac_clean_files |
16685 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6b2e4ec5 ZK |
16686 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
16687 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | |
f11781c5 AK |
16688 | as_write_fail=0 |
16689 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
ad6254c5 AK |
16690 | #! $SHELL |
16691 | # Generated by $as_me. | |
795ca3e5 | 16692 | # Run this file to recreate the current configuration. |
795ca3e5 | 16693 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
16694 | # configure, is in config.log if it exists. |
16695 | ||
16696 | debug=false | |
16697 | ac_cs_recheck=false | |
16698 | ac_cs_silent=false | |
ad6254c5 | 16699 | |
f11781c5 AK |
16700 | SHELL=\${CONFIG_SHELL-$SHELL} |
16701 | export SHELL | |
16702 | _ASEOF | |
16703 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16704 | ## -------------------- ## | |
16705 | ## M4sh Initialization. ## | |
16706 | ## -------------------- ## | |
ad6254c5 | 16707 | |
25fbec5b AK |
16708 | # Be more Bourne compatible |
16709 | DUALCASE=1; export DUALCASE # for MKS sh | |
6b2e4ec5 ZK |
16710 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
16711 | then : | |
ad6254c5 AK |
16712 | emulate sh |
16713 | NULLCMD=: | |
ec6a6fbe | 16714 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
16715 | # is contrary to our usage. Disable this feature. |
16716 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 | 16717 | setopt NO_GLOB_SUBST |
635df748 ZK |
16718 | else case e in #( |
16719 | e) case `(set -o) 2>/dev/null` in #( | |
f11781c5 AK |
16720 | *posix*) : |
16721 | set -o posix ;; #( | |
16722 | *) : | |
16723 | ;; | |
635df748 | 16724 | esac ;; |
25fbec5b | 16725 | esac |
7a197a62 | 16726 | fi |
25fbec5b AK |
16727 | |
16728 | ||
6b2e4ec5 ZK |
16729 | |
16730 | # Reset variables that may have inherited troublesome values from | |
16731 | # the environment. | |
16732 | ||
16733 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
16734 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
16735 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
16736 | # Quoting is to prevent editors from complaining about space-tab. | |
ec6a6fbe AK |
16737 | as_nl=' |
16738 | ' | |
16739 | export as_nl | |
6b2e4ec5 ZK |
16740 | IFS=" "" $as_nl" |
16741 | ||
16742 | PS1='$ ' | |
16743 | PS2='> ' | |
16744 | PS4='+ ' | |
16745 | ||
16746 | # Ensure predictable behavior from utilities with locale-dependent output. | |
16747 | LC_ALL=C | |
16748 | export LC_ALL | |
16749 | LANGUAGE=C | |
16750 | export LANGUAGE | |
16751 | ||
16752 | # We cannot yet rely on "unset" to work, but we need these variables | |
16753 | # to be unset--not just set to an empty or harmless value--now, to | |
16754 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
16755 | # also avoids known problems related to "unset" and subshell syntax | |
16756 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
16757 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
16758 | do eval test \${$as_var+y} \ | |
16759 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16760 | done | |
16761 | ||
16762 | # Ensure that fds 0, 1, and 2 are open. | |
16763 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
16764 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
16765 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
ec6a6fbe AK |
16766 | |
16767 | # The user is always right. | |
6b2e4ec5 | 16768 | if ${PATH_SEPARATOR+false} :; then |
ec6a6fbe AK |
16769 | PATH_SEPARATOR=: |
16770 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16771 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16772 | PATH_SEPARATOR=';' | |
16773 | } | |
ad6254c5 AK |
16774 | fi |
16775 | ||
ad6254c5 | 16776 | |
7a197a62 | 16777 | # Find who we are. Look in the path if we contain no directory separator. |
4d0c3ed0 | 16778 | as_myself= |
f11781c5 | 16779 | case $0 in #(( |
7a197a62 AK |
16780 | *[\\/]* ) as_myself=$0 ;; |
16781 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16782 | for as_dir in $PATH | |
16783 | do | |
16784 | IFS=$as_save_IFS | |
6b2e4ec5 ZK |
16785 | case $as_dir in #((( |
16786 | '') as_dir=./ ;; | |
16787 | */) ;; | |
16788 | *) as_dir=$as_dir/ ;; | |
16789 | esac | |
16790 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
f11781c5 | 16791 | done |
7a197a62 AK |
16792 | IFS=$as_save_IFS |
16793 | ||
16794 | ;; | |
16795 | esac | |
635df748 | 16796 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
7a197a62 AK |
16797 | # in which case we are not to be found in the path. |
16798 | if test "x$as_myself" = x; then | |
16799 | as_myself=$0 | |
16800 | fi | |
16801 | if test ! -f "$as_myself"; then | |
6b2e4ec5 | 16802 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 16803 | exit 1 |
7a197a62 AK |
16804 | fi |
16805 | ||
f11781c5 AK |
16806 | |
16807 | ||
16808 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
16809 | # ---------------------------------------- | |
16810 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
16811 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
16812 | # script with STATUS, using 1 if that was 0. | |
16813 | as_fn_error () | |
16814 | { | |
16815 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
16816 | if test "$4"; then | |
16817 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6b2e4ec5 | 16818 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
f11781c5 | 16819 | fi |
6b2e4ec5 | 16820 | printf "%s\n" "$as_me: error: $2" >&2 |
f11781c5 AK |
16821 | as_fn_exit $as_status |
16822 | } # as_fn_error | |
16823 | ||
16824 | ||
16825 | # as_fn_set_status STATUS | |
16826 | # ----------------------- | |
16827 | # Set $? to STATUS, without forking. | |
16828 | as_fn_set_status () | |
16829 | { | |
16830 | return $1 | |
16831 | } # as_fn_set_status | |
16832 | ||
16833 | # as_fn_exit STATUS | |
16834 | # ----------------- | |
16835 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16836 | as_fn_exit () | |
16837 | { | |
16838 | set +e | |
16839 | as_fn_set_status $1 | |
16840 | exit $1 | |
16841 | } # as_fn_exit | |
16842 | ||
16843 | # as_fn_unset VAR | |
16844 | # --------------- | |
16845 | # Portably unset VAR. | |
16846 | as_fn_unset () | |
16847 | { | |
16848 | { eval $1=; unset $1;} | |
16849 | } | |
16850 | as_unset=as_fn_unset | |
6b2e4ec5 | 16851 | |
f11781c5 AK |
16852 | # as_fn_append VAR VALUE |
16853 | # ---------------------- | |
16854 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16855 | # advantage of any shell optimizations that allow amortized linear growth over | |
16856 | # repeated appends, instead of the typical quadratic growth present in naive | |
16857 | # implementations. | |
6b2e4ec5 ZK |
16858 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
16859 | then : | |
f11781c5 AK |
16860 | eval 'as_fn_append () |
16861 | { | |
16862 | eval $1+=\$2 | |
16863 | }' | |
635df748 ZK |
16864 | else case e in #( |
16865 | e) as_fn_append () | |
f11781c5 AK |
16866 | { |
16867 | eval $1=\$$1\$2 | |
635df748 ZK |
16868 | } ;; |
16869 | esac | |
f11781c5 AK |
16870 | fi # as_fn_append |
16871 | ||
16872 | # as_fn_arith ARG... | |
16873 | # ------------------ | |
16874 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16875 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16876 | # must be portable across $(()) and expr. | |
6b2e4ec5 ZK |
16877 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
16878 | then : | |
f11781c5 AK |
16879 | eval 'as_fn_arith () |
16880 | { | |
16881 | as_val=$(( $* )) | |
16882 | }' | |
635df748 ZK |
16883 | else case e in #( |
16884 | e) as_fn_arith () | |
f11781c5 AK |
16885 | { |
16886 | as_val=`expr "$@" || test $? -eq 1` | |
635df748 ZK |
16887 | } ;; |
16888 | esac | |
f11781c5 AK |
16889 | fi # as_fn_arith |
16890 | ||
16891 | ||
7a197a62 AK |
16892 | if expr a : '\(a\)' >/dev/null 2>&1 && |
16893 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
16894 | as_expr=expr |
16895 | else | |
16896 | as_expr=false | |
16897 | fi | |
8106cdd5 | 16898 | |
7a197a62 | 16899 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
16900 | as_basename=basename |
16901 | else | |
16902 | as_basename=false | |
16903 | fi | |
16904 | ||
f11781c5 AK |
16905 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
16906 | as_dirname=dirname | |
16907 | else | |
16908 | as_dirname=false | |
16909 | fi | |
ad6254c5 | 16910 | |
7a197a62 | 16911 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
16912 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
16913 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 16914 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
6b2e4ec5 | 16915 | printf "%s\n" X/"$0" | |
7a197a62 AK |
16916 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
16917 | s//\1/ | |
16918 | q | |
16919 | } | |
16920 | /^X\/\(\/\/\)$/{ | |
16921 | s//\1/ | |
16922 | q | |
16923 | } | |
16924 | /^X\/\(\/\).*/{ | |
16925 | s//\1/ | |
16926 | q | |
16927 | } | |
16928 | s/.*/./; q'` | |
ad6254c5 | 16929 | |
f11781c5 AK |
16930 | # Avoid depending upon Character Ranges. |
16931 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16932 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16933 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16934 | as_cr_digits='0123456789' | |
16935 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7a197a62 | 16936 | |
6b2e4ec5 ZK |
16937 | |
16938 | # Determine whether it's possible to make 'echo' print without a newline. | |
16939 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
16940 | # for compatibility with existing Makefiles. | |
7a197a62 | 16941 | ECHO_C= ECHO_N= ECHO_T= |
f11781c5 | 16942 | case `echo -n x` in #((((( |
7a197a62 | 16943 | -n*) |
f11781c5 | 16944 | case `echo 'xy\c'` in |
7a197a62 | 16945 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
f11781c5 AK |
16946 | xy) ECHO_C='\c';; |
16947 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16948 | ECHO_T=' ';; | |
7a197a62 AK |
16949 | esac;; |
16950 | *) | |
16951 | ECHO_N='-n';; | |
ad6254c5 | 16952 | esac |
80992638 | 16953 | |
6b2e4ec5 ZK |
16954 | # For backward compatibility with old third-party macros, we provide |
16955 | # the shell variables $as_echo and $as_echo_n. New code should use | |
16956 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
16957 | as_echo='printf %s\n' | |
16958 | as_echo_n='printf %s' | |
16959 | ||
ad6254c5 | 16960 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
16961 | if test -d conf$$.dir; then |
16962 | rm -f conf$$.dir/conf$$.file | |
16963 | else | |
16964 | rm -f conf$$.dir | |
ec6a6fbe AK |
16965 | mkdir conf$$.dir 2>/dev/null |
16966 | fi | |
16967 | if (echo >conf$$.file) 2>/dev/null; then | |
16968 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16969 | as_ln_s='ln -s' | |
16970 | # ... but there are two gotchas: | |
635df748 ZK |
16971 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
16972 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. | |
16973 | # In both cases, we have to default to 'cp -pR'. | |
ec6a6fbe | 16974 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
4d0c3ed0 | 16975 | as_ln_s='cp -pR' |
ec6a6fbe AK |
16976 | elif ln conf$$.file conf$$ 2>/dev/null; then |
16977 | as_ln_s=ln | |
16978 | else | |
4d0c3ed0 | 16979 | as_ln_s='cp -pR' |
ec6a6fbe | 16980 | fi |
ad6254c5 | 16981 | else |
4d0c3ed0 | 16982 | as_ln_s='cp -pR' |
ad6254c5 | 16983 | fi |
7a197a62 AK |
16984 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
16985 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 16986 | |
f11781c5 AK |
16987 | |
16988 | # as_fn_mkdir_p | |
16989 | # ------------- | |
16990 | # Create "$as_dir" as a directory, including parents if necessary. | |
16991 | as_fn_mkdir_p () | |
16992 | { | |
16993 | ||
16994 | case $as_dir in #( | |
16995 | -*) as_dir=./$as_dir;; | |
16996 | esac | |
16997 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16998 | as_dirs= | |
16999 | while :; do | |
17000 | case $as_dir in #( | |
6b2e4ec5 | 17001 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
f11781c5 AK |
17002 | *) as_qdir=$as_dir;; |
17003 | esac | |
17004 | as_dirs="'$as_qdir' $as_dirs" | |
17005 | as_dir=`$as_dirname -- "$as_dir" || | |
17006 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17007 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17008 | X"$as_dir" : 'X\(//\)$' \| \ | |
17009 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6b2e4ec5 | 17010 | printf "%s\n" X"$as_dir" | |
f11781c5 AK |
17011 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
17012 | s//\1/ | |
17013 | q | |
17014 | } | |
17015 | /^X\(\/\/\)[^/].*/{ | |
17016 | s//\1/ | |
17017 | q | |
17018 | } | |
17019 | /^X\(\/\/\)$/{ | |
17020 | s//\1/ | |
17021 | q | |
17022 | } | |
17023 | /^X\(\/\).*/{ | |
17024 | s//\1/ | |
17025 | q | |
17026 | } | |
17027 | s/.*/./; q'` | |
17028 | test -d "$as_dir" && break | |
17029 | done | |
17030 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
17031 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
17032 | ||
17033 | ||
17034 | } # as_fn_mkdir_p | |
ad6254c5 | 17035 | if mkdir -p . 2>/dev/null; then |
f11781c5 | 17036 | as_mkdir_p='mkdir -p "$as_dir"' |
ad6254c5 | 17037 | else |
8a2fc586 | 17038 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
17039 | as_mkdir_p=false |
17040 | fi | |
17041 | ||
4d0c3ed0 AK |
17042 | |
17043 | # as_fn_executable_p FILE | |
17044 | # ----------------------- | |
17045 | # Test if FILE is an executable regular file. | |
17046 | as_fn_executable_p () | |
17047 | { | |
17048 | test -f "$1" && test -x "$1" | |
17049 | } # as_fn_executable_p | |
17050 | as_test_x='test -x' | |
17051 | as_executable_p=as_fn_executable_p | |
ad6254c5 AK |
17052 | |
17053 | # Sed expression to map a string onto a valid CPP name. | |
635df748 ZK |
17054 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
17055 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated | |
ad6254c5 AK |
17056 | |
17057 | # Sed expression to map a string onto a valid variable name. | |
635df748 ZK |
17058 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
17059 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated | |
ad6254c5 AK |
17060 | |
17061 | ||
ad6254c5 | 17062 | exec 6>&1 |
f11781c5 AK |
17063 | ## ----------------------------------- ## |
17064 | ## Main body of $CONFIG_STATUS script. ## | |
17065 | ## ----------------------------------- ## | |
17066 | _ASEOF | |
17067 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
ad6254c5 | 17068 | |
f11781c5 AK |
17069 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17070 | # Save the log message, to keep $0 and so on meaningful, and to | |
ad6254c5 | 17071 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
17072 | # values after options handling. |
17073 | ac_log=" | |
ad6254c5 | 17074 | This file was extended by $as_me, which was |
635df748 | 17075 | generated by GNU Autoconf 2.72. Invocation command line was |
ad6254c5 AK |
17076 | |
17077 | CONFIG_FILES = $CONFIG_FILES | |
17078 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17079 | CONFIG_LINKS = $CONFIG_LINKS | |
17080 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17081 | $ $0 $@ | |
17082 | ||
7a197a62 AK |
17083 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
17084 | " | |
17085 | ||
ad6254c5 AK |
17086 | _ACEOF |
17087 | ||
ec6a6fbe AK |
17088 | case $ac_config_files in *" |
17089 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17090 | esac | |
17091 | ||
17092 | case $ac_config_headers in *" | |
17093 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17094 | esac | |
17095 | ||
17096 | ||
17097 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 17098 | # Files that config.status was made for. |
68f2de6d AK |
17099 | config_files="$ac_config_files" |
17100 | config_headers="$ac_config_headers" | |
ad6254c5 | 17101 | |
7a197a62 | 17102 | _ACEOF |
ad6254c5 | 17103 | |
ec6a6fbe | 17104 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 | 17105 | ac_cs_usage="\ |
635df748 | 17106 | '$as_me' instantiates files and other configuration actions |
f11781c5 AK |
17107 | from templates according to the current configuration. Unless the files |
17108 | and actions are specified as TAGs, all are instantiated by default. | |
ad6254c5 | 17109 | |
f11781c5 | 17110 | Usage: $0 [OPTION]... [TAG]... |
ad6254c5 AK |
17111 | |
17112 | -h, --help print this help, then exit | |
25fbec5b | 17113 | -V, --version print version number and configuration settings, then exit |
f11781c5 | 17114 | --config print configuration, then exit |
ec6a6fbe AK |
17115 | -q, --quiet, --silent |
17116 | do not print progress messages | |
ad6254c5 AK |
17117 | -d, --debug don't remove temporary files |
17118 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
17119 | --file=FILE[:TEMPLATE] |
17120 | instantiate the configuration file FILE | |
17121 | --header=FILE[:TEMPLATE] | |
17122 | instantiate the configuration header FILE | |
ad6254c5 AK |
17123 | |
17124 | Configuration files: | |
17125 | $config_files | |
17126 | ||
72b2cb61 AK |
17127 | Configuration headers: |
17128 | $config_headers | |
17129 | ||
f11781c5 | 17130 | Report bugs to the package provider." |
ad6254c5 | 17131 | |
7a197a62 | 17132 | _ACEOF |
6b2e4ec5 ZK |
17133 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
17134 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` | |
ec6a6fbe | 17135 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6b2e4ec5 | 17136 | ac_cs_config='$ac_cs_config_escaped' |
ad6254c5 AK |
17137 | ac_cs_version="\\ |
17138 | config.status | |
635df748 | 17139 | configured by $0, generated by GNU Autoconf 2.72, |
f11781c5 | 17140 | with options \\"\$ac_cs_config\\" |
ad6254c5 | 17141 | |
635df748 | 17142 | Copyright (C) 2023 Free Software Foundation, Inc. |
ad6254c5 AK |
17143 | This config.status script is free software; the Free Software Foundation |
17144 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
17145 | |
17146 | ac_pwd='$ac_pwd' | |
17147 | srcdir='$srcdir' | |
17148 | INSTALL='$INSTALL' | |
fddafd51 | 17149 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
17150 | AWK='$AWK' |
17151 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
17152 | _ACEOF |
17153 | ||
ec6a6fbe AK |
17154 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17155 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
17156 | ac_need_defaults=: |
17157 | while test $# != 0 | |
17158 | do | |
17159 | case $1 in | |
4d0c3ed0 | 17160 | --*=?*) |
7a197a62 AK |
17161 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
17162 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
17163 | ac_shift=: |
17164 | ;; | |
4d0c3ed0 AK |
17165 | --*=) |
17166 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17167 | ac_optarg= | |
17168 | ac_shift=: | |
17169 | ;; | |
7a197a62 | 17170 | *) |
ad6254c5 AK |
17171 | ac_option=$1 |
17172 | ac_optarg=$2 | |
17173 | ac_shift=shift | |
17174 | ;; | |
ad6254c5 AK |
17175 | esac |
17176 | ||
17177 | case $ac_option in | |
17178 | # Handling of the options. | |
ad6254c5 AK |
17179 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
17180 | ac_cs_recheck=: ;; | |
7a197a62 | 17181 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
6b2e4ec5 | 17182 | printf "%s\n" "$ac_cs_version"; exit ;; |
f11781c5 | 17183 | --config | --confi | --conf | --con | --co | --c ) |
6b2e4ec5 | 17184 | printf "%s\n" "$ac_cs_config"; exit ;; |
7a197a62 | 17185 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
17186 | debug=: ;; |
17187 | --file | --fil | --fi | --f ) | |
17188 | $ac_shift | |
ec6a6fbe | 17189 | case $ac_optarg in |
6b2e4ec5 | 17190 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
4d0c3ed0 | 17191 | '') as_fn_error $? "missing file argument" ;; |
ec6a6fbe | 17192 | esac |
f11781c5 | 17193 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
ad6254c5 AK |
17194 | ac_need_defaults=false;; |
17195 | --header | --heade | --head | --hea ) | |
17196 | $ac_shift | |
ec6a6fbe | 17197 | case $ac_optarg in |
6b2e4ec5 | 17198 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
ec6a6fbe | 17199 | esac |
f11781c5 | 17200 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
ad6254c5 | 17201 | ac_need_defaults=false;; |
7a197a62 AK |
17202 | --he | --h) |
17203 | # Conflict between --help and --header | |
635df748 ZK |
17204 | as_fn_error $? "ambiguous option: '$1' |
17205 | Try '$0 --help' for more information.";; | |
7a197a62 | 17206 | --help | --hel | -h ) |
6b2e4ec5 | 17207 | printf "%s\n" "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
17208 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
17209 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17210 | ac_cs_silent=: ;; | |
17211 | ||
17212 | # This is an error. | |
635df748 ZK |
17213 | -*) as_fn_error $? "unrecognized option: '$1' |
17214 | Try '$0 --help' for more information." ;; | |
ad6254c5 | 17215 | |
f11781c5 | 17216 | *) as_fn_append ac_config_targets " $1" |
7a197a62 | 17217 | ac_need_defaults=false ;; |
ad6254c5 AK |
17218 | |
17219 | esac | |
17220 | shift | |
17221 | done | |
17222 | ||
17223 | ac_configure_extra_args= | |
17224 | ||
17225 | if $ac_cs_silent; then | |
17226 | exec 6>/dev/null | |
17227 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17228 | fi | |
17229 | ||
17230 | _ACEOF | |
ec6a6fbe | 17231 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 17232 | if \$ac_cs_recheck; then |
4d0c3ed0 | 17233 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
ec6a6fbe | 17234 | shift |
6b2e4ec5 | 17235 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
ec6a6fbe | 17236 | CONFIG_SHELL='$SHELL' |
7a197a62 | 17237 | export CONFIG_SHELL |
ec6a6fbe | 17238 | exec "\$@" |
ad6254c5 AK |
17239 | fi |
17240 | ||
17241 | _ACEOF | |
ec6a6fbe | 17242 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
17243 | exec 5>>config.log |
17244 | { | |
17245 | echo | |
17246 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17247 | ## Running $as_me. ## | |
17248 | _ASBOX | |
6b2e4ec5 | 17249 | printf "%s\n" "$ac_log" |
7a197a62 | 17250 | } >&5 |
ad6254c5 | 17251 | |
7a197a62 | 17252 | _ACEOF |
ec6a6fbe | 17253 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 17254 | _ACEOF |
ad6254c5 | 17255 | |
ec6a6fbe | 17256 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
17257 | |
17258 | # Handling of arguments. | |
ad6254c5 AK |
17259 | for ac_config_target in $ac_config_targets |
17260 | do | |
7a197a62 | 17261 | case $ac_config_target in |
95b5d24f | 17262 | "include/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS include/configure.h" ;; |
7a197a62 AK |
17263 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
17264 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
ccc35e26 | 17265 | "libdm/make.tmpl") CONFIG_FILES="$CONFIG_FILES libdm/make.tmpl" ;; |
7a197a62 | 17266 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; |
5d311afb | 17267 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
17268 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
17269 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 17270 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 17271 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
3041b72f | 17272 | "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;; |
93bd259b AK |
17273 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
17274 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
2bc1d759 | 17275 | "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;; |
80e6097e | 17276 | "daemons/dmeventd/plugins/vdo/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/vdo/Makefile" ;; |
5987562c | 17277 | "daemons/lvmdbusd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/Makefile" ;; |
2aedc982 | 17278 | "daemons/lvmdbusd/lvmdbusd") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvmdbusd" ;; |
7272fd22 MC |
17279 | "daemons/lvmdbusd/lvmdb.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvmdb.py" ;; |
17280 | "daemons/lvmdbusd/lvm_shell_proxy.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvm_shell_proxy.py" ;; | |
5987562c | 17281 | "daemons/lvmdbusd/path.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/path.py" ;; |
e587b067 | 17282 | "daemons/lvmpolld/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmpolld/Makefile" ;; |
fe70b03d | 17283 | "daemons/lvmlockd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmlockd/Makefile" ;; |
6d1ed225 PR |
17284 | "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; |
17285 | "conf/example.conf") CONFIG_FILES="$CONFIG_FILES conf/example.conf" ;; | |
2fc29289 | 17286 | "conf/lvmlocal.conf") CONFIG_FILES="$CONFIG_FILES conf/lvmlocal.conf" ;; |
23f9c45a PR |
17287 | "conf/command_profile_template.profile") CONFIG_FILES="$CONFIG_FILES conf/command_profile_template.profile" ;; |
17288 | "conf/metadata_profile_template.profile") CONFIG_FILES="$CONFIG_FILES conf/metadata_profile_template.profile" ;; | |
93bd259b AK |
17289 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
17290 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
95b5d24f | 17291 | "include/lvm-version.h") CONFIG_FILES="$CONFIG_FILES include/lvm-version.h" ;; |
7126d8c2 AK |
17292 | "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;; |
17293 | "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;; | |
17294 | "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;; | |
93bd259b | 17295 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
0524829a | 17296 | "libdm/dm-tools/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/dm-tools/Makefile" ;; |
93bd259b AK |
17297 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; |
17298 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
17299 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
46f94614 | 17300 | "scripts/lvm2-pvscan.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2-pvscan.service" ;; |
a70d6b35 PR |
17301 | "scripts/blkdeactivate.sh") CONFIG_FILES="$CONFIG_FILES scripts/blkdeactivate.sh" ;; |
17302 | "scripts/blk_availability_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/blk_availability_init_red_hat" ;; | |
17303 | "scripts/blk_availability_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/blk_availability_systemd_red_hat.service" ;; | |
ad77fb50 | 17304 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
5987562c | 17305 | "scripts/com.redhat.lvmdbus1.service") CONFIG_FILES="$CONFIG_FILES scripts/com.redhat.lvmdbus1.service" ;; |
ad77fb50 ZK |
17306 | "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;; |
17307 | "scripts/dm_event_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.socket" ;; | |
ef91de2a | 17308 | "scripts/lvm2_cmirrord_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_cmirrord_systemd_red_hat.service" ;; |
5987562c | 17309 | "scripts/lvm2_lvmdbusd_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmdbusd_systemd_red_hat.service" ;; |
e587b067 OK |
17310 | "scripts/lvm2_lvmpolld_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_init_red_hat" ;; |
17311 | "scripts/lvm2_lvmpolld_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_systemd_red_hat.service" ;; | |
17312 | "scripts/lvm2_lvmpolld_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_systemd_red_hat.socket" ;; | |
0c00af77 MC |
17313 | "scripts/lvmlockd.service") CONFIG_FILES="$CONFIG_FILES scripts/lvmlockd.service" ;; |
17314 | "scripts/lvmlocks.service") CONFIG_FILES="$CONFIG_FILES scripts/lvmlocks.service" ;; | |
595eaf92 | 17315 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
6e5c1f75 | 17316 | "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;; |
4417a8bd | 17317 | "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;; |
5da35d87 | 17318 | "scripts/lvmdump.sh") CONFIG_FILES="$CONFIG_FILES scripts/lvmdump.sh" ;; |
7a197a62 | 17319 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 17320 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
7a197a62 | 17321 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 17322 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
7a197a62 | 17323 | |
635df748 | 17324 | *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; |
80992638 | 17325 | esac |
ad6254c5 AK |
17326 | done |
17327 | ||
7a197a62 | 17328 | |
ad6254c5 AK |
17329 | # If the user did not use the arguments to specify the items to instantiate, |
17330 | # then the envvar interface is used. Set only those that are not. | |
17331 | # We use the long form for the default assignment because of an extremely | |
17332 | # bizarre bug on SunOS 4.1.3. | |
17333 | if $ac_need_defaults; then | |
6b2e4ec5 ZK |
17334 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
17335 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers | |
ad6254c5 AK |
17336 | fi |
17337 | ||
17338 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 17339 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 17340 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
17341 | # Hook for its removal unless debugging. |
17342 | # Note that there is a small window in which the directory will not be cleaned: | |
635df748 | 17343 | # after its creation but before its name has been assigned to '$tmp'. |
ad6254c5 AK |
17344 | $debug || |
17345 | { | |
4d0c3ed0 | 17346 | tmp= ac_tmp= |
7a197a62 | 17347 | trap 'exit_status=$? |
4d0c3ed0 AK |
17348 | : "${ac_tmp:=$tmp}" |
17349 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
7a197a62 | 17350 | ' 0 |
f11781c5 | 17351 | trap 'as_fn_exit 1' 1 2 13 15 |
ad6254c5 | 17352 | } |
ad6254c5 AK |
17353 | # Create a (secure) tmp directory for tmp files. |
17354 | ||
17355 | { | |
7a197a62 | 17356 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
4d0c3ed0 | 17357 | test -d "$tmp" |
ad6254c5 AK |
17358 | } || |
17359 | { | |
7a197a62 AK |
17360 | tmp=./conf$$-$RANDOM |
17361 | (umask 077 && mkdir "$tmp") | |
f11781c5 | 17362 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
4d0c3ed0 | 17363 | ac_tmp=$tmp |
ad6254c5 | 17364 | |
ec6a6fbe AK |
17365 | # Set up the scripts for CONFIG_FILES section. |
17366 | # No need to generate them if there are no CONFIG_FILES. | |
635df748 | 17367 | # This happens for instance with './config.status config.h'. |
1995c9ff | 17368 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 17369 | |
68f2de6d | 17370 | |
f11781c5 AK |
17371 | ac_cr=`echo X | tr X '\015'` |
17372 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
17373 | # But we know of no other shell where ac_cr would be empty at this | |
17374 | # point, so we can use a bashism as a fallback. | |
17375 | if test "x$ac_cr" = x; then | |
17376 | eval ac_cr=\$\'\\r\' | |
17377 | fi | |
ec6a6fbe AK |
17378 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
17379 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
17380 | ac_cs_awk_cr='\\r' | |
17381 | else | |
17382 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 17383 | fi |
7a197a62 | 17384 | |
4d0c3ed0 | 17385 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
1995c9ff | 17386 | _ACEOF |
7a197a62 | 17387 | |
8106cdd5 | 17388 | |
ec6a6fbe AK |
17389 | { |
17390 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
17391 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17392 | echo "_ACEOF" | |
17393 | } >conf$$subs.sh || | |
f11781c5 AK |
17394 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
17395 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
1995c9ff AK |
17396 | ac_delim='%!_!# ' |
17397 | for ac_last_try in false false false false false :; do | |
ec6a6fbe | 17398 | . ./conf$$subs.sh || |
f11781c5 | 17399 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe AK |
17400 | |
17401 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
17402 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
17403 | break |
17404 | elif $ac_last_try; then | |
f11781c5 | 17405 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1995c9ff AK |
17406 | else |
17407 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17408 | fi | |
17409 | done | |
ec6a6fbe AK |
17410 | rm -f conf$$subs.sh |
17411 | ||
17412 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4d0c3ed0 | 17413 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
ec6a6fbe AK |
17414 | _ACEOF |
17415 | sed -n ' | |
17416 | h | |
17417 | s/^/S["/; s/!.*/"]=/ | |
17418 | p | |
17419 | g | |
17420 | s/^[^!]*!// | |
17421 | :repl | |
17422 | t repl | |
17423 | s/'"$ac_delim"'$// | |
17424 | t delim | |
17425 | :nl | |
17426 | h | |
f11781c5 | 17427 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
17428 | t more1 |
17429 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
17430 | p | |
17431 | n | |
17432 | b repl | |
17433 | :more1 | |
17434 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17435 | p | |
17436 | g | |
17437 | s/.\{148\}// | |
17438 | t nl | |
17439 | :delim | |
17440 | h | |
f11781c5 | 17441 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
17442 | t more2 |
17443 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
17444 | p | |
17445 | b | |
17446 | :more2 | |
17447 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17448 | p | |
17449 | g | |
17450 | s/.\{148\}// | |
17451 | t delim | |
17452 | ' <conf$$subs.awk | sed ' | |
17453 | /^[^""]/{ | |
17454 | N | |
17455 | s/\n// | |
17456 | } | |
17457 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
17458 | rm -f conf$$subs.awk | |
17459 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17460 | _ACAWK | |
4d0c3ed0 | 17461 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
ec6a6fbe AK |
17462 | for (key in S) S_is_set[key] = 1 |
17463 | FS = "\a" | |
7a197a62 | 17464 | |
ec6a6fbe AK |
17465 | } |
17466 | { | |
17467 | line = $ 0 | |
17468 | nfields = split(line, field, "@") | |
17469 | substed = 0 | |
17470 | len = length(field[1]) | |
17471 | for (i = 2; i < nfields; i++) { | |
17472 | key = field[i] | |
17473 | keylen = length(key) | |
17474 | if (S_is_set[key]) { | |
17475 | value = S[key] | |
17476 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17477 | len += length(value) + length(field[++i]) | |
17478 | substed = 1 | |
17479 | } else | |
17480 | len += 1 + keylen | |
17481 | } | |
17482 | ||
17483 | print line | |
17484 | } | |
fddafd51 | 17485 | |
ec6a6fbe | 17486 | _ACAWK |
1995c9ff | 17487 | _ACEOF |
ec6a6fbe AK |
17488 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17489 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17490 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17491 | else | |
17492 | cat | |
4d0c3ed0 | 17493 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
f11781c5 | 17494 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7a197a62 AK |
17495 | _ACEOF |
17496 | ||
f11781c5 AK |
17497 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
17498 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7a197a62 AK |
17499 | # trailing colons and then remove the whole line if VPATH becomes empty |
17500 | # (actually we leave an empty line to preserve line numbers). | |
17501 | if test "x$srcdir" = x.; then | |
f11781c5 AK |
17502 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
17503 | h | |
17504 | s/// | |
17505 | s/^/:/ | |
17506 | s/[ ]*$/:/ | |
17507 | s/:\$(srcdir):/:/g | |
17508 | s/:\${srcdir}:/:/g | |
17509 | s/:@srcdir@:/:/g | |
17510 | s/^:*// | |
7a197a62 | 17511 | s/:*$// |
f11781c5 AK |
17512 | x |
17513 | s/\(=[ ]*\).*/\1/ | |
17514 | G | |
17515 | s/\n// | |
7a197a62 AK |
17516 | s/^[^=]*=[ ]*$// |
17517 | }' | |
17518 | fi | |
17519 | ||
ec6a6fbe | 17520 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
17521 | fi # test -n "$CONFIG_FILES" |
17522 | ||
ec6a6fbe AK |
17523 | # Set up the scripts for CONFIG_HEADERS section. |
17524 | # No need to generate them if there are no CONFIG_HEADERS. | |
635df748 | 17525 | # This happens for instance with './config.status Makefile'. |
ec6a6fbe | 17526 | if test -n "$CONFIG_HEADERS"; then |
4d0c3ed0 | 17527 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
ec6a6fbe AK |
17528 | BEGIN { |
17529 | _ACEOF | |
17530 | ||
635df748 | 17531 | # Transform confdefs.h into an awk script 'defines.awk', embedded as |
ec6a6fbe AK |
17532 | # here-document in config.status, that substitutes the proper values into |
17533 | # config.h.in to produce config.h. | |
17534 | ||
17535 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
17536 | # handling of long lines. | |
17537 | ac_delim='%!_!# ' | |
17538 | for ac_last_try in false false :; do | |
4d0c3ed0 AK |
17539 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
17540 | if test -z "$ac_tt"; then | |
ec6a6fbe AK |
17541 | break |
17542 | elif $ac_last_try; then | |
f11781c5 | 17543 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
ec6a6fbe AK |
17544 | else |
17545 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17546 | fi | |
17547 | done | |
17548 | ||
17549 | # For the awk script, D is an array of macro values keyed by name, | |
17550 | # likewise P contains macro parameters if any. Preserve backslash | |
17551 | # newline sequences. | |
17552 | ||
17553 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
17554 | sed -n ' | |
17555 | s/.\{148\}/&'"$ac_delim"'/g | |
17556 | t rset | |
17557 | :rset | |
17558 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
17559 | t def | |
17560 | d | |
17561 | :def | |
17562 | s/\\$// | |
17563 | t bsnl | |
17564 | s/["\\]/\\&/g | |
17565 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17566 | D["\1"]=" \3"/p | |
17567 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
17568 | d | |
17569 | :bsnl | |
17570 | s/["\\]/\\&/g | |
17571 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17572 | D["\1"]=" \3\\\\\\n"\\/p | |
17573 | t cont | |
17574 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
17575 | t cont | |
17576 | d | |
17577 | :cont | |
17578 | n | |
17579 | s/.\{148\}/&'"$ac_delim"'/g | |
17580 | t clear | |
17581 | :clear | |
17582 | s/\\$// | |
17583 | t bsnlc | |
17584 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
17585 | d | |
17586 | :bsnlc | |
17587 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
17588 | b cont | |
17589 | ' <confdefs.h | sed ' | |
17590 | s/'"$ac_delim"'/"\\\ | |
17591 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
17592 | ||
17593 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17594 | for (key in D) D_is_set[key] = 1 | |
17595 | FS = "\a" | |
17596 | } | |
17597 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
17598 | line = \$ 0 | |
17599 | split(line, arg, " ") | |
17600 | if (arg[1] == "#") { | |
17601 | defundef = arg[2] | |
17602 | mac1 = arg[3] | |
17603 | } else { | |
17604 | defundef = substr(arg[1], 2) | |
17605 | mac1 = arg[2] | |
17606 | } | |
17607 | split(mac1, mac2, "(") #) | |
17608 | macro = mac2[1] | |
17609 | prefix = substr(line, 1, index(line, defundef) - 1) | |
17610 | if (D_is_set[macro]) { | |
17611 | # Preserve the white space surrounding the "#". | |
17612 | print prefix "define", macro P[macro] D[macro] | |
17613 | next | |
17614 | } else { | |
17615 | # Replace #undef with comments. This is necessary, for example, | |
17616 | # in the case of _POSIX_SOURCE, which is predefined and required | |
17617 | # on some systems where configure will not decide to define it. | |
17618 | if (defundef == "undef") { | |
17619 | print "/*", prefix defundef, macro, "*/" | |
17620 | next | |
17621 | } | |
17622 | } | |
17623 | } | |
17624 | { print } | |
17625 | _ACAWK | |
17626 | _ACEOF | |
17627 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f11781c5 | 17628 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
ec6a6fbe AK |
17629 | fi # test -n "$CONFIG_HEADERS" |
17630 | ||
7a197a62 | 17631 | |
ec6a6fbe AK |
17632 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
17633 | shift | |
17634 | for ac_tag | |
7a197a62 AK |
17635 | do |
17636 | case $ac_tag in | |
17637 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17638 | esac | |
17639 | case $ac_mode$ac_tag in | |
17640 | :[FHL]*:*);; | |
635df748 | 17641 | :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; |
7a197a62 AK |
17642 | :[FH]-) ac_tag=-:-;; |
17643 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17644 | esac | |
17645 | ac_save_IFS=$IFS | |
17646 | IFS=: | |
17647 | set x $ac_tag | |
17648 | IFS=$ac_save_IFS | |
17649 | shift | |
17650 | ac_file=$1 | |
17651 | shift | |
17652 | ||
17653 | case $ac_mode in | |
17654 | :L) ac_source=$1;; | |
17655 | :[FH]) | |
17656 | ac_file_inputs= | |
17657 | for ac_f | |
17658 | do | |
17659 | case $ac_f in | |
4d0c3ed0 | 17660 | -) ac_f="$ac_tmp/stdin";; |
7a197a62 AK |
17661 | *) # Look for the file first in the build tree, then in the source tree |
17662 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
635df748 | 17663 | # because $ac_f cannot contain ':'. |
7a197a62 AK |
17664 | test -f "$ac_f" || |
17665 | case $ac_f in | |
17666 | [\\/$]*) false;; | |
17667 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17668 | esac || | |
635df748 | 17669 | as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; |
7a197a62 | 17670 | esac |
6b2e4ec5 | 17671 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
f11781c5 | 17672 | as_fn_append ac_file_inputs " '$ac_f'" |
7a197a62 AK |
17673 | done |
17674 | ||
635df748 | 17675 | # Let's still pretend it is 'configure' which instantiates (i.e., don't |
7a197a62 AK |
17676 | # use $as_me), people would be surprised to read: |
17677 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe | 17678 | configure_input='Generated from '` |
6b2e4ec5 | 17679 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
ec6a6fbe | 17680 | `' by configure.' |
7a197a62 AK |
17681 | if test x"$ac_file" != x-; then |
17682 | configure_input="$ac_file. $configure_input" | |
6b2e4ec5 ZK |
17683 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
17684 | printf "%s\n" "$as_me: creating $ac_file" >&6;} | |
7a197a62 | 17685 | fi |
ec6a6fbe AK |
17686 | # Neutralize special characters interpreted by sed in replacement strings. |
17687 | case $configure_input in #( | |
17688 | *\&* | *\|* | *\\* ) | |
6b2e4ec5 | 17689 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
ec6a6fbe AK |
17690 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
17691 | *) ac_sed_conf_input=$configure_input;; | |
17692 | esac | |
7a197a62 AK |
17693 | |
17694 | case $ac_tag in | |
4d0c3ed0 | 17695 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
f11781c5 | 17696 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7a197a62 AK |
17697 | esac |
17698 | ;; | |
80992638 | 17699 | esac |
8106cdd5 | 17700 | |
7a197a62 | 17701 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 17702 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
17703 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
17704 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 17705 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
6b2e4ec5 | 17706 | printf "%s\n" X"$ac_file" | |
7a197a62 AK |
17707 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
17708 | s//\1/ | |
17709 | q | |
17710 | } | |
17711 | /^X\(\/\/\)[^/].*/{ | |
17712 | s//\1/ | |
17713 | q | |
17714 | } | |
17715 | /^X\(\/\/\)$/{ | |
17716 | s//\1/ | |
17717 | q | |
17718 | } | |
17719 | /^X\(\/\).*/{ | |
17720 | s//\1/ | |
17721 | q | |
17722 | } | |
17723 | s/.*/./; q'` | |
f11781c5 | 17724 | as_dir="$ac_dir"; as_fn_mkdir_p |
ad6254c5 AK |
17725 | ac_builddir=. |
17726 | ||
7a197a62 AK |
17727 | case "$ac_dir" in |
17728 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17729 | *) | |
6b2e4ec5 | 17730 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 17731 | # A ".." for each directory in $ac_dir_suffix. |
6b2e4ec5 | 17732 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
17733 | case $ac_top_builddir_sub in |
17734 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17735 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17736 | esac ;; | |
17737 | esac | |
17738 | ac_abs_top_builddir=$ac_pwd | |
17739 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17740 | # for backward compatibility: | |
17741 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
17742 | |
17743 | case $srcdir in | |
7a197a62 | 17744 | .) # We are building in place. |
ad6254c5 | 17745 | ac_srcdir=. |
7a197a62 AK |
17746 | ac_top_srcdir=$ac_top_builddir_sub |
17747 | ac_abs_top_srcdir=$ac_pwd ;; | |
17748 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 17749 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
17750 | ac_top_srcdir=$srcdir |
17751 | ac_abs_top_srcdir=$srcdir ;; | |
17752 | *) # Relative name. | |
17753 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17754 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17755 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 17756 | esac |
7a197a62 | 17757 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 17758 | |
ad6254c5 | 17759 | |
7a197a62 AK |
17760 | case $ac_mode in |
17761 | :F) | |
17762 | # | |
17763 | # CONFIG_FILE | |
17764 | # | |
ad6254c5 AK |
17765 | |
17766 | case $INSTALL in | |
17767 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 17768 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 17769 | esac |
fddafd51 ZK |
17770 | ac_MKDIR_P=$MKDIR_P |
17771 | case $MKDIR_P in | |
17772 | [\\/$]* | ?:[\\/]* ) ;; | |
17773 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
17774 | esac | |
7a197a62 | 17775 | _ACEOF |
795ca3e5 | 17776 | |
ec6a6fbe | 17777 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
17778 | # If the template does not know about datarootdir, expand it. |
17779 | # FIXME: This hack should be removed a few years after 2.60. | |
17780 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec6a6fbe AK |
17781 | ac_sed_dataroot=' |
17782 | /datarootdir/ { | |
7a197a62 AK |
17783 | p |
17784 | q | |
17785 | } | |
17786 | /@datadir@/p | |
17787 | /@docdir@/p | |
17788 | /@infodir@/p | |
17789 | /@localedir@/p | |
f11781c5 | 17790 | /@mandir@/p' |
ec6a6fbe | 17791 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7a197a62 AK |
17792 | *datarootdir*) ac_datarootdir_seen=yes;; |
17793 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
6b2e4ec5 ZK |
17794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
17795 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
ad6254c5 | 17796 | _ACEOF |
ec6a6fbe | 17797 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
17798 | ac_datarootdir_hack=' |
17799 | s&@datadir@&$datadir&g | |
17800 | s&@docdir@&$docdir&g | |
17801 | s&@infodir@&$infodir&g | |
17802 | s&@localedir@&$localedir&g | |
17803 | s&@mandir@&$mandir&g | |
f11781c5 | 17804 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7a197a62 AK |
17805 | esac |
17806 | _ACEOF | |
17807 | ||
635df748 | 17808 | # Neutralize VPATH when '$srcdir' = '.'. |
7a197a62 AK |
17809 | # Shell code in configure.ac might set extrasub. |
17810 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
17811 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17812 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
17813 | $extrasub |
17814 | _ACEOF | |
ec6a6fbe | 17815 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
17816 | :t |
17817 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 17818 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 17819 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 17820 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
17821 | s&@srcdir@&$ac_srcdir&;t t |
17822 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17823 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17824 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17825 | s&@builddir@&$ac_builddir&;t t | |
17826 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17827 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17828 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 17829 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 17830 | $ac_datarootdir_hack |
ec6a6fbe | 17831 | " |
4d0c3ed0 AK |
17832 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
17833 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7a197a62 AK |
17834 | |
17835 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
4d0c3ed0 AK |
17836 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
17837 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
17838 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
635df748 | 17839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
f11781c5 | 17840 | which seems to be undefined. Please make sure it is defined" >&5 |
635df748 | 17841 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
f11781c5 | 17842 | which seems to be undefined. Please make sure it is defined" >&2;} |
7a197a62 | 17843 | |
4d0c3ed0 | 17844 | rm -f "$ac_tmp/stdin" |
72b2cb61 | 17845 | case $ac_file in |
4d0c3ed0 AK |
17846 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
17847 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
ec6a6fbe | 17848 | esac \ |
f11781c5 | 17849 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
17850 | ;; |
17851 | :H) | |
17852 | # | |
17853 | # CONFIG_HEADER | |
17854 | # | |
72b2cb61 | 17855 | if test x"$ac_file" != x-; then |
ec6a6fbe | 17856 | { |
6b2e4ec5 | 17857 | printf "%s\n" "/* $configure_input */" >&1 \ |
4d0c3ed0 AK |
17858 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
17859 | } >"$ac_tmp/config.h" \ | |
f11781c5 | 17860 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
4d0c3ed0 | 17861 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
6b2e4ec5 ZK |
17862 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
17863 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} | |
72b2cb61 | 17864 | else |
ec6a6fbe | 17865 | rm -f "$ac_file" |
4d0c3ed0 | 17866 | mv "$ac_tmp/config.h" "$ac_file" \ |
f11781c5 | 17867 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
72b2cb61 AK |
17868 | fi |
17869 | else | |
6b2e4ec5 | 17870 | printf "%s\n" "/* $configure_input */" >&1 \ |
4d0c3ed0 | 17871 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
f11781c5 | 17872 | || as_fn_error $? "could not create -" "$LINENO" 5 |
72b2cb61 | 17873 | fi |
7a197a62 AK |
17874 | ;; |
17875 | ||
17876 | ||
17877 | esac | |
17878 | ||
17879 | done # for ac_tag | |
795ca3e5 | 17880 | |
795ca3e5 | 17881 | |
f11781c5 | 17882 | as_fn_exit 0 |
ad6254c5 | 17883 | _ACEOF |
ad6254c5 AK |
17884 | ac_clean_files=$ac_clean_files_save |
17885 | ||
ec6a6fbe | 17886 | test $ac_write_fail = 0 || |
f11781c5 | 17887 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe | 17888 | |
ad6254c5 AK |
17889 | |
17890 | # configure is writing to config.log, and then calls config.status. | |
17891 | # config.status does its own redirection, appending to config.log. | |
17892 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17893 | # by configure, so config.status won't be able to write to it; its | |
17894 | # output is simply discarded. So we exec the FD to /dev/null, | |
17895 | # effectively closing config.log, so it can be properly (re)opened and | |
17896 | # appended to by config.status. When coming back to configure, we | |
17897 | # need to make the FD available again. | |
17898 | if test "$no_create" != yes; then | |
17899 | ac_cs_success=: | |
17900 | ac_config_status_args= | |
17901 | test "$silent" = yes && | |
17902 | ac_config_status_args="$ac_config_status_args --quiet" | |
17903 | exec 5>/dev/null | |
17904 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17905 | exec 5>>config.log | |
17906 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17907 | # would make configure fail if this is the last instruction. | |
f11781c5 | 17908 | $ac_cs_success || as_fn_exit 1 |
ad6254c5 | 17909 | fi |
ec6a6fbe | 17910 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
6b2e4ec5 ZK |
17911 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
17912 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
ec6a6fbe | 17913 | fi |
795ca3e5 | 17914 | |
2dc95e1c | 17915 | |
6b2e4ec5 ZK |
17916 | if test -n "$THIN_CONFIGURE_WARN" |
17917 | then : | |
17918 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&5 | |
17919 | printf "%s\n" "$as_me: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&2;} | |
cc560b75 | 17920 | fi |
aefab64e | 17921 | |
6b2e4ec5 ZK |
17922 | if test -n "$THIN_CHECK_VERSION_WARN" |
17923 | then : | |
17924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You should also install latest thin_check vsn 0.7.0 (or later) for lvm2 thin provisioning" >&5 | |
17925 | printf "%s\n" "$as_me: WARNING: You should also install latest thin_check vsn 0.7.0 (or later) for lvm2 thin provisioning" >&2;} | |
cc560b75 | 17926 | fi |
f13977e8 | 17927 | |
6b2e4ec5 ZK |
17928 | if test -n "$CACHE_CONFIGURE_WARN" |
17929 | then : | |
17930 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Support for cache is limited since some cache tools are missing!" >&5 | |
17931 | printf "%s\n" "$as_me: WARNING: Support for cache is limited since some cache tools are missing!" >&2;} | |
cc560b75 | 17932 | fi |
39cb8aa3 | 17933 | |
6b2e4ec5 ZK |
17934 | if test -n "$CACHE_CHECK_VERSION_WARN" |
17935 | then : | |
17936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You should install latest cache_check vsn 0.7.0 to use lvm2 cache metadata format 2" >&5 | |
17937 | printf "%s\n" "$as_me: WARNING: You should install latest cache_check vsn 0.7.0 to use lvm2 cache metadata format 2" >&2;} | |
358eee15 ZK |
17938 | fi |
17939 | ||
6b2e4ec5 ZK |
17940 | if test -n "$VDO_CONFIGURE_WARN" |
17941 | then : | |
17942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized 'vdoformat' tool is REQUIRED for VDO logical volume creation!" >&5 | |
17943 | printf "%s\n" "$as_me: WARNING: Unrecognized 'vdoformat' tool is REQUIRED for VDO logical volume creation!" >&2;} | |
4a90b0c4 ZK |
17944 | fi |
17945 | ||
6b2e4ec5 ZK |
17946 | if test -n "$LVM_NEEDS_LIBAIO_WARN" |
17947 | then : | |
17948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Only libdm part can be build without libaio: make [install_]device-mapper" >&5 | |
17949 | printf "%s\n" "$as_me: WARNING: Only libdm part can be build without libaio: make [install_]device-mapper" >&2;} | |
57b5bc9c | 17950 | fi |
358eee15 | 17951 | |
b681b774 | 17952 | if test "$ODIRECT" != "yes" |
6b2e4ec5 ZK |
17953 | then : |
17954 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&5 | |
17955 | printf "%s\n" "$as_me: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
cc560b75 | 17956 | fi |
6b2e4ec5 | 17957 | |
0627716f ZK |
17958 | if test "$BUILD_LVMDBUSD" = "yes" && test "$NOTIFYDBUS_SUPPORT" = "no" |
17959 | then : | |
17960 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building D-Bus support without D-Bus notifications!" >&5 | |
17961 | printf "%s\n" "$as_me: WARNING: Building D-Bus support without D-Bus notifications!" >&2;} | |
17962 | fi | |
17963 |