]>
Commit | Line | Data |
---|---|---|
795ca3e5 | 1 | #! /bin/sh |
795ca3e5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
f11781c5 AK |
3 | # Generated by GNU Autoconf 2.66. |
4 | # | |
795ca3e5 | 5 | # |
7a197a62 | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
f11781c5 AK |
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
8 | # Foundation, Inc. | |
9 | # | |
10 | # | |
795ca3e5 AK |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
f11781c5 AK |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
ad6254c5 | 16 | |
25fbec5b AK |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; 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 AK |
25 | setopt NO_GLOB_SUBST |
26 | else | |
f11781c5 AK |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
25fbec5b | 32 | esac |
7a197a62 | 33 | fi |
25fbec5b AK |
34 | |
35 | ||
ec6a6fbe AK |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 56 | else |
ec6a6fbe AK |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
f11781c5 | 60 | case $arg in #( |
ec6a6fbe AK |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 69 | fi |
ec6a6fbe AK |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
ad6254c5 AK |
81 | fi |
82 | ||
ad6254c5 | 83 | |
7a197a62 AK |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 92 | case $0 in #(( |
7a197a62 AK |
93 | *[\\/]* ) as_myself=$0 ;; |
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
95 | for as_dir in $PATH | |
96 | do | |
97 | IFS=$as_save_IFS | |
98 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
100 | done | |
7a197a62 AK |
101 | IFS=$as_save_IFS |
102 | ||
103 | ;; | |
104 | esac | |
105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
106 | # in which case we are not to be found in the path. | |
107 | if test "x$as_myself" = x; then | |
108 | as_myself=$0 | |
109 | fi | |
110 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 112 | exit 1 |
7a197a62 AK |
113 | fi |
114 | ||
f11781c5 AK |
115 | # Unset variables that we do not need and which cause bugs (e.g. in |
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
117 | # suppresses any "Segmentation fault" message there. '((' could | |
118 | # trigger a bug in pdksh 5.2.14. | |
119 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
120 | do eval test x\${$as_var+set} = xset \ | |
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 122 | done |
ad6254c5 AK |
123 | PS1='$ ' |
124 | PS2='> ' | |
125 | PS4='+ ' | |
126 | ||
127 | # NLS nuisances. | |
ec6a6fbe AK |
128 | LC_ALL=C |
129 | export LC_ALL | |
130 | LANGUAGE=C | |
131 | export LANGUAGE | |
ad6254c5 | 132 | |
f11781c5 AK |
133 | # CDPATH. |
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
135 | ||
136 | if test "x$CONFIG_SHELL" = x; then | |
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
138 | emulate sh | |
139 | NULLCMD=: | |
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
141 | # is contrary to our usage. Disable this feature. | |
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
143 | setopt NO_GLOB_SUBST | |
144 | else | |
145 | case \`(set -o) 2>/dev/null\` in #( | |
146 | *posix*) : | |
147 | set -o posix ;; #( | |
148 | *) : | |
149 | ;; | |
150 | esac | |
151 | fi | |
152 | " | |
153 | as_required="as_fn_return () { (exit \$1); } | |
154 | as_fn_success () { as_fn_return 0; } | |
155 | as_fn_failure () { as_fn_return 1; } | |
156 | as_fn_ret_success () { return 0; } | |
157 | as_fn_ret_failure () { return 1; } | |
158 | ||
159 | exitcode=0 | |
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
165 | ||
166 | else | |
167 | exitcode=1; echo positional parameters were not saved. | |
168 | fi | |
169 | test x\$exitcode = x0 || exit 1" | |
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
174 | test \$(( 1 + 1 )) = 2 || exit 1" | |
175 | if (eval "$as_required") 2>/dev/null; then : | |
176 | as_have_required=yes | |
177 | else | |
178 | as_have_required=no | |
179 | fi | |
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
181 | ||
182 | else | |
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
184 | as_found=false | |
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
186 | do | |
187 | IFS=$as_save_IFS | |
188 | test -z "$as_dir" && as_dir=. | |
189 | as_found=: | |
190 | case $as_dir in #( | |
191 | /*) | |
192 | for as_base in sh bash ksh sh5; do | |
193 | # Try only shells that exist, to save several forks. | |
194 | as_shell=$as_dir/$as_base | |
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | CONFIG_SHELL=$as_shell as_have_required=yes | |
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
199 | break 2 | |
200 | fi | |
201 | fi | |
202 | done;; | |
203 | esac | |
204 | as_found=false | |
205 | done | |
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
208 | CONFIG_SHELL=$SHELL as_have_required=yes | |
209 | fi; } | |
210 | IFS=$as_save_IFS | |
211 | ||
212 | ||
213 | if test "x$CONFIG_SHELL" != x; then : | |
214 | # We cannot yet assume a decent shell, so we have to provide a | |
215 | # neutralization value for shells without unset; and this also | |
216 | # works around shells that cannot unset nonexistent variables. | |
217 | BASH_ENV=/dev/null | |
218 | ENV=/dev/null | |
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
220 | export CONFIG_SHELL | |
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
222 | fi | |
223 | ||
224 | if test x$as_have_required = xno; then : | |
225 | $as_echo "$0: This script requires a shell more modern than all" | |
226 | $as_echo "$0: the shells that I found on your system." | |
227 | if test x${ZSH_VERSION+set} = xset ; then | |
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
230 | else | |
231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
232 | $0: including any error possibly output before this | |
233 | $0: message. Then install a modern shell, or manually run | |
234 | $0: the script under such a shell if you do have one." | |
235 | fi | |
236 | exit 1 | |
237 | fi | |
238 | fi | |
239 | fi | |
240 | SHELL=${CONFIG_SHELL-/bin/sh} | |
241 | export SHELL | |
242 | # Unset more variables known to interfere with behavior of common tools. | |
243 | CLICOLOR_FORCE= GREP_OPTIONS= | |
244 | unset CLICOLOR_FORCE GREP_OPTIONS | |
245 | ||
246 | ## --------------------- ## | |
247 | ## M4sh Shell Functions. ## | |
248 | ## --------------------- ## | |
249 | # as_fn_unset VAR | |
250 | # --------------- | |
251 | # Portably unset VAR. | |
252 | as_fn_unset () | |
253 | { | |
254 | { eval $1=; unset $1;} | |
255 | } | |
256 | as_unset=as_fn_unset | |
257 | ||
258 | # as_fn_set_status STATUS | |
259 | # ----------------------- | |
260 | # Set $? to STATUS, without forking. | |
261 | as_fn_set_status () | |
262 | { | |
263 | return $1 | |
264 | } # as_fn_set_status | |
265 | ||
266 | # as_fn_exit STATUS | |
267 | # ----------------- | |
268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
269 | as_fn_exit () | |
270 | { | |
271 | set +e | |
272 | as_fn_set_status $1 | |
273 | exit $1 | |
274 | } # as_fn_exit | |
275 | ||
276 | # as_fn_mkdir_p | |
277 | # ------------- | |
278 | # Create "$as_dir" as a directory, including parents if necessary. | |
279 | as_fn_mkdir_p () | |
280 | { | |
281 | ||
282 | case $as_dir in #( | |
283 | -*) as_dir=./$as_dir;; | |
284 | esac | |
285 | test -d "$as_dir" || eval $as_mkdir_p || { | |
286 | as_dirs= | |
287 | while :; do | |
288 | case $as_dir in #( | |
289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
290 | *) as_qdir=$as_dir;; | |
291 | esac | |
292 | as_dirs="'$as_qdir' $as_dirs" | |
293 | as_dir=`$as_dirname -- "$as_dir" || | |
294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
295 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
296 | X"$as_dir" : 'X\(//\)$' \| \ | |
297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
298 | $as_echo X"$as_dir" | | |
299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
300 | s//\1/ | |
301 | q | |
302 | } | |
303 | /^X\(\/\/\)[^/].*/{ | |
304 | s//\1/ | |
305 | q | |
306 | } | |
307 | /^X\(\/\/\)$/{ | |
308 | s//\1/ | |
309 | q | |
310 | } | |
311 | /^X\(\/\).*/{ | |
312 | s//\1/ | |
313 | q | |
314 | } | |
315 | s/.*/./; q'` | |
316 | test -d "$as_dir" && break | |
317 | done | |
318 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
319 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
320 | ||
321 | ||
322 | } # as_fn_mkdir_p | |
323 | # as_fn_append VAR VALUE | |
324 | # ---------------------- | |
325 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
326 | # advantage of any shell optimizations that allow amortized linear growth over | |
327 | # repeated appends, instead of the typical quadratic growth present in naive | |
328 | # implementations. | |
329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
330 | eval 'as_fn_append () | |
331 | { | |
332 | eval $1+=\$2 | |
333 | }' | |
334 | else | |
335 | as_fn_append () | |
336 | { | |
337 | eval $1=\$$1\$2 | |
338 | } | |
339 | fi # as_fn_append | |
340 | ||
341 | # as_fn_arith ARG... | |
342 | # ------------------ | |
343 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
345 | # must be portable across $(()) and expr. | |
346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
347 | eval 'as_fn_arith () | |
348 | { | |
349 | as_val=$(( $* )) | |
350 | }' | |
351 | else | |
352 | as_fn_arith () | |
353 | { | |
354 | as_val=`expr "$@" || test $? -eq 1` | |
355 | } | |
356 | fi # as_fn_arith | |
357 | ||
358 | ||
359 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
360 | # ---------------------------------------- | |
361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
363 | # script with STATUS, using 1 if that was 0. | |
364 | as_fn_error () | |
365 | { | |
366 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
367 | if test "$4"; then | |
368 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
370 | fi | |
371 | $as_echo "$as_me: error: $2" >&2 | |
372 | as_fn_exit $as_status | |
373 | } # as_fn_error | |
374 | ||
7a197a62 AK |
375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
377 | as_expr=expr |
378 | else | |
379 | as_expr=false | |
380 | fi | |
381 | ||
7a197a62 | 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
383 | as_basename=basename |
384 | else | |
385 | as_basename=false | |
386 | fi | |
387 | ||
f11781c5 AK |
388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
389 | as_dirname=dirname | |
390 | else | |
391 | as_dirname=false | |
392 | fi | |
ad6254c5 | 393 | |
7a197a62 | 394 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
396 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 398 | $as_echo X/"$0" | |
7a197a62 AK |
399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
400 | s//\1/ | |
401 | q | |
402 | } | |
403 | /^X\/\(\/\/\)$/{ | |
404 | s//\1/ | |
405 | q | |
406 | } | |
407 | /^X\/\(\/\).*/{ | |
408 | s//\1/ | |
409 | q | |
410 | } | |
411 | s/.*/./; q'` | |
ad6254c5 | 412 | |
f11781c5 AK |
413 | # Avoid depending upon Character Ranges. |
414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
417 | as_cr_digits='0123456789' | |
418 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
ad6254c5 | 419 | |
ad6254c5 | 420 | |
f11781c5 AK |
421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
426 | sed -n ' | |
427 | p | |
428 | /[$]LINENO/= | |
429 | ' <$as_myself | | |
430 | sed ' | |
431 | s/[$]LINENO.*/&-/ | |
432 | t lineno | |
433 | b | |
434 | :lineno | |
435 | N | |
436 | :loop | |
437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
438 | t loop | |
439 | s/-\n.*// | |
440 | ' >$as_me.lineno && | |
441 | chmod +x "$as_me.lineno" || | |
442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
ad6254c5 | 443 | |
f11781c5 AK |
444 | # Don't try to exec as it changes $[0], causing all sort of problems |
445 | # (the dirname of $[0] is not the place where we might find the | |
446 | # original and so on. Autoconf is especially sensitive to this). | |
447 | . "./$as_me.lineno" | |
448 | # Exit status is that of the last command. | |
449 | exit | |
7a197a62 | 450 | } |
ad6254c5 | 451 | |
f11781c5 AK |
452 | ECHO_C= ECHO_N= ECHO_T= |
453 | case `echo -n x` in #((((( | |
454 | -n*) | |
455 | case `echo 'xy\c'` in | |
456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
457 | xy) ECHO_C='\c';; | |
458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
459 | ECHO_T=' ';; | |
460 | esac;; | |
461 | *) | |
462 | ECHO_N='-n';; | |
463 | esac | |
ad6254c5 | 464 | |
f11781c5 AK |
465 | rm -f conf$$ conf$$.exe conf$$.file |
466 | if test -d conf$$.dir; then | |
467 | rm -f conf$$.dir/conf$$.file | |
468 | else | |
469 | rm -f conf$$.dir | |
470 | mkdir conf$$.dir 2>/dev/null | |
7a197a62 | 471 | fi |
f11781c5 AK |
472 | if (echo >conf$$.file) 2>/dev/null; then |
473 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
474 | as_ln_s='ln -s' | |
475 | # ... but there are two gotchas: | |
476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
478 | # In both cases, we have to default to `cp -p'. | |
479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
480 | as_ln_s='cp -p' | |
481 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
482 | as_ln_s=ln | |
483 | else | |
484 | as_ln_s='cp -p' | |
485 | fi | |
7a197a62 | 486 | else |
f11781c5 | 487 | as_ln_s='cp -p' |
7a197a62 | 488 | fi |
f11781c5 AK |
489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
490 | rmdir conf$$.dir 2>/dev/null | |
7a197a62 | 491 | |
f11781c5 AK |
492 | if mkdir -p . 2>/dev/null; then |
493 | as_mkdir_p='mkdir -p "$as_dir"' | |
494 | else | |
495 | test -d ./-p && rmdir ./-p | |
496 | as_mkdir_p=false | |
7a197a62 AK |
497 | fi |
498 | ||
f11781c5 AK |
499 | if test -x / >/dev/null 2>&1; then |
500 | as_test_x='test -x' | |
7a197a62 | 501 | else |
f11781c5 AK |
502 | if ls -dL / >/dev/null 2>&1; then |
503 | as_ls_L_option=L | |
504 | else | |
505 | as_ls_L_option= | |
506 | fi | |
507 | as_test_x=' | |
508 | eval sh -c '\'' | |
509 | if test -d "$1"; then | |
510 | test -d "$1/."; | |
511 | else | |
512 | case $1 in #( | |
513 | -*)set "./$1";; | |
514 | esac; | |
515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
516 | ???[sx]*):;;*)false;;esac;fi | |
517 | '\'' sh | |
518 | ' | |
7a197a62 | 519 | fi |
f11781c5 | 520 | as_executable_p=$as_test_x |
7a197a62 | 521 | |
f11781c5 AK |
522 | # Sed expression to map a string onto a valid CPP name. |
523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7a197a62 | 524 | |
f11781c5 AK |
525 | # Sed expression to map a string onto a valid variable name. |
526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7a197a62 AK |
527 | |
528 | ||
f11781c5 AK |
529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
530 | exec 6>&1 | |
ad6254c5 AK |
531 | |
532 | # Name of the host. | |
f11781c5 | 533 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
ad6254c5 AK |
534 | # so uname gets run too. |
535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
536 | ||
ad6254c5 AK |
537 | # |
538 | # Initializations. | |
539 | # | |
795ca3e5 | 540 | ac_default_prefix=/usr/local |
7a197a62 | 541 | ac_clean_files= |
ad6254c5 | 542 | ac_config_libobj_dir=. |
7a197a62 | 543 | LIBOBJS= |
ad6254c5 AK |
544 | cross_compiling=no |
545 | subdirs= | |
546 | MFLAGS= | |
547 | MAKEFLAGS= | |
ad6254c5 | 548 | |
ad6254c5 AK |
549 | # Identity of this package. |
550 | PACKAGE_NAME= | |
551 | PACKAGE_TARNAME= | |
552 | PACKAGE_VERSION= | |
553 | PACKAGE_STRING= | |
554 | PACKAGE_BUGREPORT= | |
f11781c5 | 555 | PACKAGE_URL= |
ad6254c5 AK |
556 | |
557 | ac_unique_file="lib/device/dev-cache.h" | |
558 | # Factoring default headers for most tests. | |
559 | ac_includes_default="\ | |
560 | #include <stdio.h> | |
25fbec5b | 561 | #ifdef HAVE_SYS_TYPES_H |
ad6254c5 AK |
562 | # include <sys/types.h> |
563 | #endif | |
25fbec5b | 564 | #ifdef HAVE_SYS_STAT_H |
ad6254c5 AK |
565 | # include <sys/stat.h> |
566 | #endif | |
25fbec5b | 567 | #ifdef STDC_HEADERS |
ad6254c5 AK |
568 | # include <stdlib.h> |
569 | # include <stddef.h> | |
570 | #else | |
25fbec5b | 571 | # ifdef HAVE_STDLIB_H |
ad6254c5 AK |
572 | # include <stdlib.h> |
573 | # endif | |
574 | #endif | |
25fbec5b AK |
575 | #ifdef HAVE_STRING_H |
576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
ad6254c5 AK |
577 | # include <memory.h> |
578 | # endif | |
579 | # include <string.h> | |
580 | #endif | |
25fbec5b | 581 | #ifdef HAVE_STRINGS_H |
ad6254c5 AK |
582 | # include <strings.h> |
583 | #endif | |
25fbec5b | 584 | #ifdef HAVE_INTTYPES_H |
ad6254c5 | 585 | # include <inttypes.h> |
ad6254c5 | 586 | #endif |
25fbec5b | 587 | #ifdef HAVE_STDINT_H |
7a197a62 AK |
588 | # include <stdint.h> |
589 | #endif | |
25fbec5b | 590 | #ifdef HAVE_UNISTD_H |
ad6254c5 AK |
591 | # include <unistd.h> |
592 | #endif" | |
593 | ||
f11781c5 | 594 | ac_header_list= |
795ca3e5 | 595 | ac_default_prefix=/usr |
ec6a6fbe | 596 | ac_subst_vars='LTLIBOBJS |
68f2de6d | 597 | usrsbindir |
ec6a6fbe | 598 | usrlibdir |
4417a8bd | 599 | tmpfilesdir |
fa68466e | 600 | systemdutildir |
e587cb6a | 601 | systemdsystemunitdir |
a5f46f6a AK |
602 | udevdir |
603 | udev_prefix | |
ec6a6fbe AK |
604 | tmpdir |
605 | kernelvsn | |
606 | missingkernel | |
607 | kerneldir | |
608 | interface | |
5723db01 | 609 | LVMETAD_PIDFILE |
6e5c1f75 | 610 | DMEVENTD_PIDFILE |
23b059e7 | 611 | WRITE_INSTALL |
b559a1e6 | 612 | UDEV_HAS_BUILTIN_BLKID |
5723db01 | 613 | UDEV_RULE_EXEC_DETECTION |
0878503f | 614 | UDEV_SYNC |
a5f46f6a | 615 | UDEV_RULES |
f7f0854e | 616 | UDEV_PC |
3ba4a195 | 617 | THIN |
54b362f9 | 618 | TESTING |
ec6a6fbe AK |
619 | STATIC_LINK |
620 | STATICDIR | |
621 | SNAPSHOTS | |
f7f0854e | 622 | SELINUX_PC |
e1b8a236 | 623 | SELINUX_LIBS |
cac52ca4 | 624 | REPLICATORS |
539f4a77 | 625 | READLINE_LIBS |
cac52ca4 | 626 | RAID |
f30875db | 627 | PTHREAD_LIBS |
ec6a6fbe AK |
628 | POOL |
629 | PKGCONFIG | |
606d0858 | 630 | OCFDIR |
37ddf259 | 631 | OCF |
ec6a6fbe AK |
632 | MIRRORS |
633 | LVM_RELEASE_DATE | |
634 | LVM_RELEASE | |
d2c11605 | 635 | LVM_PATH |
ec6a6fbe AK |
636 | LVM_PATCHLEVEL |
637 | LVM_MINOR | |
638 | LVM_MAJOR | |
bf456146 | 639 | LVM_LIBAPI |
ec6a6fbe | 640 | LVM_VERSION |
ec6a6fbe AK |
641 | LVM1_FALLBACK |
642 | LVM1 | |
643 | LOCALEDIR | |
644 | LIB_SUFFIX | |
645 | LDDEPS | |
646 | JOBS | |
647 | INTL_PACKAGE | |
648 | INTL | |
ec6a6fbe AK |
649 | HAVE_REALTIME |
650 | HAVE_LIBDL | |
ec6a6fbe | 651 | FSADM |
bf09a320 | 652 | ELDFLAGS |
ec6a6fbe AK |
653 | DM_LIB_PATCHLEVEL |
654 | DM_LIB_VERSION | |
655 | DM_IOCTLS | |
656 | DM_DEVICE_UID | |
657 | DM_DEVICE_MODE | |
658 | DM_DEVICE_GID | |
659 | DM_COMPAT | |
d1e8046f | 660 | DMEVENTD_PATH |
ec6a6fbe | 661 | DMEVENTD |
19a2c6e0 | 662 | DL_LIBS |
ec6a6fbe | 663 | DEVMAPPER |
b1f08e51 | 664 | DEFAULT_RUN_DIR |
5723db01 | 665 | DEFAULT_DM_RUN_DIR |
3399ae32 | 666 | DEFAULT_LOCK_DIR |
fea55602 | 667 | DEFAULT_DATA_ALIGNMENT |
3399ae32 AK |
668 | DEFAULT_CACHE_SUBDIR |
669 | DEFAULT_BACKUP_SUBDIR | |
670 | DEFAULT_ARCHIVE_SUBDIR | |
671 | DEFAULT_SYS_DIR | |
ec6a6fbe AK |
672 | DEBUG |
673 | COPTIMISE_FLAG | |
e2997b73 | 674 | CONFDIR |
ec6a6fbe | 675 | CMDLIB |
d2c11605 | 676 | CLVMD_PATH |
c89bc357 | 677 | CLVMD_CMANAGERS |
ec6a6fbe AK |
678 | CLVMD |
679 | CLUSTER | |
680 | CLDWHOLEARCHIVE | |
681 | CLDNOWHOLEARCHIVE | |
682 | CLDFLAGS | |
cdd50823 | 683 | BUILD_LVMETAD |
ec6a6fbe | 684 | BUILD_DMEVENTD |
66fd4529 | 685 | BUILD_CMIRRORD |
572fefeb | 686 | APPLIB |
ec6a6fbe AK |
687 | MODPROBE_CMD |
688 | MSGFMT | |
689 | LVM2CMD_LIB | |
572fefeb | 690 | LVM2APP_LIB |
d93275eb PR |
691 | UDEV_LIBS |
692 | UDEV_CFLAGS | |
426fc742 PR |
693 | CUNIT_LIBS |
694 | CUNIT_CFLAGS | |
fd4728e1 | 695 | GENPNG |
ec6a6fbe AK |
696 | GENHTML |
697 | LCOV | |
90c80887 AK |
698 | SACKPT_LIBS |
699 | SACKPT_CFLAGS | |
a946372e AK |
700 | DLM_LIBS |
701 | DLM_CFLAGS | |
e2997b73 AK |
702 | CPG_LIBS |
703 | CPG_CFLAGS | |
b6d7a484 AK |
704 | CMAP_LIBS |
705 | CMAP_CFLAGS | |
e2997b73 AK |
706 | CONFDB_LIBS |
707 | CONFDB_CFLAGS | |
a946372e AK |
708 | SALCK_LIBS |
709 | SALCK_CFLAGS | |
e2997b73 AK |
710 | QUORUM_LIBS |
711 | QUORUM_CFLAGS | |
a946372e AK |
712 | COROSYNC_LIBS |
713 | COROSYNC_CFLAGS | |
714 | CMAN_LIBS | |
715 | CMAN_CFLAGS | |
a946372e AK |
716 | PKGCONFIGINIT_LIBS |
717 | PKGCONFIGINIT_CFLAGS | |
f11781c5 AK |
718 | PKG_CONFIG_LIBDIR |
719 | PKG_CONFIG_PATH | |
e2997b73 | 720 | PKG_CONFIG |
f61cacad | 721 | THIN_CHECK_CMD |
ec6a6fbe AK |
722 | POW_LIB |
723 | LIBOBJS | |
724 | ALLOCA | |
725 | CSCOPE_CMD | |
726 | CFLOW_CMD | |
727 | RANLIB | |
728 | MKDIR_P | |
729 | SET_MAKE | |
730 | LN_S | |
731 | INSTALL_DATA | |
732 | INSTALL_SCRIPT | |
733 | INSTALL_PROGRAM | |
734 | EGREP | |
735 | GREP | |
736 | CPP | |
737 | OBJEXT | |
738 | EXEEXT | |
739 | ac_ct_CC | |
740 | CPPFLAGS | |
741 | LDFLAGS | |
742 | CFLAGS | |
743 | CC | |
744 | AWK | |
745 | SED | |
746 | target_os | |
747 | target_vendor | |
748 | target_cpu | |
749 | target | |
750 | host_os | |
751 | host_vendor | |
752 | host_cpu | |
753 | host | |
754 | build_os | |
755 | build_vendor | |
756 | build_cpu | |
757 | build | |
758 | target_alias | |
759 | host_alias | |
760 | build_alias | |
761 | LIBS | |
762 | ECHO_T | |
763 | ECHO_N | |
764 | ECHO_C | |
765 | DEFS | |
766 | mandir | |
767 | localedir | |
768 | libdir | |
769 | psdir | |
770 | pdfdir | |
771 | dvidir | |
772 | htmldir | |
773 | infodir | |
774 | docdir | |
775 | oldincludedir | |
776 | includedir | |
777 | localstatedir | |
778 | sharedstatedir | |
779 | sysconfdir | |
780 | datadir | |
781 | datarootdir | |
782 | libexecdir | |
783 | sbindir | |
784 | bindir | |
785 | program_transform_name | |
786 | prefix | |
787 | exec_prefix | |
f11781c5 | 788 | PACKAGE_URL |
ec6a6fbe AK |
789 | PACKAGE_BUGREPORT |
790 | PACKAGE_STRING | |
791 | PACKAGE_VERSION | |
792 | PACKAGE_TARNAME | |
793 | PACKAGE_NAME | |
794 | PATH_SEPARATOR | |
795 | SHELL' | |
ad6254c5 | 796 | ac_subst_files='' |
ec6a6fbe AK |
797 | ac_user_opts=' |
798 | enable_option_checking | |
799 | enable_static_link | |
800 | with_user | |
801 | with_group | |
802 | with_device_uid | |
803 | with_device_gid | |
804 | with_device_mode | |
d0df875d | 805 | with_device_nodes_on |
c64d7cd3 | 806 | with_default_name_mangling |
ec6a6fbe AK |
807 | enable_lvm1_fallback |
808 | with_lvm1 | |
809 | with_pool | |
810 | with_cluster | |
811 | with_snapshots | |
812 | with_mirrors | |
cac52ca4 | 813 | with_raid |
8fea97b7 | 814 | with_replicators |
3ba4a195 | 815 | with_thin |
f61cacad | 816 | with_thin_check |
ec6a6fbe AK |
817 | enable_readline |
818 | enable_realtime | |
37ddf259 | 819 | enable_ocf |
606d0858 | 820 | with_ocfdir |
5723db01 PR |
821 | with_default_pid_dir |
822 | with_default_dm_run_dir | |
823 | with_default_run_dir | |
ec6a6fbe | 824 | with_clvmd |
8c4e8a18 | 825 | with_clvmd_pidfile |
66fd4529 AK |
826 | enable_cmirrord |
827 | with_cmirrord_pidfile | |
ec6a6fbe AK |
828 | enable_debug |
829 | with_optimisation | |
830 | enable_profiling | |
54b362f9 | 831 | enable_testing |
d1e8046f | 832 | enable_valgrind_pool |
ec6a6fbe | 833 | enable_devmapper |
cdd50823 | 834 | enable_lvmetad |
5723db01 | 835 | with_lvmetad_pidfile |
a5f46f6a AK |
836 | enable_udev_sync |
837 | enable_udev_rules | |
5723db01 | 838 | enable_udev_rule_exec_detection |
ec6a6fbe | 839 | enable_compat |
95eaa683 | 840 | enable_units_compat |
ec6a6fbe AK |
841 | enable_ioctl |
842 | enable_o_direct | |
572fefeb | 843 | enable_applib |
ec6a6fbe AK |
844 | enable_cmdlib |
845 | enable_pkgconfig | |
23b059e7 | 846 | enable_write_install |
ec6a6fbe AK |
847 | enable_fsadm |
848 | enable_dmeventd | |
849 | enable_selinux | |
850 | enable_nls | |
851 | with_localedir | |
852 | with_confdir | |
853 | with_staticdir | |
854 | with_usrlibdir | |
855 | with_usrsbindir | |
a5f46f6a | 856 | with_udev_prefix |
78ce7acc | 857 | with_udevdir |
e587cb6a | 858 | with_systemdsystemunitdir |
4417a8bd | 859 | with_tmpfilesdir |
ec6a6fbe AK |
860 | with_dmeventd_pidfile |
861 | with_dmeventd_path | |
3399ae32 AK |
862 | with_default_system_dir |
863 | with_default_archive_subdir | |
864 | with_default_backup_subdir | |
865 | with_default_cache_subdir | |
866 | with_default_locking_dir | |
fea55602 | 867 | with_default_data_alignment |
ec6a6fbe AK |
868 | with_interface |
869 | ' | |
7a197a62 AK |
870 | ac_precious_vars='build_alias |
871 | host_alias | |
872 | target_alias | |
873 | CC | |
874 | CFLAGS | |
875 | LDFLAGS | |
25fbec5b | 876 | LIBS |
7a197a62 | 877 | CPPFLAGS |
e2997b73 AK |
878 | CPP |
879 | PKG_CONFIG | |
f11781c5 AK |
880 | PKG_CONFIG_PATH |
881 | PKG_CONFIG_LIBDIR | |
a946372e AK |
882 | PKGCONFIGINIT_CFLAGS |
883 | PKGCONFIGINIT_LIBS | |
a946372e AK |
884 | CMAN_CFLAGS |
885 | CMAN_LIBS | |
886 | COROSYNC_CFLAGS | |
887 | COROSYNC_LIBS | |
e2997b73 AK |
888 | QUORUM_CFLAGS |
889 | QUORUM_LIBS | |
a946372e AK |
890 | SALCK_CFLAGS |
891 | SALCK_LIBS | |
e2997b73 AK |
892 | CONFDB_CFLAGS |
893 | CONFDB_LIBS | |
b6d7a484 AK |
894 | CMAP_CFLAGS |
895 | CMAP_LIBS | |
e2997b73 | 896 | CPG_CFLAGS |
a946372e AK |
897 | CPG_LIBS |
898 | DLM_CFLAGS | |
90c80887 AK |
899 | DLM_LIBS |
900 | SACKPT_CFLAGS | |
d93275eb | 901 | SACKPT_LIBS |
426fc742 PR |
902 | CUNIT_CFLAGS |
903 | CUNIT_LIBS | |
d93275eb | 904 | UDEV_CFLAGS |
05fb5158 | 905 | UDEV_LIBS' |
7a197a62 | 906 | |
795ca3e5 AK |
907 | |
908 | # Initialize some variables set by options. | |
ad6254c5 AK |
909 | ac_init_help= |
910 | ac_init_version=false | |
ec6a6fbe AK |
911 | ac_unrecognized_opts= |
912 | ac_unrecognized_sep= | |
795ca3e5 AK |
913 | # The variables have the same names as the options, with |
914 | # dashes changed to underlines. | |
ad6254c5 | 915 | cache_file=/dev/null |
795ca3e5 | 916 | exec_prefix=NONE |
795ca3e5 | 917 | no_create= |
795ca3e5 AK |
918 | no_recursion= |
919 | prefix=NONE | |
920 | program_prefix=NONE | |
921 | program_suffix=NONE | |
922 | program_transform_name=s,x,x, | |
923 | silent= | |
924 | site= | |
925 | srcdir= | |
795ca3e5 AK |
926 | verbose= |
927 | x_includes=NONE | |
928 | x_libraries=NONE | |
ad6254c5 AK |
929 | |
930 | # Installation directory options. | |
931 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
932 | # and all the variables that are supposed to be based on exec_prefix | |
933 | # by default will actually change. | |
934 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7a197a62 | 935 | # (The list follows the same order as the GNU Coding Standards.) |
795ca3e5 AK |
936 | bindir='${exec_prefix}/bin' |
937 | sbindir='${exec_prefix}/sbin' | |
938 | libexecdir='${exec_prefix}/libexec' | |
7a197a62 AK |
939 | datarootdir='${prefix}/share' |
940 | datadir='${datarootdir}' | |
795ca3e5 AK |
941 | sysconfdir='${prefix}/etc' |
942 | sharedstatedir='${prefix}/com' | |
943 | localstatedir='${prefix}/var' | |
795ca3e5 AK |
944 | includedir='${prefix}/include' |
945 | oldincludedir='/usr/include' | |
7a197a62 AK |
946 | docdir='${datarootdir}/doc/${PACKAGE}' |
947 | infodir='${datarootdir}/info' | |
948 | htmldir='${docdir}' | |
949 | dvidir='${docdir}' | |
950 | pdfdir='${docdir}' | |
951 | psdir='${docdir}' | |
952 | libdir='${exec_prefix}/lib' | |
953 | localedir='${datarootdir}/locale' | |
954 | mandir='${datarootdir}/man' | |
795ca3e5 | 955 | |
795ca3e5 | 956 | ac_prev= |
7a197a62 | 957 | ac_dashdash= |
795ca3e5 AK |
958 | for ac_option |
959 | do | |
795ca3e5 AK |
960 | # If the previous option needs an argument, assign it. |
961 | if test -n "$ac_prev"; then | |
7a197a62 | 962 | eval $ac_prev=\$ac_option |
795ca3e5 AK |
963 | ac_prev= |
964 | continue | |
965 | fi | |
966 | ||
7a197a62 AK |
967 | case $ac_option in |
968 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
969 | *) ac_optarg=yes ;; | |
970 | esac | |
795ca3e5 AK |
971 | |
972 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
973 | ||
7a197a62 AK |
974 | case $ac_dashdash$ac_option in |
975 | --) | |
976 | ac_dashdash=yes ;; | |
795ca3e5 AK |
977 | |
978 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
979 | ac_prev=bindir ;; | |
980 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
ad6254c5 | 981 | bindir=$ac_optarg ;; |
795ca3e5 AK |
982 | |
983 | -build | --build | --buil | --bui | --bu) | |
ad6254c5 | 984 | ac_prev=build_alias ;; |
795ca3e5 | 985 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
ad6254c5 | 986 | build_alias=$ac_optarg ;; |
795ca3e5 AK |
987 | |
988 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
989 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
990 | ac_prev=cache_file ;; | |
991 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
992 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
ad6254c5 AK |
993 | cache_file=$ac_optarg ;; |
994 | ||
995 | --config-cache | -C) | |
996 | cache_file=config.cache ;; | |
795ca3e5 | 997 | |
7a197a62 | 998 | -datadir | --datadir | --datadi | --datad) |
795ca3e5 | 999 | ac_prev=datadir ;; |
7a197a62 | 1000 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
ad6254c5 | 1001 | datadir=$ac_optarg ;; |
795ca3e5 | 1002 | |
7a197a62 AK |
1003 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1004 | | --dataroo | --dataro | --datar) | |
1005 | ac_prev=datarootdir ;; | |
1006 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1007 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1008 | datarootdir=$ac_optarg ;; | |
1009 | ||
795ca3e5 | 1010 | -disable-* | --disable-*) |
ec6a6fbe | 1011 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
795ca3e5 | 1012 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1013 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1014 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1015 | ac_useropt_orig=$ac_useropt |
1016 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1017 | case $ac_user_opts in | |
1018 | *" | |
1019 | "enable_$ac_useropt" | |
1020 | "*) ;; | |
1021 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1022 | ac_unrecognized_sep=', ';; | |
1023 | esac | |
1024 | eval enable_$ac_useropt=no ;; | |
7a197a62 AK |
1025 | |
1026 | -docdir | --docdir | --docdi | --doc | --do) | |
1027 | ac_prev=docdir ;; | |
1028 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1029 | docdir=$ac_optarg ;; | |
1030 | ||
1031 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1032 | ac_prev=dvidir ;; | |
1033 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1034 | dvidir=$ac_optarg ;; | |
795ca3e5 AK |
1035 | |
1036 | -enable-* | --enable-*) | |
ec6a6fbe | 1037 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
795ca3e5 | 1038 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1039 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1040 | as_fn_error $? "invalid feature name: $ac_useropt" |
ec6a6fbe AK |
1041 | ac_useropt_orig=$ac_useropt |
1042 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1043 | case $ac_user_opts in | |
1044 | *" | |
1045 | "enable_$ac_useropt" | |
1046 | "*) ;; | |
1047 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1048 | ac_unrecognized_sep=', ';; | |
1049 | esac | |
1050 | eval enable_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1051 | |
1052 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1053 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1054 | | --exec | --exe | --ex) | |
1055 | ac_prev=exec_prefix ;; | |
1056 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1057 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1058 | | --exec=* | --exe=* | --ex=*) | |
ad6254c5 | 1059 | exec_prefix=$ac_optarg ;; |
795ca3e5 AK |
1060 | |
1061 | -gas | --gas | --ga | --g) | |
1062 | # Obsolete; use --with-gas. | |
1063 | with_gas=yes ;; | |
1064 | ||
ad6254c5 AK |
1065 | -help | --help | --hel | --he | -h) |
1066 | ac_init_help=long ;; | |
1067 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1068 | ac_init_help=recursive ;; | |
1069 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1070 | ac_init_help=short ;; | |
795ca3e5 AK |
1071 | |
1072 | -host | --host | --hos | --ho) | |
ad6254c5 | 1073 | ac_prev=host_alias ;; |
795ca3e5 | 1074 | -host=* | --host=* | --hos=* | --ho=*) |
ad6254c5 | 1075 | host_alias=$ac_optarg ;; |
795ca3e5 | 1076 | |
7a197a62 AK |
1077 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1078 | ac_prev=htmldir ;; | |
1079 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1080 | | --ht=*) | |
1081 | htmldir=$ac_optarg ;; | |
1082 | ||
795ca3e5 AK |
1083 | -includedir | --includedir | --includedi | --included | --include \ |
1084 | | --includ | --inclu | --incl | --inc) | |
1085 | ac_prev=includedir ;; | |
1086 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1087 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
ad6254c5 | 1088 | includedir=$ac_optarg ;; |
795ca3e5 AK |
1089 | |
1090 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1091 | ac_prev=infodir ;; | |
1092 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
ad6254c5 | 1093 | infodir=$ac_optarg ;; |
795ca3e5 AK |
1094 | |
1095 | -libdir | --libdir | --libdi | --libd) | |
1096 | ac_prev=libdir ;; | |
1097 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
ad6254c5 | 1098 | libdir=$ac_optarg ;; |
795ca3e5 AK |
1099 | |
1100 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1101 | | --libexe | --libex | --libe) | |
1102 | ac_prev=libexecdir ;; | |
1103 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1104 | | --libexe=* | --libex=* | --libe=*) | |
ad6254c5 | 1105 | libexecdir=$ac_optarg ;; |
795ca3e5 | 1106 | |
7a197a62 AK |
1107 | -localedir | --localedir | --localedi | --localed | --locale) |
1108 | ac_prev=localedir ;; | |
1109 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1110 | localedir=$ac_optarg ;; | |
1111 | ||
795ca3e5 | 1112 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7a197a62 | 1113 | | --localstate | --localstat | --localsta | --localst | --locals) |
795ca3e5 AK |
1114 | ac_prev=localstatedir ;; |
1115 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7a197a62 | 1116 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
ad6254c5 | 1117 | localstatedir=$ac_optarg ;; |
795ca3e5 AK |
1118 | |
1119 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1120 | ac_prev=mandir ;; | |
1121 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
ad6254c5 | 1122 | mandir=$ac_optarg ;; |
795ca3e5 AK |
1123 | |
1124 | -nfp | --nfp | --nf) | |
1125 | # Obsolete; use --without-fp. | |
1126 | with_fp=no ;; | |
1127 | ||
1128 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
ad6254c5 | 1129 | | --no-cr | --no-c | -n) |
795ca3e5 AK |
1130 | no_create=yes ;; |
1131 | ||
1132 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1133 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1134 | no_recursion=yes ;; | |
1135 | ||
1136 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1137 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1138 | | --oldin | --oldi | --old | --ol | --o) | |
1139 | ac_prev=oldincludedir ;; | |
1140 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1141 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1142 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
ad6254c5 | 1143 | oldincludedir=$ac_optarg ;; |
795ca3e5 AK |
1144 | |
1145 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1146 | ac_prev=prefix ;; | |
1147 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
ad6254c5 | 1148 | prefix=$ac_optarg ;; |
795ca3e5 AK |
1149 | |
1150 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1151 | | --program-pre | --program-pr | --program-p) | |
1152 | ac_prev=program_prefix ;; | |
1153 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1154 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
ad6254c5 | 1155 | program_prefix=$ac_optarg ;; |
795ca3e5 AK |
1156 | |
1157 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1158 | | --program-suf | --program-su | --program-s) | |
1159 | ac_prev=program_suffix ;; | |
1160 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1161 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
ad6254c5 | 1162 | program_suffix=$ac_optarg ;; |
795ca3e5 AK |
1163 | |
1164 | -program-transform-name | --program-transform-name \ | |
1165 | | --program-transform-nam | --program-transform-na \ | |
1166 | | --program-transform-n | --program-transform- \ | |
1167 | | --program-transform | --program-transfor \ | |
1168 | | --program-transfo | --program-transf \ | |
1169 | | --program-trans | --program-tran \ | |
1170 | | --progr-tra | --program-tr | --program-t) | |
1171 | ac_prev=program_transform_name ;; | |
1172 | -program-transform-name=* | --program-transform-name=* \ | |
1173 | | --program-transform-nam=* | --program-transform-na=* \ | |
1174 | | --program-transform-n=* | --program-transform-=* \ | |
1175 | | --program-transform=* | --program-transfor=* \ | |
1176 | | --program-transfo=* | --program-transf=* \ | |
1177 | | --program-trans=* | --program-tran=* \ | |
1178 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
ad6254c5 | 1179 | program_transform_name=$ac_optarg ;; |
795ca3e5 | 1180 | |
7a197a62 AK |
1181 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1182 | ac_prev=pdfdir ;; | |
1183 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1184 | pdfdir=$ac_optarg ;; | |
1185 | ||
1186 | -psdir | --psdir | --psdi | --psd | --ps) | |
1187 | ac_prev=psdir ;; | |
1188 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1189 | psdir=$ac_optarg ;; | |
1190 | ||
795ca3e5 AK |
1191 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1192 | | -silent | --silent | --silen | --sile | --sil) | |
1193 | silent=yes ;; | |
1194 | ||
1195 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1196 | ac_prev=sbindir ;; | |
1197 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1198 | | --sbi=* | --sb=*) | |
ad6254c5 | 1199 | sbindir=$ac_optarg ;; |
795ca3e5 AK |
1200 | |
1201 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1202 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1203 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1204 | | --sha | --sh) | |
1205 | ac_prev=sharedstatedir ;; | |
1206 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1207 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1208 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1209 | | --sha=* | --sh=*) | |
ad6254c5 | 1210 | sharedstatedir=$ac_optarg ;; |
795ca3e5 AK |
1211 | |
1212 | -site | --site | --sit) | |
1213 | ac_prev=site ;; | |
1214 | -site=* | --site=* | --sit=*) | |
ad6254c5 | 1215 | site=$ac_optarg ;; |
795ca3e5 AK |
1216 | |
1217 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1218 | ac_prev=srcdir ;; | |
1219 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
ad6254c5 | 1220 | srcdir=$ac_optarg ;; |
795ca3e5 AK |
1221 | |
1222 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1223 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1224 | ac_prev=sysconfdir ;; | |
1225 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1226 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
ad6254c5 | 1227 | sysconfdir=$ac_optarg ;; |
795ca3e5 AK |
1228 | |
1229 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
ad6254c5 | 1230 | ac_prev=target_alias ;; |
795ca3e5 | 1231 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
ad6254c5 | 1232 | target_alias=$ac_optarg ;; |
795ca3e5 AK |
1233 | |
1234 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1235 | verbose=yes ;; | |
1236 | ||
ad6254c5 AK |
1237 | -version | --version | --versio | --versi | --vers | -V) |
1238 | ac_init_version=: ;; | |
795ca3e5 AK |
1239 | |
1240 | -with-* | --with-*) | |
ec6a6fbe | 1241 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
795ca3e5 | 1242 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1243 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1244 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1245 | ac_useropt_orig=$ac_useropt |
1246 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1247 | case $ac_user_opts in | |
1248 | *" | |
1249 | "with_$ac_useropt" | |
1250 | "*) ;; | |
1251 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1252 | ac_unrecognized_sep=', ';; | |
1253 | esac | |
1254 | eval with_$ac_useropt=\$ac_optarg ;; | |
795ca3e5 AK |
1255 | |
1256 | -without-* | --without-*) | |
ec6a6fbe | 1257 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
795ca3e5 | 1258 | # Reject names that are not valid shell variable names. |
ec6a6fbe | 1259 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
f11781c5 | 1260 | as_fn_error $? "invalid package name: $ac_useropt" |
ec6a6fbe AK |
1261 | ac_useropt_orig=$ac_useropt |
1262 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1263 | case $ac_user_opts in | |
1264 | *" | |
1265 | "with_$ac_useropt" | |
1266 | "*) ;; | |
1267 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1268 | ac_unrecognized_sep=', ';; | |
1269 | esac | |
1270 | eval with_$ac_useropt=no ;; | |
795ca3e5 AK |
1271 | |
1272 | --x) | |
1273 | # Obsolete; use --with-x. | |
1274 | with_x=yes ;; | |
1275 | ||
1276 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1277 | | --x-incl | --x-inc | --x-in | --x-i) | |
1278 | ac_prev=x_includes ;; | |
1279 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1280 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
ad6254c5 | 1281 | x_includes=$ac_optarg ;; |
795ca3e5 AK |
1282 | |
1283 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1284 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1285 | ac_prev=x_libraries ;; | |
1286 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1287 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
ad6254c5 | 1288 | x_libraries=$ac_optarg ;; |
795ca3e5 | 1289 | |
f11781c5 AK |
1290 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1291 | Try \`$0 --help' for more information" | |
795ca3e5 AK |
1292 | ;; |
1293 | ||
ad6254c5 AK |
1294 | *=*) |
1295 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1296 | # Reject names that are not valid shell variable names. | |
f11781c5 AK |
1297 | case $ac_envvar in #( |
1298 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1299 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1300 | esac | |
7a197a62 | 1301 | eval $ac_envvar=\$ac_optarg |
ad6254c5 AK |
1302 | export $ac_envvar ;; |
1303 | ||
795ca3e5 | 1304 | *) |
ad6254c5 | 1305 | # FIXME: should be removed in autoconf 3.0. |
ec6a6fbe | 1306 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
ad6254c5 | 1307 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
ec6a6fbe | 1308 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
ad6254c5 | 1309 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
795ca3e5 AK |
1310 | ;; |
1311 | ||
1312 | esac | |
1313 | done | |
1314 | ||
1315 | if test -n "$ac_prev"; then | |
ad6254c5 | 1316 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
f11781c5 | 1317 | as_fn_error $? "missing argument to $ac_option" |
795ca3e5 | 1318 | fi |
795ca3e5 | 1319 | |
ec6a6fbe AK |
1320 | if test -n "$ac_unrecognized_opts"; then |
1321 | case $enable_option_checking in | |
1322 | no) ;; | |
f11781c5 | 1323 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
ec6a6fbe AK |
1324 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1325 | esac | |
1326 | fi | |
1327 | ||
1328 | # Check all directory arguments for consistency. | |
7a197a62 AK |
1329 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1330 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1331 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1332 | libdir localedir mandir | |
795ca3e5 | 1333 | do |
7a197a62 | 1334 | eval ac_val=\$$ac_var |
ec6a6fbe AK |
1335 | # Remove trailing slashes. |
1336 | case $ac_val in | |
1337 | */ ) | |
1338 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1339 | eval $ac_var=\$ac_val;; | |
1340 | esac | |
1341 | # Be sure to have absolute directory names. | |
ad6254c5 | 1342 | case $ac_val in |
7a197a62 AK |
1343 | [\\/$]* | ?:[\\/]* ) continue;; |
1344 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
795ca3e5 | 1345 | esac |
f11781c5 | 1346 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
795ca3e5 AK |
1347 | done |
1348 | ||
ad6254c5 AK |
1349 | # There might be people who depend on the old broken behavior: `$host' |
1350 | # used to hold the argument of --host etc. | |
1351 | # FIXME: To remove some day. | |
1352 | build=$build_alias | |
1353 | host=$host_alias | |
1354 | target=$target_alias | |
1355 | ||
1356 | # FIXME: To remove some day. | |
1357 | if test "x$host_alias" != x; then | |
1358 | if test "x$build_alias" = x; then | |
1359 | cross_compiling=maybe | |
f11781c5 AK |
1360 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1361 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
ad6254c5 AK |
1362 | elif test "x$build_alias" != "x$host_alias"; then |
1363 | cross_compiling=yes | |
1364 | fi | |
1365 | fi | |
8106cdd5 | 1366 | |
ad6254c5 AK |
1367 | ac_tool_prefix= |
1368 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1369 | ||
1370 | test "$silent" = yes && exec 6>/dev/null | |
795ca3e5 | 1371 | |
795ca3e5 | 1372 | |
7a197a62 AK |
1373 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1374 | ac_ls_di=`ls -di .` && | |
1375 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
f11781c5 | 1376 | as_fn_error $? "working directory cannot be determined" |
7a197a62 | 1377 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
f11781c5 | 1378 | as_fn_error $? "pwd does not report name of working directory" |
7a197a62 AK |
1379 | |
1380 | ||
795ca3e5 AK |
1381 | # Find the source files, if location was not specified. |
1382 | if test -z "$srcdir"; then | |
1383 | ac_srcdir_defaulted=yes | |
7a197a62 | 1384 | # Try the directory containing this script, then the parent directory. |
ec6a6fbe AK |
1385 | ac_confdir=`$as_dirname -- "$as_myself" || |
1386 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1387 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1388 | X"$as_myself" : 'X\(//\)$' \| \ | |
1389 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1390 | $as_echo X"$as_myself" | | |
7a197a62 AK |
1391 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1392 | s//\1/ | |
1393 | q | |
1394 | } | |
1395 | /^X\(\/\/\)[^/].*/{ | |
1396 | s//\1/ | |
1397 | q | |
1398 | } | |
1399 | /^X\(\/\/\)$/{ | |
1400 | s//\1/ | |
1401 | q | |
1402 | } | |
1403 | /^X\(\/\).*/{ | |
1404 | s//\1/ | |
1405 | q | |
1406 | } | |
1407 | s/.*/./; q'` | |
795ca3e5 | 1408 | srcdir=$ac_confdir |
7a197a62 | 1409 | if test ! -r "$srcdir/$ac_unique_file"; then |
795ca3e5 AK |
1410 | srcdir=.. |
1411 | fi | |
1412 | else | |
1413 | ac_srcdir_defaulted=no | |
1414 | fi | |
7a197a62 AK |
1415 | if test ! -r "$srcdir/$ac_unique_file"; then |
1416 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
f11781c5 | 1417 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
795ca3e5 | 1418 | fi |
7a197a62 AK |
1419 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1420 | ac_abs_confdir=`( | |
f11781c5 | 1421 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7a197a62 AK |
1422 | pwd)` |
1423 | # When building in place, set srcdir=. | |
1424 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1425 | srcdir=. | |
1426 | fi | |
1427 | # Remove unnecessary trailing slashes from srcdir. | |
1428 | # Double slashes in file names in object file debugging info | |
1429 | # mess up M-x gdb in Emacs. | |
1430 | case $srcdir in | |
1431 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1432 | esac | |
1433 | for ac_var in $ac_precious_vars; do | |
1434 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1435 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1436 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1437 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1438 | done | |
ad6254c5 AK |
1439 | |
1440 | # | |
1441 | # Report the --help message. | |
1442 | # | |
1443 | if test "$ac_init_help" = "long"; then | |
1444 | # Omit some internal or obsolete options to make the list less imposing. | |
1445 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1446 | cat <<_ACEOF | |
1447 | \`configure' configures this package to adapt to many kinds of systems. | |
1448 | ||
1449 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1450 | ||
1451 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1452 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1453 | ||
1454 | Defaults for the options are specified in brackets. | |
1455 | ||
1456 | Configuration: | |
1457 | -h, --help display this help and exit | |
1458 | --help=short display options specific to this package | |
1459 | --help=recursive display the short help of all the included packages | |
1460 | -V, --version display version information and exit | |
f11781c5 | 1461 | -q, --quiet, --silent do not print \`checking ...' messages |
ad6254c5 AK |
1462 | --cache-file=FILE cache test results in FILE [disabled] |
1463 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1464 | -n, --no-create do not create output files | |
1465 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1466 | ||
ad6254c5 AK |
1467 | Installation directories: |
1468 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ec6a6fbe | 1469 | [$ac_default_prefix] |
ad6254c5 | 1470 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec6a6fbe | 1471 | [PREFIX] |
ad6254c5 AK |
1472 | |
1473 | By default, \`make install' will install all the files in | |
1474 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1475 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1476 | for instance \`--prefix=\$HOME'. | |
1477 | ||
1478 | For better control, use the options below. | |
1479 | ||
1480 | Fine tuning of the installation directories: | |
ec6a6fbe AK |
1481 | --bindir=DIR user executables [EPREFIX/bin] |
1482 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1483 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1484 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1485 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1486 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1487 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1488 | --includedir=DIR C header files [PREFIX/include] | |
1489 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1490 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1491 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1492 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1493 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1494 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1495 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1496 | --htmldir=DIR html documentation [DOCDIR] | |
1497 | --dvidir=DIR dvi documentation [DOCDIR] | |
1498 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1499 | --psdir=DIR ps documentation [DOCDIR] | |
ad6254c5 AK |
1500 | _ACEOF |
1501 | ||
1502 | cat <<\_ACEOF | |
1503 | ||
1504 | System types: | |
1505 | --build=BUILD configure for building on BUILD [guessed] | |
1506 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1507 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1508 | _ACEOF | |
1509 | fi | |
1510 | ||
1511 | if test -n "$ac_init_help"; then | |
1512 | ||
1513 | cat <<\_ACEOF | |
1514 | ||
1515 | Optional Features: | |
ec6a6fbe | 1516 | --disable-option-checking ignore unrecognized --enable/--with options |
ad6254c5 AK |
1517 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1518 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
71082be4 ZK |
1519 | --enable-static_link use this to link the tools to their libraries |
1520 | statically (default is dynamic linking | |
1521 | --enable-lvm1_fallback use this to fall back and use LVM1 binaries if | |
ad6254c5 | 1522 | device-mapper is missing from the kernel |
71082be4 ZK |
1523 | --disable-readline disable readline support |
1524 | --enable-realtime enable realtime clock support | |
37ddf259 AK |
1525 | --enable-ocf enable Open Cluster Framework (OCF) compliant |
1526 | resource agents | |
71082be4 ZK |
1527 | --enable-cmirrord enable the cluster mirror log daemon |
1528 | --enable-debug enable debugging | |
1529 | --enable-profiling gather gcov profiling data | |
54b362f9 | 1530 | --enable-testing enable testing targets in the makefile |
d1e8046f | 1531 | --enable-valgrind-pool enable valgrind awareness of pools |
71082be4 | 1532 | --disable-devmapper disable LVM2 device-mapper interaction |
d38de32b | 1533 | --enable-lvmetad enable the LVM Metadata Daemon |
71082be4 ZK |
1534 | --enable-udev_sync enable synchronisation with udev processing |
1535 | --enable-udev_rules install rule files needed for udev synchronisation | |
5723db01 PR |
1536 | --enable-udev-rule-exec-detection |
1537 | enable executable path detection in udev rules | |
71082be4 ZK |
1538 | --enable-compat enable support for old device-mapper versions |
1539 | --enable-units-compat enable output compatibility with old versions that | |
1540 | that do not use KiB-style unit suffixes | |
1541 | --disable-driver disable calls to device-mapper in the kernel | |
1542 | --disable-o_direct disable O_DIRECT | |
1543 | --enable-applib build application library | |
1544 | --enable-cmdlib build shared command library | |
1545 | --enable-pkgconfig install pkgconfig support | |
1546 | --enable-write_install install user writable files | |
1547 | --disable-fsadm disable fsadm | |
1548 | --enable-dmeventd enable the device-mapper event daemon | |
1549 | --disable-selinux disable selinux support | |
1550 | --enable-nls enable Native Language Support | |
ad6254c5 AK |
1551 | |
1552 | Optional Packages: | |
1553 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1554 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
f11781c5 AK |
1555 | --with-user=USER set the owner of installed files [[USER=]] |
1556 | --with-group=GROUP set the group owner of installed files [[GROUP=]] | |
1557 | --with-device-uid=UID set the owner used for new device nodes [[UID=0]] | |
1558 | --with-device-gid=GID set the group used for new device nodes [[GID=0]] | |
1559 | --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]] | |
d0df875d ZK |
1560 | --with-device-nodes-on=ON |
1561 | create nodes on resume or create [[ON=resume]] | |
c64d7cd3 PR |
1562 | --with-default-name-mangling=MANGLING |
1563 | default name mangling: auto/none/hex | |
1564 | [[MANGLING=auto]] | |
ad6254c5 | 1565 | --with-lvm1=TYPE LVM1 metadata support: internal/shared/none |
f11781c5 | 1566 | [[TYPE=internal]] |
ad6254c5 | 1567 | --with-pool=TYPE GFS pool read-only support: internal/shared/none |
f11781c5 | 1568 | [[TYPE=internal]] |
71082be4 | 1569 | --with-cluster=TYPE cluster LVM locking support: internal/shared/none |
f11781c5 | 1570 | [[TYPE=internal]] |
71082be4 | 1571 | --with-snapshots=TYPE snapshot support: internal/shared/none |
f11781c5 | 1572 | [[TYPE=internal]] |
71082be4 | 1573 | --with-mirrors=TYPE mirror support: internal/shared/none |
f11781c5 | 1574 | [[TYPE=internal]] |
cac52ca4 JEB |
1575 | --with-raid=TYPE mirror support: internal/shared/none |
1576 | [[TYPE=internal]] | |
71082be4 | 1577 | --with-replicators=TYPE replicator support: internal/shared/none |
f11781c5 | 1578 | [[TYPE=none]] |
3ba4a195 ZK |
1579 | --with-thin=TYPE thin provisioning support: internal/shared/none |
1580 | [[TYPE=none]] | |
f61cacad | 1581 | --with-thin-check=PATH thin_check tool: [[autodetect]] |
606d0858 AK |
1582 | --with-ocfdir=DIR install OCF files in DIR |
1583 | [[PREFIX/lib/ocf/resource.d/lvm2]] | |
5723db01 PR |
1584 | --with-default-pid-dir=PID_DIR |
1585 | Default directory to keep PID files in. [[/var/run]] | |
1586 | --with-default-dm-run-dir=DM_RUN_DIR | |
1587 | Default DM run directory. [[/var/run]] | |
1588 | --with-default-run-dir=RUN_DIR | |
1589 | Default LVM run directory. [[/var/run/lvm]] | |
71082be4 | 1590 | --with-clvmd=TYPE build cluster LVM Daemon |
8c222979 | 1591 | The following cluster manager combinations are valid: |
a946372e AK |
1592 | * cman (RHEL5 or equivalent) |
1593 | * cman,corosync,openais (or selection of them) | |
1091650a | 1594 | * singlenode (localhost only) |
a946372e AK |
1595 | * all (autodetect) |
1596 | * none (disable build) | |
71082be4 | 1597 | [TYPE=none] |
8c4e8a18 | 1598 | --with-clvmd-pidfile=PATH |
5723db01 | 1599 | clvmd pidfile [[PID_DIR/clvmd.pid]] |
71082be4 | 1600 | --with-cmirrord-pidfile=PATH |
5723db01 | 1601 | cmirrord pidfile [[PID_DIR/cmirrord.pid]] |
f11781c5 | 1602 | --with-optimisation=OPT C optimisation flag [[OPT=-O2]] |
5723db01 PR |
1603 | --with-lvmetad-pidfile=PATH |
1604 | lvmetad pidfile [[PID_DIR/lvmetad.pid]] | |
f11781c5 AK |
1605 | --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]] |
1606 | --with-confdir=DIR configuration files in DIR [[/etc]] | |
1607 | --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]] | |
1608 | --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]] | |
1609 | --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]] | |
71082be4 | 1610 | --with-udev-prefix=UPREFIX |
f11781c5 AK |
1611 | install udev rule files in UPREFIX [[EPREFIX]] |
1612 | --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]] | |
e587cb6a PR |
1613 | --with-systemdsystemunitdir=DIR |
1614 | systemd service files in DIR | |
4417a8bd PR |
1615 | --with-tmpfilesdir=DIR install configuration files for management of |
1616 | volatile files and directories in DIR | |
3f5cdf20 | 1617 | [[PREFIX/lib/tmpfiles.d]] |
71082be4 | 1618 | --with-dmeventd-pidfile=PATH |
5723db01 | 1619 | dmeventd pidfile [[PID_DIR/dmeventd.pid]] |
71082be4 | 1620 | --with-dmeventd-path=PATH |
f11781c5 | 1621 | dmeventd path [[EPREFIX/sbin/dmeventd]] |
71082be4 | 1622 | --with-default-system-dir=DIR |
f11781c5 | 1623 | default LVM system directory [[/etc/lvm]] |
71082be4 | 1624 | --with-default-archive-subdir=SUBDIR |
f11781c5 | 1625 | default metadata archive subdir [[archive]] |
71082be4 | 1626 | --with-default-backup-subdir=SUBDIR |
f11781c5 | 1627 | default metadata backup subdir [[backup]] |
71082be4 | 1628 | --with-default-cache-subdir=SUBDIR |
f11781c5 | 1629 | default metadata cache subdir [[cache]] |
71082be4 | 1630 | --with-default-locking-dir=DIR |
f11781c5 | 1631 | default locking directory [[/var/lock/lvm]] |
fea55602 | 1632 | --with-default-data-alignment=NUM |
f11781c5 AK |
1633 | set the default data alignment in MiB [[1]] |
1634 | --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]] | |
ad6254c5 AK |
1635 | |
1636 | Some influential environment variables: | |
1637 | CC C compiler command | |
1638 | CFLAGS C compiler flags | |
1639 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1640 | nonstandard directory <lib dir> | |
25fbec5b | 1641 | LIBS libraries to pass to the linker, e.g. -l<library> |
f11781c5 | 1642 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7a197a62 | 1643 | you have headers in a nonstandard directory <include dir> |
ad6254c5 | 1644 | CPP C preprocessor |
e2997b73 | 1645 | PKG_CONFIG path to pkg-config utility |
f11781c5 AK |
1646 | PKG_CONFIG_PATH |
1647 | directories to add to pkg-config's search path | |
1648 | PKG_CONFIG_LIBDIR | |
1649 | path overriding pkg-config's built-in search path | |
a946372e AK |
1650 | PKGCONFIGINIT_CFLAGS |
1651 | C compiler flags for PKGCONFIGINIT, overriding pkg-config | |
1652 | PKGCONFIGINIT_LIBS | |
1653 | linker flags for PKGCONFIGINIT, overriding pkg-config | |
a946372e AK |
1654 | CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config |
1655 | CMAN_LIBS linker flags for CMAN, overriding pkg-config | |
1656 | COROSYNC_CFLAGS | |
1657 | C compiler flags for COROSYNC, overriding pkg-config | |
1658 | COROSYNC_LIBS | |
1659 | linker flags for COROSYNC, overriding pkg-config | |
e2997b73 AK |
1660 | QUORUM_CFLAGS |
1661 | C compiler flags for QUORUM, overriding pkg-config | |
1662 | QUORUM_LIBS linker flags for QUORUM, overriding pkg-config | |
a946372e AK |
1663 | SALCK_CFLAGS |
1664 | C compiler flags for SALCK, overriding pkg-config | |
1665 | SALCK_LIBS linker flags for SALCK, overriding pkg-config | |
e2997b73 AK |
1666 | CONFDB_CFLAGS |
1667 | C compiler flags for CONFDB, overriding pkg-config | |
1668 | CONFDB_LIBS linker flags for CONFDB, overriding pkg-config | |
b6d7a484 AK |
1669 | CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config |
1670 | CMAP_LIBS linker flags for CMAP, overriding pkg-config | |
e2997b73 AK |
1671 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config |
1672 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
a946372e AK |
1673 | DLM_CFLAGS C compiler flags for DLM, overriding pkg-config |
1674 | DLM_LIBS linker flags for DLM, overriding pkg-config | |
90c80887 AK |
1675 | SACKPT_CFLAGS |
1676 | C compiler flags for SACKPT, overriding pkg-config | |
1677 | SACKPT_LIBS linker flags for SACKPT, overriding pkg-config | |
426fc742 PR |
1678 | CUNIT_CFLAGS |
1679 | C compiler flags for CUNIT, overriding pkg-config | |
1680 | CUNIT_LIBS linker flags for CUNIT, overriding pkg-config | |
d93275eb PR |
1681 | UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config |
1682 | UDEV_LIBS linker flags for UDEV, overriding pkg-config | |
ad6254c5 AK |
1683 | |
1684 | Use these variables to override the choices made by `configure' or to help | |
1685 | it to find libraries and programs with nonstandard names/locations. | |
1686 | ||
f11781c5 | 1687 | Report bugs to the package provider. |
ad6254c5 | 1688 | _ACEOF |
7a197a62 | 1689 | ac_status=$? |
ad6254c5 AK |
1690 | fi |
1691 | ||
1692 | if test "$ac_init_help" = "recursive"; then | |
1693 | # If there are subdirs, report their specific --help. | |
ad6254c5 | 1694 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ec6a6fbe AK |
1695 | test -d "$ac_dir" || |
1696 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1697 | continue | |
ad6254c5 AK |
1698 | ac_builddir=. |
1699 | ||
7a197a62 AK |
1700 | case "$ac_dir" in |
1701 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1702 | *) | |
ec6a6fbe | 1703 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 1704 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 1705 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
1706 | case $ac_top_builddir_sub in |
1707 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1708 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1709 | esac ;; | |
1710 | esac | |
1711 | ac_abs_top_builddir=$ac_pwd | |
1712 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1713 | # for backward compatibility: | |
1714 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
1715 | |
1716 | case $srcdir in | |
7a197a62 | 1717 | .) # We are building in place. |
ad6254c5 | 1718 | ac_srcdir=. |
7a197a62 AK |
1719 | ac_top_srcdir=$ac_top_builddir_sub |
1720 | ac_abs_top_srcdir=$ac_pwd ;; | |
1721 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 1722 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
1723 | ac_top_srcdir=$srcdir |
1724 | ac_abs_top_srcdir=$srcdir ;; | |
1725 | *) # Relative name. | |
1726 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1727 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1728 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8a2fc586 | 1729 | esac |
7a197a62 AK |
1730 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1731 | ||
1732 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1733 | # Check for guested configure. | |
1734 | if test -f "$ac_srcdir/configure.gnu"; then | |
1735 | echo && | |
1736 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1737 | elif test -f "$ac_srcdir/configure"; then | |
1738 | echo && | |
1739 | $SHELL "$ac_srcdir/configure" --help=recursive | |
ad6254c5 | 1740 | else |
ec6a6fbe | 1741 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7a197a62 AK |
1742 | fi || ac_status=$? |
1743 | cd "$ac_pwd" || { ac_status=$?; break; } | |
ad6254c5 AK |
1744 | done |
1745 | fi | |
1746 | ||
7a197a62 | 1747 | test -n "$ac_init_help" && exit $ac_status |
ad6254c5 AK |
1748 | if $ac_init_version; then |
1749 | cat <<\_ACEOF | |
7a197a62 | 1750 | configure |
f11781c5 | 1751 | generated by GNU Autoconf 2.66 |
ad6254c5 | 1752 | |
f11781c5 | 1753 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
1754 | This configure script is free software; the Free Software Foundation |
1755 | gives unlimited permission to copy, distribute and modify it. | |
1756 | _ACEOF | |
7a197a62 | 1757 | exit |
ad6254c5 | 1758 | fi |
ad6254c5 | 1759 | |
f11781c5 AK |
1760 | ## ------------------------ ## |
1761 | ## Autoconf initialization. ## | |
1762 | ## ------------------------ ## | |
ad6254c5 | 1763 | |
f11781c5 AK |
1764 | # ac_fn_c_try_compile LINENO |
1765 | # -------------------------- | |
1766 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1767 | ac_fn_c_try_compile () | |
ad6254c5 | 1768 | { |
f11781c5 AK |
1769 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1770 | rm -f conftest.$ac_objext | |
1771 | if { { ac_try="$ac_compile" | |
1772 | case "(($ac_try" in | |
1773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1774 | *) ac_try_echo=$ac_try;; | |
1775 | esac | |
1776 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1777 | $as_echo "$ac_try_echo"; } >&5 | |
1778 | (eval "$ac_compile") 2>conftest.err | |
1779 | ac_status=$? | |
1780 | if test -s conftest.err; then | |
1781 | grep -v '^ *+' conftest.err >conftest.er1 | |
1782 | cat conftest.er1 >&5 | |
1783 | mv -f conftest.er1 conftest.err | |
1784 | fi | |
1785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1786 | test $ac_status = 0; } && { | |
1787 | test -z "$ac_c_werror_flag" || | |
1788 | test ! -s conftest.err | |
1789 | } && test -s conftest.$ac_objext; then : | |
1790 | ac_retval=0 | |
1791 | else | |
1792 | $as_echo "$as_me: failed program was:" >&5 | |
1793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1794 | |
f11781c5 AK |
1795 | ac_retval=1 |
1796 | fi | |
1797 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1798 | as_fn_set_status $ac_retval | |
ad6254c5 | 1799 | |
f11781c5 | 1800 | } # ac_fn_c_try_compile |
ad6254c5 | 1801 | |
f11781c5 AK |
1802 | # ac_fn_c_try_cpp LINENO |
1803 | # ---------------------- | |
1804 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1805 | ac_fn_c_try_cpp () | |
1806 | { | |
1807 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1808 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1809 | case "(($ac_try" in | |
1810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1811 | *) ac_try_echo=$ac_try;; | |
1812 | esac | |
1813 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1814 | $as_echo "$ac_try_echo"; } >&5 | |
1815 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1816 | ac_status=$? | |
1817 | if test -s conftest.err; then | |
1818 | grep -v '^ *+' conftest.err >conftest.er1 | |
1819 | cat conftest.er1 >&5 | |
1820 | mv -f conftest.er1 conftest.err | |
1821 | fi | |
1822 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1823 | test $ac_status = 0; } >/dev/null && { | |
1824 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1825 | test ! -s conftest.err | |
1826 | }; then : | |
1827 | ac_retval=0 | |
1828 | else | |
1829 | $as_echo "$as_me: failed program was:" >&5 | |
1830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ad6254c5 | 1831 | |
f11781c5 AK |
1832 | ac_retval=1 |
1833 | fi | |
1834 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1835 | as_fn_set_status $ac_retval | |
ad6254c5 | 1836 | |
f11781c5 | 1837 | } # ac_fn_c_try_cpp |
d911ec67 | 1838 | |
f11781c5 AK |
1839 | # ac_fn_c_try_link LINENO |
1840 | # ----------------------- | |
1841 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1842 | ac_fn_c_try_link () | |
d911ec67 | 1843 | { |
f11781c5 AK |
1844 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1845 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1846 | if { { ac_try="$ac_link" | |
d911ec67 AK |
1847 | case "(($ac_try" in |
1848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1849 | *) ac_try_echo=$ac_try;; | |
1850 | esac | |
f11781c5 AK |
1851 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1852 | $as_echo "$ac_try_echo"; } >&5 | |
1853 | (eval "$ac_link") 2>conftest.err | |
d911ec67 | 1854 | ac_status=$? |
f11781c5 AK |
1855 | if test -s conftest.err; then |
1856 | grep -v '^ *+' conftest.err >conftest.er1 | |
1857 | cat conftest.er1 >&5 | |
1858 | mv -f conftest.er1 conftest.err | |
1859 | fi | |
1860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1861 | test $ac_status = 0; } && { | |
1862 | test -z "$ac_c_werror_flag" || | |
1863 | test ! -s conftest.err | |
1864 | } && test -s conftest$ac_exeext && { | |
1865 | test "$cross_compiling" = yes || | |
1866 | $as_test_x conftest$ac_exeext | |
1867 | }; then : | |
1868 | ac_retval=0 | |
d911ec67 | 1869 | else |
f11781c5 | 1870 | $as_echo "$as_me: failed program was:" >&5 |
d911ec67 AK |
1871 | sed 's/^/| /' conftest.$ac_ext >&5 |
1872 | ||
f11781c5 | 1873 | ac_retval=1 |
d911ec67 | 1874 | fi |
f11781c5 AK |
1875 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1876 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1877 | # interfere with the next link command; also delete a directory that is | |
1878 | # left behind by Apple's compiler. We do this before executing the actions. | |
1879 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1880 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1881 | as_fn_set_status $ac_retval | |
d911ec67 | 1882 | |
f11781c5 | 1883 | } # ac_fn_c_try_link |
d911ec67 | 1884 | |
f11781c5 AK |
1885 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1886 | # ------------------------------------------------------- | |
1887 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1888 | # the include files in INCLUDES and setting the cache variable VAR | |
1889 | # accordingly. | |
1890 | ac_fn_c_check_header_mongrel () | |
1891 | { | |
1892 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1893 | if eval "test \"\${$3+set}\"" = set; then : | |
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1895 | $as_echo_n "checking for $2... " >&6; } | |
1896 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1897 | $as_echo_n "(cached) " >&6 |
1898 | fi | |
f11781c5 AK |
1899 | eval ac_res=\$$3 |
1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 AK |
1901 | $as_echo "$ac_res" >&6; } |
1902 | else | |
1903 | # Is the header compilable? | |
f11781c5 AK |
1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1905 | $as_echo_n "checking $2 usability... " >&6; } | |
1906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1907 | /* end confdefs.h. */ |
f11781c5 AK |
1908 | $4 |
1909 | #include <$2> | |
d911ec67 | 1910 | _ACEOF |
f11781c5 | 1911 | if ac_fn_c_try_compile "$LINENO"; then : |
d911ec67 AK |
1912 | ac_header_compiler=yes |
1913 | else | |
f11781c5 | 1914 | ac_header_compiler=no |
d911ec67 | 1915 | fi |
d911ec67 | 1916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f11781c5 | 1917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
d911ec67 AK |
1918 | $as_echo "$ac_header_compiler" >&6; } |
1919 | ||
1920 | # Is the header present? | |
f11781c5 AK |
1921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1922 | $as_echo_n "checking $2 presence... " >&6; } | |
1923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d911ec67 | 1924 | /* end confdefs.h. */ |
f11781c5 | 1925 | #include <$2> |
d911ec67 | 1926 | _ACEOF |
f11781c5 | 1927 | if ac_fn_c_try_cpp "$LINENO"; then : |
d911ec67 AK |
1928 | ac_header_preproc=yes |
1929 | else | |
d911ec67 AK |
1930 | ac_header_preproc=no |
1931 | fi | |
d911ec67 | 1932 | rm -f conftest.err conftest.$ac_ext |
f11781c5 | 1933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
d911ec67 AK |
1934 | $as_echo "$ac_header_preproc" >&6; } |
1935 | ||
1936 | # So? What about this header? | |
f11781c5 | 1937 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
d911ec67 | 1938 | yes:no: ) |
f11781c5 AK |
1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1940 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1942 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1943 | ;; |
1944 | no:yes:* ) | |
f11781c5 AK |
1945 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1946 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1947 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1948 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1950 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1951 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1952 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1954 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
d911ec67 AK |
1955 | ;; |
1956 | esac | |
f11781c5 AK |
1957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1958 | $as_echo_n "checking for $2... " >&6; } | |
1959 | if eval "test \"\${$3+set}\"" = set; then : | |
d911ec67 AK |
1960 | $as_echo_n "(cached) " >&6 |
1961 | else | |
f11781c5 | 1962 | eval "$3=\$ac_header_compiler" |
d911ec67 | 1963 | fi |
f11781c5 AK |
1964 | eval ac_res=\$$3 |
1965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
d911ec67 | 1966 | $as_echo "$ac_res" >&6; } |
ad6254c5 | 1967 | fi |
f11781c5 | 1968 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 1969 | |
f11781c5 | 1970 | } # ac_fn_c_check_header_mongrel |
ad6254c5 | 1971 | |
f11781c5 AK |
1972 | # ac_fn_c_try_run LINENO |
1973 | # ---------------------- | |
1974 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1975 | # that executables *can* be run. | |
1976 | ac_fn_c_try_run () | |
ad6254c5 | 1977 | { |
f11781c5 AK |
1978 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1979 | if { { ac_try="$ac_link" | |
7a197a62 AK |
1980 | case "(($ac_try" in |
1981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1982 | *) ac_try_echo=$ac_try;; | |
1983 | esac | |
f11781c5 AK |
1984 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1985 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1986 | (eval "$ac_link") 2>&5 |
ad6254c5 | 1987 | ac_status=$? |
f11781c5 AK |
1988 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1989 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1990 | { { case "(($ac_try" in | |
7a197a62 AK |
1991 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1992 | *) ac_try_echo=$ac_try;; | |
1993 | esac | |
f11781c5 AK |
1994 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1995 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 1996 | (eval "$ac_try") 2>&5 |
ad6254c5 | 1997 | ac_status=$? |
f11781c5 AK |
1998 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1999 | test $ac_status = 0; }; }; then : | |
2000 | ac_retval=0 | |
ad6254c5 | 2001 | else |
ec6a6fbe | 2002 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
f11781c5 | 2003 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
2004 | sed 's/^/| /' conftest.$ac_ext >&5 |
2005 | ||
f11781c5 | 2006 | ac_retval=$ac_status |
ad6254c5 | 2007 | fi |
f11781c5 AK |
2008 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
2009 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2010 | as_fn_set_status $ac_retval | |
ad6254c5 | 2011 | |
f11781c5 | 2012 | } # ac_fn_c_try_run |
ad6254c5 | 2013 | |
f11781c5 AK |
2014 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
2015 | # ------------------------------------------------------- | |
2016 | # Tests whether HEADER exists and can be compiled using the include files in | |
2017 | # INCLUDES, setting the cache variable VAR accordingly. | |
2018 | ac_fn_c_check_header_compile () | |
2019 | { | |
2020 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2022 | $as_echo_n "checking for $2... " >&6; } | |
2023 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2024 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2025 | else |
f11781c5 | 2026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 2027 | /* end confdefs.h. */ |
f11781c5 AK |
2028 | $4 |
2029 | #include <$2> | |
ad6254c5 | 2030 | _ACEOF |
f11781c5 AK |
2031 | if ac_fn_c_try_compile "$LINENO"; then : |
2032 | eval "$3=yes" | |
ad6254c5 | 2033 | else |
f11781c5 | 2034 | eval "$3=no" |
ad6254c5 | 2035 | fi |
7a197a62 | 2036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2037 | fi |
f11781c5 AK |
2038 | eval ac_res=\$$3 |
2039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2040 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2041 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2042 | |
f11781c5 | 2043 | } # ac_fn_c_check_header_compile |
ad6254c5 | 2044 | |
f11781c5 AK |
2045 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2046 | # ---------------------------------------------------- | |
2047 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2048 | # INCLUDES, setting cache variable VAR accordingly. | |
2049 | ac_fn_c_check_member () | |
2050 | { | |
2051 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2053 | $as_echo_n "checking for $2.$3... " >&6; } | |
2054 | if eval "test \"\${$4+set}\"" = set; then : | |
ec6a6fbe | 2055 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 2056 | else |
f11781c5 AK |
2057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2058 | /* end confdefs.h. */ | |
2059 | $5 | |
2060 | int | |
2061 | main () | |
2062 | { | |
2063 | static $2 ac_aggr; | |
2064 | if (ac_aggr.$3) | |
2065 | return 0; | |
2066 | ; | |
2067 | return 0; | |
2068 | } | |
ad6254c5 | 2069 | _ACEOF |
f11781c5 AK |
2070 | if ac_fn_c_try_compile "$LINENO"; then : |
2071 | eval "$4=yes" | |
2072 | else | |
2073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2074 | /* end confdefs.h. */ |
f11781c5 AK |
2075 | $5 |
2076 | int | |
2077 | main () | |
2078 | { | |
2079 | static $2 ac_aggr; | |
2080 | if (sizeof ac_aggr.$3) | |
2081 | return 0; | |
2082 | ; | |
2083 | return 0; | |
2084 | } | |
2085 | _ACEOF | |
2086 | if ac_fn_c_try_compile "$LINENO"; then : | |
2087 | eval "$4=yes" | |
2088 | else | |
2089 | eval "$4=no" | |
2090 | fi | |
2091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2092 | fi | |
2093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2094 | fi | |
2095 | eval ac_res=\$$4 | |
2096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2097 | $as_echo "$ac_res" >&6; } | |
2098 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2099 | ||
2100 | } # ac_fn_c_check_member | |
795ca3e5 | 2101 | |
f11781c5 AK |
2102 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2103 | # ------------------------------------------- | |
2104 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2105 | # variable VAR accordingly. | |
2106 | ac_fn_c_check_type () | |
2107 | { | |
2108 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2110 | $as_echo_n "checking for $2... " >&6; } | |
2111 | if eval "test \"\${$3+set}\"" = set; then : | |
2112 | $as_echo_n "(cached) " >&6 | |
2113 | else | |
2114 | eval "$3=no" | |
2115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2116 | /* end confdefs.h. */ | |
2117 | $4 | |
ad6254c5 AK |
2118 | int |
2119 | main () | |
2120 | { | |
f11781c5 AK |
2121 | if (sizeof ($2)) |
2122 | return 0; | |
ad6254c5 AK |
2123 | ; |
2124 | return 0; | |
2125 | } | |
2126 | _ACEOF | |
f11781c5 AK |
2127 | if ac_fn_c_try_compile "$LINENO"; then : |
2128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2129 | /* end confdefs.h. */ | |
2130 | $4 | |
2131 | int | |
2132 | main () | |
2133 | { | |
2134 | if (sizeof (($2))) | |
2135 | return 0; | |
2136 | ; | |
2137 | return 0; | |
2138 | } | |
2139 | _ACEOF | |
2140 | if ac_fn_c_try_compile "$LINENO"; then : | |
ad6254c5 | 2141 | |
f11781c5 AK |
2142 | else |
2143 | eval "$3=yes" | |
795ca3e5 | 2144 | fi |
f11781c5 AK |
2145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2146 | fi | |
2147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ad6254c5 | 2148 | fi |
f11781c5 AK |
2149 | eval ac_res=\$$3 |
2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
ec6a6fbe | 2151 | $as_echo "$ac_res" >&6; } |
f11781c5 | 2152 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
ad6254c5 | 2153 | |
f11781c5 | 2154 | } # ac_fn_c_check_type |
ad6254c5 | 2155 | |
f11781c5 AK |
2156 | # ac_fn_c_find_intX_t LINENO BITS VAR |
2157 | # ----------------------------------- | |
2158 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
2159 | # accordingly. | |
2160 | ac_fn_c_find_intX_t () | |
2161 | { | |
2162 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
2164 | $as_echo_n "checking for int$2_t... " >&6; } | |
2165 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2166 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2167 | else |
f11781c5 AK |
2168 | eval "$3=no" |
2169 | # Order is important - never check a type that is potentially smaller | |
2170 | # than half of the expected target width. | |
2171 | for ac_type in int$2_t 'int' 'long int' \ | |
2172 | 'long long int' 'short int' 'signed char'; do | |
2173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7a197a62 AK |
2174 | /* end confdefs.h. */ |
2175 | $ac_includes_default | |
f11781c5 | 2176 | enum { N = $2 / 2 - 1 }; |
7a197a62 AK |
2177 | int |
2178 | main () | |
2179 | { | |
f11781c5 AK |
2180 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
2181 | test_array [0] = 0 | |
7a197a62 | 2182 | |
f11781c5 AK |
2183 | ; |
2184 | return 0; | |
2185 | } | |
2186 | _ACEOF | |
2187 | if ac_fn_c_try_compile "$LINENO"; then : | |
2188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2189 | /* end confdefs.h. */ | |
2190 | $ac_includes_default | |
2191 | enum { N = $2 / 2 - 1 }; | |
2192 | int | |
2193 | main () | |
2194 | { | |
2195 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
2196 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
2197 | test_array [0] = 0 | |
7a197a62 AK |
2198 | |
2199 | ; | |
2200 | return 0; | |
2201 | } | |
ad6254c5 | 2202 | _ACEOF |
f11781c5 | 2203 | if ac_fn_c_try_compile "$LINENO"; then : |
ad6254c5 | 2204 | |
f11781c5 AK |
2205 | else |
2206 | case $ac_type in #( | |
2207 | int$2_t) : | |
2208 | eval "$3=yes" ;; #( | |
2209 | *) : | |
2210 | eval "$3=\$ac_type" ;; | |
2211 | esac | |
ad6254c5 | 2212 | fi |
f11781c5 | 2213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ad6254c5 | 2214 | fi |
f11781c5 AK |
2215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2216 | if eval test \"x\$"$3"\" = x"no"; then : | |
ad6254c5 AK |
2217 | |
2218 | else | |
f11781c5 | 2219 | break |
ad6254c5 | 2220 | fi |
f11781c5 | 2221 | done |
ad6254c5 | 2222 | fi |
f11781c5 AK |
2223 | eval ac_res=\$$3 |
2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2225 | $as_echo "$ac_res" >&6; } | |
2226 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
2227 | ||
2228 | } # ac_fn_c_find_intX_t | |
2229 | ||
2230 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2231 | # ------------------------------------ | |
2232 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2233 | # accordingly. | |
2234 | ac_fn_c_find_uintX_t () | |
2235 | { | |
2236 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
2238 | $as_echo_n "checking for uint$2_t... " >&6; } | |
2239 | if eval "test \"\${$3+set}\"" = set; then : | |
ec6a6fbe | 2240 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2241 | else |
f11781c5 AK |
2242 | eval "$3=no" |
2243 | # Order is important - never check a type that is potentially smaller | |
2244 | # than half of the expected target width. | |
2245 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2246 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 2248 | /* end confdefs.h. */ |
7a197a62 | 2249 | $ac_includes_default |
ad6254c5 AK |
2250 | int |
2251 | main () | |
2252 | { | |
f11781c5 AK |
2253 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
2254 | test_array [0] = 0 | |
ad6254c5 | 2255 | |
f11781c5 AK |
2256 | ; |
2257 | return 0; | |
ad6254c5 AK |
2258 | } |
2259 | _ACEOF | |
f11781c5 AK |
2260 | if ac_fn_c_try_compile "$LINENO"; then : |
2261 | case $ac_type in #( | |
2262 | uint$2_t) : | |
2263 | eval "$3=yes" ;; #( | |
2264 | *) : | |
2265 | eval "$3=\$ac_type" ;; | |
7a197a62 | 2266 | esac |
ad6254c5 | 2267 | fi |
f11781c5 AK |
2268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2269 | if eval test \"x\$"$3"\" = x"no"; then : | |
7a197a62 | 2270 | |
f11781c5 AK |
2271 | else |
2272 | break | |
ad6254c5 | 2273 | fi |
f11781c5 | 2274 | done |
ad6254c5 | 2275 | fi |
f11781c5 AK |
2276 | eval ac_res=\$$3 |
2277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2278 | $as_echo "$ac_res" >&6; } | |
2279 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
ad6254c5 | 2280 | |
f11781c5 | 2281 | } # ac_fn_c_find_uintX_t |
ad6254c5 | 2282 | |
f11781c5 AK |
2283 | # ac_fn_c_check_func LINENO FUNC VAR |
2284 | # ---------------------------------- | |
2285 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2286 | ac_fn_c_check_func () | |
2287 | { | |
2288 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2290 | $as_echo_n "checking for $2... " >&6; } | |
2291 | if eval "test \"\${$3+set}\"" = set; then : | |
2292 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2293 | else |
f11781c5 AK |
2294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2295 | /* end confdefs.h. */ | |
2296 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2297 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2298 | #define $2 innocuous_$2 | |
ad6254c5 | 2299 | |
f11781c5 AK |
2300 | /* System header to define __stub macros and hopefully few prototypes, |
2301 | which can conflict with char $2 (); below. | |
2302 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2303 | <limits.h> exists even on freestanding compilers. */ | |
ad6254c5 | 2304 | |
f11781c5 AK |
2305 | #ifdef __STDC__ |
2306 | # include <limits.h> | |
2307 | #else | |
2308 | # include <assert.h> | |
2309 | #endif | |
ad6254c5 | 2310 | |
f11781c5 AK |
2311 | #undef $2 |
2312 | ||
2313 | /* Override any GCC internal prototype to avoid an error. | |
2314 | Use char because int might match the return type of a GCC | |
2315 | builtin and then its argument prototype would still apply. */ | |
2316 | #ifdef __cplusplus | |
2317 | extern "C" | |
2318 | #endif | |
2319 | char $2 (); | |
2320 | /* The GNU C library defines this for functions which it implements | |
2321 | to always fail with ENOSYS. Some functions are actually named | |
2322 | something starting with __ and the normal name is an alias. */ | |
2323 | #if defined __stub_$2 || defined __stub___$2 | |
2324 | choke me | |
2325 | #endif | |
ad6254c5 | 2326 | |
ad6254c5 AK |
2327 | int |
2328 | main () | |
2329 | { | |
f11781c5 | 2330 | return $2 (); |
ad6254c5 AK |
2331 | ; |
2332 | return 0; | |
2333 | } | |
2334 | _ACEOF | |
f11781c5 AK |
2335 | if ac_fn_c_try_link "$LINENO"; then : |
2336 | eval "$3=yes" | |
ad6254c5 | 2337 | else |
f11781c5 | 2338 | eval "$3=no" |
ad6254c5 | 2339 | fi |
f11781c5 AK |
2340 | rm -f core conftest.err conftest.$ac_objext \ |
2341 | conftest$ac_exeext conftest.$ac_ext | |
ad6254c5 | 2342 | fi |
f11781c5 AK |
2343 | eval ac_res=\$$3 |
2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2345 | $as_echo "$ac_res" >&6; } | |
2346 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
7a197a62 | 2347 | |
f11781c5 AK |
2348 | } # ac_fn_c_check_func |
2349 | cat >config.log <<_ACEOF | |
2350 | This file contains any messages produced by compilers while | |
2351 | running configure, to aid debugging if configure makes a mistake. | |
7a197a62 | 2352 | |
f11781c5 AK |
2353 | It was created by $as_me, which was |
2354 | generated by GNU Autoconf 2.66. Invocation command line was | |
ad6254c5 | 2355 | |
f11781c5 | 2356 | $ $0 $@ |
ad6254c5 | 2357 | |
ad6254c5 | 2358 | _ACEOF |
f11781c5 AK |
2359 | exec 5>>config.log |
2360 | { | |
2361 | cat <<_ASUNAME | |
2362 | ## --------- ## | |
2363 | ## Platform. ## | |
2364 | ## --------- ## | |
ad6254c5 | 2365 | |
f11781c5 AK |
2366 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2367 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2368 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2369 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2370 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
ad6254c5 | 2371 | |
f11781c5 AK |
2372 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2373 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
8a2fc586 | 2374 | |
f11781c5 AK |
2375 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2376 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2377 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2378 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2379 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2380 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2381 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2382 | ||
2383 | _ASUNAME | |
2384 | ||
2385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2386 | for as_dir in $PATH | |
2387 | do | |
2388 | IFS=$as_save_IFS | |
2389 | test -z "$as_dir" && as_dir=. | |
2390 | $as_echo "PATH: $as_dir" | |
2391 | done | |
2392 | IFS=$as_save_IFS | |
2393 | ||
2394 | } >&5 | |
2395 | ||
2396 | cat >&5 <<_ACEOF | |
2397 | ||
2398 | ||
2399 | ## ----------- ## | |
2400 | ## Core tests. ## | |
2401 | ## ----------- ## | |
ad6254c5 | 2402 | |
ad6254c5 | 2403 | _ACEOF |
ad6254c5 | 2404 | |
7a197a62 | 2405 | |
f11781c5 AK |
2406 | # Keep a trace of the command line. |
2407 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2408 | # Strip out --silent because we don't want to record it for future runs. | |
2409 | # Also quote any args containing shell meta-characters. | |
2410 | # Make two passes to allow for proper duplicate-argument suppression. | |
2411 | ac_configure_args= | |
2412 | ac_configure_args0= | |
2413 | ac_configure_args1= | |
2414 | ac_must_keep_next=false | |
2415 | for ac_pass in 1 2 | |
2416 | do | |
2417 | for ac_arg | |
2418 | do | |
2419 | case $ac_arg in | |
2420 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2421 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2422 | | -silent | --silent | --silen | --sile | --sil) | |
2423 | continue ;; | |
2424 | *\'*) | |
2425 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2426 | esac | |
2427 | case $ac_pass in | |
2428 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2429 | 2) | |
2430 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2431 | if test $ac_must_keep_next = true; then | |
2432 | ac_must_keep_next=false # Got value, back to normal. | |
2433 | else | |
2434 | case $ac_arg in | |
2435 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2436 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2437 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2438 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2439 | case "$ac_configure_args0 " in | |
2440 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2441 | esac | |
2442 | ;; | |
2443 | -* ) ac_must_keep_next=true ;; | |
2444 | esac | |
2445 | fi | |
2446 | as_fn_append ac_configure_args " '$ac_arg'" | |
2447 | ;; | |
2448 | esac | |
2449 | done | |
2450 | done | |
2451 | { ac_configure_args0=; unset ac_configure_args0;} | |
2452 | { ac_configure_args1=; unset ac_configure_args1;} | |
2453 | ||
2454 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2455 | # config.log. We remove comments because anyway the quotes in there | |
2456 | # would cause problems or look ugly. | |
2457 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2458 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2459 | trap 'exit_status=$? | |
2460 | # Save into config.log some information that might help in debugging. | |
2461 | { | |
2462 | echo | |
2463 | ||
2464 | $as_echo "## ---------------- ## | |
2465 | ## Cache variables. ## | |
2466 | ## ---------------- ##" | |
2467 | echo | |
2468 | # The following way of writing the cache mishandles newlines in values, | |
2469 | ( | |
2470 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2471 | eval ac_val=\$$ac_var | |
2472 | case $ac_val in #( | |
2473 | *${as_nl}*) | |
2474 | case $ac_var in #( | |
2475 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2476 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2477 | esac | |
2478 | case $ac_var in #( | |
2479 | _ | IFS | as_nl) ;; #( | |
2480 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2481 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2482 | esac ;; | |
2483 | esac | |
2484 | done | |
2485 | (set) 2>&1 | | |
2486 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2487 | *${as_nl}ac_space=\ *) | |
2488 | sed -n \ | |
2489 | "s/'\''/'\''\\\\'\'''\''/g; | |
2490 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2491 | ;; #( | |
2492 | *) | |
2493 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2494 | ;; | |
2495 | esac | | |
2496 | sort | |
2497 | ) | |
2498 | echo | |
2499 | ||
2500 | $as_echo "## ----------------- ## | |
2501 | ## Output variables. ## | |
2502 | ## ----------------- ##" | |
2503 | echo | |
2504 | for ac_var in $ac_subst_vars | |
2505 | do | |
2506 | eval ac_val=\$$ac_var | |
2507 | case $ac_val in | |
2508 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2509 | esac | |
2510 | $as_echo "$ac_var='\''$ac_val'\''" | |
2511 | done | sort | |
2512 | echo | |
2513 | ||
2514 | if test -n "$ac_subst_files"; then | |
2515 | $as_echo "## ------------------- ## | |
2516 | ## File substitutions. ## | |
2517 | ## ------------------- ##" | |
2518 | echo | |
2519 | for ac_var in $ac_subst_files | |
2520 | do | |
2521 | eval ac_val=\$$ac_var | |
2522 | case $ac_val in | |
2523 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2524 | esac | |
2525 | $as_echo "$ac_var='\''$ac_val'\''" | |
2526 | done | sort | |
2527 | echo | |
2528 | fi | |
2529 | ||
2530 | if test -s confdefs.h; then | |
2531 | $as_echo "## ----------- ## | |
2532 | ## confdefs.h. ## | |
2533 | ## ----------- ##" | |
2534 | echo | |
2535 | cat confdefs.h | |
2536 | echo | |
2537 | fi | |
2538 | test "$ac_signal" != 0 && | |
2539 | $as_echo "$as_me: caught signal $ac_signal" | |
2540 | $as_echo "$as_me: exit $exit_status" | |
2541 | } >&5 | |
2542 | rm -f core *.core core.conftest.* && | |
2543 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2544 | exit $exit_status | |
2545 | ' 0 | |
2546 | for ac_signal in 1 2 13 15; do | |
2547 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2548 | done | |
2549 | ac_signal=0 | |
2550 | ||
2551 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2552 | rm -f -r conftest* confdefs.h | |
7a197a62 | 2553 | |
f11781c5 | 2554 | $as_echo "/* confdefs.h */" > confdefs.h |
8a2fc586 | 2555 | |
f11781c5 | 2556 | # Predefined preprocessor variables. |
ad6254c5 AK |
2557 | |
2558 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 2559 | #define PACKAGE_NAME "$PACKAGE_NAME" |
ad6254c5 AK |
2560 | _ACEOF |
2561 | ||
f11781c5 AK |
2562 | cat >>confdefs.h <<_ACEOF |
2563 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
ad6254c5 | 2564 | _ACEOF |
ad6254c5 | 2565 | |
f11781c5 AK |
2566 | cat >>confdefs.h <<_ACEOF |
2567 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
ad6254c5 | 2568 | _ACEOF |
f11781c5 AK |
2569 | |
2570 | cat >>confdefs.h <<_ACEOF | |
2571 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
ad6254c5 | 2572 | _ACEOF |
ad6254c5 | 2573 | |
f11781c5 AK |
2574 | cat >>confdefs.h <<_ACEOF |
2575 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2576 | _ACEOF | |
7a197a62 | 2577 | |
f11781c5 AK |
2578 | cat >>confdefs.h <<_ACEOF |
2579 | #define PACKAGE_URL "$PACKAGE_URL" | |
2580 | _ACEOF | |
ad6254c5 | 2581 | |
7a197a62 | 2582 | |
f11781c5 AK |
2583 | # Let the site file select an alternate cache file if it wants to. |
2584 | # Prefer an explicitly selected file to automatically selected ones. | |
2585 | ac_site_file1=NONE | |
2586 | ac_site_file2=NONE | |
2587 | if test -n "$CONFIG_SITE"; then | |
2588 | # We do not want a PATH search for config.site. | |
2589 | case $CONFIG_SITE in #(( | |
2590 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2591 | */*) ac_site_file1=$CONFIG_SITE;; | |
2592 | *) ac_site_file1=./$CONFIG_SITE;; | |
2593 | esac | |
2594 | elif test "x$prefix" != xNONE; then | |
2595 | ac_site_file1=$prefix/share/config.site | |
2596 | ac_site_file2=$prefix/etc/config.site | |
ad6254c5 | 2597 | else |
f11781c5 AK |
2598 | ac_site_file1=$ac_default_prefix/share/config.site |
2599 | ac_site_file2=$ac_default_prefix/etc/config.site | |
ad6254c5 | 2600 | fi |
f11781c5 AK |
2601 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2602 | do | |
2603 | test "x$ac_site_file" = xNONE && continue | |
2604 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2606 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2607 | sed 's/^/| /' "$ac_site_file" >&5 | |
2608 | . "$ac_site_file" \ | |
2609 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2610 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2611 | as_fn_error $? "failed to load site script $ac_site_file | |
2612 | See \`config.log' for more details" "$LINENO" 5; } | |
2613 | fi | |
2614 | done | |
ad6254c5 | 2615 | |
f11781c5 AK |
2616 | if test -r "$cache_file"; then |
2617 | # Some versions of bash will fail to source /dev/null (special files | |
2618 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2619 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2621 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2622 | case $cache_file in | |
2623 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2624 | *) . "./$cache_file";; | |
2625 | esac | |
2626 | fi | |
2627 | else | |
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2629 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2630 | >$cache_file | |
ad6254c5 | 2631 | fi |
ad6254c5 | 2632 | |
f11781c5 AK |
2633 | as_fn_append ac_header_list " stdlib.h" |
2634 | as_fn_append ac_header_list " unistd.h" | |
2635 | as_fn_append ac_header_list " sys/param.h" | |
2636 | # Check that the precious variables saved in the cache have kept the same | |
2637 | # value. | |
2638 | ac_cache_corrupted=false | |
2639 | for ac_var in $ac_precious_vars; do | |
2640 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2641 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2642 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2643 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2644 | case $ac_old_set,$ac_new_set in | |
2645 | set,) | |
2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2647 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2648 | ac_cache_corrupted=: ;; | |
2649 | ,set) | |
2650 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2651 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2652 | ac_cache_corrupted=: ;; | |
2653 | ,);; | |
2654 | *) | |
2655 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2656 | # differences in whitespace do not lead to failure. | |
2657 | ac_old_val_w=`echo x $ac_old_val` | |
2658 | ac_new_val_w=`echo x $ac_new_val` | |
2659 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2661 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2662 | ac_cache_corrupted=: | |
2663 | else | |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2665 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2666 | eval $ac_var=\$ac_old_val | |
2667 | fi | |
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2669 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2671 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2672 | fi;; | |
2673 | esac | |
2674 | # Pass precious variables to config.status. | |
2675 | if test "$ac_new_set" = set; then | |
2676 | case $ac_new_val in | |
2677 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2678 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2679 | esac | |
2680 | case " $ac_configure_args " in | |
2681 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2682 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2683 | esac | |
2684 | fi | |
2685 | done | |
2686 | if $ac_cache_corrupted; then | |
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2688 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2690 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2691 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
ad6254c5 | 2692 | fi |
f11781c5 AK |
2693 | ## -------------------- ## |
2694 | ## Main body of script. ## | |
2695 | ## -------------------- ## | |
ad6254c5 | 2696 | |
f11781c5 AK |
2697 | ac_ext=c |
2698 | ac_cpp='$CPP $CPPFLAGS' | |
2699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 2702 | |
ad6254c5 | 2703 | |
ad6254c5 | 2704 | |
f11781c5 | 2705 | ac_config_headers="$ac_config_headers lib/misc/configure.h" |
7a197a62 AK |
2706 | |
2707 | ||
f11781c5 AK |
2708 | ################################################################################ |
2709 | ac_aux_dir= | |
2710 | for ac_dir in autoconf "$srcdir"/autoconf; do | |
2711 | if test -f "$ac_dir/install-sh"; then | |
2712 | ac_aux_dir=$ac_dir | |
2713 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2714 | break | |
2715 | elif test -f "$ac_dir/install.sh"; then | |
2716 | ac_aux_dir=$ac_dir | |
2717 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2718 | break | |
2719 | elif test -f "$ac_dir/shtool"; then | |
2720 | ac_aux_dir=$ac_dir | |
2721 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2722 | break | |
2723 | fi | |
2724 | done | |
2725 | if test -z "$ac_aux_dir"; then | |
2726 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5 | |
ad6254c5 | 2727 | fi |
ad6254c5 | 2728 | |
f11781c5 AK |
2729 | # These three variables are undocumented and unsupported, |
2730 | # and are intended to be withdrawn in a future Autoconf release. | |
2731 | # They can cause serious problems if a builder's source tree is in a directory | |
2732 | # whose full name contains unusual characters. | |
2733 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2734 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2735 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
ad6254c5 | 2736 | |
ad6254c5 | 2737 | |
8a2fc586 | 2738 | |
f11781c5 AK |
2739 | ################################################################################ |
2740 | # Make sure we can run config.sub. | |
2741 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2742 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
ad6254c5 | 2743 | |
f11781c5 AK |
2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2745 | $as_echo_n "checking build system type... " >&6; } | |
2746 | if test "${ac_cv_build+set}" = set; then : | |
2747 | $as_echo_n "(cached) " >&6 | |
2748 | else | |
2749 | ac_build_alias=$build_alias | |
2750 | test "x$ac_build_alias" = x && | |
2751 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2752 | test "x$ac_build_alias" = x && | |
2753 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2754 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2755 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
ad6254c5 AK |
2756 | |
2757 | fi | |
f11781c5 AK |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2759 | $as_echo "$ac_cv_build" >&6; } | |
2760 | case $ac_cv_build in | |
2761 | *-*-*) ;; | |
2762 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2763 | esac | |
2764 | build=$ac_cv_build | |
2765 | ac_save_IFS=$IFS; IFS='-' | |
2766 | set x $ac_cv_build | |
2767 | shift | |
2768 | build_cpu=$1 | |
2769 | build_vendor=$2 | |
2770 | shift; shift | |
2771 | # Remember, the first character of IFS is used to create $*, | |
2772 | # except with old shells: | |
2773 | build_os=$* | |
2774 | IFS=$ac_save_IFS | |
2775 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 AK |
2776 | |
2777 | ||
f11781c5 AK |
2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2779 | $as_echo_n "checking host system type... " >&6; } | |
2780 | if test "${ac_cv_host+set}" = set; then : | |
ec6a6fbe | 2781 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2782 | else |
f11781c5 AK |
2783 | if test "x$host_alias" = x; then |
2784 | ac_cv_host=$ac_cv_build | |
ad6254c5 | 2785 | else |
f11781c5 AK |
2786 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2787 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2788 | fi | |
ad6254c5 | 2789 | |
f11781c5 AK |
2790 | fi |
2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2792 | $as_echo "$ac_cv_host" >&6; } | |
2793 | case $ac_cv_host in | |
2794 | *-*-*) ;; | |
2795 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2796 | esac | |
2797 | host=$ac_cv_host | |
2798 | ac_save_IFS=$IFS; IFS='-' | |
2799 | set x $ac_cv_host | |
2800 | shift | |
2801 | host_cpu=$1 | |
2802 | host_vendor=$2 | |
2803 | shift; shift | |
2804 | # Remember, the first character of IFS is used to create $*, | |
2805 | # except with old shells: | |
2806 | host_os=$* | |
2807 | IFS=$ac_save_IFS | |
2808 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ad6254c5 | 2809 | |
ad6254c5 | 2810 | |
f11781c5 AK |
2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2812 | $as_echo_n "checking target system type... " >&6; } | |
2813 | if test "${ac_cv_target+set}" = set; then : | |
2814 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2815 | else |
f11781c5 AK |
2816 | if test "x$target_alias" = x; then |
2817 | ac_cv_target=$ac_cv_host | |
2818 | else | |
2819 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2820 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
ad6254c5 | 2821 | fi |
7a197a62 | 2822 | |
ad6254c5 | 2823 | fi |
f11781c5 AK |
2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2825 | $as_echo "$ac_cv_target" >&6; } | |
2826 | case $ac_cv_target in | |
2827 | *-*-*) ;; | |
2828 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
8a2fc586 | 2829 | esac |
f11781c5 AK |
2830 | target=$ac_cv_target |
2831 | ac_save_IFS=$IFS; IFS='-' | |
2832 | set x $ac_cv_target | |
2833 | shift | |
2834 | target_cpu=$1 | |
2835 | target_vendor=$2 | |
2836 | shift; shift | |
2837 | # Remember, the first character of IFS is used to create $*, | |
2838 | # except with old shells: | |
2839 | target_os=$* | |
2840 | IFS=$ac_save_IFS | |
2841 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
8a2fc586 | 2842 | |
ad6254c5 | 2843 | |
f11781c5 AK |
2844 | # The aliases save the names the user supplied, while $host etc. |
2845 | # will get canonicalized. | |
2846 | test -n "$target_alias" && | |
2847 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2848 | NONENONEs,x,x, && | |
2849 | program_prefix=${target_alias}- | |
ad6254c5 | 2850 | |
f11781c5 AK |
2851 | case "$host_os" in |
2852 | linux*) | |
2853 | CFLAGS="$CFLAGS" | |
2854 | COPTIMISE_FLAG="-O2" | |
2855 | CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym" | |
bf09a320 AK |
2856 | ELDFLAGS="-Wl,--export-dynamic" |
2857 | # FIXME Generate list and use --dynamic-list=.dlopen.sym | |
f11781c5 AK |
2858 | CLDWHOLEARCHIVE="-Wl,-whole-archive" |
2859 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
2860 | LDDEPS="$LDDEPS .export.sym" | |
f11781c5 AK |
2861 | LIB_SUFFIX=so |
2862 | DEVMAPPER=yes | |
cdd50823 | 2863 | LVMETAD=no |
f11781c5 AK |
2864 | ODIRECT=yes |
2865 | DM_IOCTLS=yes | |
2866 | SELINUX=yes | |
2867 | CLUSTER=internal | |
2868 | FSADM=yes | |
2869 | ;; | |
2870 | darwin*) | |
2871 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
2872 | COPTIMISE_FLAG="-O2" | |
2873 | CLDFLAGS="$CLDFLAGS" | |
bf09a320 | 2874 | ELDFLAGS= |
f11781c5 AK |
2875 | CLDWHOLEARCHIVE="-all_load" |
2876 | CLDNOWHOLEARCHIVE= | |
2877 | LIB_SUFFIX=dylib | |
2878 | DEVMAPPER=yes | |
2879 | ODIRECT=no | |
2880 | DM_IOCTLS=no | |
2881 | SELINUX=no | |
2882 | CLUSTER=none | |
2883 | FSADM=no | |
2884 | ;; | |
2885 | esac | |
ad6254c5 | 2886 | |
f11781c5 AK |
2887 | ################################################################################ |
2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
2889 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2890 | if test "${ac_cv_path_SED+set}" = set; then : | |
ec6a6fbe | 2891 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 2892 | else |
f11781c5 AK |
2893 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
2894 | for ac_i in 1 2 3 4 5 6 7; do | |
2895 | ac_script="$ac_script$as_nl$ac_script" | |
2896 | done | |
2897 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2898 | { ac_script=; unset ac_script;} | |
2899 | if test -z "$SED"; then | |
2900 | ac_path_SED_found=false | |
2901 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2903 | for as_dir in $PATH | |
2904 | do | |
2905 | IFS=$as_save_IFS | |
2906 | test -z "$as_dir" && as_dir=. | |
2907 | for ac_prog in sed gsed; do | |
2908 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2909 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2910 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2911 | # Check for GNU ac_path_SED and select it if it is found. | |
2912 | # Check for GNU $ac_path_SED | |
2913 | case `"$ac_path_SED" --version 2>&1` in | |
2914 | *GNU*) | |
2915 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2916 | *) | |
2917 | ac_count=0 | |
2918 | $as_echo_n 0123456789 >"conftest.in" | |
2919 | while : | |
2920 | do | |
2921 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2922 | mv "conftest.tmp" "conftest.in" | |
2923 | cp "conftest.in" "conftest.nl" | |
2924 | $as_echo '' >> "conftest.nl" | |
2925 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2926 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2927 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2928 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2929 | # Best one so far, save it but keep looking for a better one | |
2930 | ac_cv_path_SED="$ac_path_SED" | |
2931 | ac_path_SED_max=$ac_count | |
2932 | fi | |
2933 | # 10*(2^10) chars as input seems more than enough | |
2934 | test $ac_count -gt 10 && break | |
2935 | done | |
2936 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7a197a62 | 2937 | esac |
ad6254c5 | 2938 | |
f11781c5 AK |
2939 | $ac_path_SED_found && break 3 |
2940 | done | |
2941 | done | |
2942 | done | |
2943 | IFS=$as_save_IFS | |
2944 | if test -z "$ac_cv_path_SED"; then | |
2945 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2946 | fi | |
2947 | else | |
2948 | ac_cv_path_SED=$SED | |
ad6254c5 | 2949 | fi |
7a197a62 | 2950 | |
f11781c5 AK |
2951 | fi |
2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2953 | $as_echo "$ac_cv_path_SED" >&6; } | |
2954 | SED="$ac_cv_path_SED" | |
2955 | rm -f conftest.sed | |
ad6254c5 | 2956 | |
f11781c5 AK |
2957 | for ac_prog in gawk mawk nawk awk |
2958 | do | |
2959 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2960 | set dummy $ac_prog; ac_word=$2 | |
2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2962 | $as_echo_n "checking for $ac_word... " >&6; } | |
2963 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2964 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 2965 | else |
f11781c5 AK |
2966 | if test -n "$AWK"; then |
2967 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2968 | else | |
2969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2970 | for as_dir in $PATH | |
2971 | do | |
2972 | IFS=$as_save_IFS | |
2973 | test -z "$as_dir" && as_dir=. | |
2974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2976 | ac_cv_prog_AWK="$ac_prog" | |
2977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2978 | break 2 | |
2979 | fi | |
2980 | done | |
2981 | done | |
2982 | IFS=$as_save_IFS | |
ad6254c5 | 2983 | |
ad6254c5 | 2984 | fi |
ad6254c5 | 2985 | fi |
f11781c5 AK |
2986 | AWK=$ac_cv_prog_AWK |
2987 | if test -n "$AWK"; then | |
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2989 | $as_echo "$AWK" >&6; } | |
2990 | else | |
2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2992 | $as_echo "no" >&6; } | |
ad6254c5 | 2993 | fi |
ad6254c5 | 2994 | |
ad6254c5 | 2995 | |
f11781c5 | 2996 | test -n "$AWK" && break |
ad6254c5 AK |
2997 | done |
2998 | ||
f11781c5 AK |
2999 | ac_ext=c |
3000 | ac_cpp='$CPP $CPPFLAGS' | |
3001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3004 | if test -n "$ac_tool_prefix"; then | |
3005 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3006 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3008 | $as_echo_n "checking for $ac_word... " >&6; } | |
3009 | if test "${ac_cv_prog_CC+set}" = set; then : | |
ec6a6fbe | 3010 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3011 | else |
f11781c5 AK |
3012 | if test -n "$CC"; then |
3013 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
ad6254c5 | 3014 | else |
f11781c5 AK |
3015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3016 | for as_dir in $PATH | |
3017 | do | |
3018 | IFS=$as_save_IFS | |
3019 | test -z "$as_dir" && as_dir=. | |
3020 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3022 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3024 | break 2 | |
3025 | fi | |
3026 | done | |
3027 | done | |
3028 | IFS=$as_save_IFS | |
ad6254c5 | 3029 | |
ad6254c5 | 3030 | fi |
ad6254c5 | 3031 | fi |
f11781c5 AK |
3032 | CC=$ac_cv_prog_CC |
3033 | if test -n "$CC"; then | |
3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3035 | $as_echo "$CC" >&6; } | |
3036 | else | |
3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3038 | $as_echo "no" >&6; } | |
ad6254c5 | 3039 | fi |
ad6254c5 | 3040 | |
f11781c5 AK |
3041 | |
3042 | fi | |
3043 | if test -z "$ac_cv_prog_CC"; then | |
3044 | ac_ct_CC=$CC | |
3045 | # Extract the first word of "gcc", so it can be a program name with args. | |
3046 | set dummy gcc; ac_word=$2 | |
3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3048 | $as_echo_n "checking for $ac_word... " >&6; } | |
3049 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
ec6a6fbe | 3050 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3051 | else |
f11781c5 AK |
3052 | if test -n "$ac_ct_CC"; then |
3053 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d911ec67 | 3054 | else |
f11781c5 AK |
3055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3056 | for as_dir in $PATH | |
3057 | do | |
3058 | IFS=$as_save_IFS | |
3059 | test -z "$as_dir" && as_dir=. | |
3060 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3062 | ac_cv_prog_ac_ct_CC="gcc" | |
3063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3064 | break 2 | |
3065 | fi | |
3066 | done | |
3067 | done | |
3068 | IFS=$as_save_IFS | |
d911ec67 | 3069 | |
d911ec67 | 3070 | fi |
d911ec67 | 3071 | fi |
f11781c5 AK |
3072 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3073 | if test -n "$ac_ct_CC"; then | |
3074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3075 | $as_echo "$ac_ct_CC" >&6; } | |
3076 | else | |
3077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3078 | $as_echo "no" >&6; } | |
d911ec67 | 3079 | fi |
d911ec67 | 3080 | |
f11781c5 AK |
3081 | if test "x$ac_ct_CC" = x; then |
3082 | CC="" | |
3083 | else | |
3084 | case $cross_compiling:$ac_tool_warned in | |
3085 | yes:) | |
3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3087 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3088 | ac_tool_warned=yes ;; | |
3089 | esac | |
3090 | CC=$ac_ct_CC | |
3091 | fi | |
3092 | else | |
3093 | CC="$ac_cv_prog_CC" | |
d911ec67 | 3094 | fi |
d911ec67 | 3095 | |
f11781c5 AK |
3096 | if test -z "$CC"; then |
3097 | if test -n "$ac_tool_prefix"; then | |
3098 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3099 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3101 | $as_echo_n "checking for $ac_word... " >&6; } | |
3102 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 | 3103 | $as_echo_n "(cached) " >&6 |
d911ec67 | 3104 | else |
f11781c5 AK |
3105 | if test -n "$CC"; then |
3106 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d911ec67 | 3107 | else |
f11781c5 AK |
3108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3109 | for as_dir in $PATH | |
3110 | do | |
3111 | IFS=$as_save_IFS | |
3112 | test -z "$as_dir" && as_dir=. | |
3113 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3114 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3115 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3117 | break 2 | |
3118 | fi | |
3119 | done | |
3120 | done | |
3121 | IFS=$as_save_IFS | |
d911ec67 | 3122 | |
f11781c5 AK |
3123 | fi |
3124 | fi | |
3125 | CC=$ac_cv_prog_CC | |
3126 | if test -n "$CC"; then | |
3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3128 | $as_echo "$CC" >&6; } | |
3129 | else | |
3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3131 | $as_echo "no" >&6; } | |
d911ec67 AK |
3132 | fi |
3133 | ||
d911ec67 | 3134 | |
f11781c5 AK |
3135 | fi |
3136 | fi | |
3137 | if test -z "$CC"; then | |
3138 | # Extract the first word of "cc", so it can be a program name with args. | |
3139 | set dummy cc; ac_word=$2 | |
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3141 | $as_echo_n "checking for $ac_word... " >&6; } | |
3142 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3143 | $as_echo_n "(cached) " >&6 | |
d911ec67 | 3144 | else |
f11781c5 AK |
3145 | if test -n "$CC"; then |
3146 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3147 | else | |
3148 | ac_prog_rejected=no | |
3149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3150 | for as_dir in $PATH | |
3151 | do | |
3152 | IFS=$as_save_IFS | |
3153 | test -z "$as_dir" && as_dir=. | |
3154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3156 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3157 | ac_prog_rejected=yes | |
3158 | continue | |
3159 | fi | |
3160 | ac_cv_prog_CC="cc" | |
3161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3162 | break 2 | |
3163 | fi | |
3164 | done | |
3165 | done | |
3166 | IFS=$as_save_IFS | |
d911ec67 | 3167 | |
f11781c5 AK |
3168 | if test $ac_prog_rejected = yes; then |
3169 | # We found a bogon in the path, so make sure we never use it. | |
3170 | set dummy $ac_cv_prog_CC | |
3171 | shift | |
3172 | if test $# != 0; then | |
3173 | # We chose a different compiler from the bogus one. | |
3174 | # However, it has the same basename, so the bogon will be chosen | |
3175 | # first if we set CC to just the basename; use the full file name. | |
3176 | shift | |
3177 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3178 | fi | |
3179 | fi | |
3180 | fi | |
3181 | fi | |
3182 | CC=$ac_cv_prog_CC | |
3183 | if test -n "$CC"; then | |
3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3185 | $as_echo "$CC" >&6; } | |
3186 | else | |
3187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3188 | $as_echo "no" >&6; } | |
d911ec67 AK |
3189 | fi |
3190 | ||
d911ec67 | 3191 | |
f11781c5 AK |
3192 | fi |
3193 | if test -z "$CC"; then | |
3194 | if test -n "$ac_tool_prefix"; then | |
3195 | for ac_prog in cl.exe | |
3196 | do | |
3197 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3198 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3200 | $as_echo_n "checking for $ac_word... " >&6; } | |
3201 | if test "${ac_cv_prog_CC+set}" = set; then : | |
d911ec67 AK |
3202 | $as_echo_n "(cached) " >&6 |
3203 | else | |
f11781c5 AK |
3204 | if test -n "$CC"; then |
3205 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3206 | else | |
3207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3208 | for as_dir in $PATH | |
3209 | do | |
3210 | IFS=$as_save_IFS | |
3211 | test -z "$as_dir" && as_dir=. | |
3212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3213 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3214 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3216 | break 2 | |
3217 | fi | |
3218 | done | |
3219 | done | |
3220 | IFS=$as_save_IFS | |
d911ec67 AK |
3221 | |
3222 | fi | |
f11781c5 AK |
3223 | fi |
3224 | CC=$ac_cv_prog_CC | |
3225 | if test -n "$CC"; then | |
3226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3227 | $as_echo "$CC" >&6; } | |
3228 | else | |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3230 | $as_echo "no" >&6; } | |
d911ec67 AK |
3231 | fi |
3232 | ||
d911ec67 | 3233 | |
f11781c5 AK |
3234 | test -n "$CC" && break |
3235 | done | |
3236 | fi | |
3237 | if test -z "$CC"; then | |
3238 | ac_ct_CC=$CC | |
3239 | for ac_prog in cl.exe | |
3240 | do | |
3241 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3242 | set dummy $ac_prog; ac_word=$2 | |
3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3244 | $as_echo_n "checking for $ac_word... " >&6; } | |
3245 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
d911ec67 AK |
3246 | $as_echo_n "(cached) " >&6 |
3247 | else | |
f11781c5 AK |
3248 | if test -n "$ac_ct_CC"; then |
3249 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
ad6254c5 | 3250 | else |
f11781c5 AK |
3251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3252 | for as_dir in $PATH | |
3253 | do | |
3254 | IFS=$as_save_IFS | |
3255 | test -z "$as_dir" && as_dir=. | |
3256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3258 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3260 | break 2 | |
3261 | fi | |
3262 | done | |
3263 | done | |
3264 | IFS=$as_save_IFS | |
ad6254c5 | 3265 | |
ad6254c5 | 3266 | fi |
ad6254c5 | 3267 | fi |
f11781c5 AK |
3268 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3269 | if test -n "$ac_ct_CC"; then | |
3270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3271 | $as_echo "$ac_ct_CC" >&6; } | |
3272 | else | |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3274 | $as_echo "no" >&6; } | |
ad6254c5 | 3275 | fi |
ad6254c5 | 3276 | |
d911ec67 | 3277 | |
f11781c5 AK |
3278 | test -n "$ac_ct_CC" && break |
3279 | done | |
d911ec67 | 3280 | |
f11781c5 AK |
3281 | if test "x$ac_ct_CC" = x; then |
3282 | CC="" | |
3283 | else | |
3284 | case $cross_compiling:$ac_tool_warned in | |
3285 | yes:) | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3287 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3288 | ac_tool_warned=yes ;; | |
d911ec67 | 3289 | esac |
f11781c5 AK |
3290 | CC=$ac_ct_CC |
3291 | fi | |
3292 | fi | |
ad6254c5 AK |
3293 | |
3294 | fi | |
d911ec67 AK |
3295 | |
3296 | ||
f11781c5 AK |
3297 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3298 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3299 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3300 | See \`config.log' for more details" "$LINENO" 5; } | |
3301 | ||
3302 | # Provide some information about the compiler. | |
3303 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3304 | set X $ac_compile | |
3305 | ac_compiler=$2 | |
3306 | for ac_option in --version -v -V -qversion; do | |
3307 | { { ac_try="$ac_compiler $ac_option >&5" | |
3308 | case "(($ac_try" in | |
3309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3310 | *) ac_try_echo=$ac_try;; | |
3311 | esac | |
3312 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3313 | $as_echo "$ac_try_echo"; } >&5 | |
3314 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3315 | ac_status=$? | |
3316 | if test -s conftest.err; then | |
3317 | sed '10a\ | |
3318 | ... rest of stderr output deleted ... | |
3319 | 10q' conftest.err >conftest.er1 | |
3320 | cat conftest.er1 >&5 | |
3321 | fi | |
3322 | rm -f conftest.er1 conftest.err | |
3323 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3324 | test $ac_status = 0; } | |
3325 | done | |
ad6254c5 | 3326 | |
f11781c5 | 3327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 | 3328 | /* end confdefs.h. */ |
f11781c5 | 3329 | |
ad6254c5 AK |
3330 | int |
3331 | main () | |
3332 | { | |
f11781c5 | 3333 | |
ad6254c5 AK |
3334 | ; |
3335 | return 0; | |
3336 | } | |
3337 | _ACEOF | |
f11781c5 AK |
3338 | ac_clean_files_save=$ac_clean_files |
3339 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3340 | # Try to create an executable without -o first, disregard a.out. | |
3341 | # It will help us diagnose broken compilers, and finding out an intuition | |
3342 | # of exeext. | |
3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3344 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3345 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3346 | ||
3347 | # The possible output files: | |
3348 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3349 | ||
3350 | ac_rmfiles= | |
3351 | for ac_file in $ac_files | |
3352 | do | |
3353 | case $ac_file in | |
3354 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3355 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3356 | esac | |
3357 | done | |
3358 | rm -f $ac_rmfiles | |
3359 | ||
3360 | if { { ac_try="$ac_link_default" | |
7a197a62 AK |
3361 | case "(($ac_try" in |
3362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3363 | *) ac_try_echo=$ac_try;; | |
3364 | esac | |
f11781c5 AK |
3365 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3366 | $as_echo "$ac_try_echo"; } >&5 | |
3367 | (eval "$ac_link_default") 2>&5 | |
ad6254c5 | 3368 | ac_status=$? |
f11781c5 AK |
3369 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3370 | test $ac_status = 0; }; then : | |
3371 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3372 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3373 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3374 | # so that the user can short-circuit this test for compilers unknown to | |
3375 | # Autoconf. | |
3376 | for ac_file in $ac_files '' | |
3377 | do | |
3378 | test -f "$ac_file" || continue | |
3379 | case $ac_file in | |
3380 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3381 | ;; | |
3382 | [ab].out ) | |
3383 | # We found the default executable, but exeext='' is most | |
3384 | # certainly right. | |
3385 | break;; | |
3386 | *.* ) | |
3387 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3388 | then :; else | |
3389 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3390 | fi | |
3391 | # We set ac_cv_exeext here because the later test for it is not | |
3392 | # safe: cross compilers may not add the suffix if given an `-o' | |
3393 | # argument, so we may need to know it at that point already. | |
3394 | # Even if this section looks crufty: it has the advantage of | |
3395 | # actually working. | |
3396 | break;; | |
3397 | * ) | |
3398 | break;; | |
3399 | esac | |
3400 | done | |
3401 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3402 | ||
ad6254c5 | 3403 | else |
f11781c5 AK |
3404 | ac_file='' |
3405 | fi | |
3406 | if test -z "$ac_file"; then : | |
3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3408 | $as_echo "no" >&6; } | |
ec6a6fbe | 3409 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3410 | sed 's/^/| /' conftest.$ac_ext >&5 |
3411 | ||
f11781c5 AK |
3412 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3413 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3414 | as_fn_error 77 "C compiler cannot create executables | |
3415 | See \`config.log' for more details" "$LINENO" 5; } | |
3416 | else | |
3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3418 | $as_echo "yes" >&6; } | |
ad6254c5 | 3419 | fi |
f11781c5 AK |
3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3421 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3423 | $as_echo "$ac_file" >&6; } | |
3424 | ac_exeext=$ac_cv_exeext | |
7a197a62 | 3425 | |
f11781c5 AK |
3426 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3427 | ac_clean_files=$ac_clean_files_save | |
3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3429 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3430 | if { { ac_try="$ac_link" | |
3431 | case "(($ac_try" in | |
3432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3433 | *) ac_try_echo=$ac_try;; | |
8a2fc586 | 3434 | esac |
f11781c5 AK |
3435 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3436 | $as_echo "$ac_try_echo"; } >&5 | |
3437 | (eval "$ac_link") 2>&5 | |
3438 | ac_status=$? | |
3439 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3440 | test $ac_status = 0; }; then : | |
3441 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3442 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3443 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3444 | # `rm'. | |
3445 | for ac_file in conftest.exe conftest conftest.*; do | |
3446 | test -f "$ac_file" || continue | |
3447 | case $ac_file in | |
3448 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3449 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3450 | break;; | |
3451 | * ) break;; | |
3452 | esac | |
3453 | done | |
3454 | else | |
3455 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3456 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3457 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3458 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3459 | fi |
f11781c5 AK |
3460 | rm -f conftest conftest$ac_cv_exeext |
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3462 | $as_echo "$ac_cv_exeext" >&6; } | |
ad6254c5 | 3463 | |
f11781c5 AK |
3464 | rm -f conftest.$ac_ext |
3465 | EXEEXT=$ac_cv_exeext | |
3466 | ac_exeext=$EXEEXT | |
3467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 3468 | /* end confdefs.h. */ |
f11781c5 | 3469 | #include <stdio.h> |
ad6254c5 | 3470 | int |
f11781c5 | 3471 | main () |
ad6254c5 | 3472 | { |
f11781c5 AK |
3473 | FILE *f = fopen ("conftest.out", "w"); |
3474 | return ferror (f) || fclose (f) != 0; | |
ad6254c5 | 3475 | |
f11781c5 | 3476 | ; |
7a197a62 | 3477 | return 0; |
ad6254c5 | 3478 | } |
ad6254c5 | 3479 | _ACEOF |
f11781c5 AK |
3480 | ac_clean_files="$ac_clean_files conftest.out" |
3481 | # Check that the compiler produces executables we can run. If not, either | |
3482 | # the compiler is broken, or we cross compile. | |
3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3484 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3485 | if test "$cross_compiling" != yes; then | |
3486 | { { ac_try="$ac_link" | |
7a197a62 AK |
3487 | case "(($ac_try" in |
3488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3489 | *) ac_try_echo=$ac_try;; | |
3490 | esac | |
f11781c5 AK |
3491 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3492 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3493 | (eval "$ac_link") 2>&5 |
ad6254c5 | 3494 | ac_status=$? |
f11781c5 AK |
3495 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3496 | test $ac_status = 0; } | |
3497 | if { ac_try='./conftest$ac_cv_exeext' | |
3498 | { { case "(($ac_try" in | |
7a197a62 AK |
3499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3500 | *) ac_try_echo=$ac_try;; | |
3501 | esac | |
f11781c5 AK |
3502 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3503 | $as_echo "$ac_try_echo"; } >&5 | |
7a197a62 | 3504 | (eval "$ac_try") 2>&5 |
ad6254c5 | 3505 | ac_status=$? |
f11781c5 AK |
3506 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3507 | test $ac_status = 0; }; }; then | |
3508 | cross_compiling=no | |
3509 | else | |
3510 | if test "$cross_compiling" = maybe; then | |
3511 | cross_compiling=yes | |
3512 | else | |
3513 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3514 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3515 | as_fn_error $? "cannot run C compiled programs. | |
3516 | If you meant to cross compile, use \`--host'. | |
3517 | See \`config.log' for more details" "$LINENO" 5; } | |
3518 | fi | |
3519 | fi | |
3520 | fi | |
3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3522 | $as_echo "$cross_compiling" >&6; } | |
3523 | ||
3524 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3525 | ac_clean_files=$ac_clean_files_save | |
3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3527 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3528 | if test "${ac_cv_objext+set}" = set; then : | |
3529 | $as_echo_n "(cached) " >&6 | |
3530 | else | |
3531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3532 | /* end confdefs.h. */ | |
ad6254c5 AK |
3533 | |
3534 | int | |
3535 | main () | |
3536 | { | |
f11781c5 | 3537 | |
ad6254c5 AK |
3538 | ; |
3539 | return 0; | |
3540 | } | |
3541 | _ACEOF | |
f11781c5 AK |
3542 | rm -f conftest.o conftest.obj |
3543 | if { { ac_try="$ac_compile" | |
7a197a62 AK |
3544 | case "(($ac_try" in |
3545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3546 | *) ac_try_echo=$ac_try;; | |
3547 | esac | |
f11781c5 AK |
3548 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3549 | $as_echo "$ac_try_echo"; } >&5 | |
3550 | (eval "$ac_compile") 2>&5 | |
ad6254c5 | 3551 | ac_status=$? |
f11781c5 AK |
3552 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3553 | test $ac_status = 0; }; then : | |
3554 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3555 | test -f "$ac_file" || continue; | |
3556 | case $ac_file in | |
3557 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3558 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3559 | break;; | |
3560 | esac | |
3561 | done | |
ad6254c5 | 3562 | else |
ec6a6fbe | 3563 | $as_echo "$as_me: failed program was:" >&5 |
ad6254c5 AK |
3564 | sed 's/^/| /' conftest.$ac_ext >&5 |
3565 | ||
f11781c5 AK |
3566 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3567 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3568 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3569 | See \`config.log' for more details" "$LINENO" 5; } | |
ad6254c5 | 3570 | fi |
f11781c5 | 3571 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ad6254c5 | 3572 | fi |
f11781c5 AK |
3573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3574 | $as_echo "$ac_cv_objext" >&6; } | |
3575 | OBJEXT=$ac_cv_objext | |
3576 | ac_objext=$OBJEXT | |
3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3578 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3579 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
ec6a6fbe | 3580 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3581 | else |
f11781c5 | 3582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ad6254c5 AK |
3583 | /* end confdefs.h. */ |
3584 | ||
ad6254c5 AK |
3585 | int |
3586 | main () | |
3587 | { | |
f11781c5 AK |
3588 | #ifndef __GNUC__ |
3589 | choke me | |
3590 | #endif | |
3591 | ||
ad6254c5 AK |
3592 | ; |
3593 | return 0; | |
3594 | } | |
3595 | _ACEOF | |
f11781c5 AK |
3596 | if ac_fn_c_try_compile "$LINENO"; then : |
3597 | ac_compiler_gnu=yes | |
ad6254c5 | 3598 | else |
f11781c5 | 3599 | ac_compiler_gnu=no |
ad6254c5 | 3600 | fi |
f11781c5 AK |
3601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3602 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
7a197a62 | 3603 | |
d0191583 | 3604 | fi |
f11781c5 AK |
3605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3606 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3607 | if test $ac_compiler_gnu = yes; then | |
3608 | GCC=yes | |
d0191583 | 3609 | else |
f11781c5 | 3610 | GCC= |
d0191583 | 3611 | fi |
f11781c5 AK |
3612 | ac_test_CFLAGS=${CFLAGS+set} |
3613 | ac_save_CFLAGS=$CFLAGS | |
3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3615 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3616 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3617 | $as_echo_n "(cached) " >&6 | |
3618 | else | |
3619 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3620 | ac_c_werror_flag=yes | |
3621 | ac_cv_prog_cc_g=no | |
3622 | CFLAGS="-g" | |
3623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3624 | /* end confdefs.h. */ | |
72b2cb61 | 3625 | |
f11781c5 AK |
3626 | int |
3627 | main () | |
3628 | { | |
72b2cb61 | 3629 | |
f11781c5 AK |
3630 | ; |
3631 | return 0; | |
3632 | } | |
3633 | _ACEOF | |
3634 | if ac_fn_c_try_compile "$LINENO"; then : | |
3635 | ac_cv_prog_cc_g=yes | |
3636 | else | |
3637 | CFLAGS="" | |
3638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3639 | /* end confdefs.h. */ | |
ad6254c5 | 3640 | |
f11781c5 AK |
3641 | int |
3642 | main () | |
3643 | { | |
ad6254c5 | 3644 | |
f11781c5 AK |
3645 | ; |
3646 | return 0; | |
3647 | } | |
d0191583 | 3648 | _ACEOF |
f11781c5 AK |
3649 | if ac_fn_c_try_compile "$LINENO"; then : |
3650 | ||
3651 | else | |
3652 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3653 | CFLAGS="-g" | |
3654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3655 | /* end confdefs.h. */ |
7a197a62 | 3656 | |
f11781c5 AK |
3657 | int |
3658 | main () | |
3659 | { | |
ad6254c5 | 3660 | |
f11781c5 AK |
3661 | ; |
3662 | return 0; | |
3663 | } | |
3664 | _ACEOF | |
3665 | if ac_fn_c_try_compile "$LINENO"; then : | |
3666 | ac_cv_prog_cc_g=yes | |
3667 | fi | |
3668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3669 | fi | |
3670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3671 | fi | |
3672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3673 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3674 | fi | |
3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3676 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3677 | if test "$ac_test_CFLAGS" = set; then | |
3678 | CFLAGS=$ac_save_CFLAGS | |
3679 | elif test $ac_cv_prog_cc_g = yes; then | |
3680 | if test "$GCC" = yes; then | |
3681 | CFLAGS="-g -O2" | |
3682 | else | |
3683 | CFLAGS="-g" | |
3684 | fi | |
3685 | else | |
3686 | if test "$GCC" = yes; then | |
3687 | CFLAGS="-O2" | |
3688 | else | |
3689 | CFLAGS= | |
3690 | fi | |
3691 | fi | |
3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3693 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3694 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3695 | $as_echo_n "(cached) " >&6 | |
3696 | else | |
3697 | ac_cv_prog_cc_c89=no | |
3698 | ac_save_CC=$CC | |
3699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3700 | /* end confdefs.h. */ | |
3701 | #include <stdarg.h> | |
3702 | #include <stdio.h> | |
3703 | #include <sys/types.h> | |
3704 | #include <sys/stat.h> | |
3705 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3706 | struct buf { int x; }; | |
3707 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3708 | static char *e (p, i) | |
3709 | char **p; | |
3710 | int i; | |
3711 | { | |
3712 | return p[i]; | |
3713 | } | |
3714 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3715 | { | |
3716 | char *s; | |
3717 | va_list v; | |
3718 | va_start (v,p); | |
3719 | s = g (p, va_arg (v,int)); | |
3720 | va_end (v); | |
3721 | return s; | |
3722 | } | |
ad6254c5 | 3723 | |
f11781c5 AK |
3724 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3725 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3726 | These don't provoke an error unfortunately, instead are silently treated | |
3727 | as 'x'. The following induces an error, until -std is added to get | |
3728 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3729 | array size at least. It's necessary to write '\x00'==0 to get something | |
3730 | that's true only with -std. */ | |
3731 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
72b2cb61 | 3732 | |
f11781c5 AK |
3733 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3734 | inside strings and character constants. */ | |
3735 | #define FOO(x) 'x' | |
3736 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
d0191583 | 3737 | |
f11781c5 AK |
3738 | int test (int i, double x); |
3739 | struct s1 {int (*f) (int a);}; | |
3740 | struct s2 {int (*f) (double a);}; | |
3741 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3742 | int argc; | |
3743 | char **argv; | |
d0191583 JM |
3744 | int |
3745 | main () | |
3746 | { | |
f11781c5 | 3747 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
d0191583 JM |
3748 | ; |
3749 | return 0; | |
3750 | } | |
72b2cb61 | 3751 | _ACEOF |
f11781c5 AK |
3752 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3753 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3754 | do | |
3755 | CC="$ac_save_CC $ac_arg" | |
3756 | if ac_fn_c_try_compile "$LINENO"; then : | |
3757 | ac_cv_prog_cc_c89=$ac_arg | |
3758 | fi | |
3759 | rm -f core conftest.err conftest.$ac_objext | |
3760 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3761 | done | |
3762 | rm -f conftest.$ac_ext | |
3763 | CC=$ac_save_CC | |
3764 | ||
3765 | fi | |
3766 | # AC_CACHE_VAL | |
3767 | case "x$ac_cv_prog_cc_c89" in | |
3768 | x) | |
3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3770 | $as_echo "none needed" >&6; } ;; | |
3771 | xno) | |
3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3773 | $as_echo "unsupported" >&6; } ;; | |
3774 | *) | |
3775 | CC="$CC $ac_cv_prog_cc_c89" | |
3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3777 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
d0191583 | 3778 | esac |
f11781c5 AK |
3779 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
3780 | ||
3781 | fi | |
3782 | ||
3783 | ac_ext=c | |
3784 | ac_cpp='$CPP $CPPFLAGS' | |
3785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
72b2cb61 | 3788 | |
ad6254c5 | 3789 | |
7a197a62 | 3790 | |
f11781c5 AK |
3791 | ac_ext=c |
3792 | ac_cpp='$CPP $CPPFLAGS' | |
3793 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3794 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3795 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3797 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3798 | # On Suns, sometimes $CPP names a directory. | |
3799 | if test -n "$CPP" && test -d "$CPP"; then | |
3800 | CPP= | |
3801 | fi | |
3802 | if test -z "$CPP"; then | |
3803 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
ec6a6fbe | 3804 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 3805 | else |
f11781c5 AK |
3806 | # Double quotes because CPP needs to be expanded |
3807 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3808 | do | |
3809 | ac_preproc_ok=false | |
3810 | for ac_c_preproc_warn_flag in '' yes | |
3811 | do | |
3812 | # Use a header file that comes with gcc, so configuring glibc | |
3813 | # with a fresh cross-compiler works. | |
3814 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3815 | # <limits.h> exists even on freestanding compilers. | |
3816 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3817 | # not just through cpp. "Syntax error" is here to catch this case. | |
3818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d0191583 | 3819 | /* end confdefs.h. */ |
d0191583 JM |
3820 | #ifdef __STDC__ |
3821 | # include <limits.h> | |
3822 | #else | |
3823 | # include <assert.h> | |
3824 | #endif | |
f11781c5 AK |
3825 | Syntax error |
3826 | _ACEOF | |
3827 | if ac_fn_c_try_cpp "$LINENO"; then : | |
72b2cb61 | 3828 | |
f11781c5 AK |
3829 | else |
3830 | # Broken: fails on valid input. | |
3831 | continue | |
3832 | fi | |
3833 | rm -f conftest.err conftest.$ac_ext | |
d0191583 | 3834 | |
f11781c5 AK |
3835 | # OK, works on sane cases. Now check whether nonexistent headers |
3836 | # can be detected and how. | |
3837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3838 | /* end confdefs.h. */ | |
3839 | #include <ac_nonexistent.h> | |
72b2cb61 | 3840 | _ACEOF |
f11781c5 AK |
3841 | if ac_fn_c_try_cpp "$LINENO"; then : |
3842 | # Broken: success on invalid input. | |
3843 | continue | |
d0191583 | 3844 | else |
f11781c5 AK |
3845 | # Passes both tests. |
3846 | ac_preproc_ok=: | |
3847 | break | |
ad6254c5 | 3848 | fi |
f11781c5 | 3849 | rm -f conftest.err conftest.$ac_ext |
ad6254c5 | 3850 | |
f11781c5 AK |
3851 | done |
3852 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3853 | rm -f conftest.err conftest.$ac_ext | |
3854 | if $ac_preproc_ok; then : | |
3855 | break | |
7a197a62 AK |
3856 | fi |
3857 | ||
f11781c5 AK |
3858 | done |
3859 | ac_cv_prog_CPP=$CPP | |
ad6254c5 | 3860 | |
7a197a62 | 3861 | fi |
f11781c5 AK |
3862 | CPP=$ac_cv_prog_CPP |
3863 | else | |
3864 | ac_cv_prog_CPP=$CPP | |
d0191583 | 3865 | fi |
f11781c5 AK |
3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3867 | $as_echo "$CPP" >&6; } | |
3868 | ac_preproc_ok=false | |
3869 | for ac_c_preproc_warn_flag in '' yes | |
3870 | do | |
3871 | # Use a header file that comes with gcc, so configuring glibc | |
3872 | # with a fresh cross-compiler works. | |
3873 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3874 | # <limits.h> exists even on freestanding compilers. | |
3875 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3876 | # not just through cpp. "Syntax error" is here to catch this case. | |
3877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3878 | /* end confdefs.h. */ | |
3879 | #ifdef __STDC__ | |
3880 | # include <limits.h> | |
3881 | #else | |
3882 | # include <assert.h> | |
3883 | #endif | |
3884 | Syntax error | |
3885 | _ACEOF | |
3886 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7a197a62 | 3887 | |
9c961554 | 3888 | else |
f11781c5 AK |
3889 | # Broken: fails on valid input. |
3890 | continue | |
9c961554 | 3891 | fi |
f11781c5 | 3892 | rm -f conftest.err conftest.$ac_ext |
9c961554 | 3893 | |
f11781c5 AK |
3894 | # OK, works on sane cases. Now check whether nonexistent headers |
3895 | # can be detected and how. | |
3896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3897 | /* end confdefs.h. */ | |
3898 | #include <ac_nonexistent.h> | |
3899 | _ACEOF | |
3900 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3901 | # Broken: success on invalid input. | |
3902 | continue | |
3903 | else | |
3904 | # Passes both tests. | |
3905 | ac_preproc_ok=: | |
3906 | break | |
3907 | fi | |
3908 | rm -f conftest.err conftest.$ac_ext | |
ad6254c5 | 3909 | |
f11781c5 AK |
3910 | done |
3911 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3912 | rm -f conftest.err conftest.$ac_ext | |
3913 | if $ac_preproc_ok; then : | |
d0191583 | 3914 | |
f11781c5 AK |
3915 | else |
3916 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3917 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3918 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3919 | See \`config.log' for more details" "$LINENO" 5; } | |
7a197a62 AK |
3920 | fi |
3921 | ||
f11781c5 AK |
3922 | ac_ext=c |
3923 | ac_cpp='$CPP $CPPFLAGS' | |
3924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad6254c5 | 3927 | |
ad6254c5 | 3928 | |
f11781c5 AK |
3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3930 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3931 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3932 | $as_echo_n "(cached) " >&6 | |
3933 | else | |
3934 | if test -z "$GREP"; then | |
3935 | ac_path_GREP_found=false | |
3936 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3938 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3939 | do | |
3940 | IFS=$as_save_IFS | |
3941 | test -z "$as_dir" && as_dir=. | |
3942 | for ac_prog in grep ggrep; do | |
3943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3944 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3945 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3946 | # Check for GNU ac_path_GREP and select it if it is found. | |
3947 | # Check for GNU $ac_path_GREP | |
3948 | case `"$ac_path_GREP" --version 2>&1` in | |
3949 | *GNU*) | |
3950 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3951 | *) | |
3952 | ac_count=0 | |
3953 | $as_echo_n 0123456789 >"conftest.in" | |
3954 | while : | |
3955 | do | |
3956 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3957 | mv "conftest.tmp" "conftest.in" | |
3958 | cp "conftest.in" "conftest.nl" | |
3959 | $as_echo 'GREP' >> "conftest.nl" | |
3960 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3961 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3962 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3963 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3964 | # Best one so far, save it but keep looking for a better one | |
3965 | ac_cv_path_GREP="$ac_path_GREP" | |
3966 | ac_path_GREP_max=$ac_count | |
3967 | fi | |
3968 | # 10*(2^10) chars as input seems more than enough | |
3969 | test $ac_count -gt 10 && break | |
3970 | done | |
3971 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3972 | esac | |
ad6254c5 | 3973 | |
f11781c5 AK |
3974 | $ac_path_GREP_found && break 3 |
3975 | done | |
3976 | done | |
3977 | done | |
3978 | IFS=$as_save_IFS | |
3979 | if test -z "$ac_cv_path_GREP"; then | |
3980 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3981 | fi | |
3982 | else | |
3983 | ac_cv_path_GREP=$GREP | |
7a197a62 AK |
3984 | fi |
3985 | ||
d0191583 | 3986 | fi |
f11781c5 AK |
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
3988 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3989 | GREP="$ac_cv_path_GREP" | |
ad6254c5 | 3990 | |
24bbc4d7 | 3991 | |
f11781c5 AK |
3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
3993 | $as_echo_n "checking for egrep... " >&6; } | |
3994 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3995 | $as_echo_n "(cached) " >&6 | |
3996 | else | |
3997 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3998 | then ac_cv_path_EGREP="$GREP -E" | |
3999 | else | |
4000 | if test -z "$EGREP"; then | |
4001 | ac_path_EGREP_found=false | |
4002 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4004 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4005 | do | |
4006 | IFS=$as_save_IFS | |
4007 | test -z "$as_dir" && as_dir=. | |
4008 | for ac_prog in egrep; do | |
4009 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4010 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4011 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4012 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4013 | # Check for GNU $ac_path_EGREP | |
4014 | case `"$ac_path_EGREP" --version 2>&1` in | |
4015 | *GNU*) | |
4016 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4017 | *) | |
4018 | ac_count=0 | |
4019 | $as_echo_n 0123456789 >"conftest.in" | |
4020 | while : | |
4021 | do | |
4022 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4023 | mv "conftest.tmp" "conftest.in" | |
4024 | cp "conftest.in" "conftest.nl" | |
4025 | $as_echo 'EGREP' >> "conftest.nl" | |
4026 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4027 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4028 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4029 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4030 | # Best one so far, save it but keep looking for a better one | |
4031 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4032 | ac_path_EGREP_max=$ac_count | |
4033 | fi | |
4034 | # 10*(2^10) chars as input seems more than enough | |
4035 | test $ac_count -gt 10 && break | |
4036 | done | |
4037 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4038 | esac | |
24bbc4d7 | 4039 | |
f11781c5 AK |
4040 | $ac_path_EGREP_found && break 3 |
4041 | done | |
4042 | done | |
4043 | done | |
4044 | IFS=$as_save_IFS | |
4045 | if test -z "$ac_cv_path_EGREP"; then | |
4046 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4047 | fi | |
24bbc4d7 | 4048 | else |
f11781c5 | 4049 | ac_cv_path_EGREP=$EGREP |
24bbc4d7 AK |
4050 | fi |
4051 | ||
f11781c5 | 4052 | fi |
24bbc4d7 | 4053 | fi |
f11781c5 AK |
4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4055 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4056 | EGREP="$ac_cv_path_EGREP" | |
93bd259b AK |
4057 | |
4058 | ||
f11781c5 AK |
4059 | if test $ac_cv_c_compiler_gnu = yes; then |
4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
4061 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
4062 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : | |
4063 | $as_echo_n "(cached) " >&6 | |
93bd259b | 4064 | else |
f11781c5 AK |
4065 | ac_pattern="Autoconf.*'x'" |
4066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4067 | /* end confdefs.h. */ | |
4068 | #include <sgtty.h> | |
4069 | Autoconf TIOCGETP | |
4070 | _ACEOF | |
4071 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4072 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4073 | ac_cv_prog_gcc_traditional=yes | |
d0191583 | 4074 | else |
f11781c5 | 4075 | ac_cv_prog_gcc_traditional=no |
7a197a62 | 4076 | fi |
f11781c5 | 4077 | rm -f conftest* |
7a197a62 | 4078 | |
72b2cb61 | 4079 | |
f11781c5 AK |
4080 | if test $ac_cv_prog_gcc_traditional = no; then |
4081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4082 | /* end confdefs.h. */ | |
4083 | #include <termio.h> | |
4084 | Autoconf TCGETA | |
72b2cb61 | 4085 | _ACEOF |
f11781c5 AK |
4086 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4087 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
4088 | ac_cv_prog_gcc_traditional=yes | |
ad6254c5 | 4089 | fi |
f11781c5 | 4090 | rm -f conftest* |
ad6254c5 | 4091 | |
f11781c5 | 4092 | fi |
7a197a62 | 4093 | fi |
f11781c5 AK |
4094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
4095 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
4096 | if test $ac_cv_prog_gcc_traditional = yes; then | |
4097 | CC="$CC -traditional" | |
4098 | fi | |
ad6254c5 AK |
4099 | fi |
4100 | ||
f11781c5 AK |
4101 | # Find a good install program. We prefer a C program (faster), |
4102 | # so one script is as good as another. But avoid the broken or | |
4103 | # incompatible versions: | |
4104 | # SysV /etc/install, /usr/sbin/install | |
4105 | # SunOS /usr/etc/install | |
4106 | # IRIX /sbin/install | |
4107 | # AIX /bin/install | |
4108 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4109 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4110 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4111 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4112 | # OS/2's system install, which has a completely different semantic | |
4113 | # ./install, which can be erroneously created by make from ./install.sh. | |
4114 | # Reject install programs that cannot install multiple files. | |
4115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4116 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4117 | if test -z "$INSTALL"; then | |
4118 | if test "${ac_cv_path_install+set}" = set; then : | |
4119 | $as_echo_n "(cached) " >&6 | |
ad6254c5 | 4120 | else |
f11781c5 AK |
4121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4122 | for as_dir in $PATH | |
4123 | do | |
4124 | IFS=$as_save_IFS | |
4125 | test -z "$as_dir" && as_dir=. | |
4126 | # Account for people who put trailing slashes in PATH elements. | |
4127 | case $as_dir/ in #(( | |
4128 | ./ | .// | /[cC]/* | \ | |
4129 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4130 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4131 | /usr/ucb/* ) ;; | |
4132 | *) | |
4133 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4134 | # Don't use installbsd from OSF since it installs stuff as root | |
4135 | # by default. | |
4136 | for ac_prog in ginstall scoinst install; do | |
4137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4138 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4139 | if test $ac_prog = install && | |
4140 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4141 | # AIX install. It has an incompatible calling convention. | |
4142 | : | |
4143 | elif test $ac_prog = install && | |
4144 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4145 | # program-specific install script used by HP pwplus--don't use. | |
4146 | : | |
4147 | else | |
4148 | rm -rf conftest.one conftest.two conftest.dir | |
4149 | echo one > conftest.one | |
4150 | echo two > conftest.two | |
4151 | mkdir conftest.dir | |
4152 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4153 | test -s conftest.one && test -s conftest.two && | |
4154 | test -s conftest.dir/conftest.one && | |
4155 | test -s conftest.dir/conftest.two | |
4156 | then | |
4157 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4158 | break 3 | |
4159 | fi | |
4160 | fi | |
4161 | fi | |
4162 | done | |
4163 | done | |
4164 | ;; | |
4165 | esac | |
7a197a62 | 4166 | |
f11781c5 AK |
4167 | done |
4168 | IFS=$as_save_IFS | |
d0191583 | 4169 | |
f11781c5 | 4170 | rm -rf conftest.one conftest.two conftest.dir |
d0191583 JM |
4171 | |
4172 | fi | |
f11781c5 AK |
4173 | if test "${ac_cv_path_install+set}" = set; then |
4174 | INSTALL=$ac_cv_path_install | |
4175 | else | |
4176 | # As a last resort, use the slow shell script. Don't cache a | |
4177 | # value for INSTALL within a source directory, because that will | |
4178 | # break other packages using the cache if that directory is | |
4179 | # removed, or if the value is a relative name. | |
4180 | INSTALL=$ac_install_sh | |
4181 | fi | |
7a197a62 | 4182 | fi |
f11781c5 AK |
4183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4184 | $as_echo "$INSTALL" >&6; } | |
7a197a62 | 4185 | |
f11781c5 AK |
4186 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4187 | # It thinks the first close brace ends the variable substitution. | |
4188 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
06f62ad1 | 4189 | |
f11781c5 | 4190 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
72b2cb61 | 4191 | |
f11781c5 | 4192 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
72b2cb61 | 4193 | |
f11781c5 AK |
4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4195 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4196 | LN_S=$as_ln_s | |
4197 | if test "$LN_S" = "ln -s"; then | |
4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4199 | $as_echo "yes" >&6; } | |
4200 | else | |
4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4202 | $as_echo "no, using $LN_S" >&6; } | |
15d91f5a | 4203 | fi |
ad6254c5 | 4204 | |
f11781c5 AK |
4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4206 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4207 | set x ${MAKE-make} | |
4208 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4209 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
4210 | $as_echo_n "(cached) " >&6 | |
d0191583 | 4211 | else |
f11781c5 AK |
4212 | cat >conftest.make <<\_ACEOF |
4213 | SHELL = /bin/sh | |
4214 | all: | |
4215 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4216 | _ACEOF | |
4217 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4218 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4219 | *@@@%%%=?*=@@@%%%*) | |
4220 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4221 | *) | |
4222 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4223 | esac | |
4224 | rm -f conftest.make | |
4225 | fi | |
4226 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4228 | $as_echo "yes" >&6; } | |
4229 | SET_MAKE= | |
4230 | else | |
4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4232 | $as_echo "no" >&6; } | |
4233 | SET_MAKE="MAKE=${MAKE-make}" | |
ad6254c5 AK |
4234 | fi |
4235 | ||
f11781c5 AK |
4236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4237 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4238 | if test -z "$MKDIR_P"; then | |
4239 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
4240 | $as_echo_n "(cached) " >&6 | |
4241 | else | |
4242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4243 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4244 | do | |
4245 | IFS=$as_save_IFS | |
4246 | test -z "$as_dir" && as_dir=. | |
4247 | for ac_prog in mkdir gmkdir; do | |
4248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4249 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
4250 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4251 | 'mkdir (GNU coreutils) '* | \ | |
4252 | 'mkdir (coreutils) '* | \ | |
4253 | 'mkdir (fileutils) '4.1*) | |
4254 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4255 | break 3;; | |
4256 | esac | |
4257 | done | |
4258 | done | |
4259 | done | |
4260 | IFS=$as_save_IFS | |
d0191583 | 4261 | |
f11781c5 | 4262 | fi |
ad6254c5 | 4263 | |
f11781c5 AK |
4264 | test -d ./--version && rmdir ./--version |
4265 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4266 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4267 | else | |
4268 | # As a last resort, use the slow shell script. Don't cache a | |
4269 | # value for MKDIR_P within a source directory, because that will | |
4270 | # break other packages using the cache if that directory is | |
4271 | # removed, or if the value is a relative name. | |
4272 | MKDIR_P="$ac_install_sh -d" | |
4273 | fi | |
ad6254c5 | 4274 | fi |
f11781c5 AK |
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4276 | $as_echo "$MKDIR_P" >&6; } | |
7a197a62 | 4277 | |
f11781c5 AK |
4278 | if test -n "$ac_tool_prefix"; then |
4279 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4280 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4282 | $as_echo_n "checking for $ac_word... " >&6; } | |
4283 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4284 | $as_echo_n "(cached) " >&6 | |
4285 | else | |
4286 | if test -n "$RANLIB"; then | |
4287 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4288 | else | |
4289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4290 | for as_dir in $PATH | |
4291 | do | |
4292 | IFS=$as_save_IFS | |
4293 | test -z "$as_dir" && as_dir=. | |
4294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4296 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4298 | break 2 | |
4299 | fi | |
4300 | done | |
4301 | done | |
4302 | IFS=$as_save_IFS | |
d0191583 | 4303 | |
f11781c5 AK |
4304 | fi |
4305 | fi | |
4306 | RANLIB=$ac_cv_prog_RANLIB | |
4307 | if test -n "$RANLIB"; then | |
4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4309 | $as_echo "$RANLIB" >&6; } | |
d0191583 | 4310 | else |
f11781c5 AK |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4312 | $as_echo "no" >&6; } | |
ad6254c5 | 4313 | fi |
ad6254c5 | 4314 | |
8a2fc586 | 4315 | |
d0191583 | 4316 | fi |
f11781c5 AK |
4317 | if test -z "$ac_cv_prog_RANLIB"; then |
4318 | ac_ct_RANLIB=$RANLIB | |
4319 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4320 | set dummy ranlib; ac_word=$2 | |
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4322 | $as_echo_n "checking for $ac_word... " >&6; } | |
4323 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4324 | $as_echo_n "(cached) " >&6 | |
4325 | else | |
4326 | if test -n "$ac_ct_RANLIB"; then | |
4327 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4328 | else | |
4329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4330 | for as_dir in $PATH | |
4331 | do | |
4332 | IFS=$as_save_IFS | |
4333 | test -z "$as_dir" && as_dir=. | |
4334 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4336 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4338 | break 2 | |
4339 | fi | |
4340 | done | |
4341 | done | |
4342 | IFS=$as_save_IFS | |
8a2fc586 | 4343 | |
f11781c5 AK |
4344 | fi |
4345 | fi | |
4346 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4347 | if test -n "$ac_ct_RANLIB"; then | |
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4349 | $as_echo "$ac_ct_RANLIB" >&6; } | |
8fea97b7 | 4350 | else |
f11781c5 AK |
4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4352 | $as_echo "no" >&6; } | |
8fea97b7 ZK |
4353 | fi |
4354 | ||
f11781c5 AK |
4355 | if test "x$ac_ct_RANLIB" = x; then |
4356 | RANLIB=":" | |
4357 | else | |
4358 | case $cross_compiling:$ac_tool_warned in | |
4359 | yes:) | |
4360 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4361 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4362 | ac_tool_warned=yes ;; | |
8fea97b7 | 4363 | esac |
f11781c5 AK |
4364 | RANLIB=$ac_ct_RANLIB |
4365 | fi | |
d0191583 | 4366 | else |
f11781c5 | 4367 | RANLIB="$ac_cv_prog_RANLIB" |
d0191583 | 4368 | fi |
8a2fc586 | 4369 | |
f11781c5 AK |
4370 | # Extract the first word of "cflow", so it can be a program name with args. |
4371 | set dummy cflow; ac_word=$2 | |
4372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4373 | $as_echo_n "checking for $ac_word... " >&6; } | |
4374 | if test "${ac_cv_path_CFLOW_CMD+set}" = set; then : | |
4375 | $as_echo_n "(cached) " >&6 | |
4376 | else | |
4377 | case $CFLOW_CMD in | |
4378 | [\\/]* | ?:[\\/]*) | |
4379 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
4380 | ;; | |
4381 | *) | |
4382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4383 | for as_dir in $PATH | |
4384 | do | |
4385 | IFS=$as_save_IFS | |
4386 | test -z "$as_dir" && as_dir=. | |
4387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4388 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4389 | ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext" | |
4390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4391 | break 2 | |
4392 | fi | |
4393 | done | |
4394 | done | |
4395 | IFS=$as_save_IFS | |
8a2fc586 | 4396 | |
f11781c5 AK |
4397 | ;; |
4398 | esac | |
ad6254c5 | 4399 | fi |
f11781c5 AK |
4400 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD |
4401 | if test -n "$CFLOW_CMD"; then | |
4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5 | |
4403 | $as_echo "$CFLOW_CMD" >&6; } | |
37ddf259 | 4404 | else |
f11781c5 AK |
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4406 | $as_echo "no" >&6; } | |
37ddf259 AK |
4407 | fi |
4408 | ||
e2997b73 | 4409 | |
f11781c5 AK |
4410 | # Extract the first word of "cscope", so it can be a program name with args. |
4411 | set dummy cscope; ac_word=$2 | |
4412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
e2997b73 | 4413 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 4414 | if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then : |
e2997b73 AK |
4415 | $as_echo_n "(cached) " >&6 |
4416 | else | |
f11781c5 | 4417 | case $CSCOPE_CMD in |
e2997b73 | 4418 | [\\/]* | ?:[\\/]*) |
f11781c5 | 4419 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. |
e2997b73 AK |
4420 | ;; |
4421 | *) | |
4422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4423 | for as_dir in $PATH | |
4424 | do | |
4425 | IFS=$as_save_IFS | |
4426 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 4427 | for ac_exec_ext in '' $ac_executable_extensions; do |
e2997b73 | 4428 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
4429 | ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext" |
4430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
e2997b73 AK |
4431 | break 2 |
4432 | fi | |
4433 | done | |
f11781c5 | 4434 | done |
e2997b73 AK |
4435 | IFS=$as_save_IFS |
4436 | ||
4437 | ;; | |
4438 | esac | |
4439 | fi | |
f11781c5 AK |
4440 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD |
4441 | if test -n "$CSCOPE_CMD"; then | |
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5 | |
4443 | $as_echo "$CSCOPE_CMD" >&6; } | |
e2997b73 | 4444 | else |
f11781c5 | 4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
e2997b73 AK |
4446 | $as_echo "no" >&6; } |
4447 | fi | |
f11781c5 AK |
4448 | |
4449 | ||
4450 | ||
4451 | ################################################################################ | |
4452 | ac_header_dirent=no | |
4453 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
4454 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
4456 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
4457 | if eval "test \"\${$as_ac_Header+set}\"" = set; then : | |
4458 | $as_echo_n "(cached) " >&6 | |
4459 | else | |
4460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4461 | /* end confdefs.h. */ | |
4462 | #include <sys/types.h> | |
4463 | #include <$ac_hdr> | |
4464 | ||
4465 | int | |
4466 | main () | |
4467 | { | |
4468 | if ((DIR *) 0) | |
4469 | return 0; | |
4470 | ; | |
4471 | return 0; | |
4472 | } | |
4473 | _ACEOF | |
4474 | if ac_fn_c_try_compile "$LINENO"; then : | |
4475 | eval "$as_ac_Header=yes" | |
4476 | else | |
4477 | eval "$as_ac_Header=no" | |
4478 | fi | |
4479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4480 | fi | |
4481 | eval ac_res=\$$as_ac_Header | |
4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
4483 | $as_echo "$ac_res" >&6; } | |
4484 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4485 | cat >>confdefs.h <<_ACEOF | |
4486 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
4487 | _ACEOF | |
4488 | ||
4489 | ac_header_dirent=$ac_hdr; break | |
4490 | fi | |
4491 | ||
4492 | done | |
4493 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
4494 | if test $ac_header_dirent = dirent.h; then | |
4495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4496 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4497 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4498 | $as_echo_n "(cached) " >&6 | |
4499 | else | |
4500 | ac_func_search_save_LIBS=$LIBS | |
4501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4502 | /* end confdefs.h. */ | |
4503 | ||
4504 | /* Override any GCC internal prototype to avoid an error. | |
4505 | Use char because int might match the return type of a GCC | |
4506 | builtin and then its argument prototype would still apply. */ | |
4507 | #ifdef __cplusplus | |
4508 | extern "C" | |
4509 | #endif | |
4510 | char opendir (); | |
4511 | int | |
4512 | main () | |
4513 | { | |
4514 | return opendir (); | |
4515 | ; | |
4516 | return 0; | |
4517 | } | |
4518 | _ACEOF | |
4519 | for ac_lib in '' dir; do | |
4520 | if test -z "$ac_lib"; then | |
4521 | ac_res="none required" | |
4522 | else | |
4523 | ac_res=-l$ac_lib | |
4524 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4525 | fi | |
4526 | if ac_fn_c_try_link "$LINENO"; then : | |
4527 | ac_cv_search_opendir=$ac_res | |
4528 | fi | |
4529 | rm -f core conftest.err conftest.$ac_objext \ | |
4530 | conftest$ac_exeext | |
4531 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4532 | break | |
4533 | fi | |
4534 | done | |
4535 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4536 | ||
4537 | else | |
4538 | ac_cv_search_opendir=no | |
4539 | fi | |
4540 | rm conftest.$ac_ext | |
4541 | LIBS=$ac_func_search_save_LIBS | |
4542 | fi | |
4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
4544 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4545 | ac_res=$ac_cv_search_opendir | |
4546 | if test "$ac_res" != no; then : | |
4547 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4548 | |
4549 | fi | |
f11781c5 AK |
4550 | |
4551 | else | |
4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
4553 | $as_echo_n "checking for library containing opendir... " >&6; } | |
4554 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 AK |
4555 | $as_echo_n "(cached) " >&6 |
4556 | else | |
f11781c5 AK |
4557 | ac_func_search_save_LIBS=$LIBS |
4558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4559 | /* end confdefs.h. */ | |
e2997b73 | 4560 | |
f11781c5 AK |
4561 | /* Override any GCC internal prototype to avoid an error. |
4562 | Use char because int might match the return type of a GCC | |
4563 | builtin and then its argument prototype would still apply. */ | |
4564 | #ifdef __cplusplus | |
4565 | extern "C" | |
4566 | #endif | |
4567 | char opendir (); | |
4568 | int | |
4569 | main () | |
4570 | { | |
4571 | return opendir (); | |
4572 | ; | |
4573 | return 0; | |
4574 | } | |
4575 | _ACEOF | |
4576 | for ac_lib in '' x; do | |
4577 | if test -z "$ac_lib"; then | |
4578 | ac_res="none required" | |
4579 | else | |
4580 | ac_res=-l$ac_lib | |
4581 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4582 | fi | |
4583 | if ac_fn_c_try_link "$LINENO"; then : | |
4584 | ac_cv_search_opendir=$ac_res | |
e2997b73 | 4585 | fi |
f11781c5 AK |
4586 | rm -f core conftest.err conftest.$ac_objext \ |
4587 | conftest$ac_exeext | |
4588 | if test "${ac_cv_search_opendir+set}" = set; then : | |
4589 | break | |
e2997b73 | 4590 | fi |
f11781c5 AK |
4591 | done |
4592 | if test "${ac_cv_search_opendir+set}" = set; then : | |
e2997b73 | 4593 | |
e2997b73 | 4594 | else |
f11781c5 AK |
4595 | ac_cv_search_opendir=no |
4596 | fi | |
4597 | rm conftest.$ac_ext | |
4598 | LIBS=$ac_func_search_save_LIBS | |
e2997b73 | 4599 | fi |
f11781c5 AK |
4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
4601 | $as_echo "$ac_cv_search_opendir" >&6; } | |
4602 | ac_res=$ac_cv_search_opendir | |
4603 | if test "$ac_res" != no; then : | |
4604 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e2997b73 AK |
4605 | |
4606 | fi | |
8c4e8a18 | 4607 | |
e2997b73 AK |
4608 | fi |
4609 | ||
f11781c5 AK |
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4611 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4612 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4613 | $as_echo_n "(cached) " >&6 | |
4614 | else | |
4615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4616 | /* end confdefs.h. */ | |
4617 | #include <stdlib.h> | |
4618 | #include <stdarg.h> | |
4619 | #include <string.h> | |
4620 | #include <float.h> | |
e2997b73 | 4621 | |
f11781c5 AK |
4622 | int |
4623 | main () | |
4624 | { | |
4625 | ||
4626 | ; | |
4627 | return 0; | |
4628 | } | |
4629 | _ACEOF | |
4630 | if ac_fn_c_try_compile "$LINENO"; then : | |
4631 | ac_cv_header_stdc=yes | |
e2997b73 | 4632 | else |
f11781c5 | 4633 | ac_cv_header_stdc=no |
e2997b73 | 4634 | fi |
f11781c5 AK |
4635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4636 | ||
4637 | if test $ac_cv_header_stdc = yes; then | |
4638 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4640 | /* end confdefs.h. */ | |
4641 | #include <string.h> | |
4642 | ||
4643 | _ACEOF | |
4644 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4645 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4646 | ||
e2997b73 | 4647 | else |
f11781c5 | 4648 | ac_cv_header_stdc=no |
e2997b73 | 4649 | fi |
f11781c5 | 4650 | rm -f conftest* |
e2997b73 | 4651 | |
f11781c5 | 4652 | fi |
e2997b73 | 4653 | |
f11781c5 AK |
4654 | if test $ac_cv_header_stdc = yes; then |
4655 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4657 | /* end confdefs.h. */ | |
4658 | #include <stdlib.h> | |
e2997b73 | 4659 | |
f11781c5 AK |
4660 | _ACEOF |
4661 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4662 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4663 | |
e2997b73 | 4664 | else |
f11781c5 | 4665 | ac_cv_header_stdc=no |
e2997b73 | 4666 | fi |
f11781c5 | 4667 | rm -f conftest* |
e2997b73 | 4668 | |
e2997b73 | 4669 | fi |
90c80887 | 4670 | |
f11781c5 AK |
4671 | if test $ac_cv_header_stdc = yes; then |
4672 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4673 | if test "$cross_compiling" = yes; then : | |
4674 | : | |
4675 | else | |
4676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4677 | /* end confdefs.h. */ | |
4678 | #include <ctype.h> | |
4679 | #include <stdlib.h> | |
4680 | #if ((' ' & 0x0FF) == 0x020) | |
4681 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4682 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4683 | #else | |
4684 | # define ISLOWER(c) \ | |
4685 | (('a' <= (c) && (c) <= 'i') \ | |
4686 | || ('j' <= (c) && (c) <= 'r') \ | |
4687 | || ('s' <= (c) && (c) <= 'z')) | |
4688 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4689 | #endif | |
4690 | ||
4691 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4692 | int | |
4693 | main () | |
4694 | { | |
4695 | int i; | |
4696 | for (i = 0; i < 256; i++) | |
4697 | if (XOR (islower (i), ISLOWER (i)) | |
4698 | || toupper (i) != TOUPPER (i)) | |
4699 | return 2; | |
4700 | return 0; | |
4701 | } | |
4702 | _ACEOF | |
4703 | if ac_fn_c_try_run "$LINENO"; then : | |
90c80887 | 4704 | |
90c80887 | 4705 | else |
f11781c5 | 4706 | ac_cv_header_stdc=no |
90c80887 | 4707 | fi |
f11781c5 AK |
4708 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4709 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
90c80887 | 4710 | fi |
90c80887 | 4711 | |
90c80887 | 4712 | fi |
90c80887 | 4713 | fi |
f11781c5 AK |
4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4715 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4716 | if test $ac_cv_header_stdc = yes; then | |
90c80887 | 4717 | |
f11781c5 | 4718 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
90c80887 | 4719 | |
90c80887 | 4720 | fi |
f11781c5 AK |
4721 | |
4722 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4723 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4724 | inttypes.h stdint.h unistd.h | |
4725 | do : | |
4726 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4727 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4728 | " | |
4729 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4730 | cat >>confdefs.h <<_ACEOF | |
4731 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4732 | _ACEOF | |
4733 | ||
90c80887 | 4734 | fi |
f11781c5 AK |
4735 | |
4736 | done | |
4737 | ||
4738 | ||
4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 | |
4740 | $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } | |
4741 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : | |
4742 | $as_echo_n "(cached) " >&6 | |
4743 | else | |
4744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4745 | /* end confdefs.h. */ | |
4746 | #include <sys/types.h> | |
4747 | int | |
4748 | main () | |
4749 | { | |
4750 | return makedev(0, 0); | |
4751 | ; | |
4752 | return 0; | |
4753 | } | |
4754 | _ACEOF | |
4755 | if ac_fn_c_try_link "$LINENO"; then : | |
4756 | ac_cv_header_sys_types_h_makedev=yes | |
4757 | else | |
4758 | ac_cv_header_sys_types_h_makedev=no | |
90c80887 | 4759 | fi |
f11781c5 AK |
4760 | rm -f core conftest.err conftest.$ac_objext \ |
4761 | conftest$ac_exeext conftest.$ac_ext | |
4762 | ||
90c80887 | 4763 | fi |
f11781c5 AK |
4764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 |
4765 | $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } | |
4766 | ||
4767 | if test $ac_cv_header_sys_types_h_makedev = no; then | |
4768 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
4769 | if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : | |
4770 | ||
4771 | $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h | |
90c80887 | 4772 | |
a946372e | 4773 | fi |
e2997b73 | 4774 | |
e2997b73 | 4775 | |
a946372e | 4776 | |
f11781c5 AK |
4777 | if test $ac_cv_header_sys_mkdev_h = no; then |
4778 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
4779 | if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : | |
4780 | ||
4781 | $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | |
4782 | ||
e2997b73 | 4783 | fi |
a946372e | 4784 | |
a946372e | 4785 | |
f11781c5 AK |
4786 | fi |
4787 | fi | |
4788 | ||
4789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4790 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4791 | if test "${ac_cv_header_stdc+set}" = set; then : | |
a946372e AK |
4792 | $as_echo_n "(cached) " >&6 |
4793 | else | |
f11781c5 | 4794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4795 | /* end confdefs.h. */ |
f11781c5 AK |
4796 | #include <stdlib.h> |
4797 | #include <stdarg.h> | |
4798 | #include <string.h> | |
4799 | #include <float.h> | |
a946372e | 4800 | |
a946372e AK |
4801 | int |
4802 | main () | |
4803 | { | |
f11781c5 | 4804 | |
a946372e AK |
4805 | ; |
4806 | return 0; | |
4807 | } | |
4808 | _ACEOF | |
f11781c5 AK |
4809 | if ac_fn_c_try_compile "$LINENO"; then : |
4810 | ac_cv_header_stdc=yes | |
e2997b73 | 4811 | else |
f11781c5 AK |
4812 | ac_cv_header_stdc=no |
4813 | fi | |
4814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4815 | ||
4816 | if test $ac_cv_header_stdc = yes; then | |
4817 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4819 | /* end confdefs.h. */ | |
4820 | #include <string.h> | |
4821 | ||
4822 | _ACEOF | |
4823 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4824 | $EGREP "memchr" >/dev/null 2>&1; then : | |
e2997b73 | 4825 | |
f11781c5 AK |
4826 | else |
4827 | ac_cv_header_stdc=no | |
a946372e | 4828 | fi |
f11781c5 | 4829 | rm -f conftest* |
e2997b73 | 4830 | |
a946372e | 4831 | fi |
e2997b73 | 4832 | |
f11781c5 AK |
4833 | if test $ac_cv_header_stdc = yes; then |
4834 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4836 | /* end confdefs.h. */ | |
4837 | #include <stdlib.h> | |
4838 | ||
4839 | _ACEOF | |
4840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4841 | $EGREP "free" >/dev/null 2>&1; then : | |
e2997b73 | 4842 | |
e2997b73 | 4843 | else |
f11781c5 | 4844 | ac_cv_header_stdc=no |
e2997b73 | 4845 | fi |
f11781c5 | 4846 | rm -f conftest* |
e2997b73 | 4847 | |
f11781c5 | 4848 | fi |
a946372e | 4849 | |
f11781c5 AK |
4850 | if test $ac_cv_header_stdc = yes; then |
4851 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4852 | if test "$cross_compiling" = yes; then : | |
4853 | : | |
4854 | else | |
4855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4856 | /* end confdefs.h. */ | |
4857 | #include <ctype.h> | |
4858 | #include <stdlib.h> | |
4859 | #if ((' ' & 0x0FF) == 0x020) | |
4860 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4861 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4862 | #else | |
4863 | # define ISLOWER(c) \ | |
4864 | (('a' <= (c) && (c) <= 'i') \ | |
4865 | || ('j' <= (c) && (c) <= 'r') \ | |
4866 | || ('s' <= (c) && (c) <= 'z')) | |
4867 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4868 | #endif | |
e2997b73 | 4869 | |
f11781c5 AK |
4870 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4871 | int | |
4872 | main () | |
4873 | { | |
4874 | int i; | |
4875 | for (i = 0; i < 256; i++) | |
4876 | if (XOR (islower (i), ISLOWER (i)) | |
4877 | || toupper (i) != TOUPPER (i)) | |
4878 | return 2; | |
4879 | return 0; | |
4880 | } | |
4881 | _ACEOF | |
4882 | if ac_fn_c_try_run "$LINENO"; then : | |
e2997b73 | 4883 | |
e2997b73 | 4884 | else |
f11781c5 | 4885 | ac_cv_header_stdc=no |
e2997b73 | 4886 | fi |
f11781c5 AK |
4887 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4888 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
e2997b73 | 4889 | fi |
f11781c5 | 4890 | |
e2997b73 | 4891 | fi |
e2997b73 | 4892 | fi |
f11781c5 AK |
4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4894 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4895 | if test $ac_cv_header_stdc = yes; then | |
e2997b73 | 4896 | |
f11781c5 | 4897 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
e2997b73 | 4898 | |
f11781c5 | 4899 | fi |
e2997b73 | 4900 | |
f11781c5 AK |
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4902 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
4903 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : | |
4904 | $as_echo_n "(cached) " >&6 | |
4905 | else | |
4906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4907 | /* end confdefs.h. */ | |
4908 | #include <sys/types.h> | |
4909 | #include <sys/wait.h> | |
4910 | #ifndef WEXITSTATUS | |
4911 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
4912 | #endif | |
4913 | #ifndef WIFEXITED | |
4914 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4915 | #endif | |
e2997b73 | 4916 | |
f11781c5 AK |
4917 | int |
4918 | main () | |
4919 | { | |
4920 | int s; | |
4921 | wait (&s); | |
4922 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4923 | ; | |
4924 | return 0; | |
4925 | } | |
4926 | _ACEOF | |
4927 | if ac_fn_c_try_compile "$LINENO"; then : | |
4928 | ac_cv_header_sys_wait_h=yes | |
e2997b73 | 4929 | else |
f11781c5 | 4930 | ac_cv_header_sys_wait_h=no |
e2997b73 | 4931 | fi |
f11781c5 AK |
4932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4933 | fi | |
4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
4935 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
4936 | if test $ac_cv_header_sys_wait_h = yes; then | |
e2997b73 | 4937 | |
f11781c5 | 4938 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
e2997b73 | 4939 | |
d0191583 | 4940 | fi |
f11781c5 AK |
4941 | |
4942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
4943 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
4944 | if test "${ac_cv_header_time+set}" = set; then : | |
4945 | $as_echo_n "(cached) " >&6 | |
fc54be10 | 4946 | else |
f11781c5 | 4947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 4948 | /* end confdefs.h. */ |
f11781c5 AK |
4949 | #include <sys/types.h> |
4950 | #include <sys/time.h> | |
4951 | #include <time.h> | |
4952 | ||
4953 | int | |
4954 | main () | |
4955 | { | |
4956 | if ((struct tm *) 0) | |
4957 | return 0; | |
4958 | ; | |
4959 | return 0; | |
4960 | } | |
a946372e | 4961 | _ACEOF |
f11781c5 AK |
4962 | if ac_fn_c_try_compile "$LINENO"; then : |
4963 | ac_cv_header_time=yes | |
a946372e | 4964 | else |
f11781c5 AK |
4965 | ac_cv_header_time=no |
4966 | fi | |
4967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4968 | fi | |
4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
4970 | $as_echo "$ac_cv_header_time" >&6; } | |
4971 | if test $ac_cv_header_time = yes; then | |
4972 | ||
4973 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
4974 | ||
4975 | fi | |
4976 | ||
4977 | ||
4978 | for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \ | |
4979 | langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \ | |
4980 | sys/wait.h time.h | |
4981 | do : | |
4982 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4983 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4984 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4985 | cat >>confdefs.h <<_ACEOF | |
4986 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4987 | _ACEOF | |
d0191583 | 4988 | |
f11781c5 AK |
4989 | else |
4990 | as_fn_error $? "bailing out" "$LINENO" 5 | |
d0191583 JM |
4991 | fi |
4992 | ||
f11781c5 | 4993 | done |
fddafd51 | 4994 | |
f11781c5 AK |
4995 | |
4996 | case "$host_os" in | |
4997 | linux*) | |
4998 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
4999 | do : | |
5000 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5001 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5002 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5003 | cat >>confdefs.h <<_ACEOF | |
5004 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a946372e | 5005 | _ACEOF |
a946372e | 5006 | |
f11781c5 AK |
5007 | else |
5008 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a946372e AK |
5009 | fi |
5010 | ||
f11781c5 AK |
5011 | done |
5012 | ;; | |
5013 | darwin*) | |
5014 | for ac_header in machine/endian.h sys/disk.h | |
5015 | do : | |
5016 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5017 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5018 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5019 | cat >>confdefs.h <<_ACEOF | |
5020 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5021 | _ACEOF | |
a946372e | 5022 | |
f11781c5 AK |
5023 | else |
5024 | as_fn_error $? "bailing out" "$LINENO" 5 | |
5025 | fi | |
a946372e | 5026 | |
f11781c5 AK |
5027 | done |
5028 | ;; | |
a946372e | 5029 | esac |
f11781c5 AK |
5030 | |
5031 | for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \ | |
5032 | stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \ | |
5033 | sys/types.h unistd.h | |
5034 | do : | |
5035 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5036 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5037 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5038 | cat >>confdefs.h <<_ACEOF | |
5039 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5040 | _ACEOF | |
5041 | ||
a946372e | 5042 | else |
f11781c5 | 5043 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5044 | fi |
a946372e | 5045 | |
f11781c5 AK |
5046 | done |
5047 | ||
5048 | for ac_header in termios.h sys/statvfs.h | |
5049 | do : | |
5050 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5051 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5052 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
5053 | cat >>confdefs.h <<_ACEOF |
5054 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5055 | _ACEOF | |
5056 | ||
a946372e AK |
5057 | fi |
5058 | ||
5059 | done | |
5060 | ||
a946372e | 5061 | |
f11781c5 AK |
5062 | ################################################################################ |
5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
5064 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
5065 | if test "${ac_cv_c_const+set}" = set; then : | |
a946372e | 5066 | $as_echo_n "(cached) " >&6 |
a946372e | 5067 | else |
f11781c5 | 5068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5069 | /* end confdefs.h. */ |
a946372e | 5070 | |
f11781c5 AK |
5071 | int |
5072 | main () | |
5073 | { | |
5074 | /* FIXME: Include the comments suggested by Paul. */ | |
5075 | #ifndef __cplusplus | |
5076 | /* Ultrix mips cc rejects this. */ | |
5077 | typedef int charset[2]; | |
5078 | const charset cs; | |
5079 | /* SunOS 4.1.1 cc rejects this. */ | |
5080 | char const *const *pcpcc; | |
5081 | char **ppc; | |
5082 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5083 | struct point {int x, y;}; | |
5084 | static struct point const zero = {0,0}; | |
5085 | /* AIX XL C 1.02.0.0 rejects this. | |
5086 | It does not let you subtract one const X* pointer from another in | |
5087 | an arm of an if-expression whose if-part is not a constant | |
5088 | expression */ | |
5089 | const char *g = "string"; | |
5090 | pcpcc = &g + (g ? g-g : 0); | |
5091 | /* HPUX 7.0 cc rejects these. */ | |
5092 | ++pcpcc; | |
5093 | ppc = (char**) pcpcc; | |
5094 | pcpcc = (char const *const *) ppc; | |
5095 | { /* SCO 3.2v4 cc rejects this. */ | |
5096 | char *t; | |
5097 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
a946372e | 5098 | |
f11781c5 AK |
5099 | *t++ = 0; |
5100 | if (s) return 0; | |
5101 | } | |
5102 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5103 | int x[] = {25, 17}; | |
5104 | const int *foo = &x[0]; | |
5105 | ++foo; | |
5106 | } | |
5107 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5108 | typedef const int *iptr; | |
5109 | iptr p = 0; | |
5110 | ++p; | |
5111 | } | |
5112 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5113 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5114 | struct s { int j; const int *ap[3]; }; | |
5115 | struct s *b; b->j = 5; | |
5116 | } | |
5117 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5118 | const int foo = 10; | |
5119 | if (!foo) return 0; | |
5120 | } | |
5121 | return !cs[0] && !zero.x; | |
5122 | #endif | |
a946372e | 5123 | |
f11781c5 AK |
5124 | ; |
5125 | return 0; | |
5126 | } | |
a946372e | 5127 | _ACEOF |
f11781c5 AK |
5128 | if ac_fn_c_try_compile "$LINENO"; then : |
5129 | ac_cv_c_const=yes | |
a946372e | 5130 | else |
f11781c5 AK |
5131 | ac_cv_c_const=no |
5132 | fi | |
5133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a946372e | 5134 | fi |
f11781c5 AK |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
5136 | $as_echo "$ac_cv_c_const" >&6; } | |
5137 | if test $ac_cv_c_const = no; then | |
a946372e | 5138 | |
f11781c5 | 5139 | $as_echo "#define const /**/" >>confdefs.h |
a946372e | 5140 | |
f11781c5 | 5141 | fi |
a946372e | 5142 | |
f11781c5 AK |
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
5144 | $as_echo_n "checking for inline... " >&6; } | |
5145 | if test "${ac_cv_c_inline+set}" = set; then : | |
a946372e AK |
5146 | $as_echo_n "(cached) " >&6 |
5147 | else | |
f11781c5 AK |
5148 | ac_cv_c_inline=no |
5149 | for ac_kw in inline __inline__ __inline; do | |
5150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5151 | /* end confdefs.h. */ | |
5152 | #ifndef __cplusplus | |
5153 | typedef int foo_t; | |
5154 | static $ac_kw foo_t static_foo () {return 0; } | |
5155 | $ac_kw foo_t foo () {return 0; } | |
5156 | #endif | |
5157 | ||
5158 | _ACEOF | |
5159 | if ac_fn_c_try_compile "$LINENO"; then : | |
5160 | ac_cv_c_inline=$ac_kw | |
a946372e | 5161 | fi |
f11781c5 AK |
5162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5163 | test "$ac_cv_c_inline" != no && break | |
5164 | done | |
a946372e AK |
5165 | |
5166 | fi | |
f11781c5 AK |
5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
5168 | $as_echo "$ac_cv_c_inline" >&6; } | |
5169 | ||
5170 | case $ac_cv_c_inline in | |
5171 | inline | yes) ;; | |
5172 | *) | |
5173 | case $ac_cv_c_inline in | |
5174 | no) ac_val=;; | |
5175 | *) ac_val=$ac_cv_c_inline;; | |
5176 | esac | |
5177 | cat >>confdefs.h <<_ACEOF | |
5178 | #ifndef __cplusplus | |
5179 | #define inline $ac_val | |
5180 | #endif | |
5181 | _ACEOF | |
5182 | ;; | |
5183 | esac | |
5184 | ||
5185 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5186 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5187 | ||
5188 | cat >>confdefs.h <<_ACEOF | |
5189 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
a946372e AK |
5190 | _ACEOF |
5191 | ||
f11781c5 | 5192 | |
a946372e AK |
5193 | fi |
5194 | ||
f11781c5 AK |
5195 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
5196 | if test "x$ac_cv_type_off_t" = x""yes; then : | |
a946372e | 5197 | |
a946372e | 5198 | else |
f11781c5 AK |
5199 | |
5200 | cat >>confdefs.h <<_ACEOF | |
5201 | #define off_t long int | |
5202 | _ACEOF | |
5203 | ||
a946372e AK |
5204 | fi |
5205 | ||
f11781c5 AK |
5206 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
5207 | if test "x$ac_cv_type_pid_t" = x""yes; then : | |
a946372e | 5208 | |
a946372e | 5209 | else |
f11781c5 AK |
5210 | |
5211 | cat >>confdefs.h <<_ACEOF | |
5212 | #define pid_t int | |
5213 | _ACEOF | |
5214 | ||
5215 | fi | |
5216 | ||
5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 | |
5218 | $as_echo_n "checking return type of signal handlers... " >&6; } | |
5219 | if test "${ac_cv_type_signal+set}" = set; then : | |
5220 | $as_echo_n "(cached) " >&6 | |
a946372e | 5221 | else |
f11781c5 AK |
5222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5223 | /* end confdefs.h. */ | |
5224 | #include <sys/types.h> | |
5225 | #include <signal.h> | |
5226 | ||
5227 | int | |
5228 | main () | |
5229 | { | |
5230 | return *(signal (0, 0)) (0) == 1; | |
5231 | ; | |
5232 | return 0; | |
5233 | } | |
5234 | _ACEOF | |
5235 | if ac_fn_c_try_compile "$LINENO"; then : | |
5236 | ac_cv_type_signal=int | |
5237 | else | |
5238 | ac_cv_type_signal=void | |
a946372e | 5239 | fi |
f11781c5 | 5240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a946372e | 5241 | fi |
f11781c5 AK |
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
5243 | $as_echo "$ac_cv_type_signal" >&6; } | |
a946372e | 5244 | |
f11781c5 AK |
5245 | cat >>confdefs.h <<_ACEOF |
5246 | #define RETSIGTYPE $ac_cv_type_signal | |
5247 | _ACEOF | |
a946372e AK |
5248 | |
5249 | ||
f11781c5 AK |
5250 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5251 | if test "x$ac_cv_type_size_t" = x""yes; then : | |
a946372e | 5252 | |
a946372e | 5253 | else |
a946372e | 5254 | |
f11781c5 AK |
5255 | cat >>confdefs.h <<_ACEOF |
5256 | #define size_t unsigned int | |
5257 | _ACEOF | |
a946372e | 5258 | |
a946372e | 5259 | fi |
f11781c5 AK |
5260 | |
5261 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
5262 | if test "x$ac_cv_type_mode_t" = x""yes; then : | |
5263 | ||
a946372e | 5264 | else |
f11781c5 AK |
5265 | |
5266 | cat >>confdefs.h <<_ACEOF | |
5267 | #define mode_t int | |
a946372e | 5268 | _ACEOF |
a946372e | 5269 | |
a946372e AK |
5270 | fi |
5271 | ||
f11781c5 AK |
5272 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
5273 | case $ac_cv_c_int8_t in #( | |
5274 | no|yes) ;; #( | |
5275 | *) | |
a946372e | 5276 | |
f11781c5 AK |
5277 | cat >>confdefs.h <<_ACEOF |
5278 | #define int8_t $ac_cv_c_int8_t | |
a946372e | 5279 | _ACEOF |
f11781c5 | 5280 | ;; |
a946372e | 5281 | esac |
a946372e | 5282 | |
f11781c5 AK |
5283 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
5284 | case $ac_cv_c_int16_t in #( | |
5285 | no|yes) ;; #( | |
5286 | *) | |
a946372e | 5287 | |
f11781c5 AK |
5288 | cat >>confdefs.h <<_ACEOF |
5289 | #define int16_t $ac_cv_c_int16_t | |
5290 | _ACEOF | |
5291 | ;; | |
5292 | esac | |
a946372e | 5293 | |
f11781c5 AK |
5294 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
5295 | case $ac_cv_c_int32_t in #( | |
5296 | no|yes) ;; #( | |
5297 | *) | |
a946372e | 5298 | |
f11781c5 AK |
5299 | cat >>confdefs.h <<_ACEOF |
5300 | #define int32_t $ac_cv_c_int32_t | |
5301 | _ACEOF | |
5302 | ;; | |
a946372e | 5303 | esac |
a946372e | 5304 | |
f11781c5 AK |
5305 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
5306 | case $ac_cv_c_int64_t in #( | |
5307 | no|yes) ;; #( | |
5308 | *) | |
5309 | ||
5310 | cat >>confdefs.h <<_ACEOF | |
5311 | #define int64_t $ac_cv_c_int64_t | |
a946372e | 5312 | _ACEOF |
f11781c5 AK |
5313 | ;; |
5314 | esac | |
5315 | ||
5316 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
5317 | if test "x$ac_cv_type_ssize_t" = x""yes; then : | |
a946372e AK |
5318 | |
5319 | else | |
a946372e | 5320 | |
f11781c5 AK |
5321 | cat >>confdefs.h <<_ACEOF |
5322 | #define ssize_t int | |
5323 | _ACEOF | |
a946372e | 5324 | |
f11781c5 | 5325 | fi |
a946372e | 5326 | |
f11781c5 AK |
5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
5328 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } | |
5329 | if test "${ac_cv_type_uid_t+set}" = set; then : | |
a946372e | 5330 | $as_echo_n "(cached) " >&6 |
a946372e | 5331 | else |
f11781c5 | 5332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5333 | /* end confdefs.h. */ |
f11781c5 AK |
5334 | #include <sys/types.h> |
5335 | ||
a946372e | 5336 | _ACEOF |
f11781c5 AK |
5337 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5338 | $EGREP "uid_t" >/dev/null 2>&1; then : | |
5339 | ac_cv_type_uid_t=yes | |
a946372e | 5340 | else |
f11781c5 AK |
5341 | ac_cv_type_uid_t=no |
5342 | fi | |
5343 | rm -f conftest* | |
a946372e | 5344 | |
a946372e | 5345 | fi |
f11781c5 AK |
5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
5347 | $as_echo "$ac_cv_type_uid_t" >&6; } | |
5348 | if test $ac_cv_type_uid_t = no; then | |
a946372e | 5349 | |
f11781c5 | 5350 | $as_echo "#define uid_t int" >>confdefs.h |
a946372e | 5351 | |
f11781c5 AK |
5352 | |
5353 | $as_echo "#define gid_t int" >>confdefs.h | |
5354 | ||
5355 | fi | |
5356 | ||
5357 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
5358 | case $ac_cv_c_uint8_t in #( | |
5359 | no|yes) ;; #( | |
5360 | *) | |
5361 | ||
5362 | $as_echo "#define _UINT8_T 1" >>confdefs.h | |
5363 | ||
5364 | ||
5365 | cat >>confdefs.h <<_ACEOF | |
5366 | #define uint8_t $ac_cv_c_uint8_t | |
a946372e | 5367 | _ACEOF |
f11781c5 AK |
5368 | ;; |
5369 | esac | |
5370 | ||
5371 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
5372 | case $ac_cv_c_uint16_t in #( | |
5373 | no|yes) ;; #( | |
5374 | *) | |
5375 | ||
5376 | ||
5377 | cat >>confdefs.h <<_ACEOF | |
5378 | #define uint16_t $ac_cv_c_uint16_t | |
a946372e | 5379 | _ACEOF |
f11781c5 AK |
5380 | ;; |
5381 | esac | |
a946372e | 5382 | |
f11781c5 AK |
5383 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
5384 | case $ac_cv_c_uint32_t in #( | |
5385 | no|yes) ;; #( | |
5386 | *) | |
a946372e | 5387 | |
f11781c5 | 5388 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
a946372e | 5389 | |
a946372e | 5390 | |
f11781c5 AK |
5391 | cat >>confdefs.h <<_ACEOF |
5392 | #define uint32_t $ac_cv_c_uint32_t | |
5393 | _ACEOF | |
5394 | ;; | |
5395 | esac | |
5396 | ||
5397 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
5398 | case $ac_cv_c_uint64_t in #( | |
5399 | no|yes) ;; #( | |
5400 | *) | |
5401 | ||
5402 | $as_echo "#define _UINT64_T 1" >>confdefs.h | |
5403 | ||
5404 | ||
5405 | cat >>confdefs.h <<_ACEOF | |
5406 | #define uint64_t $ac_cv_c_uint64_t | |
5407 | _ACEOF | |
5408 | ;; | |
5409 | esac | |
5410 | ||
5411 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
5412 | if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : | |
5413 | ||
5414 | cat >>confdefs.h <<_ACEOF | |
5415 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
5416 | _ACEOF | |
5417 | ||
5418 | ||
5419 | fi | |
5420 | ||
5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
5422 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
5423 | if test "${ac_cv_struct_tm+set}" = set; then : | |
a946372e AK |
5424 | $as_echo_n "(cached) " >&6 |
5425 | else | |
f11781c5 AK |
5426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5427 | /* end confdefs.h. */ | |
5428 | #include <sys/types.h> | |
5429 | #include <time.h> | |
5430 | ||
5431 | int | |
5432 | main () | |
5433 | { | |
5434 | struct tm tm; | |
5435 | int *p = &tm.tm_sec; | |
5436 | return !p; | |
5437 | ; | |
5438 | return 0; | |
5439 | } | |
5440 | _ACEOF | |
5441 | if ac_fn_c_try_compile "$LINENO"; then : | |
5442 | ac_cv_struct_tm=time.h | |
5443 | else | |
5444 | ac_cv_struct_tm=sys/time.h | |
a946372e | 5445 | fi |
f11781c5 AK |
5446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5447 | fi | |
5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
5449 | $as_echo "$ac_cv_struct_tm" >&6; } | |
5450 | if test $ac_cv_struct_tm = sys/time.h; then | |
5451 | ||
5452 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
a946372e AK |
5453 | |
5454 | fi | |
f11781c5 AK |
5455 | |
5456 | ||
5457 | ################################################################################ | |
5458 | for ac_func in ftruncate gethostname getpagesize \ | |
5459 | gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \ | |
5460 | strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \ | |
5461 | strstr strtol strtoul uname | |
5462 | do : | |
5463 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5464 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5465 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5466 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 5467 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a946372e AK |
5468 | _ACEOF |
5469 | ||
5470 | else | |
f11781c5 | 5471 | as_fn_error $? "bailing out" "$LINENO" 5 |
a946372e | 5472 | fi |
a946372e AK |
5473 | done |
5474 | ||
f11781c5 AK |
5475 | for ac_func in siginterrupt |
5476 | do : | |
5477 | ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" | |
5478 | if test "x$ac_cv_func_siginterrupt" = x""yes; then : | |
5479 | cat >>confdefs.h <<_ACEOF | |
5480 | #define HAVE_SIGINTERRUPT 1 | |
5481 | _ACEOF | |
a946372e | 5482 | |
f11781c5 AK |
5483 | fi |
5484 | done | |
a946372e | 5485 | |
f11781c5 AK |
5486 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5487 | # for constant arguments. Useless! | |
5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
5489 | $as_echo_n "checking for working alloca.h... " >&6; } | |
5490 | if test "${ac_cv_working_alloca_h+set}" = set; then : | |
5491 | $as_echo_n "(cached) " >&6 | |
a946372e | 5492 | else |
f11781c5 AK |
5493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5494 | /* end confdefs.h. */ | |
5495 | #include <alloca.h> | |
5496 | int | |
5497 | main () | |
5498 | { | |
5499 | char *p = (char *) alloca (2 * sizeof (int)); | |
5500 | if (p) return 0; | |
5501 | ; | |
5502 | return 0; | |
5503 | } | |
5504 | _ACEOF | |
5505 | if ac_fn_c_try_link "$LINENO"; then : | |
5506 | ac_cv_working_alloca_h=yes | |
a946372e | 5507 | else |
f11781c5 | 5508 | ac_cv_working_alloca_h=no |
a946372e | 5509 | fi |
f11781c5 AK |
5510 | rm -f core conftest.err conftest.$ac_objext \ |
5511 | conftest$ac_exeext conftest.$ac_ext | |
a946372e | 5512 | fi |
f11781c5 AK |
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
5514 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
5515 | if test $ac_cv_working_alloca_h = yes; then | |
a946372e | 5516 | |
f11781c5 | 5517 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
a946372e | 5518 | |
a946372e | 5519 | fi |
a946372e | 5520 | |
f11781c5 AK |
5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
5522 | $as_echo_n "checking for alloca... " >&6; } | |
5523 | if test "${ac_cv_func_alloca_works+set}" = set; then : | |
a946372e | 5524 | $as_echo_n "(cached) " >&6 |
a946372e | 5525 | else |
f11781c5 | 5526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5527 | /* end confdefs.h. */ |
f11781c5 AK |
5528 | #ifdef __GNUC__ |
5529 | # define alloca __builtin_alloca | |
5530 | #else | |
5531 | # ifdef _MSC_VER | |
5532 | # include <malloc.h> | |
5533 | # define alloca _alloca | |
5534 | # else | |
5535 | # ifdef HAVE_ALLOCA_H | |
5536 | # include <alloca.h> | |
5537 | # else | |
5538 | # ifdef _AIX | |
5539 | #pragma alloca | |
5540 | # else | |
5541 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5542 | char *alloca (); | |
5543 | # endif | |
5544 | # endif | |
5545 | # endif | |
5546 | # endif | |
5547 | #endif | |
a946372e | 5548 | |
f11781c5 AK |
5549 | int |
5550 | main () | |
5551 | { | |
5552 | char *p = (char *) alloca (1); | |
5553 | if (p) return 0; | |
5554 | ; | |
5555 | return 0; | |
5556 | } | |
a946372e | 5557 | _ACEOF |
f11781c5 AK |
5558 | if ac_fn_c_try_link "$LINENO"; then : |
5559 | ac_cv_func_alloca_works=yes | |
a946372e | 5560 | else |
f11781c5 | 5561 | ac_cv_func_alloca_works=no |
a946372e | 5562 | fi |
f11781c5 AK |
5563 | rm -f core conftest.err conftest.$ac_objext \ |
5564 | conftest$ac_exeext conftest.$ac_ext | |
5565 | fi | |
5566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
5567 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
a946372e | 5568 | |
f11781c5 | 5569 | if test $ac_cv_func_alloca_works = yes; then |
a946372e | 5570 | |
f11781c5 | 5571 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
a946372e | 5572 | |
a946372e | 5573 | else |
f11781c5 AK |
5574 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5575 | # that cause trouble. Some versions do not even contain alloca or | |
5576 | # contain a buggy version. If you still want to use their alloca, | |
5577 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
a946372e | 5578 | |
f11781c5 | 5579 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
a946372e | 5580 | |
f11781c5 | 5581 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
a946372e | 5582 | |
a946372e | 5583 | |
f11781c5 AK |
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
5585 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
5586 | if test "${ac_cv_os_cray+set}" = set; then : | |
a946372e | 5587 | $as_echo_n "(cached) " >&6 |
a946372e | 5588 | else |
f11781c5 | 5589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 5590 | /* end confdefs.h. */ |
f11781c5 AK |
5591 | #if defined CRAY && ! defined CRAY2 |
5592 | webecray | |
5593 | #else | |
5594 | wenotbecray | |
5595 | #endif | |
5596 | ||
a946372e | 5597 | _ACEOF |
f11781c5 AK |
5598 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5599 | $EGREP "webecray" >/dev/null 2>&1; then : | |
5600 | ac_cv_os_cray=yes | |
a946372e | 5601 | else |
f11781c5 | 5602 | ac_cv_os_cray=no |
a946372e | 5603 | fi |
f11781c5 | 5604 | rm -f conftest* |
a946372e | 5605 | |
f11781c5 AK |
5606 | fi |
5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
5608 | $as_echo "$ac_cv_os_cray" >&6; } | |
5609 | if test $ac_cv_os_cray = yes; then | |
5610 | for ac_func in _getb67 GETB67 getb67; do | |
5611 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5612 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5613 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a946372e | 5614 | |
f11781c5 AK |
5615 | cat >>confdefs.h <<_ACEOF |
5616 | #define CRAY_STACKSEG_END $ac_func | |
a946372e | 5617 | _ACEOF |
a946372e | 5618 | |
f11781c5 | 5619 | break |
a946372e AK |
5620 | fi |
5621 | ||
f11781c5 AK |
5622 | done |
5623 | fi | |
a946372e | 5624 | |
f11781c5 AK |
5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
5626 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
5627 | if test "${ac_cv_c_stack_direction+set}" = set; then : | |
a946372e AK |
5628 | $as_echo_n "(cached) " >&6 |
5629 | else | |
f11781c5 AK |
5630 | if test "$cross_compiling" = yes; then : |
5631 | ac_cv_c_stack_direction=0 | |
5632 | else | |
5633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5634 | /* end confdefs.h. */ | |
5635 | $ac_includes_default | |
5636 | int | |
5637 | find_stack_direction () | |
5638 | { | |
5639 | static char *addr = 0; | |
5640 | auto char dummy; | |
5641 | if (addr == 0) | |
5642 | { | |
5643 | addr = &dummy; | |
5644 | return find_stack_direction (); | |
5645 | } | |
5646 | else | |
5647 | return (&dummy > addr) ? 1 : -1; | |
5648 | } | |
5649 | ||
5650 | int | |
5651 | main () | |
5652 | { | |
5653 | return find_stack_direction () < 0; | |
5654 | } | |
5655 | _ACEOF | |
5656 | if ac_fn_c_try_run "$LINENO"; then : | |
5657 | ac_cv_c_stack_direction=1 | |
5658 | else | |
5659 | ac_cv_c_stack_direction=-1 | |
5660 | fi | |
5661 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5662 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5663 | fi |
a946372e AK |
5664 | |
5665 | fi | |
f11781c5 AK |
5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
5667 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
5668 | cat >>confdefs.h <<_ACEOF | |
5669 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
a946372e AK |
5670 | _ACEOF |
5671 | ||
f11781c5 | 5672 | |
a946372e AK |
5673 | fi |
5674 | ||
f11781c5 AK |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
5676 | $as_echo_n "checking whether closedir returns void... " >&6; } | |
5677 | if test "${ac_cv_func_closedir_void+set}" = set; then : | |
5678 | $as_echo_n "(cached) " >&6 | |
5679 | else | |
5680 | if test "$cross_compiling" = yes; then : | |
5681 | ac_cv_func_closedir_void=yes | |
5682 | else | |
5683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5684 | /* end confdefs.h. */ | |
5685 | $ac_includes_default | |
5686 | #include <$ac_header_dirent> | |
5687 | #ifndef __cplusplus | |
5688 | int closedir (); | |
5689 | #endif | |
a946372e | 5690 | |
f11781c5 AK |
5691 | int |
5692 | main () | |
5693 | { | |
5694 | return closedir (opendir (".")) != 0; | |
5695 | ; | |
5696 | return 0; | |
5697 | } | |
5698 | _ACEOF | |
5699 | if ac_fn_c_try_run "$LINENO"; then : | |
5700 | ac_cv_func_closedir_void=no | |
a946372e | 5701 | else |
f11781c5 | 5702 | ac_cv_func_closedir_void=yes |
a946372e | 5703 | fi |
f11781c5 AK |
5704 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5705 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5706 | fi |
5707 | ||
f11781c5 AK |
5708 | fi |
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 | |
5710 | $as_echo "$ac_cv_func_closedir_void" >&6; } | |
5711 | if test $ac_cv_func_closedir_void = yes; then | |
a946372e | 5712 | |
f11781c5 | 5713 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
a946372e | 5714 | |
a946372e AK |
5715 | fi |
5716 | ||
f11781c5 AK |
5717 | for ac_header in unistd.h |
5718 | do : | |
5719 | ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
5720 | if test "x$ac_cv_header_unistd_h" = x""yes; then : | |
5721 | cat >>confdefs.h <<_ACEOF | |
5722 | #define HAVE_UNISTD_H 1 | |
5723 | _ACEOF | |
a946372e | 5724 | |
f11781c5 | 5725 | fi |
a946372e | 5726 | |
f11781c5 | 5727 | done |
a946372e | 5728 | |
f11781c5 AK |
5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 |
5730 | $as_echo_n "checking for working chown... " >&6; } | |
5731 | if test "${ac_cv_func_chown_works+set}" = set; then : | |
5732 | $as_echo_n "(cached) " >&6 | |
a946372e | 5733 | else |
f11781c5 AK |
5734 | if test "$cross_compiling" = yes; then : |
5735 | ac_cv_func_chown_works=no | |
a946372e | 5736 | else |
f11781c5 AK |
5737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5738 | /* end confdefs.h. */ | |
5739 | $ac_includes_default | |
5740 | #include <fcntl.h> | |
a946372e | 5741 | |
f11781c5 AK |
5742 | int |
5743 | main () | |
5744 | { | |
5745 | char *f = "conftest.chown"; | |
5746 | struct stat before, after; | |
a946372e | 5747 | |
f11781c5 AK |
5748 | if (creat (f, 0600) < 0) |
5749 | return 1; | |
5750 | if (stat (f, &before) < 0) | |
5751 | return 1; | |
5752 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
5753 | return 1; | |
5754 | if (stat (f, &after) < 0) | |
5755 | return 1; | |
5756 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
a946372e | 5757 | |
f11781c5 AK |
5758 | ; |
5759 | return 0; | |
5760 | } | |
5761 | _ACEOF | |
5762 | if ac_fn_c_try_run "$LINENO"; then : | |
5763 | ac_cv_func_chown_works=yes | |
a946372e | 5764 | else |
f11781c5 | 5765 | ac_cv_func_chown_works=no |
a946372e | 5766 | fi |
f11781c5 AK |
5767 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5768 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
5769 | fi |
5770 | ||
f11781c5 | 5771 | rm -f conftest.chown |
a946372e | 5772 | |
f11781c5 AK |
5773 | fi |
5774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 | |
5775 | $as_echo "$ac_cv_func_chown_works" >&6; } | |
5776 | if test $ac_cv_func_chown_works = yes; then | |
a946372e | 5777 | |
f11781c5 | 5778 | $as_echo "#define HAVE_CHOWN 1" >>confdefs.h |
a946372e | 5779 | |
a946372e | 5780 | fi |
a946372e | 5781 | |
f11781c5 AK |
5782 | for ac_header in vfork.h |
5783 | do : | |
5784 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
5785 | if test "x$ac_cv_header_vfork_h" = x""yes; then : | |
5786 | cat >>confdefs.h <<_ACEOF | |
5787 | #define HAVE_VFORK_H 1 | |
5788 | _ACEOF | |
a946372e | 5789 | |
f11781c5 | 5790 | fi |
a946372e | 5791 | |
f11781c5 | 5792 | done |
a946372e | 5793 | |
f11781c5 AK |
5794 | for ac_func in fork vfork |
5795 | do : | |
5796 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5797 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5798 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5799 | cat >>confdefs.h <<_ACEOF | |
5800 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5801 | _ACEOF | |
a946372e | 5802 | |
f11781c5 AK |
5803 | fi |
5804 | done | |
a946372e | 5805 | |
f11781c5 AK |
5806 | if test "x$ac_cv_func_fork" = xyes; then |
5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
5808 | $as_echo_n "checking for working fork... " >&6; } | |
5809 | if test "${ac_cv_func_fork_works+set}" = set; then : | |
5810 | $as_echo_n "(cached) " >&6 | |
5811 | else | |
5812 | if test "$cross_compiling" = yes; then : | |
5813 | ac_cv_func_fork_works=cross | |
5814 | else | |
5815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5816 | /* end confdefs.h. */ | |
5817 | $ac_includes_default | |
5818 | int | |
5819 | main () | |
5820 | { | |
a946372e | 5821 | |
f11781c5 AK |
5822 | /* By Ruediger Kuhlmann. */ |
5823 | return fork () < 0; | |
a946372e | 5824 | |
f11781c5 AK |
5825 | ; |
5826 | return 0; | |
5827 | } | |
5828 | _ACEOF | |
5829 | if ac_fn_c_try_run "$LINENO"; then : | |
5830 | ac_cv_func_fork_works=yes | |
a946372e | 5831 | else |
f11781c5 AK |
5832 | ac_cv_func_fork_works=no |
5833 | fi | |
5834 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5835 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5836 | fi |
a946372e | 5837 | |
f11781c5 AK |
5838 | fi |
5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
5840 | $as_echo "$ac_cv_func_fork_works" >&6; } | |
5841 | ||
a946372e | 5842 | else |
f11781c5 | 5843 | ac_cv_func_fork_works=$ac_cv_func_fork |
a946372e | 5844 | fi |
f11781c5 AK |
5845 | if test "x$ac_cv_func_fork_works" = xcross; then |
5846 | case $host in | |
5847 | *-*-amigaos* | *-*-msdosdjgpp*) | |
5848 | # Override, as these systems have only a dummy fork() stub | |
5849 | ac_cv_func_fork_works=no | |
5850 | ;; | |
5851 | *) | |
5852 | ac_cv_func_fork_works=yes | |
5853 | ;; | |
5854 | esac | |
5855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
5856 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
a946372e | 5857 | fi |
f11781c5 AK |
5858 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
5859 | if test "x$ac_cv_func_vfork" = xyes; then | |
5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
5861 | $as_echo_n "checking for working vfork... " >&6; } | |
5862 | if test "${ac_cv_func_vfork_works+set}" = set; then : | |
5863 | $as_echo_n "(cached) " >&6 | |
5864 | else | |
5865 | if test "$cross_compiling" = yes; then : | |
5866 | ac_cv_func_vfork_works=cross | |
5867 | else | |
5868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5869 | /* end confdefs.h. */ | |
5870 | /* Thanks to Paul Eggert for this test. */ | |
5871 | $ac_includes_default | |
5872 | #include <sys/wait.h> | |
5873 | #ifdef HAVE_VFORK_H | |
5874 | # include <vfork.h> | |
5875 | #endif | |
5876 | /* On some sparc systems, changes by the child to local and incoming | |
5877 | argument registers are propagated back to the parent. The compiler | |
5878 | is told about this with #include <vfork.h>, but some compilers | |
5879 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
5880 | static variable whose address is put into a register that is | |
5881 | clobbered by the vfork. */ | |
5882 | static void | |
5883 | #ifdef __cplusplus | |
5884 | sparc_address_test (int arg) | |
5885 | # else | |
5886 | sparc_address_test (arg) int arg; | |
5887 | #endif | |
5888 | { | |
5889 | static pid_t child; | |
5890 | if (!child) { | |
5891 | child = vfork (); | |
5892 | if (child < 0) { | |
5893 | perror ("vfork"); | |
5894 | _exit(2); | |
5895 | } | |
5896 | if (!child) { | |
5897 | arg = getpid(); | |
5898 | write(-1, "", 0); | |
5899 | _exit (arg); | |
5900 | } | |
5901 | } | |
5902 | } | |
a946372e | 5903 | |
f11781c5 AK |
5904 | int |
5905 | main () | |
5906 | { | |
5907 | pid_t parent = getpid (); | |
5908 | pid_t child; | |
a946372e | 5909 | |
f11781c5 | 5910 | sparc_address_test (0); |
a946372e | 5911 | |
f11781c5 | 5912 | child = vfork (); |
a946372e | 5913 | |
f11781c5 AK |
5914 | if (child == 0) { |
5915 | /* Here is another test for sparc vfork register problems. This | |
5916 | test uses lots of local variables, at least as many local | |
5917 | variables as main has allocated so far including compiler | |
5918 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
5919 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
5920 | reuse the register of parent for one of the local variables, | |
5921 | since it will think that parent can't possibly be used any more | |
5922 | in this routine. Assigning to the local variable will thus | |
5923 | munge parent in the parent process. */ | |
5924 | pid_t | |
5925 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
5926 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
5927 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
5928 | use the same hardware register for all 8 local variables. */ | |
5929 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
5930 | || p != p5 || p != p6 || p != p7) | |
5931 | _exit(1); | |
a946372e | 5932 | |
f11781c5 AK |
5933 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
5934 | from child file descriptors. If the child closes a descriptor | |
5935 | before it execs or exits, this munges the parent's descriptor | |
5936 | as well. Test for this by closing stdout in the child. */ | |
5937 | _exit(close(fileno(stdout)) != 0); | |
5938 | } else { | |
5939 | int status; | |
5940 | struct stat st; | |
5941 | ||
5942 | while (wait(&status) != child) | |
5943 | ; | |
5944 | return ( | |
5945 | /* Was there some problem with vforking? */ | |
5946 | child < 0 | |
5947 | ||
5948 | /* Did the child fail? (This shouldn't happen.) */ | |
5949 | || status | |
5950 | ||
5951 | /* Did the vfork/compiler bug occur? */ | |
5952 | || parent != getpid() | |
5953 | ||
5954 | /* Did the file descriptor bug occur? */ | |
5955 | || fstat(fileno(stdout), &st) != 0 | |
5956 | ); | |
5957 | } | |
5958 | } | |
5959 | _ACEOF | |
5960 | if ac_fn_c_try_run "$LINENO"; then : | |
5961 | ac_cv_func_vfork_works=yes | |
a946372e | 5962 | else |
f11781c5 | 5963 | ac_cv_func_vfork_works=no |
a946372e | 5964 | fi |
f11781c5 AK |
5965 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5966 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 5967 | fi |
f11781c5 | 5968 | |
a946372e | 5969 | fi |
f11781c5 AK |
5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
5971 | $as_echo "$ac_cv_func_vfork_works" >&6; } | |
a946372e | 5972 | |
f11781c5 AK |
5973 | fi; |
5974 | if test "x$ac_cv_func_fork_works" = xcross; then | |
5975 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
5977 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
5978 | fi | |
a946372e | 5979 | |
f11781c5 | 5980 | if test "x$ac_cv_func_vfork_works" = xyes; then |
a946372e | 5981 | |
f11781c5 | 5982 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
a946372e | 5983 | |
a946372e | 5984 | else |
a946372e | 5985 | |
f11781c5 AK |
5986 | $as_echo "#define vfork fork" >>confdefs.h |
5987 | ||
a946372e | 5988 | fi |
f11781c5 | 5989 | if test "x$ac_cv_func_fork_works" = xyes; then |
a946372e | 5990 | |
f11781c5 | 5991 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
a946372e | 5992 | |
a946372e | 5993 | fi |
f11781c5 AK |
5994 | |
5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
5996 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } | |
5997 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : | |
5998 | $as_echo_n "(cached) " >&6 | |
a946372e | 5999 | else |
f11781c5 AK |
6000 | rm -f conftest.sym conftest.file |
6001 | echo >conftest.file | |
6002 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6003 | if test "$cross_compiling" = yes; then : | |
6004 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 6005 | else |
f11781c5 | 6006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a946372e | 6007 | /* end confdefs.h. */ |
f11781c5 AK |
6008 | $ac_includes_default |
6009 | int | |
6010 | main () | |
6011 | { | |
6012 | struct stat sbuf; | |
6013 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
6014 | That is better in the sense that it means we will not | |
6015 | have to compile and use the lstat wrapper. */ | |
6016 | return lstat ("conftest.sym/", &sbuf) == 0; | |
6017 | ; | |
6018 | return 0; | |
6019 | } | |
a946372e | 6020 | _ACEOF |
f11781c5 AK |
6021 | if ac_fn_c_try_run "$LINENO"; then : |
6022 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
a946372e | 6023 | else |
f11781c5 | 6024 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
a946372e | 6025 | fi |
f11781c5 AK |
6026 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6027 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6028 | fi |
a946372e | 6029 | |
a946372e | 6030 | else |
f11781c5 AK |
6031 | # If the `ln -s' command failed, then we probably don't even |
6032 | # have an lstat function. | |
6033 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
a946372e | 6034 | fi |
f11781c5 | 6035 | rm -f conftest.sym conftest.file |
a946372e | 6036 | |
f11781c5 AK |
6037 | fi |
6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
6039 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
a946372e | 6040 | |
f11781c5 | 6041 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
a946372e | 6042 | |
f11781c5 AK |
6043 | cat >>confdefs.h <<_ACEOF |
6044 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6045 | _ACEOF | |
a946372e | 6046 | |
a946372e | 6047 | |
f11781c5 AK |
6048 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
6049 | case " $LIBOBJS " in | |
6050 | *" lstat.$ac_objext "* ) ;; | |
6051 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6052 | ;; | |
6053 | esac | |
a946372e | 6054 | |
f11781c5 | 6055 | fi |
a946372e | 6056 | |
f11781c5 AK |
6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 |
6058 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } | |
6059 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then : | |
6060 | $as_echo_n "(cached) " >&6 | |
a946372e | 6061 | else |
f11781c5 AK |
6062 | if test "$cross_compiling" = yes; then : |
6063 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6064 | else |
f11781c5 AK |
6065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6066 | /* end confdefs.h. */ | |
6067 | $ac_includes_default | |
6068 | int | |
6069 | main () | |
6070 | { | |
6071 | struct stat sbuf; | |
6072 | return lstat ("", &sbuf) == 0; | |
6073 | ; | |
6074 | return 0; | |
6075 | } | |
6076 | _ACEOF | |
6077 | if ac_fn_c_try_run "$LINENO"; then : | |
6078 | ac_cv_func_lstat_empty_string_bug=no | |
6079 | else | |
6080 | ac_cv_func_lstat_empty_string_bug=yes | |
a946372e | 6081 | fi |
f11781c5 AK |
6082 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6083 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6084 | fi |
6085 | ||
f11781c5 AK |
6086 | fi |
6087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
6088 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
6089 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
6090 | case " $LIBOBJS " in | |
6091 | *" lstat.$ac_objext "* ) ;; | |
6092 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
6093 | ;; | |
6094 | esac | |
a946372e AK |
6095 | |
6096 | ||
f11781c5 AK |
6097 | cat >>confdefs.h <<_ACEOF |
6098 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6099 | _ACEOF | |
a946372e | 6100 | |
a946372e | 6101 | fi |
a946372e | 6102 | |
f11781c5 AK |
6103 | for ac_header in stdlib.h |
6104 | do : | |
6105 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6106 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6107 | cat >>confdefs.h <<_ACEOF | |
6108 | #define HAVE_STDLIB_H 1 | |
6109 | _ACEOF | |
6110 | ||
a946372e AK |
6111 | fi |
6112 | ||
f11781c5 | 6113 | done |
a946372e | 6114 | |
f11781c5 AK |
6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
6116 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } | |
6117 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : | |
6118 | $as_echo_n "(cached) " >&6 | |
6119 | else | |
6120 | if test "$cross_compiling" = yes; then : | |
6121 | ac_cv_func_malloc_0_nonnull=no | |
6122 | else | |
6123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6124 | /* end confdefs.h. */ | |
6125 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H | |
6126 | # include <stdlib.h> | |
6127 | #else | |
6128 | char *malloc (); | |
6129 | #endif | |
a946372e | 6130 | |
f11781c5 AK |
6131 | int |
6132 | main () | |
6133 | { | |
6134 | return ! malloc (0); | |
6135 | ; | |
6136 | return 0; | |
6137 | } | |
6138 | _ACEOF | |
6139 | if ac_fn_c_try_run "$LINENO"; then : | |
6140 | ac_cv_func_malloc_0_nonnull=yes | |
a946372e | 6141 | else |
f11781c5 | 6142 | ac_cv_func_malloc_0_nonnull=no |
a946372e | 6143 | fi |
f11781c5 AK |
6144 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6145 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e | 6146 | fi |
f11781c5 | 6147 | |
a946372e | 6148 | fi |
f11781c5 AK |
6149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
6150 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } | |
6151 | if test $ac_cv_func_malloc_0_nonnull = yes; then : | |
a946372e | 6152 | |
f11781c5 | 6153 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
a946372e | 6154 | |
f11781c5 AK |
6155 | else |
6156 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h | |
a946372e | 6157 | |
f11781c5 AK |
6158 | case " $LIBOBJS " in |
6159 | *" malloc.$ac_objext "* ) ;; | |
6160 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
6161 | ;; | |
6162 | esac | |
6163 | ||
6164 | ||
6165 | $as_echo "#define malloc rpl_malloc" >>confdefs.h | |
a946372e | 6166 | |
a946372e | 6167 | fi |
a946372e | 6168 | |
a946372e | 6169 | |
f11781c5 AK |
6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
6171 | $as_echo_n "checking for working memcmp... " >&6; } | |
6172 | if test "${ac_cv_func_memcmp_working+set}" = set; then : | |
a946372e | 6173 | $as_echo_n "(cached) " >&6 |
a946372e | 6174 | else |
f11781c5 AK |
6175 | if test "$cross_compiling" = yes; then : |
6176 | ac_cv_func_memcmp_working=no | |
6177 | else | |
6178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6179 | /* end confdefs.h. */ |
6180 | $ac_includes_default | |
f11781c5 AK |
6181 | int |
6182 | main () | |
6183 | { | |
a946372e | 6184 | |
f11781c5 AK |
6185 | /* Some versions of memcmp are not 8-bit clean. */ |
6186 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
6187 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
6188 | return 1; | |
a946372e | 6189 | |
f11781c5 AK |
6190 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
6191 | or more and with at least one buffer not starting on a 4-byte boundary. | |
6192 | William Lewis provided this test program. */ | |
6193 | { | |
6194 | char foo[21]; | |
6195 | char bar[21]; | |
6196 | int i; | |
6197 | for (i = 0; i < 4; i++) | |
6198 | { | |
6199 | char *a = foo + i; | |
6200 | char *b = bar + i; | |
6201 | strcpy (a, "--------01111111"); | |
6202 | strcpy (b, "--------10000000"); | |
6203 | if (memcmp (a, b, 16) >= 0) | |
6204 | return 1; | |
6205 | } | |
6206 | return 0; | |
6207 | } | |
a946372e | 6208 | |
f11781c5 AK |
6209 | ; |
6210 | return 0; | |
6211 | } | |
a946372e | 6212 | _ACEOF |
f11781c5 AK |
6213 | if ac_fn_c_try_run "$LINENO"; then : |
6214 | ac_cv_func_memcmp_working=yes | |
a946372e | 6215 | else |
f11781c5 AK |
6216 | ac_cv_func_memcmp_working=no |
6217 | fi | |
6218 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6219 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6220 | fi | |
a946372e | 6221 | |
a946372e | 6222 | fi |
f11781c5 AK |
6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
6224 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | |
6225 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
6226 | *" memcmp.$ac_objext "* ) ;; | |
6227 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
6228 | ;; | |
6229 | esac | |
a946372e | 6230 | |
a946372e | 6231 | |
a946372e | 6232 | |
a946372e | 6233 | |
f11781c5 AK |
6234 | |
6235 | for ac_header in $ac_header_list | |
6236 | do : | |
6237 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6238 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6239 | " | |
6240 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a946372e AK |
6241 | cat >>confdefs.h <<_ACEOF |
6242 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6243 | _ACEOF | |
6244 | ||
a946372e AK |
6245 | fi |
6246 | ||
6247 | done | |
6248 | ||
a946372e | 6249 | |
f11781c5 AK |
6250 | |
6251 | ||
6252 | ||
6253 | ||
6254 | ||
6255 | ||
6256 | for ac_func in getpagesize | |
6257 | do : | |
6258 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
6259 | if test "x$ac_cv_func_getpagesize" = x""yes; then : | |
6260 | cat >>confdefs.h <<_ACEOF | |
6261 | #define HAVE_GETPAGESIZE 1 | |
6262 | _ACEOF | |
6263 | ||
a946372e | 6264 | fi |
f11781c5 AK |
6265 | done |
6266 | ||
6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
6268 | $as_echo_n "checking for working mmap... " >&6; } | |
6269 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : | |
6270 | $as_echo_n "(cached) " >&6 | |
a946372e | 6271 | else |
f11781c5 AK |
6272 | if test "$cross_compiling" = yes; then : |
6273 | ac_cv_func_mmap_fixed_mapped=no | |
6274 | else | |
6275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e AK |
6276 | /* end confdefs.h. */ |
6277 | $ac_includes_default | |
f11781c5 AK |
6278 | /* malloc might have been renamed as rpl_malloc. */ |
6279 | #undef malloc | |
6280 | ||
6281 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6282 | Here is a matrix of mmap possibilities: | |
6283 | mmap private not fixed | |
6284 | mmap private fixed at somewhere currently unmapped | |
6285 | mmap private fixed at somewhere already mapped | |
6286 | mmap shared not fixed | |
6287 | mmap shared fixed at somewhere currently unmapped | |
6288 | mmap shared fixed at somewhere already mapped | |
6289 | For private mappings, we should verify that changes cannot be read() | |
6290 | back from the file, nor mmap's back from the file at a different | |
6291 | address. (There have been systems where private was not correctly | |
6292 | implemented like the infamous i386 svr4.0, and systems where the | |
6293 | VM page cache was not coherent with the file system buffer cache | |
6294 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
6295 | For shared mappings, we should conversely verify that changes get | |
6296 | propagated back to all the places they're supposed to be. | |
6297 | ||
6298 | Grep wants private fixed already mapped. | |
6299 | The main things grep needs to know about mmap are: | |
6300 | * does it exist and is it safe to write into the mmap'd area | |
6301 | * how to use it (BSD variants) */ | |
6302 | ||
6303 | #include <fcntl.h> | |
6304 | #include <sys/mman.h> | |
6305 | ||
6306 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
6307 | char *malloc (); | |
6308 | #endif | |
6309 | ||
6310 | /* This mess was copied from the GNU getpagesize.h. */ | |
6311 | #ifndef HAVE_GETPAGESIZE | |
6312 | # ifdef _SC_PAGESIZE | |
6313 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6314 | # else /* no _SC_PAGESIZE */ | |
6315 | # ifdef HAVE_SYS_PARAM_H | |
6316 | # include <sys/param.h> | |
6317 | # ifdef EXEC_PAGESIZE | |
6318 | # define getpagesize() EXEC_PAGESIZE | |
6319 | # else /* no EXEC_PAGESIZE */ | |
6320 | # ifdef NBPG | |
6321 | # define getpagesize() NBPG * CLSIZE | |
6322 | # ifndef CLSIZE | |
6323 | # define CLSIZE 1 | |
6324 | # endif /* no CLSIZE */ | |
6325 | # else /* no NBPG */ | |
6326 | # ifdef NBPC | |
6327 | # define getpagesize() NBPC | |
6328 | # else /* no NBPC */ | |
6329 | # ifdef PAGESIZE | |
6330 | # define getpagesize() PAGESIZE | |
6331 | # endif /* PAGESIZE */ | |
6332 | # endif /* no NBPC */ | |
6333 | # endif /* no NBPG */ | |
6334 | # endif /* no EXEC_PAGESIZE */ | |
6335 | # else /* no HAVE_SYS_PARAM_H */ | |
6336 | # define getpagesize() 8192 /* punt totally */ | |
6337 | # endif /* no HAVE_SYS_PARAM_H */ | |
6338 | # endif /* no _SC_PAGESIZE */ | |
6339 | ||
6340 | #endif /* no HAVE_GETPAGESIZE */ | |
6341 | ||
6342 | int | |
6343 | main () | |
6344 | { | |
6345 | char *data, *data2, *data3; | |
6346 | const char *cdata2; | |
6347 | int i, pagesize; | |
6348 | int fd, fd2; | |
6349 | ||
6350 | pagesize = getpagesize (); | |
6351 | ||
6352 | /* First, make a file with some known garbage in it. */ | |
6353 | data = (char *) malloc (pagesize); | |
6354 | if (!data) | |
6355 | return 1; | |
6356 | for (i = 0; i < pagesize; ++i) | |
6357 | *(data + i) = rand (); | |
6358 | umask (0); | |
6359 | fd = creat ("conftest.mmap", 0600); | |
6360 | if (fd < 0) | |
6361 | return 2; | |
6362 | if (write (fd, data, pagesize) != pagesize) | |
6363 | return 3; | |
6364 | close (fd); | |
6365 | ||
6366 | /* Next, check that the tail of a page is zero-filled. File must have | |
6367 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
6368 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
6369 | if (fd2 < 0) | |
6370 | return 4; | |
6371 | cdata2 = ""; | |
6372 | if (write (fd2, cdata2, 1) != 1) | |
6373 | return 5; | |
6374 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
6375 | if (data2 == MAP_FAILED) | |
6376 | return 6; | |
6377 | for (i = 0; i < pagesize; ++i) | |
6378 | if (*(data2 + i)) | |
6379 | return 7; | |
6380 | close (fd2); | |
6381 | if (munmap (data2, pagesize)) | |
6382 | return 8; | |
6383 | ||
6384 | /* Next, try to mmap the file at a fixed address which already has | |
6385 | something else allocated at it. If we can, also make sure that | |
6386 | we see the same garbage. */ | |
6387 | fd = open ("conftest.mmap", O_RDWR); | |
6388 | if (fd < 0) | |
6389 | return 9; | |
6390 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6391 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6392 | return 10; | |
6393 | for (i = 0; i < pagesize; ++i) | |
6394 | if (*(data + i) != *(data2 + i)) | |
6395 | return 11; | |
6396 | ||
6397 | /* Finally, make sure that changes to the mapped area do not | |
6398 | percolate back to the file as seen by read(). (This is a bug on | |
6399 | some variants of i386 svr4.0.) */ | |
6400 | for (i = 0; i < pagesize; ++i) | |
6401 | *(data2 + i) = *(data2 + i) + 1; | |
6402 | data3 = (char *) malloc (pagesize); | |
6403 | if (!data3) | |
6404 | return 12; | |
6405 | if (read (fd, data3, pagesize) != pagesize) | |
6406 | return 13; | |
6407 | for (i = 0; i < pagesize; ++i) | |
6408 | if (*(data + i) != *(data3 + i)) | |
6409 | return 14; | |
6410 | close (fd); | |
6411 | return 0; | |
6412 | } | |
a946372e | 6413 | _ACEOF |
f11781c5 AK |
6414 | if ac_fn_c_try_run "$LINENO"; then : |
6415 | ac_cv_func_mmap_fixed_mapped=yes | |
a946372e | 6416 | else |
f11781c5 AK |
6417 | ac_cv_func_mmap_fixed_mapped=no |
6418 | fi | |
6419 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6420 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6421 | fi | |
a946372e | 6422 | |
a946372e | 6423 | fi |
f11781c5 AK |
6424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6425 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
6426 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
a946372e | 6427 | |
f11781c5 | 6428 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
a946372e | 6429 | |
f11781c5 AK |
6430 | fi |
6431 | rm -f conftest.mmap conftest.txt | |
6432 | ||
6433 | for ac_header in stdlib.h | |
6434 | do : | |
6435 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
6436 | if test "x$ac_cv_header_stdlib_h" = x""yes; then : | |
6437 | cat >>confdefs.h <<_ACEOF | |
6438 | #define HAVE_STDLIB_H 1 | |
a946372e | 6439 | _ACEOF |
f11781c5 AK |
6440 | |
6441 | fi | |
6442 | ||
6443 | done | |
6444 | ||
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | |
6446 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } | |
6447 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : | |
6448 | $as_echo_n "(cached) " >&6 | |
6449 | else | |
6450 | if test "$cross_compiling" = yes; then : | |
6451 | ac_cv_func_realloc_0_nonnull=no | |
6452 | else | |
6453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a946372e | 6454 | /* end confdefs.h. */ |
f11781c5 AK |
6455 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
6456 | # include <stdlib.h> | |
6457 | #else | |
6458 | char *realloc (); | |
6459 | #endif | |
6460 | ||
6461 | int | |
6462 | main () | |
6463 | { | |
6464 | return ! realloc (0, 0); | |
6465 | ; | |
6466 | return 0; | |
6467 | } | |
a946372e | 6468 | _ACEOF |
f11781c5 AK |
6469 | if ac_fn_c_try_run "$LINENO"; then : |
6470 | ac_cv_func_realloc_0_nonnull=yes | |
a946372e | 6471 | else |
f11781c5 AK |
6472 | ac_cv_func_realloc_0_nonnull=no |
6473 | fi | |
6474 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6475 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6476 | fi |
6477 | ||
f11781c5 AK |
6478 | fi |
6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | |
6480 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } | |
6481 | if test $ac_cv_func_realloc_0_nonnull = yes; then : | |
a946372e | 6482 | |
f11781c5 | 6483 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h |
a946372e | 6484 | |
a946372e | 6485 | else |
f11781c5 AK |
6486 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h |
6487 | ||
6488 | case " $LIBOBJS " in | |
6489 | *" realloc.$ac_objext "* ) ;; | |
6490 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
6491 | ;; | |
6492 | esac | |
a946372e | 6493 | |
a946372e | 6494 | |
f11781c5 AK |
6495 | $as_echo "#define realloc rpl_realloc" >>confdefs.h |
6496 | ||
a946372e AK |
6497 | fi |
6498 | ||
a946372e | 6499 | |
f11781c5 AK |
6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
6501 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } | |
6502 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then : | |
6503 | $as_echo_n "(cached) " >&6 | |
a946372e | 6504 | else |
f11781c5 AK |
6505 | if test "$cross_compiling" = yes; then : |
6506 | ac_cv_func_stat_empty_string_bug=yes | |
6507 | else | |
6508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6509 | /* end confdefs.h. */ | |
6510 | $ac_includes_default | |
6511 | int | |
6512 | main () | |
6513 | { | |
6514 | struct stat sbuf; | |
6515 | return stat ("", &sbuf) == 0; | |
6516 | ; | |
6517 | return 0; | |
6518 | } | |
6519 | _ACEOF | |
6520 | if ac_fn_c_try_run "$LINENO"; then : | |
6521 | ac_cv_func_stat_empty_string_bug=no | |
6522 | else | |
6523 | ac_cv_func_stat_empty_string_bug=yes | |
a946372e | 6524 | fi |
f11781c5 AK |
6525 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6526 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6527 | fi |
6528 | ||
8c4e8a18 | 6529 | fi |
f11781c5 AK |
6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
6531 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } | |
6532 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
6533 | case " $LIBOBJS " in | |
6534 | *" stat.$ac_objext "* ) ;; | |
6535 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" | |
6536 | ;; | |
6537 | esac | |
8c4e8a18 FDN |
6538 | |
6539 | ||
6540 | cat >>confdefs.h <<_ACEOF | |
f11781c5 | 6541 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
8c4e8a18 FDN |
6542 | _ACEOF |
6543 | ||
6544 | fi | |
6545 | ||
f11781c5 AK |
6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
6547 | $as_echo_n "checking for working strtod... " >&6; } | |
6548 | if test "${ac_cv_func_strtod+set}" = set; then : | |
6549 | $as_echo_n "(cached) " >&6 | |
66fd4529 | 6550 | else |
f11781c5 AK |
6551 | if test "$cross_compiling" = yes; then : |
6552 | ac_cv_func_strtod=no | |
6553 | else | |
6554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6555 | /* end confdefs.h. */ | |
66fd4529 | 6556 | |
f11781c5 AK |
6557 | $ac_includes_default |
6558 | #ifndef strtod | |
6559 | double strtod (); | |
6560 | #endif | |
6561 | int | |
6562 | main() | |
6563 | { | |
6564 | { | |
6565 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
6566 | char *string = " +69"; | |
6567 | char *term; | |
6568 | double value; | |
6569 | value = strtod (string, &term); | |
6570 | if (value != 69 || term != (string + 4)) | |
6571 | return 1; | |
6572 | } | |
66fd4529 | 6573 | |
f11781c5 AK |
6574 | { |
6575 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
6576 | terminating character under some conditions. */ | |
6577 | char *string = "NaN"; | |
6578 | char *term; | |
6579 | strtod (string, &term); | |
6580 | if (term != string && *(term - 1) == 0) | |
6581 | return 1; | |
6582 | } | |
6583 | return 0; | |
6584 | } | |
66fd4529 | 6585 | |
f11781c5 AK |
6586 | _ACEOF |
6587 | if ac_fn_c_try_run "$LINENO"; then : | |
6588 | ac_cv_func_strtod=yes | |
66fd4529 | 6589 | else |
f11781c5 AK |
6590 | ac_cv_func_strtod=no |
6591 | fi | |
6592 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6593 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a946372e AK |
6594 | fi |
6595 | ||
f11781c5 AK |
6596 | fi |
6597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
6598 | $as_echo "$ac_cv_func_strtod" >&6; } | |
6599 | if test $ac_cv_func_strtod = no; then | |
6600 | case " $LIBOBJS " in | |
6601 | *" strtod.$ac_objext "* ) ;; | |
6602 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
6603 | ;; | |
6604 | esac | |
71082be4 | 6605 | |
f11781c5 AK |
6606 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
6607 | if test "x$ac_cv_func_pow" = x""yes; then : | |
71082be4 | 6608 | |
66fd4529 | 6609 | fi |
a946372e | 6610 | |
f11781c5 AK |
6611 | if test $ac_cv_func_pow = no; then |
6612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
6613 | $as_echo_n "checking for pow in -lm... " >&6; } | |
6614 | if test "${ac_cv_lib_m_pow+set}" = set; then : | |
6615 | $as_echo_n "(cached) " >&6 | |
6616 | else | |
6617 | ac_check_lib_save_LIBS=$LIBS | |
6618 | LIBS="-lm $LIBS" | |
6619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6620 | /* end confdefs.h. */ | |
90c80887 | 6621 | |
f11781c5 AK |
6622 | /* Override any GCC internal prototype to avoid an error. |
6623 | Use char because int might match the return type of a GCC | |
6624 | builtin and then its argument prototype would still apply. */ | |
6625 | #ifdef __cplusplus | |
6626 | extern "C" | |
6627 | #endif | |
6628 | char pow (); | |
6629 | int | |
6630 | main () | |
6631 | { | |
6632 | return pow (); | |
6633 | ; | |
6634 | return 0; | |
6635 | } | |
6636 | _ACEOF | |
6637 | if ac_fn_c_try_link "$LINENO"; then : | |
6638 | ac_cv_lib_m_pow=yes | |
90c80887 | 6639 | else |
f11781c5 | 6640 | ac_cv_lib_m_pow=no |
90c80887 | 6641 | fi |
f11781c5 AK |
6642 | rm -f core conftest.err conftest.$ac_objext \ |
6643 | conftest$ac_exeext conftest.$ac_ext | |
6644 | LIBS=$ac_check_lib_save_LIBS | |
90c80887 | 6645 | fi |
f11781c5 AK |
6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
6647 | $as_echo "$ac_cv_lib_m_pow" >&6; } | |
6648 | if test "x$ac_cv_lib_m_pow" = x""yes; then : | |
6649 | POW_LIB=-lm | |
90c80887 | 6650 | else |
f11781c5 AK |
6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
6652 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
90c80887 | 6653 | fi |
f11781c5 | 6654 | |
90c80887 AK |
6655 | fi |
6656 | ||
f11781c5 AK |
6657 | fi |
6658 | ||
6659 | for ac_func in vprintf | |
6660 | do : | |
6661 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
6662 | if test "x$ac_cv_func_vprintf" = x""yes; then : | |
6663 | cat >>confdefs.h <<_ACEOF | |
6664 | #define HAVE_VPRINTF 1 | |
6665 | _ACEOF | |
90c80887 | 6666 | |
f11781c5 AK |
6667 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
6668 | if test "x$ac_cv_func__doprnt" = x""yes; then : | |
90c80887 | 6669 | |
f11781c5 | 6670 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
90c80887 | 6671 | |
90c80887 | 6672 | fi |
90c80887 | 6673 | |
f11781c5 AK |
6674 | fi |
6675 | done | |
90c80887 | 6676 | |
90c80887 | 6677 | |
90c80887 | 6678 | |
f11781c5 AK |
6679 | ################################################################################ |
6680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5 | |
6681 | $as_echo_n "checking whether to use static linking... " >&6; } | |
6682 | # Check whether --enable-static_link was given. | |
6683 | if test "${enable_static_link+set}" = set; then : | |
6684 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
6685 | else | |
6686 | STATIC_LINK=no | |
6687 | fi | |
90c80887 | 6688 | |
f11781c5 AK |
6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5 |
6690 | $as_echo "$STATIC_LINK" >&6; } | |
90c80887 | 6691 | |
f11781c5 | 6692 | ################################################################################ |
90c80887 | 6693 | |
90c80887 | 6694 | |
f11781c5 AK |
6695 | ################################################################################ |
6696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5 | |
6697 | $as_echo_n "checking file owner... " >&6; } | |
90c80887 | 6698 | |
f11781c5 AK |
6699 | # Check whether --with-user was given. |
6700 | if test "${with_user+set}" = set; then : | |
6701 | withval=$with_user; OWNER=$withval | |
6702 | fi | |
90c80887 | 6703 | |
f11781c5 AK |
6704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5 |
6705 | $as_echo "$OWNER" >&6; } | |
90c80887 | 6706 | |
f11781c5 AK |
6707 | if test x$OWNER != x; then |
6708 | INSTALL="$INSTALL -o $OWNER" | |
90c80887 | 6709 | fi |
a946372e | 6710 | |
f11781c5 AK |
6711 | ################################################################################ |
6712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5 | |
6713 | $as_echo_n "checking group owner... " >&6; } | |
a946372e | 6714 | |
f11781c5 AK |
6715 | # Check whether --with-group was given. |
6716 | if test "${with_group+set}" = set; then : | |
6717 | withval=$with_group; GROUP=$withval | |
a946372e | 6718 | fi |
f11781c5 AK |
6719 | |
6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5 | |
6721 | $as_echo "$GROUP" >&6; } | |
6722 | ||
6723 | if test x$GROUP != x; then | |
6724 | INSTALL="$INSTALL -g $GROUP" | |
a946372e | 6725 | fi |
f11781c5 AK |
6726 | |
6727 | ################################################################################ | |
6728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5 | |
6729 | $as_echo_n "checking device node uid... " >&6; } | |
6730 | ||
6731 | ||
6732 | # Check whether --with-device-uid was given. | |
6733 | if test "${with_device_uid+set}" = set; then : | |
6734 | withval=$with_device_uid; DM_DEVICE_UID=$withval | |
a946372e | 6735 | else |
f11781c5 | 6736 | DM_DEVICE_UID=0 |
a946372e AK |
6737 | fi |
6738 | ||
f11781c5 AK |
6739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5 |
6740 | $as_echo "$DM_DEVICE_UID" >&6; } | |
a946372e | 6741 | |
f11781c5 AK |
6742 | ################################################################################ |
6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5 | |
6744 | $as_echo_n "checking device node gid... " >&6; } | |
a946372e | 6745 | |
a946372e | 6746 | |
f11781c5 AK |
6747 | # Check whether --with-device-gid was given. |
6748 | if test "${with_device_gid+set}" = set; then : | |
6749 | withval=$with_device_gid; DM_DEVICE_GID=$withval | |
a946372e | 6750 | else |
f11781c5 | 6751 | DM_DEVICE_GID=0 |
a946372e | 6752 | fi |
a946372e | 6753 | |
f11781c5 AK |
6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5 |
6755 | $as_echo "$DM_DEVICE_GID" >&6; } | |
90c80887 | 6756 | |
f11781c5 AK |
6757 | ################################################################################ |
6758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5 | |
6759 | $as_echo_n "checking device node mode... " >&6; } | |
90c80887 | 6760 | |
90c80887 | 6761 | |
f11781c5 AK |
6762 | # Check whether --with-device-mode was given. |
6763 | if test "${with_device_mode+set}" = set; then : | |
6764 | withval=$with_device_mode; DM_DEVICE_MODE=$withval | |
6765 | else | |
6766 | DM_DEVICE_MODE=0600 | |
6767 | fi | |
90c80887 | 6768 | |
f11781c5 AK |
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5 |
6770 | $as_echo "$DM_DEVICE_MODE" >&6; } | |
90c80887 | 6771 | |
d0df875d ZK |
6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5 |
6773 | $as_echo_n "checking when to create device nodes... " >&6; } | |
6774 | ||
6775 | # Check whether --with-device-nodes-on was given. | |
6776 | if test "${with_device_nodes_on+set}" = set; then : | |
6777 | withval=$with_device_nodes_on; ADD_NODE=$withval | |
6778 | else | |
6779 | ADD_NODE=resume | |
6780 | fi | |
6781 | ||
6782 | case "$ADD_NODE" in | |
6783 | resume) add_on=DM_ADD_NODE_ON_RESUME;; | |
6784 | create) add_on=DM_ADD_NODE_ON_CREATE;; | |
6785 | *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;; | |
6786 | esac | |
6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5 | |
6788 | $as_echo "on $ADD_NODE" >&6; } | |
6789 | ||
6790 | cat >>confdefs.h <<_ACEOF | |
6791 | #define DEFAULT_DM_ADD_NODE $add_on | |
6792 | _ACEOF | |
6793 | ||
6794 | ||
c64d7cd3 PR |
6795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5 |
6796 | $as_echo_n "checking default name mangling... " >&6; } | |
6797 | ||
6798 | # Check whether --with-default-name-mangling was given. | |
6799 | if test "${with_default_name_mangling+set}" = set; then : | |
6800 | withval=$with_default_name_mangling; MANGLING=$withval | |
6801 | else | |
6802 | MANGLING=auto | |
6803 | fi | |
6804 | ||
6805 | case "$MANGLING" in | |
6806 | auto) mangling=DM_STRING_MANGLING_AUTO;; | |
6807 | disabled) mangling=DM_STRING_MANGLING_NONE;; | |
6808 | hex) mangling=DM_STRING_MANGLING_HEX;; | |
6809 | *) as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5;; | |
6810 | esac | |
6811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5 | |
6812 | $as_echo "$MANGLING" >&6; } | |
6813 | ||
6814 | cat >>confdefs.h <<_ACEOF | |
6815 | #define DEFAULT_DM_NAME_MANGLING $mangling | |
6816 | _ACEOF | |
6817 | ||
6818 | ||
f11781c5 AK |
6819 | ################################################################################ |
6820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5 | |
6821 | $as_echo_n "checking whether to enable lvm1 fallback... " >&6; } | |
6822 | # Check whether --enable-lvm1_fallback was given. | |
6823 | if test "${enable_lvm1_fallback+set}" = set; then : | |
6824 | enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval | |
6825 | else | |
6826 | LVM1_FALLBACK=no | |
6827 | fi | |
90c80887 | 6828 | |
f11781c5 AK |
6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5 |
6830 | $as_echo "$LVM1_FALLBACK" >&6; } | |
90c80887 | 6831 | |
f11781c5 | 6832 | if test x$LVM1_FALLBACK = xyes; then |
90c80887 | 6833 | |
f11781c5 | 6834 | $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h |
90c80887 | 6835 | |
f11781c5 | 6836 | fi |
90c80887 | 6837 | |
f11781c5 AK |
6838 | ################################################################################ |
6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5 | |
6840 | $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; } | |
6841 | ||
6842 | # Check whether --with-lvm1 was given. | |
6843 | if test "${with_lvm1+set}" = set; then : | |
6844 | withval=$with_lvm1; LVM1=$withval | |
a946372e | 6845 | else |
f11781c5 | 6846 | LVM1=internal |
a946372e | 6847 | fi |
f11781c5 AK |
6848 | |
6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5 | |
6850 | $as_echo "$LVM1" >&6; } | |
6851 | ||
6852 | if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ]; | |
6853 | then as_fn_error $? "--with-lvm1 parameter invalid | |
6854 | " "$LINENO" 5 | |
6855 | fi; | |
6856 | ||
6857 | if test x$LVM1 = xinternal; then | |
6858 | ||
6859 | $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h | |
6860 | ||
a946372e AK |
6861 | fi |
6862 | ||
6863 | ################################################################################ | |
f11781c5 AK |
6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5 |
6865 | $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; } | |
6866 | ||
6867 | # Check whether --with-pool was given. | |
6868 | if test "${with_pool+set}" = set; then : | |
6869 | withval=$with_pool; POOL=$withval | |
a946372e | 6870 | else |
f11781c5 | 6871 | POOL=internal |
a946372e AK |
6872 | fi |
6873 | ||
f11781c5 AK |
6874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5 |
6875 | $as_echo "$POOL" >&6; } | |
6876 | ||
6877 | if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ]; | |
6878 | then as_fn_error $? "--with-pool parameter invalid | |
6879 | " "$LINENO" 5 | |
6880 | fi; | |
6881 | ||
6882 | if test x$POOL = xinternal; then | |
6883 | ||
6884 | $as_echo "#define POOL_INTERNAL 1" >>confdefs.h | |
a946372e | 6885 | |
a946372e AK |
6886 | fi |
6887 | ||
6888 | ################################################################################ | |
f11781c5 AK |
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5 |
6890 | $as_echo_n "checking whether to include support for cluster locking... " >&6; } | |
a946372e | 6891 | |
f11781c5 AK |
6892 | # Check whether --with-cluster was given. |
6893 | if test "${with_cluster+set}" = set; then : | |
6894 | withval=$with_cluster; CLUSTER=$withval | |
a946372e AK |
6895 | fi |
6896 | ||
f11781c5 AK |
6897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5 |
6898 | $as_echo "$CLUSTER" >&6; } | |
a946372e | 6899 | |
f11781c5 AK |
6900 | if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ]; |
6901 | then as_fn_error $? "--with-cluster parameter invalid | |
6902 | " "$LINENO" 5 | |
6903 | fi; | |
fddafd51 | 6904 | |
f11781c5 | 6905 | if test x$CLUSTER = xinternal; then |
5556819a | 6906 | |
f11781c5 | 6907 | $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h |
fddafd51 | 6908 | |
fddafd51 | 6909 | fi |
f11781c5 AK |
6910 | |
6911 | ################################################################################ | |
6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5 | |
6913 | $as_echo_n "checking whether to include snapshots... " >&6; } | |
6914 | ||
6915 | # Check whether --with-snapshots was given. | |
6916 | if test "${with_snapshots+set}" = set; then : | |
6917 | withval=$with_snapshots; SNAPSHOTS=$withval | |
fddafd51 | 6918 | else |
f11781c5 | 6919 | SNAPSHOTS=internal |
fddafd51 ZK |
6920 | fi |
6921 | ||
f11781c5 AK |
6922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5 |
6923 | $as_echo "$SNAPSHOTS" >&6; } | |
fddafd51 | 6924 | |
f11781c5 AK |
6925 | if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ]; |
6926 | then as_fn_error $? "--with-snapshots parameter invalid | |
6927 | " "$LINENO" 5 | |
6928 | fi; | |
fddafd51 | 6929 | |
f11781c5 AK |
6930 | if test x$SNAPSHOTS = xinternal; then |
6931 | ||
6932 | $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h | |
6933 | ||
6934 | fi | |
6935 | ||
6936 | ################################################################################ | |
6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5 | |
6938 | $as_echo_n "checking whether to include mirrors... " >&6; } | |
6939 | ||
6940 | # Check whether --with-mirrors was given. | |
6941 | if test "${with_mirrors+set}" = set; then : | |
6942 | withval=$with_mirrors; MIRRORS=$withval | |
fddafd51 | 6943 | else |
f11781c5 | 6944 | MIRRORS=internal |
fddafd51 ZK |
6945 | fi |
6946 | ||
f11781c5 AK |
6947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5 |
6948 | $as_echo "$MIRRORS" >&6; } | |
fddafd51 | 6949 | |
f11781c5 AK |
6950 | if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ]; |
6951 | then as_fn_error $? "--with-mirrors parameter invalid | |
6952 | " "$LINENO" 5 | |
6953 | fi; | |
6954 | ||
6955 | if test x$MIRRORS = xinternal; then | |
6956 | ||
6957 | $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h | |
6958 | ||
6959 | fi | |
6960 | ||
cac52ca4 JEB |
6961 | ################################################################################ |
6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5 | |
6963 | $as_echo_n "checking whether to include raid... " >&6; } | |
6964 | ||
6965 | # Check whether --with-raid was given. | |
6966 | if test "${with_raid+set}" = set; then : | |
6967 | withval=$with_raid; RAID=$withval | |
6968 | else | |
6969 | RAID=internal | |
6970 | fi | |
6971 | ||
6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5 | |
6973 | $as_echo "$RAID" >&6; } | |
6974 | ||
6975 | if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ]; | |
6976 | then as_fn_error $? "--with-raid parameter invalid | |
6977 | " "$LINENO" 5 | |
6978 | fi; | |
6979 | ||
6980 | if test x$RAID = xinternal; then | |
6981 | ||
6982 | $as_echo "#define RAID_INTERNAL 1" >>confdefs.h | |
6983 | ||
6984 | fi | |
6985 | ||
f11781c5 AK |
6986 | ################################################################################ |
6987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5 | |
6988 | $as_echo_n "checking whether to include replicators... " >&6; } | |
6989 | ||
6990 | # Check whether --with-replicators was given. | |
6991 | if test "${with_replicators+set}" = set; then : | |
6992 | withval=$with_replicators; REPLICATORS=$withval | |
fd4728e1 | 6993 | else |
f11781c5 AK |
6994 | REPLICATORS=none |
6995 | fi | |
fd4728e1 | 6996 | |
f11781c5 AK |
6997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5 |
6998 | $as_echo "$REPLICATORS" >&6; } | |
6999 | ||
7000 | case "$REPLICATORS" in | |
7001 | none|shared) ;; | |
7002 | internal) | |
7003 | $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h | |
7004 | ;; | |
7005 | *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;; | |
fd4728e1 | 7006 | esac |
f11781c5 | 7007 | |
3ba4a195 ZK |
7008 | ################################################################################ |
7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5 | |
7010 | $as_echo_n "checking whether to include thin provisioning... " >&6; } | |
7011 | ||
7012 | # Check whether --with-thin was given. | |
7013 | if test "${with_thin+set}" = set; then : | |
7014 | withval=$with_thin; THIN=$withval | |
7015 | else | |
7016 | THIN=none | |
7017 | fi | |
7018 | ||
7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5 | |
7020 | $as_echo "$THIN" >&6; } | |
7021 | ||
7022 | case "$THIN" in | |
7023 | none|shared) ;; | |
7024 | internal) | |
7025 | $as_echo "#define THIN_INTERNAL 1" >>confdefs.h | |
7026 | ;; | |
7027 | *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;; | |
7028 | esac | |
7029 | ||
f61cacad ZK |
7030 | case "$THIN" in |
7031 | internal|shared) | |
7032 | ||
7033 | # Check whether --with-thin-check was given. | |
7034 | if test "${with_thin_check+set}" = set; then : | |
7035 | withval=$with_thin_check; THIN_CHECK_CMD=$withval | |
7036 | else | |
7037 | THIN_CHECK_CMD="autodetect" | |
7038 | fi | |
7039 | ||
7040 | # Empty means a config way to ignore thin checking | |
7041 | if test "$THIN_CHECK_CMD" = "autodetect"; then | |
7042 | # Extract the first word of "thin_check", so it can be a program name with args. | |
7043 | set dummy thin_check; ac_word=$2 | |
7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7045 | $as_echo_n "checking for $ac_word... " >&6; } | |
7046 | if test "${ac_cv_path_THIN_CHECK_CMD+set}" = set; then : | |
7047 | $as_echo_n "(cached) " >&6 | |
7048 | else | |
7049 | case $THIN_CHECK_CMD in | |
7050 | [\\/]* | ?:[\\/]*) | |
7051 | ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path. | |
7052 | ;; | |
7053 | *) | |
7054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7055 | for as_dir in $PATH | |
7056 | do | |
7057 | IFS=$as_save_IFS | |
7058 | test -z "$as_dir" && as_dir=. | |
7059 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7061 | ac_cv_path_THIN_CHECK_CMD="$as_dir/$ac_word$ac_exec_ext" | |
7062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7063 | break 2 | |
7064 | fi | |
7065 | done | |
7066 | done | |
7067 | IFS=$as_save_IFS | |
7068 | ||
7069 | ;; | |
7070 | esac | |
7071 | fi | |
7072 | THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD | |
7073 | if test -n "$THIN_CHECK_CMD"; then | |
7074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5 | |
7075 | $as_echo "$THIN_CHECK_CMD" >&6; } | |
7076 | else | |
7077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7078 | $as_echo "no" >&6; } | |
7079 | fi | |
7080 | ||
7081 | ||
7082 | test -z "$THIN_CHECK_CMD" && as_fn_error $? "thin_check not found in path $PATH" "$LINENO" 5 | |
7083 | fi | |
909887be ZK |
7084 | ;; |
7085 | esac | |
f61cacad ZK |
7086 | |
7087 | ||
7088 | cat >>confdefs.h <<_ACEOF | |
7089 | #define THIN_CHECK_CMD "$THIN_CHECK_CMD" | |
7090 | _ACEOF | |
7091 | ||
f61cacad ZK |
7092 | |
7093 | ||
f11781c5 AK |
7094 | ################################################################################ |
7095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5 | |
7096 | $as_echo_n "checking whether to enable readline... " >&6; } | |
7097 | # Check whether --enable-readline was given. | |
7098 | if test "${enable_readline+set}" = set; then : | |
7099 | enableval=$enable_readline; READLINE=$enableval | |
fd4728e1 | 7100 | else |
f11781c5 | 7101 | READLINE=maybe |
fd4728e1 ZK |
7102 | fi |
7103 | ||
f11781c5 AK |
7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 |
7105 | $as_echo "$READLINE" >&6; } | |
fd4728e1 | 7106 | |
f11781c5 AK |
7107 | ################################################################################ |
7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5 | |
7109 | $as_echo_n "checking whether to enable realtime support... " >&6; } | |
7110 | # Check whether --enable-realtime was given. | |
7111 | if test "${enable_realtime+set}" = set; then : | |
7112 | enableval=$enable_realtime; REALTIME=$enableval | |
5556819a | 7113 | fi |
d0191583 | 7114 | |
f11781c5 AK |
7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5 |
7116 | $as_echo "$REALTIME" >&6; } | |
7117 | ||
54b362f9 | 7118 | ################################################################################ |
f11781c5 AK |
7119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5 |
7120 | $as_echo_n "checking whether to enable OCF resource agents... " >&6; } | |
7121 | # Check whether --enable-ocf was given. | |
7122 | if test "${enable_ocf+set}" = set; then : | |
7123 | enableval=$enable_ocf; OCF=$enableval | |
54b362f9 | 7124 | else |
f11781c5 | 7125 | OCF=no |
54b362f9 AK |
7126 | fi |
7127 | ||
f11781c5 AK |
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5 |
7129 | $as_echo "$OCF" >&6; } | |
54b362f9 | 7130 | |
606d0858 AK |
7131 | # Check whether --with-ocfdir was given. |
7132 | if test "${with_ocfdir+set}" = set; then : | |
7133 | withval=$with_ocfdir; OCFDIR=$withval | |
7134 | else | |
7135 | OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' | |
7136 | fi | |
7137 | ||
7138 | ||
f11781c5 AK |
7139 | ################################################################################ |
7140 | pkg_config_init() { | |
7141 | ||
7142 | ||
7143 | ||
7144 | ||
7145 | ||
7146 | ||
7147 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
7148 | if test -n "$ac_tool_prefix"; then | |
7149 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
7150 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
7151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7152 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7153 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7154 | $as_echo_n "(cached) " >&6 |
7155 | else | |
f11781c5 | 7156 | case $PKG_CONFIG in |
54b362f9 | 7157 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7158 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7159 | ;; |
7160 | *) | |
7161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7162 | for as_dir in $PATH | |
7163 | do | |
7164 | IFS=$as_save_IFS | |
7165 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7166 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7167 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7168 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7170 | break 2 |
7171 | fi | |
7172 | done | |
f11781c5 | 7173 | done |
54b362f9 AK |
7174 | IFS=$as_save_IFS |
7175 | ||
7176 | ;; | |
7177 | esac | |
7178 | fi | |
f11781c5 AK |
7179 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
7180 | if test -n "$PKG_CONFIG"; then | |
7181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
7182 | $as_echo "$PKG_CONFIG" >&6; } | |
54b362f9 | 7183 | else |
f11781c5 | 7184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7185 | $as_echo "no" >&6; } |
7186 | fi | |
7187 | ||
7188 | ||
f11781c5 AK |
7189 | fi |
7190 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
7191 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
7192 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
7193 | set dummy pkg-config; ac_word=$2 | |
7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
54b362f9 | 7195 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 7196 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
54b362f9 AK |
7197 | $as_echo_n "(cached) " >&6 |
7198 | else | |
f11781c5 | 7199 | case $ac_pt_PKG_CONFIG in |
54b362f9 | 7200 | [\\/]* | ?:[\\/]*) |
f11781c5 | 7201 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
54b362f9 AK |
7202 | ;; |
7203 | *) | |
7204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7205 | for as_dir in $PATH | |
7206 | do | |
7207 | IFS=$as_save_IFS | |
7208 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 7209 | for ac_exec_ext in '' $ac_executable_extensions; do |
54b362f9 | 7210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
f11781c5 AK |
7211 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
54b362f9 AK |
7213 | break 2 |
7214 | fi | |
7215 | done | |
f11781c5 | 7216 | done |
54b362f9 AK |
7217 | IFS=$as_save_IFS |
7218 | ||
7219 | ;; | |
7220 | esac | |
7221 | fi | |
f11781c5 AK |
7222 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
7223 | if test -n "$ac_pt_PKG_CONFIG"; then | |
7224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
7225 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
54b362f9 | 7226 | else |
f11781c5 | 7227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54b362f9 AK |
7228 | $as_echo "no" >&6; } |
7229 | fi | |
7230 | ||
f11781c5 AK |
7231 | if test "x$ac_pt_PKG_CONFIG" = x; then |
7232 | PKG_CONFIG="" | |
7233 | else | |
7234 | case $cross_compiling:$ac_tool_warned in | |
7235 | yes:) | |
7236 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7237 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7238 | ac_tool_warned=yes ;; | |
7239 | esac | |
7240 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
7241 | fi | |
d1e8046f | 7242 | else |
f11781c5 | 7243 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
d1e8046f AK |
7244 | fi |
7245 | ||
f11781c5 AK |
7246 | fi |
7247 | if test -n "$PKG_CONFIG"; then | |
7248 | _pkg_min_version=0.9.0 | |
7249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
7250 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
7251 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
7252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7253 | $as_echo "yes" >&6; } | |
7254 | else | |
7255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7256 | $as_echo "no" >&6; } | |
7257 | PKG_CONFIG="" | |
7258 | fi | |
7259 | fi | |
d1e8046f | 7260 | |
f11781c5 AK |
7261 | pkg_failed=no |
7262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5 | |
7263 | $as_echo_n "checking for PKGCONFIGINIT... " >&6; } | |
d1e8046f | 7264 | |
f11781c5 AK |
7265 | if test -n "$PKGCONFIGINIT_CFLAGS"; then |
7266 | pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS" | |
7267 | elif test -n "$PKG_CONFIG"; then | |
7268 | if test -n "$PKG_CONFIG" && \ | |
7269 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7270 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
7271 | ac_status=$? | |
7272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7273 | test $ac_status = 0; }; then | |
7274 | pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7275 | else |
f11781c5 AK |
7276 | pkg_failed=yes |
7277 | fi | |
7278 | else | |
7279 | pkg_failed=untried | |
7280 | fi | |
7281 | if test -n "$PKGCONFIGINIT_LIBS"; then | |
7282 | pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS" | |
7283 | elif test -n "$PKG_CONFIG"; then | |
7284 | if test -n "$PKG_CONFIG" && \ | |
7285 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5 | |
7286 | ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5 | |
d1e8046f | 7287 | ac_status=$? |
f11781c5 AK |
7288 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7289 | test $ac_status = 0; }; then | |
7290 | pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null` | |
d1e8046f | 7291 | else |
f11781c5 AK |
7292 | pkg_failed=yes |
7293 | fi | |
7294 | else | |
7295 | pkg_failed=untried | |
d1e8046f AK |
7296 | fi |
7297 | ||
d1e8046f | 7298 | |
f11781c5 AK |
7299 | |
7300 | if test $pkg_failed = yes; then | |
7301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7302 | $as_echo "no" >&6; } | |
7303 | ||
7304 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7305 | _pkg_short_errors_supported=yes | |
7306 | else | |
7307 | _pkg_short_errors_supported=no | |
7308 | fi | |
7309 | if test $_pkg_short_errors_supported = yes; then | |
7310 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1` | |
7311 | else | |
7312 | PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1` | |
7313 | fi | |
7314 | # Put the nasty error message in config.log where it belongs | |
7315 | echo "$PKGCONFIGINIT_PKG_ERRORS" >&5 | |
7316 | ||
7317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7318 | $as_echo "pkg-config initialized" >&6; } | |
7319 | elif test $pkg_failed = untried; then | |
7320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7321 | $as_echo "no" >&6; } | |
7322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5 | |
7323 | $as_echo "pkg-config initialized" >&6; } | |
d1e8046f | 7324 | else |
f11781c5 AK |
7325 | PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS |
7326 | PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS | |
7327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7328 | $as_echo "yes" >&6; } | |
d1e8046f | 7329 | |
d1e8046f | 7330 | fi |
f11781c5 AK |
7331 | PKGCONFIG_INIT=1 |
7332 | } | |
d1e8046f | 7333 | |
5723db01 PR |
7334 | ################################################################################ |
7335 | ||
7336 | ||
7337 | # Check whether --with-default-pid-dir was given. | |
7338 | if test "${with_default_pid_dir+set}" = set; then : | |
7339 | withval=$with_default_pid_dir; DEFAULT_PID_DIR="$withval" | |
7340 | else | |
7341 | DEFAULT_PID_DIR="/var/run" | |
7342 | fi | |
7343 | ||
7344 | ||
7345 | cat >>confdefs.h <<_ACEOF | |
7346 | #define DEFAULT_PID_DIR "$DEFAULT_PID_DIR" | |
7347 | _ACEOF | |
7348 | ||
7349 | ||
7350 | ||
7351 | ||
7352 | # Check whether --with-default-dm-run-dir was given. | |
7353 | if test "${with_default_dm_run_dir+set}" = set; then : | |
7354 | withval=$with_default_dm_run_dir; DEFAULT_DM_RUN_DIR="$withval" | |
7355 | else | |
7356 | DEFAULT_DM_RUN_DIR="/var/run" | |
7357 | fi | |
7358 | ||
7359 | ||
7360 | cat >>confdefs.h <<_ACEOF | |
7361 | #define DEFAULT_DM_RUN_DIR "$DEFAULT_DM_RUN_DIR" | |
7362 | _ACEOF | |
7363 | ||
7364 | ||
7365 | ||
7366 | ||
7367 | # Check whether --with-default-run-dir was given. | |
7368 | if test "${with_default_run_dir+set}" = set; then : | |
7369 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" | |
7370 | else | |
7371 | DEFAULT_RUN_DIR="/var/run/lvm" | |
7372 | fi | |
7373 | ||
7374 | ||
7375 | cat >>confdefs.h <<_ACEOF | |
7376 | #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR" | |
7377 | _ACEOF | |
7378 | ||
7379 | ||
f11781c5 AK |
7380 | ################################################################################ |
7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5 | |
7382 | $as_echo_n "checking whether to build cluster LVM daemon... " >&6; } | |
d1e8046f | 7383 | |
f11781c5 AK |
7384 | # Check whether --with-clvmd was given. |
7385 | if test "${with_clvmd+set}" = set; then : | |
7386 | withval=$with_clvmd; CLVMD=$withval | |
d1e8046f | 7387 | else |
f11781c5 | 7388 | CLVMD=none |
d1e8046f | 7389 | fi |
d1e8046f | 7390 | |
f11781c5 AK |
7391 | if test x$CLVMD = xyes; then |
7392 | CLVMD=all | |
d1e8046f | 7393 | fi |
f11781c5 AK |
7394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5 |
7395 | $as_echo "$CLVMD" >&6; } | |
d1e8046f | 7396 | |
f11781c5 AK |
7397 | if test x$CLVMD != xnone && test x$CLUSTER = xnone; then |
7398 | CLUSTER=internal | |
d1e8046f AK |
7399 | fi |
7400 | ||
f11781c5 AK |
7401 | if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then |
7402 | pkg_config_init | |
7403 | fi | |
d1e8046f | 7404 | |
f11781c5 AK |
7405 | CLVMD_CMANAGERS="" |
7406 | CLVMD_NEEDS_QDISKD=no | |
d1e8046f | 7407 | |
f11781c5 | 7408 | if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then |
13db5983 | 7409 | as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5; |
d1e8046f | 7410 | fi |
f11781c5 AK |
7411 | if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then |
7412 | BUILDCMAN=yes | |
7413 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
7414 | CLVMD_NEEDS_QDISKD=yes | |
7415 | fi | |
7416 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then | |
7417 | BUILDCOROSYNC=yes | |
7418 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
7419 | fi | |
7420 | if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then | |
7421 | BUILDOPENAIS=yes | |
7422 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
7423 | fi | |
7424 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
7425 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
fc54be10 AK |
7426 | fi |
7427 | ||
f11781c5 AK |
7428 | soft_bailout() { |
7429 | NOTFOUND=1 | |
7430 | } | |
ad6254c5 | 7431 | |
f11781c5 AK |
7432 | hard_bailout() { |
7433 | as_fn_error $? "bailing out" "$LINENO" 5 | |
7434 | } | |
ad6254c5 | 7435 | |
f11781c5 AK |
7436 | if test x$CLVMD = xall; then |
7437 | bailout=soft_bailout | |
f11781c5 AK |
7438 | BUILDCMAN=yes |
7439 | BUILDCOROSYNC=yes | |
7440 | BUILDOPENAIS=yes | |
a5f46f6a | 7441 | else |
f11781c5 | 7442 | bailout=hard_bailout |
a5f46f6a AK |
7443 | fi |
7444 | ||
f11781c5 AK |
7445 | check_lib_no_libs() { |
7446 | lib_no_libs_arg1=$1 | |
7447 | shift | |
7448 | lib_no_libs_arg2=$1 | |
7449 | shift | |
7450 | lib_no_libs_args=$@ | |
7451 | as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh` | |
7452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5 | |
7453 | $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; } | |
7454 | if eval "test \"\${$as_ac_Lib+set}\"" = set; then : | |
90c80887 AK |
7455 | $as_echo_n "(cached) " >&6 |
7456 | else | |
7457 | ac_check_lib_save_LIBS=$LIBS | |
f11781c5 AK |
7458 | LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS" |
7459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
90c80887 AK |
7460 | /* end confdefs.h. */ |
7461 | ||
7462 | /* Override any GCC internal prototype to avoid an error. | |
7463 | Use char because int might match the return type of a GCC | |
7464 | builtin and then its argument prototype would still apply. */ | |
7465 | #ifdef __cplusplus | |
7466 | extern "C" | |
7467 | #endif | |
f11781c5 | 7468 | char $lib_no_libs_arg2 (); |
90c80887 AK |
7469 | int |
7470 | main () | |
7471 | { | |
f11781c5 | 7472 | return $lib_no_libs_arg2 (); |
90c80887 AK |
7473 | ; |
7474 | return 0; | |
7475 | } | |
7476 | _ACEOF | |
f11781c5 AK |
7477 | if ac_fn_c_try_link "$LINENO"; then : |
7478 | eval "$as_ac_Lib=yes" | |
90c80887 | 7479 | else |
f11781c5 | 7480 | eval "$as_ac_Lib=no" |
90c80887 | 7481 | fi |
f11781c5 AK |
7482 | rm -f core conftest.err conftest.$ac_objext \ |
7483 | conftest$ac_exeext conftest.$ac_ext | |
90c80887 AK |
7484 | LIBS=$ac_check_lib_save_LIBS |
7485 | fi | |
f11781c5 AK |
7486 | eval ac_res=\$$as_ac_Lib |
7487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7488 | $as_echo "$ac_res" >&6; } | |
7489 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
7490 | cat >>confdefs.h <<_ACEOF | |
7491 | #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1 | |
7492 | _ACEOF | |
7493 | ||
7494 | LIBS="-l$lib_no_libs_arg1 $LIBS" | |
7495 | ||
90c80887 | 7496 | else |
f11781c5 | 7497 | $bailout |
90c80887 AK |
7498 | fi |
7499 | ||
f11781c5 AK |
7500 | LIBS=$ac_check_lib_save_LIBS |
7501 | } | |
90c80887 | 7502 | |
f11781c5 | 7503 | if test x$BUILDCMAN = xyes; then |
ad6254c5 | 7504 | |
f11781c5 AK |
7505 | pkg_failed=no |
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5 | |
7507 | $as_echo_n "checking for CMAN... " >&6; } | |
93bd259b | 7508 | |
f11781c5 AK |
7509 | if test -n "$CMAN_CFLAGS"; then |
7510 | pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS" | |
7511 | elif test -n "$PKG_CONFIG"; then | |
7512 | if test -n "$PKG_CONFIG" && \ | |
7513 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7514 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
7515 | ac_status=$? | |
7516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7517 | test $ac_status = 0; }; then | |
7518 | pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null` | |
7519 | else | |
7520 | pkg_failed=yes | |
ad6254c5 | 7521 | fi |
f11781c5 AK |
7522 | else |
7523 | pkg_failed=untried | |
ad6254c5 | 7524 | fi |
f11781c5 AK |
7525 | if test -n "$CMAN_LIBS"; then |
7526 | pkg_cv_CMAN_LIBS="$CMAN_LIBS" | |
7527 | elif test -n "$PKG_CONFIG"; then | |
7528 | if test -n "$PKG_CONFIG" && \ | |
7529 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5 | |
7530 | ($PKG_CONFIG --exists --print-errors "libcman") 2>&5 | |
93bd259b | 7531 | ac_status=$? |
f11781c5 AK |
7532 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7533 | test $ac_status = 0; }; then | |
7534 | pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null` | |
93bd259b | 7535 | else |
f11781c5 AK |
7536 | pkg_failed=yes |
7537 | fi | |
7538 | else | |
7539 | pkg_failed=untried | |
93bd259b AK |
7540 | fi |
7541 | ||
f11781c5 AK |
7542 | |
7543 | ||
7544 | if test $pkg_failed = yes; then | |
7545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7546 | $as_echo "no" >&6; } | |
7547 | ||
7548 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7549 | _pkg_short_errors_supported=yes | |
7550 | else | |
7551 | _pkg_short_errors_supported=no | |
93bd259b | 7552 | fi |
f11781c5 AK |
7553 | if test $_pkg_short_errors_supported = yes; then |
7554 | CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1` | |
7555 | else | |
7556 | CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1` | |
7557 | fi | |
7558 | # Put the nasty error message in config.log where it belongs | |
7559 | echo "$CMAN_PKG_ERRORS" >&5 | |
93bd259b | 7560 | |
f11781c5 AK |
7561 | NOTFOUND=0 |
7562 | for ac_header in libcman.h | |
7563 | do : | |
7564 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7565 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7566 | cat >>confdefs.h <<_ACEOF | |
7567 | #define HAVE_LIBCMAN_H 1 | |
93bd259b AK |
7568 | _ACEOF |
7569 | ||
f11781c5 AK |
7570 | else |
7571 | $bailout | |
93bd259b AK |
7572 | fi |
7573 | ||
f11781c5 | 7574 | done |
93bd259b | 7575 | |
f11781c5 AK |
7576 | check_lib_no_libs cman cman_init |
7577 | if test $NOTFOUND = 0; then | |
7578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7579 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7580 | CMAN_LIBS="-lcman" | |
7581 | HAVE_CMAN=yes | |
7582 | fi | |
7583 | elif test $pkg_failed = untried; then | |
7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7585 | $as_echo "no" >&6; } | |
7586 | NOTFOUND=0 | |
7587 | for ac_header in libcman.h | |
7588 | do : | |
7589 | ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default" | |
7590 | if test "x$ac_cv_header_libcman_h" = x""yes; then : | |
7591 | cat >>confdefs.h <<_ACEOF | |
7592 | #define HAVE_LIBCMAN_H 1 | |
93bd259b | 7593 | _ACEOF |
93bd259b | 7594 | |
93bd259b | 7595 | else |
f11781c5 | 7596 | $bailout |
93bd259b AK |
7597 | fi |
7598 | ||
f11781c5 AK |
7599 | done |
7600 | ||
7601 | check_lib_no_libs cman cman_init | |
7602 | if test $NOTFOUND = 0; then | |
7603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5 | |
7604 | $as_echo "no pkg for libcman, using -lcman" >&6; } | |
7605 | CMAN_LIBS="-lcman" | |
7606 | HAVE_CMAN=yes | |
7607 | fi | |
7608 | else | |
7609 | CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS | |
7610 | CMAN_LIBS=$pkg_cv_CMAN_LIBS | |
7611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7612 | $as_echo "yes" >&6; } | |
7613 | HAVE_CMAN=yes | |
93bd259b | 7614 | fi |
f11781c5 AK |
7615 | CHECKCONFDB=yes |
7616 | CHECKDLM=yes | |
93bd259b AK |
7617 | fi |
7618 | ||
f11781c5 AK |
7619 | if test x$BUILDCOROSYNC = xyes || \ |
7620 | test x$BUILDOPENAIS = xyes; then | |
93bd259b | 7621 | |
f11781c5 AK |
7622 | pkg_failed=no |
7623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5 | |
7624 | $as_echo_n "checking for COROSYNC... " >&6; } | |
ad6254c5 | 7625 | |
f11781c5 AK |
7626 | if test -n "$COROSYNC_CFLAGS"; then |
7627 | pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS" | |
7628 | elif test -n "$PKG_CONFIG"; then | |
7629 | if test -n "$PKG_CONFIG" && \ | |
7630 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7631 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
7632 | ac_status=$? | |
7633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7634 | test $ac_status = 0; }; then | |
7635 | pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null` | |
ad6254c5 | 7636 | else |
f11781c5 AK |
7637 | pkg_failed=yes |
7638 | fi | |
7639 | else | |
7640 | pkg_failed=untried | |
7641 | fi | |
7642 | if test -n "$COROSYNC_LIBS"; then | |
7643 | pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS" | |
7644 | elif test -n "$PKG_CONFIG"; then | |
7645 | if test -n "$PKG_CONFIG" && \ | |
7646 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5 | |
7647 | ($PKG_CONFIG --exists --print-errors "corosync") 2>&5 | |
ad6254c5 | 7648 | ac_status=$? |
f11781c5 AK |
7649 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7650 | test $ac_status = 0; }; then | |
7651 | pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null` | |
ad6254c5 | 7652 | else |
f11781c5 | 7653 | pkg_failed=yes |
ad6254c5 | 7654 | fi |
f11781c5 AK |
7655 | else |
7656 | pkg_failed=untried | |
ad6254c5 | 7657 | fi |
ad6254c5 | 7658 | |
72b2cb61 | 7659 | |
72b2cb61 | 7660 | |
f11781c5 AK |
7661 | if test $pkg_failed = yes; then |
7662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7663 | $as_echo "no" >&6; } | |
19a2c6e0 | 7664 | |
f11781c5 AK |
7665 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7666 | _pkg_short_errors_supported=yes | |
7667 | else | |
7668 | _pkg_short_errors_supported=no | |
ad6254c5 | 7669 | fi |
f11781c5 AK |
7670 | if test $_pkg_short_errors_supported = yes; then |
7671 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1` | |
7672 | else | |
7673 | COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1` | |
7674 | fi | |
7675 | # Put the nasty error message in config.log where it belongs | |
7676 | echo "$COROSYNC_PKG_ERRORS" >&5 | |
ad6254c5 | 7677 | |
f11781c5 AK |
7678 | $bailout |
7679 | elif test $pkg_failed = untried; then | |
7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7681 | $as_echo "no" >&6; } | |
7682 | $bailout | |
7683 | else | |
7684 | COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS | |
7685 | COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS | |
7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7687 | $as_echo "yes" >&6; } | |
7688 | HAVE_COROSYNC=yes | |
7689 | fi | |
7690 | CHECKCONFDB=yes | |
b6d7a484 | 7691 | CHECKCMAP=yes |
ad6254c5 AK |
7692 | fi |
7693 | ||
f11781c5 | 7694 | if test x$BUILDCOROSYNC = xyes; then |
f30875db | 7695 | |
f11781c5 AK |
7696 | pkg_failed=no |
7697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5 | |
7698 | $as_echo_n "checking for QUORUM... " >&6; } | |
7699 | ||
7700 | if test -n "$QUORUM_CFLAGS"; then | |
7701 | pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS" | |
7702 | elif test -n "$PKG_CONFIG"; then | |
7703 | if test -n "$PKG_CONFIG" && \ | |
7704 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7705 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
f30875db | 7706 | ac_status=$? |
f11781c5 AK |
7707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7708 | test $ac_status = 0; }; then | |
7709 | pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null` | |
f30875db | 7710 | else |
f11781c5 | 7711 | pkg_failed=yes |
f30875db | 7712 | fi |
f11781c5 AK |
7713 | else |
7714 | pkg_failed=untried | |
f30875db | 7715 | fi |
f11781c5 AK |
7716 | if test -n "$QUORUM_LIBS"; then |
7717 | pkg_cv_QUORUM_LIBS="$QUORUM_LIBS" | |
7718 | elif test -n "$PKG_CONFIG"; then | |
7719 | if test -n "$PKG_CONFIG" && \ | |
7720 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5 | |
7721 | ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5 | |
7722 | ac_status=$? | |
7723 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7724 | test $ac_status = 0; }; then | |
7725 | pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null` | |
f30875db | 7726 | else |
f11781c5 | 7727 | pkg_failed=yes |
f30875db | 7728 | fi |
f11781c5 AK |
7729 | else |
7730 | pkg_failed=untried | |
7731 | fi | |
7732 | ||
f30875db | 7733 | |
f11781c5 AK |
7734 | |
7735 | if test $pkg_failed = yes; then | |
7736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7737 | $as_echo "no" >&6; } | |
7738 | ||
7739 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7740 | _pkg_short_errors_supported=yes | |
7741 | else | |
7742 | _pkg_short_errors_supported=no | |
f30875db | 7743 | fi |
f11781c5 AK |
7744 | if test $_pkg_short_errors_supported = yes; then |
7745 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1` | |
7746 | else | |
7747 | QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1` | |
7748 | fi | |
7749 | # Put the nasty error message in config.log where it belongs | |
7750 | echo "$QUORUM_PKG_ERRORS" >&5 | |
f30875db | 7751 | |
f11781c5 AK |
7752 | $bailout |
7753 | elif test $pkg_failed = untried; then | |
7754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7755 | $as_echo "no" >&6; } | |
7756 | $bailout | |
7757 | else | |
7758 | QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS | |
7759 | QUORUM_LIBS=$pkg_cv_QUORUM_LIBS | |
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7761 | $as_echo "yes" >&6; } | |
7762 | HAVE_QUORUM=yes | |
7763 | fi | |
7764 | CHECKCPG=yes | |
7765 | CHECKDLM=yes | |
d0191583 JM |
7766 | fi |
7767 | ||
f11781c5 | 7768 | if test x$BUILDOPENAIS = xyes; then |
d0191583 | 7769 | |
f11781c5 AK |
7770 | pkg_failed=no |
7771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5 | |
7772 | $as_echo_n "checking for SALCK... " >&6; } | |
8a2fc586 | 7773 | |
f11781c5 AK |
7774 | if test -n "$SALCK_CFLAGS"; then |
7775 | pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS" | |
7776 | elif test -n "$PKG_CONFIG"; then | |
7777 | if test -n "$PKG_CONFIG" && \ | |
7778 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7779 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
7780 | ac_status=$? | |
7781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7782 | test $ac_status = 0; }; then | |
7783 | pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null` | |
7784 | else | |
7785 | pkg_failed=yes | |
7786 | fi | |
7787 | else | |
7788 | pkg_failed=untried | |
7789 | fi | |
7790 | if test -n "$SALCK_LIBS"; then | |
7791 | pkg_cv_SALCK_LIBS="$SALCK_LIBS" | |
7792 | elif test -n "$PKG_CONFIG"; then | |
7793 | if test -n "$PKG_CONFIG" && \ | |
7794 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5 | |
7795 | ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5 | |
8a2fc586 | 7796 | ac_status=$? |
f11781c5 AK |
7797 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7798 | test $ac_status = 0; }; then | |
7799 | pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null` | |
8a2fc586 | 7800 | else |
f11781c5 | 7801 | pkg_failed=yes |
8a2fc586 | 7802 | fi |
f11781c5 AK |
7803 | else |
7804 | pkg_failed=untried | |
8a2fc586 | 7805 | fi |
d0191583 | 7806 | |
d0191583 | 7807 | |
f8f6ec92 | 7808 | |
f11781c5 AK |
7809 | if test $pkg_failed = yes; then |
7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7811 | $as_echo "no" >&6; } | |
8a2fc586 | 7812 | |
f11781c5 AK |
7813 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7814 | _pkg_short_errors_supported=yes | |
ad6254c5 | 7815 | else |
f11781c5 AK |
7816 | _pkg_short_errors_supported=no |
7817 | fi | |
7818 | if test $_pkg_short_errors_supported = yes; then | |
7819 | SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1` | |
7820 | else | |
7821 | SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1` | |
7822 | fi | |
7823 | # Put the nasty error message in config.log where it belongs | |
7824 | echo "$SALCK_PKG_ERRORS" >&5 | |
ad6254c5 | 7825 | |
f11781c5 AK |
7826 | $bailout |
7827 | elif test $pkg_failed = untried; then | |
7828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7829 | $as_echo "no" >&6; } | |
7830 | $bailout | |
ad6254c5 | 7831 | else |
f11781c5 AK |
7832 | SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS |
7833 | SALCK_LIBS=$pkg_cv_SALCK_LIBS | |
7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7835 | $as_echo "yes" >&6; } | |
7836 | HAVE_SALCK=yes | |
ad6254c5 | 7837 | fi |
f11781c5 | 7838 | CHECKCPG=yes |
ad6254c5 | 7839 | fi |
ad6254c5 | 7840 | |
72b2cb61 | 7841 | |
f8f6ec92 | 7842 | |
f11781c5 | 7843 | if test x$CHECKCONFDB = xyes; then |
f8f6ec92 | 7844 | |
f11781c5 AK |
7845 | pkg_failed=no |
7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5 | |
7847 | $as_echo_n "checking for CONFDB... " >&6; } | |
f8f6ec92 | 7848 | |
f11781c5 AK |
7849 | if test -n "$CONFDB_CFLAGS"; then |
7850 | pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS" | |
7851 | elif test -n "$PKG_CONFIG"; then | |
7852 | if test -n "$PKG_CONFIG" && \ | |
7853 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7854 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
f8f6ec92 | 7855 | ac_status=$? |
f11781c5 AK |
7856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7857 | test $ac_status = 0; }; then | |
7858 | pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null` | |
66e941e8 | 7859 | else |
f11781c5 AK |
7860 | pkg_failed=yes |
7861 | fi | |
7862 | else | |
7863 | pkg_failed=untried | |
7864 | fi | |
7865 | if test -n "$CONFDB_LIBS"; then | |
7866 | pkg_cv_CONFDB_LIBS="$CONFDB_LIBS" | |
7867 | elif test -n "$PKG_CONFIG"; then | |
7868 | if test -n "$PKG_CONFIG" && \ | |
7869 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5 | |
7870 | ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5 | |
7871 | ac_status=$? | |
7872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7873 | test $ac_status = 0; }; then | |
7874 | pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null` | |
7875 | else | |
7876 | pkg_failed=yes | |
7877 | fi | |
7878 | else | |
7879 | pkg_failed=untried | |
f8f6ec92 ZK |
7880 | fi |
7881 | ||
f8f6ec92 | 7882 | |
66e941e8 | 7883 | |
f11781c5 AK |
7884 | if test $pkg_failed = yes; then |
7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7886 | $as_echo "no" >&6; } | |
7887 | ||
7888 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
7889 | _pkg_short_errors_supported=yes | |
f8f6ec92 | 7890 | else |
f11781c5 | 7891 | _pkg_short_errors_supported=no |
66e941e8 | 7892 | fi |
f11781c5 AK |
7893 | if test $_pkg_short_errors_supported = yes; then |
7894 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1` | |
7895 | else | |
7896 | CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1` | |
7897 | fi | |
7898 | # Put the nasty error message in config.log where it belongs | |
7899 | echo "$CONFDB_PKG_ERRORS" >&5 | |
66e941e8 | 7900 | |
f11781c5 AK |
7901 | HAVE_CONFDB=no |
7902 | elif test $pkg_failed = untried; then | |
7903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7904 | $as_echo "no" >&6; } | |
7905 | HAVE_CONFDB=no | |
7906 | else | |
7907 | CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS | |
7908 | CONFDB_LIBS=$pkg_cv_CONFDB_LIBS | |
7909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7910 | $as_echo "yes" >&6; } | |
7911 | HAVE_CONFDB=yes | |
66e941e8 | 7912 | fi |
f11781c5 AK |
7913 | |
7914 | for ac_header in corosync/confdb.h | |
7915 | do : | |
7916 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default" | |
7917 | if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then : | |
f8f6ec92 | 7918 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 7919 | #define HAVE_COROSYNC_CONFDB_H 1 |
f8f6ec92 | 7920 | _ACEOF |
f11781c5 | 7921 | HAVE_CONFDB_H=yes |
66e941e8 | 7922 | else |
f11781c5 | 7923 | HAVE_CONFDB_H=no |
66e941e8 | 7924 | fi |
dd1f2c09 MB |
7925 | |
7926 | done | |
7927 | ||
7928 | ||
f11781c5 AK |
7929 | if test x$HAVE_CONFDB != xyes && \ |
7930 | test x$HAVE_CONFDB_H = xyes; then | |
7931 | check_lib_no_libs confdb confdb_initialize | |
7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5 | |
7933 | $as_echo "no pkg for confdb, using -lconfdb" >&6; } | |
7934 | CONFDB_LIBS="-lconfdb" | |
7935 | HAVE_CONFDB=yes | |
7936 | fi | |
b6d7a484 AK |
7937 | fi |
7938 | ||
7939 | ||
7940 | if test x$CHECKCMAP = xyes; then | |
7941 | ||
7942 | pkg_failed=no | |
7943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5 | |
7944 | $as_echo_n "checking for CMAP... " >&6; } | |
7945 | ||
7946 | if test -n "$CMAP_CFLAGS"; then | |
7947 | pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS" | |
7948 | elif test -n "$PKG_CONFIG"; then | |
7949 | if test -n "$PKG_CONFIG" && \ | |
7950 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5 | |
7951 | ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5 | |
7952 | ac_status=$? | |
7953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7954 | test $ac_status = 0; }; then | |
7955 | pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null` | |
7956 | else | |
7957 | pkg_failed=yes | |
7958 | fi | |
7959 | else | |
7960 | pkg_failed=untried | |
7961 | fi | |
7962 | if test -n "$CMAP_LIBS"; then | |
7963 | pkg_cv_CMAP_LIBS="$CMAP_LIBS" | |
7964 | elif test -n "$PKG_CONFIG"; then | |
7965 | if test -n "$PKG_CONFIG" && \ | |
7966 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5 | |
7967 | ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5 | |
7968 | ac_status=$? | |
7969 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7970 | test $ac_status = 0; }; then | |
7971 | pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null` | |
7972 | else | |
7973 | pkg_failed=yes | |
7974 | fi | |
7975 | else | |
7976 | pkg_failed=untried | |
7977 | fi | |
7978 | ||
7979 | ||
7980 | ||
7981 | if test $pkg_failed = yes; then | |
7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7983 | $as_echo "no" >&6; } | |
f11781c5 | 7984 | |
b6d7a484 AK |
7985 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
7986 | _pkg_short_errors_supported=yes | |
7987 | else | |
7988 | _pkg_short_errors_supported=no | |
7989 | fi | |
7990 | if test $_pkg_short_errors_supported = yes; then | |
7991 | CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1` | |
7992 | else | |
7993 | CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1` | |
7994 | fi | |
7995 | # Put the nasty error message in config.log where it belongs | |
7996 | echo "$CMAP_PKG_ERRORS" >&5 | |
7997 | ||
7998 | HAVE_CMAP=no | |
7999 | elif test $pkg_failed = untried; then | |
8000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8001 | $as_echo "no" >&6; } | |
8002 | HAVE_CMAP=no | |
8003 | else | |
8004 | CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS | |
8005 | CMAP_LIBS=$pkg_cv_CMAP_LIBS | |
8006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8007 | $as_echo "yes" >&6; } | |
8008 | HAVE_CMAP=yes | |
8009 | fi | |
8010 | ||
8011 | for ac_header in corosync/cmap.h | |
8012 | do : | |
8013 | ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default" | |
8014 | if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then : | |
8015 | cat >>confdefs.h <<_ACEOF | |
8016 | #define HAVE_COROSYNC_CMAP_H 1 | |
8017 | _ACEOF | |
8018 | HAVE_CMAP_H=yes | |
8019 | else | |
8020 | HAVE_CMAP_H=no | |
8021 | fi | |
8022 | ||
8023 | done | |
8024 | ||
8025 | ||
8026 | if test x$HAVE_CMAP != xyes && \ | |
8027 | test x$HAVE_CMAP_H = xyes; then | |
8028 | check_lib_no_libs cmap cmap_initialize | |
8029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5 | |
8030 | $as_echo "no pkg for cmap, using -lcmap" >&6; } | |
8031 | CMAP_LIBS="-lcmap" | |
8032 | HAVE_CMAP=yes | |
8033 | fi | |
8034 | fi | |
8035 | ||
8036 | if test x$BUILDCOROSYNC = xyes; then | |
8037 | if test x$HAVE_CMAP != xyes && \ | |
8038 | test x$HAVE_CONFDB != xyes && \ | |
f11781c5 | 8039 | test x$CLVMD != xall; then |
b6d7a484 | 8040 | as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5 |
f11781c5 | 8041 | fi |
dd1f2c09 | 8042 | fi |
f11781c5 AK |
8043 | |
8044 | if test x$CHECKCPG = xyes; then | |
8045 | ||
8046 | pkg_failed=no | |
8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8048 | $as_echo_n "checking for CPG... " >&6; } | |
8049 | ||
8050 | if test -n "$CPG_CFLAGS"; then | |
8051 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8052 | elif test -n "$PKG_CONFIG"; then | |
8053 | if test -n "$PKG_CONFIG" && \ | |
8054 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8055 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8056 | ac_status=$? | |
8057 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8058 | test $ac_status = 0; }; then | |
8059 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
dd1f2c09 | 8060 | else |
f11781c5 AK |
8061 | pkg_failed=yes |
8062 | fi | |
8063 | else | |
8064 | pkg_failed=untried | |
8065 | fi | |
8066 | if test -n "$CPG_LIBS"; then | |
8067 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8068 | elif test -n "$PKG_CONFIG"; then | |
8069 | if test -n "$PKG_CONFIG" && \ | |
8070 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8071 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
dd1f2c09 | 8072 | ac_status=$? |
f11781c5 AK |
8073 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8074 | test $ac_status = 0; }; then | |
8075 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
dd1f2c09 | 8076 | else |
f11781c5 AK |
8077 | pkg_failed=yes |
8078 | fi | |
8079 | else | |
8080 | pkg_failed=untried | |
8081 | fi | |
8082 | ||
8083 | ||
8084 | ||
8085 | if test $pkg_failed = yes; then | |
8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8087 | $as_echo "no" >&6; } | |
8088 | ||
8089 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8090 | _pkg_short_errors_supported=yes | |
8091 | else | |
8092 | _pkg_short_errors_supported=no | |
8093 | fi | |
8094 | if test $_pkg_short_errors_supported = yes; then | |
8095 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8096 | else | |
8097 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8098 | fi | |
8099 | # Put the nasty error message in config.log where it belongs | |
8100 | echo "$CPG_PKG_ERRORS" >&5 | |
dd1f2c09 | 8101 | |
f11781c5 AK |
8102 | $bailout |
8103 | elif test $pkg_failed = untried; then | |
8104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8105 | $as_echo "no" >&6; } | |
8106 | $bailout | |
8107 | else | |
8108 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
8109 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8111 | $as_echo "yes" >&6; } | |
8112 | HAVE_CPG=yes | |
8113 | fi | |
dd1f2c09 MB |
8114 | fi |
8115 | ||
f11781c5 | 8116 | if test x$CHECKDLM = xyes; then |
dd1f2c09 | 8117 | |
f11781c5 AK |
8118 | pkg_failed=no |
8119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5 | |
8120 | $as_echo_n "checking for DLM... " >&6; } | |
8121 | ||
8122 | if test -n "$DLM_CFLAGS"; then | |
8123 | pkg_cv_DLM_CFLAGS="$DLM_CFLAGS" | |
8124 | elif test -n "$PKG_CONFIG"; then | |
8125 | if test -n "$PKG_CONFIG" && \ | |
8126 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8127 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
dd1f2c09 | 8128 | ac_status=$? |
f11781c5 AK |
8129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8130 | test $ac_status = 0; }; then | |
8131 | pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null` | |
dd1f2c09 | 8132 | else |
f11781c5 AK |
8133 | pkg_failed=yes |
8134 | fi | |
8135 | else | |
8136 | pkg_failed=untried | |
8137 | fi | |
8138 | if test -n "$DLM_LIBS"; then | |
8139 | pkg_cv_DLM_LIBS="$DLM_LIBS" | |
8140 | elif test -n "$PKG_CONFIG"; then | |
8141 | if test -n "$PKG_CONFIG" && \ | |
8142 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5 | |
8143 | ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5 | |
8144 | ac_status=$? | |
8145 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8146 | test $ac_status = 0; }; then | |
8147 | pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null` | |
8148 | else | |
8149 | pkg_failed=yes | |
8150 | fi | |
8151 | else | |
8152 | pkg_failed=untried | |
dd1f2c09 MB |
8153 | fi |
8154 | ||
dd1f2c09 | 8155 | |
dd1f2c09 | 8156 | |
f11781c5 AK |
8157 | if test $pkg_failed = yes; then |
8158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8159 | $as_echo "no" >&6; } | |
8160 | ||
8161 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8162 | _pkg_short_errors_supported=yes | |
dd1f2c09 | 8163 | else |
f11781c5 | 8164 | _pkg_short_errors_supported=no |
dd1f2c09 | 8165 | fi |
f11781c5 AK |
8166 | if test $_pkg_short_errors_supported = yes; then |
8167 | DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1` | |
8168 | else | |
8169 | DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1` | |
8170 | fi | |
8171 | # Put the nasty error message in config.log where it belongs | |
8172 | echo "$DLM_PKG_ERRORS" >&5 | |
dd1f2c09 | 8173 | |
f11781c5 AK |
8174 | NOTFOUND=0 |
8175 | for ac_header in libdlm.h | |
8176 | do : | |
8177 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8178 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
dd1f2c09 | 8179 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 8180 | #define HAVE_LIBDLM_H 1 |
dd1f2c09 MB |
8181 | _ACEOF |
8182 | ||
f11781c5 AK |
8183 | else |
8184 | $bailout | |
dd1f2c09 | 8185 | fi |
f8f6ec92 ZK |
8186 | |
8187 | done | |
8188 | ||
f11781c5 AK |
8189 | check_lib_no_libs dlm dlm_lock -lpthread |
8190 | if test $NOTFOUND = 0; then | |
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8192 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8193 | DLM_LIBS="-ldlm -lpthread" | |
8194 | HAVE_DLM=yes | |
8195 | fi | |
8196 | elif test $pkg_failed = untried; then | |
8197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8198 | $as_echo "no" >&6; } | |
8199 | NOTFOUND=0 | |
8200 | for ac_header in libdlm.h | |
8201 | do : | |
8202 | ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default" | |
8203 | if test "x$ac_cv_header_libdlm_h" = x""yes; then : | |
8204 | cat >>confdefs.h <<_ACEOF | |
8205 | #define HAVE_LIBDLM_H 1 | |
f8f6ec92 ZK |
8206 | _ACEOF |
8207 | ||
f8f6ec92 | 8208 | else |
f11781c5 | 8209 | $bailout |
ad6254c5 AK |
8210 | fi |
8211 | ||
f11781c5 | 8212 | done |
8b1a3214 | 8213 | |
f11781c5 AK |
8214 | check_lib_no_libs dlm dlm_lock -lpthread |
8215 | if test $NOTFOUND = 0; then | |
8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5 | |
8217 | $as_echo "no pkg for libdlm, using -ldlm" >&6; } | |
8218 | DLM_LIBS="-ldlm -lpthread" | |
8219 | HAVE_DLM=yes | |
8220 | fi | |
8b1a3214 | 8221 | else |
f11781c5 AK |
8222 | DLM_CFLAGS=$pkg_cv_DLM_CFLAGS |
8223 | DLM_LIBS=$pkg_cv_DLM_LIBS | |
8224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8225 | $as_echo "yes" >&6; } | |
8226 | HAVE_DLM=yes | |
8b1a3214 | 8227 | fi |
8b1a3214 AK |
8228 | fi |
8229 | ||
f11781c5 AK |
8230 | if test x$CLVMD = xall; then |
8231 | CLVMD=none | |
8232 | CLVMD_CMANAGERS="" | |
8233 | CLVMD_NEEDS_QDISKD=no | |
f11781c5 AK |
8234 | if test x$HAVE_CMAN = xyes && \ |
8235 | test x$HAVE_DLM = xyes; then | |
8236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5 | |
8237 | $as_echo "Enabling clvmd cman cluster manager" >&6; } | |
8238 | CLVMD="$CLVMD,cman" | |
8239 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman" | |
8240 | CLVMD_NEEDS_QDISKD=yes | |
8241 | fi | |
8242 | if test x$HAVE_COROSYNC = xyes && \ | |
8243 | test x$HAVE_QUORUM = xyes && \ | |
8244 | test x$HAVE_CPG = xyes && \ | |
b6d7a484 AK |
8245 | test x$HAVE_DLM = xyes; then |
8246 | if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then | |
f11781c5 AK |
8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5 |
8248 | $as_echo "Enabling clvmd corosync cluster manager" >&6; } | |
8249 | CLVMD="$CLVMD,corosync" | |
8250 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync" | |
b6d7a484 | 8251 | fi |
f11781c5 AK |
8252 | fi |
8253 | if test x$HAVE_COROSYNC = xyes && \ | |
8254 | test x$HAVE_CPG = xyes && \ | |
8255 | test x$HAVE_SALCK = xyes; then | |
8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5 | |
8257 | $as_echo "Enabling clvmd openais cluster manager" >&6; } | |
8258 | CLVMD="$CLVMD,openais" | |
8259 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais" | |
8260 | fi | |
8261 | if test x$CLVMD_NEEDS_QDISKD != xno; then | |
8262 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd" | |
8263 | fi | |
8264 | if test x$CLVMD = xnone; then | |
8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5 | |
8266 | $as_echo "Disabling clvmd build. No cluster manager detected." >&6; } | |
8b1a3214 AK |
8267 | fi |
8268 | fi | |
8269 | ||
75fad6ea MB |
8270 | if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then |
8271 | if test x$HAVE_CMAP = xyes; then | |
8272 | CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm" | |
8273 | fi | |
8274 | fi | |
8275 | ||
ad6254c5 | 8276 | ################################################################################ |
f11781c5 | 8277 | if test "x$CLVMD" != xnone; then |
ad6254c5 | 8278 | |
f11781c5 AK |
8279 | # Check whether --with-clvmd-pidfile was given. |
8280 | if test "${with_clvmd_pidfile+set}" = set; then : | |
8281 | withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval | |
ad6254c5 | 8282 | else |
5723db01 | 8283 | CLVMD_PIDFILE="$DEFAULT_PID_DIR/clvmd.pid" |
ad6254c5 | 8284 | fi |
7a197a62 | 8285 | |
ad6254c5 | 8286 | |
f11781c5 AK |
8287 | cat >>confdefs.h <<_ACEOF |
8288 | #define CLVMD_PIDFILE "$CLVMD_PIDFILE" | |
ad6254c5 | 8289 | _ACEOF |
ad6254c5 | 8290 | |
ad6254c5 | 8291 | fi |
7a197a62 | 8292 | |
f11781c5 AK |
8293 | ################################################################################ |
8294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5 | |
8295 | $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; } | |
8296 | # Check whether --enable-cmirrord was given. | |
8297 | if test "${enable_cmirrord+set}" = set; then : | |
8298 | enableval=$enable_cmirrord; CMIRRORD=$enableval | |
8299 | else | |
8300 | CMIRRORD=no | |
8301 | fi | |
8302 | ||
8303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5 | |
8304 | $as_echo "$CMIRRORD" >&6; } | |
ad6254c5 | 8305 | |
f11781c5 | 8306 | BUILD_CMIRRORD=$CMIRRORD |
7a197a62 | 8307 | |
f11781c5 AK |
8308 | ################################################################################ |
8309 | if test "x$BUILD_CMIRRORD" = xyes; then | |
8310 | ||
8311 | # Check whether --with-cmirrord-pidfile was given. | |
8312 | if test "${with_cmirrord_pidfile+set}" = set; then : | |
8313 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval | |
ad6254c5 | 8314 | else |
5723db01 | 8315 | CMIRRORD_PIDFILE="$DEFAULT_PID_DIR/cmirrord.pid" |
ad6254c5 | 8316 | fi |
ad6254c5 | 8317 | |
72b2cb61 | 8318 | |
f11781c5 AK |
8319 | cat >>confdefs.h <<_ACEOF |
8320 | #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE" | |
72b2cb61 AK |
8321 | _ACEOF |
8322 | ||
ad6254c5 AK |
8323 | fi |
8324 | ||
f11781c5 AK |
8325 | ################################################################################ |
8326 | if [ "x$BUILD_CMIRRORD" = xyes ]; then | |
8327 | if test x$PKGCONFIG_INIT != x1; then | |
8328 | pkg_config_init | |
8329 | fi | |
ad6254c5 | 8330 | |
62e38da1 JEB |
8331 | |
8332 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 1" >>confdefs.h | |
8333 | ||
8334 | ||
f11781c5 AK |
8335 | pkg_failed=no |
8336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5 | |
8337 | $as_echo_n "checking for SACKPT... " >&6; } | |
ad6254c5 | 8338 | |
f11781c5 AK |
8339 | if test -n "$SACKPT_CFLAGS"; then |
8340 | pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS" | |
8341 | elif test -n "$PKG_CONFIG"; then | |
8342 | if test -n "$PKG_CONFIG" && \ | |
8343 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8344 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
8345 | ac_status=$? | |
8346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8347 | test $ac_status = 0; }; then | |
8348 | pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8349 | else |
f11781c5 AK |
8350 | pkg_failed=yes |
8351 | fi | |
8352 | else | |
8353 | pkg_failed=untried | |
8354 | fi | |
8355 | if test -n "$SACKPT_LIBS"; then | |
8356 | pkg_cv_SACKPT_LIBS="$SACKPT_LIBS" | |
8357 | elif test -n "$PKG_CONFIG"; then | |
8358 | if test -n "$PKG_CONFIG" && \ | |
8359 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5 | |
8360 | ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5 | |
539f4a77 | 8361 | ac_status=$? |
f11781c5 AK |
8362 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8363 | test $ac_status = 0; }; then | |
8364 | pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null` | |
539f4a77 | 8365 | else |
f11781c5 AK |
8366 | pkg_failed=yes |
8367 | fi | |
8368 | else | |
8369 | pkg_failed=untried | |
8370 | fi | |
539f4a77 ZK |
8371 | |
8372 | ||
539f4a77 | 8373 | |
f11781c5 AK |
8374 | if test $pkg_failed = yes; then |
8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8376 | $as_echo "no" >&6; } | |
8377 | ||
8378 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8379 | _pkg_short_errors_supported=yes | |
539f4a77 | 8380 | else |
f11781c5 | 8381 | _pkg_short_errors_supported=no |
539f4a77 | 8382 | fi |
f11781c5 AK |
8383 | if test $_pkg_short_errors_supported = yes; then |
8384 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1` | |
8385 | else | |
8386 | SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1` | |
8387 | fi | |
8388 | # Put the nasty error message in config.log where it belongs | |
8389 | echo "$SACKPT_PKG_ERRORS" >&5 | |
8390 | ||
62e38da1 JEB |
8391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5 |
8392 | $as_echo "no libSaCkpt, compiling without it" >&6; } | |
f11781c5 | 8393 | |
62e38da1 | 8394 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h |
f11781c5 AK |
8395 | |
8396 | elif test $pkg_failed = untried; then | |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8398 | $as_echo "no" >&6; } | |
62e38da1 JEB |
8399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5 |
8400 | $as_echo "no libSaCkpt, compiling without it" >&6; } | |
f11781c5 | 8401 | |
62e38da1 | 8402 | $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h |
f11781c5 | 8403 | |
539f4a77 | 8404 | else |
f11781c5 AK |
8405 | SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS |
8406 | SACKPT_LIBS=$pkg_cv_SACKPT_LIBS | |
8407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8408 | $as_echo "yes" >&6; } | |
62e38da1 | 8409 | HAVE_SACKPT=yes |
539f4a77 | 8410 | fi |
62e38da1 | 8411 | |
f11781c5 | 8412 | if test x$HAVE_CPG != xyes; then |
539f4a77 | 8413 | |
f11781c5 AK |
8414 | pkg_failed=no |
8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5 | |
8416 | $as_echo_n "checking for CPG... " >&6; } | |
ad6254c5 | 8417 | |
f11781c5 AK |
8418 | if test -n "$CPG_CFLAGS"; then |
8419 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
8420 | elif test -n "$PKG_CONFIG"; then | |
8421 | if test -n "$PKG_CONFIG" && \ | |
8422 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8423 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
ad6254c5 | 8424 | ac_status=$? |
f11781c5 AK |
8425 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8426 | test $ac_status = 0; }; then | |
8427 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
ad6254c5 | 8428 | else |
f11781c5 AK |
8429 | pkg_failed=yes |
8430 | fi | |
8431 | else | |
8432 | pkg_failed=untried | |
8433 | fi | |
8434 | if test -n "$CPG_LIBS"; then | |
8435 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
8436 | elif test -n "$PKG_CONFIG"; then | |
8437 | if test -n "$PKG_CONFIG" && \ | |
8438 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
8439 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
8440 | ac_status=$? | |
8441 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8442 | test $ac_status = 0; }; then | |
8443 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
8444 | else | |
8445 | pkg_failed=yes | |
8446 | fi | |
8447 | else | |
8448 | pkg_failed=untried | |
8449 | fi | |
8450 | ||
8451 | ||
8452 | ||
8453 | if test $pkg_failed = yes; then | |
8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8455 | $as_echo "no" >&6; } | |
ad6254c5 | 8456 | |
f11781c5 AK |
8457 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
8458 | _pkg_short_errors_supported=yes | |
8459 | else | |
8460 | _pkg_short_errors_supported=no | |
ad6254c5 | 8461 | fi |
f11781c5 AK |
8462 | if test $_pkg_short_errors_supported = yes; then |
8463 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1` | |
8464 | else | |
8465 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1` | |
8466 | fi | |
8467 | # Put the nasty error message in config.log where it belongs | |
8468 | echo "$CPG_PKG_ERRORS" >&5 | |
8469 | ||
8470 | as_fn_error $? "Package requirements (libcpg) were not met: | |
8471 | ||
8472 | $CPG_PKG_ERRORS | |
8473 | ||
8474 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8475 | installed software in a non-standard prefix. | |
8476 | ||
8477 | Alternatively, you may set the environment variables CPG_CFLAGS | |
8478 | and CPG_LIBS to avoid the need to call pkg-config. | |
8479 | See the pkg-config man page for more details." "$LINENO" 5 | |
7a197a62 | 8480 | |
f11781c5 AK |
8481 | elif test $pkg_failed = untried; then |
8482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8483 | $as_echo "no" >&6; } | |
8484 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8485 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8486 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8487 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8488 | path to pkg-config. | |
539f4a77 | 8489 | |
f11781c5 AK |
8490 | Alternatively, you may set the environment variables CPG_CFLAGS |
8491 | and CPG_LIBS to avoid the need to call pkg-config. | |
8492 | See the pkg-config man page for more details. | |
539f4a77 | 8493 | |
f11781c5 AK |
8494 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
8495 | See \`config.log' for more details" "$LINENO" 5; } | |
bc1024f8 | 8496 | |
539f4a77 | 8497 | else |
f11781c5 AK |
8498 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS |
8499 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
8500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8501 | $as_echo "yes" >&6; } | |
bc1024f8 | 8502 | |
f11781c5 AK |
8503 | fi |
8504 | fi | |
8505 | fi | |
8506 | ||
8507 | ################################################################################ | |
8508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 | |
8509 | $as_echo_n "checking whether to enable debugging... " >&6; } | |
8510 | # Check whether --enable-debug was given. | |
8511 | if test "${enable_debug+set}" = set; then : | |
8512 | enableval=$enable_debug; DEBUG=$enableval | |
ad6254c5 | 8513 | else |
f11781c5 AK |
8514 | DEBUG=no |
8515 | fi | |
8516 | ||
8517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 | |
8518 | $as_echo "$DEBUG" >&6; } | |
539f4a77 | 8519 | |
f11781c5 AK |
8520 | if test x$DEBUG = xyes; then |
8521 | COPTIMISE_FLAG= | |
8522 | else | |
8523 | CSCOPE_CMD= | |
06e459df JM |
8524 | fi |
8525 | ||
f11781c5 AK |
8526 | ################################################################################ |
8527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 | |
8528 | $as_echo_n "checking for C optimisation flag... " >&6; } | |
8529 | ||
8530 | # Check whether --with-optimisation was given. | |
8531 | if test "${with_optimisation+set}" = set; then : | |
8532 | withval=$with_optimisation; COPTIMISE_FLAG=$withval | |
539f4a77 | 8533 | fi |
539f4a77 | 8534 | |
f11781c5 AK |
8535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5 |
8536 | $as_echo "$COPTIMISE_FLAG" >&6; } | |
539f4a77 | 8537 | |
f11781c5 AK |
8538 | ################################################################################ |
8539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5 | |
8540 | $as_echo_n "checking whether to gather gcov profiling data... " >&6; } | |
8541 | # Check whether --enable-profiling was given. | |
8542 | if test "${enable_profiling+set}" = set; then : | |
8543 | enableval=$enable_profiling; PROFILING=$enableval | |
8544 | else | |
8545 | PROFILING=no | |
539f4a77 ZK |
8546 | fi |
8547 | ||
f11781c5 AK |
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5 |
8549 | $as_echo "$PROFILING" >&6; } | |
8550 | ||
8551 | if test "x$PROFILING" = xyes; then | |
8552 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage" | |
8553 | # Extract the first word of "lcov", so it can be a program name with args. | |
8554 | set dummy lcov; ac_word=$2 | |
8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8556 | $as_echo_n "checking for $ac_word... " >&6; } | |
8557 | if test "${ac_cv_path_LCOV+set}" = set; then : | |
8558 | $as_echo_n "(cached) " >&6 | |
539f4a77 | 8559 | else |
f11781c5 AK |
8560 | case $LCOV in |
8561 | [\\/]* | ?:[\\/]*) | |
8562 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
8563 | ;; | |
8564 | *) | |
8565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8566 | for as_dir in $PATH | |
8567 | do | |
8568 | IFS=$as_save_IFS | |
8569 | test -z "$as_dir" && as_dir=. | |
8570 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8572 | ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" | |
8573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8574 | break 2 | |
8575 | fi | |
8576 | done | |
8577 | done | |
8578 | IFS=$as_save_IFS | |
539f4a77 | 8579 | |
f11781c5 AK |
8580 | ;; |
8581 | esac | |
8582 | fi | |
8583 | LCOV=$ac_cv_path_LCOV | |
8584 | if test -n "$LCOV"; then | |
8585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 | |
8586 | $as_echo "$LCOV" >&6; } | |
8587 | else | |
8588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8589 | $as_echo "no" >&6; } | |
539f4a77 ZK |
8590 | fi |
8591 | ||
bc1024f8 | 8592 | |
f11781c5 AK |
8593 | # Extract the first word of "genhtml", so it can be a program name with args. |
8594 | set dummy genhtml; ac_word=$2 | |
8595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8596 | $as_echo_n "checking for $ac_word... " >&6; } | |
8597 | if test "${ac_cv_path_GENHTML+set}" = set; then : | |
ec6a6fbe | 8598 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 8599 | else |
f11781c5 AK |
8600 | case $GENHTML in |
8601 | [\\/]* | ?:[\\/]*) | |
8602 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
8603 | ;; | |
8604 | *) | |
8605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8606 | for as_dir in $PATH | |
8607 | do | |
8608 | IFS=$as_save_IFS | |
8609 | test -z "$as_dir" && as_dir=. | |
8610 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8612 | ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" | |
8613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8614 | break 2 | |
8615 | fi | |
8616 | done | |
8617 | done | |
8618 | IFS=$as_save_IFS | |
8a2fc586 | 8619 | |
f11781c5 AK |
8620 | ;; |
8621 | esac | |
8622 | fi | |
8623 | GENHTML=$ac_cv_path_GENHTML | |
8624 | if test -n "$GENHTML"; then | |
8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 | |
8626 | $as_echo "$GENHTML" >&6; } | |
8627 | else | |
8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8629 | $as_echo "no" >&6; } | |
8630 | fi | |
8a2fc586 | 8631 | |
8a2fc586 | 8632 | |
f11781c5 AK |
8633 | if test -z "$LCOV" -o -z "$GENHTML"; then |
8634 | as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5 | |
8635 | fi | |
8636 | # Extract the first word of "genpng", so it can be a program name with args. | |
8637 | set dummy genpng; ac_word=$2 | |
8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8639 | $as_echo_n "checking for $ac_word... " >&6; } | |
8640 | if test "${ac_cv_path_GENPNG+set}" = set; then : | |
8641 | $as_echo_n "(cached) " >&6 | |
8642 | else | |
8643 | case $GENPNG in | |
8644 | [\\/]* | ?:[\\/]*) | |
8645 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
8646 | ;; | |
8647 | *) | |
8648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8649 | for as_dir in $PATH | |
8650 | do | |
8651 | IFS=$as_save_IFS | |
8652 | test -z "$as_dir" && as_dir=. | |
8653 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8654 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8655 | ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext" | |
8656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8657 | break 2 | |
8658 | fi | |
8659 | done | |
8660 | done | |
8661 | IFS=$as_save_IFS | |
ad6254c5 | 8662 | |
f11781c5 | 8663 | ;; |
7a197a62 | 8664 | esac |
f11781c5 AK |
8665 | fi |
8666 | GENPNG=$ac_cv_path_GENPNG | |
8667 | if test -n "$GENPNG"; then | |
8668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5 | |
8669 | $as_echo "$GENPNG" >&6; } | |
ad6254c5 | 8670 | else |
f11781c5 AK |
8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8672 | $as_echo "no" >&6; } | |
8673 | fi | |
8674 | ||
8675 | ||
8676 | if test -n "$GENPNG"; then | |
8677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5 | |
8678 | $as_echo_n "checking whether $GENPNG has all required modules... " >&6; } | |
8679 | if $GENPNG --help > /dev/null 2>&1 ; then | |
8680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
8681 | $as_echo "ok" >&6; } | |
8682 | GENHTML="$GENHTML --frames" | |
8683 | else | |
8684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 | |
8685 | $as_echo "not supported" >&6; } | |
8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5 | |
8687 | $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
8688 | GENPNG= | |
8689 | fi | |
8690 | fi | |
8691 | fi | |
ad6254c5 | 8692 | |
f11781c5 AK |
8693 | ################################################################################ |
8694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5 | |
8695 | $as_echo_n "checking whether to enable unit testing... " >&6; } | |
8696 | # Check whether --enable-testing was given. | |
8697 | if test "${enable_testing+set}" = set; then : | |
8698 | enableval=$enable_testing; TESTING=$enableval | |
8699 | else | |
8700 | TESTING=no | |
ad6254c5 | 8701 | fi |
7a197a62 | 8702 | |
f11781c5 AK |
8703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5 |
8704 | $as_echo "$TESTING" >&6; } | |
72b2cb61 | 8705 | |
f11781c5 | 8706 | if test "$TESTING" = yes; then |
426fc742 PR |
8707 | |
8708 | pkg_failed=no | |
8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5 | |
8710 | $as_echo_n "checking for CUNIT... " >&6; } | |
8711 | ||
8712 | if test -n "$CUNIT_CFLAGS"; then | |
8713 | pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS" | |
8714 | elif test -n "$PKG_CONFIG"; then | |
8715 | if test -n "$PKG_CONFIG" && \ | |
8716 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5 | |
8717 | ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5 | |
8718 | ac_status=$? | |
8719 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8720 | test $ac_status = 0; }; then | |
8721 | pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null` | |
8722 | else | |
8723 | pkg_failed=yes | |
8724 | fi | |
8725 | else | |
8726 | pkg_failed=untried | |
8727 | fi | |
8728 | if test -n "$CUNIT_LIBS"; then | |
8729 | pkg_cv_CUNIT_LIBS="$CUNIT_LIBS" | |
8730 | elif test -n "$PKG_CONFIG"; then | |
8731 | if test -n "$PKG_CONFIG" && \ | |
8732 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5 | |
8733 | ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5 | |
8734 | ac_status=$? | |
8735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8736 | test $ac_status = 0; }; then | |
8737 | pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null` | |
ad6254c5 | 8738 | else |
426fc742 PR |
8739 | pkg_failed=yes |
8740 | fi | |
8741 | else | |
8742 | pkg_failed=untried | |
ad6254c5 AK |
8743 | fi |
8744 | ||
7a197a62 | 8745 | |
426fc742 PR |
8746 | |
8747 | if test $pkg_failed = yes; then | |
8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8749 | $as_echo "no" >&6; } | |
8750 | ||
8751 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8752 | _pkg_short_errors_supported=yes | |
8753 | else | |
8754 | _pkg_short_errors_supported=no | |
8755 | fi | |
8756 | if test $_pkg_short_errors_supported = yes; then | |
8757 | CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1` | |
8758 | else | |
8759 | CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1` | |
8760 | fi | |
8761 | # Put the nasty error message in config.log where it belongs | |
8762 | echo "$CUNIT_PKG_ERRORS" >&5 | |
8763 | ||
8764 | as_fn_error $? "Package requirements (cunit >= 2.0) were not met: | |
8765 | ||
8766 | $CUNIT_PKG_ERRORS | |
8767 | ||
8768 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8769 | installed software in a non-standard prefix. | |
8770 | ||
8771 | Alternatively, you may set the environment variables CUNIT_CFLAGS | |
8772 | and CUNIT_LIBS to avoid the need to call pkg-config. | |
8773 | See the pkg-config man page for more details." "$LINENO" 5 | |
8774 | ||
8775 | elif test $pkg_failed = untried; then | |
8776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8777 | $as_echo "no" >&6; } | |
8778 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8779 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8780 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8781 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8782 | path to pkg-config. | |
8783 | ||
8784 | Alternatively, you may set the environment variables CUNIT_CFLAGS | |
8785 | and CUNIT_LIBS to avoid the need to call pkg-config. | |
8786 | See the pkg-config man page for more details. | |
8787 | ||
8788 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8789 | See \`config.log' for more details" "$LINENO" 5; } | |
8790 | ||
8791 | else | |
8792 | CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS | |
8793 | CUNIT_LIBS=$pkg_cv_CUNIT_LIBS | |
8794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8795 | $as_echo "yes" >&6; } | |
8796 | ||
8797 | fi | |
f11781c5 | 8798 | fi |
ad6254c5 | 8799 | |
f11781c5 AK |
8800 | ################################################################################ |
8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5 | |
8802 | $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; } | |
8803 | # Check whether --enable-valgrind_pool was given. | |
8804 | if test "${enable_valgrind_pool+set}" = set; then : | |
8805 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
8806 | else | |
8807 | VALGRIND_POOL=no | |
8808 | fi | |
8809 | ||
8810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5 | |
8811 | $as_echo "$VALGRIND_POOL" >&6; } | |
8812 | ||
8813 | if test "$VALGRIND_POOL" = yes; then | |
8814 | for ac_header in valgrind/memcheck.h | |
8815 | do : | |
8816 | ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" | |
8817 | if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then : | |
8818 | cat >>confdefs.h <<_ACEOF | |
8819 | #define HAVE_VALGRIND_MEMCHECK_H 1 | |
8820 | _ACEOF | |
ad6254c5 | 8821 | |
ad6254c5 | 8822 | else |
f11781c5 | 8823 | as_fn_error $? "bailing out" "$LINENO" 5 |
7a197a62 AK |
8824 | fi |
8825 | ||
f11781c5 AK |
8826 | done |
8827 | ||
8828 | ||
8829 | $as_echo "#define VALGRIND_POOL 1" >>confdefs.h | |
8830 | ||
ad6254c5 AK |
8831 | fi |
8832 | ||
8833 | ################################################################################ | |
f11781c5 AK |
8834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5 |
8835 | $as_echo_n "checking whether to use device-mapper... " >&6; } | |
8836 | # Check whether --enable-devmapper was given. | |
8837 | if test "${enable_devmapper+set}" = set; then : | |
8838 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
7a197a62 AK |
8839 | fi |
8840 | ||
f11781c5 AK |
8841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5 |
8842 | $as_echo "$DEVMAPPER" >&6; } | |
ad6254c5 | 8843 | |
f11781c5 | 8844 | if test x$DEVMAPPER = xyes; then |
ad6254c5 | 8845 | |
f11781c5 AK |
8846 | $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h |
8847 | ||
8848 | fi | |
8849 | ||
cdd50823 ZK |
8850 | ################################################################################ |
8851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5 | |
8852 | $as_echo_n "checking whether to build LVMetaD... " >&6; } | |
8853 | # Check whether --enable-lvmetad was given. | |
8854 | if test "${enable_lvmetad+set}" = set; then : | |
8855 | enableval=$enable_lvmetad; LVMETAD=$enableval | |
8856 | fi | |
8857 | ||
8858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5 | |
8859 | $as_echo "$LVMETAD" >&6; } | |
8860 | ||
8861 | BUILD_LVMETAD=$LVMETAD | |
8862 | ||
7126d8c2 AK |
8863 | if test x$BUILD_LVMETAD = xyes; then |
8864 | ||
8865 | $as_echo "#define LVMETAD_SUPPORT 1" >>confdefs.h | |
8866 | ||
5723db01 PR |
8867 | |
8868 | ||
8869 | # Check whether --with-lvmetad-pidfile was given. | |
8870 | if test "${with_lvmetad_pidfile+set}" = set; then : | |
8871 | withval=$with_lvmetad_pidfile; LVMETAD_PIDFILE=$withval | |
8872 | else | |
8873 | LVMETAD_PIDFILE="$DEFAULT_PID_DIR/lvmetad.pid" | |
8874 | fi | |
8875 | ||
8876 | ||
8877 | cat >>confdefs.h <<_ACEOF | |
8878 | #define LVMETAD_PIDFILE "$LVMETAD_PIDFILE" | |
8879 | _ACEOF | |
8880 | ||
7126d8c2 AK |
8881 | fi |
8882 | ||
f11781c5 AK |
8883 | ################################################################################ |
8884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5 | |
8885 | $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; } | |
8886 | # Check whether --enable-udev_sync was given. | |
8887 | if test "${enable_udev_sync+set}" = set; then : | |
8888 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
ad6254c5 | 8889 | else |
f11781c5 | 8890 | UDEV_SYNC=no |
7a197a62 | 8891 | fi |
ad6254c5 | 8892 | |
f11781c5 AK |
8893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5 |
8894 | $as_echo "$UDEV_SYNC" >&6; } | |
33f732c5 | 8895 | |
f11781c5 | 8896 | if test x$UDEV_SYNC = xyes; then |
86ba564a AK |
8897 | if test x$PKGCONFIG_INIT != x1; then |
8898 | pkg_config_init | |
8899 | fi | |
7a197a62 | 8900 | |
d93275eb PR |
8901 | pkg_failed=no |
8902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 | |
8903 | $as_echo_n "checking for UDEV... " >&6; } | |
8904 | ||
8905 | if test -n "$UDEV_CFLAGS"; then | |
8906 | pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" | |
8907 | elif test -n "$PKG_CONFIG"; then | |
8908 | if test -n "$PKG_CONFIG" && \ | |
8909 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8910 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8911 | ac_status=$? | |
8912 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8913 | test $ac_status = 0; }; then | |
8914 | pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null` | |
68f2de6d | 8915 | else |
d93275eb | 8916 | pkg_failed=yes |
f11781c5 | 8917 | fi |
d93275eb PR |
8918 | else |
8919 | pkg_failed=untried | |
f11781c5 | 8920 | fi |
d93275eb PR |
8921 | if test -n "$UDEV_LIBS"; then |
8922 | pkg_cv_UDEV_LIBS="$UDEV_LIBS" | |
8923 | elif test -n "$PKG_CONFIG"; then | |
8924 | if test -n "$PKG_CONFIG" && \ | |
8925 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
8926 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
8927 | ac_status=$? | |
8928 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8929 | test $ac_status = 0; }; then | |
8930 | pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null` | |
f11781c5 | 8931 | else |
d93275eb | 8932 | pkg_failed=yes |
68f2de6d | 8933 | fi |
d93275eb PR |
8934 | else |
8935 | pkg_failed=untried | |
8936 | fi | |
8937 | ||
8938 | ||
8939 | ||
8940 | if test $pkg_failed = yes; then | |
8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8942 | $as_echo "no" >&6; } | |
8943 | ||
8944 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
8945 | _pkg_short_errors_supported=yes | |
8946 | else | |
8947 | _pkg_short_errors_supported=no | |
8948 | fi | |
8949 | if test $_pkg_short_errors_supported = yes; then | |
8950 | UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1` | |
8951 | else | |
8952 | UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1` | |
8953 | fi | |
8954 | # Put the nasty error message in config.log where it belongs | |
8955 | echo "$UDEV_PKG_ERRORS" >&5 | |
8956 | ||
8957 | as_fn_error $? "Package requirements (libudev >= 143) were not met: | |
8958 | ||
8959 | $UDEV_PKG_ERRORS | |
8960 | ||
8961 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
8962 | installed software in a non-standard prefix. | |
8963 | ||
8964 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8965 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8966 | See the pkg-config man page for more details." "$LINENO" 5 | |
68f2de6d | 8967 | |
d93275eb PR |
8968 | elif test $pkg_failed = untried; then |
8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8970 | $as_echo "no" >&6; } | |
8971 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8972 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8973 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
8974 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
8975 | path to pkg-config. | |
8976 | ||
8977 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
8978 | and UDEV_LIBS to avoid the need to call pkg-config. | |
8979 | See the pkg-config man page for more details. | |
8980 | ||
8981 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
8982 | See \`config.log' for more details" "$LINENO" 5; } | |
8983 | ||
8984 | else | |
8985 | UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS | |
8986 | UDEV_LIBS=$pkg_cv_UDEV_LIBS | |
8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8988 | $as_echo "yes" >&6; } | |
8989 | UDEV_PC="libudev" | |
8990 | fi | |
68f2de6d | 8991 | |
f11781c5 | 8992 | $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h |
68f2de6d | 8993 | |
f11781c5 AK |
8994 | fi |
8995 | ||
8996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5 | |
8997 | $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; } | |
8998 | # Check whether --enable-udev_rules was given. | |
8999 | if test "${enable_udev_rules+set}" = set; then : | |
9000 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
68f2de6d | 9001 | else |
f11781c5 | 9002 | UDEV_RULES=$UDEV_SYNC |
68f2de6d AK |
9003 | fi |
9004 | ||
f11781c5 AK |
9005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5 |
9006 | $as_echo "$UDEV_RULES" >&6; } | |
68f2de6d | 9007 | |
5723db01 PR |
9008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable executable path detection in udev rules" >&5 |
9009 | $as_echo_n "checking whether to enable executable path detection in udev rules... " >&6; } | |
9010 | # Check whether --enable-udev_rule_exec_detection was given. | |
9011 | if test "${enable_udev_rule_exec_detection+set}" = set; then : | |
9012 | enableval=$enable_udev_rule_exec_detection; UDEV_RULE_EXEC_DETECTION=$enableval | |
9013 | else | |
9014 | UDEV_RULE_EXEC_DETECTION=no | |
9015 | fi | |
9016 | ||
9017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULE_EXEC_DETECTION" >&5 | |
9018 | $as_echo "$UDEV_RULE_EXEC_DETECTION" >&6; } | |
9019 | ||
9020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether udev supports built-in blkid" >&5 | |
9021 | $as_echo_n "checking whether udev supports built-in blkid... " >&6; } | |
9022 | test x$PKGCONFIG_INIT != x1 && pkg_config_init | |
9023 | if $($PKG_CONFIG --atleast-version=176 libudev); then | |
9024 | UDEV_HAS_BUILTIN_BLKID=yes | |
9025 | else | |
9026 | UDEV_HAS_BUILTIN_BLKID=no | |
b559a1e6 | 9027 | fi |
5723db01 PR |
9028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5 |
9029 | $as_echo "$UDEV_HAS_BUILTIN_BLKID" >&6; } | |
b559a1e6 | 9030 | |
a5f46f6a | 9031 | ################################################################################ |
f11781c5 AK |
9032 | # Check whether --enable-compat was given. |
9033 | if test "${enable_compat+set}" = set; then : | |
9034 | enableval=$enable_compat; DM_COMPAT=$enableval | |
9035 | else | |
9036 | DM_COMPAT=no | |
9037 | fi | |
a5f46f6a | 9038 | |
f11781c5 | 9039 | |
2061c0ec AK |
9040 | if test x$DM_COMPAT = xyes; then |
9041 | as_fn_error $? "--enable-compat is not currently supported. | |
9042 | Since device-mapper version 1.02.66, only one version (4) of the device-mapper | |
9043 | ioctl protocol is supported. | |
9044 | " "$LINENO" 5 | |
9045 | fi | |
9046 | ||
f11781c5 AK |
9047 | ################################################################################ |
9048 | # Check whether --enable-units-compat was given. | |
9049 | if test "${enable_units_compat+set}" = set; then : | |
9050 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
a5f46f6a | 9051 | else |
f11781c5 | 9052 | UNITS_COMPAT=no |
a5f46f6a AK |
9053 | fi |
9054 | ||
9055 | ||
f11781c5 | 9056 | if test x$UNITS_COMPAT = xyes; then |
78ce7acc | 9057 | |
f11781c5 AK |
9058 | $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h |
9059 | ||
9060 | fi | |
9061 | ||
9062 | ################################################################################ | |
9063 | # Check whether --enable-ioctl was given. | |
9064 | if test "${enable_ioctl+set}" = set; then : | |
9065 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
78ce7acc AK |
9066 | fi |
9067 | ||
a5f46f6a | 9068 | |
ad6254c5 | 9069 | ################################################################################ |
f11781c5 AK |
9070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5 |
9071 | $as_echo_n "checking whether to enable O_DIRECT... " >&6; } | |
9072 | # Check whether --enable-o_direct was given. | |
9073 | if test "${enable_o_direct+set}" = set; then : | |
9074 | enableval=$enable_o_direct; ODIRECT=$enableval | |
9075 | fi | |
ad6254c5 | 9076 | |
f11781c5 AK |
9077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5 |
9078 | $as_echo "$ODIRECT" >&6; } | |
9079 | ||
9080 | if test x$ODIRECT = xyes; then | |
9081 | ||
9082 | $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h | |
ad6254c5 | 9083 | |
ad6254c5 | 9084 | fi |
ad6254c5 | 9085 | |
f11781c5 AK |
9086 | ################################################################################ |
9087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5 | |
9088 | $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; } | |
9089 | # Check whether --enable-applib was given. | |
9090 | if test "${enable_applib+set}" = set; then : | |
9091 | enableval=$enable_applib; APPLIB=$enableval | |
9092 | else | |
9093 | APPLIB=no | |
ad6254c5 | 9094 | fi |
7a197a62 | 9095 | |
f11781c5 AK |
9096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5 |
9097 | $as_echo "$APPLIB" >&6; } | |
ad6254c5 | 9098 | |
f11781c5 AK |
9099 | test x$APPLIB = xyes \ |
9100 | && LVM2APP_LIB=-llvm2app \ | |
9101 | || LVM2APP_LIB= | |
ad6254c5 | 9102 | |
f11781c5 AK |
9103 | ################################################################################ |
9104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5 | |
9105 | $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; } | |
9106 | # Check whether --enable-cmdlib was given. | |
9107 | if test "${enable_cmdlib+set}" = set; then : | |
9108 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
9109 | else | |
9110 | CMDLIB=no | |
ad6254c5 | 9111 | fi |
7a197a62 | 9112 | |
f11781c5 AK |
9113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5 |
9114 | $as_echo "$CMDLIB" >&6; } | |
7a197a62 | 9115 | |
f11781c5 AK |
9116 | test x$CMDLIB = xyes \ |
9117 | && LVM2CMD_LIB=-llvm2cmd \ | |
9118 | || LVM2CMD_LIB= | |
9119 | ||
9120 | ################################################################################ | |
9121 | # Check whether --enable-pkgconfig was given. | |
9122 | if test "${enable_pkgconfig+set}" = set; then : | |
9123 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
ad6254c5 | 9124 | else |
f11781c5 | 9125 | PKGCONFIG=no |
ad6254c5 | 9126 | fi |
ad6254c5 | 9127 | |
ad6254c5 | 9128 | |
f11781c5 AK |
9129 | ################################################################################ |
9130 | # Check whether --enable-write_install was given. | |
9131 | if test "${enable_write_install+set}" = set; then : | |
9132 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
ad6254c5 | 9133 | else |
f11781c5 | 9134 | WRITE_INSTALL=no |
ad6254c5 AK |
9135 | fi |
9136 | ||
ad6254c5 | 9137 | |
f11781c5 AK |
9138 | ################################################################################ |
9139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5 | |
9140 | $as_echo_n "checking whether to install fsadm... " >&6; } | |
9141 | # Check whether --enable-fsadm was given. | |
9142 | if test "${enable_fsadm+set}" = set; then : | |
9143 | enableval=$enable_fsadm; FSADM=$enableval | |
ad6254c5 AK |
9144 | fi |
9145 | ||
f11781c5 AK |
9146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5 |
9147 | $as_echo "$FSADM" >&6; } | |
ad6254c5 | 9148 | |
f11781c5 AK |
9149 | ################################################################################ |
9150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5 | |
9151 | $as_echo_n "checking whether to use dmeventd... " >&6; } | |
9152 | # Check whether --enable-dmeventd was given. | |
9153 | if test "${enable_dmeventd+set}" = set; then : | |
9154 | enableval=$enable_dmeventd; DMEVENTD=$enableval | |
9155 | fi | |
ad6254c5 | 9156 | |
f11781c5 AK |
9157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5 |
9158 | $as_echo "$DMEVENTD" >&6; } | |
ad6254c5 | 9159 | |
f11781c5 | 9160 | BUILD_DMEVENTD=$DMEVENTD |
ad6254c5 | 9161 | |
f11781c5 AK |
9162 | if test x$DMEVENTD = xyes; then |
9163 | if test x$MIRRORS != xinternal; then | |
9164 | as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal | |
9165 | " "$LINENO" 5 | |
9166 | fi | |
9167 | if test x$CMDLIB = xno; then | |
9168 | as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well | |
9169 | " "$LINENO" 5 | |
9170 | fi | |
9171 | fi | |
ad6254c5 | 9172 | |
f11781c5 | 9173 | if test x$DMEVENTD = xyes; then |
ad6254c5 | 9174 | |
f11781c5 | 9175 | $as_echo "#define DMEVENTD 1" >>confdefs.h |
ad6254c5 | 9176 | |
f11781c5 | 9177 | fi |
ad6254c5 | 9178 | |
f11781c5 | 9179 | ################################################################################ |
ad6254c5 | 9180 | |
f11781c5 AK |
9181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5 |
9182 | $as_echo_n "checking for getline in -lc... " >&6; } | |
9183 | if test "${ac_cv_lib_c_getline+set}" = set; then : | |
ec6a6fbe | 9184 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9185 | else |
f11781c5 AK |
9186 | ac_check_lib_save_LIBS=$LIBS |
9187 | LIBS="-lc $LIBS" | |
9188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9189 | /* end confdefs.h. */ |
f11781c5 AK |
9190 | |
9191 | /* Override any GCC internal prototype to avoid an error. | |
9192 | Use char because int might match the return type of a GCC | |
9193 | builtin and then its argument prototype would still apply. */ | |
9194 | #ifdef __cplusplus | |
9195 | extern "C" | |
9196 | #endif | |
9197 | char getline (); | |
9198 | int | |
9199 | main () | |
9200 | { | |
9201 | return getline (); | |
9202 | ; | |
9203 | return 0; | |
9204 | } | |
ad6254c5 | 9205 | _ACEOF |
f11781c5 AK |
9206 | if ac_fn_c_try_link "$LINENO"; then : |
9207 | ac_cv_lib_c_getline=yes | |
ad6254c5 | 9208 | else |
f11781c5 AK |
9209 | ac_cv_lib_c_getline=no |
9210 | fi | |
9211 | rm -f core conftest.err conftest.$ac_objext \ | |
9212 | conftest$ac_exeext conftest.$ac_ext | |
9213 | LIBS=$ac_check_lib_save_LIBS | |
9214 | fi | |
9215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5 | |
9216 | $as_echo "$ac_cv_lib_c_getline" >&6; } | |
9217 | if test "x$ac_cv_lib_c_getline" = x""yes; then : | |
9218 | ||
9219 | $as_echo "#define HAVE_GETLINE 1" >>confdefs.h | |
ad6254c5 | 9220 | |
ad6254c5 | 9221 | fi |
7a197a62 | 9222 | |
ad6254c5 | 9223 | |
f11781c5 AK |
9224 | ################################################################################ |
9225 | ||
9226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5 | |
9227 | $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; } | |
9228 | if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then : | |
9229 | $as_echo_n "(cached) " >&6 | |
9230 | else | |
9231 | ac_check_lib_save_LIBS=$LIBS | |
9232 | LIBS="-lc $LIBS" | |
9233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9234 | /* end confdefs.h. */ |
f11781c5 AK |
9235 | |
9236 | /* Override any GCC internal prototype to avoid an error. | |
9237 | Use char because int might match the return type of a GCC | |
9238 | builtin and then its argument prototype would still apply. */ | |
9239 | #ifdef __cplusplus | |
9240 | extern "C" | |
9241 | #endif | |
9242 | char canonicalize_file_name (); | |
9243 | int | |
9244 | main () | |
9245 | { | |
9246 | return canonicalize_file_name (); | |
9247 | ; | |
9248 | return 0; | |
9249 | } | |
ad6254c5 | 9250 | _ACEOF |
f11781c5 AK |
9251 | if ac_fn_c_try_link "$LINENO"; then : |
9252 | ac_cv_lib_c_canonicalize_file_name=yes | |
ad6254c5 | 9253 | else |
f11781c5 AK |
9254 | ac_cv_lib_c_canonicalize_file_name=no |
9255 | fi | |
9256 | rm -f core conftest.err conftest.$ac_objext \ | |
9257 | conftest$ac_exeext conftest.$ac_ext | |
9258 | LIBS=$ac_check_lib_save_LIBS | |
9259 | fi | |
9260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
9261 | $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
9262 | if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then : | |
9263 | ||
9264 | $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h | |
ad6254c5 | 9265 | |
ad6254c5 | 9266 | fi |
7a197a62 | 9267 | |
ad6254c5 | 9268 | |
f11781c5 AK |
9269 | ################################################################################ |
9270 | if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ]; | |
9271 | then exec_prefix=""; | |
9272 | fi; | |
7a197a62 | 9273 | |
f11781c5 AK |
9274 | ################################################################################ |
9275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9276 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9277 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
ec6a6fbe | 9278 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9279 | else |
f11781c5 AK |
9280 | ac_check_lib_save_LIBS=$LIBS |
9281 | LIBS="-ldl $LIBS" | |
9282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9283 | /* end confdefs.h. */ | |
ad6254c5 | 9284 | |
f11781c5 AK |
9285 | /* Override any GCC internal prototype to avoid an error. |
9286 | Use char because int might match the return type of a GCC | |
9287 | builtin and then its argument prototype would still apply. */ | |
9288 | #ifdef __cplusplus | |
9289 | extern "C" | |
9290 | #endif | |
9291 | char dlopen (); | |
9292 | int | |
9293 | main () | |
9294 | { | |
9295 | return dlopen (); | |
9296 | ; | |
9297 | return 0; | |
9298 | } | |
ad6254c5 | 9299 | _ACEOF |
f11781c5 AK |
9300 | if ac_fn_c_try_link "$LINENO"; then : |
9301 | ac_cv_lib_dl_dlopen=yes | |
ad6254c5 | 9302 | else |
f11781c5 | 9303 | ac_cv_lib_dl_dlopen=no |
795ca3e5 | 9304 | fi |
f11781c5 AK |
9305 | rm -f core conftest.err conftest.$ac_objext \ |
9306 | conftest$ac_exeext conftest.$ac_ext | |
9307 | LIBS=$ac_check_lib_save_LIBS | |
9308 | fi | |
9309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9310 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9311 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
795ca3e5 | 9312 | |
ad6254c5 | 9313 | |
f11781c5 | 9314 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
ad6254c5 | 9315 | |
f11781c5 AK |
9316 | DL_LIBS="-ldl" |
9317 | HAVE_LIBDL=yes | |
9318 | else | |
795ca3e5 | 9319 | |
f11781c5 AK |
9320 | DL_LIBS= |
9321 | HAVE_LIBDL=no | |
9322 | fi | |
8106cdd5 | 9323 | |
ad6254c5 | 9324 | |
f11781c5 AK |
9325 | ################################################################################ |
9326 | if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \ | |
9327 | -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \ | |
cac52ca4 | 9328 | -o "x$RAID" = xshared \ |
f11781c5 AK |
9329 | \) -a "x$STATIC_LINK" = xyes ]; |
9330 | then as_fn_error $? "Features cannot be 'shared' when building statically | |
9331 | " "$LINENO" 5 | |
9332 | fi | |
ad6254c5 | 9333 | |
f11781c5 AK |
9334 | ################################################################################ |
9335 | if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then | |
9336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 | |
9337 | $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
9338 | if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then : | |
ec6a6fbe | 9339 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9340 | else |
f11781c5 AK |
9341 | ac_check_lib_save_LIBS=$LIBS |
9342 | LIBS="-lpthread $LIBS" | |
9343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9344 | /* end confdefs.h. */ |
8a2fc586 | 9345 | |
f11781c5 AK |
9346 | /* Override any GCC internal prototype to avoid an error. |
9347 | Use char because int might match the return type of a GCC | |
9348 | builtin and then its argument prototype would still apply. */ | |
9349 | #ifdef __cplusplus | |
9350 | extern "C" | |
ad6254c5 | 9351 | #endif |
f11781c5 AK |
9352 | char pthread_mutex_lock (); |
9353 | int | |
9354 | main () | |
9355 | { | |
9356 | return pthread_mutex_lock (); | |
9357 | ; | |
9358 | return 0; | |
9359 | } | |
9360 | _ACEOF | |
9361 | if ac_fn_c_try_link "$LINENO"; then : | |
9362 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
9363 | else | |
9364 | ac_cv_lib_pthread_pthread_mutex_lock=no | |
9365 | fi | |
9366 | rm -f core conftest.err conftest.$ac_objext \ | |
9367 | conftest$ac_exeext conftest.$ac_ext | |
9368 | LIBS=$ac_check_lib_save_LIBS | |
9369 | fi | |
9370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
9371 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
9372 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then : | |
9373 | PTHREAD_LIBS="-lpthread" | |
9374 | else | |
9375 | hard_bailout | |
9376 | fi | |
9377 | ||
9378 | fi | |
9379 | ||
9380 | ################################################################################ | |
9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5 | |
9382 | $as_echo_n "checking whether to enable selinux support... " >&6; } | |
9383 | # Check whether --enable-selinux was given. | |
9384 | if test "${enable_selinux+set}" = set; then : | |
9385 | enableval=$enable_selinux; SELINUX=$enableval | |
9386 | fi | |
9387 | ||
9388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5 | |
9389 | $as_echo "$SELINUX" >&6; } | |
8a2fc586 | 9390 | |
f11781c5 AK |
9391 | ################################################################################ |
9392 | if test x$SELINUX = xyes; then | |
9393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5 | |
9394 | $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; } | |
9395 | if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then : | |
9396 | $as_echo_n "(cached) " >&6 | |
9397 | else | |
9398 | ac_check_lib_save_LIBS=$LIBS | |
9399 | LIBS="-lsepol $LIBS" | |
9400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9401 | /* end confdefs.h. */ | |
8a2fc586 | 9402 | |
7a197a62 AK |
9403 | /* Override any GCC internal prototype to avoid an error. |
9404 | Use char because int might match the return type of a GCC | |
9405 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9406 | #ifdef __cplusplus |
9407 | extern "C" | |
ad6254c5 | 9408 | #endif |
f11781c5 | 9409 | char sepol_check_context (); |
ad6254c5 AK |
9410 | int |
9411 | main () | |
9412 | { | |
f11781c5 | 9413 | return sepol_check_context (); |
ad6254c5 AK |
9414 | ; |
9415 | return 0; | |
9416 | } | |
9417 | _ACEOF | |
f11781c5 AK |
9418 | if ac_fn_c_try_link "$LINENO"; then : |
9419 | ac_cv_lib_sepol_sepol_check_context=yes | |
795ca3e5 | 9420 | else |
f11781c5 AK |
9421 | ac_cv_lib_sepol_sepol_check_context=no |
9422 | fi | |
9423 | rm -f core conftest.err conftest.$ac_objext \ | |
9424 | conftest$ac_exeext conftest.$ac_ext | |
9425 | LIBS=$ac_check_lib_save_LIBS | |
80992638 | 9426 | fi |
f11781c5 AK |
9427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5 |
9428 | $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
9429 | if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then : | |
7a197a62 | 9430 | |
80992638 | 9431 | |
f11781c5 AK |
9432 | $as_echo "#define HAVE_SEPOL 1" >>confdefs.h |
9433 | ||
9434 | SELINUX_LIBS="-lsepol" | |
8106cdd5 | 9435 | fi |
795ca3e5 | 9436 | |
f11781c5 AK |
9437 | |
9438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 | |
9439 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } | |
9440 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then : | |
ec6a6fbe | 9441 | $as_echo_n "(cached) " >&6 |
25fbec5b | 9442 | else |
f11781c5 AK |
9443 | ac_check_lib_save_LIBS=$LIBS |
9444 | LIBS="-lselinux $LIBS" | |
9445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
25fbec5b | 9446 | /* end confdefs.h. */ |
80992638 | 9447 | |
7a197a62 AK |
9448 | /* Override any GCC internal prototype to avoid an error. |
9449 | Use char because int might match the return type of a GCC | |
ad6254c5 | 9450 | builtin and then its argument prototype would still apply. */ |
ad6254c5 AK |
9451 | #ifdef __cplusplus |
9452 | extern "C" | |
9453 | #endif | |
f11781c5 | 9454 | char is_selinux_enabled (); |
ad6254c5 AK |
9455 | int |
9456 | main () | |
9457 | { | |
f11781c5 | 9458 | return is_selinux_enabled (); |
ad6254c5 AK |
9459 | ; |
9460 | return 0; | |
9461 | } | |
9462 | _ACEOF | |
f11781c5 AK |
9463 | if ac_fn_c_try_link "$LINENO"; then : |
9464 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
25fbec5b | 9465 | else |
f11781c5 | 9466 | ac_cv_lib_selinux_is_selinux_enabled=no |
25fbec5b | 9467 | fi |
f11781c5 AK |
9468 | rm -f core conftest.err conftest.$ac_objext \ |
9469 | conftest$ac_exeext conftest.$ac_ext | |
9470 | LIBS=$ac_check_lib_save_LIBS | |
25fbec5b | 9471 | fi |
f11781c5 AK |
9472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
9473 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
9474 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then : | |
25fbec5b | 9475 | |
f11781c5 AK |
9476 | for ac_header in selinux/selinux.h |
9477 | do : | |
9478 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
9479 | if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then : | |
9480 | cat >>confdefs.h <<_ACEOF | |
9481 | #define HAVE_SELINUX_SELINUX_H 1 | |
ad6254c5 | 9482 | _ACEOF |
795ca3e5 | 9483 | |
25fbec5b | 9484 | else |
f11781c5 | 9485 | hard_bailout |
795ca3e5 | 9486 | fi |
795ca3e5 | 9487 | |
f11781c5 | 9488 | done |
795ca3e5 | 9489 | |
f11781c5 AK |
9490 | for ac_header in selinux/label.h |
9491 | do : | |
9492 | ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" | |
9493 | if test "x$ac_cv_header_selinux_label_h" = x""yes; then : | |
9494 | cat >>confdefs.h <<_ACEOF | |
9495 | #define HAVE_SELINUX_LABEL_H 1 | |
ad6254c5 | 9496 | _ACEOF |
ad6254c5 | 9497 | |
ad6254c5 | 9498 | fi |
7a197a62 | 9499 | |
f11781c5 | 9500 | done |
7a197a62 | 9501 | |
ad6254c5 | 9502 | |
f11781c5 | 9503 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
7a197a62 | 9504 | |
f11781c5 AK |
9505 | SELINUX_LIBS="-lselinux $SELINUX_LIBS" |
9506 | SELINUX_PC="libselinux" | |
9507 | HAVE_SELINUX=yes | |
ad6254c5 | 9508 | else |
8106cdd5 | 9509 | |
f11781c5 AK |
9510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5 |
9511 | $as_echo "$as_me: WARNING: Disabling selinux" >&2;} | |
9512 | SELINUX_LIBS= | |
9513 | SELINUX_PC= | |
9514 | HAVE_SELINUX=no | |
795ca3e5 | 9515 | fi |
ad6254c5 | 9516 | |
795ca3e5 AK |
9517 | fi |
9518 | ||
f11781c5 AK |
9519 | ################################################################################ |
9520 | if test x$REALTIME = xyes; then | |
9521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
9522 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
9523 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then : | |
ec6a6fbe | 9524 | $as_echo_n "(cached) " >&6 |
26e7f2e0 | 9525 | else |
f11781c5 AK |
9526 | ac_check_lib_save_LIBS=$LIBS |
9527 | LIBS="-lrt $LIBS" | |
9528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9529 | /* end confdefs.h. */ |
ad6254c5 | 9530 | |
f11781c5 AK |
9531 | /* Override any GCC internal prototype to avoid an error. |
9532 | Use char because int might match the return type of a GCC | |
9533 | builtin and then its argument prototype would still apply. */ | |
9534 | #ifdef __cplusplus | |
9535 | extern "C" | |
9536 | #endif | |
9537 | char clock_gettime (); | |
ad6254c5 AK |
9538 | int |
9539 | main () | |
9540 | { | |
f11781c5 | 9541 | return clock_gettime (); |
ad6254c5 AK |
9542 | ; |
9543 | return 0; | |
9544 | } | |
9545 | _ACEOF | |
f11781c5 AK |
9546 | if ac_fn_c_try_link "$LINENO"; then : |
9547 | ac_cv_lib_rt_clock_gettime=yes | |
ad6254c5 | 9548 | else |
f11781c5 | 9549 | ac_cv_lib_rt_clock_gettime=no |
ad6254c5 | 9550 | fi |
f11781c5 AK |
9551 | rm -f core conftest.err conftest.$ac_objext \ |
9552 | conftest$ac_exeext conftest.$ac_ext | |
9553 | LIBS=$ac_check_lib_save_LIBS | |
26e7f2e0 | 9554 | fi |
f11781c5 AK |
9555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
9556 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
9557 | if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then : | |
9558 | HAVE_REALTIME=yes | |
9559 | else | |
9560 | HAVE_REALTIME=no | |
8106cdd5 | 9561 | fi |
ad6254c5 | 9562 | |
ad6254c5 | 9563 | |
f11781c5 | 9564 | if test x$HAVE_REALTIME = xyes; then |
7a197a62 | 9565 | |
f11781c5 | 9566 | $as_echo "#define HAVE_REALTIME 1" >>confdefs.h |
ad6254c5 | 9567 | |
f11781c5 AK |
9568 | LIBS="-lrt $LIBS" |
9569 | else | |
9570 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5 | |
9571 | $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;} | |
9572 | fi | |
9573 | fi | |
9574 | ||
9575 | ################################################################################ | |
9576 | for ac_header in getopt.h | |
9577 | do : | |
9578 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
9579 | if test "x$ac_cv_header_getopt_h" = x""yes; then : | |
9580 | cat >>confdefs.h <<_ACEOF | |
9581 | #define HAVE_GETOPT_H 1 | |
9582 | _ACEOF | |
9583 | ||
9584 | $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h | |
ad6254c5 | 9585 | |
ad6254c5 | 9586 | fi |
7a197a62 | 9587 | |
f11781c5 | 9588 | done |
ad6254c5 | 9589 | |
7a197a62 | 9590 | |
f11781c5 AK |
9591 | ################################################################################ |
9592 | if test x$READLINE != xno; then | |
9593 | lvm_saved_libs=$LIBS | |
9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
9595 | $as_echo_n "checking for library containing tgetent... " >&6; } | |
9596 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ec6a6fbe | 9597 | $as_echo_n "(cached) " >&6 |
ad6254c5 | 9598 | else |
f11781c5 AK |
9599 | ac_func_search_save_LIBS=$LIBS |
9600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9601 | /* end confdefs.h. */ | |
ad6254c5 | 9602 | |
f11781c5 AK |
9603 | /* Override any GCC internal prototype to avoid an error. |
9604 | Use char because int might match the return type of a GCC | |
9605 | builtin and then its argument prototype would still apply. */ | |
9606 | #ifdef __cplusplus | |
9607 | extern "C" | |
9608 | #endif | |
9609 | char tgetent (); | |
9610 | int | |
9611 | main () | |
9612 | { | |
9613 | return tgetent (); | |
9614 | ; | |
9615 | return 0; | |
9616 | } | |
ad6254c5 | 9617 | _ACEOF |
f11781c5 AK |
9618 | for ac_lib in '' tinfo ncurses curses termcap termlib; do |
9619 | if test -z "$ac_lib"; then | |
9620 | ac_res="none required" | |
9621 | else | |
9622 | ac_res=-l$ac_lib | |
9623 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9624 | fi | |
9625 | if ac_fn_c_try_link "$LINENO"; then : | |
9626 | ac_cv_search_tgetent=$ac_res | |
9627 | fi | |
9628 | rm -f core conftest.err conftest.$ac_objext \ | |
9629 | conftest$ac_exeext | |
9630 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
9631 | break | |
9632 | fi | |
9633 | done | |
9634 | if test "${ac_cv_search_tgetent+set}" = set; then : | |
ad6254c5 | 9635 | |
80992638 | 9636 | else |
f11781c5 | 9637 | ac_cv_search_tgetent=no |
b896caa1 | 9638 | fi |
f11781c5 AK |
9639 | rm conftest.$ac_ext |
9640 | LIBS=$ac_func_search_save_LIBS | |
9641 | fi | |
9642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
9643 | $as_echo "$ac_cv_search_tgetent" >&6; } | |
9644 | ac_res=$ac_cv_search_tgetent | |
9645 | if test "$ac_res" != no; then : | |
9646 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
9647 | READLINE_LIBS=$ac_cv_search_tgetent | |
9648 | else | |
ad6254c5 | 9649 | |
f11781c5 AK |
9650 | if test "$READLINE" = yes; then |
9651 | as_fn_error $? "termcap could not be found which is required for the | |
9652 | --enable-readline option (which is enabled by default). Either disable readline | |
9653 | support with --disable-readline or download and install termcap from: | |
9654 | ftp.gnu.org/gnu/termcap | |
9655 | Note: if you are using precompiled packages you will also need the development | |
9656 | package as well (which may be called termcap-devel or something similar). | |
9657 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
9658 | not found either - but you could try installing that as well." "$LINENO" 5 | |
9659 | fi | |
9660 | fi | |
b896caa1 | 9661 | |
f11781c5 AK |
9662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 |
9663 | $as_echo_n "checking for readline in -lreadline... " >&6; } | |
9664 | if test "${ac_cv_lib_readline_readline+set}" = set; then : | |
ec6a6fbe | 9665 | $as_echo_n "(cached) " >&6 |
795ca3e5 | 9666 | else |
f11781c5 AK |
9667 | ac_check_lib_save_LIBS=$LIBS |
9668 | LIBS="-lreadline $LIBS" | |
9669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 | 9670 | /* end confdefs.h. */ |
8a2fc586 | 9671 | |
f11781c5 AK |
9672 | /* Override any GCC internal prototype to avoid an error. |
9673 | Use char because int might match the return type of a GCC | |
9674 | builtin and then its argument prototype would still apply. */ | |
9675 | #ifdef __cplusplus | |
9676 | extern "C" | |
ad6254c5 | 9677 | #endif |
f11781c5 AK |
9678 | char readline (); |
9679 | int | |
9680 | main () | |
9681 | { | |
9682 | return readline (); | |
9683 | ; | |
9684 | return 0; | |
9685 | } | |
9686 | _ACEOF | |
9687 | if ac_fn_c_try_link "$LINENO"; then : | |
9688 | ac_cv_lib_readline_readline=yes | |
9689 | else | |
9690 | ac_cv_lib_readline_readline=no | |
9691 | fi | |
9692 | rm -f core conftest.err conftest.$ac_objext \ | |
9693 | conftest$ac_exeext conftest.$ac_ext | |
9694 | LIBS=$ac_check_lib_save_LIBS | |
9695 | fi | |
9696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
9697 | $as_echo "$ac_cv_lib_readline_readline" >&6; } | |
9698 | if test "x$ac_cv_lib_readline_readline" = x""yes; then : | |
9699 | ||
8a2fc586 | 9700 | |
f11781c5 AK |
9701 | $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h |
9702 | ||
9703 | LIBS=$lvm_saved_libs | |
9704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5 | |
9705 | $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; } | |
9706 | if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then : | |
9707 | $as_echo_n "(cached) " >&6 | |
9708 | else | |
9709 | ac_check_lib_save_LIBS=$LIBS | |
9710 | LIBS="-lreadline $LIBS" | |
9711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9712 | /* end confdefs.h. */ | |
8a2fc586 | 9713 | |
7a197a62 AK |
9714 | /* Override any GCC internal prototype to avoid an error. |
9715 | Use char because int might match the return type of a GCC | |
9716 | builtin and then its argument prototype would still apply. */ | |
ad6254c5 AK |
9717 | #ifdef __cplusplus |
9718 | extern "C" | |
ad6254c5 | 9719 | #endif |
f11781c5 | 9720 | char rl_line_buffer (); |
ad6254c5 AK |
9721 | int |
9722 | main () | |
9723 | { | |
f11781c5 | 9724 | return rl_line_buffer (); |
ad6254c5 AK |
9725 | ; |
9726 | return 0; | |
9727 | } | |
9728 | _ACEOF | |
f11781c5 AK |
9729 | if ac_fn_c_try_link "$LINENO"; then : |
9730 | ac_cv_lib_readline_rl_line_buffer=yes | |
ad6254c5 | 9731 | else |
f11781c5 AK |
9732 | ac_cv_lib_readline_rl_line_buffer=no |
9733 | fi | |
9734 | rm -f core conftest.err conftest.$ac_objext \ | |
9735 | conftest$ac_exeext conftest.$ac_ext | |
9736 | LIBS=$ac_check_lib_save_LIBS | |
9737 | fi | |
9738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
9739 | $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
9740 | if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then : | |
9741 | READLINE_LIBS="-lreadline" | |
9742 | else | |
9743 | ||
9744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
9745 | $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
9746 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
ad6254c5 | 9747 | |
ad6254c5 | 9748 | fi |
7a197a62 | 9749 | |
f11781c5 AK |
9750 | else |
9751 | ||
9752 | READLINE_LIBS= | |
9753 | if test "$READLINE" = yes; then | |
9754 | as_fn_error $? "GNU Readline could not be found which is required for the | |
9755 | --enable-readline option (which is enabled by default). Either disable readline | |
9756 | support with --disable-readline or download and install readline from: | |
9757 | ftp.gnu.org/gnu/readline | |
9758 | Note: if you are using precompiled packages you will also need the development | |
9759 | package as well (which may be called readline-devel or something similar)." "$LINENO" 5 | |
9760 | fi | |
ad6254c5 | 9761 | fi |
f11781c5 AK |
9762 | |
9763 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
9764 | for ac_func in rl_completion_matches | |
9765 | do : | |
9766 | ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" | |
9767 | if test "x$ac_cv_func_rl_completion_matches" = x""yes; then : | |
ad6254c5 | 9768 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 9769 | #define HAVE_RL_COMPLETION_MATCHES 1 |
ad6254c5 AK |
9770 | _ACEOF |
9771 | ||
ad6254c5 AK |
9772 | fi |
9773 | done | |
9774 | ||
f11781c5 | 9775 | LIBS=$lvm_saved_libs |
ad6254c5 AK |
9776 | fi |
9777 | ||
f11781c5 AK |
9778 | ################################################################################ |
9779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5 | |
9780 | $as_echo_n "checking whether to enable internationalisation... " >&6; } | |
9781 | # Check whether --enable-nls was given. | |
9782 | if test "${enable_nls+set}" = set; then : | |
9783 | enableval=$enable_nls; INTL=$enableval | |
9784 | else | |
9785 | INTL=no | |
9786 | fi | |
d911ec67 | 9787 | |
f11781c5 AK |
9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5 |
9789 | $as_echo "$INTL" >&6; } | |
9790 | ||
9791 | if test x$INTL = xyes; then | |
9792 | # FIXME - Move this - can be device-mapper too | |
9793 | INTL_PACKAGE="lvm2" | |
9794 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
9795 | set dummy msgfmt; ac_word=$2 | |
9796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9797 | $as_echo_n "checking for $ac_word... " >&6; } | |
9798 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
d911ec67 | 9799 | $as_echo_n "(cached) " >&6 |
d911ec67 | 9800 | else |
f11781c5 AK |
9801 | case $MSGFMT in |
9802 | [\\/]* | ?:[\\/]*) | |
9803 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
9804 | ;; | |
9805 | *) | |
9806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9807 | for as_dir in $PATH | |
9808 | do | |
9809 | IFS=$as_save_IFS | |
9810 | test -z "$as_dir" && as_dir=. | |
9811 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9812 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9813 | ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
9814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9815 | break 2 | |
9816 | fi | |
9817 | done | |
9818 | done | |
9819 | IFS=$as_save_IFS | |
9820 | ||
9821 | ;; | |
d911ec67 | 9822 | esac |
f11781c5 AK |
9823 | fi |
9824 | MSGFMT=$ac_cv_path_MSGFMT | |
9825 | if test -n "$MSGFMT"; then | |
9826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
9827 | $as_echo "$MSGFMT" >&6; } | |
d911ec67 | 9828 | else |
f11781c5 AK |
9829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9830 | $as_echo "no" >&6; } | |
9831 | fi | |
d911ec67 | 9832 | |
f11781c5 AK |
9833 | |
9834 | if [ "x$MSGFMT" == x ]; | |
9835 | then as_fn_error $? "msgfmt not found in path $PATH | |
9836 | " "$LINENO" 5 | |
9837 | fi; | |
9838 | ||
9839 | ||
9840 | # Check whether --with-localedir was given. | |
9841 | if test "${with_localedir+set}" = set; then : | |
9842 | withval=$with_localedir; LOCALEDIR=$withval | |
9843 | else | |
9844 | LOCALEDIR='${prefix}/share/locale' | |
9845 | fi | |
9846 | ||
9847 | fi | |
9848 | ||
9849 | ################################################################################ | |
9850 | ||
9851 | # Check whether --with-confdir was given. | |
9852 | if test "${with_confdir+set}" = set; then : | |
9853 | withval=$with_confdir; CONFDIR=$withval | |
9854 | else | |
9855 | CONFDIR="/etc" | |
9856 | fi | |
9857 | ||
9858 | ||
9859 | ||
9860 | # Check whether --with-staticdir was given. | |
9861 | if test "${with_staticdir+set}" = set; then : | |
9862 | withval=$with_staticdir; STATICDIR=$withval | |
9863 | else | |
9864 | STATICDIR='${exec_prefix}/sbin' | |
9865 | fi | |
9866 | ||
9867 | ||
9868 | ||
9869 | # Check whether --with-usrlibdir was given. | |
9870 | if test "${with_usrlibdir+set}" = set; then : | |
9871 | withval=$with_usrlibdir; usrlibdir=$withval | |
9872 | else | |
9873 | usrlibdir='${prefix}/lib' | |
d911ec67 AK |
9874 | fi |
9875 | ||
d911ec67 | 9876 | |
d911ec67 | 9877 | |
f11781c5 AK |
9878 | # Check whether --with-usrsbindir was given. |
9879 | if test "${with_usrsbindir+set}" = set; then : | |
9880 | withval=$with_usrsbindir; usrsbindir=$withval | |
9881 | else | |
9882 | usrsbindir='${prefix}/sbin' | |
d911ec67 AK |
9883 | fi |
9884 | ||
d911ec67 | 9885 | |
f11781c5 | 9886 | ################################################################################ |
d911ec67 | 9887 | |
f11781c5 AK |
9888 | # Check whether --with-udev_prefix was given. |
9889 | if test "${with_udev_prefix+set}" = set; then : | |
9890 | withval=$with_udev_prefix; udev_prefix=$withval | |
d911ec67 | 9891 | else |
f11781c5 | 9892 | udev_prefix='${exec_prefix}' |
d911ec67 | 9893 | fi |
d911ec67 | 9894 | |
f11781c5 AK |
9895 | |
9896 | ||
9897 | # Check whether --with-udevdir was given. | |
9898 | if test "${with_udevdir+set}" = set; then : | |
9899 | withval=$with_udevdir; udevdir=$withval | |
9900 | else | |
9901 | udevdir='${udev_prefix}/lib/udev/rules.d' | |
d911ec67 | 9902 | fi |
f11781c5 AK |
9903 | |
9904 | ||
e587cb6a PR |
9905 | ################################################################################ |
9906 | ||
9907 | # Check whether --with-systemdsystemunitdir was given. | |
9908 | if test "${with_systemdsystemunitdir+set}" = set; then : | |
9909 | withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval | |
9910 | else | |
767ce95a ZK |
9911 | test x$PKGCONFIG_INIT != x1 && pkg_config_init |
9912 | pkg_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) | |
e587cb6a PR |
9913 | fi |
9914 | ||
9915 | ||
9916 | if test -n "$pkg_systemdsystemunitdir"; then | |
9917 | systemdsystemunitdir=$pkg_systemdsystemunitdir; | |
9918 | fi | |
9919 | ||
9920 | if test -z "$systemdsystemunitdir"; then | |
fa68466e PR |
9921 | systemdsystemunitdir='${exec_prefix}/lib/systemd/system'; |
9922 | fi | |
9923 | ||
9924 | systemdutildir=$($PKG_CONFIG --variable=systemdutildir systemd) | |
9925 | if test -z "$systemdutildir"; then | |
9926 | systemdutildir='${exec_prefix}/lib/systemd'; | |
e587cb6a | 9927 | fi |
4417a8bd PR |
9928 | ################################################################################ |
9929 | ||
9930 | # Check whether --with-tmpfilesdir was given. | |
9931 | if test "${with_tmpfilesdir+set}" = set; then : | |
9932 | withval=$with_tmpfilesdir; tmpfilesdir=$withval | |
9933 | else | |
3f5cdf20 | 9934 | tmpfilesdir='${prefix}/lib/tmpfiles.d' |
4417a8bd PR |
9935 | fi |
9936 | ||
f11781c5 AK |
9937 | ################################################################################ |
9938 | if test x$READLINE = xyes; then | |
9939 | for ac_header in readline/readline.h readline/history.h | |
9940 | do : | |
9941 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9942 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9943 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d911ec67 AK |
9944 | cat >>confdefs.h <<_ACEOF |
9945 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9946 | _ACEOF | |
9947 | ||
9948 | else | |
f11781c5 | 9949 | as_fn_error $? "bailing out" "$LINENO" 5 |
d911ec67 AK |
9950 | fi |
9951 | ||
9952 | done | |
9953 | ||
9954 | fi | |
9955 | ||
f11781c5 AK |
9956 | if test x$CLVMD != xnone; then |
9957 | for ac_header in mntent.h netdb.h netinet/in.h pthread.h search.h sys/mount.h sys/socket.h sys/uio.h sys/un.h utmpx.h | |
9958 | do : | |
9959 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9960 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9961 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9962 | cat >>confdefs.h <<_ACEOF | |
9963 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
ad6254c5 | 9964 | _ACEOF |
ad6254c5 | 9965 | |
f11781c5 AK |
9966 | else |
9967 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9968 | fi |
7a197a62 | 9969 | |
f11781c5 | 9970 | done |
ad6254c5 | 9971 | |
f11781c5 AK |
9972 | for ac_func in dup2 getmntent memmove select socket |
9973 | do : | |
9974 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9975 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9976 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9977 | cat >>confdefs.h <<_ACEOF | |
9978 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
ad6254c5 | 9979 | _ACEOF |
ad6254c5 | 9980 | |
f11781c5 AK |
9981 | else |
9982 | as_fn_error $? "bailing out" "$LINENO" 5 | |
ad6254c5 | 9983 | fi |
f11781c5 | 9984 | done |
7a197a62 | 9985 | |
f11781c5 AK |
9986 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
9987 | # -lseq on Dynix/PTX, -lgen on Unixware. | |
9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 | |
9989 | $as_echo_n "checking for library containing getmntent... " >&6; } | |
9990 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
9991 | $as_echo_n "(cached) " >&6 | |
9992 | else | |
9993 | ac_func_search_save_LIBS=$LIBS | |
9994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9995 | /* end confdefs.h. */ | |
ad6254c5 | 9996 | |
f11781c5 AK |
9997 | /* Override any GCC internal prototype to avoid an error. |
9998 | Use char because int might match the return type of a GCC | |
9999 | builtin and then its argument prototype would still apply. */ | |
10000 | #ifdef __cplusplus | |
10001 | extern "C" | |
10002 | #endif | |
10003 | char getmntent (); | |
10004 | int | |
10005 | main () | |
10006 | { | |
10007 | return getmntent (); | |
10008 | ; | |
10009 | return 0; | |
10010 | } | |
10011 | _ACEOF | |
10012 | for ac_lib in '' sun seq gen; do | |
10013 | if test -z "$ac_lib"; then | |
10014 | ac_res="none required" | |
10015 | else | |
10016 | ac_res=-l$ac_lib | |
10017 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
10018 | fi | |
10019 | if ac_fn_c_try_link "$LINENO"; then : | |
10020 | ac_cv_search_getmntent=$ac_res | |
10021 | fi | |
10022 | rm -f core conftest.err conftest.$ac_objext \ | |
10023 | conftest$ac_exeext | |
10024 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
10025 | break | |
10026 | fi | |
10027 | done | |
10028 | if test "${ac_cv_search_getmntent+set}" = set; then : | |
7a197a62 | 10029 | |
ad6254c5 | 10030 | else |
f11781c5 | 10031 | ac_cv_search_getmntent=no |
795ca3e5 | 10032 | fi |
f11781c5 AK |
10033 | rm conftest.$ac_ext |
10034 | LIBS=$ac_func_search_save_LIBS | |
10035 | fi | |
10036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 | |
10037 | $as_echo "$ac_cv_search_getmntent" >&6; } | |
10038 | ac_res=$ac_cv_search_getmntent | |
10039 | if test "$ac_res" != no; then : | |
10040 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
10041 | ac_cv_func_getmntent=yes | |
10042 | ||
10043 | $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h | |
80992638 | 10044 | |
f11781c5 AK |
10045 | else |
10046 | ac_cv_func_getmntent=no | |
8106cdd5 | 10047 | fi |
f11781c5 AK |
10048 | |
10049 | ||
10050 | for ac_header in sys/select.h sys/socket.h | |
10051 | do : | |
10052 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10053 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10054 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
ad6254c5 | 10055 | cat >>confdefs.h <<_ACEOF |
ec6a6fbe | 10056 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
ad6254c5 | 10057 | _ACEOF |
795ca3e5 | 10058 | |
795ca3e5 AK |
10059 | fi |
10060 | ||
ad6254c5 | 10061 | done |
80992638 | 10062 | |
f11781c5 AK |
10063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
10064 | $as_echo_n "checking types of arguments for select... " >&6; } | |
10065 | if test "${ac_cv_func_select_args+set}" = set; then : | |
ec6a6fbe | 10066 | $as_echo_n "(cached) " >&6 |
83912faa | 10067 | else |
f11781c5 AK |
10068 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
10069 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
10070 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
10071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ad6254c5 AK |
10072 | /* end confdefs.h. */ |
10073 | $ac_includes_default | |
f11781c5 AK |
10074 | #ifdef HAVE_SYS_SELECT_H |
10075 | # include <sys/select.h> | |
10076 | #endif | |
10077 | #ifdef HAVE_SYS_SOCKET_H | |
10078 | # include <sys/socket.h> | |
10079 | #endif | |
10080 | ||
10081 | int | |
10082 | main () | |
10083 | { | |
10084 | extern int select ($ac_arg1, | |
10085 | $ac_arg234, $ac_arg234, $ac_arg234, | |
10086 | $ac_arg5); | |
10087 | ; | |
10088 | return 0; | |
10089 | } | |
ad6254c5 | 10090 | _ACEOF |
f11781c5 AK |
10091 | if ac_fn_c_try_compile "$LINENO"; then : |
10092 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | |
10093 | fi | |
10094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10095 | done | |
10096 | done | |
10097 | done | |
10098 | # Provide a safe default value. | |
10099 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
ad6254c5 | 10100 | |
ad6254c5 | 10101 | fi |
f11781c5 AK |
10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
10103 | $as_echo "$ac_cv_func_select_args" >&6; } | |
10104 | ac_save_IFS=$IFS; IFS=',' | |
10105 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
10106 | IFS=$ac_save_IFS | |
10107 | shift | |
7a197a62 | 10108 | |
f11781c5 AK |
10109 | cat >>confdefs.h <<_ACEOF |
10110 | #define SELECT_TYPE_ARG1 $1 | |
10111 | _ACEOF | |
ad6254c5 | 10112 | |
f11781c5 AK |
10113 | |
10114 | cat >>confdefs.h <<_ACEOF | |
10115 | #define SELECT_TYPE_ARG234 ($2) | |
ad6254c5 | 10116 | _ACEOF |
f11781c5 AK |
10117 | |
10118 | ||
10119 | cat >>confdefs.h <<_ACEOF | |
10120 | #define SELECT_TYPE_ARG5 ($3) | |
ad6254c5 | 10121 | _ACEOF |
ad6254c5 | 10122 | |
f11781c5 AK |
10123 | rm -f conftest* |
10124 | ||
ad6254c5 | 10125 | fi |
7a197a62 | 10126 | |
f11781c5 AK |
10127 | if test x$CLUSTER != xnone; then |
10128 | for ac_header in sys/socket.h sys/un.h | |
10129 | do : | |
10130 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10131 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10132 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
10133 | cat >>confdefs.h <<_ACEOF | |
10134 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10135 | _ACEOF | |
ad6254c5 | 10136 | |
f11781c5 AK |
10137 | else |
10138 | as_fn_error $? "bailing out" "$LINENO" 5 | |
10139 | fi | |
10140 | ||
10141 | done | |
10142 | ||
10143 | for ac_func in socket | |
10144 | do : | |
10145 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" | |
10146 | if test "x$ac_cv_func_socket" = x""yes; then : | |
10147 | cat >>confdefs.h <<_ACEOF | |
10148 | #define HAVE_SOCKET 1 | |
10149 | _ACEOF | |
7a197a62 | 10150 | |
80992638 | 10151 | else |
f11781c5 | 10152 | as_fn_error $? "bailing out" "$LINENO" 5 |
83912faa | 10153 | fi |
f11781c5 | 10154 | done |
83912faa | 10155 | |
69792976 | 10156 | fi |
f11781c5 AK |
10157 | |
10158 | if test x$DMEVENTD = xyes; then | |
10159 | for ac_header in arpa/inet.h | |
10160 | do : | |
10161 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | |
10162 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : | |
ad6254c5 | 10163 | cat >>confdefs.h <<_ACEOF |
f11781c5 | 10164 | #define HAVE_ARPA_INET_H 1 |
ad6254c5 | 10165 | _ACEOF |
69792976 | 10166 | |
69792976 | 10167 | else |
f11781c5 | 10168 | as_fn_error $? "bailing out" "$LINENO" 5 |
80992638 AK |
10169 | fi |
10170 | ||
ad6254c5 | 10171 | done |
69792976 | 10172 | |
ad6254c5 AK |
10173 | fi |
10174 | ||
f11781c5 AK |
10175 | if test x$HAVE_LIBDL = xyes; then |
10176 | for ac_header in dlfcn.h | |
10177 | do : | |
10178 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
10179 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
10180 | cat >>confdefs.h <<_ACEOF | |
10181 | #define HAVE_DLFCN_H 1 | |
a5f46f6a | 10182 | _ACEOF |
a5f46f6a | 10183 | |
f11781c5 AK |
10184 | else |
10185 | as_fn_error $? "bailing out" "$LINENO" 5 | |
a5f46f6a AK |
10186 | fi |
10187 | ||
f11781c5 | 10188 | done |
a5f46f6a | 10189 | |
a5f46f6a AK |
10190 | fi |
10191 | ||
f11781c5 AK |
10192 | if test x$INTL = xyes; then |
10193 | for ac_header in libintl.h | |
10194 | do : | |
10195 | ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" | |
10196 | if test "x$ac_cv_header_libintl_h" = x""yes; then : | |
10197 | cat >>confdefs.h <<_ACEOF | |
10198 | #define HAVE_LIBINTL_H 1 | |
10199 | _ACEOF | |
a5f46f6a | 10200 | |
a5f46f6a | 10201 | else |
f11781c5 | 10202 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a | 10203 | fi |
f11781c5 AK |
10204 | |
10205 | done | |
a5f46f6a AK |
10206 | |
10207 | fi | |
f11781c5 AK |
10208 | |
10209 | if test x$UDEV_SYNC = xyes; then | |
10210 | for ac_header in sys/ipc.h sys/sem.h | |
10211 | do : | |
10212 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10213 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10214 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
a5f46f6a AK |
10215 | cat >>confdefs.h <<_ACEOF |
10216 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10217 | _ACEOF | |
10218 | ||
10219 | else | |
f11781c5 | 10220 | as_fn_error $? "bailing out" "$LINENO" 5 |
a5f46f6a AK |
10221 | fi |
10222 | ||
10223 | done | |
10224 | ||
10225 | fi | |
10226 | ||
a653923f AK |
10227 | ################################################################################ |
10228 | # Extract the first word of "modprobe", so it can be a program name with args. | |
10229 | set dummy modprobe; ac_word=$2 | |
f11781c5 | 10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
ec6a6fbe | 10231 | $as_echo_n "checking for $ac_word... " >&6; } |
f11781c5 | 10232 | if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then : |
ec6a6fbe | 10233 | $as_echo_n "(cached) " >&6 |
72b2cb61 AK |
10234 | else |
10235 | case $MODPROBE_CMD in | |
10236 | [\\/]* | ?:[\\/]*) | |
10237 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
10238 | ;; | |
10239 | *) | |
10240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10241 | for as_dir in $PATH | |
10242 | do | |
10243 | IFS=$as_save_IFS | |
10244 | test -z "$as_dir" && as_dir=. | |
f11781c5 | 10245 | for ac_exec_ext in '' $ac_executable_extensions; do |
25fbec5b | 10246 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
72b2cb61 | 10247 | ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext" |
f11781c5 | 10248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
72b2cb61 AK |
10249 | break 2 |
10250 | fi | |
10251 | done | |
f11781c5 | 10252 | done |
7a197a62 | 10253 | IFS=$as_save_IFS |
72b2cb61 AK |
10254 | |
10255 | ;; | |
10256 | esac | |
10257 | fi | |
10258 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
72b2cb61 | 10259 | if test -n "$MODPROBE_CMD"; then |
f11781c5 | 10260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5 |
ec6a6fbe | 10261 | $as_echo "$MODPROBE_CMD" >&6; } |
72b2cb61 | 10262 | else |
f11781c5 | 10263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ec6a6fbe | 10264 | $as_echo "no" >&6; } |
72b2cb61 AK |
10265 | fi |
10266 | ||
a653923f | 10267 | |
7a197a62 | 10268 | |
a653923f | 10269 | if test x$MODPROBE_CMD != x; then |
72b2cb61 AK |
10270 | |
10271 | cat >>confdefs.h <<_ACEOF | |
10272 | #define MODPROBE_CMD "$MODPROBE_CMD" | |
10273 | _ACEOF | |
10274 | ||
a653923f AK |
10275 | fi |
10276 | ||
b5c2529b | 10277 | |
a9b601e2 ZK |
10278 | lvm_exec_prefix=$exec_prefix |
10279 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix | |
10280 | test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix | |
d2c11605 | 10281 | LVM_PATH="$lvm_exec_prefix/sbin/lvm" |
a9b601e2 | 10282 | |
b5c2529b | 10283 | cat >>confdefs.h <<_ACEOF |
d2c11605 | 10284 | #define LVM_PATH "$LVM_PATH" |
b5c2529b ZK |
10285 | _ACEOF |
10286 | ||
10287 | ||
10288 | if test "$CLVMD" != none; then | |
10289 | clvmd_prefix=$ac_default_prefix | |
d2c11605 | 10290 | CLVMD_PATH="$clvmd_prefix/sbin/clvmd" |
b5c2529b ZK |
10291 | test "$prefix" != NONE && clvmd_prefix=$prefix |
10292 | ||
10293 | cat >>confdefs.h <<_ACEOF | |
d2c11605 | 10294 | #define CLVMD_PATH "$CLVMD_PATH" |
b5c2529b ZK |
10295 | _ACEOF |
10296 | ||
10297 | fi | |
10298 | ||
80992638 | 10299 | ################################################################################ |
93bd259b AK |
10300 | if test "$BUILD_DMEVENTD" = yes; then |
10301 | ||
10302 | # Check whether --with-dmeventd-pidfile was given. | |
f11781c5 | 10303 | if test "${with_dmeventd_pidfile+set}" = set; then : |
71082be4 | 10304 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval |
93bd259b | 10305 | else |
5723db01 | 10306 | DMEVENTD_PIDFILE="$DEFAULT_PID_DIR/dmeventd.pid" |
93bd259b AK |
10307 | fi |
10308 | ||
93bd259b | 10309 | |
71082be4 ZK |
10310 | cat >>confdefs.h <<_ACEOF |
10311 | #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE" | |
10312 | _ACEOF | |
93bd259b | 10313 | |
71082be4 | 10314 | fi |
93bd259b AK |
10315 | |
10316 | if test "$BUILD_DMEVENTD" = yes; then | |
93bd259b AK |
10317 | |
10318 | # Check whether --with-dmeventd-path was given. | |
f11781c5 | 10319 | if test "${with_dmeventd_path+set}" = set; then : |
71082be4 | 10320 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval |
93bd259b | 10321 | else |
71082be4 | 10322 | DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd" |
93bd259b AK |
10323 | fi |
10324 | ||
93bd259b | 10325 | |
71082be4 ZK |
10326 | cat >>confdefs.h <<_ACEOF |
10327 | #define DMEVENTD_PATH "$DMEVENTD_PATH" | |
10328 | _ACEOF | |
3399ae32 | 10329 | |
71082be4 | 10330 | fi |
3399ae32 | 10331 | |
71082be4 | 10332 | ################################################################################ |
3399ae32 AK |
10333 | |
10334 | # Check whether --with-default-system-dir was given. | |
f11781c5 | 10335 | if test "${with_default_system_dir+set}" = set; then : |
71082be4 | 10336 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval |
3399ae32 | 10337 | else |
71082be4 | 10338 | DEFAULT_SYS_DIR="/etc/lvm" |
3399ae32 AK |
10339 | fi |
10340 | ||
71082be4 | 10341 | |
3399ae32 AK |
10342 | cat >>confdefs.h <<_ACEOF |
10343 | #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR" | |
10344 | _ACEOF | |
10345 | ||
10346 | ||
10347 | ||
3399ae32 | 10348 | # Check whether --with-default-archive-subdir was given. |
f11781c5 | 10349 | if test "${with_default_archive_subdir+set}" = set; then : |
71082be4 | 10350 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval |
3399ae32 | 10351 | else |
71082be4 | 10352 | DEFAULT_ARCHIVE_SUBDIR=archive |
3399ae32 AK |
10353 | fi |
10354 | ||
71082be4 | 10355 | |
3399ae32 AK |
10356 | cat >>confdefs.h <<_ACEOF |
10357 | #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR" | |
10358 | _ACEOF | |
10359 | ||
10360 | ||
10361 | ||
3399ae32 | 10362 | # Check whether --with-default-backup-subdir was given. |
f11781c5 | 10363 | if test "${with_default_backup_subdir+set}" = set; then : |
71082be4 | 10364 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval |
3399ae32 | 10365 | else |
71082be4 | 10366 | DEFAULT_BACKUP_SUBDIR=backup |
3399ae32 AK |
10367 | fi |
10368 | ||
71082be4 | 10369 | |
3399ae32 AK |
10370 | cat >>confdefs.h <<_ACEOF |
10371 | #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR" | |
10372 | _ACEOF | |
10373 | ||
10374 | ||
10375 | ||
3399ae32 | 10376 | # Check whether --with-default-cache-subdir was given. |
f11781c5 | 10377 | if test "${with_default_cache_subdir+set}" = set; then : |
71082be4 | 10378 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval |
3399ae32 | 10379 | else |
71082be4 | 10380 | DEFAULT_CACHE_SUBDIR=cache |
3399ae32 AK |
10381 | fi |
10382 | ||
71082be4 | 10383 | |
3399ae32 AK |
10384 | cat >>confdefs.h <<_ACEOF |
10385 | #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR" | |
10386 | _ACEOF | |
10387 | ||
10388 | ||
10389 | ||
3399ae32 | 10390 | # Check whether --with-default-locking-dir was given. |
f11781c5 | 10391 | if test "${with_default_locking_dir+set}" = set; then : |
71082be4 | 10392 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval |
3399ae32 | 10393 | else |
71082be4 | 10394 | DEFAULT_LOCK_DIR="/var/lock/lvm" |
3399ae32 AK |
10395 | fi |
10396 | ||
71082be4 | 10397 | |
3399ae32 AK |
10398 | cat >>confdefs.h <<_ACEOF |
10399 | #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR" | |
10400 | _ACEOF | |
10401 | ||
10402 | ||
fea55602 DW |
10403 | ################################################################################ |
10404 | ||
10405 | # Check whether --with-default-data-alignment was given. | |
f11781c5 | 10406 | if test "${with_default_data_alignment+set}" = set; then : |
fea55602 DW |
10407 | withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval |
10408 | else | |
10409 | DEFAULT_DATA_ALIGNMENT=1 | |
10410 | fi | |
10411 | ||
10412 | ||
10413 | cat >>confdefs.h <<_ACEOF | |
10414 | #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT | |
10415 | _ACEOF | |
10416 | ||
10417 | ||
93bd259b | 10418 | ################################################################################ |
f11781c5 | 10419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5 |
ec6a6fbe | 10420 | $as_echo_n "checking for kernel interface choice... " >&6; } |
93bd259b AK |
10421 | |
10422 | # Check whether --with-interface was given. | |
f11781c5 | 10423 | if test "${with_interface+set}" = set; then : |
71082be4 | 10424 | withval=$with_interface; interface=$withval |
93bd259b | 10425 | else |
71082be4 | 10426 | interface=ioctl |
93bd259b AK |
10427 | fi |
10428 | ||
10429 | if [ "x$interface" != xioctl ]; | |
10430 | then | |
f11781c5 | 10431 | as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5 |
93bd259b | 10432 | fi |
f11781c5 | 10433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5 |
ec6a6fbe | 10434 | $as_echo "$interface" >&6; } |
93bd259b AK |
10435 | |
10436 | ################################################################################ | |
db8b5af9 | 10437 | DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\"" |
24bbc4d7 AK |
10438 | |
10439 | cat >>confdefs.h <<_ACEOF | |
10440 | #define DM_LIB_VERSION $DM_LIB_VERSION | |
10441 | _ACEOF | |
10442 | ||
10443 | ||
db8b5af9 | 10444 | DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'` |
7e3fe830 | 10445 | |
db8b5af9 | 10446 | LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\"" |
fae0c576 | 10447 | |
db8b5af9 | 10448 | VER=`cat "$srcdir"/VERSION` |
bf456146 | 10449 | LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\"" |
ec6a6fbe AK |
10450 | VER=`echo "$VER" | $AWK '{print $1}'` |
10451 | LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\"" | |
10452 | VER=`echo "$VER" | $AWK -F '-' '{print $1}'` | |
10453 | LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'` | |
10454 | LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'` | |
bf456146 AK |
10455 | LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'` |
10456 | LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'` | |
ec6a6fbe | 10457 | |
80992638 | 10458 | ################################################################################ |
fae0c576 | 10459 | |
83912faa | 10460 | |
795ca3e5 AK |
10461 | |
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | ||
5a52dca9 | 10467 | |
8ef2b021 | 10468 | |
199e490e | 10469 | |
69792976 AK |
10470 | |
10471 | ||
10472 | ||
d0191583 | 10473 | |
69792976 | 10474 | |
8106cdd5 AK |
10475 | |
10476 | ||
10477 | ||
10478 | ||
10479 | ||
d68a82ec | 10480 | |
036f273a | 10481 | |
7d1552c9 | 10482 | |
8106cdd5 | 10483 | |
0a62c911 | 10484 | |
8106cdd5 | 10485 | |
4a7f3eb2 | 10486 | |
4922197a AK |
10487 | |
10488 | ||
d8ac0fbc | 10489 | |
1a9ea74d | 10490 | |
8a2fc586 AK |
10491 | |
10492 | ||
d0191583 | 10493 | |
93bd259b AK |
10494 | |
10495 | ||
10496 | ||
10497 | ||
10498 | ||
d0191583 JM |
10499 | |
10500 | ||
10501 | ||
10502 | ||
10503 | ||
8a2fc586 | 10504 | |
19a2c6e0 | 10505 | |
f7f0854e ZK |
10506 | |
10507 | ||
3ceb7608 | 10508 | |
8ce0cbda | 10509 | |
8b1a3214 | 10510 | |
ec6a6fbe AK |
10511 | |
10512 | ||
10513 | ||
10514 | ||
e2997b73 AK |
10515 | |
10516 | ||
10517 | ||
10518 | ||
10519 | ||
10520 | ||
a946372e AK |
10521 | |
10522 | ||
10523 | ||
10524 | ||
10525 | ||
10526 | ||
10527 | ||
10528 | ||
10529 | ||
10530 | ||
10531 | ||
ec6a6fbe | 10532 | |
cac52ca4 | 10533 | |
d3c8211f | 10534 | |
7e3fe830 | 10535 | |
a5f46f6a AK |
10536 | |
10537 | ||
10538 | ||
572fefeb | 10539 | |
90c80887 | 10540 | |
3399ae32 AK |
10541 | |
10542 | ||
10543 | ||
10544 | ||
10545 | ||
90c80887 | 10546 | |
bf456146 | 10547 | |
e1b8a236 | 10548 | |
0878503f | 10549 | |
8fea97b7 | 10550 | |
54b362f9 | 10551 | |
b1f08e51 | 10552 | |
d1e8046f | 10553 | |
fea55602 | 10554 | |
c89bc357 | 10555 | |
6e5c1f75 | 10556 | |
3ba4a195 | 10557 | |
d2c11605 ZK |
10558 | |
10559 | ||
cdd50823 | 10560 | |
426fc742 PR |
10561 | |
10562 | ||
b6d7a484 AK |
10563 | |
10564 | ||
bf09a320 | 10565 | |
e587cb6a | 10566 | |
b559a1e6 | 10567 | |
5723db01 PR |
10568 | |
10569 | ||
10570 | ||
4417a8bd | 10571 | |
f61cacad | 10572 | |
fa68466e | 10573 | |
68f2de6d AK |
10574 | |
10575 | ||
80992638 | 10576 | ################################################################################ |
5723db01 | 10577 | ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/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/lvmetad/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.socket scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile" |
7a197a62 | 10578 | |
ad6254c5 | 10579 | cat >confcache <<\_ACEOF |
795ca3e5 AK |
10580 | # This file is a shell script that caches the results of configure |
10581 | # tests run on this system so they can be shared between configure | |
ad6254c5 AK |
10582 | # scripts and configure runs, see configure's option --config-cache. |
10583 | # It is not useful on other systems. If it contains results you don't | |
10584 | # want to keep, you may remove or edit it. | |
795ca3e5 | 10585 | # |
ad6254c5 AK |
10586 | # config.status only pays attention to the cache file if you give it |
10587 | # the --recheck option to rerun configure. | |
795ca3e5 | 10588 | # |
ad6254c5 AK |
10589 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10590 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10591 | # following values. | |
10592 | ||
10593 | _ACEOF | |
10594 | ||
795ca3e5 AK |
10595 | # The following way of writing the cache mishandles newlines in values, |
10596 | # but we know of no workaround that is simple, portable, and efficient. | |
7a197a62 | 10597 | # So, we kill variables containing newlines. |
795ca3e5 AK |
10598 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10599 | # and sets the high bit in the cache file unless we assign to the vars. | |
7a197a62 AK |
10600 | ( |
10601 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10602 | eval ac_val=\$$ac_var | |
10603 | case $ac_val in #( | |
10604 | *${as_nl}*) | |
10605 | case $ac_var in #( | |
f11781c5 | 10606 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
ec6a6fbe | 10607 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7a197a62 AK |
10608 | esac |
10609 | case $ac_var in #( | |
10610 | _ | IFS | as_nl) ;; #( | |
ec6a6fbe | 10611 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
f11781c5 | 10612 | *) { eval $ac_var=; unset $ac_var;} ;; |
7a197a62 AK |
10613 | esac ;; |
10614 | esac | |
10615 | done | |
10616 | ||
ad6254c5 | 10617 | (set) 2>&1 | |
7a197a62 AK |
10618 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10619 | *${as_nl}ac_space=\ *) | |
f11781c5 AK |
10620 | # `set' does not quote correctly, so add quotes: double-quote |
10621 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
ad6254c5 | 10622 | sed -n \ |
8a2fc586 AK |
10623 | "s/'/'\\\\''/g; |
10624 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7a197a62 | 10625 | ;; #( |
ad6254c5 AK |
10626 | *) |
10627 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7a197a62 | 10628 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
ad6254c5 | 10629 | ;; |
7a197a62 AK |
10630 | esac | |
10631 | sort | |
10632 | ) | | |
ad6254c5 | 10633 | sed ' |
7a197a62 | 10634 | /^ac_cv_env_/b end |
ad6254c5 | 10635 | t clear |
7a197a62 | 10636 | :clear |
ad6254c5 AK |
10637 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10638 | t end | |
7a197a62 AK |
10639 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10640 | :end' >>confcache | |
10641 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10642 | if test -w "$cache_file"; then | |
10643 | test "x$cache_file" != "x/dev/null" && | |
f11781c5 | 10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
ec6a6fbe | 10645 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
ad6254c5 | 10646 | cat confcache >$cache_file |
795ca3e5 | 10647 | else |
f11781c5 | 10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
ec6a6fbe | 10649 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
795ca3e5 AK |
10650 | fi |
10651 | fi | |
10652 | rm -f confcache | |
10653 | ||
795ca3e5 AK |
10654 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10655 | # Let make expand exec_prefix. | |
10656 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10657 | ||
72b2cb61 | 10658 | DEFS=-DHAVE_CONFIG_H |
ad6254c5 AK |
10659 | |
10660 | ac_libobjs= | |
10661 | ac_ltlibobjs= | |
f11781c5 | 10662 | U= |
ad6254c5 AK |
10663 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
10664 | # 1. Remove the extension, and $U if already installed. | |
7a197a62 | 10665 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
ec6a6fbe | 10666 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7a197a62 AK |
10667 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
10668 | # will be set to the directory where LIBOBJS objects are built. | |
f11781c5 AK |
10669 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
10670 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
ad6254c5 AK |
10671 | done |
10672 | LIBOBJS=$ac_libobjs | |
80992638 | 10673 | |
ad6254c5 AK |
10674 | LTLIBOBJS=$ac_ltlibobjs |
10675 | ||
10676 | ||
10677 | ||
10678 | : ${CONFIG_STATUS=./config.status} | |
ec6a6fbe | 10679 | ac_write_fail=0 |
ad6254c5 AK |
10680 | ac_clean_files_save=$ac_clean_files |
10681 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
f11781c5 | 10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
ec6a6fbe | 10683 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
f11781c5 AK |
10684 | as_write_fail=0 |
10685 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
ad6254c5 AK |
10686 | #! $SHELL |
10687 | # Generated by $as_me. | |
795ca3e5 | 10688 | # Run this file to recreate the current configuration. |
795ca3e5 | 10689 | # Compiler output produced by configure, useful for debugging |
ad6254c5 AK |
10690 | # configure, is in config.log if it exists. |
10691 | ||
10692 | debug=false | |
10693 | ac_cs_recheck=false | |
10694 | ac_cs_silent=false | |
ad6254c5 | 10695 | |
f11781c5 AK |
10696 | SHELL=\${CONFIG_SHELL-$SHELL} |
10697 | export SHELL | |
10698 | _ASEOF | |
10699 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10700 | ## -------------------- ## | |
10701 | ## M4sh Initialization. ## | |
10702 | ## -------------------- ## | |
ad6254c5 | 10703 | |
25fbec5b AK |
10704 | # Be more Bourne compatible |
10705 | DUALCASE=1; export DUALCASE # for MKS sh | |
f11781c5 | 10706 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
ad6254c5 AK |
10707 | emulate sh |
10708 | NULLCMD=: | |
ec6a6fbe | 10709 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
ad6254c5 AK |
10710 | # is contrary to our usage. Disable this feature. |
10711 | alias -g '${1+"$@"}'='"$@"' | |
7a197a62 AK |
10712 | setopt NO_GLOB_SUBST |
10713 | else | |
f11781c5 AK |
10714 | case `(set -o) 2>/dev/null` in #( |
10715 | *posix*) : | |
10716 | set -o posix ;; #( | |
10717 | *) : | |
10718 | ;; | |
25fbec5b | 10719 | esac |
7a197a62 | 10720 | fi |
25fbec5b AK |
10721 | |
10722 | ||
ec6a6fbe AK |
10723 | as_nl=' |
10724 | ' | |
10725 | export as_nl | |
10726 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10727 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10728 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10729 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
f11781c5 AK |
10730 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
10731 | # but without wasting forks for bash or zsh. | |
10732 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10733 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10734 | as_echo='print -r --' | |
10735 | as_echo_n='print -rn --' | |
10736 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
ec6a6fbe AK |
10737 | as_echo='printf %s\n' |
10738 | as_echo_n='printf %s' | |
10739 | else | |
10740 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10741 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10742 | as_echo_n='/usr/ucb/echo -n' | |
68f2de6d | 10743 | else |
ec6a6fbe AK |
10744 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
10745 | as_echo_n_body='eval | |
10746 | arg=$1; | |
f11781c5 | 10747 | case $arg in #( |
ec6a6fbe AK |
10748 | *"$as_nl"*) |
10749 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10750 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10751 | esac; | |
10752 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10753 | ' | |
10754 | export as_echo_n_body | |
10755 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
68f2de6d | 10756 | fi |
ec6a6fbe AK |
10757 | export as_echo_body |
10758 | as_echo='sh -c $as_echo_body as_echo' | |
10759 | fi | |
10760 | ||
10761 | # The user is always right. | |
10762 | if test "${PATH_SEPARATOR+set}" != set; then | |
10763 | PATH_SEPARATOR=: | |
10764 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10765 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10766 | PATH_SEPARATOR=';' | |
10767 | } | |
ad6254c5 AK |
10768 | fi |
10769 | ||
ad6254c5 | 10770 | |
7a197a62 AK |
10771 | # IFS |
10772 | # We need space, tab and new line, in precisely that order. Quoting is | |
10773 | # there to prevent editors from complaining about space-tab. | |
10774 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10775 | # splitting by setting IFS to empty value.) | |
7a197a62 AK |
10776 | IFS=" "" $as_nl" |
10777 | ||
10778 | # Find who we are. Look in the path if we contain no directory separator. | |
f11781c5 | 10779 | case $0 in #(( |
7a197a62 AK |
10780 | *[\\/]* ) as_myself=$0 ;; |
10781 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10782 | for as_dir in $PATH | |
10783 | do | |
10784 | IFS=$as_save_IFS | |
10785 | test -z "$as_dir" && as_dir=. | |
f11781c5 AK |
10786 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10787 | done | |
7a197a62 AK |
10788 | IFS=$as_save_IFS |
10789 | ||
10790 | ;; | |
10791 | esac | |
10792 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10793 | # in which case we are not to be found in the path. | |
10794 | if test "x$as_myself" = x; then | |
10795 | as_myself=$0 | |
10796 | fi | |
10797 | if test ! -f "$as_myself"; then | |
ec6a6fbe | 10798 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
f11781c5 | 10799 | exit 1 |
7a197a62 AK |
10800 | fi |
10801 | ||
f11781c5 AK |
10802 | # Unset variables that we do not need and which cause bugs (e.g. in |
10803 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10804 | # suppresses any "Segmentation fault" message there. '((' could | |
10805 | # trigger a bug in pdksh 5.2.14. | |
10806 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10807 | do eval test x\${$as_var+set} = xset \ | |
10808 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7a197a62 | 10809 | done |
ad6254c5 AK |
10810 | PS1='$ ' |
10811 | PS2='> ' | |
10812 | PS4='+ ' | |
10813 | ||
10814 | # NLS nuisances. | |
ec6a6fbe AK |
10815 | LC_ALL=C |
10816 | export LC_ALL | |
10817 | LANGUAGE=C | |
10818 | export LANGUAGE | |
8106cdd5 | 10819 | |
f11781c5 AK |
10820 | # CDPATH. |
10821 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10822 | ||
10823 | ||
10824 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10825 | # ---------------------------------------- | |
10826 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10827 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10828 | # script with STATUS, using 1 if that was 0. | |
10829 | as_fn_error () | |
10830 | { | |
10831 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10832 | if test "$4"; then | |
10833 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10834 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10835 | fi | |
10836 | $as_echo "$as_me: error: $2" >&2 | |
10837 | as_fn_exit $as_status | |
10838 | } # as_fn_error | |
10839 | ||
10840 | ||
10841 | # as_fn_set_status STATUS | |
10842 | # ----------------------- | |
10843 | # Set $? to STATUS, without forking. | |
10844 | as_fn_set_status () | |
10845 | { | |
10846 | return $1 | |
10847 | } # as_fn_set_status | |
10848 | ||
10849 | # as_fn_exit STATUS | |
10850 | # ----------------- | |
10851 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10852 | as_fn_exit () | |
10853 | { | |
10854 | set +e | |
10855 | as_fn_set_status $1 | |
10856 | exit $1 | |
10857 | } # as_fn_exit | |
10858 | ||
10859 | # as_fn_unset VAR | |
10860 | # --------------- | |
10861 | # Portably unset VAR. | |
10862 | as_fn_unset () | |
10863 | { | |
10864 | { eval $1=; unset $1;} | |
10865 | } | |
10866 | as_unset=as_fn_unset | |
10867 | # as_fn_append VAR VALUE | |
10868 | # ---------------------- | |
10869 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10870 | # advantage of any shell optimizations that allow amortized linear growth over | |
10871 | # repeated appends, instead of the typical quadratic growth present in naive | |
10872 | # implementations. | |
10873 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10874 | eval 'as_fn_append () | |
10875 | { | |
10876 | eval $1+=\$2 | |
10877 | }' | |
10878 | else | |
10879 | as_fn_append () | |
10880 | { | |
10881 | eval $1=\$$1\$2 | |
10882 | } | |
10883 | fi # as_fn_append | |
10884 | ||
10885 | # as_fn_arith ARG... | |
10886 | # ------------------ | |
10887 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10888 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10889 | # must be portable across $(()) and expr. | |
10890 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10891 | eval 'as_fn_arith () | |
10892 | { | |
10893 | as_val=$(( $* )) | |
10894 | }' | |
10895 | else | |
10896 | as_fn_arith () | |
10897 | { | |
10898 | as_val=`expr "$@" || test $? -eq 1` | |
10899 | } | |
10900 | fi # as_fn_arith | |
10901 | ||
10902 | ||
7a197a62 AK |
10903 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10904 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
ad6254c5 AK |
10905 | as_expr=expr |
10906 | else | |
10907 | as_expr=false | |
10908 | fi | |
8106cdd5 | 10909 | |
7a197a62 | 10910 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
ad6254c5 AK |
10911 | as_basename=basename |
10912 | else | |
10913 | as_basename=false | |
10914 | fi | |
10915 | ||
f11781c5 AK |
10916 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10917 | as_dirname=dirname | |
10918 | else | |
10919 | as_dirname=false | |
10920 | fi | |
ad6254c5 | 10921 | |
7a197a62 | 10922 | as_me=`$as_basename -- "$0" || |
ad6254c5 AK |
10923 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10924 | X"$0" : 'X\(//\)$' \| \ | |
7a197a62 | 10925 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 10926 | $as_echo X/"$0" | |
7a197a62 AK |
10927 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10928 | s//\1/ | |
10929 | q | |
10930 | } | |
10931 | /^X\/\(\/\/\)$/{ | |
10932 | s//\1/ | |
10933 | q | |
10934 | } | |
10935 | /^X\/\(\/\).*/{ | |
10936 | s//\1/ | |
10937 | q | |
10938 | } | |
10939 | s/.*/./; q'` | |
ad6254c5 | 10940 | |
f11781c5 AK |
10941 | # Avoid depending upon Character Ranges. |
10942 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10943 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10944 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10945 | as_cr_digits='0123456789' | |
10946 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7a197a62 AK |
10947 | |
10948 | ECHO_C= ECHO_N= ECHO_T= | |
f11781c5 | 10949 | case `echo -n x` in #((((( |
7a197a62 | 10950 | -n*) |
f11781c5 | 10951 | case `echo 'xy\c'` in |
7a197a62 | 10952 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
f11781c5 AK |
10953 | xy) ECHO_C='\c';; |
10954 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10955 | ECHO_T=' ';; | |
7a197a62 AK |
10956 | esac;; |
10957 | *) | |
10958 | ECHO_N='-n';; | |
ad6254c5 | 10959 | esac |
80992638 | 10960 | |
ad6254c5 | 10961 | rm -f conf$$ conf$$.exe conf$$.file |
7a197a62 AK |
10962 | if test -d conf$$.dir; then |
10963 | rm -f conf$$.dir/conf$$.file | |
10964 | else | |
10965 | rm -f conf$$.dir | |
ec6a6fbe AK |
10966 | mkdir conf$$.dir 2>/dev/null |
10967 | fi | |
10968 | if (echo >conf$$.file) 2>/dev/null; then | |
10969 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10970 | as_ln_s='ln -s' | |
10971 | # ... but there are two gotchas: | |
10972 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10973 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10974 | # In both cases, we have to default to `cp -p'. | |
10975 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10976 | as_ln_s='cp -p' | |
10977 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10978 | as_ln_s=ln | |
10979 | else | |
ad6254c5 | 10980 | as_ln_s='cp -p' |
ec6a6fbe | 10981 | fi |
ad6254c5 AK |
10982 | else |
10983 | as_ln_s='cp -p' | |
10984 | fi | |
7a197a62 AK |
10985 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10986 | rmdir conf$$.dir 2>/dev/null | |
8106cdd5 | 10987 | |
f11781c5 AK |
10988 | |
10989 | # as_fn_mkdir_p | |
10990 | # ------------- | |
10991 | # Create "$as_dir" as a directory, including parents if necessary. | |
10992 | as_fn_mkdir_p () | |
10993 | { | |
10994 | ||
10995 | case $as_dir in #( | |
10996 | -*) as_dir=./$as_dir;; | |
10997 | esac | |
10998 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10999 | as_dirs= | |
11000 | while :; do | |
11001 | case $as_dir in #( | |
11002 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
11003 | *) as_qdir=$as_dir;; | |
11004 | esac | |
11005 | as_dirs="'$as_qdir' $as_dirs" | |
11006 | as_dir=`$as_dirname -- "$as_dir" || | |
11007 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11008 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11009 | X"$as_dir" : 'X\(//\)$' \| \ | |
11010 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
11011 | $as_echo X"$as_dir" | | |
11012 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11013 | s//\1/ | |
11014 | q | |
11015 | } | |
11016 | /^X\(\/\/\)[^/].*/{ | |
11017 | s//\1/ | |
11018 | q | |
11019 | } | |
11020 | /^X\(\/\/\)$/{ | |
11021 | s//\1/ | |
11022 | q | |
11023 | } | |
11024 | /^X\(\/\).*/{ | |
11025 | s//\1/ | |
11026 | q | |
11027 | } | |
11028 | s/.*/./; q'` | |
11029 | test -d "$as_dir" && break | |
11030 | done | |
11031 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
11032 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
11033 | ||
11034 | ||
11035 | } # as_fn_mkdir_p | |
ad6254c5 | 11036 | if mkdir -p . 2>/dev/null; then |
f11781c5 | 11037 | as_mkdir_p='mkdir -p "$as_dir"' |
ad6254c5 | 11038 | else |
8a2fc586 | 11039 | test -d ./-p && rmdir ./-p |
ad6254c5 AK |
11040 | as_mkdir_p=false |
11041 | fi | |
11042 | ||
25fbec5b AK |
11043 | if test -x / >/dev/null 2>&1; then |
11044 | as_test_x='test -x' | |
7a197a62 | 11045 | else |
25fbec5b AK |
11046 | if ls -dL / >/dev/null 2>&1; then |
11047 | as_ls_L_option=L | |
11048 | else | |
11049 | as_ls_L_option= | |
11050 | fi | |
11051 | as_test_x=' | |
11052 | eval sh -c '\'' | |
11053 | if test -d "$1"; then | |
ec6a6fbe | 11054 | test -d "$1/."; |
25fbec5b | 11055 | else |
f11781c5 | 11056 | case $1 in #( |
ec6a6fbe | 11057 | -*)set "./$1";; |
25fbec5b | 11058 | esac; |
f11781c5 | 11059 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
25fbec5b AK |
11060 | ???[sx]*):;;*)false;;esac;fi |
11061 | '\'' sh | |
11062 | ' | |
7a197a62 | 11063 | fi |
25fbec5b | 11064 | as_executable_p=$as_test_x |
ad6254c5 AK |
11065 | |
11066 | # Sed expression to map a string onto a valid CPP name. | |
8a2fc586 | 11067 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11068 | |
11069 | # Sed expression to map a string onto a valid variable name. | |
8a2fc586 | 11070 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
ad6254c5 AK |
11071 | |
11072 | ||
ad6254c5 | 11073 | exec 6>&1 |
f11781c5 AK |
11074 | ## ----------------------------------- ## |
11075 | ## Main body of $CONFIG_STATUS script. ## | |
11076 | ## ----------------------------------- ## | |
11077 | _ASEOF | |
11078 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
ad6254c5 | 11079 | |
f11781c5 AK |
11080 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11081 | # Save the log message, to keep $0 and so on meaningful, and to | |
ad6254c5 | 11082 | # report actual input values of CONFIG_FILES etc. instead of their |
7a197a62 AK |
11083 | # values after options handling. |
11084 | ac_log=" | |
ad6254c5 | 11085 | This file was extended by $as_me, which was |
f11781c5 | 11086 | generated by GNU Autoconf 2.66. Invocation command line was |
ad6254c5 AK |
11087 | |
11088 | CONFIG_FILES = $CONFIG_FILES | |
11089 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11090 | CONFIG_LINKS = $CONFIG_LINKS | |
11091 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11092 | $ $0 $@ | |
11093 | ||
7a197a62 AK |
11094 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11095 | " | |
11096 | ||
ad6254c5 AK |
11097 | _ACEOF |
11098 | ||
ec6a6fbe AK |
11099 | case $ac_config_files in *" |
11100 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
11101 | esac | |
11102 | ||
11103 | case $ac_config_headers in *" | |
11104 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
11105 | esac | |
11106 | ||
11107 | ||
11108 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
ad6254c5 | 11109 | # Files that config.status was made for. |
68f2de6d AK |
11110 | config_files="$ac_config_files" |
11111 | config_headers="$ac_config_headers" | |
ad6254c5 | 11112 | |
7a197a62 | 11113 | _ACEOF |
ad6254c5 | 11114 | |
ec6a6fbe | 11115 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 | 11116 | ac_cs_usage="\ |
f11781c5 AK |
11117 | \`$as_me' instantiates files and other configuration actions |
11118 | from templates according to the current configuration. Unless the files | |
11119 | and actions are specified as TAGs, all are instantiated by default. | |
ad6254c5 | 11120 | |
f11781c5 | 11121 | Usage: $0 [OPTION]... [TAG]... |
ad6254c5 AK |
11122 | |
11123 | -h, --help print this help, then exit | |
25fbec5b | 11124 | -V, --version print version number and configuration settings, then exit |
f11781c5 | 11125 | --config print configuration, then exit |
ec6a6fbe AK |
11126 | -q, --quiet, --silent |
11127 | do not print progress messages | |
ad6254c5 AK |
11128 | -d, --debug don't remove temporary files |
11129 | --recheck update $as_me by reconfiguring in the same conditions | |
ec6a6fbe AK |
11130 | --file=FILE[:TEMPLATE] |
11131 | instantiate the configuration file FILE | |
11132 | --header=FILE[:TEMPLATE] | |
11133 | instantiate the configuration header FILE | |
ad6254c5 AK |
11134 | |
11135 | Configuration files: | |
11136 | $config_files | |
11137 | ||
72b2cb61 AK |
11138 | Configuration headers: |
11139 | $config_headers | |
11140 | ||
f11781c5 | 11141 | Report bugs to the package provider." |
ad6254c5 | 11142 | |
7a197a62 | 11143 | _ACEOF |
ec6a6fbe | 11144 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
f11781c5 | 11145 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
ad6254c5 AK |
11146 | ac_cs_version="\\ |
11147 | config.status | |
f11781c5 AK |
11148 | configured by $0, generated by GNU Autoconf 2.66, |
11149 | with options \\"\$ac_cs_config\\" | |
ad6254c5 | 11150 | |
f11781c5 | 11151 | Copyright (C) 2010 Free Software Foundation, Inc. |
ad6254c5 AK |
11152 | This config.status script is free software; the Free Software Foundation |
11153 | gives unlimited permission to copy, distribute and modify it." | |
7a197a62 AK |
11154 | |
11155 | ac_pwd='$ac_pwd' | |
11156 | srcdir='$srcdir' | |
11157 | INSTALL='$INSTALL' | |
fddafd51 | 11158 | MKDIR_P='$MKDIR_P' |
ec6a6fbe AK |
11159 | AWK='$AWK' |
11160 | test -n "\$AWK" || AWK=awk | |
ad6254c5 AK |
11161 | _ACEOF |
11162 | ||
ec6a6fbe AK |
11163 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11164 | # The default lists apply if the user does not specify any file. | |
ad6254c5 AK |
11165 | ac_need_defaults=: |
11166 | while test $# != 0 | |
11167 | do | |
11168 | case $1 in | |
11169 | --*=*) | |
7a197a62 AK |
11170 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11171 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
ad6254c5 AK |
11172 | ac_shift=: |
11173 | ;; | |
7a197a62 | 11174 | *) |
ad6254c5 AK |
11175 | ac_option=$1 |
11176 | ac_optarg=$2 | |
11177 | ac_shift=shift | |
11178 | ;; | |
ad6254c5 AK |
11179 | esac |
11180 | ||
11181 | case $ac_option in | |
11182 | # Handling of the options. | |
ad6254c5 AK |
11183 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11184 | ac_cs_recheck=: ;; | |
7a197a62 | 11185 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
ec6a6fbe | 11186 | $as_echo "$ac_cs_version"; exit ;; |
f11781c5 AK |
11187 | --config | --confi | --conf | --con | --co | --c ) |
11188 | $as_echo "$ac_cs_config"; exit ;; | |
7a197a62 | 11189 | --debug | --debu | --deb | --de | --d | -d ) |
ad6254c5 AK |
11190 | debug=: ;; |
11191 | --file | --fil | --fi | --f ) | |
11192 | $ac_shift | |
ec6a6fbe AK |
11193 | case $ac_optarg in |
11194 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11195 | esac | |
f11781c5 | 11196 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
ad6254c5 AK |
11197 | ac_need_defaults=false;; |
11198 | --header | --heade | --head | --hea ) | |
11199 | $ac_shift | |
ec6a6fbe AK |
11200 | case $ac_optarg in |
11201 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11202 | esac | |
f11781c5 | 11203 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
ad6254c5 | 11204 | ac_need_defaults=false;; |
7a197a62 AK |
11205 | --he | --h) |
11206 | # Conflict between --help and --header | |
f11781c5 AK |
11207 | as_fn_error $? "ambiguous option: \`$1' |
11208 | Try \`$0 --help' for more information.";; | |
7a197a62 | 11209 | --help | --hel | -h ) |
ec6a6fbe | 11210 | $as_echo "$ac_cs_usage"; exit ;; |
ad6254c5 AK |
11211 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11212 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11213 | ac_cs_silent=: ;; | |
11214 | ||
11215 | # This is an error. | |
f11781c5 AK |
11216 | -*) as_fn_error $? "unrecognized option: \`$1' |
11217 | Try \`$0 --help' for more information." ;; | |
ad6254c5 | 11218 | |
f11781c5 | 11219 | *) as_fn_append ac_config_targets " $1" |
7a197a62 | 11220 | ac_need_defaults=false ;; |
ad6254c5 AK |
11221 | |
11222 | esac | |
11223 | shift | |
11224 | done | |
11225 | ||
11226 | ac_configure_extra_args= | |
11227 | ||
11228 | if $ac_cs_silent; then | |
11229 | exec 6>/dev/null | |
11230 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11231 | fi | |
11232 | ||
11233 | _ACEOF | |
ec6a6fbe | 11234 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
ad6254c5 | 11235 | if \$ac_cs_recheck; then |
ec6a6fbe AK |
11236 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
11237 | shift | |
11238 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
11239 | CONFIG_SHELL='$SHELL' | |
7a197a62 | 11240 | export CONFIG_SHELL |
ec6a6fbe | 11241 | exec "\$@" |
ad6254c5 AK |
11242 | fi |
11243 | ||
11244 | _ACEOF | |
ec6a6fbe | 11245 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11246 | exec 5>>config.log |
11247 | { | |
11248 | echo | |
11249 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11250 | ## Running $as_me. ## | |
11251 | _ASBOX | |
ec6a6fbe | 11252 | $as_echo "$ac_log" |
7a197a62 | 11253 | } >&5 |
ad6254c5 | 11254 | |
7a197a62 | 11255 | _ACEOF |
ec6a6fbe | 11256 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 | 11257 | _ACEOF |
ad6254c5 | 11258 | |
ec6a6fbe | 11259 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11260 | |
11261 | # Handling of arguments. | |
ad6254c5 AK |
11262 | for ac_config_target in $ac_config_targets |
11263 | do | |
7a197a62 AK |
11264 | case $ac_config_target in |
11265 | "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;; | |
11266 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11267 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
11268 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
11269 | "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;; | |
5d311afb | 11270 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; |
93bd259b AK |
11271 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; |
11272 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
04f06bc9 | 11273 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; |
d3d98fdc | 11274 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; |
3041b72f | 11275 | "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;; |
93bd259b AK |
11276 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; |
11277 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
2bc1d759 | 11278 | "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;; |
cdd50823 | 11279 | "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;; |
7a197a62 | 11280 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
da05c479 | 11281 | "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;; |
db8b5af9 | 11282 | "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;; |
93bd259b AK |
11283 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
11284 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7a197a62 AK |
11285 | "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;; |
11286 | "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;; | |
11287 | "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;; | |
11288 | "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;; | |
8fea97b7 | 11289 | "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;; |
ec6a6fbe | 11290 | "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;; |
40dbaac8 | 11291 | "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;; |
7a197a62 | 11292 | "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;; |
3ba4a195 | 11293 | "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;; |
7126d8c2 AK |
11294 | "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;; |
11295 | "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;; | |
11296 | "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;; | |
93bd259b AK |
11297 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; |
11298 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
e0c64c6c | 11299 | "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;; |
70046623 | 11300 | "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;; |
93bd259b AK |
11301 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
11302 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
75ad7143 | 11303 | "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;; |
81410c8f | 11304 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; |
a30491b2 | 11305 | "scripts/lvm2_lvmetad_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_init_red_hat" ;; |
dac3c36f | 11306 | "scripts/lvm2_lvmetad_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.socket" ;; |
da532741 | 11307 | "scripts/lvm2_lvmetad_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.service" ;; |
595eaf92 | 11308 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; |
5723db01 | 11309 | "scripts/dm_event_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.socket" ;; |
6e5c1f75 PR |
11310 | "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;; |
11311 | "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;; | |
4417a8bd | 11312 | "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;; |
7a197a62 | 11313 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
93bd259b | 11314 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
c7e363f9 | 11315 | "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;; |
9493f1df | 11316 | "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;; |
7a197a62 | 11317 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
a5f46f6a | 11318 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; |
54b362f9 AK |
11319 | "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;; |
11320 | "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;; | |
d1e8046f | 11321 | "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;; |
7a197a62 | 11322 | |
f11781c5 | 11323 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
80992638 | 11324 | esac |
ad6254c5 AK |
11325 | done |
11326 | ||
7a197a62 | 11327 | |
ad6254c5 AK |
11328 | # If the user did not use the arguments to specify the items to instantiate, |
11329 | # then the envvar interface is used. Set only those that are not. | |
11330 | # We use the long form for the default assignment because of an extremely | |
11331 | # bizarre bug on SunOS 4.1.3. | |
11332 | if $ac_need_defaults; then | |
11333 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
72b2cb61 | 11334 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
ad6254c5 AK |
11335 | fi |
11336 | ||
11337 | # Have a temporary directory for convenience. Make it in the build tree | |
7a197a62 | 11338 | # simply because there is no reason against having it here, and in addition, |
ad6254c5 | 11339 | # creating and moving files from /tmp can sometimes cause problems. |
7a197a62 AK |
11340 | # Hook for its removal unless debugging. |
11341 | # Note that there is a small window in which the directory will not be cleaned: | |
11342 | # after its creation but before its name has been assigned to `$tmp'. | |
ad6254c5 AK |
11343 | $debug || |
11344 | { | |
7a197a62 AK |
11345 | tmp= |
11346 | trap 'exit_status=$? | |
11347 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
11348 | ' 0 | |
f11781c5 | 11349 | trap 'as_fn_exit 1' 1 2 13 15 |
ad6254c5 | 11350 | } |
ad6254c5 AK |
11351 | # Create a (secure) tmp directory for tmp files. |
11352 | ||
11353 | { | |
7a197a62 | 11354 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
ad6254c5 AK |
11355 | test -n "$tmp" && test -d "$tmp" |
11356 | } || | |
11357 | { | |
7a197a62 AK |
11358 | tmp=./conf$$-$RANDOM |
11359 | (umask 077 && mkdir "$tmp") | |
f11781c5 | 11360 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
ad6254c5 | 11361 | |
ec6a6fbe AK |
11362 | # Set up the scripts for CONFIG_FILES section. |
11363 | # No need to generate them if there are no CONFIG_FILES. | |
11364 | # This happens for instance with `./config.status config.h'. | |
1995c9ff | 11365 | if test -n "$CONFIG_FILES"; then |
7a197a62 | 11366 | |
68f2de6d | 11367 | |
f11781c5 AK |
11368 | ac_cr=`echo X | tr X '\015'` |
11369 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
11370 | # But we know of no other shell where ac_cr would be empty at this | |
11371 | # point, so we can use a bashism as a fallback. | |
11372 | if test "x$ac_cr" = x; then | |
11373 | eval ac_cr=\$\'\\r\' | |
11374 | fi | |
ec6a6fbe AK |
11375 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
11376 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
11377 | ac_cs_awk_cr='\\r' | |
11378 | else | |
11379 | ac_cs_awk_cr=$ac_cr | |
1995c9ff | 11380 | fi |
7a197a62 | 11381 | |
ec6a6fbe | 11382 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
1995c9ff | 11383 | _ACEOF |
7a197a62 | 11384 | |
8106cdd5 | 11385 | |
ec6a6fbe AK |
11386 | { |
11387 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
11388 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
11389 | echo "_ACEOF" | |
11390 | } >conf$$subs.sh || | |
f11781c5 AK |
11391 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
11392 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
1995c9ff AK |
11393 | ac_delim='%!_!# ' |
11394 | for ac_last_try in false false false false false :; do | |
ec6a6fbe | 11395 | . ./conf$$subs.sh || |
f11781c5 | 11396 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe AK |
11397 | |
11398 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
11399 | if test $ac_delim_n = $ac_delim_num; then | |
1995c9ff AK |
11400 | break |
11401 | elif $ac_last_try; then | |
f11781c5 | 11402 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1995c9ff AK |
11403 | else |
11404 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11405 | fi | |
11406 | done | |
ec6a6fbe AK |
11407 | rm -f conf$$subs.sh |
11408 | ||
11409 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11410 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
11411 | _ACEOF | |
11412 | sed -n ' | |
11413 | h | |
11414 | s/^/S["/; s/!.*/"]=/ | |
11415 | p | |
11416 | g | |
11417 | s/^[^!]*!// | |
11418 | :repl | |
11419 | t repl | |
11420 | s/'"$ac_delim"'$// | |
11421 | t delim | |
11422 | :nl | |
11423 | h | |
f11781c5 | 11424 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11425 | t more1 |
11426 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11427 | p | |
11428 | n | |
11429 | b repl | |
11430 | :more1 | |
11431 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11432 | p | |
11433 | g | |
11434 | s/.\{148\}// | |
11435 | t nl | |
11436 | :delim | |
11437 | h | |
f11781c5 | 11438 | s/\(.\{148\}\)..*/\1/ |
ec6a6fbe AK |
11439 | t more2 |
11440 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11441 | p | |
11442 | b | |
11443 | :more2 | |
11444 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11445 | p | |
11446 | g | |
11447 | s/.\{148\}// | |
11448 | t delim | |
11449 | ' <conf$$subs.awk | sed ' | |
11450 | /^[^""]/{ | |
11451 | N | |
11452 | s/\n// | |
11453 | } | |
11454 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11455 | rm -f conf$$subs.awk | |
11456 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11457 | _ACAWK | |
11458 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
11459 | for (key in S) S_is_set[key] = 1 | |
11460 | FS = "\a" | |
7a197a62 | 11461 | |
ec6a6fbe AK |
11462 | } |
11463 | { | |
11464 | line = $ 0 | |
11465 | nfields = split(line, field, "@") | |
11466 | substed = 0 | |
11467 | len = length(field[1]) | |
11468 | for (i = 2; i < nfields; i++) { | |
11469 | key = field[i] | |
11470 | keylen = length(key) | |
11471 | if (S_is_set[key]) { | |
11472 | value = S[key] | |
11473 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
11474 | len += length(value) + length(field[++i]) | |
11475 | substed = 1 | |
11476 | } else | |
11477 | len += 1 + keylen | |
11478 | } | |
11479 | ||
11480 | print line | |
11481 | } | |
fddafd51 | 11482 | |
ec6a6fbe | 11483 | _ACAWK |
1995c9ff | 11484 | _ACEOF |
ec6a6fbe AK |
11485 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11486 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
11487 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
11488 | else | |
11489 | cat | |
11490 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
f11781c5 | 11491 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7a197a62 AK |
11492 | _ACEOF |
11493 | ||
f11781c5 AK |
11494 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
11495 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7a197a62 AK |
11496 | # trailing colons and then remove the whole line if VPATH becomes empty |
11497 | # (actually we leave an empty line to preserve line numbers). | |
11498 | if test "x$srcdir" = x.; then | |
f11781c5 AK |
11499 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
11500 | h | |
11501 | s/// | |
11502 | s/^/:/ | |
11503 | s/[ ]*$/:/ | |
11504 | s/:\$(srcdir):/:/g | |
11505 | s/:\${srcdir}:/:/g | |
11506 | s/:@srcdir@:/:/g | |
11507 | s/^:*// | |
7a197a62 | 11508 | s/:*$// |
f11781c5 AK |
11509 | x |
11510 | s/\(=[ ]*\).*/\1/ | |
11511 | G | |
11512 | s/\n// | |
7a197a62 AK |
11513 | s/^[^=]*=[ ]*$// |
11514 | }' | |
11515 | fi | |
11516 | ||
ec6a6fbe | 11517 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11518 | fi # test -n "$CONFIG_FILES" |
11519 | ||
ec6a6fbe AK |
11520 | # Set up the scripts for CONFIG_HEADERS section. |
11521 | # No need to generate them if there are no CONFIG_HEADERS. | |
11522 | # This happens for instance with `./config.status Makefile'. | |
11523 | if test -n "$CONFIG_HEADERS"; then | |
11524 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
11525 | BEGIN { | |
11526 | _ACEOF | |
11527 | ||
11528 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11529 | # here-document in config.status, that substitutes the proper values into | |
11530 | # config.h.in to produce config.h. | |
11531 | ||
11532 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11533 | # handling of long lines. | |
11534 | ac_delim='%!_!# ' | |
11535 | for ac_last_try in false false :; do | |
11536 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
11537 | if test -z "$ac_t"; then | |
11538 | break | |
11539 | elif $ac_last_try; then | |
f11781c5 | 11540 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
ec6a6fbe AK |
11541 | else |
11542 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11543 | fi | |
11544 | done | |
11545 | ||
11546 | # For the awk script, D is an array of macro values keyed by name, | |
11547 | # likewise P contains macro parameters if any. Preserve backslash | |
11548 | # newline sequences. | |
11549 | ||
11550 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11551 | sed -n ' | |
11552 | s/.\{148\}/&'"$ac_delim"'/g | |
11553 | t rset | |
11554 | :rset | |
11555 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11556 | t def | |
11557 | d | |
11558 | :def | |
11559 | s/\\$// | |
11560 | t bsnl | |
11561 | s/["\\]/\\&/g | |
11562 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11563 | D["\1"]=" \3"/p | |
11564 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11565 | d | |
11566 | :bsnl | |
11567 | s/["\\]/\\&/g | |
11568 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11569 | D["\1"]=" \3\\\\\\n"\\/p | |
11570 | t cont | |
11571 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11572 | t cont | |
11573 | d | |
11574 | :cont | |
11575 | n | |
11576 | s/.\{148\}/&'"$ac_delim"'/g | |
11577 | t clear | |
11578 | :clear | |
11579 | s/\\$// | |
11580 | t bsnlc | |
11581 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11582 | d | |
11583 | :bsnlc | |
11584 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11585 | b cont | |
11586 | ' <confdefs.h | sed ' | |
11587 | s/'"$ac_delim"'/"\\\ | |
11588 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11589 | ||
11590 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11591 | for (key in D) D_is_set[key] = 1 | |
11592 | FS = "\a" | |
11593 | } | |
11594 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11595 | line = \$ 0 | |
11596 | split(line, arg, " ") | |
11597 | if (arg[1] == "#") { | |
11598 | defundef = arg[2] | |
11599 | mac1 = arg[3] | |
11600 | } else { | |
11601 | defundef = substr(arg[1], 2) | |
11602 | mac1 = arg[2] | |
11603 | } | |
11604 | split(mac1, mac2, "(") #) | |
11605 | macro = mac2[1] | |
11606 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11607 | if (D_is_set[macro]) { | |
11608 | # Preserve the white space surrounding the "#". | |
11609 | print prefix "define", macro P[macro] D[macro] | |
11610 | next | |
11611 | } else { | |
11612 | # Replace #undef with comments. This is necessary, for example, | |
11613 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11614 | # on some systems where configure will not decide to define it. | |
11615 | if (defundef == "undef") { | |
11616 | print "/*", prefix defundef, macro, "*/" | |
11617 | next | |
11618 | } | |
11619 | } | |
11620 | } | |
11621 | { print } | |
11622 | _ACAWK | |
11623 | _ACEOF | |
11624 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
f11781c5 | 11625 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
ec6a6fbe AK |
11626 | fi # test -n "$CONFIG_HEADERS" |
11627 | ||
7a197a62 | 11628 | |
ec6a6fbe AK |
11629 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
11630 | shift | |
11631 | for ac_tag | |
7a197a62 AK |
11632 | do |
11633 | case $ac_tag in | |
11634 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11635 | esac | |
11636 | case $ac_mode$ac_tag in | |
11637 | :[FHL]*:*);; | |
f11781c5 | 11638 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7a197a62 AK |
11639 | :[FH]-) ac_tag=-:-;; |
11640 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11641 | esac | |
11642 | ac_save_IFS=$IFS | |
11643 | IFS=: | |
11644 | set x $ac_tag | |
11645 | IFS=$ac_save_IFS | |
11646 | shift | |
11647 | ac_file=$1 | |
11648 | shift | |
11649 | ||
11650 | case $ac_mode in | |
11651 | :L) ac_source=$1;; | |
11652 | :[FH]) | |
11653 | ac_file_inputs= | |
11654 | for ac_f | |
11655 | do | |
11656 | case $ac_f in | |
11657 | -) ac_f="$tmp/stdin";; | |
11658 | *) # Look for the file first in the build tree, then in the source tree | |
11659 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11660 | # because $ac_f cannot contain `:'. | |
11661 | test -f "$ac_f" || | |
11662 | case $ac_f in | |
11663 | [\\/$]*) false;; | |
11664 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11665 | esac || | |
f11781c5 | 11666 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7a197a62 | 11667 | esac |
ec6a6fbe | 11668 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
f11781c5 | 11669 | as_fn_append ac_file_inputs " '$ac_f'" |
7a197a62 AK |
11670 | done |
11671 | ||
11672 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11673 | # use $as_me), people would be surprised to read: | |
11674 | # /* config.h. Generated by config.status. */ | |
ec6a6fbe AK |
11675 | configure_input='Generated from '` |
11676 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11677 | `' by configure.' | |
7a197a62 AK |
11678 | if test x"$ac_file" != x-; then |
11679 | configure_input="$ac_file. $configure_input" | |
f11781c5 | 11680 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
ec6a6fbe | 11681 | $as_echo "$as_me: creating $ac_file" >&6;} |
7a197a62 | 11682 | fi |
ec6a6fbe AK |
11683 | # Neutralize special characters interpreted by sed in replacement strings. |
11684 | case $configure_input in #( | |
11685 | *\&* | *\|* | *\\* ) | |
11686 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11687 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11688 | *) ac_sed_conf_input=$configure_input;; | |
11689 | esac | |
7a197a62 AK |
11690 | |
11691 | case $ac_tag in | |
ec6a6fbe | 11692 | *:-:* | *:-) cat >"$tmp/stdin" \ |
f11781c5 | 11693 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7a197a62 AK |
11694 | esac |
11695 | ;; | |
80992638 | 11696 | esac |
8106cdd5 | 11697 | |
7a197a62 | 11698 | ac_dir=`$as_dirname -- "$ac_file" || |
ad6254c5 | 11699 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8a2fc586 AK |
11700 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
11701 | X"$ac_file" : 'X\(//\)$' \| \ | |
7a197a62 | 11702 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
ec6a6fbe | 11703 | $as_echo X"$ac_file" | |
7a197a62 AK |
11704 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11705 | s//\1/ | |
11706 | q | |
11707 | } | |
11708 | /^X\(\/\/\)[^/].*/{ | |
11709 | s//\1/ | |
11710 | q | |
11711 | } | |
11712 | /^X\(\/\/\)$/{ | |
11713 | s//\1/ | |
11714 | q | |
11715 | } | |
11716 | /^X\(\/\).*/{ | |
11717 | s//\1/ | |
11718 | q | |
11719 | } | |
11720 | s/.*/./; q'` | |
f11781c5 | 11721 | as_dir="$ac_dir"; as_fn_mkdir_p |
ad6254c5 AK |
11722 | ac_builddir=. |
11723 | ||
7a197a62 AK |
11724 | case "$ac_dir" in |
11725 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11726 | *) | |
ec6a6fbe | 11727 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7a197a62 | 11728 | # A ".." for each directory in $ac_dir_suffix. |
ec6a6fbe | 11729 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7a197a62 AK |
11730 | case $ac_top_builddir_sub in |
11731 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11732 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11733 | esac ;; | |
11734 | esac | |
11735 | ac_abs_top_builddir=$ac_pwd | |
11736 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11737 | # for backward compatibility: | |
11738 | ac_top_builddir=$ac_top_build_prefix | |
ad6254c5 AK |
11739 | |
11740 | case $srcdir in | |
7a197a62 | 11741 | .) # We are building in place. |
ad6254c5 | 11742 | ac_srcdir=. |
7a197a62 AK |
11743 | ac_top_srcdir=$ac_top_builddir_sub |
11744 | ac_abs_top_srcdir=$ac_pwd ;; | |
11745 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
ad6254c5 | 11746 | ac_srcdir=$srcdir$ac_dir_suffix; |
7a197a62 AK |
11747 | ac_top_srcdir=$srcdir |
11748 | ac_abs_top_srcdir=$srcdir ;; | |
11749 | *) # Relative name. | |
11750 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11751 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11752 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ad6254c5 | 11753 | esac |
7a197a62 | 11754 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
8a2fc586 | 11755 | |
ad6254c5 | 11756 | |
7a197a62 AK |
11757 | case $ac_mode in |
11758 | :F) | |
11759 | # | |
11760 | # CONFIG_FILE | |
11761 | # | |
ad6254c5 AK |
11762 | |
11763 | case $INSTALL in | |
11764 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7a197a62 | 11765 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
795ca3e5 | 11766 | esac |
fddafd51 ZK |
11767 | ac_MKDIR_P=$MKDIR_P |
11768 | case $MKDIR_P in | |
11769 | [\\/$]* | ?:[\\/]* ) ;; | |
11770 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
11771 | esac | |
7a197a62 | 11772 | _ACEOF |
795ca3e5 | 11773 | |
ec6a6fbe | 11774 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11775 | # If the template does not know about datarootdir, expand it. |
11776 | # FIXME: This hack should be removed a few years after 2.60. | |
11777 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
ec6a6fbe AK |
11778 | ac_sed_dataroot=' |
11779 | /datarootdir/ { | |
7a197a62 AK |
11780 | p |
11781 | q | |
11782 | } | |
11783 | /@datadir@/p | |
11784 | /@docdir@/p | |
11785 | /@infodir@/p | |
11786 | /@localedir@/p | |
f11781c5 | 11787 | /@mandir@/p' |
ec6a6fbe | 11788 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7a197a62 AK |
11789 | *datarootdir*) ac_datarootdir_seen=yes;; |
11790 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
f11781c5 | 11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
ec6a6fbe | 11792 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
ad6254c5 | 11793 | _ACEOF |
ec6a6fbe | 11794 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7a197a62 AK |
11795 | ac_datarootdir_hack=' |
11796 | s&@datadir@&$datadir&g | |
11797 | s&@docdir@&$docdir&g | |
11798 | s&@infodir@&$infodir&g | |
11799 | s&@localedir@&$localedir&g | |
11800 | s&@mandir@&$mandir&g | |
f11781c5 | 11801 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7a197a62 AK |
11802 | esac |
11803 | _ACEOF | |
11804 | ||
11805 | # Neutralize VPATH when `$srcdir' = `.'. | |
11806 | # Shell code in configure.ac might set extrasub. | |
11807 | # FIXME: do we really want to maintain this feature? | |
ec6a6fbe AK |
11808 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11809 | ac_sed_extra="$ac_vpsub | |
ad6254c5 AK |
11810 | $extrasub |
11811 | _ACEOF | |
ec6a6fbe | 11812 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
ad6254c5 AK |
11813 | :t |
11814 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ec6a6fbe | 11815 | s|@configure_input@|$ac_sed_conf_input|;t t |
7a197a62 | 11816 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
ec6a6fbe | 11817 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7a197a62 AK |
11818 | s&@srcdir@&$ac_srcdir&;t t |
11819 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11820 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11821 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11822 | s&@builddir@&$ac_builddir&;t t | |
11823 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11824 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11825 | s&@INSTALL@&$ac_INSTALL&;t t | |
fddafd51 | 11826 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
7a197a62 | 11827 | $ac_datarootdir_hack |
ec6a6fbe AK |
11828 | " |
11829 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
f11781c5 | 11830 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11831 | |
11832 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11833 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
11834 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
f11781c5 AK |
11835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
11836 | which seems to be undefined. Please make sure it is defined" >&5 | |
ec6a6fbe | 11837 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
f11781c5 | 11838 | which seems to be undefined. Please make sure it is defined" >&2;} |
7a197a62 AK |
11839 | |
11840 | rm -f "$tmp/stdin" | |
72b2cb61 | 11841 | case $ac_file in |
ec6a6fbe AK |
11842 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
11843 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
11844 | esac \ | |
f11781c5 | 11845 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7a197a62 AK |
11846 | ;; |
11847 | :H) | |
11848 | # | |
11849 | # CONFIG_HEADER | |
11850 | # | |
72b2cb61 | 11851 | if test x"$ac_file" != x-; then |
ec6a6fbe AK |
11852 | { |
11853 | $as_echo "/* $configure_input */" \ | |
11854 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
11855 | } >"$tmp/config.h" \ | |
f11781c5 | 11856 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
ec6a6fbe | 11857 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
f11781c5 | 11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
ec6a6fbe | 11859 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
72b2cb61 | 11860 | else |
ec6a6fbe AK |
11861 | rm -f "$ac_file" |
11862 | mv "$tmp/config.h" "$ac_file" \ | |
f11781c5 | 11863 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
72b2cb61 AK |
11864 | fi |
11865 | else | |
ec6a6fbe AK |
11866 | $as_echo "/* $configure_input */" \ |
11867 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
f11781c5 | 11868 | || as_fn_error $? "could not create -" "$LINENO" 5 |
72b2cb61 | 11869 | fi |
7a197a62 AK |
11870 | ;; |
11871 | ||
11872 | ||
11873 | esac | |
11874 | ||
11875 | done # for ac_tag | |
795ca3e5 | 11876 | |
795ca3e5 | 11877 | |
f11781c5 | 11878 | as_fn_exit 0 |
ad6254c5 | 11879 | _ACEOF |
ad6254c5 AK |
11880 | ac_clean_files=$ac_clean_files_save |
11881 | ||
ec6a6fbe | 11882 | test $ac_write_fail = 0 || |
f11781c5 | 11883 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ec6a6fbe | 11884 | |
ad6254c5 AK |
11885 | |
11886 | # configure is writing to config.log, and then calls config.status. | |
11887 | # config.status does its own redirection, appending to config.log. | |
11888 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11889 | # by configure, so config.status won't be able to write to it; its | |
11890 | # output is simply discarded. So we exec the FD to /dev/null, | |
11891 | # effectively closing config.log, so it can be properly (re)opened and | |
11892 | # appended to by config.status. When coming back to configure, we | |
11893 | # need to make the FD available again. | |
11894 | if test "$no_create" != yes; then | |
11895 | ac_cs_success=: | |
11896 | ac_config_status_args= | |
11897 | test "$silent" = yes && | |
11898 | ac_config_status_args="$ac_config_status_args --quiet" | |
11899 | exec 5>/dev/null | |
11900 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11901 | exec 5>>config.log | |
11902 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11903 | # would make configure fail if this is the last instruction. | |
f11781c5 | 11904 | $ac_cs_success || as_fn_exit 1 |
ad6254c5 | 11905 | fi |
ec6a6fbe | 11906 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
f11781c5 | 11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
ec6a6fbe AK |
11908 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
11909 | fi | |
795ca3e5 | 11910 | |
2dc95e1c AK |
11911 | |
11912 | if test x$ODIRECT != xyes; then | |
f11781c5 | 11913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5 |
ec6a6fbe | 11914 | $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} |
2dc95e1c | 11915 | fi |